/* =========================================================================
   Vilaio landing — single stylesheet, no build step, no external requests.
   Sections follow the order of index.html.
   ========================================================================= */

/* ---------- fonts ----------
   Та же пара и тот же самохостинг, что в плеере: файлы скопированы из
   `apps/player/public/fonts/` (SIL OFL, лицензии рядом). Чужой CDN здесь не
   годится по той же причине, что и там, — внешняя зависимость и вопрос GDPR
   на ровном месте, — и вдобавок нарушил бы обещание в шапке этого
   файла: «no external requests».

   Блоки ниже — копия из `apps/player/src/styles/global.css`, отличаются
   только путём. Дубль намеренный: у лендинга нет сборки и нет способа
   импортировать чужой CSS, а разъехаться подмножествам не дадут сами файлы —
   они те же самые.
   ------------------------------------------------------------------------ */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/golos-text-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/golos-text-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/golos-text-cyrillic.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/golos-text-cyrillic-ext.woff2') format('woff2-variations');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F,
    U+FE2E-FE2F;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-cyrillic.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-cyrillic-ext.woff2') format('woff2-variations');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F,
    U+FE2E-FE2F;
}

/* ---------- fonts ----------
   Та же пара и тот же самохостинг, что в плеере: файлы скопированы из
   `apps/player/public/fonts/` (SIL OFL, лицензии рядом). Чужой CDN здесь не
   годится по той же причине, что и там, — внешняя зависимость и вопрос GDPR
   на ровном месте, — и вдобавок нарушил бы обещание в шапке этого файла:
   «no external requests».

   Блоки ниже — копия из `apps/player/src/styles/global.css`, отличаются
   только путём. Дубль намеренный: у лендинга нет сборки и нет способа
   импортировать чужой CSS, а разъехаться подмножествам не дадут сами файлы —
   они те же самые.
   ------------------------------------------------------------------------ */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/golos-text-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/golos-text-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/golos-text-cyrillic.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/golos-text-cyrillic-ext.woff2') format('woff2-variations');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F,
    U+FE2E-FE2F;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-cyrillic.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-cyrillic-ext.woff2') format('woff2-variations');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F,
    U+FE2E-FE2F;
}

/* ---------- tokens ----------
   Палитра курса GD Engine — те же значения, что в плеере
   (`apps/player/src/player/a11y/tokens.ts`). Посетитель проходит
   «лендинг → демо-видео → плеер» подряд, и расхождение видно именно в
   переходе, а не на каждой странице по отдельности.

   ЗДЕСЬ НЕТ ГЕЙТОВ. В плеере контраст считается тестом, здесь его считать
   некому — поэтому числа в комментариях сняты замером со страницы
   (Playwright, 1440×900), а не прикинуты. Меняя значение, померь заново.
   -------------------------------------------------------------------- */
:root {
  /* Брендовый слой: четыре значения с обложки курса, снятые пиксельно.
     Отдельно — по той же причине, что в плеере: второй курс на платформе
     переопределит четыре переменных, а не перепишет лендинг. */
  --brand-chrome:   #3a1c57;
  --brand-action:   #f3b638;
  --brand-accent:   #6350a8;
  --brand-progress: #63a882;

  /* Поверхности. Были сине-чёрные (#0a0c10 и далее) — то есть холодные, при
     тёплой фиолетовой палитре курса. Расходились не акценты, а именно
     нейтрали: девять градусов по тону между жёлтыми на глаз не видны, а
     разница между сине-чёрным и фиолетовым видна сразу. */
  --bg:          #171325;
  --bg-elev:     #1e1830;
  --surface:     #241d39;
  --surface-2:   #2e2647;
  --line:        #3d3358;
  --line-soft:   #272038;

  /* Текст — ровно те значения, которыми плеер пишет по фиолетовой полосе
     шасси (`chromeText` / `chromeTextMuted`): лендинг и есть одна большая
     полоса шасси. */
  --text:        #f2f0f7;
  --text-dim:    #b5aecb;
  /* 5.08:1 к самой светлой поверхности страницы (--surface-2) — то есть
     проходит везде. Прежнее #8d85a6 давало 4.07 и не проходило на трёх
     поверхностях из шести. */
  --text-mute:   #9e97b5;

  /* ЖЁЛТЫЙ — ТОЛЬКО ЗАЛИВКА. Роль считана с плаката, а не назначена: там он
     ни разу не текст. Текстом по светлому он даёт 1.82:1; здесь фон тёмный,
     и формально прошёл бы — но роль цвета не должна зависеть от того, на
     какой странице продукта он оказался. Поверх заливки идёт тёмный фиолет
     обложки — ровно та пара, что на ней (лампа на корпусе терминала). */
  --accent:      var(--brand-action);
  --on-accent:   var(--brand-chrome);

  /* ЧЕРНИЛА СОСТОЯНИЯ — фиолет, не жёлтый. Это то же разделение, что в
     плеере: `actionBg` заливает, `accent` метит. Значение — `chromeAccent`
     плеера, то есть тот же тон, поднятый до читаемости по тёмному. Им
     красится всё, что раньше было жёлтым ТЕКСТОМ или меткой: акцент в
     заголовке, полоса активного сегмента, подсветка строки в макете. */
  --accent-ink:  #a99bf0;
  --accent-soft: rgba(169, 155, 240, .16);
  --accent-line: rgba(169, 155, 240, .45);

  --green:       #7cc79c;
  --blue:        #8fb8ff;

  --radius:      14px;
  --radius-sm:   9px;
  --wrap:        1180px;

  /* Гарнитуры — та же пара и тот же самохостинг, что в плеере. У Golos
     родная кириллица, а половина интерфейса курса идёт по-русски.
     Системный хвост оставлен: лендинг рисуется до загрузки шрифта. */
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: "Golos Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* --- Значения САМОГО ПРОДУКТА, снятые с живого плеера ------------------
     Макет в герое — не украшение страницы, а изображение того, что посетитель
     увидит через минуту. Поэтому он красится не палитрой лендинга, а тем, чем
     плеер красит себя, и значения ниже сняты `getComputedStyle` с тёмной темы
     на уроке 1.6, а не подобраны на глаз.

     Отсюда же следствие, которое выглядит ошибкой, но ею не является:
     область кода остаётся почти нейтральной (#1e1e1e), а не фиолетовой.
     Именно так продукт и устроен — фиолетовая полоса шасси вокруг тёмного
     редактора Monaco, — и макет обязан показывать это отношение, а не
     перекрашивать редактор под страницу. */
  --editor-bg:      #1e1e1e;
  --editor-text:    #d4d4d4;
  --editor-ln:      #858585;
  /* Цвета синтаксиса — те, что плеер ставит сам (`theme/monacoTheme.ts`, поле
     `color`). Какое-то время лендинг держал здесь СВОИ значения комментария и
     ключевого слова: в тёмной теме Monaco они не брали AA под подсветкой
     строки, а копировать в иллюстрацию то, что не проходит норму, нельзя.
     Теперь эта причина снята — тот же дефект починен в самом плеере (T-0089,
     подъём по светлоте с сохранением тона), и макет вернулся к значениям
     продукта: две независимые настройки одного и того же расходятся молча.

     Дальше идут цвета, которых у макета не было вовсе, а у продукта они есть
     и занимают заметную часть кадра: разделители и ДВА уровня парных скобок.
     Monaco красит скобку по глубине вложенности, и в показанном фрагменте
     (тело `main`) внешние скобки вызова идут вторым уровнем, вложенные —
     третьим.

     Замер после возврата к значениям продукта (Playwright, формула WCAG со
     смешиванием полупрозрачных фонов, 1440×1000): в макете 92 текстовых узла,
     ниже 4.5:1 — НИ ОДНОГО. Худшее под подсветкой `.28` — скобка третьего
     уровня 4.60:1, скобка второго 4.62, ключевое слово 4.68, обычный текст
     6.58; вне подсветки всё от 7.12 и выше, номера строк 4.52. То есть
     занижать альфу больше незачем — ровно это T-0089 и сделал возможным.
     Сам макет объявлен `role="img"`, и 1.4.3 к тексту внутри картинки не
     применяется: числа тут — проверка того, что иллюстрация читаема, а не
     соответствие критерию (ошибку этого замера уже ловили однажды). */
  --editor-comment:   #97bc88;
  --editor-keyword:   #87b9e2;
  --editor-number:    #b5cea8;
  --editor-string:    #d9a996;
  --editor-delim:     #dcdcdc;
  --editor-bracket-a: #e499e2;
  --editor-bracket-b: #59baff;

  /* Панели плеера в тёмной теме. */
  --player-surface:   #1c1a24;
  --player-line:      #332f3f;
  --player-text:      #e9e7f0;
  --player-text-mute: #9a95ad;
  /* Подсветка строки и отмеченный сегмент narration. Альфа .28 — та же, что
     в `player/styles/decorations.css`. Лендинг какое-то время занижал её до
     .18 по той же причине, что и два цвета выше: при прежних цветах Monaco
     .28 топила код под собой. После T-0089 причины нет, и разойтись макету с
     продуктом тут особенно нечем — подсветка и есть главный механизм. */
  --player-highlight: rgba(169, 155, 240, .28);
  --player-seg:       #2e2b3a;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { line-height: 1.16; margin: 0; letter-spacing: -.021em; font-weight: 640; }
p { margin: 0; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--text); text-decoration-color: rgba(255,255,255,.28); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
button, input { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

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

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(23, 19, 37, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.brand-mark { width: 28px; height: 28px; color: var(--text-dim); flex: none; }
.brand-word { font-weight: 650; font-size: 19px; letter-spacing: -.015em; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: 15px; color: var(--text-dim); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.site-nav .btn { color: var(--on-accent); }

@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent);
  border: 0; border-radius: var(--radius-sm);
  padding: 13px 22px;
  font-weight: 640; font-size: 16px; letter-spacing: -.006em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: filter .15s ease, transform .12s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: default; filter: none; transform: none; }
.btn-small { padding: 8px 15px; font-size: 14.5px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 84px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 620px;
  background:
    radial-gradient(58% 52% at 22% 40%, rgba(243, 182, 56, .10), transparent 68%),
    radial-gradient(46% 48% at 78% 20%, rgba(99, 80, 168, .26), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* min-width:0 keeps the long code mock from stretching the text column */
.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px; letter-spacing: .01em;
  color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

h1 {
  font-size: clamp(35px, 5.1vw, 57px);
  letter-spacing: -.032em;
  margin-bottom: 22px;
  text-wrap: balance;
}
/* Акцент в заголовке — чернила, а не заливка: жёлтым текстом продукт не
   пишет нигде. */
h1 em { font-style: normal; color: var(--accent-ink); }

.lede {
  font-size: clamp(17px, 1.55vw, 19.5px);
  color: var(--text-dim);
  max-width: 34em;
  margin-bottom: 30px;
}

.trust {
  margin-top: 24px;
  font-size: 14.5px; line-height: 1.6; color: var(--text-mute);
  max-width: 42em;
}
.trust a { color: var(--text-dim); }
.trust-sep { margin: 0 6px; color: var(--line); }

/* ---------- signup form ---------- */
.signup { max-width: 540px; }
.signup-center { margin-inline: auto; }
.signup-row { display: flex; gap: 10px; }
@media (max-width: 520px) {
  .signup-row { flex-direction: column; }
  .signup-row .btn { width: 100%; }
}
.signup-input {
  flex: 1 1 auto; min-width: 0;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: 16px;
  transition: border-color .15s ease, background .15s ease;
}
.signup-input::placeholder { color: var(--text-mute); }
.signup-input:focus { border-color: var(--accent-line); background: var(--surface-2); }
.signup-input[aria-invalid="true"] { border-color: #e0685f; }

.signup-note {
  margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--text-mute);
}
.signup-note a { color: var(--text-dim); }

.signup-status {
  margin-top: 10px; font-size: 14.5px; min-height: 1.2em;
}
.signup-status:empty { margin-top: 0; min-height: 0; }
.signup-status.is-ok { color: var(--green); }
.signup-status.is-error { color: #ff9a90; }

/* honeypot — off-screen, never focusable in practice */
.hp {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- hero visual: stylised player ---------- */
.hero-visual { position: relative; }
.mock {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 26px 70px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
  font-size: 13px;
}
.mock-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  /* Шасси: та же полоса, что в шапке плеера, и тот же цвет в обеих темах. */
  background: var(--brand-chrome);
  border-bottom: 1px solid var(--line-soft);
}
.mock-dots { display: inline-flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: block; }
.mock-title { color: var(--text); font-size: 12.5px; }
.mock-badge {
  margin-left: auto; font-family: var(--mono); font-size: 11px;
  color: var(--text-dim); border: 1px solid rgba(255, 255, 255, .22);
  padding: 2px 8px; border-radius: 999px;
}

.mock-body {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 190px;
  min-height: 330px;
}
@media (max-width: 1080px) {
  .mock-body { grid-template-columns: minmax(0, 1fr) 180px; }
  .mock-tree { display: none; }
}
@media (max-width: 620px) {
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-narration { display: none; }
}

.mock-tree {
  border-right: 1px solid var(--player-line);
  padding: 12px 8px; background: var(--player-surface);
}
.mock-tree-item {
  font-size: 12px; color: var(--text-mute);
  padding: 3px 8px; border-radius: 5px; white-space: nowrap;
}
.mock-tree-item.is-folder { color: var(--text-dim); font-weight: 560; }
.mock-tree-item.is-child { padding-left: 18px; font-family: var(--mono); font-size: 11.5px; }
.mock-tree-item.is-active { background: var(--surface-2); color: var(--text); }

.mock-code {
  position: relative; padding: 14px 4px 14px 0; overflow: hidden;
  background: var(--editor-bg);
}
.mock-code pre { margin: 0; overflow: hidden; }
.mock-code code {
  font-family: var(--mono);
  font-size: 12.2px; line-height: 1.72;
  color: var(--editor-text);
  white-space: pre;
  display: block;
}
.mock-code .ln {
  display: inline-block; width: 34px;
  color: var(--editor-ln); text-align: right; padding-right: 14px;
  user-select: none;
}
/* Курсива у комментария нет, и это замер, а не экономия: тема Monaco в
   плеере красит комментарий цветом и ничем больше (`font-style: normal` на
   живой странице). Макет набирал его курсивом по привычке к VS Code. */
.mock-code .c  { color: var(--editor-comment); }
.mock-code .k  { color: var(--editor-keyword); }
.mock-code .n  { color: var(--editor-number); }
.mock-code .d  { color: var(--editor-delim); }
.mock-code .b1 { color: var(--editor-bracket-a); }
.mock-code .b2 { color: var(--editor-bracket-b); }
/* Имён типов и функций здесь НЕТ намеренно, хотя раньше макет их красил.
   Грамматика C++ у Monaco — Monarch, а не TextMate: она не отличает вызов от
   переменной и не знает пользовательских типов, поэтому `GLuint`,
   `glVertexAttribPointer` и `GL_ARRAY_BUFFER` плеер рисует обычным текстом.
   Макет обещал бирюзовый и жёлтый, которых на экране продукта не бывает;
   потерянную этим живость кадра возвращают скобки — они настоящие. */

.mock-code mark.hl {
  background: var(--player-highlight);
  color: inherit;
  /* Полоса связки «фраза ↔ строка». В плеере оба её конца красит один
     акцент состояния (T-0058), и макет обязан показывать то же. */
  box-shadow: -3px 0 0 0 var(--accent-ink);
  border-radius: 0 3px 3px 0;
  display: block;
}

.mock-overlay {
  position: absolute; right: 14px; bottom: 14px;
  width: 216px;
  background: var(--player-seg);
  border: 1px solid var(--player-line);
  border-radius: 10px;
  padding: 11px 12px;
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.85);
}
.mock-overlay-title {
  font-size: 11px; color: var(--text-dim); margin-bottom: 9px; letter-spacing: .01em;
}
.mock-stride { display: flex; gap: 3px; }
.mock-stride .cell {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: 9.5px; line-height: 20px;
  color: var(--text-mute);
  background: var(--surface-2); border-radius: 3px;
}
/* Активная ячейка метится ФОНОМ, а текст остаётся обычным — ровно так же,
   как подсветка строки в плеере не перекрашивает синтаксис. Чернилами по
   мягкой заливке выходило 4.24:1. */
.mock-stride .cell.is-on { background: var(--accent-soft); color: var(--text); }
.mock-stride-label {
  margin-top: 8px; font-family: var(--mono); font-size: 9.5px; color: var(--text-mute);
}

.mock-narration {
  border-left: 1px solid var(--player-line);
  padding: 12px 14px; background: var(--player-surface);
}
.mock-narration-head {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-mute); margin-bottom: 10px;
}
.mock-narration p { margin: 0 0 9px; font-size: 11.5px; line-height: 1.62; color: var(--player-text-mute); }
.mock-narration .seg { border-radius: 3px; padding: 1px 2px; }
.mock-narration .seg.is-live {
  background: var(--player-seg); color: var(--player-text);
  box-shadow: -3px 0 0 0 var(--accent-ink);
}

.mock-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px;
  /* Вторая половина шасси — та же полоса, что и сверху. В плеере подвал и
     шапка красятся одним значением в обеих темах; макет повторяет это, иначе
     окно выглядит подпоясанным двумя разными цветами. */
  border-top: 1px solid var(--line-soft); background: var(--brand-chrome);
}
.mock-btn {
  width: 22px; height: 22px; border-radius: 5px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: var(--text); font-size: 9px;
}
.mock-progress { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.mock-progress i { display: block; height: 100%; width: 66%; background: var(--accent); border-radius: 2px; }
.mock-mode {
  font-size: 10.5px; color: var(--text);
  border: 1px solid var(--player-line); border-radius: 999px; padding: 2px 9px;
}

/* ---------- generic sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-alt { background: var(--bg-elev); border-block: 1px solid var(--line-soft); }
.section-title {
  font-size: clamp(26px, 3.3vw, 38px);
  margin-bottom: 16px;
  text-wrap: balance;
}
.section-lede {
  font-size: clamp(16px, 1.4vw, 18.5px);
  color: var(--text-dim);
  max-width: 62ch;
  margin-bottom: 16px;
}
.center .section-lede { margin-inline: auto; }

/* ---------- demo ---------- */
.video-frame {
  margin-top: 30px;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; place-items: center;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-placeholder { text-align: center; padding: 24px; color: var(--text-mute); }
.play-glyph {
  width: 46px; height: 46px; margin: 0 auto 14px;
  color: var(--line);
}
.video-placeholder-title { font-size: 16px; color: var(--text-dim); font-weight: 560; }
.video-placeholder-note { font-size: 14px; margin-top: 6px; }

/* YouTube facade — poster + play button, iframe only after a click */
.video-facade {
  width: 100%; height: 100%; border: 0; padding: 0;
  background: var(--surface) center / cover no-repeat;
  display: grid; place-items: center; cursor: pointer;
}
.video-facade-play {
  width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(23, 19, 37, .74);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--text);
  backdrop-filter: blur(4px);
  transition: transform .15s ease, background .15s ease;
}
.video-facade:hover .video-facade-play { transform: scale(1.06); background: rgba(23, 19, 37, .88); }
.video-facade-play svg { width: 30px; height: 30px; margin-left: 3px; }

/* ---------- cards ---------- */
.cards {
  margin-top: 38px;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 26px;
}
.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15.5px; }
.card em { font-style: normal; color: var(--text); }

/* ---------- steps ---------- */
.steps {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: grid; gap: 2px;
}
.steps li {
  display: grid; grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 4px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}
.steps li:last-child { border-bottom: 1px solid var(--line-soft); }
.step-n {
  grid-row: span 2;
  font-family: var(--mono); font-size: 13px; color: var(--accent-ink);
  padding-top: 3px;
}
.steps h3 { font-size: 18px; }
.steps p { color: var(--text-dim); font-size: 15.5px; margin-top: 6px; }

/* ---------- course ---------- */
.course-grid {
  margin-top: 30px;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
@media (max-width: 860px) { .course-grid { grid-template-columns: 1fr; } }
.course-copy p { margin-bottom: 16px; color: var(--text-dim); font-size: 16.5px; }
.course-free {
  border-left: 2px solid var(--accent-ink);
  padding-left: 16px;
}
.course-free strong { color: var(--text); }

.stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
}
.stats li {
  background: var(--surface);
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 2px;
}
.stat-n {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 29px; font-weight: 600; letter-spacing: -.02em;
}
.stat-l { font-size: 13.5px; color: var(--text-mute); }

/* ---------- links row ---------- */
.links-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; font-size: 15.5px; }
.links-row a { color: var(--text-dim); }

/* ---------- faq ---------- */
.faq { margin-top: 30px; }
.faq details {
  border-top: 1px solid var(--line-soft);
  padding: 4px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 34px 18px 0; position: relative;
  font-size: 17px; font-weight: 560;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 15px;
  font-size: 21px; font-weight: 400; color: var(--text-mute);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 20px; color: var(--text-dim); font-size: 15.8px; max-width: 66ch; }

/* ---------- final cta ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 420px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(243, 182, 56, .09), transparent 70%);
  pointer-events: none;
}
.cta-final .wrap { position: relative; }
.cta-final .signup { margin-top: 26px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 28px 0;
  font-size: 14px; color: var(--text-mute);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--text-mute); }

/* ---------- privacy page ---------- */
.doc { padding: clamp(48px, 7vw, 84px) 0; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.doc .updated { color: var(--text-mute); font-size: 14.5px; margin-bottom: 34px; }
.doc h2 { font-size: 21px; margin: 34px 0 12px; }
.doc p, .doc li { color: var(--text-dim); font-size: 16.5px; }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
