/* ===========================================================================
   Whispy - лендинг whispy.su
   Светлая палитра по умолчанию, тёмная - переключателем (data-theme="dark").
   Один акцент (синий), без градиентных «блобов» и scroll-reveal анимаций:
   движение - только на hover/focus и в двух продуктовых демо (видео + мульти-скан).
   =========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
  --font-ui: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
             "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Cascadia Mono", "SF Mono", Consolas,
               "Liberation Mono", monospace;

  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --line: #e4e7ec;
  --line-strong: #d3d8e0;

  --ink: #0c1220;
  --text: #3d4553;
  --muted: #676f7e;   /* AA (≥4.5:1) и на белом, и на --bg-soft */

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-ink: #ffffff;
  --accent-soft: #eff4ff;
  --accent-line: #cddcff;
  --ok: #0f8a4d;

  --stage: #0d111a;
  --stage-2: #111725;
  --stage-line: rgba(255, 255, 255, .09);
  --stage-text: #e8ebf2;
  --stage-muted: #98a1b2;
  --stage-accent: #6ea8fe;

  --shadow-xs: 0 1px 2px rgba(12, 18, 32, .06);
  --shadow-sm: 0 1px 2px rgba(12, 18, 32, .05), 0 4px 12px -6px rgba(12, 18, 32, .10);
  --shadow-md: 0 2px 6px rgba(12, 18, 32, .06), 0 18px 36px -22px rgba(12, 18, 32, .30);
  --shadow-lg: 0 4px 10px rgba(12, 18, 32, .05), 0 40px 80px -44px rgba(12, 18, 32, .55);

  --r-card: 12px;
  --r-btn: 8px;
  --r-media: 16px;

  --header-h: 64px;
  --pad: 24px;
}

:root[data-theme="dark"] {
  --bg: #0c0f16;
  --bg-soft: #10141d;
  --surface: #131824;
  --surface-2: #161c29;
  --line: #232a38;
  --line-strong: #2f3849;

  --ink: #f1f4f9;
  --text: #c2c9d5;
  --muted: #8a93a3;

  --accent: #6ea8fe;
  --accent-hover: #8dbcff;
  --accent-ink: #0b1020;
  --accent-soft: rgba(110, 168, 254, .12);
  --accent-line: rgba(110, 168, 254, .28);
  --ok: #4ade80;

  --stage: #090c13;
  --stage-2: #0e131e;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px -8px rgba(0, 0, 0, .6);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, .35), 0 20px 40px -26px rgba(0, 0, 0, .8);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, .35), 0 44px 90px -48px rgba(0, 0, 0, .9);
}

/* ---------- 2. Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 640; letter-spacing: -.021em; line-height: 1.18; text-wrap: balance; }
h1 { font-weight: 660; letter-spacing: -.032em; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-btn); padding: 10px 14px; box-shadow: var(--shadow-md);
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

kbd {
  font-family: var(--font-mono);
  font-size: .78em;
  line-height: 1;
  padding: .28em .45em .34em;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  white-space: nowrap;
  vertical-align: .06em;
}
.plus { color: var(--muted); font-size: .78em; margin: 0 .16em; }
.mono { font-family: var(--font-mono); font-size: .92em; }

/* ---------- 3. Раскладка ---------- */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.container-wide { max-width: 1200px; }
.container-narrow { max-width: 820px; }

.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.15rem); margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 1.02rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}

.fineprint { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.fineprint.center { text-align: center; max-width: 720px; margin: 28px auto 0; }
.figure-note { color: var(--muted); font-size: .84rem; margin-top: 12px; }

/* ---------- 4. Кнопки ---------- */
.button {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 40px; padding: 0 16px;
  font-size: .93rem; font-weight: 560; letter-spacing: -.005em;
  border: 1px solid transparent; border-radius: var(--r-btn);
  background: var(--btn-bg); color: var(--ink);
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.button:hover { text-decoration: none; }
.button:active { transform: translateY(1px); }
.button svg { width: 17px; height: 17px; flex: none; }

.button-primary { --btn-bg: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-xs); }
.button-primary:hover { --btn-bg: var(--accent-hover); }

.button-outline { border-color: var(--line-strong); background: var(--surface); }
.button-outline:hover { border-color: var(--muted); background: var(--surface-2); }

.button-quiet { color: var(--text); }
.button-quiet:hover { color: var(--ink); background: var(--bg-soft); }

.button-lg { height: 46px; padding: 0 20px; font-size: 1rem; }
.button-block { width: 100%; }
.button.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ---------- 5. Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding: 10px 0;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(12,18,32,.02), 0 8px 24px -20px rgba(12,18,32,.5); }

/* Матовое стекло шапки оставляем только там, где есть мышь. backdrop-filter на
   sticky-элементе WebKit выносит в отдельный композитный слой, и на iOS этот
   слой перерисовывается не в такт прокрутке: пока палец тянет страницу, часть
   полосы остаётся с прошлого кадра - сквозь неё просвечивает уже уехавший текст,
   а край стоячего слоя виден как скруглённая ступенька поперёк шапки. Фон на 82%
   эту кашу только проявляет. На тач-экранах снимаем и размытие, и прозрачность:
   сплошная заливка выглядит одинаково независимо от того, успел ли слой
   перерисоваться. На десктопе эффект работает штатно и остаётся. */
@media (hover: none) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.header-shell {
  max-width: 1120px; margin: 0 auto; padding: 0 var(--pad);
  height: 44px; display: flex; align-items: center; gap: 22px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; stroke: none; }
.brand-name { font-size: 1.06rem; font-weight: 640; letter-spacing: -.02em; }

.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a {
  color: var(--text); font-size: .91rem; font-weight: 500;
  padding: 7px 10px; border-radius: 7px;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  color: var(--muted); background: transparent;
  border: 1px solid transparent; border-radius: 8px; cursor: pointer;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.icon-button:hover { color: var(--ink); background: var(--bg-soft); border-color: var(--line); }
.icon-button svg { width: 19px; height: 19px; }
/* Показываем иконку того состояния, в которое переключимся: в светлой теме - луну. */
.icon-button .i-sun { display: none; }
:root[data-theme="dark"] .icon-button .i-sun { display: block; }
:root[data-theme="dark"] .icon-button .i-moon { display: none; }

/* Без явных стилей <button> на iOS Safari рисуется нативно - белым скруглённым
   прямоугольником, а иконка под ним не видна. Приводим к виду .icon-button. */
.burger {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  color: var(--ink); background: transparent;
  -webkit-appearance: none; appearance: none;
  border: 1px solid transparent; border-radius: 8px; cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }

/* ---------- 6. Hero ---------- */
.hero { padding: 76px 0 0; text-align: center; }
/* inline-block, а не inline-flex базового .eyebrow: во флексе строка при переносе
   уходит во ВТОРУЮ колонку, а точка остаётся флекс-элементом у левого края -
   на телефоне она отрывалась от слов и висела у самой кромки экрана. В обычном
   потоке точка переносится вместе с текстом, а блок центрируется как абзац. */
.hero .eyebrow {
  display: inline-block; max-width: 100%;
  text-transform: none; letter-spacing: .01em; font-size: .84rem; font-weight: 500;
  color: var(--text); text-wrap: balance;
}
.hero .eyebrow .pulse-dot { display: inline-block; vertical-align: middle; margin-right: 8px; }

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent);
}

/* Словесный знак: марка и «Whispy» растут вместе, поэтому пропорция между ними
   держится на любой ширине. gap задан в em от размера надписи по той же причине. */
/* Именно flex, а не inline-flex: .eyebrow выше тоже inline-level, и знак вставал
   с ним на одну строку, уезжая вправо от центра. */
.hero-brand {
  display: flex; align-items: center; justify-content: center; gap: .3em;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 1.3rem + 5vw, 4.6rem);
}
/* stroke: none - как у .brand-mark. Без этого глобальное правило svg{stroke:currentColor}
   обводит плитку и марку цветом текста: в тёмной теме он светлый, и вокруг логотипа
   появляется белый ореол. */
.hero-mark { width: .92em; height: .92em; flex: none; border-radius: .2em; stroke: none; }
.hero-title { font-size: 1em; line-height: 1; letter-spacing: -.038em; margin: 0; }

.hero-tagline {
  max-width: 660px; margin: 0 auto 14px;
  color: var(--ink); font-weight: 520; letter-spacing: -.015em;
  font-size: clamp(1.12rem, 1rem + .6vw, 1.5rem); line-height: 1.38;
  text-wrap: balance;
}
.hero-lead {
  max-width: 620px; margin: 0 auto; color: var(--muted);
  font-size: clamp(1rem, .95rem + .3vw, 1.14rem); line-height: 1.58;
}
/* Каждая фраза с новой строки - блоками, а не <br>. Разница видна на телефоне:
   <br> рвёт строку по ширине контейнера, и длинная фраза ложится как «…Whispy не /
   попадают в захват экрана» - обрубок в две буквы. balance разносит фразу на
   равные строки, а перенос всё так же приходится на границу предложения. */
.hero-lead > span { display: block; text-wrap: balance; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 16px; }

/* Строка доверия: три возражения, которые чаще всего мешают нажать «Скачать» -
   «а сработает ли в моём созвоне», «а пустит ли рабочий ноут», «а если не подойдёт». */
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center;
  margin: 26px 0 18px;
}
.hero-trust li {
  /* flex-start + text-align:left: когда длинный пункт переносится на две строки,
     иконка остаётся у ПЕРВОЙ строки, а не центрируется по вертикали и не
     отрывается от текста (как было на узком экране). */
  display: flex; align-items: flex-start; gap: 8px; text-align: left;
  color: var(--text); font-size: .89rem;
}
.hero-trust svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--ok); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  color: var(--muted); font-size: .84rem;
}
.hero-meta i { color: var(--line-strong); font-style: normal; }
.hero-meta .muted-note { opacity: .8; }

/* Тёмная полоса во всю ширину под ролик. Кадр 16:9 показывается целиком: у ролика
   есть сцены с крупной карточкой поверх панелей, и любой кроп их режет. Вместо кропа
   пустые поля кадра сливаются с фоном полосы - «воздух» вокруг окон читается как
   часть витрины, а не как пустое место в белой странице. */
.hero-showcase {
  margin-top: 46px;
  padding: 48px 0 40px;
  background: #0a0d14;
  border-top: 1px solid #151a26;
  border-bottom: 1px solid #151a26;
}

/* Полоса ушла с экрана - всё, что в ней крутится, ставим на паузу (класс вешает
   site.js). Гасит пульсацию индикаторов и мигание каретки в демо. */
.hero-showcase.is-idle * { animation-play-state: paused !important; }

.player {
  position: relative; margin: 0;   /* у figure свой margin-inline: 40px */
  aspect-ratio: 16 / 9;
  border-radius: var(--r-media); overflow: hidden;
  background: radial-gradient(120% 90% at 78% 12%, #141a28 0%, #0d1018 42%, #07090e 100%);
  box-shadow: 0 30px 90px -40px rgba(0, 0, 0, .9);
}

/* Демо живёт в кадре фиксированного размера и целиком масштабируется под плеер:
   так композиция (размер окон, поля вокруг) одинакова и на 1152px, и на 378px,
   а текст остаётся векторным. Коэффициент проставляет site.js. */
.demo-frame {
  position: absolute; left: 50%; top: 50%;
  width: 1120px; height: 630px;
  /* Поворот нужен только в развёрнутом виде на вертикальном экране: кадр 16:9
     в портретном телефоне занимает треть высоты, а положенный на бок - почти
     весь экран. Порядок множителей важен: элемент сначала масштабируется,
     потом поворачивается вокруг центра, и только потом центрируется. */
  transform: translate(-50%, -50%) rotate(var(--demo-rotate, 0deg)) scale(var(--demo-scale, 1));
  transform-origin: center;
  /* Кадр - отдельный слой: демо постоянно правит текст внутри, и без этого
     каждая правка перерисовывала бы масштабированное поддерево вместе с фоном
     полосы под ним. */
  will-change: transform;
  contain: layout paint;
}

/* ---------- Демо на весь экран ----------
   На телефоне кадр ужимается до ~360px по ширине, и текст в окнах читается с
   трудом. Кнопка разворачивает демо поверх страницы.

   Почему не только Fullscreen API: Safari на iPhone не умеет разворачивать
   произвольные элементы (там это работает лишь для <video>). Поэтому основной
   механизм - обычный слой position:fixed, он ведёт себя одинаково везде;
   нативный полноэкранный режим включается сверху, если браузер его поддержал,
   и просто прячет свои панели. */
.player-expand {
  position: absolute; z-index: 3; right: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(12, 16, 24, .62); color: #e8ebf2;
  font: 500 .82rem/1 var(--font-ui); cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .15s ease, border-color .15s ease;
}
.player-expand:hover { background: rgba(12, 16, 24, .82); border-color: rgba(255, 255, 255, .28); }
.player-expand svg { width: 15px; height: 15px; stroke: currentColor; }
.player-expand .label-close { display: none; }

/* Разворот. inset:0 вместо width/height:100% - так слой не зависит от того,
   что творится с родителем, а dvh учитывает съезжающую панель мобильного
   браузера (со 100vh низ кадра уезжал под адресную строку). */
.player.is-expanded {
  position: fixed; inset: 0; z-index: 120;
  margin: 0; border-radius: 0; aspect-ratio: auto;
  height: 100vh; height: 100dvh;
  background: #06080d;
}
.player.is-expanded .player-expand { right: max(12px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); }
.player.is-expanded .player-expand .label-open { display: none; }
.player.is-expanded .player-expand .label-close { display: inline; }

/* Пока демо развёрнуто, страница под ним не должна прокручиваться. */
body.is-demo-open { overflow: hidden; }

@media (max-width: 700px) {
  .player-expand { right: 8px; top: 8px; padding: 7px 10px; font-size: .78rem; }

  /* Горизонтальный ряд на узком экране рвался: два коротких пункта вставали по
     центру, длинный - во всю ширину слева. Складываем в аккуратный столбец:
     иконки в одну колонку, текст слева, весь блок по центру. Ширина 340px
     подобрана так, что короткие пункты остаются в строку, а длинный ложится
     в две (замерено: 315 / 259 / 521 px). */
  .hero-trust {
    flex-direction: column; align-items: flex-start;
    max-width: 340px; margin-inline: auto; gap: 12px;
  }
}

/* Переопределения макета демо. В исходнике сцена приколота к top:6% с окнами
   фиксированной высоты - отсюда и бралась пустая треть внизу кадра. Здесь окна
   растягиваются на всю высоту сцены, а сцена стоит по центру. */
/* text-align сбрасываем обязательно: hero центрирует текст, и это наследуется
   внутрь демо - транскрипт и ответ выравнивались по центру вместо левого края. */
.player .whx { height: 100%; text-align: left; }
.player .stage {
  width: 100%; height: 100%; aspect-ratio: auto; min-height: 0;
  border: 0; border-radius: 0; box-shadow: none;
}
.player .scene {
  top: 50%; transform: translate(-50%, -50%);
  width: 992px; height: 500px; align-items: stretch;
}

/* Фон был чёрной пустотой. Рисуем за окнами Whispy окно созвона - шапка с
   кнопками сверху, панель управления снизу. Оно даёт кадру смысл («оверлей
   поверх чужого экрана») и заодно объясняет, почему вокруг темно. Всё в белом
   с непрозрачностью 3-10%, чтобы не спорить с панелями. */
.player .desk {
  inset: 26px; opacity: 1;
  border: 1px solid rgba(255, 255, 255, .055); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 46%);
}
.player .desk::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  border-radius: 13px 13px 0 0;
  background:
    radial-gradient(circle 4.5px at 20px 17px, rgba(255, 255, 255, .10) 98%, transparent 100%),
    radial-gradient(circle 4.5px at 38px 17px, rgba(255, 255, 255, .10) 98%, transparent 100%),
    radial-gradient(circle 4.5px at 56px 17px, rgba(255, 255, 255, .10) 98%, transparent 100%),
    linear-gradient(rgba(255, 255, 255, .035), rgba(255, 255, 255, .035));
}
.player .desk::after {
  content: ""; position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: 236px; height: 34px; border-radius: 999px;
  background:
    radial-gradient(circle 6px at 40px 17px, rgba(255, 255, 255, .13) 98%, transparent 100%),
    radial-gradient(circle 6px at 82px 17px, rgba(255, 255, 255, .13) 98%, transparent 100%),
    radial-gradient(circle 6px at 124px 17px, rgba(255, 255, 255, .13) 98%, transparent 100%),
    radial-gradient(circle 6px at 166px 17px, rgba(255, 255, 255, .13) 98%, transparent 100%),
    radial-gradient(circle 8px at 205px 17px, rgba(248, 113, 113, .20) 98%, transparent 100%),
    linear-gradient(rgba(255, 255, 255, .045), rgba(255, 255, 255, .045));
}
/* База была почти чёрной - приподнимаем, иначе кадр читается как провал. */
.player .stage {
  background: radial-gradient(118% 92% at 74% 10%, #1a2233 0%, #121826 44%, #0b0f18 100%);
}
/* Транскрипт - вспомогательное окно, оно не должно спорить с ответом за внимание. */
/* Глобальный сброс списков гасит маркеры и внутри демо, а в ответе это смысловые
   пункты, а не декор - возвращаем точки и красим их в акцент оверлея. */
.player .whx ul { list-style: disc; padding-left: 20px; }
.player .whx li::marker { color: var(--accent); }

/* ── Производительность демо ────────────────────────────────────────────────
   Исходник рисовался как отдельная страница, где можно не считать кадры. На
   лендинге он живёт постоянно, поэтому три самых дорогих приёма убираем.

   1. backdrop-filter у окон. Панели и так залиты на 92%, размытие под ними
      почти не видно - но браузер пересэмплирует фон каждый кадр, и особенно
      больно это поверх анимированного блюра из пункта 2. */
.player .win,
.player .stamp .card { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* 2. Дрейф светящихся пятен: blur(60px) на элементе больше сцены, который
      бесконечно двигается, - это перерисовка огромной размытой поверхности
      в каждом кадре. Оставляем сами пятна, убираем движение. */
.player .glow .g1, .player .glow .g2 { animation: none; }

/* 3. Виньетка и «стол» - статика, но пусть слои не пересчитываются зря. */
.player .vign, .player .desk { will-change: auto; }

.player #tr { flex: 0 0 25%; height: auto; display: flex; flex-direction: column; }
.player #tr .body { height: auto; flex: 1 1 auto; min-height: 0; }
.player #ov { display: flex; flex-direction: column; }
.player .answer { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.player .content { height: auto; flex: 1 1 auto; min-height: 0; }

.player-play {
  position: absolute; inset: 0; margin: auto;
  width: 74px; height: 74px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  color: #0c1220; background: rgba(255, 255, 255, .94);
  border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .7);
  transition: transform .15s ease, background-color .15s ease;
}
.player-play:hover { transform: scale(1.04); background: #fff; }
.player-play svg { width: 26px; height: 26px; margin-left: 3px; }
.player-play[hidden] { display: none; }

.player-legend {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 28px;
  margin-top: 24px; text-align: left;
}
.player-legend li {
  display: flex; align-items: flex-start; gap: 9px;
  color: #9aa4b6; font-size: .88rem; line-height: 1.45;
}
.player-legend svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: #6ea8fe; }
/* Полоса всегда тёмная, поэтому клавиши здесь не берут светлые токены темы. */
.player-legend kbd {
  font-size: .74em; color: #e8ebf2;
  background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16);
}
.player-legend .plus { color: #6b7488; }

/* ---------- 7. Карточки и возможности ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.feature { transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.feature:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.feature h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature p { font-size: .93rem; color: var(--muted); line-height: 1.55; }

.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 14px;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 9px;
}
.feature-icon svg { width: 18px; height: 18px; }

/* ---------- 7a. Приватный режим (стелс + данные + хоткеи) ---------- */
.section-head-wide { max-width: 780px; }

.stealth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.stealth { padding: 24px 22px; display: flex; flex-direction: column; }
/* Резерв под две строки: заголовки разной длины не сдвигают начало текста,
   и иконки во всём ряду стоят на одной высоте. */
.stealth h3 {
  display: flex; align-items: center; gap: 11px;
  min-height: 2.6em;
  font-size: 1.01rem; line-height: 1.3; margin-bottom: 12px;
}
/* Блок под сеткой механизмов: всё перечисленное выше проверяется живым тестом.
   Намеренно ярче карточек - это единственное место на странице, где мы не
   рассказываем, а предлагаем убедиться, и оно должно останавливать взгляд. */
.stealth-check {
  margin: 26px 0 0;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(37, 99, 235, .09), rgba(37, 99, 235, .03));
}
.stealth-check h3 { margin: 0 0 8px; font-size: 1.06rem; color: var(--ink); }
.stealth-check p { margin: 0 0 14px; max-width: 74ch; font-size: .95rem; color: var(--text); line-height: 1.6; }
.stealth-check b { color: var(--ink); font-weight: 620; }
.stealth-check-cta {
  display: inline-block; padding: 9px 18px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .93rem; font-weight: 600; text-decoration: none;
}
.stealth-check-cta:hover { background: var(--accent-hover); }

.stealth p { font-size: .93rem; color: var(--muted); line-height: 1.58; }
.stealth b { color: var(--ink); font-weight: 580; }
.stealth kbd { font-size: .74em; }

.stealth-icon {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 8px;
}
.stealth-icon svg { width: 16px; height: 16px; }

/* Техническая сноска прижата к низу карточки: нижняя кромка ряда получается ровной. */
.tech {
  font-family: var(--font-mono); font-size: .74rem; line-height: 1.5;
  color: var(--muted);   /* без opacity: мелкий моно и так на грани AA */
}
.stealth .tech { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }

/* ---------- 8. Мульти-скан ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 52px; align-items: center; }
.split-copy h2 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.15rem); margin-bottom: 12px; }

.callout {
  margin: 24px 0 18px; padding: 14px 16px;
  color: var(--ink); font-size: .96rem; font-weight: 520; line-height: 1.5;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 10px;
}

.steps-compact { display: grid; gap: 14px; margin-top: 26px; }
.steps-compact li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: baseline; }
.steps-compact div { font-size: .94rem; color: var(--muted); line-height: 1.5; }
.steps-compact b { color: var(--ink); font-weight: 580; }
.step-key { white-space: nowrap; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 50%;
}

/* «Сцена» мульти-скана - тёмная, как само приложение */
.scan-stage {
  position: relative; aspect-ratio: 16 / 11;
  padding: 14px;
  background: var(--stage); border: 1px solid var(--line);
  border-radius: var(--r-media); overflow: hidden;
  box-shadow: var(--shadow-md);
}

.scan-task {
  height: 100%; display: flex; flex-direction: column;
  background: var(--stage-2); border: 1px solid var(--stage-line);
  border-radius: 10px; overflow: hidden;
}
.scan-topbar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-bottom: 1px solid var(--stage-line);
}
.scan-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.16); }
.scan-title { margin-left: 8px; color: var(--stage-muted); font-size: .72rem; letter-spacing: .01em; }

.scan-viewport { position: relative; flex: 1; overflow: hidden; }
.scan-scroll {
  padding: 12px 16px;
  font-family: var(--font-mono); font-size: .68rem; line-height: 1.85;
  color: var(--stage-text);
  transition: transform .75s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.scan-scroll .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .82; }
.scan-scroll .h { color: var(--stage-accent); opacity: 1; margin-top: 6px; }
.scan-scroll .dim { opacity: .45; }

.scan-flash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(110,168,254,.28), rgba(110,168,254,.02) 60%);
  box-shadow: inset 0 0 0 2px rgba(110, 168, 254, .55);
}
.scan-stage.is-capture .scan-flash { animation: capture-flash .55s ease-out; }
@keyframes capture-flash {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}

.scan-overlay {
  position: absolute; right: 26px; bottom: 26px; width: min(62%, 320px);
  padding: 10px 12px;
  background: rgba(16, 20, 30, .93);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .85);
  backdrop-filter: blur(8px);
}
.scan-overlay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scan-badge {
  color: var(--stage-muted); font-size: .66rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
.scan-counter {
  font-family: var(--font-mono); font-size: .72rem; color: var(--stage-text);
  padding: 2px 8px; border-radius: 999px;
  background: rgba(110, 168, 254, .14); border: 1px solid rgba(110, 168, 254, .3);
  transition: transform .2s ease;
}
.scan-stage.is-capture .scan-counter { transform: scale(1.09); }

.scan-hint {
  margin-top: 7px; color: var(--stage-muted);
  font-size: .74rem; line-height: 1.4;
  transition: opacity .3s ease;
}
.scan-hint b { font-family: var(--font-mono); color: var(--stage-text); font-weight: 500; }

.scan-answer {
  display: grid; gap: 5px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s ease, opacity .35s ease, margin-top .5s ease;
}
.scan-answer .a {
  font-size: .74rem; line-height: 1.45; color: var(--stage-text);
  opacity: 0; transform: translateY(4px);
  transition: opacity .35s ease, transform .35s ease;
}
.scan-stage[data-phase="answer"] .scan-answer { max-height: 140px; opacity: 1; margin-top: 9px; }
.scan-stage[data-phase="answer"] .scan-answer .l1 { opacity: 1; transform: none; transition-delay: .05s; }
.scan-stage[data-phase="answer"] .scan-answer .l2 { opacity: 1; transform: none; transition-delay: .55s; }
.scan-stage[data-phase="answer"] .scan-answer .l3 { opacity: 1; transform: none; transition-delay: 1.05s; }

/* ---------- 8a. База знаний / резюме ---------- */
.kb-stage {
  padding: 18px;
  background: var(--stage); border: 1px solid var(--line);
  border-radius: var(--r-media); box-shadow: var(--shadow-md);
}

.kb-file {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; margin-bottom: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--stage-line); border-radius: 9px;
}
.kb-file svg { width: 16px; height: 16px; flex: none; color: var(--stage-accent); }
.kb-file-name { color: var(--stage-text); font-size: .85rem; font-weight: 520; }
.kb-file-meta { margin-left: auto; color: var(--stage-muted); font-family: var(--font-mono); font-size: .72rem; }

.kb-q {
  position: relative; padding-left: 14px; margin-bottom: 14px;
  color: var(--stage-muted); font-size: .87rem; line-height: 1.5;
}
.kb-q::before { content: ""; position: absolute; left: 0; top: .35em; bottom: .35em; width: 2px; border-radius: 1px; background: var(--stage-line); }

.kb-a { display: grid; gap: 9px; }
.kb-a p { color: var(--stage-text); font-size: .89rem; line-height: 1.58; }
/* Подсветка = доказательство: видно, что именно пришло из файла, а не из общих знаний. */
.kb-a mark {
  padding: 0 3px; border-radius: 3px;
  color: var(--stage-text); background: rgba(110, 168, 254, .18);
  border-bottom: 1px solid rgba(110, 168, 254, .5);
}

.kb-legend {
  display: flex; align-items: center; gap: 8px;
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--stage-line);
  color: var(--stage-muted); font-size: .77rem;
}
.kb-swatch {
  width: 15px; height: 10px; flex: none; border-radius: 3px;
  background: rgba(110, 168, 254, .18); border: 1px solid rgba(110, 168, 254, .5);
}

/* ---------- 9. Инструкция ---------- */
/* Без align-items: start - карточки тянутся до общей высоты, нижняя кромка ряда ровная. */
.howto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.howto { padding: 24px 22px; display: flex; flex-direction: column; }
.howto .howto-note { margin-top: auto; }   /* сноска прижата к низу карточки */
.howto h3 { font-size: 1.06rem; margin: 10px 0 14px; }
.howto-step {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
/* Красная плашка у «чего не делать»: это предупреждения, а не ещё один шаг. */
.howto-warn .howto-step { color: #b42318; background: #fef3f2; border-color: #fecdca; }
:root[data-theme="dark"] .howto-warn .howto-step { color: #fda29b; background: rgba(240, 68, 56, .12); border-color: rgba(240, 68, 56, .3); }

.howto-list { display: grid; gap: 12px; counter-reset: howto; }
.howto-list li {
  position: relative; padding-left: 27px;
  font-size: .92rem; line-height: 1.55; color: var(--muted);
}
.howto-list b { color: var(--ink); font-weight: 580; }
.howto-list kbd { font-size: .74em; }
/* Нумерация счётчиком, а не list-style: маркер надо покрасить и посадить по базовой линии. */
.howto-list li::before {
  counter-increment: howto; content: counter(howto);
  position: absolute; left: 0; top: .1em;
  width: 19px; height: 19px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 50%;
}
.howto-dont li::before {
  counter-increment: none; content: "×";
  font-size: .82rem; color: #b42318; background: #fef3f2; border-color: #fecdca;
}
:root[data-theme="dark"] .howto-dont li::before {
  color: #fda29b; background: rgba(240, 68, 56, .12); border-color: rgba(240, 68, 56, .3);
}

.howto-note {
  padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: .86rem; line-height: 1.5; color: var(--muted);
}
/* У карточки предупреждений сноски нет - списку нужен свой нижний отступ. */
.howto-warn .howto-list { margin-bottom: 0; }

.hotkeys-card { margin-top: 16px; padding: 24px; }
.hotkeys-head {
  display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.hotkeys-head h3 { font-size: 1.06rem; }
.hotkeys-head p { color: var(--muted); font-size: .88rem; max-width: 64ch; }

.hotkeys-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 28px; margin: 0; }
.hotkeys-list > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; }
.hotkeys-list dt { white-space: nowrap; }
.hotkeys-list dd { margin: 0; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.hotkeys-card .fineprint { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- 10. Цены ---------- */
/* Карточки тянутся до общей высоты, лимиты прижаты к низу (margin-top:auto) -
   так нижняя кромка ряда ровная, а «Купить» стоит на одной линии во всех трёх. */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Гарантия возврата - один, но главный довод. Рамкой над карточками тарифов,
   мягкая акцентная подсветка без крика. */
.price-guarantee {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  max-width: 560px; margin: 0 0 24px;
  padding: 12px 20px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: var(--r-card);
  color: var(--text); font-size: .95rem; line-height: 1.4;
}
.price-guarantee svg { width: 18px; height: 18px; flex: none; color: var(--accent); }

/* Lite стоит отдельно и горизонтально: это не «четвёртый Pro подешевле»,
   а другой продукт, и рядом с пропусками он читался бы как урезанный. */
.price-extra {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: center;
  margin-top: 16px; padding: 24px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
.price-extra .eyebrow { margin-bottom: 8px; }
.price-extra h3 { font-size: 1.12rem; margin-bottom: 10px; }
.price-extra-head > p { color: var(--muted); font-size: .93rem; line-height: 1.55; max-width: 64ch; }
.price-extra .price-limits {
  margin-top: 16px; padding-top: 0; border-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; gap: 10px 28px;
}
.price-extra .price-limits dd { min-height: 0; }
.price-extra-buy { display: grid; gap: 12px; justify-items: stretch; }
.price-extra-buy .price-tag { margin: 0; justify-content: flex-start; }

.price { position: relative; display: flex; flex-direction: column; padding: 24px 20px; }
.price-featured {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-md);
}
.price-badge {
  position: absolute; top: -10px; left: 20px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: .04em;
  color: var(--accent-ink); background: var(--accent);
}
.price-name { font-size: .98rem; }
.price-tag { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 10px; }
.price-tag b { font-size: 2rem; font-weight: 660; letter-spacing: -.03em; color: var(--ink); }
.price-tag span { color: var(--muted); font-size: .88rem; }
.price-pitch { color: var(--muted); font-size: .88rem; line-height: 1.5; min-height: 40px; margin-bottom: 18px; }

.price-list { display: grid; gap: 9px; margin: 20px 0 18px; }
.price-list li {
  position: relative; padding-left: 25px;
  font-size: .89rem; line-height: 1.45; color: var(--text);
}
.price-list li::before {
  position: absolute; left: 0; top: 1px;
  width: 17px; height: 17px; display: grid; place-items: center;
  font-size: .8rem; font-weight: 700;
}
.price-list .yes::before { content: "✓"; color: var(--ok); }
.price-list .no { color: var(--muted); }
.price-list .no::before { content: "-"; color: var(--line-strong); }

.price-limits { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.price-limits div { display: grid; gap: 2px; }
.price-limits dt {
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
/* Две строки резерва: блок лимитов одинаковой высоты во всех карточках,
   поэтому его верхняя линейка стоит на одном уровне по всему ряду. */
.price-limits dd { margin: 0; min-height: 2.9em; font-size: .86rem; line-height: 1.45; color: var(--text); }

/* ---------- 10a. Для креаторов ----------
   Тёмная врезка между «Ценами» и FAQ. Страница чередует светлые и приглушённые
   секции строго через одну, поэтому обычная .section-soft в середине сдвинула бы
   ритм на всём хвосте; тёмная полоса стоит вне этого чередования и заодно
   отделяет предложение для другой аудитории от предложения покупателю.

   Ключевой приём: токены темы переопределены НА САМОЙ СЕКЦИИ. Дальше .card,
   .button-outline, .steps-compact, kbd и прочие общие классы берут уже тёмные
   значения и работают внутри без единого отдельного правила. */
.creators {
  --ink: #f1f4f9;
  --text: #c2c9d5;
  --muted: #949daf;          /* на --stage это ≥4.5:1, в отличие от тёмного #8a93a3 */
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .20);
  --accent: #6ea8fe;
  --accent-hover: #8dbcff;
  --accent-ink: #0b1020;
  --accent-soft: rgba(110, 168, 254, .13);
  --accent-line: rgba(110, 168, 254, .30);
  --ok: #4ade80;

  background: var(--stage);
  color: var(--text);
  /* Полосу отделяет от соседей сама заливка; серая линейка .section поверх неё
     дала бы только грязную кромку. */
  border-top-color: transparent;
}

.creators .section-head { margin-bottom: 36px; }

/* Пример кода - единственный конкретный артефакт во всём блоке, поэтому он чуть
   заметнее приглушённого текста шага, в котором лежит. */
.creators .steps-compact .mono {
  padding: .12em .4em; border-radius: 5px;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line);
}

.creators-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 44px; align-items: start;
}
.creators .steps-compact { margin-top: 0; }
.creators-cta { justify-content: flex-start; margin: 0; }

/* Карточка расчёта: единственное место, где названы деньги креатора, поэтому
   она чуть светлее фона полосы и не сливается с ней. */
.payout { padding: 22px 24px; background: var(--surface-2); }
.payout h3 { font-size: 1.02rem; }
.payout-lead { margin-top: 6px; color: var(--muted); font-size: .88rem; }

/* Слагаемые расхода: не список галочек, а перечень вычетов, поэтому маркер -
   тонкая черта, а не точка. */
.payout-list { display: grid; gap: 12px; margin: 18px 0 0; }
.payout-list li {
  position: relative; padding-left: 18px;
  color: var(--muted); font-size: .9rem; line-height: 1.55;
}
.payout-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 1px; background: var(--accent-line);
}
.payout-list b { color: var(--ink); font-weight: 560; }
.payout-note { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .84rem; line-height: 1.5; }

/* Карточки ниже, чем обычные: текста в них два-три предложения, и прежние
   отступы оставляли под ним пустое поле в треть карточки. Высоту задаёт не
   фиксированный размер, а padding и отступ под иконкой - так карточка всё
   равно вырастет, если текст в ней станет длиннее. */
.creators-terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.creators-terms .card { padding: 16px 18px; }
.creators-terms h3 { font-size: .98rem; margin-bottom: 6px; }
.creators-terms p { color: var(--muted); font-size: .89rem; line-height: 1.5; }

.creators-icon {
  display: grid; place-items: center;
  width: 28px; height: 28px; margin-bottom: 10px;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 8px;
}
.creators-icon svg { width: 16px; height: 16px; }
/* Запреты - не четвёртый пункт списка возможностей, поэтому иконка красная. */
.creators-dont .creators-icon { color: #fda29b; background: rgba(240, 68, 56, .12); border-color: rgba(240, 68, 56, .32); }

.creators-fineprint { margin-top: 30px; }

@media (max-width: 1024px) {
  .creators-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .creators-terms { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .creators-terms { grid-template-columns: 1fr; }
  .creators-cta .button { width: 100%; }
}

/* ---------- 11. FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 17px 20px; cursor: pointer; list-style: none;
  color: var(--ink); font-size: .98rem; font-weight: 540;
  transition: background-color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface-2); }
.chev { color: var(--muted); flex: none; transition: transform .2s ease; }
.chev svg { width: 18px; height: 18px; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-body { padding: 0 20px 20px; max-width: 74ch; }
.faq-body p { color: var(--muted); font-size: .94rem; line-height: 1.62; }

/* ---------- 12. Скачать ---------- */
.download-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
.download-card { display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.download-head { display: flex; gap: 14px; align-items: flex-start; }
.download-head h3 { font-size: 1.06rem; margin-bottom: 6px; }
.download-meta { color: var(--muted); font-size: .87rem; line-height: 1.45; }
.download-note { color: var(--muted); font-size: .84rem; line-height: 1.5; margin-top: -4px; }
.download-icon {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
}
.download-icon svg { width: 21px; height: 21px; }
.download-icon.win { color: var(--accent); }
.download-card.is-soon { background: var(--surface-2); }
.download-card.is-soon h3 { color: var(--muted); }

/* ---------- 13. Поддержка ---------- */
.support { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.support h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); margin-bottom: 10px; }
.support .section-sub { max-width: 460px; }
.support-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 14. Футер ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 32px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-note { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.footer-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer-col h4 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.footer-col a { color: var(--text); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .84rem;
}
.footer-legal { max-width: 62ch; }

/* ---------- 15. Адаптив ---------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stealth-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-extra { grid-template-columns: 1fr; gap: 22px; }
  .howto-grid { grid-template-columns: 1fr; }
  .hotkeys-list { grid-template-columns: repeat(2, 1fr); }
  /* minmax(0,1fr), а не 1fr: одноколоночная сетка иначе не даёт колонке сжаться
     уже min-content демо мульти-скана, и .scan-stage (у него overflow:hidden,
     клипается сам) торчал на ~23px за вьюпорт - страница ехала вбок. */
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split-media { order: 2; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* Шесть пунктов меню + две кнопки перестают помещаться примерно на 980px,
   поэтому гамбургер включается раньше, чем перестраиваются сетки. */
@media (max-width: 1000px) {
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 10px var(--pad) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 12px; font-size: .98rem; }
  .header-shell { gap: 12px; }
  .brand { margin-right: auto; }
  .header-login { display: none; }
  /* Иконка кабинета остаётся: на этой ширине текстовая кнопка «Войти» скрыта,
     а меню уехало в бургер, так что другого входа в аккаунт в шапке нет.
     Место под неё освобождает Telegram - он есть в подвале каждой страницы. */
  .header-actions .js-tg { display: none; }
  .burger { display: inline-flex; }
}

@media (max-width: 860px) {
  :root { --pad: 18px; }
  .section { padding: 62px 0; }
  .hero { padding: 52px 0 0; }
  .hero-showcase { margin-top: 34px; padding: 30px 0 26px; }
  .player-legend { grid-template-columns: 1fr; gap: 8px; }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .feature-grid, .price-grid, .stealth-grid, .hotkeys-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row .button { width: 100%; }

  /* Первый экран телефона - единственное, что увидит большинство, и установщик
     ему бесполезен: приложение ставится только на Windows. Поэтому на телефоне
     «Скачать для Windows» скрыта вместе со своими метаданными (версия, вес,
     разрядность - без кнопки они ни о чём), а «Тарифы» остаются единственным
     действием и берут вид главной кнопки. Раздел «Скачать» ниже по странице
     на месте, с компьютера всё как было.

     Цель по высоте - уместить в первый экран демо: это главный аргумент, а на
     375x812 с адресной строкой полезных всего ~700px. Замерено до правки:
     полоса с демо начиналась на 720px, то есть за краем.

     На телефоне из шапки убран лид, а от бейджика остаётся голая метка платформы
     «Windows 10/11» - хвост про права администратора скрыт. Итого: метка, знак,
     одна фраза и одна кнопка - дальше сразу демо. Лид не вырезан из разметки,
     его читают и поисковик, и десктоп. */
  .hero { padding-top: 32px; }
  .hero .eyebrow { margin-bottom: 12px; font-size: .8rem; }
  .hero .eyebrow-more { display: none; }
  .hero-brand { margin-bottom: 10px; }
  .hero-tagline { margin-bottom: 0; }
  .hero-lead { display: none; }
  .hero .cta-row { margin: 22px 0 0; }
  .hero .cta-row .button-primary { display: none; }
  /* Ровно то, что делает .button-primary, и теми же переменными - не подбором
     цвета: тема переключается, и захардкоженный фон разъехался бы с ней.
     background задаём напрямую: .button-outline перебивает `background:
     var(--btn-bg)` базовой .button своим `var(--surface)`, и одной подменой
     переменной кнопка оставалась белой - с белым же текстом поверх.
     :hover в том же правиле - на тач-экране он залипает после нажатия. */
  .hero .cta-row .button-outline,
  .hero .cta-row .button-outline:hover {
    background: var(--accent); color: var(--accent-ink);
    border-color: transparent; box-shadow: var(--shadow-xs);
  }
  /* Из строки доверия остаётся один пункт - про ВКС; он же единственный, что
     отвечает на вопрос «а в моём созвоне-то заработает». Два других (права
     администратора и возврат) на телефоне сняты. Пункт выбирается порядком в
     разметке: поменяешь порядок <li> - поменяется и то, что видно на телефоне. */
  .hero-trust { margin: 16px 0 0; align-items: center; max-width: none; }
  .hero-trust li:not(:first-child) { display: none; }
  /* text-align наследуется от .hero, но у .hero-trust li он сброшен в left ради
     переноса длинных пунктов. Пункт остался один и центрирован, поэтому вторая
     строка (появляется от 320px) должна вставать по центру, а не липнуть влево. */
  .hero-trust li { font-size: .86rem; text-align: center; }
  .hero-meta { display: none; }
  .hero-showcase { margin-top: 24px; }
  .scan-overlay { right: 14px; bottom: 14px; width: 72%; }
  .support-actions .button { width: 100%; }
}

/* ---------- 16. Уважение к настройкам системы ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .player, .scan-stage, .burger { display: none; }
  body { color: #000; background: #fff; }
}
