/* practice.kg — лендинг.
 *
 * Основа — та же, что у платформы: шрифт Montserrat, чёрная кнопка-таблетка,
 * карточки вариантов ответа, радиусы. Человек нажимает «Пройти пробник» и
 * попадает в продукт, который выглядит как продолжение этой страницы.
 * Отличие одно: фон здесь теплее, а фиолетовый насыщеннее — у витрины
 * своё настроение, у рабочего экрана своё.
 *
 * Шрифты лежат у нас, а не на Google Fonts: страница не зависит от того,
 * доступен ли чужой CDN из Кыргызстана.
 */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/montserrat-9f10d2.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/montserrat-520cd3.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/montserrat-a63797.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/montserrat-a5ec54.woff2") format("woff2");
  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: "Phosphor";
  font-display: block;
  src: url("/fonts/phosphor-25cc9e.woff2") format("woff2");
}
@font-face {
  font-family: "Phosphor-Fill";
  font-display: block;
  src: url("/fonts/phosphor-fill-7231de.woff2") format("woff2");
}

/* ── Токены ─────────────────────────────────────────────────────────── */

:root {
  color-scheme: light;
  --bg: #f6f3ef;            /* тёплый светлый, не кремовый */
  --surface: #ffffff;
  --surface-2: #f3efea;
  --ink: #1e1b22;           /* графит */
  --quiet: #57515d;
  --muted: #8c8590;
  --faint: #c3bcc2;
  --line: #e8e2da;
  --cta: #1e1b22;
  --cta-ink: #ffffff;
  --accent: #b479e0;        /* фиолетовый платформы */
  --accent-strong: #7a2fd0; /* насыщенный — для акцента на витрине */
  --accent-soft: #efe5fb;
  --warm: #cf6a2b;          /* пробел */
  --warm-soft: #fbe9dc;
  --cool: #2a7fd4;          /* объяснение */
  --cool-soft: #e3eefb;
  --ok: #1f8a4c;
  --ok-soft: #e2f3e8;
  --fail: #c0392f;
  --fail-soft: #fbe6e2;
  --glass: rgb(255 255 255 / 0.74);
  --glass-edge: rgb(255 255 255 / 0.95);
  --glow-a: rgb(160 92 230 / 0.22);
  --glow-b: rgb(255 176 120 / 0.20);
  --r-sm: 14px;
  --r: 20px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgb(30 27 34 / 0.05), 0 8px 24px -16px rgb(30 27 34 / 0.25);
  --shadow-lg: 0 30px 60px -36px rgb(30 27 34 / 0.45);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141118;
    --surface: #1d1924;
    --surface-2: #26212f;
    --ink: #f0ecf4;
    --quiet: #bdb5c6;
    --muted: #9a93a5;
    --faint: #5f5869;
    --line: #2f2939;
    --cta: #c79bf0;
    --cta-ink: #1a1626;
    --accent-strong: #c79bf0;
    --accent-soft: #2d2342;
    --warm: #f0a868;
    --warm-soft: #3a2718;
    --cool: #7cb8f5;
    --cool-soft: #1c2a3d;
    --ok: #6fd39a;
    --ok-soft: #173024;
    --fail: #f08a80;
    --fail-soft: #3a1f1c;
    --glass: rgb(38 33 47 / 0.72);
    --glass-edge: rgb(255 255 255 / 0.07);
    --glow-a: rgb(160 92 230 / 0.28);
    --glow-b: rgb(255 150 90 / 0.10);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -16px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 30px 60px -36px rgb(0 0 0 / 0.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141118;
  --surface: #1d1924;
  --surface-2: #26212f;
  --ink: #f0ecf4;
  --quiet: #bdb5c6;
  --muted: #9a93a5;
  --faint: #5f5869;
  --line: #2f2939;
  --cta: #c79bf0;
  --cta-ink: #1a1626;
  --accent-strong: #c79bf0;
  --accent-soft: #2d2342;
  --warm: #f0a868;
  --warm-soft: #3a2718;
  --cool: #7cb8f5;
  --cool-soft: #1c2a3d;
  --ok: #6fd39a;
  --ok-soft: #173024;
  --fail: #f08a80;
  --fail-soft: #3a1f1c;
  --glass: rgb(38 33 47 / 0.72);
  --glass-edge: rgb(255 255 255 / 0.07);
  --glow-a: rgb(160 92 230 / 0.28);
  --glow-b: rgb(255 150 90 / 0.10);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -16px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 30px 60px -36px rgb(0 0 0 / 0.8);
}

/* ── База ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
/* Стопка карточек в 3D может выступать за край — страница вбок не едет. */
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 8px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 20px;
}

.ph, .ph-fill {
  display: inline-block;
  font-style: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
.ph { font-family: "Phosphor"; }
.ph-fill { font-family: "Phosphor-Fill"; }
.i-percent::before { content: "\e3b6"; }
.i-clipboard::before { content: "\e198"; }
.i-path::before { content: "\e39c"; }
.i-lightning::before { content: "\e2de"; }
.i-trophy::before { content: "\e67e"; }
.i-target::before { content: "\e47c"; }
.i-telegram::before { content: "\e5bc"; }
.i-instagram::before { content: "\e2d0"; }
.i-tiktok::before { content: "\eaf2"; }
.i-youtube::before { content: "\e4fc"; }
.i-caret-right::before { content: "\e13a"; }
.i-caret-down::before { content: "\e136"; }
.i-check::before { content: "\e182"; }
.i-x::before { content: "\e4f6"; }
.i-books::before { content: "\e758"; }
.i-sun::before { content: "\e472"; }
.i-moon::before { content: "\e58e"; }

/* ── Кнопки ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: 600 16px/1.1 var(--font);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--cta); color: var(--cta-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--cta) 84%, var(--accent-strong)); }
.btn-soft {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-soft:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn .ph { font-size: 18px; }
.btn-meta { font-weight: 500; color: var(--muted); font-size: 14px; }
/* Montserrat шире: на узком телефоне подпись «60 заданий · 90 мин» уходит
   под название кнопки, а не разламывает обе строки. */
@media (max-width: 400px) {
  .paths .btn-soft { flex-direction: column; gap: 3px; }
  .paths .btn-meta { font-size: 12.5px; }
}

/* ── Шапка ──────────────────────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.lite .top { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.top[data-scrolled="true"] { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: var(--top-h); }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  margin-right: auto;
}
/* Знак на фирменной тёмной плашке — тот же, что на иконке сайта. */
.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #131019;
  color: #c295e8;
}
.logo-glyph { width: 22px; height: auto; }
.theme-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--quiet);
  font-size: 20px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.theme-btn:hover { background: var(--surface-2); color: var(--ink); }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
@media (max-width: 400px) {
  .top-row { gap: 8px; }
  .top .logo { font-size: 15px; gap: 8px; }
  .top .logo-mark { width: 32px; height: 32px; border-radius: 10px; }
  .top .logo-glyph { width: 19px; }
  .theme-btn { width: 36px; height: 36px; font-size: 18px; }
  .top .btn-sm { padding: 0 12px; font-size: 13px; }
}
.top-login { font-size: 15px; font-weight: 500; color: var(--quiet); text-decoration: none; }
.top-login:hover { color: var(--ink); }
@media (max-width: 420px) {
  .top-login { display: none; }
  .top .btn { padding: 0 14px; }
}

/* ── Пространство ───────────────────────────────────────────────────
 *
 * Холст на весь экран под содержимым: сетка к горизонту, знаки на разной
 * глубине, свет за курсором. Рисует app.js. На слабых устройствах холст
 * не запускается — вместо него остаётся мягкий градиент ниже.
 */
.space {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.lite .space { display: none; }
/* Всё содержимое — над холстом. */
.top, main, .foot { position: relative; z-index: 1; }
.top { z-index: 20; }
/* Свет без холста: на lite и пока скрипт не загрузился. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 10%, var(--glow-a), transparent 70%),
    radial-gradient(40% 40% at 60% 90%, var(--glow-b), transparent 70%);
}

/* ── Первый экран ───────────────────────────────────────────────────── */

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: 72px 96px;
}
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 32px; min-height: 640px; }
}
.hero-copy { position: relative; z-index: 0; }
.hero-copy > * { max-width: 560px; }
/* Спокойная поверхность под текстом: мягкое пятно цвета фона гасит сетку
   и знаки пространства — текст читается, глубина остаётся по краям. */
.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -70px -90px -70px -120px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 92%, transparent) 55%, transparent);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
.hero h1 {
  margin-top: 20px;
  /* Montserrat шире прежнего Outfit: на 60px заголовок разваливался на пять
     строк, на 56px снова четыре. */
  font-size: clamp(34px, 4.9vw, 56px);
  letter-spacing: -0.025em;
}
.hero h1 em { font-style: normal; color: var(--accent-strong); }
.lede { margin-top: 20px; color: var(--quiet); font-size: 18px; max-width: 34em; }
.paths { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.paths .btn { min-height: 58px; padding: 0 28px; font-size: 17px; }
@media (max-width: 759px) {
  .hero { padding-block: 32px 48px; gap: 28px; }
  .lede { font-size: 17px; }
  .paths { flex-direction: column; align-items: stretch; }
}

/* ── Стопка из трёх стеклянных карточек ───────────────────────────────
 *
 * Настоящее 3D: карточки стоят на разной глубине (translateZ) в общей
 * перспективе и наклоняются за курсором всей стопкой — ближняя смещается
 * сильнее дальней. --rx/--ry задаёт app.js, --gx/--gy — место блика.
 */
.stack {
  position: relative;
  display: block;
  height: 500px;
  perspective: 1300px;
  perspective-origin: 50% 40%;
  text-decoration: none;
  color: inherit;
}
.stack-in {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -20deg));
  --gx: 30%;
  --gy: 20%;
}
.pane {
  position: absolute;
  width: 340px;
  padding: 20px;
  border-radius: 24px;
  background: var(--glass);
  box-shadow:
    inset 0 0 0 1px var(--glass-edge),
    0 40px 80px -40px rgb(30 27 34 / 0.45),
    0 12px 24px -16px rgb(30 27 34 / 0.25);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  overflow: hidden;
}
.pane-route { left: 170px; top: 18px; transform: translateZ(-170px); opacity: .92; }
.pane-gap   { left: 120px; top: 150px; transform: translateZ(-60px); }
.pane-task  { left: 20px;  top: 250px; transform: translateZ(90px); }

.pane-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.tag-gap { background: var(--warm-soft); color: var(--warm); }
.tag-next { background: var(--accent-soft); color: var(--accent-strong); }
.pane-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pane-cols > span {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 26px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.pane-cols[data-long] > span { font-size: 16px; }
.pane-cols[data-long="xl"] > span { font-size: 13.5px; }
.pane-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.pane-opts span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
.pane-opts i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}
.pane-opts [data-picked] { box-shadow: inset 0 0 0 1.5px var(--fail); background: var(--fail-soft); }
.pane-opts [data-picked] i { background: var(--fail); color: var(--surface); }
.pane-big { margin-top: 12px; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.pane-big b { color: var(--warm); }
.pane-text { margin-top: 4px; color: var(--quiet); font-size: 14.5px; }
.mini-route { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.mini-route li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.mini-route i {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent-strong);
}
.mini-route [data-kind="gap"] i { background: var(--warm); box-shadow: 0 0 0 4px var(--warm-soft); }
.mini-route [data-kind="next"] i { background: var(--accent-strong); box-shadow: none; }

/* Лёгкое парение стопки, пока курсор её не трогает. */
@keyframes hover3d {
  from { transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -20deg)) translateY(-6px); }
  to   { transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -20deg)) translateY(6px); }
}
.stack-in { animation: hover3d 6s ease-in-out infinite alternate; }
.lite .stack-in, .still .stack-in { animation: none; }
.lite .pane { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }

@media (max-width: 979px) {
  .stack { height: 440px; max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) {
  .stack { height: 380px; perspective: 1000px; }
  .pane { width: 262px; padding: 14px; border-radius: 20px; }
  .pane-route { left: 76px; top: 8px; }
  .pane-gap   { left: 44px; top: 118px; }
  .pane-task  { left: 0;    top: 200px; }
  .pane-cols span { font-size: 21px; padding: 10px 12px; }
  .pane-opts span { font-size: 11px; gap: 6px; padding: 5px 8px 5px 5px; }
  .pane-opts i { width: 20px; height: 20px; font-size: 11px; }
  .pane-big { font-size: 26px; }
}

/* ── Эпизод: одна задача ────────────────────────────────────────────── */

.episode { padding-block: 24px 88px; }
.episode-head { max-width: 760px; margin: 0 auto 22px; text-align: center; }
.overline {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.episode-head h2 { margin-top: 10px; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.015em; }

.card {
  max-width: 820px;
  margin: 0 auto;
  padding: 2px 28px 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 759px) { .card { padding: 2px 16px 22px; border-radius: 22px; } }

/* Пять шагов — стеклянная «пилюля», которая парит над задачей, пока её
   читают. Сквозь неё видно, что уходит под неё: полупрозрачный фон с
   размытием, как у шапки. */
.stepper {
  position: sticky;
  top: calc(var(--top-h) + 10px);
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 760px;
  margin: 0 auto 16px;
  padding: 14px 18px 12px;
  list-style: none;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    inset 0 0 0 1px var(--glass-edge),
    0 16px 40px -24px rgb(30 27 34 / 0.45);
}
.lite .stepper { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 759px) { .stepper { padding: 12px 6px 10px; border-radius: 18px; } }
.stepper li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
/* Линия между точками: от своей точки до следующей. */
.stepper li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 7px;
  left: calc(50% + 12px);
  right: calc(-50% + 12px);
  height: 2px;
  border-radius: 2px;
  background:
    linear-gradient(var(--accent-strong), var(--accent-strong)) no-repeat 0 0 / 0% 100%,
    var(--line);
  transition: background-size .5s ease;
}
.stepper li[data-state="done"]:not(:last-child)::after { background-size: 100% 100%, auto; }
.stepper .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--faint);
  transition: box-shadow .3s ease, background-color .3s ease, transform .3s ease;
}
.stepper li[data-state="active"] .dot {
  background: var(--accent-strong);
  box-shadow: 0 0 0 5px var(--accent-soft);
  transform: scale(1.1);
}
.stepper li[data-state="done"] .dot { background: var(--accent-strong); box-shadow: none; }
.stepper li[data-state="gap"] .dot { background: var(--warm); box-shadow: 0 0 0 5px var(--warm-soft); }
.stepper li[data-state="ok"] .dot { background: var(--ok); box-shadow: 0 0 0 5px var(--ok-soft); }
.stepper .lbl { font-size: 13.5px; font-weight: 500; color: var(--muted); line-height: 1.2; }
.stepper li[data-state="active"] .lbl,
.stepper li[data-state="done"] .lbl,
.stepper li[data-state="gap"] .lbl,
.stepper li[data-state="ok"] .lbl { color: var(--ink); }
@media (max-width: 520px) {
  .stepper .lbl { font-size: 0; }
  .stepper .lbl::after { content: attr(data-short); font-size: 11.5px; }
}

.block { padding-top: 26px; }
.block + .block { margin-top: 8px; border-top: 1px dashed var(--line); }
.js .block.pending { display: none; }
.block.shown { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--delay, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.still .block.shown { animation: none; }

.block-title { font-size: 22px; letter-spacing: -0.01em; }
.block-lede { margin-top: 6px; color: var(--quiet); }

.kicker {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.prompt { margin-top: 12px; font-size: 20px; font-weight: 600; }

/* Колонки — две равные чаши весов. */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  min-width: 0;
}
.col-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.col-body { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.options { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 760px) { .options { grid-template-columns: 1fr 1fr; } }
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  font: 500 16px/1.3 var(--font);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, opacity .2s ease;
}
.option:hover:not(:disabled) { border-color: var(--accent); }
.option:disabled { cursor: default; }
.option-letter {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.option[data-state="right"] { border-color: var(--ok); background: var(--ok-soft); }
.option[data-state="right"] .option-letter { background: var(--ok); color: var(--surface); }
.option[data-state="wrong"] { border-color: var(--fail); background: var(--fail-soft); }
.option[data-state="wrong"] .option-letter { background: var(--fail); color: var(--surface); }
.option[data-state="dim"] { opacity: .5; }
.hint { margin-top: 12px; color: var(--muted); font-size: 14.5px; }

.verdict { padding: 18px 20px; border-radius: var(--r); background: var(--warm-soft); }
.verdict[data-ok="true"] { background: var(--ok-soft); }
.verdict-title { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; color: var(--warm); }
.verdict[data-ok="true"] .verdict-title { color: var(--ok); }
.verdict p { margin-top: 6px; font-size: 16px; }

/* Решение из банка — тем же текстом, что увидит ученик в разборе. */
.solution {
  margin-top: 12px;
  padding: 18px 20px;
  border-radius: var(--r);
  background: var(--cool-soft);
  font-size: 16.5px;
  line-height: 1.6;
}
.alts {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .alts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.alts li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  padding: 14px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}
.alts i { font-style: normal; color: var(--accent-strong); font-weight: 700; }

/* Объяснение: два вычисления рядом. */
.explain { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 640px) { .explain { grid-template-columns: 1fr 1fr; } }
.ex {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: var(--r);
  background: var(--surface-2);
}
.ex-b { background: var(--accent-soft); }
.ex-expr { font-size: 40px; font-weight: 700; line-height: 1; }
.ex-expr sup { font-size: .5em; color: var(--accent-strong); }
.ex-calc { font-size: 19px; font-variant-numeric: tabular-nums; }
.ex-calc b { color: var(--accent-strong); }
.ex-note { color: var(--quiet); font-size: 15px; }
.block-lede b { color: var(--ink); }


/* Участок маршрута: вертикальная линия с узлами. */
.route { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.route li {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
}
.route li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}
.r-dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 19px;
}
.route li[data-kind="gap"] .r-dot { background: var(--warm-soft); color: var(--warm); }
.route li[data-kind="ok"] .r-dot { background: var(--ok-soft); color: var(--ok); }
.route li[data-kind="next"] .r-dot { background: var(--cta); color: var(--cta-ink); }
.route b { display: block; font-size: 16.5px; padding-top: 1px; }
.r-sub { display: block; color: var(--quiet); font-size: 15px; }
.route li.shown { animation: rise .45s ease both; animation-delay: var(--delay, 0s); }
.still .route li.shown { animation: none; }

.honest {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  padding: 20px;
  border-radius: var(--r);
  background: var(--surface-2);
}
.honest p { color: var(--quiet); }
.honest b { color: var(--ink); }
.honest-cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .honest-cta .btn { flex: 1 1 100%; } }

/* ── Ниже эпизода — спокойно ────────────────────────────────────────── */

section { padding-block: 64px; }
@media (min-width: 940px) { section { padding-block: 88px; } }
h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.015em; }
.sub { margin-top: 12px; color: var(--quiet); font-size: 17px; max-width: 40em; }

/* Экзамен одной фразой: цифры — и есть содержание. */
.exam { border-top: 1px solid var(--line); }
.exam-line {
  font-size: clamp(28px, 4.2vw, 50px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 20em;
  text-wrap: balance;
}
.exam-line b {
  color: var(--accent-strong);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.exam-row { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 940px) { .exam-row { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.exam-row p { color: var(--quiet); font-size: 16.5px; }
.answers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.answers li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px;
  font-weight: 500;
}
.answers i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
}

/* Что внутри — список определений с тонкими линиями. */
.inside-grid { display: grid; gap: 28px; }
@media (min-width: 940px) { .inside-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; } }
.defs { margin: 0; }
.defs > div {
  display: grid;
  gap: 4px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.defs > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .defs > div { grid-template-columns: 180px 1fr; gap: 20px; } }
.defs dt { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.defs dt .ph-fill { color: var(--accent-strong); font-size: 19px; }
.defs dd { margin: 0; color: var(--quiet); }

/* Доступ — таблица на вебе, карточки на телефоне. */
.table-wrap { margin-top: 28px; overflow-x: auto; }
.plan-cards { display: none; }
@media (max-width: 759px) {
  .table-wrap { display: none; }
  .plan-cards { display: grid; gap: 10px; margin-top: 24px; }
}
.plan-card {
  display: grid;
  gap: 2px;
  padding: 22px 20px;
  border-radius: var(--r);
  background: var(--surface);
}
.plan-card.main { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.plan-card.main .plan-name { color: var(--accent-strong); }
.plan-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan-card li { position: relative; padding-left: 22px; color: var(--quiet); font-size: 15.5px; }
.plan-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
}
.plans {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
}
.plans th, .plans td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.plans tbody tr:last-child th, .plans tbody tr:last-child td { border-bottom: 0; }
.plans thead th { vertical-align: top; padding-top: 22px; padding-bottom: 20px; }
.plan-name { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.price {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price:empty { display: none; }
.raise { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--quiet); }
.raise:empty { display: none; }
.raise b { color: var(--warm); font-weight: 600; }
.plans tbody th { font-weight: 500; }
.plans td { color: var(--quiet); }
.plans .main { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.plans thead .main .plan-name { color: var(--accent-strong); }

/* Вопросы */
.faq { display: grid; gap: 8px; margin-top: 28px; max-width: 820px; }
.faq details { border-radius: var(--r); background: var(--surface); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { flex: none; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary .ph { transform: rotate(180deg); }
.faq details p { padding: 0 22px 20px; color: var(--quiet); max-width: 44em; }

/* Финал — стеклянная плашка: полупрозрачная, с размытием того, что за ней. */
.final-sec { padding-top: 24px; }
.final {
  display: grid;
  gap: 20px;
  justify-items: start;
  padding: 36px 28px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow:
    inset 0 0 0 1px var(--glass-edge),
    0 40px 80px -48px rgb(30 27 34 / 0.5);
}
.lite .final { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (min-width: 940px) { .final { grid-template-columns: 1fr auto; align-items: center; padding: 48px 56px; } }
.final h2 { font-size: clamp(26px, 3.4vw, 38px); }
.final h2 em { font-style: normal; color: var(--accent-strong); }
.final p { margin-top: 10px; color: var(--quiet); font-size: 16.5px; }
.final .btn { min-height: 58px; padding: 0 32px; font-size: 17px; }

/* Подвал: бренд с оговоркой, контакты, соцсети. */
.foot {
  display: grid;
  gap: 28px;
  padding-block: 40px 52px;
  color: var(--muted);
  font-size: 14.5px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
@media (min-width: 860px) { .foot { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; } }
.foot a { text-decoration: none; }
.foot .logo { font-size: 16px; color: var(--ink); margin-right: 0; }
.foot .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
.foot .logo-glyph { width: 18px; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-note { max-width: 34em; font-size: 13.5px; line-height: 1.5; }
.foot-copy { font-size: 13.5px; }
.foot-col { display: grid; gap: 12px; align-content: start; }
.foot-h { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  transition: box-shadow .15s ease;
}
.contact:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.contact .ph-fill { font-size: 24px; color: var(--cool); }
.contact b { display: block; font-size: 15px; }
.contact small { display: block; color: var(--quiet); font-size: 13.5px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.socials a { display: inline-flex; align-items: center; gap: 6px; color: var(--quiet); }
.socials a:hover { color: var(--ink); }
.socials .ph-fill { font-size: 18px; }

/* Двухэтажная дробь */
.frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  line-height: 1.1;
}
.frac-n { padding: 0 4px 2px; border-bottom: 2px solid currentColor; }
.frac-d { padding: 2px 4px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
