/* /assets/main.css?v=4 */
:root{
  --bg:#000;
  --text:#fff;
  --muted:rgba(255,255,255,.72);
  --line:rgba(255,255,255,.14);
  --line2:rgba(255,255,255,.22);
  --r:16px;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x:hidden;
}

/* ===== ДВИГАЮЩИЙСЯ ЧЁРНЫЙ ФОН ===== */
.bg{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(900px 520px at 15% 20%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(900px 520px at 85% 10%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 6px);
  background-size:
    auto,
    auto,
    64px 64px,
    64px 64px,
    100% 100%;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 0;
  opacity:.38;
  animation: drift 14s linear infinite;
}

@keyframes drift{
  0%{
    background-position:
      0 0,
      0 0,
      0 0,
      0 0,
      0 0;
  }
  100%{
    background-position:
      40px 20px,
      -30px 25px,
      0 64px,
      64px 0,
      0 0;
  }
}

/* ===== КОНТЕЙНЕР ===== */
.wrap{
  width:min(1100px, calc(100% - 28px));
  margin:0 auto;
}

/* ===== HEADER ===== */
.top{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand{
  color:#fff;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.2px;
}

/* ===== DESKTOP NAV ===== */
.nav--desktop{
  display:flex;
  gap:14px;
  align-items:center;
}

.nav--desktop a{
  color: rgba(255,255,255,.78);
  text-decoration:none;
  border-bottom:1px dashed rgba(255,255,255,.22);
}

.nav--desktop a:hover{
  color:#fff;
  border-bottom-color: rgba(255,255,255,.55);
}

/* ===== BURGER ===== */
.burger{
  display:none;
  width:44px;
  height:38px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color:#fff;
  cursor:pointer;
  padding:8px 10px;
}

.burger span{
  display:block;
  height:2px;
  background:#fff;
  margin:5px 0;
  border-radius:2px;
  opacity:.9;
}

/* ===== MOBILE MENU (НЕ СЛИВАЕТСЯ) ===== */
.overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(2px);
  z-index:60;
}

.navDrawer{
  position:fixed;
  top:0;
  right:0;
  height:100%;
  width:min(360px, 90vw);
  background: rgba(12,12,12,.98);
  border-left: 1px solid rgba(255,255,255,.18);
  z-index:70;
  box-shadow: 0 24px 80px rgba(0,0,0,.75);
}

.navDrawer__head{
  background: rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.navDrawer__title{
  font-weight:800;
  letter-spacing:.2px;
}

.navDrawer__close{
  width:42px;
  height:38px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color:#fff;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}

.navDrawer__links{
  padding:14px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.navDrawer__links a{
  color: rgba(255,255,255,.92);
  text-decoration:none;
  padding:12px 12px;
  border:1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
}

.navDrawer__links a:hover{
  background: rgba(255,255,255,.12);
}

/* ===== HERO FULL HEIGHT ===== */
.hero{
  min-height: calc(100vh - 72px);
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:24px;
  align-items:center;
  padding: 28px 0 18px;
}

h1{
  margin:0;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height:1.05;
  letter-spacing:-.7px;
}

.sub{
  margin:14px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
  max-width: 60ch;
}

/* ===== CARD ===== */
.card{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

/* ===== FORM ===== */
.form{ margin:0; }

.label{
  display:block;
  font-size:12.5px;
  color: rgba(255,255,255,.80);
  margin:0 0 10px;
}

.row{
  display:flex;
  gap:10px;
  align-items:stretch;
}

input[type="url"]{
  width:100%;
  min-width: 0;
  border-radius: var(--r);
  border:1px solid var(--line2);
  background: rgba(0,0,0,.55);
  color:#fff;
  padding: 12px 12px;
  font-size:14px;
  outline:none;
}

input[type="url"]::placeholder{ color: rgba(255,255,255,.42); }
input[type="url"]:focus{ border-color: rgba(255,255,255,.36); }

button#btn{
  min-width: 160px;
  border-radius: var(--r);
  border:1px solid rgba(255,255,255,.22);
  background:#fff;
  color:#000;
  font-weight: 800;
  letter-spacing:.2px;
  cursor:pointer;
  padding: 12px 16px;
  transition: transform .12s ease;
}

button#btn:hover{ transform: translateY(-1px); }
button#btn:active{ transform: translateY(0); }
button#btn:disabled{ opacity:.6; cursor:not-allowed; transform:none; }

.result{
  display:none;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.45);
  border-radius: var(--r);
  padding: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.result.show{ display:block; }

.hint{
  margin: 10px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ===== SEO TEXT ===== */
.seo{
  margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 14px;
}

.seo h2{
  margin:0 0 10px;
  font-size: 16px;
}

.seo p{
  margin:0 0 10px;
  color: rgba(255,255,255,.74);
  line-height: 1.85;
  font-size: 14px;
}

/* ===== FOOTER ===== */
.foot{
  margin-top: 16px;
  padding: 16px 0 32px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  font-size:12px;
}

.footLinks{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.foot a{
  color: rgba(255,255,255,.65);
  text-decoration:none;
}

.foot a:hover{ color:#fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px){
  .hero{
    grid-template-columns: 1fr;
    align-items:start;
    min-height: unset;
    padding-top: 22px;
  }
  .sub{ max-width: unset; }
  .row{ flex-direction:column; }
  button#btn{ width:100%; min-width: unset; }
}

/* mobile nav */
@media (max-width: 820px){
  .nav--desktop{ display:none; }
  .burger{ display:inline-block; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .bg{ animation:none; }
  button#btn{ transition:none; }
}