/* ============================================================
   DOTA 2 COUNTER PICKS — ЛЕНДИНГ
   Дизайн "CARBON / BLOOD": уголь · кровавый красный · белый.
   Токены и визуальный язык взяты из самого приложения.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg-0: #0d0d0f;
  --bg-1: #121214;
  --bg-2: #17171a;
  --bg-3: #1f1f23;

  --red:    #c0202a;
  --red-2:  #e03540;
  --red-dim:#7a1620;

  --white:  #f5f5f5;
  --ink:    #f5f5f5;
  --ink-dim:#b8b8bd;
  --ink-mut:#8a8a92;
  --ink-faint:#5a5a62;

  --line:   #26262b;
  --line-2: #34343b;

  --attr-str: #d24b3e;
  --attr-agi: #5aa469;
  --attr-int: #4a86b8;
  --attr-uni: #c79a3e;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  --e-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 140ms var(--e-out);
  --t-mid:  240ms var(--e-out);

  --header-h: 72px;
  --max-w: 1280px;

  --sh: 0 10px 30px rgba(0,0,0,0.5);
}

/* ============= RESET ============= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }
a { color: inherit; text-decoration: none; }

/* ============= КУРСОР В СТИЛЕ DOTA ============= */
html, body { cursor: url('cursor.svg') 3 2, auto; }
a, button, summary, .shot, .hero-slot, .stat-card, .feature-card, .theme-toggle,
.nav-link, [role="button"], label { cursor: url('cursor-pointer.svg') 3 2, pointer; }
.ba, .ba-handle, .ba-knob { cursor: ew-resize; }
.search-input, input, textarea { cursor: url('cursor.svg') 3 2, text; }

/* Плавная смена темы */
body, .site-header, .feature-card, .step, .shot, .faq-item, .cta, .stat-card,
.mockup-window, .ba-card { transition: background-color var(--t-mid), border-color var(--t-mid); }

/* ============= КАСТОМНЫЙ КРАСНЫЙ СКРОЛЛБАР ============= */
html { scrollbar-width: thin; scrollbar-color: var(--red-dim) var(--bg-1); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--red-dim), var(--red)); border-radius: 6px; border: 2px solid var(--bg-1); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--red), var(--red-2)); }

/* ============= ТЁМНАЯ ТЕМА (уголь → ещё темнее) ============= */
html.theme-darker {
  --bg-0: #050507;
  --bg-1: #0a0a0c;
  --bg-2: #0e0e11;
  --bg-3: #16161a;
  --line: #1b1b20;
  --line-2: #26262c;
  --ink-mut: #7c7c85;
}

/* ============= ИНДИКАТОР ПРОГРЕССА СКРОЛЛА ============= */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--red), var(--red-2)); box-shadow: 0 0 10px rgba(224,53,64,0.6); }

/* Заголовочная типографика */
.section-title, .hero-title, .logo, .stat-value, .step-num,
.cta-title, .feature-card h3 {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ============= ФОН ============= */
.bg-animated { position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(900px 500px at 50% -8%, rgba(192,32,42,0.16), transparent 60%),
    linear-gradient(180deg, #0d0d0f, #0a0a0c);
}
.bg-animated::after { content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 38px,
    rgba(255,255,255,0.012) 38px, rgba(255,255,255,0.012) 39px);
}

/* ============= HEADER ============= */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(13,13,15,0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-container {
  max-width: var(--max-w); height: 100%; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 11px; font-size: 1.15rem; letter-spacing: 0.5px; text-transform: uppercase; }
.logo i { color: var(--red); font-size: 1.3rem; }
.logo-accent { color: var(--red); }

.nav-menu { display: flex; gap: 2px; list-style: none; align-items: center; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 7px; padding: 9px 12px;
  color: var(--ink-mut); font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap;
  transition: color var(--t-fast);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--red); }
.nav-link:hover::after { opacity: 0.6; }
.nav-link.active::after { opacity: 1; }
.nav-cta { margin-left: 6px; }
.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.3rem; cursor: pointer; }

/* ============= КНОПКИ ============= */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  font-family: inherit; font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--white); background: var(--bg-2); cursor: pointer; transition: var(--t-fast);
}
.btn:hover { border-color: var(--red); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-secondary { background: var(--bg-1); }
.btn-secondary:hover { border-color: var(--line-2); background: var(--bg-3); }
.btn-gold { background: var(--red); border-color: var(--red); color: #fff; }
.btn-gold:hover { background: var(--red-2); border-color: var(--red-2); box-shadow: 0 8px 24px rgba(192,32,42,0.35); }
.btn-sm { padding: 9px 16px; font-size: 0.74rem; }
.btn-lg { padding: 18px 38px; font-size: 0.92rem; }

/* ============= LAYOUT ============= */
main { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-eyebrow { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--red-2); margin-bottom: 14px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.05; text-transform: uppercase; color: var(--white); }
.section-title::after { content: ''; display: block; width: 56px; height: 4px; background: var(--red); margin: 18px auto 0; }
.section-sub { color: var(--ink-mut); font-size: 1rem; margin-top: 18px; }

/* ============= HERO ============= */
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2);
  font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-dim);
}
.hero-badge i { color: var(--red); }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 0.95; text-transform: uppercase; letter-spacing: -0.02em; color: var(--white); }
.hero-title .accent { color: var(--red); }
.hero-lead { color: var(--ink-dim); font-size: 1.1rem; max-width: 540px; margin: 22px 0 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0 30px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-mut); }
.hero-meta i { color: var(--red); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 16px; }
.hero-note b { color: var(--ink-dim); font-weight: 600; }

/* ============= APP MOCKUP (превью интерфейса) ============= */
.mockup { position: relative; }
.mockup-window {
  border-radius: var(--r-lg); overflow: hidden; background: var(--bg-1);
  border: 1px solid var(--line-2); box-shadow: var(--sh);
}
.mockup-glow { position: absolute; inset: -30px -30px 10px; z-index: -1;
  background: radial-gradient(60% 50% at 50% 30%, rgba(192,32,42,0.28), transparent 70%); filter: blur(10px); }
.mockup-bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mockup-dots span:first-child { background: var(--red-dim); }
.mockup-title { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--ink-mut); text-transform: uppercase; letter-spacing: 0.6px; }
.mockup-title i { color: var(--red); }
.mockup-body { padding: 18px; }
.mk-h2 { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--red-2); margin-bottom: 10px; font-weight: 700; }
.mk-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 18px; }
.mk-slot { position: relative; aspect-ratio: 1.5 / 1; border-radius: var(--r-sm); background: var(--bg-3); border: 1px solid var(--red-dim); overflow: hidden; }
.mk-slot.empty { border-color: var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--ink-faint); }
.mk-slot img { width: 100%; height: 100%; object-fit: cover; }
.mk-slot .badge { position: absolute; top: 3px; left: 4px; font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; color: #fff; background: var(--red); border-radius: 2px; padding: 0 4px; }
.mk-resulttitle { display: flex; align-items: center; gap: 8px; font-family: 'Archivo Black', sans-serif; font-size: 0.9rem; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.mk-resulttitle i { color: var(--red); }
.mk-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 13px; align-items: center; padding: 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--red); margin-bottom: 8px; }
.mk-card img { width: 56px; border-radius: var(--r-sm); }
.mk-card .name { font-family: 'Archivo Black', sans-serif; font-size: 0.82rem; text-transform: uppercase; color: var(--white); }
.mk-card .reason { font-size: 0.68rem; color: var(--ink-mut); margin-top: 3px; }
.mk-card .pct { font-family: 'Archivo Black', sans-serif; font-size: 1.3rem; color: var(--red-2); line-height: 1; text-align: center; }
.mk-card .pct small { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.5rem; letter-spacing: 1px; color: var(--ink-mut); margin-top: 3px; }

/* ============= STAT ROW ============= */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 8px 0 0; }
.stat-card { position: relative; padding: 28px 20px; text-align: center; background: var(--bg-1); transition: background var(--t-fast); }
.stat-card:hover { background: var(--bg-2); }
.stat-card::before { content: ''; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--red); transition: width var(--t-mid); }
.stat-card:hover::before { width: 100%; }
.stat-value { font-size: 2.2rem; line-height: 1; color: var(--white); }
.stat-label { margin-top: 10px; font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-mut); }

/* ============= FEATURES ============= */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature-card { position: relative; padding: 28px 24px; border-radius: var(--r-md); background: var(--bg-1); border: 1px solid var(--line); border-top: 2px solid var(--line-2); transition: var(--t-fast); overflow: hidden; }
.feature-card:hover { border-color: var(--red); border-top-color: var(--red); transform: translateY(-4px); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--bg-3); border: 1px solid var(--line-2); color: var(--red); font-size: 1.3rem; margin-bottom: 18px; }
.feature-card:hover .feature-icon { background: var(--red); color: #fff; border-color: var(--red); }
.feature-card h3 { font-size: 1.05rem; text-transform: uppercase; color: var(--white); margin-bottom: 10px; letter-spacing: 0; }
.feature-card p { color: var(--ink-mut); font-size: 0.9rem; line-height: 1.6; }

/* ============= STEPS ============= */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--r-md); background: var(--bg-1); border: 1px solid var(--line); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--red); color: #fff; font-size: 1.2rem; margin-bottom: 16px; }
.step h3 { font-size: 1rem; color: var(--white); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 9px; }
.step p { color: var(--ink-mut); font-size: 0.88rem; }

/* ============= DOWNLOAD CTA ============= */
.cta { position: relative; text-align: center; padding: 64px 32px; border-radius: var(--r-lg); background: var(--bg-1); border: 1px solid var(--line); border-top: 3px solid var(--red); overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: 0; background: radial-gradient(700px 300px at 50% -20%, rgba(192,32,42,0.18), transparent 65%); }
.cta > * { position: relative; z-index: 1; }
.cta-title { font-size: clamp(1.8rem, 4vw, 3rem); text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.cta-sub { color: var(--ink-dim); max-width: 560px; margin: 0 auto 32px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.specs { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.spec { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.spec .k { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-mut); }
.spec .v { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--white); font-size: 0.95rem; }
.spec .v i { color: var(--red); margin-right: 6px; }

/* ============= SCREENSHOTS / GALLERY ============= */
.shots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.shot {
  border-radius: var(--r-lg); overflow: hidden; background: var(--bg-1);
  border: 1px solid var(--line-2); box-shadow: var(--sh); cursor: pointer;
  transition: var(--t-fast);
}
.shot:hover { border-color: var(--red); transform: translateY(-4px); }
.shot-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.shot-bar .dots { display: flex; gap: 6px; }
.shot-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.shot-bar .dots span:first-child { background: var(--red-dim); }
.shot-bar .label { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-dim); }
.shot-bar .label i { color: var(--red); }
.shot-frame { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.shot-frame img { width: 100%; display: block; object-fit: cover; object-position: top; }
.shot-frame::after {
  content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm);
  background: rgba(0,0,0,0.6); color: #fff; opacity: 0; transition: var(--t-fast);
}
.shot:hover .shot-frame::after { opacity: 1; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; background: rgba(0,0,0,0.88); overflow-y: auto; }
.lightbox.active { display: flex; animation: lbIn 200ms ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 920px; width: 100%; border-radius: var(--r-md); border: 1px solid var(--line-2); }
.lightbox-close { position: fixed; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: var(--r-sm); cursor: pointer; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--white); font-size: 1.2rem; transition: var(--t-fast); }
.lightbox-close:hover { background: var(--red); border-color: var(--red); }

@media (max-width: 768px) { .shots-grid { grid-template-columns: 1fr; } }

/* ============= АВТОРИЗАЦИЯ / КАБИНЕТ ============= */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 56px 0 80px; }
.auth-card { padding: 32px 30px; border-radius: var(--r-lg); background: var(--bg-1); border: 1px solid var(--line); border-top: 3px solid var(--red); }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px; }
.auth-tab { flex: 1; padding: 10px; border: none; border-radius: var(--r-sm); background: transparent; color: var(--ink-mut); font-family: inherit; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: var(--t-fast); }
.auth-tab.active { background: var(--red); color: #fff; }
.field-group { margin-bottom: 16px; }
.field-group label { display: block; font-size: 0.78rem; color: var(--ink-mut); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 7px; }
.field-input { width: 100%; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-0); border: 1px solid var(--line-2); color: var(--ink); font-family: inherit; font-size: 0.95rem; transition: border-color var(--t-fast); }
.field-input::placeholder { color: var(--ink-faint); }
.field-input:focus { outline: none; border-color: var(--red); }
/* Гасим белый фон автозаполнения Chrome/Edge — держим угольный */
.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus,
.field-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-0) inset;
          box-shadow: 0 0 0 1000px var(--bg-0) inset;
  caret-color: var(--ink);
  transition: background-color 99999s ease-in-out 0s;
}
/* Переключатель показа пароля (Observer ↔ Sentry) */
.password-wrap { position: relative; }
.password-wrap .field-input { padding-right: 48px; }
.pw-toggle {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; padding: 5px; border: none; border-radius: var(--r-sm);
  background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.pw-toggle:hover { background: var(--bg-3); }
.pw-toggle img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  /* мягкое золотое свечение Observer */
  filter: drop-shadow(0 0 3px rgba(201,154,62,0.55));
  transition: filter var(--t-fast);
}
.pw-toggle:hover img { filter: drop-shadow(0 0 5px rgba(201,154,62,0.85)); }
/* когда пароль показан — Sentry, бирюзовое свечение */
.pw-toggle.shown img { filter: drop-shadow(0 0 3px rgba(38,170,165,0.6)); }
.pw-toggle.shown:hover img { filter: drop-shadow(0 0 5px rgba(38,170,165,0.9)); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.auth-msg { margin-top: 14px; padding: 11px 14px; border-radius: var(--r-sm); font-size: 0.86rem; display: none; }
.auth-msg.error { display: block; background: rgba(192,32,42,0.12); border: 1px solid var(--red-dim); color: var(--red-2); }
.auth-msg.success { display: block; background: rgba(90,164,105,0.12); border: 1px solid #2f5d3a; color: var(--attr-agi); }
.auth-alt { text-align: center; margin-top: 18px; color: var(--ink-mut); font-size: 0.85rem; }

/* Кабинет */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 920px; margin: 0 auto; }
.account-card { padding: 26px 24px; border-radius: var(--r-lg); background: var(--bg-1); border: 1px solid var(--line); }
.account-card.full { grid-column: 1 / -1; }
.account-card h3 { display: flex; align-items: center; gap: 9px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-mut); margin-bottom: 18px; }
.account-card h3 i { color: var(--red); }
.sub-status { display: flex; align-items: center; gap: 14px; }
.sub-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.sub-dot.on { background: var(--attr-agi); box-shadow: 0 0 12px rgba(90,164,105,0.6); }
.sub-dot.off { background: var(--ink-faint); }
.sub-state { font-family: 'Archivo Black', sans-serif; font-size: 1.5rem; text-transform: uppercase; }
.sub-state.on { color: var(--attr-agi); }
.sub-state.off { color: var(--ink-dim); }
.sub-detail { color: var(--ink-mut); font-size: 0.9rem; margin-top: 8px; }
.sub-detail b { color: var(--white); font-family: 'JetBrains Mono', monospace; }
.account-email { font-family: 'JetBrains Mono', monospace; color: var(--ink-dim); font-size: 0.9rem; word-break: break-all; }
.redeem-row { display: flex; gap: 10px; }
.redeem-row .field-input { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; }
.history-list { list-style: none; display: grid; gap: 8px; }
.history-list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); font-size: 0.86rem; }
.history-list .h-detail { color: var(--ink-dim); }
.history-list .h-date { color: var(--ink-faint); font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; white-space: nowrap; }
.history-empty { color: var(--ink-faint); font-size: 0.86rem; }
.account-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
@media (max-width: 720px) { .account-grid { grid-template-columns: 1fr; } .redeem-row { flex-direction: column; } }

/* ============= ТАРИФЫ / ПОДПИСКА ============= */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--r-lg); background: var(--bg-1); border: 1px solid var(--line); transition: var(--t-fast); }
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan-pro { border-top: 3px solid var(--red); }
.plan-pro:hover { border-color: var(--red); }
.plan-badge { position: absolute; top: -11px; right: 20px; padding: 4px 12px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; letter-spacing: 1px; text-transform: uppercase; background: var(--red); color: #fff; }
.plan-name { font-family: 'Archivo Black', sans-serif; font-size: 1.1rem; text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.plan-tagline { color: var(--ink-mut); font-size: 0.85rem; margin-bottom: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-price .amount { font-family: 'Archivo Black', sans-serif; font-size: 2.4rem; line-height: 1; color: var(--white); }
.plan-price .per { color: var(--ink-mut); font-size: 0.85rem; }
.plan-note { color: var(--ink-faint); font-size: 0.74rem; margin-bottom: 20px; min-height: 1em; }
.plan-features { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-dim); font-size: 0.88rem; }
.plan-features li i { color: var(--red); margin-top: 3px; font-size: 0.8rem; }
.plan-features li.muted { color: var(--ink-faint); }
.plan-features li.muted i { color: var(--ink-faint); }
.plan .btn { width: 100%; justify-content: center; }
.plans-hint { text-align: center; color: var(--ink-faint); font-size: 0.78rem; margin-top: 22px; }
.plans-hint i { color: var(--red); }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* ============= FAQ ============= */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { border-radius: var(--r-md); background: var(--bg-1); border: 1px solid var(--line); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; color: var(--white); font-size: 0.96rem; transition: var(--t-fast); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--red); transition: transform var(--t-fast); }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--bg-2); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--ink-mut); font-size: 0.9rem; line-height: 1.65; }

/* ============= ЮР-СТРАНИЦЫ (оферта/политика) ============= */
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 48px 0 60px; }
.legal-wrap h1 { font-family: 'Archivo Black', sans-serif; font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.legal-meta { color: var(--ink-faint); font-size: 0.82rem; margin-bottom: 28px; font-family: 'JetBrains Mono', monospace; }
.legal-wrap h2 { font-size: 1.05rem; color: var(--white); text-transform: uppercase; letter-spacing: 0.3px; margin: 28px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-wrap h2:first-of-type { border-top: none; padding-top: 0; }
.legal-wrap p, .legal-wrap li { color: var(--ink-dim); font-size: 0.93rem; line-height: 1.7; }
.legal-wrap p { margin-bottom: 12px; }
.legal-wrap ul, .legal-wrap ol { margin: 0 0 12px 22px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap a { color: var(--red-2); }
.legal-wrap b { color: var(--white); }
.req-card { margin-top: 8px; padding: 20px 22px; border-radius: var(--r-md); background: var(--bg-1); border: 1px solid var(--line); border-left: 3px solid var(--red); }
.req-card div { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.9; }
.req-card b { color: var(--white); }

/* Реквизиты в футере */
.footer-req { max-width: var(--max-w); margin: 0 auto 8px; color: var(--ink-faint); font-size: 0.76rem; line-height: 1.7; }
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.footer-links a { color: var(--ink-mut); font-size: 0.8rem; }
.footer-links a:hover { color: var(--red-2); }

/* ============= FOOTER ============= */
footer { text-align: center; padding: 44px 24px 56px; color: var(--ink-mut); font-size: 0.82rem; line-height: 1.8; border-top: 1px solid var(--line); margin-top: 40px; }
footer a { color: var(--red-2); transition: var(--t-fast); }
footer a:hover { color: var(--white); }
footer .fa-heart { color: var(--red); }
.footer-disclaimer { color: var(--ink-faint); font-size: 0.74rem; margin-top: 8px; }

/* ============= ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ ============= */
html.theme-darker .site-header { background: rgba(5,5,7,0.92); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-sm); cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-dim);
  font-size: 0.95rem; transition: var(--t-fast); flex-shrink: 0;
}
.theme-toggle:hover { color: var(--white); border-color: var(--red); transform: translateY(-2px); }
.theme-toggle .fa-sun { display: none; }
html.theme-darker .theme-toggle .fa-moon { display: none; }
html.theme-darker .theme-toggle .fa-sun { display: inline; color: var(--red-2); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ============= HERO: АРТ-ФОН + ПАРАЛЛАКС ============= */
.hero { position: relative; }
.hero-art {
  position: absolute; right: -3%; top: 30%; z-index: 0;
  width: min(58%, 700px); transform: translateY(-50%);
  -webkit-mask-image: radial-gradient(82% 92% at 60% 42%, #000 58%, transparent 90%);
          mask-image: radial-gradient(82% 92% at 60% 42%, #000 58%, transparent 90%);
  filter: saturate(1) contrast(1.08) brightness(1.08) drop-shadow(0 0 44px rgba(192,32,42,0.4));
  opacity: 0.95; pointer-events: none; will-change: transform;
}
.hero-art::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg-0) 0%, transparent 38%),
              linear-gradient(0deg, var(--bg-0) 0%, transparent 24%); }
.hero-copy { position: relative; z-index: 3; }
/* мокап — полупрозрачная подложка, чтобы Axe читался за ним */
.mockup { position: relative; z-index: 2; will-change: transform; }
.parallax { transition: transform 120ms ease-out; }
@media (max-width: 900px) { .hero-art { width: 86%; right: -14%; top: 50%; opacity: 0.32; } }

/* ============= BEFORE / AFTER СЛАЙДЕР ============= */
.ba-wrap { max-width: 920px; margin: 0 auto; }
.ba {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: var(--sh);
  user-select: none; touch-action: pan-y; aspect-ratio: 16 / 8;
}
.ba-layer { position: absolute; inset: 0; }
.ba-before { clip-path: inset(0 calc(100% - var(--ba, 50%)) 0 0); z-index: 2; }
.ba-card { width: 100%; height: 100%; padding: 34px 40px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.ba-defeat { background: radial-gradient(120% 130% at 0% 0%, rgba(192,32,42,0.22), transparent 55%), var(--bg-1); }
.ba-victory { background: radial-gradient(120% 130% at 100% 0%, rgba(90,164,105,0.20), transparent 55%), var(--bg-1); align-items: flex-end; text-align: right; }
.ba-victory .ba-tag { align-self: flex-end; }
.ba-victory .ba-row { justify-content: flex-end; }
.ba-victory .ba-desc { margin-left: auto; }
.ba-tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); }
.ba-defeat .ba-tag { color: var(--red-2); }
.ba-victory .ba-tag { color: var(--attr-agi); }
.ba-outcome { font-family: 'Archivo Black', sans-serif; font-size: clamp(1.6rem, 4vw, 2.8rem); text-transform: uppercase; line-height: 0.95; }
.ba-defeat .ba-outcome { color: var(--red-2); }
.ba-victory .ba-outcome { color: var(--attr-agi); }
.ba-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ba-vs { display: flex; align-items: center; gap: 10px; }
.ba-vs img { width: 64px; border-radius: var(--r-sm); border: 1px solid var(--line-2); display: block; }
.ba-vs .x { font-family: 'JetBrains Mono', monospace; color: var(--ink-mut); font-weight: 700; }
.ba-desc { color: var(--ink-dim); font-size: 0.92rem; max-width: 360px; }
.ba-wr { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1.05rem; }
.ba-defeat .ba-wr { color: var(--red-2); }
.ba-victory .ba-wr { color: var(--attr-agi); }
/* ручка */
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--ba, 50%); z-index: 5;
  width: 2px; background: var(--white); transform: translateX(-1px); cursor: ew-resize; }
.ba-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--white);
  display: flex; align-items: center; justify-content: center; color: var(--white); box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
.ba-knob i { font-size: 0.85rem; }
.ba-knob i + i { margin-left: 2px; }
.ba-hint { text-align: center; color: var(--ink-faint); font-size: 0.78rem; margin-top: 16px; }
.ba-hint i { color: var(--red); }
@media (max-width: 560px) { .ba { aspect-ratio: 3 / 4; } .ba-card { padding: 22px 22px; } .ba-vs img { width: 48px; } }

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) { :root { --header-h: 64px; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; }
  .mockup { max-width: 520px; margin: 0 auto; width: 100%; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
/* Навигация сворачивается в бургер раньше — чтобы пункты не теснились */
@media (max-width: 1100px) {
  .nav-menu {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(80vw, 290px);
    flex-direction: column; align-items: stretch; padding: 22px 14px; gap: 4px;
    background: var(--bg-1); border-left: 1px solid var(--line);
    transform: translateX(110%); transition: transform var(--t-mid); z-index: 99;
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link { padding: 14px; font-size: 0.9rem; letter-spacing: 0.6px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .menu-toggle { display: block; }
}
@media (max-width: 768px) {
  .header-container { padding: 0 18px; }
  main { padding: 0 18px; }
  .section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
  .specs { gap: 20px; }
}

/* Уважение к настройке «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  .hero-art, .mockup, .parallax { transform: none !important; transition: none !important; }
  * { scroll-behavior: auto; }
}
