/* Aroken — главная. Liquid Bento: бумага + графит, лаймовый акцент. */

:root {
  --paper-1: #FEFDF9;
  --paper-2: #F9F6EF;
  --paper-3: #ECE6DB;
  --paper: linear-gradient(135deg, var(--paper-1) 2%, var(--paper-2) 55%, var(--paper-3) 96%);
  --graphite: #131417;
  --canvas: #0B0B0C;
  --ink: #17181C;
  --lime: #C7FF2E;
  --lime-2: #D7FF45;
  --lime-3: #E7FF8A;
  --violet: #B8A3FF;
  --violet-deep: #7557FF;
  --cobalt: #73D6FF;
  --coral: #FF6661;
  --yellow: #F7DF1E; /* акцент курса JavaScript — цвет логотипа JS */
  --panel: #101114;
  --elevated: #181A1F;
  --border: #2A2D33;
  --text: #FFFFFF;
  --muted: #96999F;
  --muted-2: rgba(255, 255, 255, .64);
  --font: -apple-system, "SF Pro Display", "SF Pro Text", Inter, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.3, .5, 1);
  --shadow-tile: 0 12px 32px -8px rgba(0, 0, 0, .25);
  --shadow-hover: 0 20px 44px -10px rgba(0, 0, 0, .5);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
section[id], [id].quiz, [id].stack, [id].card { scroll-margin-top: 96px; }
.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; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--lime); color: var(--ink); border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 16px; }
::selection { background: rgba(199, 255, 46, .9); color: #131417; } /* тёмный текст на лайме — читается и на бумаге, и на графите; белый на лайме был невидим */
::-moz-selection { background: rgba(199, 255, 46, .9); color: #131417; }

/* ---------- Атмосфера: холст дышит ---------- */
/* Акцент страницы: по умолчанию лайм, курсовые лендинги берут свой цвет от класса первого экрана. */
:root { --accent-rgb: 199, 255, 46; --accent-2-rgb: 184, 163, 255; }
:root:has(.hero--flag) { --accent-rgb: 199, 255, 46; --accent-2-rgb: 184, 163, 255; }
:root:has(.hero--js) { --accent-rgb: 247, 223, 30; --accent-2-rgb: 199, 255, 46; }
:root:has(.hero--ai) { --accent-rgb: 184, 163, 255; --accent-2-rgb: 115, 214, 255; }
:root:has(.hero--wp) { --accent-rgb: 115, 214, 255; --accent-2-rgb: 199, 255, 46; }

/* Два фиксированных слоя за всем контентом: мягкое свечение и зерно. Оба вне потока и без событий мыши. */
html::before, html::after { content: ""; position: fixed; z-index: -1; pointer-events: none; }
html::before {
  inset: -12vmax;
  background:
    radial-gradient(38vw 34vw at 14% 6%, rgba(var(--accent-rgb), .08), rgba(var(--accent-rgb), 0) 68%),
    radial-gradient(34vw 30vw at 88% 40%, rgba(var(--accent-2-rgb), .065), rgba(var(--accent-2-rgb), 0) 66%),
    radial-gradient(44vw 36vw at 46% 98%, rgba(var(--accent-rgb), .05), rgba(var(--accent-rgb), 0) 70%),
    radial-gradient(120% 84% at 50% 46%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .5)); /* виньетка: углы глубже, центр читается как освещённый */
}
/* Зерно: один SVG-тайл 160×160, браузер растрирует его один раз и размножает — ни канваса, ни JS. */
html::after {
  inset: 0;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
/* Дыхание — один composited-трансформ на слое свечения; при prefers-reduced-motion его гасит общее правило ниже. */
@media (prefers-reduced-motion: no-preference) {
  html::before { animation: canvas-breathe 54s ease-in-out infinite alternate; }
}
@keyframes canvas-breathe {
  from { transform: translate3d(-1.6%, -1.2%, 0) scale(1); }
  to { transform: translate3d(1.8%, 1.4%, 0) scale(1.06); }
}

.container { width: min(100% - 96px, 1440px); margin-inline: auto; }
.section { padding: 64px 0; }
/* Свечение у стыков секций + волосяной шов вместо голого чёрного: обе вещи — слои background, без лишней разметки. */
.section {
  --seam: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
  --seam-glow: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
  --glow-x: 15%;
  --glow-x2: 85%;
  background-image:
    var(--seam),
    var(--seam-glow),
    radial-gradient(44vw 340px at var(--glow-x) 0%, rgba(var(--accent-rgb), .06), rgba(var(--accent-rgb), 0) 72%),
    radial-gradient(40vw 320px at var(--glow-x2) 100%, rgba(var(--accent-2-rgb), .05), rgba(var(--accent-2-rgb), 0) 72%);
  background-repeat: no-repeat;
  background-position: 50% 0, 50% 0, 0 0, 0 100%;
  background-size: min(1392px, 88%) 1px, 100% 200px, auto, auto;
}
.section:nth-of-type(even) { --glow-x: 84%; --glow-x2: 16%; }
.hero + .section, .section + .section, .rail + .section {
  --seam: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .1) 14%, rgba(var(--accent-rgb), .5) 50%, rgba(255, 255, 255, .1) 86%, rgba(255, 255, 255, 0));
  --seam-glow: radial-gradient(54% 100% at 50% 0%, rgba(var(--accent-rgb), .09), rgba(var(--accent-rgb), 0) 74%);
}
.section__head { max-width: 1120px; }
.h2 { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; }
.h2--lg { font-size: 36px; line-height: 40px; letter-spacing: -.025em; }
.h2--semi { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -.015em; }
.section__lead { margin-top: 12px; max-width: 940px; font-size: 18px; line-height: 26px; letter-spacing: -.008em; color: var(--muted); }
.section__lead--sm { margin-top: 8px; max-width: 640px; font-size: 16px; line-height: 24px; color: var(--muted-2); }

/* Появление секций */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Кнопки, бейджи, аватары ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 15px;
  height: 56px; padding: 8px 9px 8px 19px; border: 0; border-radius: 14px;
  font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn__arrow { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; transition: transform .3s var(--spring); }
.btn--primary { background: linear-gradient(90deg, var(--lime-2), var(--lime-3)); color: #000; box-shadow: 0 0 16px rgba(215, 255, 69, .26); }
.btn--primary .btn__arrow { background: #000; color: var(--lime-2); }
.btn--primary:hover { box-shadow: 0 0 28px rgba(215, 255, 69, .45), 0 6px 18px rgba(215, 255, 69, .18); transform: translateY(-1px); }
.btn--glass { background: var(--elevated); border: 1px solid var(--border); color: #fff; border-radius: 16px; }
.btn--glass .btn__arrow { background: var(--lime-2); color: var(--panel); }
.btn--glass:hover { border-color: #3a3e47; background: #1d2026; transform: translateY(-1px); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--lg { gap: 20px; font-size: 16px; }
.btn--lg .btn__arrow { width: 40px; height: 40px; }
.btn.is-loading, .chip.is-loading { pointer-events: none; opacity: .7; }

.badge { display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.badge--paper { height: 40px; padding: 0 20px; background: rgba(250, 248, 242, .92); border: 1px solid rgba(87, 79, 69, .16); font-size: 15px; color: #000; }
.badge__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime-2); box-shadow: 0 0 10px rgba(215, 255, 69, .6); }
.badge--glass { height: 24px; padding: 0 12px; background: var(--elevated); border: 1px solid var(--border); font-size: 12px; color: #fff; }
.badge--teal { height: 32px; padding: 0 16px; background: rgba(12, 48, 54, .72); border: 1px solid rgba(255, 255, 255, .18); font-size: 14px; color: #fff; }

.avatars { display: flex; }
.avatars img { width: 35px; height: 35px; border-radius: 50%; border: 2px solid #FAF7F0; background: #1F1F21; object-fit: cover; }
.avatars img + img { margin-left: -9px; }
.avatars--dark img { width: 39px; height: 39px; border: 1px solid rgba(255, 255, 255, .28); }

/* ---------- 01 / Навигация ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: 84px; display: flex; align-items: center; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.nav.is-scrolled { background: rgba(11, 11, 12, .74); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: rgba(255, 255, 255, .08); }
.nav__inner { position: relative; width: min(100% - 48px, 1488px); margin-inline: auto; height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav__brand { display: flex; align-items: center; gap: 20px; color: #fff; text-decoration: none; font-size: 14px; line-height: 17px; }
.nav__mark { width: 38px; height: 38px; display: grid; place-items: center; }
.nav__links { justify-self: center; display: flex; gap: 32px; font-size: 15px; }
.nav__links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current] { color: #fff; }
/* Кнопка в шапке — Primary из UI-кита: лаймовый градиент, стрелка в чёрном круге */
.nav__cta { justify-self: end; height: 46px; padding: 5px 5px 5px 18px; display: inline-flex; align-items: center; gap: 12px; border-radius: 13px; background: linear-gradient(90deg, var(--lime-2), var(--lime-3)); color: #000; font-size: 15px; font-weight: 600; letter-spacing: -.005em; text-decoration: none; box-shadow: 0 0 16px rgba(215, 255, 69, .26); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.nav__cta:hover { box-shadow: 0 0 28px rgba(215, 255, 69, .45), 0 6px 18px rgba(215, 255, 69, .18); transform: translateY(-1px); }
.nav__cta:active { transform: translateY(1px) scale(.99); }
.nav__cta:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.nav__cta-arrow { flex: none; box-sizing: border-box; width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: #000; color: var(--lime-2); transition: transform .3s var(--spring); }
.nav__cta:hover .nav__cta-arrow { transform: translateX(3px); }
/* Бургер: три ровные линии по центру, при открытии складываются в «X». Кнопка держится над оверлеем. */
.nav__burger { display: none; position: relative; z-index: 70; margin-left: 12px; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--elevated); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .2s var(--ease), background .2s var(--ease); }
.nav__burger:hover { border-color: rgba(255, 255, 255, .28); }
.nav__burger span, .nav__burger span::before, .nav__burger span::after { position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; background: #fff; border-radius: 2px; transition: transform .32s var(--ease), background .2s var(--ease), opacity .2s var(--ease); }
.nav__burger span { top: 50%; margin-top: -1px; }
.nav__burger span::before, .nav__burger span::after { content: ""; left: 0; margin-left: 0; }
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }
.nav__menu-tg, .nav__menu-cta { display: none; }

/* ---------- 02 / Первый экран ---------- */
.hero { padding: 48px 0 80px; }
.hero__inner { width: min(100% - 96px, 1440px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 537fr) minmax(0, 696fr); gap: 20px; }
.hero__paper { position: relative; min-height: 590px; padding: 40px 32px 48px; color: #000; }
.hero__paper-bg { position: absolute; left: -6.15%; top: -2.8%; width: 114.7%; height: 111.2%; max-width: none; pointer-events: none; }
.hero__content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
.hero__status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 34px; }
.hero__start { font-size: 15px; color: #57575D; }
.hero__title { margin-top: 20px; max-width: 484px; font-size: clamp(44px, 3.65vw, 56px); line-height: 1.24; font-weight: 700; letter-spacing: -.025em; }
.hero__spark { color: var(--lime-2); font-size: .6em; font-weight: 600; }
.nowrap { white-space: nowrap; }
.hero__title--tight { font-size: clamp(40px, 3.65vw, 50px); }
.hero__text { margin-top: 18px; max-width: 401px; font-size: 17.5px; line-height: 26px; color: #5B5B61; }
.hero__bottom { margin-top: auto; padding-top: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.hero__proof { display: flex; align-items: center; gap: 12px; }
.hero__proof-text { font-size: 15px; line-height: 19px; }
/* Денежный якорь и тихая вторичная ссылка на оформление флагмана — одной мелкой строкой под кнопкой, чтобы бумага оставалась 590 px,
   как в макете (фон-SVG с выемкой тянется вместе с ней). Одна заливная Primary на экране остаётся у «Подобрать курс» */
.hero__fine { margin-top: 12px; max-width: 520px; font-size: 14.5px; line-height: 20px; color: #5B5B61; }
.hero__fine b, .hero__anchor b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.hero__anchor { margin-top: 16px; max-width: 401px; font-size: 15px; line-height: 21px; color: #5B5B61; } /* флагман: якорь отдельной строкой — там текст короче, бумага остаётся 590 */
.hero__alt { display: inline-block; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.hero__alt-text { text-decoration: underline; text-decoration-color: rgba(23, 24, 28, .28); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.hero__alt-arrow { display: inline-block; margin-left: 6px; transition: transform .3s var(--spring); }
.hero__alt:hover .hero__alt-text { text-decoration-color: var(--ink); }
.hero__alt:hover .hero__alt-arrow { transform: translateX(3px); }
.hero__alt:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.hero__paper, .demo { min-width: 0; }
.demo { --split: 313px; position: relative; min-height: 590px; /* не фиксируем высоту: тянется на высоту ряда сетки, чтобы бумага hero и демо всегда были вровень */ border-radius: 24px; background: var(--panel); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; }
.demo__tabs { height: 60px; flex: none; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, var(--split)) minmax(0, 1fr); align-items: center; font-size: 16.5px; font-weight: 500; }
.demo__tab { display: flex; align-items: center; gap: 9px; height: 100%; padding: 0 0 0 24px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.demo__tab:focus-visible { outline-offset: -3px; }
.demo__tab--result { padding-left: 40px; }
.demo__tab:hover .demo__dot { box-shadow: 0 0 0 3px rgba(215, 255, 69, .25), 0 0 14px rgba(215, 255, 69, .9); }
.demo__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-2); box-shadow: 0 0 0 2px rgba(215, 255, 69, .2), 0 0 12px rgba(215, 255, 69, .8); }
.demo__body { position: relative; flex: 1; min-height: 0; display: flex; }
.demo__body.is-dragging { cursor: col-resize; user-select: none; }
.demo__code { position: relative; flex: none; width: var(--split); background: var(--canvas); overflow: hidden; }
.demo__code::after { content: ""; position: absolute; z-index: 1; right: 0; top: 0; bottom: 0; width: 36px; background: linear-gradient(90deg, rgba(11, 12, 15, 0), var(--canvas)); pointer-events: none; } /* длинные строки кода уходят за границу панели — мягкий край вместо обрыва по букве */
.code { display: flex; gap: 9px; padding: 20px 0 0 24px; font: 500 11px/17px var(--mono); }
.code__gutter { color: rgba(140, 143, 150, .9); font-weight: 400; min-width: 2ch; white-space: pre; }
.code__lines { display: flex; flex-direction: column; color: rgba(186, 191, 201, .92); opacity: .86; }
.ln { display: block; white-space: pre; }
.s { color: rgba(115, 214, 255, .72); }
.x { color: rgba(236, 238, 242, .95); }
.live { color: var(--lime); }
.edit { display: inline-block; min-width: 1ch; color: #fff; border-bottom: 1px dashed rgba(199, 255, 46, .4); caret-color: var(--lime); cursor: text; border-radius: 2px; transition: background .2s, border-color .2s; }
.edit:hover { background: rgba(199, 255, 46, .06); }
.edit:focus { outline: none; background: rgba(199, 255, 46, .1); border-bottom-color: var(--lime); }
.ln--live.is-editing { background: linear-gradient(90deg, rgba(199, 255, 46, .07), transparent); }
.demo__easter { position: absolute; left: 24px; bottom: 16px; width: 271px; font: 400 10px/16px var(--mono); color: #7A7D84; text-wrap: balance; } /* подпись в две строки не оставляет одно слово внизу */

.demo__result { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--elevated); }
.demo__scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.demo__result::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 26, 31, .24), rgba(24, 26, 31, .16) 34%, rgba(24, 26, 31, .06) 58%, rgba(24, 26, 31, 0) 82%); pointer-events: none; }
.demo__site { position: relative; z-index: 1; padding: 32px; }
.demo__site-menu { position: absolute; right: 24px; top: 24px; }
.demo__site-title { margin-top: 40px; font-size: 38px; line-height: 40px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.demo__site-text { margin-top: 32px; font-size: 16.5px; line-height: 22px; color: var(--muted); overflow-wrap: anywhere; }
.demo__hint { position: absolute; z-index: 2; left: calc(var(--split) + 32px); bottom: 16px; height: 47px; padding: 0 24px; display: inline-flex; align-items: center; gap: 14px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, .14); background: linear-gradient(90deg, rgba(38, 41, 38, .97), rgba(23, 26, 23, .97)); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); box-shadow: 0 7px 19px rgba(0, 0, 0, .32); color: #F4F1E9; font-size: 17.5px; font-weight: 500; white-space: nowrap; transition: opacity .5s, transform .5s var(--ease); }
.demo__hint.is-hidden { opacity: 0; transform: translateY(8px); }

.demo__divider { position: absolute; z-index: 3; top: 0; bottom: 0; left: calc(var(--split) - 24px); width: 48px; cursor: col-resize; touch-action: none; }
.demo__divider::before { content: ""; position: absolute; left: 23px; top: 0; bottom: 0; width: 2px; background: #F4F1E9; }
.demo__handle { position: absolute; left: 3px; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; background: #F4F1E9; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); transition: transform .25s var(--spring); }
.demo__divider:hover .demo__handle, .demo__divider:focus-visible .demo__handle, .is-dragging .demo__handle { transform: scale(1.08); }
.demo__divider:focus-visible { outline: none; }
.demo__divider:focus-visible .demo__handle { box-shadow: 0 0 0 3px var(--lime), 0 6px 16px rgba(0, 0, 0, .35); }

/* ---------- 03 / Программы ---------- */
.programs__grid { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 430fr) minmax(0, 917fr); grid-template-rows: auto 1fr; gap: 24px 32px; }

.stack { position: relative; grid-row: 1 / 3; cursor: pointer; filter: drop-shadow(0 16px 14px rgba(92, 69, 235, .14)); }
.stack__layer { position: absolute; left: 0; top: 0; width: 100%; border-radius: 20px; pointer-events: none; }
.stack__layer--far { transform: translate(18px, 18px); height: calc(100% - 26px); background: linear-gradient(102deg, rgba(18, 18, 26, .72) 2%, rgba(26, 23, 43, .56) 63%, rgba(64, 46, 143, .32) 98%); border: 1px solid rgba(173, 161, 255, .22); box-shadow: 0 10px 22px rgba(56, 31, 158, .14); }
.stack__layer--mid { transform: translate(9px, 9px); height: calc(100% - 18px); background: linear-gradient(98deg, rgba(26, 26, 33, .78) 4%, rgba(33, 31, 54, .64) 62%, rgba(79, 59, 163, .34) 97%); border: 1px solid rgba(209, 204, 255, .2); box-shadow: 0 8px 18px rgba(0, 0, 0, .28); }
.stack__cover { position: relative; display: block; height: 210px; padding: 20px 28px; border-radius: 20px; border: 1px solid rgba(245, 245, 255, .3); overflow: hidden; color: #fff; text-decoration: none; background: linear-gradient(90deg, #14171F 0%, #1C1F29 52%, #736B94 100%); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .38), inset 0 1px 1px rgba(255, 255, 255, .12); transition: box-shadow .3s, border-color .3s; }
.stack__cover::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08) 45%, rgba(255, 255, 255, 0)), radial-gradient(430px 233px at 0 392px, rgba(250, 250, 255, .3), rgba(209, 207, 224, .1) 52%, rgba(61, 51, 102, 0)); mix-blend-mode: screen; }
.stack__cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(110px 110px at 379px 185px, rgba(117, 79, 255, .06), rgba(56, 36, 158, 0)), radial-gradient(60px 60px at 17px 3px, rgba(228, 255, 128, .03), rgba(199, 255, 61, 0)); }
.stack__cover:hover { border-color: rgba(245, 245, 255, .5); box-shadow: 0 16px 30px -8px rgba(0, 0, 0, .5), inset 0 1px 1px rgba(255, 255, 255, .12); }
.stack__badge { position: relative; z-index: 1; display: inline-flex; gap: 8px; padding: 8px 0; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: -.01em; }
.stack__spark { color: var(--lime-2); }
.stack__title { position: relative; z-index: 1; margin-top: 24px; font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.017em; }
.stack__meta { position: relative; z-index: 1; margin-top: 4px; padding-right: 72px; font-size: 13px; line-height: 18px; color: #9699A1; letter-spacing: -.01em; text-wrap: pretty; }
.stack__meta-accent { color: var(--lime-2); }
.stack__open { position: absolute; z-index: 1; right: 32px; bottom: 32px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(31px 31px at 27px 29px, rgba(255, 255, 255, .64), rgba(255, 255, 255, 0)), rgba(184, 163, 255, .74); border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 7px 16px rgba(184, 163, 255, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .3s var(--spring); }
.stack__open svg { display: block; }
/* Вся карточка — один клик на страницу курса (обработчик в js/main.js), поэтому и подсветка обложки реагирует на наведение всей карточки */
.stack:hover .stack__cover { border-color: rgba(245, 245, 255, .5); box-shadow: 0 16px 30px -8px rgba(0, 0, 0, .5), inset 0 1px 1px rgba(255, 255, 255, .12); }
.stack:hover .stack__open { transform: translate(2px, -2px) scale(1.06); }

.stack__modules { position: relative; margin-top: -6px; }
.module { position: relative; height: 68px; margin-top: -6px; padding: 11px 19px; border-radius: 14px; border: 1px solid rgba(178, 166, 255, .22); box-shadow: 0 6px 14px rgba(0, 0, 0, .3), inset 0 1px 1px rgba(255, 255, 255, .07); background: linear-gradient(90deg, rgba(17, 16, 23, .98), rgba(79, 61, 145, .88)); margin-left: calc(16px + var(--i) * 8px); width: calc(100% - 42px - var(--i) * 6px); z-index: calc(10 - var(--i)); transition: margin .5s var(--spring), width .5s var(--spring); }
.module:nth-child(1) { background: linear-gradient(90deg, rgba(19, 19, 24, .98), rgba(56, 46, 92, .9)); }
.module:nth-child(2) { background: linear-gradient(90deg, rgba(18, 17, 24, .98), rgba(69, 54, 120, .89)); }
.stack__modules > .stack__list > .module:first-child { margin-top: 0; height: 72px; }
.stack__modules > .stack__list > .module:nth-child(2) { margin-top: -10px; }
.module--lime { border-color: rgba(215, 255, 69, .22); }
.module__label { display: block; font-size: 10px; line-height: 14px; font-weight: 600; color: #8F76FF; letter-spacing: -.01em; }
.module__name { display: block; margin-top: 7px; font-size: 16px; line-height: 20px; letter-spacing: -.006em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stack:not(.is-open) .module:nth-child(2) { margin-top: -10px; margin-left: 30px; width: calc(100% - 70px); height: 70px; }
.stack:not(.is-open) .module:nth-child(3) { margin-top: -10px; margin-left: 46px; width: calc(100% - 106px); }
.stack:not(.is-open) .module:nth-child(4) { margin-top: -10px; margin-left: 62px; width: calc(100% - 142px); }
.stack:not(.is-open) .module:nth-child(5) { margin-top: -10px; margin-left: 78px; width: calc(100% - 178px); }
.stack__extra { display: grid; grid-template-rows: 0fr; margin-top: -6px; transition: grid-template-rows .55s var(--ease); }
.stack__extra > ul { min-height: 0; overflow: hidden; padding-bottom: 14px; margin-bottom: -14px; }
.stack__extra .module { transform: translateY(-14px); opacity: 0; transition: transform .5s var(--spring), opacity .35s; }
.stack.is-open .stack__extra { grid-template-rows: 1fr; }
.stack.is-open .stack__extra .module { transform: none; opacity: 1; transition-delay: calc(.08s + var(--i) * .06s - .24s); }
.stack__more { display: block; margin: 16px auto 0; width: min(314px, 100% - 60px); height: 46px; border-radius: 13px; border: 1px solid rgba(184, 171, 255, .24); background: linear-gradient(90deg, rgba(31, 28, 46, .97), rgba(84, 64, 150, .94)); box-shadow: 0 7px 14px rgba(0, 0, 0, .28); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; }
.stack__more:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, .34); }
/* «Свернуть» — та же кнопка по центру стопки, что и «+ ещё 4 модуля»: раньше она становилась мелкой ссылкой у левого края и вылезала за рамку */
.stack.is-open .stack__more { margin-top: 20px; margin-bottom: 30px; }
.stack__more:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.quiz { position: relative; min-height: 184px; padding: 24px 28px 28px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-tile); color: var(--ink); outline-offset: 6px; transition: box-shadow .4s; }
.quiz.is-highlight { box-shadow: var(--shadow-tile), 0 0 0 3px rgba(199, 255, 46, .9); }
.quiz__progress { position: absolute; right: 28px; top: 28px; display: flex; gap: 6px; transition: opacity .3s; }
.quiz__progress i { width: 10px; height: 10px; border-radius: 50%; background: rgba(23, 24, 28, .16); transition: background .3s; }
.quiz__progress i.is-done { background: var(--lime-2); box-shadow: 0 0 0 2px rgba(215, 255, 69, .25); }
.quiz.is-final .quiz__progress { opacity: 0; }
.quiz__reset { position: absolute; z-index: 2; right: 28px; bottom: 24px; padding: 4px 0; border: 0; background: none; font-size: 13px; line-height: 16px; font-weight: 500; color: rgba(23, 24, 28, .6); cursor: pointer; transition: color .2s; }
.quiz__reset:hover { color: var(--ink); }
.quiz__stage { position: relative; overflow: clip; overflow-clip-margin: 8px; transition: height .45s var(--ease); }
.quiz__step { position: absolute; left: 0; right: 0; top: 0; opacity: 0; visibility: hidden; transform: translateX(18px); transition: opacity .4s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.quiz__step.is-active { position: relative; opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease) .12s, transform .5s var(--ease) .12s, visibility 0s; }
.quiz__step.is-leaving { transform: translateX(-18px); }
.quiz__title { font-size: 22px; line-height: 27px; font-weight: 600; }
.quiz__sub { margin-top: 8px; font-size: 14px; line-height: 17px; color: rgba(23, 24, 28, .62); }
.quiz__sub--wide { max-width: 520px; line-height: 18px; color: rgba(23, 24, 28, .7); }
.quiz__chips { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { height: 42px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 22px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(23, 24, 28, .14); font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
[data-field="level"] .chip { padding: 0 14px; }
.chip::before { content: ""; display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-2); }
.chip:hover { background: rgba(255, 255, 255, .9); transform: translateY(-1px); }
.chip[aria-pressed="true"], .chip--dark { background: var(--ink); border-color: var(--ink); color: #FAF8F1; }
.chip[aria-pressed="true"]::before { display: block; }
.chip--dark:hover { background: #2a2b31; }
.quiz__step--result { display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 24px; row-gap: 12px; }
.quiz__route { display: flex; flex-direction: column; margin-top: -4px; }
.quiz__eyebrow { font-size: 13px; line-height: 16px; font-weight: 500; color: rgba(23, 24, 28, .7); }
.quiz__eyebrow--step { font-size: 12px; line-height: 16px; color: rgba(23, 24, 28, .7); }
.quiz__route-name { margin-top: 4px; font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.quiz__route-name:hover { text-decoration: underline; }
.quiz__facts { margin-top: 6px; font-size: 13px; line-height: 17px; color: rgba(23, 24, 28, .72); }
.quiz__pace { margin-top: 2px; font-size: 13px; line-height: 17px; color: rgba(23, 24, 28, .7); }
.quiz__note { grid-column: 1; align-self: end; font-size: 13px; line-height: 17px; color: rgba(23, 24, 28, .7); }
.quiz__form { grid-column: 2; grid-row: 1 / 3; padding-top: 20px; }
.quiz__fields { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 10px; }
.quiz__field { display: block; }
.quiz__field input { width: 160px; height: 44px; padding: 0 13px; border-radius: 14px; border: 1px solid rgba(23, 24, 28, .14); background: rgba(255, 255, 255, .7); font: 400 14px var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.quiz__field input::placeholder { color: rgba(23, 24, 28, .45); }
.quiz__field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 24, 28, .08); }
.quiz__field input[aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 102, 97, .18); }
.quiz__fields .chip { height: 44px; }
.quiz__error { margin-top: 8px; min-height: 0; font-size: 12px; line-height: 15px; color: #c8342f; }
.quiz__error:empty { display: none; }
.is-routed { box-shadow: 0 0 0 3px var(--lime) !important; }
.stack.is-routed { box-shadow: none !important; }
.stack.is-routed .stack__cover { box-shadow: 0 0 0 3px var(--lime), 0 12px 24px -8px rgba(0, 0, 0, .38); }

.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { position: relative; display: block; height: 292px; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; box-shadow: 0 24px 48px -12px var(--card-glow, rgba(0, 0, 0, .5)); transition: opacity .35s var(--ease); }
.card:hover::after { opacity: 1; }
.card--js { --card-glow: rgba(213, 255, 63, .28); }
.card--ai { --card-glow: rgba(117, 79, 255, .42); }
.card--fl { --card-glow: rgba(115, 214, 255, .22); }
.card--wp { --card-glow: rgba(115, 214, 255, .3); }
/* Слот под 3D-объекты (assets/img/3d/): объект лежит в правом нижнем углу внутри карточки, кадр карточки режет его по краю (overflow: hidden у .card); тень короткая — объект стоит на карточке, а не парит над ней. Текст уходит в левую колонку, стрелка — в правый верхний угол. Старый декор при наличии 3D прячется. */
.card__3d { --w: clamp(116px, calc(110% - 150px), 204px); position: absolute; z-index: 1; right: calc(var(--w) * -.19); bottom: calc(var(--w) * -.15); width: var(--w); height: auto; pointer-events: none; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5)) drop-shadow(0 0 24px var(--card-glow, transparent)); transition: transform .5s var(--spring); }
.card:hover .card__3d { transform: translateY(-6px) rotate(-3deg); }
.card--js:has(.card__3d) .card__js-tile, .card--ai:has(.card__3d) .card__art, .card--fl:has(.card__3d) .card__sources { display: none; }
.card:has(.card__3d) .card__text { max-width: 150px; }
.card:has(.card__3d) .card__go { right: 20px; bottom: auto; top: 12px; width: 40px; height: 40px; }
.card--js .card__text, .card--ai .card__text { max-width: 176px; }
/* Заглушка «Скоро»: содержимое под блюром и полупрозрачным слоем, поверх — стекло, бейдж и подпись; карточка не ссылка */
.card.is-soon { cursor: default; }
.card.is-soon:hover { transform: none; }
.card.is-soon::after { display: none; }
.card__inner { position: absolute; inset: 0; filter: blur(6px); }
.card__veil { position: absolute; inset: 0; background: rgba(9, 10, 11, .48); }
.card__soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; padding: 20px; }
.card__soon-art { position: absolute; right: 4px; top: 2px; width: 156px; height: 156px; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5)); pointer-events: none; }
.card__soon-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.card__soon-badge { margin-bottom: 6px; border-color: rgba(215, 255, 69, .4); color: var(--lime-2); }
.card__soon-link { margin-top: 8px; }
.card__soon-title { font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -.013em; }
.card__soon-text { max-width: 200px; font-size: 13px; line-height: 18px; color: var(--muted-2); }
.card:hover { transform: translateY(-6px); }
/* Пилюли «Курс» с точкой над заголовком больше нет — заголовок стоит у верхнего края, стрелка в правом верхнем углу */
.card__title { position: absolute; left: 24px; top: 22px; max-width: 200px; font-size: 23px; line-height: 25px; font-weight: 700; letter-spacing: -.013em; }
.card__title--sm { left: 20px; font-size: 22px; line-height: 26px; }
.card__text { position: absolute; left: 24px; top: 86px; max-width: 190px; font-size: 14px; line-height: 19px; color: var(--muted); letter-spacing: -.007em; }
.card__text--narrow { max-width: 170px; line-height: 18px; }
.card--fl .card__text { left: 20px; max-width: 128px; }
.card__dur { position: absolute; left: 24px; bottom: 20px; font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: -.005em; color: rgba(255, 255, 255, .78); }
.card--fl .card__dur { left: 20px; }
.card__go { position: absolute; right: 24px; bottom: 28px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .3s var(--spring); }
.card__go--lime { background: radial-gradient(31px 31px at 26px 27px, rgba(255, 255, 255, .64), rgba(255, 255, 255, 0)), rgba(212, 255, 64, .74); box-shadow: 0 7px 8px rgba(212, 255, 64, .28); }
.card__go--cobalt { background: radial-gradient(31px 31px at 26px 27px, rgba(255, 255, 255, .64), rgba(255, 255, 255, 0)), rgba(115, 214, 255, .74); box-shadow: 0 7px 8px rgba(115, 214, 255, .28); }
.card__go--violet { background: radial-gradient(31px 31px at 26px 27px, rgba(255, 255, 255, .64), rgba(255, 255, 255, 0)), rgba(184, 163, 255, .74); box-shadow: 0 7px 8px rgba(184, 163, 255, .28); }
.card:hover .card__go { transform: scale(1.1); }
/* 768–1279: карточка ~245 px — заголовок у верхнего края и стрелка в углу делят одну строку, поэтому заголовок чуть меньше, стрелка компактнее */
@media (min-width: 768px) and (max-width: 1279px) {
  .card__title { font-size: 21px; line-height: 24px; max-width: 168px; }
  .card:has(.card__3d) .card__go { width: 36px; height: 36px; right: 16px; top: 14px; }
}

.card--js { background: radial-gradient(123px 123px at 258px 188px, rgba(213, 255, 63, .16), rgba(213, 255, 63, 0)), linear-gradient(104deg, #090E16 0%, #0B1829 62%, #14293D 100%); border: 1px solid rgba(184, 196, 219, .2); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .34); }
.card__lines { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
.card__snippet { position: absolute; left: 200px; top: 168px; font: 500 10px/14px var(--mono); color: #D5FF3F; opacity: .2; letter-spacing: .2px; white-space: pre; transform: rotate(8deg); }
.card--js:has(.card__3d) .card__snippet { display: none; } /* под кубом от сниппета видны только обрезки строк — показываем его лишь на карточке без 3D-объекта */
.card__js-tile { position: absolute; right: -6px; top: -14px; width: 92px; height: 92px; padding: 10px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .24); background: radial-gradient(50px 50px at 40px 46px, rgba(214, 255, 64, .2), rgba(214, 255, 64, 0)), rgba(9, 14, 23, .82); box-shadow: 0 18px 40px rgba(166, 255, 26, .34), inset 0 1px 1px rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); transform: rotate(6deg); transition: transform .4s var(--spring); }
.card--js:hover .card__js-tile { transform: rotate(-2deg) scale(1.04); }

.card--ai { background: radial-gradient(224px 203px at -54px -32px, rgba(87, 64, 158, .88), rgba(87, 64, 158, 0)), radial-gradient(224px 203px at 224px 203px, rgba(69, 56, 135, .92), rgba(69, 56, 135, 0)), radial-gradient(127px 127px at 257px 184px, rgba(169, 138, 255, .04), rgba(169, 138, 255, 0)), #0E0B1F; border: 1px solid rgba(184, 163, 255, .24); box-shadow: 0 10px 22px -8px rgba(66, 31, 184, .18); }
.card__art { position: absolute; right: -14px; top: -26px; width: 236px; height: 246px; object-fit: contain; filter: drop-shadow(0 22px 36px rgba(92, 46, 219, .38)); transition: transform .5s var(--spring); }
.card--ai:hover .card__art { transform: translateY(-4px) rotate(-2deg); }
.card__tools { position: absolute; right: 76px; top: 200px; display: flex; gap: 6px; }
.card__tool { width: 32px; height: 32px; padding: 6px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .22); background: radial-gradient(16px 16px at 14px 15px, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)), rgba(9, 9, 14, .72); box-shadow: 0 5px 10px rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.card--wp { background: radial-gradient(123px 123px at 258px 188px, rgba(115, 214, 255, .14), rgba(115, 214, 255, 0)), linear-gradient(104deg, #07131F 0%, #0A2236 62%, #103A5C 100%); border: 1px solid rgba(160, 205, 235, .22); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .34); }
.card--fl { background: radial-gradient(125px 125px at 170px 228px, rgba(199, 204, 214, .06), rgba(199, 204, 214, 0)), linear-gradient(96deg, #090A0B 0%, #0F1112 72%, #1A1B1C 100%); border: 1px solid rgba(184, 189, 199, .18); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .38); }
.card--fl::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .42; background-image: linear-gradient(rgba(158, 166, 173, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(158, 166, 173, .18) 1px, transparent 1px); background-size: 28px 28px; background-position: 0 20px, 20px 0; pointer-events: none; }
.card__flows { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
.card__sources { position: absolute; right: 28px; top: 92px; width: 76px; height: 104px; }
.card__source { position: absolute; width: 36px; height: 36px; padding: 5px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .22); background: radial-gradient(18px 18px at 16px 17px, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)), rgba(9, 9, 14, .72); box-shadow: 0 5px 10px rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card__source img { border-radius: 6px; }
.card__source:nth-child(1) { left: 0; top: 0; box-shadow: 0 8px 18px rgba(255, 200, 0, .25); }
.card__source:nth-child(2) { left: 40px; top: 32px; box-shadow: 0 8px 18px rgba(255, 80, 80, .25); }
.card__source:nth-child(3) { left: 0; top: 64px; box-shadow: 0 8px 18px rgba(115, 214, 255, .3); }

/* ---------- 04 / Как проходит обучение ---------- */
.process { padding-bottom: 64px; }
.steps { margin-top: 64px; padding: 32px 32px 0; height: 300px; border-radius: 24px; background: var(--graphite); border: 1px solid rgba(255, 255, 255, .08); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.step { position: relative; padding: 84px 24px 0 0; --a1: calc(1 - var(--i) * .17); --a2: calc(.83 - var(--i) * .17); }
.process__cta { margin-top: 32px; display: flex; justify-content: center; }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 2px; background: linear-gradient(90deg, rgb(199 255 46 / var(--a1)), rgb(199 255 46 / var(--a2))); }
.step:last-child::before { right: 0; }
.step::after { content: ""; position: absolute; left: 0; top: 47px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, var(--lime) 4.2px, var(--graphite) 4.8px); box-shadow: 0 0 12px rgba(199, 255, 46, .35); }
.step__num { position: absolute; left: 0; top: 8px; font: 500 12px/18px var(--mono); color: var(--lime); }
.step__title { min-height: 68px; max-width: 256px; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.015em; }
.step__text { max-width: 256px; font-size: 14px; line-height: 20px; color: var(--muted-2); }

/* ---------- 04b / «Как это выглядит изнутри»: скриншоты в перспективе (компонент готов, секция ждёт assets/raw/) ---------- */
.peek { margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.peek__item { min-width: 0; }
.peek__frame { margin: 0; padding: 10px; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .1); perspective: 1200px; }
.peek__shot { width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); transform: rotateY(-8deg); transform-origin: 60% 50%; box-shadow: -18px 24px 40px -18px rgba(0, 0, 0, .7); transition: transform .5s var(--spring); }
.peek__item:hover .peek__shot { transform: rotateY(-3deg) translateY(-4px); }
.peek__title { margin-top: 20px; font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; }
.peek__text { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--muted-2); }

/* ---------- 05 / Результаты ---------- */
.results { padding: 88px 0; }
.results__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 741px); gap: 48px; align-items: start; }
.results__text { padding-top: 16px; }
.results__text .section__lead { margin-top: 24px; max-width: 560px; }
.results__text .btn { margin-top: 80px; }

.story { position: relative; padding: 24px 24px 20px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .18); overflow: hidden; background: radial-gradient(431px 221px at -69px 291px, rgba(115, 214, 255, .22), rgba(31, 84, 92, 0)), radial-gradient(300px 260px at 104% -6%, rgba(199, 255, 46, .16), rgba(60, 90, 30, 0)), linear-gradient(113deg, #08110F 0%, #0C2A2E 42%, #0A1418 100%); box-shadow: 0 18px 36px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08); }
.story__open { width: 44px; height: 44px; margin: -6px -5px 0 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .34); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); color: rgba(255, 255, 255, .94); font-size: 23px; line-height: 1; text-decoration: none; transition: transform .3s var(--spring), background .2s; }
.story__open:hover { background: rgba(255, 255, 255, .3); transform: translate(2px, -2px); }
.story__body { margin-top: 24px; display: grid; grid-template-columns: 192px minmax(0, 1fr); gap: 24px; }
.story__photo { width: 192px; height: 216px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .28); object-fit: cover; background: #120D0F; }
.story__info { padding-top: 5px; }
.story__name { font-size: 28.5px; line-height: 35px; font-weight: 600; letter-spacing: -.004em; }
.story__role { margin-top: 4px; font-size: 18px; line-height: 26px; opacity: .82; }
.story__delta { margin-top: 20px; display: flex; align-items: flex-end; gap: 20px; }
.story__col { display: flex; flex-direction: column; gap: 12px; }
.story__lbl { font-size: 18px; line-height: 22px; opacity: .72; }
.story__num { font: 500 22px/28px var(--mono); letter-spacing: .2px; white-space: nowrap; }
.story__num--lime { font-size: 28.5px; color: #D7FF50; }
.story__note { margin-top: -6px; font-size: 13px; line-height: 16px; opacity: .72; } /* «лучший месяц» — оговорка к «стало» */
.story__arrow { font-size: 18px; line-height: 22px; opacity: .72; padding-bottom: 4px; }
.player { --progress: 0; position: relative; margin: 16px 0 0 -8px; height: 60px; padding: 2px; display: flex; align-items: center; gap: 10px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(220, 245, 255, .08); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.player__btn { width: 54px; height: 54px; flex: none; border: 0; border-radius: 50%; background: #fff; color: #120D0F; display: grid; place-items: center; cursor: pointer; transition: transform .25s var(--spring), background .2s; }
.player__btn:hover { transform: scale(1.05); }
.player__btn svg { grid-area: 1 / 1; }
.player__ico-pause { display: none; }
.player__btn[aria-pressed="true"] .player__ico-play { display: none; }
.player__btn[aria-pressed="true"] .player__ico-pause { display: block; }
.player__wave { flex: 1 1 0px; width: 0; min-width: 0; height: 100%; display: flex; align-items: center; gap: 5.2px; overflow: hidden; }
.player__bar { flex: none; width: 3.9px; height: var(--h, 12px); border-radius: 2px; background: rgba(255, 255, 255, .42); transition: background .2s; }
.player__bar.is-played { background: var(--lime-2); }
.player__time { flex: none; margin: 0 20px 0 6px; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.story__more { margin-top: 16px; display: flex; align-items: center; gap: 24px; font-size: 15.5px; line-height: 20px; color: inherit; text-decoration: none; }
a.story__more:hover span { text-decoration: underline; }
/* Слайдер историй: низ карточки — «Ещё истории» слева, стрелки и счётчик справа; смена слайда — короткое затухание тела */
.story__foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.story__foot .story__more { margin-top: 0; min-width: 0; }
.story__nav { display: flex; align-items: center; gap: 6px; flex: none; }
.story__btn { width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .3s var(--spring); }
.story__btn:hover { background: rgba(255, 255, 255, .22); }
.story__btn:active { transform: scale(.94); }
.story__btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.story__count { min-width: 56px; text-align: center; font: 500 14px/18px var(--mono); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .72); }
.story__body { transition: opacity .2s var(--ease), transform .2s var(--ease); }
.story .player { max-width: 560px; }
.story.is-switching .story__body { opacity: 0; transform: translateY(6px); }
.story__col[hidden], .story__arrow[hidden], .player[hidden] { display: none; }

/* ---------- 06 / Проекты ---------- */
.projects { padding-bottom: 96px; }
.projects__grid { margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.project { position: relative; height: 340px; border-radius: 20px; background: var(--graphite); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(255, 255, 255, .18); }
.project__bar { height: 28px; margin: -1px -1px 0; padding-left: 12px; display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .06); }
.project__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.project__shot { display: block; height: 214px; margin: 0 -1px; overflow: hidden; }
.project__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.project:hover .project__shot img { transform: scale(1.04); }
.project__name { margin: 16px 19px 0; font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: -.007em; }
.project__meta { margin: 6px 19px 0; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .6); }

/* ---------- 07 / Доказательства ----------
   Ритм секции: бумажный разворот основателя → тёмная полоса-обещание с врезкой лицензии →
   два тайла с артом → строка отзывов → лента чеков. Одинаковых прямоугольников подряд больше нет. */
.tile { position: relative; display: block; padding: 28px; border-radius: 24px; overflow: hidden; text-decoration: none; color: #fff; }
.tile--dark { background: var(--graphite); border: 1px solid rgba(255, 255, 255, .08); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
a.tile--dark:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .22); box-shadow: var(--shadow-hover); }
.tile--paper { background: linear-gradient(109deg, var(--paper-1) 2%, var(--paper-2) 55%, var(--paper-3) 96%); box-shadow: var(--shadow-tile); color: var(--ink); }
.tile__eyebrow { font-size: 13px; line-height: 16px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.tile__eyebrow--dark { color: rgba(23, 24, 28, .7); }
.tile__title { margin-top: 8px; max-width: 288px; font-size: 26px; line-height: 31px; font-weight: 600; letter-spacing: -.01em; }
.tile__text { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .68); max-width: 300px; }
.tile__text--tight { margin-top: 3px; }
.tile__link { position: absolute; left: 28px; bottom: 32px; font-size: 14px; line-height: 18px; font-weight: 500; color: #fff; }
.tile__link--lime { color: var(--lime); }
.tile__big { position: relative; font-size: 48px; line-height: 52px; font-weight: 700; letter-spacing: -.025em; }
.tile__big--lime { color: var(--lime); }

/* Основатель — широкий бумажный разворот: прямая речь крупно, фото до нижнего края, цифры строкой под линейкой */
.founder { position: relative; margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 40px; align-items: start; padding: 44px 48px 0; border-radius: 28px; background: linear-gradient(109deg, var(--paper-1) 2%, var(--paper-2) 55%, var(--paper-3) 96%); box-shadow: var(--shadow-tile); color: var(--ink); overflow: hidden; }
.founder__eyebrow { font-size: 13px; line-height: 16px; font-weight: 500; color: rgba(23, 24, 28, .6); }
.founder__quote { margin-top: 14px; max-width: 26ch; font-size: clamp(26px, 2.7vw, 42px); line-height: 1.16; font-weight: 500; letter-spacing: -.024em; text-wrap: balance; }
.founder__quote b { font-weight: 500; box-shadow: inset 0 -.34em 0 rgba(199, 255, 46, .55); }
.founder__sign { margin-top: 20px; font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -.01em; }
.founder__sign::before { content: "— "; }
.founder__video { margin-top: 26px; display: inline-grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 16px; max-width: 460px; padding: 10px 18px 10px 10px; border-radius: 16px; border: 1px solid rgba(23, 24, 28, .14); background: rgba(255, 255, 255, .5); text-decoration: none; color: inherit; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.founder__video:hover { border-color: rgba(23, 24, 28, .3); background: rgba(255, 255, 255, .84); transform: translateY(-2px); }
.founder__frame { position: relative; display: block; height: 76px; border-radius: 10px; overflow: hidden; background: var(--graphite); }
.founder__still { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transition: transform .6s var(--ease); }
.founder__video:hover .founder__still { transform: scale(1.05); }
.founder__play { position: absolute; left: calc(50% - 18px); top: calc(50% - 18px); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); background: radial-gradient(24px 24px at 20px 20px, rgba(255, 255, 255, .64), rgba(255, 255, 255, 0)), rgba(184, 163, 255, .82); }
.founder__vcopy { display: block; min-width: 0; }
.founder__vtitle { display: block; font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -.01em; }
.founder__vlink { display: block; margin-top: 4px; font-size: 13px; line-height: 17px; color: rgba(23, 24, 28, .62); }
.founder__photo { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: end; width: 100%; max-width: 520px; height: auto; margin: 0 -32px -1px 0; object-fit: contain; }
.founder__facts { grid-column: 1; margin-top: 36px; padding: 24px 0 44px; display: flex; flex-wrap: wrap; gap: 16px 56px; border-top: 1px solid rgba(23, 24, 28, .14); }
.founder__facts dt { font-size: 28px; line-height: 33px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; }
.founder__facts dd { margin-top: 4px; font-size: 13px; line-height: 16px; color: rgba(23, 24, 28, .65); white-space: nowrap; }

/* Гарантия — не плитка, а полоса: обещание крупной строкой, лицензия узкой врезкой за вертикальной линейкой */
.refund { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 40px; padding: 44px 0; border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.refund__line { margin-top: 16px; max-width: 17ch; font-size: clamp(32px, 3.6vw, 58px); line-height: 1.06; font-weight: 600; letter-spacing: -.032em; text-wrap: balance; }
.refund__line b { font-weight: 600; color: var(--lime); }
.refund__text { margin-top: 20px; max-width: 560px; font-size: 16px; line-height: 24px; color: var(--muted-2); }
.license { align-self: stretch; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-content: center; gap: 20px; padding-left: 40px; border-left: 1px solid rgba(255, 255, 255, .14); text-decoration: none; color: inherit; }
.license__scan { width: 92px; height: 120px; border-radius: 6px; box-shadow: 0 14px 28px -6px rgba(0, 0, 0, .5); transform: rotate(-4deg); transition: transform .5s var(--spring); }
.license__copy { display: block; min-width: 0; align-self: center; }
.license__title { display: block; font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -.012em; }
.license__text { display: block; margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--muted-2); }
.license__link { display: block; margin-top: 12px; font-size: 14px; line-height: 18px; font-weight: 500; color: var(--lime); }

/* Деньги и рынок — единственная пара карточек в секции, нарочно разной ширины */
.proofs__money { margin-top: 40px; display: grid; gap: 24px; grid-template-columns: minmax(0, 592fr) minmax(0, 824fr); }
.proofs__money .tile { min-height: 232px; }
.proofs__money .tile__text { margin-top: 12px; }
.proofs__money .tile--market .tile__text { max-width: 300px; }
.proofs__money .tile--market .tile__text--more { max-width: 460px; }

/* Отзывы — одна строка на линейке: оценка, чат, темы. Ни фона, ни скруглений */
.tg { margin-top: 40px; display: grid; grid-template-columns: 56px auto minmax(0, 1fr) minmax(0, 396px); align-items: center; gap: 12px 32px; padding: 32px 0; border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); text-decoration: none; color: inherit; }
.tg__logo { width: 56px; height: 56px; transition: transform .5s var(--spring); }
.tg:hover .tg__logo { transform: translateY(-3px) rotate(-8deg); }
.tg__score { display: flex; align-items: baseline; gap: 10px; font-size: 64px; line-height: 68px; font-weight: 600; letter-spacing: -.035em; }
.tg__of { font-size: 22px; line-height: 26px; font-weight: 500; letter-spacing: -.01em; color: rgba(255, 255, 255, .45); }
.tg__facts { display: block; min-width: 0; }
.tg__fact { display: block; font-size: 15px; line-height: 21px; color: var(--muted-2); }
.tg__fact + .tg__fact { margin-top: 6px; }
.tg__fact b { font-weight: 600; color: #fff; }
.tg:hover .tg__fact:first-child { color: #fff; }
.tg__topics { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tg__topics span { padding: 6px 10px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(255, 255, 255, .8); }

.tile--income::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 433px 229px, rgba(199, 255, 46, .24), rgba(199, 255, 46, .14) 110px, rgba(199, 255, 46, 0) 200px); pointer-events: none; }
/* 3D-объекты в тайлах дохода и заказов: та же логика, что у карточек */
.tile--income, .tile--market { overflow: hidden; }
.tile--income { --tile-glow: rgba(255, 214, 60, .34); }
.tile--market { --tile-glow: rgba(115, 214, 255, .3); }
.tile__3d { position: absolute; z-index: 1; right: -30px; bottom: -34px; width: 224px; height: auto; pointer-events: none; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5)) drop-shadow(0 0 30px var(--tile-glow, transparent)); transition: transform .5s var(--spring); }
.tile--income:hover .tile__3d, .tile--market:hover .tile__3d { transform: translateY(-6px) rotate(-3deg); }
.tile--income:has(.tile__3d)::after, .tile--market:has(.tile__3d) .tile--income:has(.tile__3d) .tile__text, .tile--market:has(.tile__3d) .tile__text { max-width: 236px; }
.tile--income .tile__text, .tile--market .tile__text { position: relative; max-width: 236px; }
.tile__text--more { margin-top: 12px; }
.tile--income::after { content: "₽"; position: absolute; right: 20px; top: -22px; font-size: 200px; line-height: 1; font-weight: 700; letter-spacing: -.05em; color: rgba(199, 255, 46, .09); pointer-events: none; }
.tile--income .tile__text { position: relative; }
.tile--market::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 433px 229px, rgba(255, 217, 51, .2), rgba(255, 217, 51, .12) 100px, rgba(255, 217, 51, 0) 190px); pointer-events: none; }
/* Стопка площадок с заказами: единый 3D-набор плиток Telegram, Kwork и Профи.ру веером — те же ассеты, что на флагмане */
.orders { position: absolute; right: -10px; bottom: 24px; width: 192px; height: 118px; pointer-events: none; }
.orders__tile { position: absolute; top: 12px; width: 88px; height: 88px; filter: drop-shadow(0 10px 13px rgba(0, 0, 0, .5)); transition: transform .45s var(--spring); }
.orders__tile--tg { left: 0; transform: rotate(-14deg); }
.orders__tile--kwork { left: 52px; top: 0; z-index: 1; transform: rotate(-3deg); }
.orders__tile--profi { left: 104px; transform: rotate(11deg); }
.tile--market:hover .orders__tile--tg { transform: rotate(-18deg) translate(-4px, -4px); }
.tile--market:hover .orders__tile--kwork { transform: rotate(0) translateY(-6px); }
.tile--market:hover .orders__tile--profi { transform: rotate(15deg) translate(4px, -4px); }

/* ---------- 08 / Лента преимуществ: каждая ячейка — одна строка по вертикальному центру, отступы 24 ---------- */
.rail { padding: 24px 0; }
.rail__inner { width: min(100% - 96px, 1440px); margin-inline: auto; min-height: 96px; display: grid; grid-template-columns: 1fr; border-radius: 14px; border: 1px solid rgba(184, 191, 204, .18); background: linear-gradient(90deg, #070808, #0B0C0E 52%, #070708); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .34), inset 0 1px 1px rgba(255, 255, 255, .05); }
.rail__features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { position: relative; padding: 24px 20px 24px 24px; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.feature + .feature::before { content: ""; position: absolute; left: 0; top: 50%; height: 48px; width: 1px; background: rgba(255, 255, 255, .1); transform: translateY(-50%); }
.feature__icon { grid-row: 1 / 3; width: 40px; height: 40px; padding: 6px; border-radius: 12px; }
.feature__icon svg { width: 28px; height: 28px; }
.feature__icon--glass { background: radial-gradient(22px 22px at 20px 20px, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0)), rgba(15, 17, 19, .86); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 7px 7px rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.feature__icon--glow { background: radial-gradient(circle at 50% 50%, rgba(212, 255, 64, .16), rgba(212, 255, 64, 0) 70%); }
.feature__title { align-self: end; font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -.007em; }
.feature__text { align-self: start; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--muted); }

/* ---------- 09 / Консультация ---------- */
.consult { padding: 72px 0; }
.consult__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 721px); gap: 48px; align-items: start; }
.consult__text { padding-top: 24px; }
.consult__lead { margin-top: 16px; max-width: 560px; font-size: 18px; line-height: 26px; letter-spacing: -.008em; color: rgba(255, 255, 255, .72); }
.consult__sub { margin-top: 72px; font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: -.007em; }
.consult__steps { margin-top: 16px; display: grid; gap: 14px; }
/* Нумерация 01–03 убрана — колонку под неё тоже убрали, иначе текст шага вжимался в 44 px и ехал в столбик.
   Вместо номера — висячая метка: шаг в две строки больше не читается как два разных шага, перенос уходит под отступ */
.consult__steps li { position: relative; max-width: 480px; padding-left: 20px; font-size: 16px; line-height: 24px; color: rgba(255, 255, 255, .85); }
.consult__steps li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 2px; border-radius: 1px; background: var(--lime-2); }

.form { padding: 40px 40px 48px; border-radius: 24px; background: linear-gradient(104deg, var(--paper-1) 2%, var(--paper-2) 55%, var(--paper-3) 96%); box-shadow: var(--shadow-tile); color: var(--ink); }
.form__title { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; }
.form__sub { margin-top: 6px; max-width: 520px; font-size: 16px; line-height: 24px; color: rgba(23, 24, 28, .64); }
/* Снизу у поля всегда зарезервировано 20 px под строку ошибки: без них подсказка ложилась на соседнее поле, а в модалке — на кнопку «Узнать стоимость» */
.field { position: relative; display: block; max-width: 568px; height: 80px; margin-top: 16px; margin-bottom: 20px; padding: 16px 20px 0; border-radius: 16px; background: #131418; border: 1px solid #383B45; color: #fff; cursor: text; transition: border-color .2s, box-shadow .2s; }
.form__sub + .field { margin-top: 32px; }
.field + .field { margin-top: 0; }
.field:focus-within { border-color: var(--lime-2); box-shadow: 0 0 0 3px rgba(215, 255, 69, .18); }
.field.is-invalid { border-color: var(--coral); }
.field__label { display: block; font: 500 11px/14px var(--font); color: #9A9DA6; }
.field__input { display: block; width: 100%; margin-top: 8px; padding: 0; border: 0; background: none; color: #fff; font: 400 15px/21px var(--font); }
.field__input::placeholder { color: #8C8F99; }
.field__input:focus { outline: none; }
.field__error { position: absolute; left: 20px; top: calc(100% + 3px); font-size: 12px; line-height: 15px; color: var(--coral); }
.levels { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.levels__legend { width: 100%; margin-bottom: 12px; font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: -.007em; float: left; }
.level { position: relative; cursor: pointer; }
.level input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.level span { display: grid; place-items: center; width: 176px; height: 46px; border-radius: 23px; background: #131418; border: 1px solid #3B3D47; color: #F7F7FA; font-size: 14px; font-weight: 600; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.level:hover span { transform: translateY(-1px); border-color: #55596a; }
.level input:checked + span { background: var(--lime-2); border-color: var(--lime-2); color: var(--ink); }
.level input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.form__submit { margin-top: 40px; }
.form__error { margin-top: 16px; max-width: 520px; font-size: 14px; line-height: 20px; font-weight: 500; color: #C8342F; }
.form__error:empty { display: none; }
.form__note { margin-top: 24px; max-width: 520px; font-size: 14px; line-height: 20px; color: rgba(23, 24, 28, .7); }
.form__note a { color: inherit; }

/* ---------- 10 / Футер ---------- */
/* Подвал не обрывается в чёрное: над линией — широкий отсвет акцента страницы. */
.footer { border-top: 1px solid rgba(255, 255, 255, .08); padding: 56px 0 40px; background-image: radial-gradient(64vw 300px at 50% 0%, rgba(var(--accent-rgb), .055), rgba(var(--accent-rgb), 0) 72%); background-repeat: no-repeat; background-position: 50% 0; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 432fr) minmax(0, 320fr) minmax(0, 320fr) minmax(0, 368fr); gap: 32px; }
.footer__brand p { margin-top: 16px; max-width: 300px; font-size: 14px; line-height: 20px; color: var(--muted-2); }
.footer__col { display: flex; flex-direction: column; }
.footer__col h3 { font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: -.007em; }
.footer__col a { margin-top: 12px; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .2s; }
.footer__col h3 + a { margin-top: 16px; }
.footer__col a:hover { color: #fff; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px 40px; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .45); }
.footer__bottom a { color: inherit; text-decoration: none; }
.footer__bottom a:hover { color: #fff; }
.footer__bottom a:last-child { min-width: 88px; }

/* ---------- Оверлей «Заявка отправлена» ---------- */
.modal { width: min(480px, calc(100% - 40px)); max-height: none; padding: 0; border: 0; background: transparent; color: var(--ink); }
.modal::backdrop { background: rgba(5, 5, 6, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .35s var(--spring); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__panel { position: relative; padding: 40px; border-radius: 24px; background: linear-gradient(108deg, var(--paper-1) 2%, var(--paper-3) 96%); box-shadow: 0 24px 48px -8px rgba(0, 0, 0, .4); }
.modal__x { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(23, 24, 28, .06); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.modal__x:hover { background: rgba(23, 24, 28, .12); }
.modal__check { width: 56px; height: 56px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 26px; font-weight: 600; }
.modal__title { margin-top: 20px; font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; }
.modal__text { margin-top: 12px; max-width: 400px; font-size: 16px; line-height: 24px; color: rgba(23, 24, 28, .7); }
.modal__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px 40px; } /* три кнопки на флагмане переносятся, а не вылезают за панель */
.modal__btn { padding: 0; border: 0; background: none; font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: -.007em; color: var(--ink); text-decoration: none; cursor: pointer; }
.modal__btn:hover { text-decoration: underline; }

/* Чеки из канала @aroken_result: слева текст, справа лента скринов оплат (обрезаны до даты, отправителя и суммы), листается по горизонтали */
.proofs__checks { margin-top: 24px; }
.tile--checks { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: center; gap: 32px; padding: 28px 0 28px 28px; }
.tile--checks::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 120px 100%, rgba(199, 255, 46, .18), rgba(199, 255, 46, .1) 120px, rgba(199, 255, 46, 0) 260px); pointer-events: none; }
.checks__copy { position: relative; }
.checks__title { margin-top: 8px; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.015em; }
.checks__text { margin-top: 12px; max-width: 320px; font-size: 15px; line-height: 21px; color: rgba(255, 255, 255, .72); }
.tile--checks .tile__link { position: static; display: inline-block; margin-top: 20px; text-decoration: none; }
.tile--checks .tile__link:hover { text-decoration: underline; }
.checks__rail { position: relative; display: flex; gap: 14px; padding: 10px 28px 6px 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline-end: 14%; /* правые 14 % — затухание mask-image: карточка, получившая фокус с клавиатуры, докручивается в непрозрачную зону */ scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
.checks__rail::-webkit-scrollbar { display: none; }
.checks__nav { position: relative; margin-top: 22px; display: flex; gap: 6px; }
.checks__btn { width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, opacity .2s, transform .3s var(--spring); }
.checks__btn:hover:not(:disabled) { background: rgba(255, 255, 255, .22); }
.checks__btn:active:not(:disabled) { transform: scale(.94); }
.checks__btn:disabled { opacity: .3; cursor: default; }
.checks__btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.checks__rail.is-end { -webkit-mask-image: none; mask-image: none; }
/* Лента едет сама: снап выключен (иначе он дёргает ленту назад), затухание с обеих сторон — карточки въезжают и уезжают мягко */
.checks__rail.is-auto { scroll-snap-type: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 86%, transparent); }
.check { flex: none; width: 232px; scroll-snap-align: start; color: inherit; text-decoration: none; }
.check__img { display: block; width: 232px; height: 176px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 14px 28px -8px rgba(0, 0, 0, .6); object-fit: cover; transition: transform .35s var(--spring); }
.check:nth-child(odd) .check__img { transform: rotate(-2.5deg); }
.check:nth-child(even) .check__img { transform: rotate(2.5deg); }
.check:hover .check__img { transform: translateY(-4px); }
.check__cap { display: block; margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check:hover .check__cap { color: #fff; }

/* Как проходит обучение: бенто с макетами платформы, разбора домашки и чата (живые макеты вместо картинок) */
.learn__grid { margin-top: 64px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.learn__tile { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.learn__tile--platform { grid-column: span 7; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
.learn__tile--platform .learn__copy { align-self: flex-start; } /* текст сверху слева, кадр урока внизу справа — как у остальных тайлов эйбрау стоит у верхнего края, а не посреди тайла */
.learn__tile--homework { grid-column: span 5; }
.learn__tile--chat { grid-column: span 5; }
.learn__tile--result { grid-column: span 7; flex-direction: row; align-items: flex-start; align-content: space-between; flex-wrap: wrap; gap: 24px 40px; } /* «В итоге» и список — у верхнего края, кнопка — у нижнего */
.learn__copy { position: relative; max-width: 360px; }
.learn__title { margin-top: 10px; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.015em; }
.learn__text { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--muted-2); }
.tile--paper .learn__text { color: rgba(23, 24, 28, .72); }
.learn__list { position: relative; flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 21px; letter-spacing: -.006em; color: rgba(23, 24, 28, .84); }
.learn__list li { position: relative; padding-left: 22px; }
.learn__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(199, 255, 46, .25); }
.learn__cta { flex: none; align-self: flex-end; }
/* Дизайн-контроль: у тайла платформы текст сверху, как у остальных, макет урока — к нижнему краю; тайл итога — сетка: текст + список сверху, кнопка внизу первой колонки (без дыры в левом верхнем углу); вкладки макета переносятся на 240 px */
.learn__tile--platform { align-items: flex-start; }
.learn__tile--platform .lesson { align-self: flex-end; margin: 0 -28px -28px 0; border-right: 0; border-bottom: 0; border-radius: 16px 0 0 0; } /* кадр урока выходит в правый нижний угол тайла — арт до края, как требует система; клип тайла срезает его по радиусу 24 */
.btn--dark { background: var(--ink); border-color: var(--ink); color: #FAF8F1; }
.btn--dark:hover { background: #2a2b31; }
/* макет платформы: кадр урока + строка с вкладками */
.lesson { flex: 0 1 360px; min-width: 240px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: #0F1114; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08); overflow: hidden; }
.lesson__video { position: relative; height: 190px; background: radial-gradient(180px 140px at 30% 40%, rgba(184, 163, 255, .28), rgba(184, 163, 255, 0)), linear-gradient(160deg, #1B1E2A, #0B0C10); overflow: hidden; }
.lesson__still { position: absolute; right: -14px; bottom: -88px; width: 230px; height: auto; object-fit: contain; filter: saturate(.9); }
.lesson__play { position: absolute; left: 20px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); box-shadow: 0 8px 20px rgba(199, 255, 46, .35); }
.lesson__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .14); }
.lesson__bar i { display: block; width: 38%; height: 100%; background: var(--lime); }
.lesson__body { padding: 14px 16px 16px; }
.lesson__crumb { display: block; font: 500 11px/16px var(--mono); color: rgba(255, 255, 255, .55); }
.lesson__name { display: block; margin-top: 6px; font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -.01em; }
.lesson__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lesson__tabs > * { padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); font-size: 11px; line-height: 14px; font-weight: 500; color: rgba(255, 255, 255, .7); }
.lesson__tabs b { background: rgba(255, 255, 255, .12); color: #fff; }
/* Дизайн-контроль (после базовых правил макета): вкладки в одну строку на 300 px (было 267 px контента в 266) с переносом на 240; тайл итога — сетка, кнопка внизу первой колонки; ниже 1400 px тайл 680–774 px — одна колонка */
.lesson__tabs { flex-wrap: wrap; gap: 5px; }
.lesson__tabs > * { padding: 5px 8px; white-space: nowrap; }
.learn__tile--result { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; row-gap: 28px; align-items: start; } /* «В итоге», список и кнопка одной колонкой на всех ширинах: в две колонки список занимал только верх правой половины и оставлял под собой 200 px пустой бумаги */
.learn__tile--result .learn__cta { grid-column: 1; align-self: end; justify-self: start; }
/* макет разбора домашки: два сообщения */
.review { position: relative; display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.review__msg { position: relative; max-width: 88%; padding: 12px 14px 12px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .88); }
.review__msg--me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: rgba(184, 163, 255, .14); border-color: rgba(184, 163, 255, .28); }
.review__who { display: block; margin-bottom: 4px; font: 500 11px/14px var(--mono); color: var(--lime-2); }
.review__msg--me .review__who { color: var(--violet); }
.review__stamp { display: block; margin-top: 8px; font: 500 11px/14px var(--mono); color: rgba(255, 255, 255, .5); }
/* макет чата: список тем */
.topics { position: relative; margin-top: auto; display: flex; flex-direction: column; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); overflow: hidden; }
.topics__item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: 13px; line-height: 18px; font-weight: 500; color: rgba(255, 255, 255, .88); }
.topics__item + .topics__item { border-top: 1px solid rgba(255, 255, 255, .08); }
.topics__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 8px var(--cobalt); flex: none; }
.topics__dot--off { background: rgba(255, 255, 255, .25); box-shadow: none; }

/* Модалка заявки — лёгкая: заголовок, строка пояснения, курс из контекста (если известен), имя и контакт, одна кнопка. Курс, оплату и срок выбирают на оформлении (checkout.html). Открывается по всем «Записаться»/«Оставить заявку», #consult остаётся запасным путём без JS */
.modal--lead { width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; }
.lead__title { margin-top: 0; padding-right: 40px; } /* крестик 36 px справа сверху — заголовок под него не заезжает */
.lead__text { margin-top: 12px; font-size: 16px; line-height: 24px; letter-spacing: -.005em; color: rgba(23, 24, 28, .7); }
.lead__course { margin-top: 16px; font-size: 14px; line-height: 20px; color: rgba(23, 24, 28, .6); }
.lead__course b { font-weight: 600; color: var(--ink); }
.lead__fields { margin-top: 28px; display: grid; }
.lead .field { max-width: none; margin-top: 0; background: rgba(255, 255, 255, .6); border-color: rgba(23, 24, 28, .16); color: var(--ink); }
.lead .field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 24, 28, .1); }
.lead .field__label { color: rgba(23, 24, 28, .6); }
.lead .field__input { font-size: 17px; line-height: 24px; color: var(--ink); } /* 17 px: крупнее, и iOS не приближает страницу при фокусе */
.lead .field__input::placeholder { color: rgba(23, 24, 28, .4); }
.lead .field.is-invalid { border-color: #c8362f; }
.lead .field__error { color: #c8362f; } /* коралл на бумаге читался бледно — тёмный красный, как у ошибки формы */
.lead__submit { width: 100%; margin-top: 4px; justify-content: space-between; }
.lead .form__error { margin-top: 12px; color: #c8362f; }
.lead .form__note { margin-top: 16px; font-size: 13px; line-height: 18px; color: rgba(23, 24, 28, .6); }
.lead .form__note a { color: inherit; }

/* ---------- 1280–1400 ---------- */
@media (min-width: 1280px) and (max-width: 1400px) {
  .module__name { font-size: 14px; letter-spacing: -.01em; }
  .founder__facts { gap: 16px 36px; }
  .founder__facts dt { font-size: 24px; line-height: 29px; }
  .learn__tile--platform .learn__copy { max-width: 300px; } /* кадру урока остаётся 312 px — четыре вкладки и крошка модуля в одну строку */
}

/* ---------- ≤1400: темы сообщества уходят под оценку — в одну строку они уже не помещаются ---------- */
@media (max-width: 1400px) {
  .tg { grid-template-columns: 56px auto minmax(0, 1fr); }
  .tg__topics { grid-column: 2 / -1; justify-content: flex-start; }
}

/* ---------- 1280–1439: рейка в два ряда — фичи и цифры, каждая ячейка в одну строку ---------- */
@media (max-width: 1439px) {
}

/* ---------- Планшет: 768–1279 ---------- */
@media (max-width: 1279px) {
  .container, .rail__inner { width: calc(100% - 64px); }
  .nav__brand { gap: 20px; }
  .nav__links { gap: 24px; }
  .hero__inner { width: calc(100% - 64px); grid-template-columns: 1fr; gap: 24px; }
  .hero__paper { min-height: 480px; border-radius: 20px; background: var(--paper); box-shadow: 0 16px 34px rgba(0, 0, 0, .34), 0 2px 2px rgba(232, 222, 200, .2), inset 0 1px 1px rgba(255, 255, 255, .76); }
  .hero__paper-bg { display: none; }
  .hero__title { max-width: 560px; font-size: 56px; }
  .hero__title--tight { font-size: 52px; }
  .hero__bottom { padding-top: 40px; }
  .demo { height: 560px; }
  .programs__grid { max-width: none; grid-template-columns: 430px minmax(0, 1fr); grid-template-rows: auto auto; }
  .quiz { grid-column: 1 / -1; order: -1; align-self: start; }
  .stack { grid-row: auto; }
  .quiz__step--result { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .quiz__form { grid-column: 1; grid-row: auto; padding-top: 4px; }
  .quiz__note { grid-column: 1; grid-row: auto; }
  .quiz__field { flex: 1 1 150px; }
  .quiz__field input { width: 100%; }
  .mini { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__tools { display: none; }
  .card__art { width: 200px; height: 208px; right: -20px; top: -18px; }
  .steps { height: auto; padding-bottom: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .results__grid { grid-template-columns: 1fr; }
  .results__text .btn { margin-top: 40px; }
  .story { max-width: 741px; }
  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .peek { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Доказательства на планшете: разворот основателя и полоса гарантии — в одну колонку, врезка лицензии уезжает под обещание */
  .founder { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 32px; padding: 36px 32px 0; }
  .founder__photo { width: 280px; }
  .founder__facts { gap: 16px 36px; }
  .founder__facts dt { font-size: 24px; line-height: 29px; }
  .refund { grid-template-columns: 1fr; gap: 32px; padding: 36px 0; }
  .license { align-self: start; padding: 24px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); max-width: 520px; }
  .proofs__money { grid-template-columns: 1fr; }
  .tile--checks { grid-template-columns: 1fr; gap: 20px; padding: 24px 0 24px 24px; }
  .learn__tile--platform, .learn__tile--homework, .learn__tile--chat, .learn__tile--result { grid-column: span 6; }
  .learn__tile--platform { flex-direction: column; align-items: stretch; }
  .lesson { flex: none; width: 100%; }
  .learn__tile--result { grid-template-columns: 1fr; }
  .feature__text { white-space: normal; }
  .consult__grid { grid-template-columns: 1fr; }
  .consult__text { padding-top: 0; }
  .consult__sub { margin-top: 40px; }
  .form { max-width: 721px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .footer__bottom { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 1023px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__brand { position: relative; z-index: 70; }
  .nav__cta { display: none; }
  .nav__burger { display: block; justify-self: end; }

  /* Меню — полноэкранный оверлей в графите, поверх всего. Закрыт: не виден и не в порядке фокуса. */
  .nav__links {
    position: fixed; left: 0; top: 0; z-index: 60;
    width: 100vw; height: 100vh; height: 100dvh; justify-self: stretch; /* явные размеры: не наследуем grid-выравнивание шапки */
    display: flex; flex-direction: column; gap: 6px;
    margin: 0; padding: calc(84px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
    background: radial-gradient(120% 62% at 100% 0, rgba(var(--accent-rgb), .1), rgba(var(--accent-rgb), 0) 60%), linear-gradient(180deg, #101114, #0B0B0C);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .34s var(--ease), visibility 0s linear .34s;
  }
  .nav.is-open { z-index: 70; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .3s var(--ease), transform .34s var(--ease); }

  .nav__links a { display: flex; align-items: center; min-height: 56px; padding: 12px 16px; border-radius: 14px; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; color: #fff; transition: background .2s, color .2s; }
  .nav__links a:hover, .nav__links a:focus-visible { background: rgba(255, 255, 255, .07); }
  .nav__links a[aria-current] { color: var(--lime); }
  .nav__links a[aria-current]::after { content: ""; width: 7px; height: 7px; margin-left: 10px; border-radius: 50%; background: var(--lime); }

  .nav__links .nav__menu-cta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: auto; min-height: 58px; padding: 14px 20px; border-radius: 15px; background: linear-gradient(90deg, var(--lime-2), var(--lime-3)); color: #000; font-size: 18px; font-weight: 700; letter-spacing: -.005em; box-shadow: 0 0 22px rgba(215, 255, 69, .26); }
  .nav__links .nav__menu-cta:hover, .nav__links .nav__menu-cta:focus-visible { background: linear-gradient(90deg, var(--lime), var(--lime-2)); }
  .nav__links .nav__menu-tg { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 4px; padding: 10px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--muted-2); }
  .nav__links .nav__menu-tg svg { flex: none; }
  .nav__links .nav__menu-tg:hover, .nav__links .nav__menu-tg:focus-visible { color: #fff; background: rgba(255, 255, 255, .05); }
}

/* Скролл страницы под открытым меню заблокирован */
html.is-nav-open, html.is-nav-open body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .nav__burger span, .nav__burger span::before, .nav__burger span::after { transition: none; }
  .nav__links { transition: visibility 0s linear .001s; }
  .nav.is-open .nav__links { transition: none; }
}

/* 768–1023: сетка программ в одну колонку — квиз, стопка флагмана, карточки курсов в два столбца на всю ширину (рядом со стопкой они были 180–250 px, названия ломались) */
@media (max-width: 1023px) {
  .programs__grid { grid-template-columns: 1fr; }
  .quiz { order: -1; }
  .stack { max-width: 448px; }
  .mini { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .mini { grid-template-columns: 1fr; }
  .card { max-width: 448px; }
}

/* Практикум «скоро» — полосой под курсами (1280+ и до 1023); на 1024–1279 сетка 2×2 рядом со стопкой, там он обычной карточкой */
@media (min-width: 1280px), (max-width: 1023px) {
  .card--fl { grid-column: 1 / -1; height: auto; min-height: 116px; }
  .card--fl .card__inner { display: none; }
  .card--fl .card__soon { position: relative; inset: auto; display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; column-gap: 20px; padding: 14px 24px 14px 18px; }
  .card--fl .card__soon-art { position: static; width: 88px; height: 88px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
  .card--fl .card__soon-copy { gap: 4px; }
  .card--fl .card__soon-badge { margin-bottom: 2px; }
  .card--fl .card__soon-title { font-size: 18px; line-height: 22px; }
  .card--fl .card__soon-text { max-width: none; }
  .card--fl .card__soon-link { margin: 0; }
}
/* 900–1279: практикум обычной карточкой — объект «Скоро» стоит в потоке над текстом (правый верх), а не поверх заголовка; при нехватке места ужимается */
@media (min-width: 900px) and (max-width: 1279px) {
  .card--fl .card__soon { justify-content: space-between; }
  .card--fl .card__soon-art { position: static; align-self: flex-end; width: auto; height: 124px; margin: -6px -4px 0 0; flex: 0 1 auto; min-height: 0; }
}
@media (max-width: 767px) {
  .card--fl .card__soon { grid-template-columns: 64px minmax(0, 1fr); row-gap: 12px; padding: 16px 18px; }
  .card--fl .card__soon-art { width: 64px; height: 64px; }
  .card--fl .card__soon-link { grid-column: 2; justify-self: start; }
}

/* ---------- Программы: бесплатный тест-драйв вместо заглушки практикума ---------- */
/* карточки курсов прижаты к верху: когда слева раскрывают модули флагмана, ряд растёт, а карточки не разъезжаются */
.mini { align-content: start; }
.card--td { --card-glow: rgba(199, 255, 46, .2); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 16px; padding: 20px; background: radial-gradient(320px 220px at 100% 0, rgba(199, 255, 46, .13), rgba(199, 255, 46, 0)), linear-gradient(96deg, #090A0B 0%, #0E120D 70%, #151D10 100%); border: 1px solid rgba(199, 255, 46, .22); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .38); }
.card--td::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .34; background-image: linear-gradient(rgba(158, 166, 173, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(158, 166, 173, .18) 1px, transparent 1px); background-size: 28px 28px; background-position: 0 20px, 20px 0; pointer-events: none; }
.card__td-art { position: absolute; right: -14px; top: 18px; width: 150px; height: auto; aspect-ratio: 544 / 549; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); transition: transform .5s var(--spring); pointer-events: none; }
.card--td:hover .card__td-art { transform: translateY(-3px); }
/* подарок: при наведении крышка приоткрывается — второй кадр того же ракурса проявляется поверх */
.card__td-gift { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .28s var(--ease); }
.card__td-gift--open { opacity: 0; }
.card--td:hover .card__td-gift--open, .card--td:focus-visible .card__td-gift--open { opacity: 1; }
.card--td:hover .card__td-gift:not(.card__td-gift--open), .card--td:focus-visible .card__td-gift:not(.card__td-gift--open) { opacity: 0; }
.card__td-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.card__td-badge { margin-bottom: 4px; border-color: rgba(215, 255, 69, .4); color: var(--lime-2); }
.card__td-title { max-width: 250px; font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -.013em; }
.card__td-text { max-width: 290px; font-size: 13px; line-height: 18px; color: var(--muted-2); }
.card__td-text s { color: var(--muted); }
.card__td-link { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; box-shadow: 0 8px 18px -6px rgba(199, 255, 46, .35); transition: background .2s, transform .3s var(--spring); }
.card--td:hover .card__td-link { background: #d7ff50; transform: translateX(2px); }
.card--td:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
/* 1024–1279: обычной карточкой в сетке 2×2 — арт в правом верхнем углу над заголовком, кнопки нет (кликается вся карточка, как курсы рядом) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .card--td { justify-content: flex-start; }
  .card__td-art { right: 16px; top: 16px; width: 76px; }
  .card__td-badge { margin-bottom: 46px; }
  .card__td-link { display: none; }
}
/* полосой во всю ширину под курсами — 1280+ и до 1023; на 1024–1279 обычной карточкой в сетке 2×2 */
@media (min-width: 1280px), (max-width: 1023px) {
  .card--td { grid-column: 1 / -1; height: auto; min-height: 128px; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; column-gap: 24px; padding: 16px 28px 16px 18px; }
  .card__td-art { position: static; width: 124px; justify-self: center; }
  .card__td-title { max-width: none; }
  .card__td-text { max-width: 560px; }
}
@media (max-width: 767px) {
  .card--td { grid-template-columns: 96px minmax(0, 1fr); row-gap: 14px; column-gap: 16px; padding: 18px; }
  .card__td-art { width: 80px; align-self: start; margin-top: 4px; }
  .card__td-title { font-size: 18px; line-height: 22px; }
  .card__td-link { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Программы: плашка «Во флагмане ещё» выезжает под тест-драйвом, когда раскрыты модули флагмана — заполняет пустое место рядом с высокой стопкой ---------- */
.perks { display: none; }
@media (min-width: 1024px) {
  .perks { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; margin-top: -12px; transition: grid-template-rows .55s var(--ease), margin-top .55s var(--ease); }
  .perks__clip { min-height: 0; overflow: hidden; }
  .programs__grid:has(.stack.is-open) .perks { grid-template-rows: 1fr; margin-top: 0; }
  /* плашка тянется до низа раскрытой стопки: последний ряд справа забирает всю оставшуюся высоту, нижний край — вровень с дальним слоем стопки */
  .programs__grid:has(.stack.is-open) .mini { grid-template-rows: auto auto minmax(0, 1fr); align-content: stretch; }
  .perks__clip { display: grid; }
  .perks__box { height: calc(100% - 8px); align-content: center; }
  .perks__box { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: center; gap: 16px 24px; padding: 18px 24px; border-radius: 14px; border: 1px solid rgba(184, 171, 255, .24); background: radial-gradient(260px 160px at 0 100%, rgba(199, 255, 46, .08), rgba(199, 255, 46, 0)), linear-gradient(96deg, rgba(24, 22, 36, .98), rgba(58, 45, 110, .9)); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .38), inset 0 1px 1px rgba(255, 255, 255, .06); color: #fff; text-decoration: none; opacity: 0; transform: translateY(-12px); transition: opacity .3s var(--ease), transform .5s var(--spring), border-color .3s; }
  .programs__grid:has(.stack.is-open) .perks__box { opacity: 1; transform: none; transition-delay: .18s, .18s, 0s; }
  .perks__box:hover { border-color: rgba(184, 171, 255, .45); }
  .perks__box:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
  .perks__head { display: inline-flex; gap: 8px; max-width: 96px; font-size: 13px; line-height: 17px; font-weight: 600; letter-spacing: -.01em; }
  .perks__spark { color: var(--lime-2); }
  .perk { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .perk__img { flex: none; width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); transition: transform .45s var(--spring); }
  .perks__box:hover .perk__img { transform: translateY(-3px) rotate(-4deg); }
  .perk__copy { min-width: 0; }
  .perk__title { display: block; font-size: 15px; line-height: 19px; font-weight: 600; letter-spacing: -.01em; }
  .perk__text { display: block; margin-top: 3px; font-size: 12.5px; line-height: 17px; color: var(--muted-2); }
}
/* 1024–1279: колонка справа узкая — пункты друг под другом */
@media (min-width: 1024px) and (max-width: 1279px) {
  .perks__box { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 20px; }
  .perks__head { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .perks, .perks__box { transition: none; }
}

/* ---------- Мобильный: < 768 ---------- */
@media (max-width: 767px) {
  .container, .hero__inner, .rail__inner { width: calc(100% - 40px); }
  .stack:not(.is-open) .module:nth-child(2) { margin-left: 12px; width: calc(100% - 30px); }
  .stack:not(.is-open) .module:nth-child(3) { margin-left: 22px; width: calc(100% - 52px); }
  .stack:not(.is-open) .module:nth-child(4) { margin-left: 32px; width: calc(100% - 74px); }
  .stack:not(.is-open) .module:nth-child(5) { margin-left: 42px; width: calc(100% - 96px); }
  .nav__inner { width: calc(100% - 32px); }
  .nav__tagline { display: none; }
  .section { padding: 48px 0 56px; }
  .h2, .h2--lg, .h2--semi { font-size: 28px; line-height: 34px; }
  .section__lead { font-size: 16px; line-height: 24px; }
  .hero { padding: 16px 0 48px; }
  .hero__paper { min-height: 0; padding: 24px 22px 28px; }
  .hero__status { gap: 8px 16px; }
  .hero__title { margin-top: 22px; font-size: 40px; }
  .hero__title--tight { font-size: 34px; }
  .hero__text { font-size: 16px; line-height: 24px; }
  .hero__anchor { font-size: 15px; }
  .hero__alt { padding: 12px 0; } /* тап-цель ≥ 44px на телефоне */
  .hero__bottom { padding-top: 28px; gap: 20px; }
  /* Демо: вертикальный стек вместо сплита; при включённом JS вкладки переключают панели */
  .demo { height: 560px; }
  .demo__tabs { grid-template-columns: 1fr 1fr; font-size: 15px; }
  .demo__tab, .demo__tab--result { justify-content: center; gap: 8px; padding: 0; border-bottom: 2px solid transparent; color: var(--muted); transition: color .2s, border-color .2s; }
  .demo__tab.is-active { color: #fff; border-bottom-color: var(--lime-2); }
  .demo__body { flex-direction: column; }
  .demo__code { flex: 1 1 50%; width: 100%; min-height: 0; }
  .demo__result { flex: 1 1 50%; min-height: 0; }
  .demo.has-tabs:not(.is-result) .demo__result { display: none; }
  .demo.has-tabs.is-result .demo__code { display: none; }
  .demo.has-tabs .demo__code, .demo.has-tabs .demo__result { flex-basis: 100%; }
  .demo__divider, .demo__hint { display: none; }
  .code { padding: 14px 0 0 12px; font-size: 10px; line-height: 16px; }
  .demo__easter { left: 12px; width: auto; right: 8px; }
  .demo__site { padding: 20px; }
  .demo__site-title { margin-top: 28px; font-size: 26px; line-height: 30px; }
  .demo__site-text { margin-top: 18px; font-size: 15px; line-height: 21px; }
  .demo__hint { left: 50%; transform: translateX(-50%); bottom: 14px; height: 40px; padding: 0 14px; gap: 10px; font-size: 14px; }
  .demo__hint.is-hidden { transform: translate(-50%, 8px); }
  .programs__grid { margin-top: 32px; gap: 20px; }
  .stack__layer--far { transform: translate(12px, 12px); width: calc(100% - 12px); height: calc(100% - 20px); }
  .stack__layer--mid { transform: translate(6px, 6px); width: calc(100% - 6px); height: calc(100% - 12px); }
  .stack__cover { padding: 19px 22px; }
  .stack__title { font-size: 26px; line-height: 32px; }
  .stack__open { right: 22px; bottom: 26px; width: 44px; height: 44px; }
  .quiz { padding: 22px 20px 24px; }
  .quiz__progress { right: 20px; top: 26px; }
  .quiz__reset { position: static; display: block; margin-top: 14px; }
  .quiz__chips { margin-top: 22px; }
  .quiz__title { max-width: calc(100% - 60px); }
  .chip { padding: 0 14px; }
  .quiz__fields .chip { flex: 1 1 100%; justify-content: center; }
  /* Шаги — горизонтальная лента с привязкой: компактнее пяти карточек столбиком */
  .steps { margin-top: 32px; padding: 20px 20px 24px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 min(76vw, 300px); scroll-snap-align: start; padding: 70px 8px 0 0; }
  .step::before { top: 46px; }
  .step::after { top: 41px; }
  .step__title { min-height: 0; }
  .step__text { margin-top: 10px; }
  .results { padding: 56px 0; }
  .results__text { padding-top: 0; }
  .results__text .section__lead { margin-top: 16px; }
  .results__text .btn { margin-top: 28px; }
  .story { padding: 18px 18px 18px; }
  .story__body { grid-template-columns: 1fr; gap: 18px; margin-top: 20px; }
  .story__photo { width: 100%; height: 240px; object-position: 50% 18%; }
  .story__name { font-size: 24px; line-height: 30px; }
  .story__role { font-size: 16px; line-height: 22px; }
  .story__delta { gap: clamp(10px, 3vw, 14px); }
  .story__lbl { font-size: 15px; }
  /* «Было → Стало» в одну строку (nowrap): на узких экранах «100 000 ₽/мес» вылезало за край карточки — плавно ужимаем */
  .story__num { font-size: clamp(15px, 4.3vw, 18px); }
  .story__num--lime { font-size: clamp(18px, 5.3vw, 22px); }
  .player { margin-left: 0; }
  .player__time { margin-right: 14px; font-size: 15px; }
  .story__more { gap: 14px; font-size: 14px; }
  .story__foot { flex-wrap: wrap; }
  .story__nav { margin-left: auto; }
  /* тап-цели ≥ 44px на телефоне: стрелки слайдера историй и ленты чеков */
  .story__btn, .checks__btn { width: 44px; height: 44px; }
  .projects { padding-bottom: 64px; }
  /* Дизайн-контроль: 8 работ столбиком — 2 700 px на 390; лента с привязкой, как у шагов и .peek */
  .projects__grid { margin-top: 32px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .projects__grid::-webkit-scrollbar { display: none; }
  .project { flex: 0 0 min(76vw, 300px); scroll-snap-align: start; }
  .peek { margin-top: 32px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .peek::-webkit-scrollbar { display: none; }
  .peek__item { flex: 0 0 min(76vw, 300px); scroll-snap-align: start; }
  .project { height: auto; padding-bottom: 20px; }
  /* Доказательства на телефоне: разворот, полоса и строка отзывов — в одну колонку, фото основателя по правому краю до низа */
  .founder { margin-top: 32px; grid-template-columns: minmax(0, 1fr); column-gap: 0; padding: 24px 22px 0; border-radius: 22px; }
  .founder__quote { max-width: none; font-size: 23px; line-height: 1.22; }
  .founder__sign { margin-top: 16px; }
  .founder__video { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; max-width: none; padding: 8px 14px 8px 8px; }
  .founder__frame { height: 64px; }
  .founder__photo { grid-column: 1; grid-row: auto; width: min(260px, 72%); margin: 12px -8px -1px auto; }
  .founder__facts { grid-column: 1; margin-top: 0; padding: 22px 0 28px; gap: 14px 28px; }
  .founder__facts dt { font-size: 22px; line-height: 26px; }
  .refund { margin-top: 32px; grid-template-columns: 1fr; gap: 26px; padding: 30px 0; }
  .refund__line { max-width: none; }
  .refund__text { margin-top: 16px; }
  .license { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding-top: 22px; }
  .license__scan { width: 80px; height: 104px; }
  .proofs__money { margin-top: 28px; grid-template-columns: 1fr; }
  .proofs__money .tile { height: auto; min-height: 168px; padding: 28px 22px; }
  .tg { margin-top: 28px; grid-template-columns: 44px minmax(0, 1fr); gap: 10px 14px; padding: 26px 0; }
  .tg__logo { width: 44px; height: 44px; }
  .tg__score { font-size: 48px; line-height: 52px; }
  .tg__facts, .tg__topics { grid-column: 1 / -1; }
  .tg__topics { justify-content: flex-start; }
  .proofs__checks { margin-top: 28px; }
  .tile__big { font-size: 34px; line-height: 40px; }
    .tile--income::after { display: none; }
  .card__js-tile { right: 4px; top: -8px; }
  .card__art { width: 210px; height: 218px; right: -10px; top: -14px; }
  .card__tools { display: flex; right: 12px; top: 180px; }
  .tile__3d { width: 120px; right: 8px; bottom: 8px; }
  .tile--income .tile__text, .tile--market .tile__text:not(.tile__text--more) { max-width: 196px; }
  .orders { right: 6px; bottom: auto; top: 22px; width: 134px; height: 84px; }
  .orders__tile { top: 10px; width: 60px; height: 60px; filter: drop-shadow(0 7px 9px rgba(0, 0, 0, .5)); }
  .orders__tile--kwork { left: 36px; }
  .orders__tile--profi { left: 72px; }
  .tile--checks { padding: 22px 0 22px 22px; gap: 18px; }
  .lead__fields { margin-top: 24px; }
  .modal--lead { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .learn__grid { margin-top: 32px; gap: 16px; }
  .learn__tile--platform, .learn__tile--homework, .learn__tile--chat, .learn__tile--result { grid-column: span 12; }
  .learn__tile { padding: 22px; gap: 18px; }
  .learn__tile--platform .lesson { margin: 0 -22px -22px 0; } /* поле тайла на телефоне 22, а не 28 */
  .learn__tile--result { flex-direction: column; align-items: stretch; }
  .learn__cta { align-self: flex-start; }
  .checks__title { font-size: 22px; line-height: 28px; }
  .check { width: 200px; }
  .check__img { width: 200px; height: 152px; }
  .feature__title { white-space: normal; }
  .rail__features { grid-template-columns: 1fr; }
  .feature + .feature::before { display: none; }
  .feature { padding: 16px; }
  .consult { padding: 56px 0; }
  .consult__lead { font-size: 16px; line-height: 24px; }
  .consult__steps li { max-width: none; font-size: 15px; }
  .form { margin-top: 8px; padding: 24px 20px 32px; }
  .form__title { font-size: 26px; line-height: 32px; }
  .field { height: 72px; padding-top: 10px; }
  .level span { width: auto; padding: 0 20px; }
  .form__submit { margin-top: 30px; width: 100%; justify-content: space-between; }
  .footer { padding: 40px 0 32px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .modal__panel { padding: 32px 24px; }
  .modal__title { font-size: 26px; line-height: 32px; }
  .modal__actions { gap: 28px; }
}

@media (max-width: 479px) {
  .hero__title { font-size: 36px; }
  .btn { font-size: 15px; padding-left: 16px; }
  .hero__proof-text { font-size: 14px; }
  .module__name { font-size: 14px; letter-spacing: -.01em; }
  .story__more-names { display: none; } /* «Ещё истории →» без имён: с тремя аватарами имена давали вторую строку (дизайн 12.09, #8) */
}

/* ---------- ≤359: в раскрытой стопке длинные названия модулей переносятся, а не режутся «…» ---------- */
/* ≤ 479: в раскрытой стопке длинные названия модулей переносятся, а не режутся «…» (на 360–400 не влезал «Продвинутая вёрстка: Vite и SCSS» — QA3-9) */
@media (max-width: 479px) {
  .stack.is-open .module { height: auto; min-height: 68px; }
  .stack.is-open .module__name { white-space: normal; overflow: visible; text-overflow: clip; }
}

/* ≤ 359: стопка площадок в тайле «7 000+» меньше и текст уже — на 320–345 карточки стопки накрывали «7 000+» и «заказов с меткой…» (QA4-2) */
@media (max-width: 359px) {
  .orders { right: 4px; width: 118px; height: 72px; }
  .orders__tile { top: 8px; width: 52px; height: 52px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
  .orders__tile--kwork { left: 31px; }
  .orders__tile--profi { left: 62px; }
  .tile--market .tile__text:not(.tile__text--more) { max-width: 136px; }
}

/* ---------- Доступность: меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Дизайн-контроль: 3D-объект режется кадром на ~10 % своей ширины на любой ширине карточки (у webp прозрачные поля ≈ 9 % по бокам и 7 % снизу — отсюда коэффициенты .19 и .15 от ширины объекта). На 900–1279 карточки узкие: арт «скоро» не наезжает на заголовок */
@media (min-width: 900px) and (max-width: 1279px) {
  .card--fl .card__soon-art { width: 104px; height: 104px; right: 8px; top: 6px; }
}
/* Записи экрана в «Как это выглядит изнутри»: пока файла нет — видно постер (настоящий кадр платформы) */
.peek__clip { display: block; aspect-ratio: 16 / 10; object-fit: cover; background: #0F1114; }
.peek__item:hover .peek__clip { transform: rotateY(-3deg) translateY(-4px); }


/* ---------- Как проходит обучение: панель шагов, настоящие экраны платформы ---------- */
.flow__grid { margin-top: 0; display: grid; grid-template-columns: minmax(0, 1.26fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.flow__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14); background: #0F1114;
  box-shadow: 0 36px 72px -28px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.flow__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .5s var(--ease); }
.flow__shot.is-on { opacity: 1; }
.flow__gloss { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(150deg, rgba(255, 255, 255, .07), transparent 40%); }

.flow__steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.flow__btn {
  position: relative; width: 100%; margin: 0; padding: 16px 18px 18px; display: grid; gap: 8px;
  border: 1px solid transparent; border-radius: 14px; background: transparent; color: inherit;
  font: inherit; text-align: left; cursor: pointer; transition: background .3s var(--ease), border-color .3s var(--ease);
}
.flow__step.is-on .flow__btn { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.flow__btn:hover { background: rgba(255, 255, 255, .04); }
.flow__btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.flow__step.is-on .flow__title { font-size: 19px; line-height: 25px; font-weight: 600; letter-spacing: -.014em; }
.flow__text { font-size: 14px; line-height: 20px; color: var(--muted-2); opacity: .72; transition: opacity .3s var(--ease); }
.flow__step.is-on .flow__text { opacity: 1; }
.flow__line { position: absolute; left: 18px; right: 18px; bottom: 8px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .08); overflow: hidden; opacity: 0; transition: opacity .3s var(--ease); }
.flow__step.is-on .flow__line { opacity: 1; }
.flow__line b { display: block; height: 100%; width: 0; background: var(--lime); }
.flow__step.is-on .flow__line b { width: calc(var(--p, 0) * 100%); transition: width .12s linear; }

.flow__result { margin-top: 56px; padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 48px; align-items: start; }
.flow__result-title { margin: 10px 0 0; font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -.018em; }
.flow__cta { grid-column: 1 / -1; justify-self: start; }

@media (min-width: 1101px) {
  /* Блок занимает весь экран под шапкой: заголовок сверху, кадр забирает всю оставшуюся высоту.
     Пока не пройдены все шаги, страница стоит на месте. */
  .flow { --steps-w: clamp(300px, 20vw, 380px); --flow-gap: clamp(28px, 2.6vw, 48px); }
  .flow__pin { position: relative; height: calc(100vh + 4 * 58vh); }
  /* container — потолок высоты кадра считается от ширины .container: 100vw не знал ни полей 32 px до 1280, ни полосы прокрутки */
  .flow__sticky {
    position: sticky; top: 72px; height: calc(100vh - 72px);
    padding: clamp(20px, 3.2vh, 40px) 0 clamp(20px, 3.6vh, 44px);
    display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 2.8vh, 32px);
    container-type: inline-size;
  }
  .flow .section__head { margin: 0; flex: none; }
  /* Кадр всегда ровно 16:9, как сами снимки, — ничего не обрезается. Ширина кадра — меньшее из
     «всё, что осталось от шагов» и «сколько позволяет высота экрана»; лишнюю ширину забирает колонка шагов.
     --steps-h (main.js) — высота колонки шагов с самым длинным раскрытым описанием: сетка не ниже неё,
     иначе на 1101–1279 и 1280×1024 шаги вылезали над кадром к заголовку */
  .flow__grid {
    margin-top: 0; flex: 1 1 auto; min-height: var(--steps-h, 0px);
    display: flex; gap: var(--flow-gap); align-items: center;
    container-type: size;
    max-height: calc((100cqw - var(--steps-w) - var(--flow-gap)) * 9 / 16);
  }
  .flow--measure * { transition: none !important; } /* и при reduced-motion: там у всего transition .01ms — шрифт заголовка не успевал смениться к замеру */
  .flow__frame { flex: none; aspect-ratio: 16 / 9; width: min(100cqw - var(--steps-w) - var(--flow-gap), 100cqh * 16 / 9); }
  .flow__steps { flex: 1 1 0; min-width: 0; }
  .flow__step { opacity: .38; transition: opacity .45s var(--ease); }
  .flow__step.is-on { opacity: 1; }
  /* пять шагов с описаниями не влезали по высоте: описание раскрыто только у активного шага */
  .flow__btn { gap: 0; }
  .flow__text { display: block; max-height: 0; margin-top: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), margin-top .45s var(--ease), opacity .3s var(--ease); }
  .flow__step.is-on .flow__text { max-height: 8em; margin-top: 8px; opacity: 1; }
}
@media (max-width: 1100px) {
  .flow__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .flow__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .flow__step:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .flow__grid { margin-top: 32px; }
  .flow__steps { grid-template-columns: minmax(0, 1fr); }
  .flow__btn { padding: 14px 16px 16px; }
  .flow__title { font-size: 17px; line-height: 23px; }
  .flow__result { margin-top: 36px; padding: 24px; grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .flow__shot { transition: none; }
  .flow__step.is-on .flow__line b { width: 100%; }
}

/* ---------- Широкие мониторы: на 2K контент шириной 1440 px терялся между огромными полями ---------- */
@media (min-width: 1800px) {
  .container, .hero__inner, .rail__inner { width: min(100% - 160px, 1680px); }
  .nav__inner { width: min(100% - 96px, 1728px); }
  .section { background-size: min(1632px, 88%) 1px, 100% 200px, auto, auto; }
}

/* Невысокие экраны (ноутбук 1280×720): четыре шага с описаниями не влезали по высоте —
   описание показываем только у активного шага */
@media (min-width: 1101px) and (max-height: 820px) {
  .flow__btn { padding: 11px 16px 13px; gap: 5px; }
  .flow__title { font-size: 17px; line-height: 22px; }
  .flow__step:not(.is-on) .flow__text { display: none; }
  .flow .section__lead { display: none; }
}

/* Очень широкие мониторы (2560 и шире): контент растёт дальше, иначе он занимал две трети экрана */
@media (min-width: 2400px) {
  .container, .hero__inner, .rail__inner { width: min(100% - 240px, 2080px); }
  .nav__inner { width: min(100% - 160px, 2160px); }
  .section { background-size: min(2000px, 88%) 1px, 100% 200px, auto, auto; }
  .flow { --steps-w: 420px; }
}

/* ---------- Консультация: поля и уровень светлые, как в модалке и квизе — не чёрные плашки на бумаге ---------- */
.consult .field { background: rgba(255, 255, 255, .72); border-color: rgba(23, 24, 28, .14); color: var(--ink); }
.consult .field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 24, 28, .08); }
.consult .field.is-invalid { border-color: var(--coral); }
.consult .field__label { color: rgba(23, 24, 28, .56); }
.consult .field__input { color: var(--ink); }
.consult .field__input::placeholder { color: rgba(23, 24, 28, .38); }
.consult .level span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: auto; height: 42px; padding: 0 18px; border-radius: 22px;
  background: rgba(255, 255, 255, .55); border-color: rgba(23, 24, 28, .14); color: var(--ink); font-weight: 500;
}
.consult .level span::before { content: ""; display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-2); }
.consult .level:hover span { border-color: rgba(23, 24, 28, .3); background: rgba(255, 255, 255, .92); }
.consult .level input:checked + span { background: var(--ink); border-color: var(--ink); color: #FAF8F1; }
.consult .level input:checked + span::before { display: block; }
.consult .levels { gap: 10px; }
.consult .form__submit { margin-top: 32px; }

/* ---------- Согласия в формах заявки (.consent): оферта и ПД — обязательно, рассылки — по желанию ----------
   Разметка одна на квизе, форме внизу и модалке: label > input.consent__input + span.consent__box + span.consent__text,
   ошибка — p.consent__error под первым пунктом (текст ставит js/main.js). Формы бумажные — галочка графитовая;
   на тёмной форме — .consent--dark, галочка лаймовая. Клик по всей подписи, ссылки открываются в новой вкладке. */
.consent { margin-top: 24px; display: grid; gap: 10px; max-width: 568px; font-size: 14px; line-height: 20px; color: rgba(23, 24, 28, .72); }
.consent__item { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; align-items: start; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.consent__input { position: absolute; left: -11px; top: -11px; top: calc((1lh - 44px) / 2); width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; } /* невидимый чекбокс 44×44 вокруг бокса 22×22 — тап-цель по WCAG */
.consent__box {
  grid-column: 1; grid-row: 1; width: 22px; height: 22px; margin-top: -1px; margin-top: calc((1lh - 22px) / 2);
  display: grid; place-items: center; border-radius: 7px; background: rgba(255, 255, 255, .72); border: 1.5px solid rgba(23, 24, 28, .3); color: var(--ink);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.consent__box svg { opacity: 0; transform: scale(.5); transition: opacity .15s, transform .25s var(--spring); }
.consent__text { grid-column: 2; min-width: 0; }
.consent__text a { color: inherit; text-decoration: underline; text-decoration-color: rgba(23, 24, 28, .32); text-underline-offset: 2px; transition: color .2s, text-decoration-color .2s; }
.consent__text a:hover { color: var(--ink); text-decoration-color: currentColor; }
.consent__text a:focus-visible { outline-color: var(--ink); }
.consent__item:hover .consent__box { border-color: rgba(23, 24, 28, .6); background: #fff; }
.consent__input:checked + .consent__box { background: #fff; border-color: var(--ink); }
.consent__input:checked + .consent__box svg { opacity: 1; transform: none; }
.consent__input:focus-visible + .consent__box { outline: 2px solid var(--ink); outline-offset: 2px; }
.consent__input[aria-invalid="true"] + .consent__box { border-color: #c8362f; box-shadow: 0 0 0 3px rgba(200, 54, 47, .16); }
.consent__error { margin: -4px 0 0 34px; font-size: 13px; line-height: 17px; font-weight: 500; color: #c8362f; }
.consent__error:empty { display: none; }
/* Тёмная форма */
.consent--dark { color: rgba(255, 255, 255, .7); }
.consent--dark .consent__box { background: #131418; border-color: #3B3D47; color: var(--lime); }
.consent--dark .consent__item:hover .consent__box { background: #131418; border-color: #6B6E78; }
.consent--dark .consent__input:checked + .consent__box { background: #131418; border-color: var(--lime); }
.consent--dark .consent__input:focus-visible + .consent__box { outline-color: var(--lime); }
.consent--dark .consent__input[aria-invalid="true"] + .consent__box { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 102, 97, .2); }
.consent--dark .consent__text a { text-decoration-color: rgba(255, 255, 255, .35); }
.consent--dark .consent__text a:hover { color: #fff; }
.consent--dark .consent__text a:focus-visible { outline-color: var(--lime); }
.consent--dark .consent__error { color: var(--coral); }

/* ---------- Тач-цели ≥ 44 px на телефоне и тач-экранах (WCAG 2.5.8): строчные ссылки получают зону нажатения паддингом
   с отрицательными полями — раскладка не сдвигается; стрелки лент и слайдера — 44 px вместо 40 ---------- */
@media (max-width: 767px), (pointer: coarse) {
  .consent__text a { padding: 14px 0; }
  .tile__link { padding: 13px 0; margin: -13px 0; }
  .tile--checks .tile__link { margin: 7px 0 -13px; }
  .footer__col a { padding: 12px 0; margin: 0 0 -12px; }
  .footer__bottom a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .story__btn, .checks__btn { width: 44px; height: 44px; }
}
/* Где стоит: форма внизу — между уровнем и кнопкой; модалка — компактно, 13 px; квиз — под строкой полей */
.form .consent { margin-top: 28px; }
.form .consent + .form__submit { margin-top: 28px; }
.lead .consent { margin: 2px 0 20px; gap: 8px; font-size: 13px; line-height: 18px; color: rgba(23, 24, 28, .66); }
.lead .consent__error { margin-top: -2px; }
.quiz__form .consent { margin-top: 12px; gap: 8px; max-width: 520px; font-size: 13px; line-height: 17px; color: rgba(23, 24, 28, .7); }
.quiz__form .consent__error { margin-top: -2px; }
@media (min-width: 1280px) { .quiz__form .consent__item:last-child { padding-right: 84px; } } /* справа внизу квиза — «← Сначала» */

/* ---------- Разворот основателя: цитата, подпись, цифры и видео слева, фото на всю высоту справа ---------- */
.founder__quote { margin: 14px 0 0; } /* у blockquote браузерный отступ 40 px — цитата уезжала вправо от подписи */
@media (min-width: 1024px) {
  .founder { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); grid-template-rows: auto 1fr; column-gap: 32px; padding: 52px 0 0 56px; align-items: stretch; }
  .founder__copy { grid-column: 1; grid-row: 1; }
  .founder__quote { max-width: 22ch; font-size: clamp(28px, 2.35vw, 44px); line-height: 1.14; }
  .founder__facts { grid-column: 1; grid-row: 2; align-self: end; margin-top: 32px; padding: 22px 0 48px; gap: 16px 64px; }
  .founder__facts dt { font-size: clamp(28px, 2vw, 36px); line-height: 1.15; }
  .founder__photo { grid-column: 2; grid-row: 1 / span 2; align-self: end; justify-self: center; width: 100%; max-width: none; height: auto; max-height: 100%; margin: 0; object-fit: contain; object-position: 50% 100%; }
}

/* ---------- Результаты: карточка истории шире, текст по центру по высоте — без провала между колонками ---------- */
@media (min-width: 1024px) {
  .results__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 4vw, 88px); align-items: center; }
  .results__text { padding-top: 0; }
  .results__text .btn { margin-top: 40px; }
}
/* 1024–1279: карточка истории ~540–690 px — «100 000 ₽/мес» обрезалось краем карточки. Фото уже, цифры как на мобильном */
@media (min-width: 1024px) and (max-width: 1279px) {
  .results .story__body { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
  .results .story__photo { width: 150px; height: 169px; }
  .results .story__delta { gap: 14px; }
  .results .story__num { font-size: 18px; }
  .results .story__num--lime { font-size: 22px; }
}

/* ---------- Итог флагмана: закрывающая карточка, а не тонкая полоска с мелким текстом ---------- */
@media (min-width: 900px) {
  .flow__result { margin-top: 64px; padding: clamp(32px, 3vw, 56px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 28px clamp(40px, 5vw, 96px); align-items: start; }
  .flow__result-copy { grid-column: 1; grid-row: 1; }
  .flow__result-title { font-size: clamp(30px, 2.5vw, 46px); line-height: 1.1; letter-spacing: -.025em; max-width: 16ch; text-wrap: balance; }
  .flow__result .learn__list { grid-column: 2; grid-row: 1 / span 2; align-self: center; gap: 18px; font-size: clamp(16px, 1.05vw, 19px); line-height: 1.4; }
  .flow__result .learn__list li { padding-left: 28px; }
  .flow__result .learn__list li::before { top: .42em; width: 10px; height: 10px; }
  .flow__cta { grid-column: 1; grid-row: 2; align-self: end; }
}

/* ---------- Гарантия: обещание крупнее на широких экранах, лицензия по центру высоты ---------- */
.refund { align-items: center; }
.refund__line { font-size: clamp(32px, 3.6vw, 72px); max-width: 18ch; }

/* ---------- Результаты: под историями — средний доход и лента чеков одной строкой ---------- */
.results__more { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.results__money { display: grid; }
.results__money .tile { min-height: 232px; height: 100%; }
.results__money .tile__text { margin-top: 12px; }
.results__checks { min-width: 0; display: grid; }
.results__checks .tile--checks { height: 100%; }
.results__checks:only-child { grid-column: 1 / -1; } /* тест-драйв: доход уже в «Что по деньгам» — лента на всю ширину */
@media (max-width: 1100px) {
  .results__more { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Гарантия и лицензия отдельной полосой перед формой ---------- */
.guarantee-band { padding-top: 24px; padding-bottom: 8px; }
.guarantee-band .refund { margin-top: 0; }
.refund__offer { color: var(--lime); text-decoration: none; white-space: nowrap; }
.refund__offer:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Форма без подзаголовка: воздух между заголовком и первым полем ---------- */
.form__title + .field { margin-top: 28px; }

/* ---------- Оценка в группе отзывов — компактно под лидом «Результатов» ---------- */
.tg--compact { margin-top: 32px; grid-template-columns: 44px auto minmax(0, 1fr); gap: 8px 20px; padding: 20px 0; max-width: 560px; }
.tg--compact .tg__logo { width: 44px; height: 44px; }
.tg--compact .tg__score { font-size: 48px; line-height: 52px; }
.tg--compact .tg__of { font-size: 18px; line-height: 22px; }
.tg--compact + .btn { margin-top: 32px; }
@media (max-width: 560px) {
  .tg--compact { grid-template-columns: 36px auto; }
  .tg--compact .tg__logo { width: 36px; height: 36px; }
  .tg--compact .tg__facts { grid-column: 1 / -1; }
}

/* ---------- Гарантия: лицензия — полноценная половина полосы, а не подпись в углу. До 1280 — строкой под гарантией ---------- */
@media (min-width: 1280px) {
  .refund { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 96px); }
  .license { grid-template-columns: clamp(200px, 15vw, 300px) minmax(0, 1fr); gap: clamp(28px, 3vw, 48px); padding-left: clamp(40px, 5vw, 96px); }
  .license__scan { width: 100%; height: auto; aspect-ratio: 170 / 221; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); transform: rotate(-3deg); }
  .license__title { font-size: clamp(22px, 1.7vw, 30px); line-height: 1.2; letter-spacing: -.02em; }
  .license__text { margin-top: 12px; font-size: clamp(15px, 1.05vw, 18px); line-height: 1.45; max-width: 34ch; }
  .license__link { margin-top: 20px; font-size: clamp(15px, 1vw, 17px); }
}

/* ---------- Сертификат поверх лицензии: два документа веером, клик — сертификат крупно ---------- */
.license { align-items: center; grid-template-columns: 132px minmax(0, 1fr); }
.license__docs { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.12; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; }
.license__docs:focus-visible { outline: 2px solid var(--lime); outline-offset: 8px; border-radius: 12px; }
.license__docs .license__scan { position: absolute; left: 0; top: 0; width: 68%; height: auto; aspect-ratio: 170 / 221; border-radius: 6px; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .7); transform: rotate(-8deg); transition: transform .5s var(--spring); }
.license__cert { position: absolute; right: 0; bottom: 0; width: 72%; height: auto; aspect-ratio: 640 / 824; border-radius: 6px; box-shadow: 0 26px 52px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .16); transform: rotate(4deg); transition: transform .5s var(--spring); }
.license__docs:hover .license__scan { transform: rotate(-12deg) translate(-8px, -4px); }
.license__docs:hover .license__cert { transform: rotate(1deg) translateY(-8px); }
.license__zoom { position: absolute; right: -8px; bottom: -8px; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .7); transition: transform .35s var(--spring); }
.license__docs:hover .license__zoom { transform: scale(1.1); }
.license__link { display: inline-block; text-decoration: none; }
.license__link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1280px) {
  .license { grid-template-columns: clamp(200px, 15vw, 300px) minmax(0, 1fr); }
  .license__docs .license__scan { border-radius: 8px; }
  .license__cert { border-radius: 8px; }
  .license__zoom { width: 44px; height: 44px; right: -10px; bottom: -10px; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .license { grid-template-columns: 184px minmax(0, 1fr); gap: 36px; max-width: 660px; padding-top: 36px; }
  .license__title { font-size: 24px; line-height: 30px; letter-spacing: -.02em; }
  .license__text { margin-top: 10px; font-size: 16px; line-height: 24px; }
  .license__link { margin-top: 16px; font-size: 15px; }
}
@media (max-width: 767px) {
  .license { grid-template-columns: 116px minmax(0, 1fr); gap: 22px; }
  .license__zoom { width: 30px; height: 30px; right: -6px; bottom: -6px; }
  .license__zoom svg { width: 13px; height: 13px; }
}

/* Сертификат и лицензия крупно: картинка по высоте экрана, закрывает любой клик и Esc.
   Пропорции и предел ширины — из --zw/--zh/--zcap на самой картинке (по умолчанию сертификат; лицензия переопределяет инлайн), поэтому одно правило обслуживает оба скана без искажения. */
[data-zoom] { cursor: zoom-in; }
.zoom { width: fit-content; max-width: none; overflow: visible; }
.zoom__img { --zw: 1400; --zh: 1803; --zcap: 1400px; display: block; width: min(calc(100vw - 32px), var(--zcap), calc((100vh - 40px) * var(--zw) / var(--zh))); width: min(calc(100vw - 32px), var(--zcap), calc((100dvh - 40px) * var(--zw) / var(--zh))); height: auto; aspect-ratio: var(--zw) / var(--zh); border-radius: 14px; background: #0d0d0e; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .12); cursor: zoom-out; }
.zoom__x { position: absolute; right: 12px; top: 12px; z-index: 1; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s; }
.zoom__x:hover { background: rgba(255, 255, 255, .26); }
.zoom__x:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---------- Основатель: заголовок + подзаголовок, справа живой ролик ---------- */
.founder__quote { quotes: none; }
.founder__lead { margin: 0; font-size: clamp(30px, 3vw, 56px); line-height: 1.06; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; max-width: 16ch; }
.founder__story { margin: 18px 0 0; font-size: clamp(18px, 1.45vw, 26px); line-height: 1.38; font-weight: 400; letter-spacing: -.012em; color: rgba(23, 24, 28, .74); max-width: 34ch; }
.founder__story b { font-weight: 500; color: var(--ink); box-shadow: inset 0 -.34em 0 rgba(199, 255, 46, .55); }
.founder__clip { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px; background: #2a1d14; box-shadow: 0 30px 60px -28px rgba(23, 24, 28, .55); }
@media (min-width: 1024px) {
  .founder { padding-right: 56px; padding-bottom: 52px; }
  .founder__clip { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: end; max-width: 600px; }
  .founder__facts { padding-bottom: 0; }
}
@media (max-width: 1023px) {
  .founder { padding-bottom: 24px; }
  .founder__clip { margin-top: 24px; }
  .founder__story { max-width: none; }
}

/* Основатель: YouTube и Telegram-канал рядом с цифрами — ссылки; подписчиков округляем вниз (13.09.2026: 57,4 тыс. и 7 276) */
.founder__facts:has(.founder__soc) { display: grid; grid-template-columns: repeat(3, max-content); }
/* до 1279 колонки max-content были шире своей области (390: 368 px при 306 доступных, 1024: 577 при 448) — сетка растягивалась, текст уезжал за край карточки, цифры наезжали на видео; ниже 1280 — равные колонки, подписи переносятся */
@media (max-width: 1279px) {
  .founder__facts:has(.founder__soc) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
  .founder__facts dd { white-space: normal; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .founder__facts dt { font-size: 26px; } }
@media (min-width: 1280px) and (max-width: 1439px) { .founder__facts:has(.founder__soc) { gap: 16px 40px; } } /* три max-content-колонки (577 px) впритык к колонке 571 px */
@media (min-width: 768px) and (max-width: 1023px) { .founder__facts:has(.founder__soc) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .founder__facts:has(.founder__soc) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; } }
.founder__soc a { display: block; color: inherit; text-decoration: none; }
.founder__soc dd { display: flex; align-items: center; gap: 6px; }
.founder__soc-ico { flex: none; width: 14px; height: 14px; }
.founder__soc a:hover dd { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.founder__soc a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
