/* ============================================================
   IY BEATS — 19 Поток · лендинг
   Визуал: тёмный премиум (референсы: victorpainer.com,
   podlesnytwins.com), акцент — киноварь
   ============================================================ */

/* Шрифты лежат на своём хостинге (OFL), без запросов к Google: cyrillic + latin-ext + latin */
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../assets/fonts/geologica-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../assets/fonts/geologica-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../assets/fonts/geologica-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(../assets/fonts/jetbrains-mono-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(../assets/fonts/jetbrains-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(../assets/fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/martian-mono-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/martian-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/martian-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../assets/fonts/unbounded-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../assets/fonts/unbounded-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../assets/fonts/unbounded-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg-base: #111111;
  --bg-surface: #181818;
  --bg-elevated: #1F1F1F;
  --border: #2A2A2A;
  --border-hover: #3E3E3E;
  --text-primary: #EDEDEB;
  --text-secondary: #A0A09A;
  --text-body: #C0C0BA;
  --accent: #F0643F;
  --accent-hover: #FC825C;
  --accent-contrast: #111111;
  --accent-ink: var(--accent);         /* акцент для текста */
  --accent-ink-hover: var(--accent-hover);
  --accent-rgb: 240, 100, 63;
  --accent-dim: #572619;
  --accent2-rgb: 236, 156, 71;
  --bg-rgb: 17, 17, 17;
  --surface-rgb: 24, 24, 24;
  --fg-rgb: 255, 255, 255;             /* тонкие линии и подложки поверх фона */
  --bg-well: #141414;
  --bg-footer: #0B0B0B;
  --price-g1: #151712;
  --price-g2: #121212;
  --price-g3: #131514;
  /* точечная сетка фона (как на сайте потока) */
  --dots: radial-gradient(circle, rgba(var(--fg-rgb), .07) 1px, transparent 1.6px) 14px 14px / 28px 28px;
  --radius: 16px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-wrap: break-word;
  /* Тело текста — Geologica (широкая, рифмуется с Unbounded); Unbounded — для display-элементов и лейблов */
  font-family: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* Абзацы и списки: плотнее строка, без висячих слов в конце */
p, li, .faq-a, .hero-subtitle { line-height: 1.55; letter-spacing: .005em; text-wrap: pretty; }
/* Display-шрифт — заголовки, логотип, кнопки */
.logo, h1, h2, h3, .btn {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

img { max-width: 100%; display: block; }
/* Крупный заголовок hero переносим только по пробелам (размер подобран так, что слова влезают) */
.hero h1 { overflow-wrap: normal; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent-ink-hover); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(var(--bg-rgb), 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(var(--bg-rgb), 0.94); }

.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 2rem;
}

.logo {
  font-weight: 800; font-size: 1.15rem; letter-spacing: .06em;
  color: var(--text-primary); white-space: nowrap;
}
.logo span { color: var(--accent-ink); }

.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a {
  color: var(--text-secondary); font-size: .92rem; font-weight: 500;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--text-primary); }

.header-cta { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; text-align: center;
  transition: transform .2s ease, filter .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--accent); color: var(--accent-contrast);
  padding: 16px 30px; border-radius: 12px; font-size: 1rem;
  animation: cta-pulse 2.6s ease-in-out infinite;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); filter: brightness(1.05); color: var(--accent-contrast); }
.btn-primary:active { transform: scale(.97); }

@keyframes cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .45); }
  70%  { box-shadow: 0 0 0 14px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid rgba(var(--fg-rgb), .16);
  padding: 16px 30px; border-radius: 12px; font-size: 1rem;
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(var(--fg-rgb), .05); border-color: rgba(var(--fg-rgb), .32); }

.btn-sm { padding: 10px 20px; font-size: .9rem; animation: none; }
@media (prefers-reduced-motion: reduce) { .btn-primary { animation: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 84px) 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 78% at 86% 25%, rgba(var(--accent-rgb), .21), transparent 75%),
    radial-gradient(ellipse 40% 50% at 65% 65%, rgba(var(--accent2-rgb), .11), transparent 75%);
}
/* Фон hero: пустая сетка плейлиста FL Studio, гаснет книзу */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('../assets/hero-playlist.svg') left top / 480px 56px repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
}
/* Зерно поверх градиентов — убирает полосы (бандинг) на тёмном фоне */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; z-index: 1; max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: .9fr 1.3fr; gap: 40px; align-items: center;
}
.hero-text { min-width: 0; }

/* Hero media: фото IY + плавающие чипы (синты / DAW) */
/* Фото IY — крупное, соразмерное тексту (без ограничения шириной) */
.hero-media { position: relative; width: 100%; max-width: 580px; justify-self: center; }
.hero-glow {
  position: absolute; inset: -14% -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(var(--accent-rgb), .09), transparent 65%);
  filter: blur(34px);
}
.hero-photo {
  position: relative; z-index: 1; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
/* Плавающие плашки программ */
.float-chip {
  position: absolute; z-index: 2; pointer-events: none;
  display: flex; align-items: center; gap: 13.5px; width: 204px;
  background: rgba(var(--surface-rgb), .92); border: 1px solid var(--border-hover);
  border-radius: 18px; padding: 13.5px 16.5px 15px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .5);
  font-size: 18px; font-weight: 600; line-height: 1.15;
}
.float-chip img { flex: none; }

/* все чипы в нижней половине фото; слева — у самого края, чтобы не закрывать утюг */
.fc-1 { bottom: -26px; left: -40px; animation: chipFloat1 5.5s ease-in-out infinite; }
.fc-2 { bottom: -28px; right: -32px; animation: chipFloat2 6.5s ease-in-out .4s infinite; }
@media (min-width: 1360px) {
  .fc-1 { left: -64px; }
}
@media (max-width: 1080px) {
  .fc-1 { left: -16px; }
  .fc-2 { right: -16px; }
}
@keyframes chipFloat1 { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-13px) rotate(-1deg); } }
@keyframes chipFloat2 { 0%,100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-15px) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
  .float-chip { animation: none; }
}
html.noanim .float-chip { animation: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent-ink); border-radius: 2px; }

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.2rem);
  line-height: 1.14; font-weight: 800; letter-spacing: -.02em;
}
.hero h1 .highlight { color: var(--accent-ink); }

.typewriter-caret {
  display: inline-block; width: 3px; height: .95em; margin-left: 4px;
  background: var(--accent); vertical-align: -0.08em;
  animation: caret-blink 1s step-end infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.hero-subtitle {
  margin-top: 1.4rem; font-size: 1.05rem; color: var(--text-secondary); max-width: 62ch;
}

.hero-checklist { list-style: none; margin-top: 1.8rem; display: grid; gap: .55rem; }
.hero-checklist li { display: flex; align-items: baseline; gap: .7rem; color: var(--text-primary); font-size: 1.02rem; }
.hero-checklist .tick { color: var(--accent-ink); font-weight: 800; flex-shrink: 0; }

.daw-row { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.daw-row img { height: 46px; border-radius: 9px; background: #fff; padding: 3px 8px; opacity: .95; }
.daw-row span { color: var(--text-secondary); font-size: .9rem; }

.hero-cta-row { display: flex; align-items: center; gap: 20px; margin-top: 2.4rem; flex-wrap: wrap; }

/* Social proof (паттерн victorpainer) */
.social-proof { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.sp-avatars { display: flex; }
.sp-avatars img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-base); margin-left: -10px; }
.sp-avatars img:first-child { margin-left: 0; }
.sp-text .sp-rating { color: var(--accent-ink); font-size: .9rem; letter-spacing: 2px; }
.sp-text .sp-count { color: var(--text-secondary); font-size: .85rem; }
.sp-text b { color: var(--text-primary); }

/* ---------- Enroll strip ---------- */
.enroll-strip {
  border-top: 1px solid rgba(var(--accent-rgb), .35);
  border-bottom: 1px solid rgba(var(--accent-rgb), .35);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .14), rgba(var(--accent-rgb), .03));
}
.enroll-strip-inner {
  display: flex; align-items: center; gap: 1rem; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: dot-pulse 2s infinite; flex-shrink: 0; }
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6); }
  50% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); }
}
.enroll-strip strong { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
.enroll-strip .muted { color: var(--text-secondary); font-size: clamp(1.05rem, 1.9vw, 1.2rem); }
.strip-price { color: var(--accent-ink); font-weight: 700; font-size: 1.15em; }
.countdown { display: flex; gap: 8px; margin-left: auto; align-items: stretch; }
.cd-unit {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 56px; padding: 6px 10px;
  background: rgba(var(--bg-rgb), .55); border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 10px;
}
.cd-num { font-family: 'Martian Mono', ui-monospace, monospace; font-size: 1.05rem; font-weight: 600; color: var(--accent-ink); line-height: 1.25; font-variant-numeric: tabular-nums; }
.cd-lab { font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; }
.cd-open {
  font-family: 'Martian Mono', ui-monospace, monospace; color: var(--accent-ink); font-weight: 600;
  padding: 10px 14px; border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 10px; background: rgba(var(--bg-rgb), .55);
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
/* лёгкие точки на части блоков без фоновых фото: отдельный слой, гаснет к краям секции */
#forwho, #stages, #included, #reviews, #final-cta { position: relative; isolation: isolate; }
#forwho::after, #stages::after, #included::after, #reviews::after, #final-cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--dots);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 200px, #000 calc(100% - 200px), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 200px, #000 calc(100% - 200px), transparent);
}
/* соседи «Этапов», «Команды» и FAQ уже с линией (section-alt); «Кому подойдёт» идёт после такого же тёмного «Автора» */
#forwho { border-top: 1px solid var(--border); }

.section-head { max-width: 720px; margin-bottom: 3.2rem; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.section-head p { margin-top: .9rem; color: var(--text-secondary); font-size: 1.06rem; max-width: 62ch; }
.section-head.centered p { margin-left: auto; margin-right: auto; }

/* Фон «Программа»: одно фото студии (микшерный пульт) на всю секцию,
   затемнение сверху/снизу сводит края с соседними секциями.
   Фильтр только на фото (::before): блюр + приглушённый цвет под графит сайта, затемнение не трогает */
#program { position: relative; overflow: hidden; }
.program-bg { position: absolute; inset: -24px; z-index: 0; pointer-events: none; }
.program-bg::before {
  content: ""; position: absolute; inset: 0;
  background: url('../assets/program-bg-a.webp') center 35% / cover no-repeat;
  filter: blur(8px) saturate(.45) brightness(.85);
}
.program-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg-base) 0%, rgba(var(--bg-rgb), .5) 16%, rgba(var(--bg-rgb), .5) 84%, var(--bg-base) 100%),
    radial-gradient(ellipse at 65% 50%, rgba(var(--bg-rgb), .1), rgba(var(--bg-rgb), .55) 80%);
}
#program .container { position: relative; z-index: 1; }

/* ---------- Card grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* Unbounded — широкий шрифт: не даём длинным словам раздувать fr-колонки */
.grid-3 > *, .grid-4 > * { min-width: 0; }

.card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .5); }
.card .card-icon { font-size: 1.9rem; margin-bottom: 1rem; display: block; }
.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .55rem; letter-spacing: -.01em; }
.card p, .card li { color: var(--text-secondary); font-size: .94rem; line-height: 1.55; }
.card p { max-width: 62ch; }

/* ---------- Анимированные сценки в карточках («Кому подойдёт», «Что входит») ----------
   Без анимации (reduced-motion, ?noanim) каждая сценка стоит на финальном кадре */
.card-scene {
  display: block; width: 100%; height: auto; margin-bottom: 1.2rem;
  background: var(--bg-well); border: 1px solid var(--border); border-radius: 12px;
  --scene-dim: #4a4a47;
}
.card-scene text { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 600; letter-spacing: .06em; }
/* только анимированным элементам: у иконок свой transform-атрибут, origin ему не нужен */
.fw-hits rect, .fw-wave, .fw-wave rect, .fw-ring { transform-box: fill-box; transform-origin: center; }

/* 1 — секвенсор */
.fw-labels { fill: var(--text-secondary); }
.fw-pads { fill: rgba(var(--fg-rgb), .05); }
.fw-hits rect { fill: var(--accent); animation: fw-hit 6s var(--d) infinite backwards; }
.fw-playhead { fill: rgba(var(--accent-rgb), .12); opacity: 0; animation: fw-playhead 2s steps(8, jump-none) infinite; }
@keyframes fw-hit {
  0% { opacity: 0; transform: scale(.6); }
  5%, 78% { opacity: 1; transform: none; }
  86%, 100% { opacity: 0; transform: scale(.85); }
}
@keyframes fw-playhead { from { opacity: 1; transform: translateX(0); } to { opacity: 1; transform: translateX(182px); } }

/* 2 — волна */
.fw-wave { fill: var(--accent); animation: fw-wave 5s ease-in-out infinite; }
.fw-wave rect { animation: fw-bar 1s ease-in-out infinite alternate; }
.fw-wave rect:nth-child(3n) { animation-delay: -.35s; }
.fw-wave rect:nth-child(3n+1) { animation-delay: -.7s; }
.fw-wave rect:nth-child(4n) { animation-duration: .8s; }
.fw-tags text { fill: var(--accent); }
.fw-tags .fw-before { fill: var(--text-secondary); opacity: 0; animation: fw-before 5s ease-in-out infinite; }
.fw-tags .fw-after { animation: fw-after 5s ease-in-out infinite; }
@keyframes fw-wave {
  0%, 30% { transform: scaleY(.22); fill: var(--scene-dim); }
  48%, 88% { transform: none; fill: var(--accent); }
  100% { transform: scaleY(.22); fill: var(--scene-dim); }
}
@keyframes fw-bar { from { transform: scaleY(.82); } to { transform: none; } }
@keyframes fw-before { 0%, 30% { opacity: 1; } 40%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fw-after { 0%, 38% { opacity: 0; } 48%, 88% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* 3 — путь трека до релиза */
.fw-track, .fw-progress { stroke-width: 2; stroke-linecap: round; }
.fw-track { stroke: var(--border-hover); }
.fw-progress { stroke: var(--accent); stroke-dasharray: 188; animation: fw-progress 6s ease-in-out infinite; }
.fw-node { color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fw-node circle { fill: var(--bg-well); stroke-width: 1.5; }
.fw-node text { fill: currentColor; stroke: none; text-anchor: middle; }
.fw-n1 { animation: fw-n1 6s infinite; }
.fw-n2 { animation: fw-n2 6s infinite; }
.fw-n3 { animation: fw-n3 6s infinite; }
.fw-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; animation: fw-ring 6s ease-out infinite; }
@keyframes fw-progress {
  0%, 6% { stroke-dashoffset: 188; opacity: 1; }
  72%, 88% { stroke-dashoffset: 0; opacity: 1; }
  96%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes fw-n1 { 0% { color: var(--scene-dim); } 6%, 88% { color: var(--accent); } 96%, 100% { color: var(--scene-dim); } }
@keyframes fw-n2 { 0%, 36% { color: var(--scene-dim); } 42%, 88% { color: var(--accent); } 96%, 100% { color: var(--scene-dim); } }
@keyframes fw-n3 { 0%, 70% { color: var(--scene-dim); } 76%, 88% { color: var(--accent); } 96%, 100% { color: var(--scene-dim); } }
@keyframes fw-ring { 0%, 72% { opacity: 0; transform: none; } 76% { opacity: .8; } 94%, 100% { opacity: 0; transform: scale(1.8); } }

/* «Что входит»: 1 — урок с экрана DAW и 10 модулей */
.in-screen { fill: rgba(var(--fg-rgb), .03); stroke: var(--border-hover); }
.in-notes { fill: rgba(var(--accent-rgb), .35); }
.in-vhead { stroke: var(--accent); stroke-width: 1.5; opacity: 0; animation: in-vhead 3s linear infinite; }
.in-segs rect { fill: var(--accent); animation: in-seg 6s var(--d) infinite backwards; }
@keyframes in-vhead { from { opacity: 1; transform: none; } to { opacity: 1; transform: translateX(152px); } }
@keyframes in-seg { 0% { fill: rgba(var(--fg-rgb), .08); } 4%, 80% { fill: var(--accent); } 88%, 100% { fill: rgba(var(--fg-rgb), .08); } }

/* 2 — эфир и вопросы в чате */
.in-host { fill: none; stroke: var(--accent); stroke-width: 2; }
.in-host circle { fill: rgba(var(--accent-rgb), .12); }
.in-live rect { fill: var(--accent); }
.in-live text { fill: var(--accent-contrast); font-size: 8.5px; font-weight: 700; }
.in-live-dot { fill: var(--accent-contrast); animation: in-blink 1.2s ease-in-out infinite; }
.in-msgs > g { animation: in-msg 5s var(--d) infinite backwards; }
.in-msgs rect:first-child { fill: rgba(var(--accent-rgb), .14); }
.in-msgs circle { fill: var(--accent); }
.in-line { fill: rgba(var(--accent-rgb), .55); }
@keyframes in-blink { 50% { opacity: .15; } }
@keyframes in-msg { 0% { opacity: 0; transform: translateY(8px); } 6%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }

/* 3 — закрытое сообщество */
.in-links { stroke: var(--border-hover); stroke-width: 1.5; }
.in-edges { stroke: rgba(var(--accent-rgb), .45); stroke-width: 1.5; stroke-dasharray: 3 4; animation: in-flow 1s linear infinite; }
.in-dots circle { fill: var(--accent); opacity: 0; animation: in-dot 2.7s var(--d) infinite backwards; }
.in-hub { fill: var(--accent-dim); stroke: var(--accent); stroke-width: 1.5; }
.in-lock { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.in-members circle {
  fill: var(--bg-well); stroke: var(--accent); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  animation: in-member 2.7s var(--d) ease-in-out infinite backwards;
}
@keyframes in-flow { to { stroke-dashoffset: -7; } }
@keyframes in-dot {
  0% { opacity: 0; transform: none; }
  15% { opacity: 1; }
  70% { opacity: 1; transform: translate(var(--x), var(--y)); }
  80%, 100% { opacity: 0; transform: translate(var(--x), var(--y)); }
}
/* участник «вспыхивает», когда до него долетает сообщение (70% цикла точки) */
@keyframes in-member { 0%, 66%, 100% { transform: none; fill: var(--bg-well); } 74% { transform: scale(1.2); fill: var(--accent-dim); } }

/* 4 — разбор трека с комментариями на волне */
.in-wave { fill: rgba(var(--fg-rgb), .2); }
.in-fhead { stroke: var(--accent); stroke-width: 1.5; opacity: 0; animation: in-fhead 6s linear infinite; }
.in-pin line { stroke: var(--accent); stroke-width: 1.2; }
.in-pin circle, .in-heart { fill: var(--accent); }
.in-bubble { fill: rgba(var(--accent-rgb), .14); stroke: var(--accent); }
.in-p1 { animation: in-p1 6s infinite; }
.in-p2 { animation: in-p2 6s infinite; }
.in-p3 { animation: in-p3 6s infinite; }
@keyframes in-fhead { 0% { opacity: 1; transform: none; } 80% { opacity: 1; transform: translateX(174px); } 86%, 100% { opacity: 0; transform: translateX(174px); } }
/* комментарий всплывает, когда курсор доходит до его метки */
@keyframes in-p1 { 0%, 16% { opacity: 0; transform: translateY(4px); } 20%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes in-p2 { 0%, 41% { opacity: 0; transform: translateY(4px); } 45%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes in-p3 { 0%, 66% { opacity: 0; transform: translateY(4px); } 70%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }

html.noanim .card-scene * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .card-scene * { animation: none !important; } }

/* ---------- Comparison (до/после) ---------- */
/* Фон секции: слева пустой FL Studio в ч/б («до»), справа насыщенный проект с плагинами («после»),
   половины перетекают друг в друга по центру. Фото в ::before под фильтром: синий/фиолетовый DAW
   приглушён до графита сайта; затемнение в ::after без фильтра, чтобы края совпадали с фоном секции */
#compare { position: relative; overflow: hidden; }
#compare .container { position: relative; z-index: 1; }
.compare-bg { position: absolute; top: 0; bottom: 0; width: 58%; z-index: 0; pointer-events: none; }
.compare-bg::before {
  content: ""; position: absolute; inset: 0;
  background-size: cover; background-repeat: no-repeat;
  filter: blur(6px) saturate(.4) brightness(.88);
}
.compare-bg::after { content: ""; position: absolute; inset: 0; }
.compare-bg-before {
  left: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
  mask-image: linear-gradient(90deg, #000 70%, transparent);
}
.compare-bg-before::before { background-image: url('../assets/compare-before.webp'); background-position: left top; }
.compare-bg-before::after { background: linear-gradient(180deg, rgba(var(--surface-rgb), 1), rgba(var(--surface-rgb), .6) 28%, rgba(var(--surface-rgb), .6) 72%, rgba(var(--surface-rgb), 1)); }
.compare-bg-after {
  right: 0;
  -webkit-mask-image: linear-gradient(270deg, #000 70%, transparent);
  mask-image: linear-gradient(270deg, #000 70%, transparent);
}
/* «после» насыщеннее и светлее «до»: фон сам показывает улучшение */
.compare-bg-after::before { background-image: url('../assets/compare-after.webp'); background-position: center; filter: blur(5px) saturate(1.15) brightness(.95); }
.compare-bg-after::after { background: linear-gradient(180deg, rgba(var(--surface-rgb), 1), rgba(var(--surface-rgb), .4) 28%, rgba(var(--surface-rgb), .4) 72%, rgba(var(--surface-rgb), 1)); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col {
  border-radius: var(--radius); padding: 34px 30px; border: 1px solid var(--border);
  background: rgba(var(--surface-rgb), .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.compare-col.after { border-color: rgba(var(--accent-rgb), .55); background: linear-gradient(160deg, rgba(var(--accent-rgb), .12), rgba(var(--surface-rgb), .84) 55%); }
.compare-col h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-secondary); margin-bottom: 1.4rem; }
.compare-col.after h3 { color: var(--accent-ink); }
.compare-list { list-style: none; display: grid; gap: .95rem; }
.compare-list li { display: flex; gap: .8rem; align-items: baseline; font-size: .97rem; }
.compare-list .mark { font-weight: 800; flex-shrink: 0; }
.compare-col.before .mark { color: #666; }
.compare-col.after .mark { color: var(--accent-ink); }

/* ---------- Запись: яркий анимированный фон «DAW» ----------
   Насыщенный градиент + canvas с дорожками плейлиста, плейхедом и метрами (js/main.js) */
#price {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(var(--accent-rgb), .26), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(var(--accent2-rgb), .24), transparent 55%),
    linear-gradient(125deg, var(--price-g1) 0%, var(--price-g2) 45%, var(--price-g3) 100%);
  border-top: 1px solid rgba(var(--accent-rgb), .35);
  border-bottom: 1px solid rgba(var(--accent2-rgb), .35);
}
.price-daw {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  pointer-events: none; opacity: .5;
}
#price::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(var(--bg-rgb), .55), rgba(var(--bg-rgb), .15) 75%);
}
#price .container { position: relative; }
#price .section-head h2 { text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
#price .offer-list {
  background: rgba(12, 12, 14, .62); border: 1px solid rgba(var(--fg-rgb), .1);
  border-radius: var(--radius); padding: 28px 26px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
/* Карточка цены — главный акцент блока: крупнее, оранжевая рамка и свечение */
@media (min-width: 981px) { #price .offer-split { grid-template-columns: 1fr 1.05fr; gap: 40px; } }
#price .price-card {
  position: relative; padding: 52px 44px 46px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb), .22), transparent 65%),
    rgba(14, 14, 16, .86);
  border: 2px solid var(--accent); border-radius: 22px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .1), 0 0 60px rgba(var(--accent-rgb), .28), 0 30px 80px rgba(0, 0, 0, .55);
}
#price .price-label { font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .8rem; }
#price .price-value { font-size: clamp(3.4rem, 6.4vw, 5rem); line-height: 1; text-shadow: 0 4px 30px rgba(var(--accent-rgb), .3); }
#price .price-value span { font-size: .55em; }
#price .price-note { color: #c4c4c4; font-size: 1.02rem; line-height: 1.6; margin: 1.2rem 0 1.8rem; }
#price .price-card .btn { font-size: 1.05rem; padding: 18px 34px; }
@media (max-width: 720px) {
  .price-daw { opacity: .32; }
  #price .price-card { padding: 40px 22px 34px; }
  #price::after { background: rgba(var(--bg-rgb), .35); }
}

/* ---------- Offer / Price ---------- */
.offer-split { display: grid; grid-template-columns: 1.2fr .9fr; gap: 48px; align-items: center; }
.offer-list .mark { color: var(--accent-ink); }
.price-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px; text-align: center; }
.price-label { font-family: 'Martian Mono', ui-monospace, monospace; font-size: .78rem; letter-spacing: .06em; color: var(--text-secondary); display: block; margin-bottom: .55rem; }
.price-value { font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 800; font-size: 2.9rem; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price-value span { font-size: 1.6rem; color: var(--accent-ink); }
.price-note { color: var(--text-secondary); font-size: .9rem; line-height: 1.5; margin: .85rem 0 1.4rem; }

/* ---------- Program list + mindmap ---------- */
.program-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.program-list { counter-reset: prog; list-style: none; display: grid; gap: .35rem; }
.program-list li {
  counter-increment: prog; position: relative; padding: .72rem 0 .72rem 3.4rem;
  border-bottom: 1px solid var(--border); font-size: 1.02rem;
}
.program-list li::before {
  content: "0" counter(prog);
  position: absolute; left: 0; top: .72rem;
  font-family: 'Martian Mono', ui-monospace, monospace;
  color: var(--accent-ink); font-size: .95rem; font-weight: 600;
}
.program-note {
  margin-top: 1.8rem; padding: 20px 24px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--bg-elevated); font-size: .93rem; color: var(--text-secondary);
}
.program-note b { color: var(--text-primary); }

.mindmap-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-well); }
.mindmap-frame img { width: 100%; }

.site-tour { margin-top: 64px; display: grid; grid-template-columns: .8fr 1.4fr; gap: 48px; align-items: center; }
.site-tour-head h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; margin-bottom: 1rem; }
.site-tour-head p { color: var(--text-secondary); font-size: .98rem; line-height: 1.55; }
.site-tour-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-well);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.7);
}
.site-tour-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.site-tour-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.site-tour-bar span { margin-left: 10px; font-family: 'Martian Mono', ui-monospace, monospace; font-size: .75rem; color: var(--text-secondary); }
.site-tour-frame img, .site-tour-frame video { display: block; width: 100%; height: auto; }

/* ---------- Stages (этапы) ---------- */
.stage-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); padding: 36px; margin-bottom: 22px;
}
.stage-card:nth-child(even) .stage-media { order: 2; }
.stage-media img { width: 100%; border-radius: 12px; background: var(--bg-well); }
.stage-num { font-family: 'Martian Mono', ui-monospace, monospace; color: var(--accent-ink); font-size: .95rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.stage-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.25; font-weight: 800; margin: .55rem 0 .9rem; letter-spacing: -.01em; }
.stage-card p { color: var(--text-body); font-size: clamp(1.06rem, 1.2vw + .3rem, 1.18rem); line-height: 1.55; max-width: 62ch; }

/* Линия этапов: микшерный фейдер, ползунок едет вниз по мере прокрутки.
   Позиции делений/ползунка считает main.js по центрам карточек */
.stages-flow { position: relative; padding-left: 80px; }
.stages-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 60px; cursor: pointer; }
.stages-rail.dragging, .stages-rail.dragging .rail-knob { cursor: grabbing; }
.stages-rail.dragging ~ * { user-select: none; }
/* прорезь фейдера */
.rail-groove {
  position: absolute; left: 50%; width: 4px; margin-left: -2px; border-radius: 2px;
  background: #050505; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .9), 0 0 0 1px #2a2a2a;
}
.rail-fill {
  position: absolute; left: 0; right: 0; top: 0; height: 0; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-dim), var(--accent));
  box-shadow: 0 0 8px rgba(var(--accent-rgb), .5);
}
/* деления шкалы: горизонтальные риски через прорезь + номер этапа */
.rail-tick {
  position: absolute; left: 50%; width: 40px; height: 1px; margin-left: -20px;
  background: linear-gradient(90deg, #3a3a3a 0 15px, transparent 15px 25px, #3a3a3a 25px);
  transition: background .3s ease;
}
.rail-tick span {
  position: absolute; left: -2px; bottom: 3px;
  font-family: 'Martian Mono', ui-monospace, monospace; font-size: .62rem; font-weight: 600; line-height: 1;
  color: #555; transition: color .3s ease;
}
.rail-tick.on { background: linear-gradient(90deg, rgba(var(--accent-rgb), .75) 0 15px, transparent 15px 25px, rgba(var(--accent-rgb), .75) 25px); }
.rail-tick.on span { color: var(--accent-ink); }
/* ползунок фейдера: металлический колпачок с риской посередине */
.rail-knob {
  position: absolute; left: 50%; top: 0; width: 34px; height: 54px; margin: -27px 0 0 -17px;
  border-radius: 5px; z-index: 2; cursor: grab; touch-action: none;
  transition: filter .2s ease;
  background:
    linear-gradient(180deg, transparent 0 calc(50% - 1.5px), #1a1a1a calc(50% - 1.5px) calc(50% + .5px), rgba(255, 255, 255, .55) calc(50% + .5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(180deg, #f2f2f2 0%, #c9c9c9 18%, #9a9a9a 46%, #6e6e6e 50%, #8c8c8c 54%, #b3b3b3 82%, #7a7a7a 100%);
  box-shadow: 0 8px 14px rgba(0, 0, 0, .75), 0 2px 3px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(0, 0, 0, .45), inset 1px 0 0 rgba(255, 255, 255, .25), inset -1px 0 0 rgba(0, 0, 0, .3);
  will-change: transform;
}
.rail-knob:hover, .stages-rail.dragging .rail-knob { filter: brightness(1.12); }
/* оранжевая индикаторная риска */
.knob-cap {
  position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px;
  background: var(--accent); box-shadow: 0 0 6px var(--accent);
}
.knob-val {
  position: absolute; left: 100%; top: 50%; transform: translate(10px, -50%);
  font-family: 'Martian Mono', ui-monospace, monospace; font-size: .7rem; letter-spacing: .08em;
  color: var(--accent-ink); background: rgba(var(--bg-rgb), .88); border: 1px solid rgba(var(--accent-rgb), .4);
  padding: 3px 7px; border-radius: 6px; white-space: nowrap;
}
/* Деление пройдено: риска вспыхивает, ползунок «бьёт», карточка проседает как под сайдчейном */
.stages-sound { margin-top: 1.4rem; }
.rail-tick.flash { background: linear-gradient(90deg, #fff 0 15px, transparent 15px 25px, #fff 25px); box-shadow: 0 0 10px rgba(var(--accent-rgb), .9); }
.rail-knob.kick { filter: brightness(1.25); }
.rail-knob.kick .knob-cap { box-shadow: 0 0 6px var(--accent), 0 0 22px 4px var(--accent); }
.stage-card { transform-origin: 0 50%; }
.stage-card.duck { animation: stage-duck .38s cubic-bezier(.2, .8, .3, 1); }
@keyframes stage-duck {
  0% { transform: none; }
  12% { transform: scale(.972) translateX(4px); filter: brightness(.78); border-color: rgba(var(--accent-rgb), .55); }
  100% { transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) { .stage-card.duck { animation: none; } }
html:not(.js) .stages-rail, html:not(.js) .stages-sound { display: none; }
html:not(.js) .stages-flow { padding-left: 0; }

/* ---------- Teachers ---------- */
.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.teacher-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.teacher-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .5); }
.teacher-photo { aspect-ratio: 4/4.6; overflow: hidden; background: var(--bg-well); }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.02); transition: transform .4s ease, filter .3s ease; }
.teacher-card:hover .teacher-photo img { transform: scale(1.04); filter: saturate(1); }
.teacher-info { padding: 20px 22px 24px; }
.teacher-info h3 { font-size: 1.05rem; font-weight: 700; }
.teacher-role { color: var(--accent-ink); font-family: 'Martian Mono', ui-monospace, monospace; font-size: .78rem; letter-spacing: .06em; margin: .3rem 0 .6rem; display: block; }
.teacher-info p { color: var(--text-secondary); font-size: .88rem; line-height: 1.55; }

/* Трек куратора под описанием (ссылка на Яндекс Музыку) */
.teacher-track {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 10px; background: rgba(var(--fg-rgb), .02);
  transition: border-color .2s ease, background .2s ease;
}
.teacher-track:hover { border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .06); }
.teacher-track img { width: 44px; height: 44px; border-radius: 6px; flex-shrink: 0; }
.teacher-track span { display: grid; min-width: 0; line-height: 1.3; }
.teacher-track b { color: var(--text-primary); font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teacher-track small { color: var(--accent-ink); font-size: .76rem; }

/* ---------- Автор: цифры + треки ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; display: grid; gap: .35rem; min-width: 0;
}
.stat-num {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.3rem); font-weight: 800; line-height: 1.1; color: var(--accent-ink); letter-spacing: -.01em;
  white-space: nowrap;
}
.stat-lab { color: var(--text-secondary); font-size: .92rem; line-height: 1.4; }
.tracks-title { margin: 3rem 0 1.2rem; font-size: 1.15rem; }
.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.track-card {
  display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 16px; min-width: 0;
  padding: 12px 16px 12px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-elevated); color: var(--text-primary);
  transition: transform .25s ease, border-color .25s ease;
}
.track-card:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), .5); color: var(--text-primary); }
.track-cover { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.track-meta { display: grid; min-width: 0; line-height: 1.35; }
.track-meta b { font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: .98rem; font-weight: 700; }
.track-meta span { color: var(--text-secondary); font-size: .85rem; }
.track-go {
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
  position: relative; transition: transform .2s ease;
}
.track-go::after {
  content: ""; position: absolute; left: 16px; top: 13px;
  border-left: 13px solid var(--accent-contrast); border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.track-card:hover .track-go { transform: scale(1.08); }

/* ---------- Аудио «до/после» (в блоке Результат) ---------- */
.ab-wrap {
  margin-top: 28px; padding: 30px; border-radius: var(--radius); border: 1px solid var(--border);
  background: rgba(var(--surface-rgb), .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ab-head h3 { font-size: 1.15rem; }
.ab-head p { color: var(--text-secondary); font-size: .95rem; margin-top: .4rem; }
.ab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 1.4rem; }
.ab-pair { display: grid; gap: 10px; min-width: 0; }
.ab-label { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--text-secondary); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.ab-player {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 16px 12px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elevated);
  transition: border-color .2s ease;
}
.ab-player.after { border-color: rgba(var(--accent-rgb), .45); }
.ab-player.playing { border-color: var(--accent); }
.ab-play {
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer; position: relative;
  background: #2a2a2a; transition: transform .2s ease, background .2s ease;
}
.ab-player.after .ab-play { background: var(--accent); }
.ab-play:hover { transform: scale(1.06); }
.ab-play::after {
  content: ""; position: absolute; left: 19px; top: 16px;
  border-left: 14px solid #eee; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.ab-player.after .ab-play::after { border-left-color: var(--accent-contrast); }
.ab-player.playing .ab-play::after {
  left: 17px; top: 16px; width: 14px; height: 16px; border: none;
  background: linear-gradient(90deg, #eee 0 5px, transparent 5px 9px, #eee 9px);
}
.ab-player.after.playing .ab-play::after { background: linear-gradient(90deg, var(--accent-contrast) 0 5px, transparent 5px 9px, var(--accent-contrast) 9px); }
.ab-body { min-width: 0; display: grid; gap: 6px; }
.ab-tag { font-size: .78rem; font-weight: 600; color: var(--text-secondary); }
.ab-player.after .ab-tag { color: var(--accent-ink); }
.ab-wave { height: 40px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.ab-wave i { flex: 1; min-width: 1px; border-radius: 2px; background: #3d3d3d; }
.ab-player.after .ab-wave i { background: rgba(var(--accent-rgb), .35); }
.ab-wave i.on { background: #bbb; }
.ab-player.after .ab-wave i.on { background: var(--accent); }
.ab-time { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .8rem; color: var(--text-secondary); min-width: 2.6em; text-align: right; }

/* ---------- Интерактив: «железо» для секвенсора и EQ-тренажёра ----------
   Общие детали: панель с винтами, аппаратные кнопки, ручки, LCD */
.try-block { margin-top: 64px; display: grid; grid-template-columns: .62fr 1.38fr; gap: 40px; align-items: center; }
.try-head h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; margin-bottom: 1rem; }
.try-head p { color: var(--text-secondary); font-size: .98rem; line-height: 1.55; }
.try-head p + p { margin-top: .8rem; }
.hw-panel {
  position: relative; min-width: 0; border-radius: 18px; padding: 24px;
  background: linear-gradient(180deg, #1d1d1d, #151515); border: 1px solid #2c2c2c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.hw-panel::before, .hw-panel::after {
  content: ""; position: absolute; top: 9px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8a8a8a, #2a2a2a 70%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6);
}
.hw-panel::before { left: 9px; }
.hw-panel::after { right: 9px; }
.hw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 18px; }
.hw-spacer { flex: 1; }
.hw-lcd {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Martian Mono', ui-monospace, monospace; font-size: .76rem; letter-spacing: .06em; font-variant-numeric: tabular-nums;
  color: var(--accent-ink); text-shadow: 0 0 8px rgba(var(--accent-rgb), .55);
  background: #0b0e06; border: 1px solid #222; border-radius: 6px; padding: 7px 11px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .9);
}
.hw-lcd small { color: rgba(var(--accent-rgb), .45); text-shadow: none; font-size: .62rem; }
.hw-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 0; border-radius: 7px; padding: 10px 14px;
  font-family: 'Martian Mono', ui-monospace, monospace; font-size: .72rem; font-weight: 600; letter-spacing: .1em; color: #d8d8d4;
  background: linear-gradient(180deg, #353535, #242424);
  box-shadow: 0 3px 0 #0c0c0c, 0 6px 12px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .08s, box-shadow .08s, color .2s;
}
.hw-btn:active, .hw-btn[aria-pressed="true"] { transform: translateY(2px); box-shadow: 0 1px 0 #0c0c0c, 0 3px 6px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08); }
.hw-btn .led { width: 7px; height: 7px; border-radius: 50%; background: #2c3319; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .8); transition: .15s; }
.hw-btn[aria-pressed="true"] { color: var(--accent-ink); }
.hw-btn[aria-pressed="true"] .led { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.hw-btn:focus-visible, .hw-knob:focus-visible, .beat-pad:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* поворотная ручка: --t = 0..1, кольцо подсвечивается по значению */
.hw-knobwrap { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; user-select: none; }
.hw-knob {
  --t: .5; position: relative; width: 48px; height: 48px; border-radius: 50%; cursor: ns-resize; touch-action: none;
  background: conic-gradient(from -135deg, var(--accent) 0 calc(var(--t) * 270deg), #2b2b2b 0 270deg, transparent 0);
  -webkit-mask: radial-gradient(circle, #000 0 62%, transparent 63% 67%, #000 68%); mask: radial-gradient(circle, #000 0 62%, transparent 63% 67%, #000 68%);
}
.hw-knob i {
  position: absolute; inset: 8px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #4a4a4a, #1c1c1c 70%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
  transform: rotate(calc(-135deg + var(--t) * 270deg));
}
.hw-knob i::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 10px; margin-left: -1px; border-radius: 1px; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.hw-knoblabel { font-family: 'Martian Mono', ui-monospace, monospace; font-size: .58rem; letter-spacing: .12em; color: var(--text-secondary); }

/* Секвенсор (Channel Rack): 16 шагов, на телефоне по 8 в ряд */
.beat-rack { display: grid; gap: 8px; }
.beat-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; }
.beat-chan {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 6px; overflow: hidden; white-space: nowrap;
  background: linear-gradient(180deg, #2a2a2a, #1f1f1f); border: 1px solid #333;
  font-family: 'Martian Mono', ui-monospace, monospace; font-size: .66rem; letter-spacing: .06em; color: #cfcfca;
}
.beat-chan .led { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #2c3319; transition: background .05s, box-shadow .05s; }
.beat-chan.hit .led { background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: none; }
.beat-steps { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; }
.beat-pad {
  height: 32px; min-width: 0; padding: 0; border: 0; border-radius: 5px; cursor: pointer;
  background: linear-gradient(180deg, #3a3a3a, #2c2c2c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 0 #0c0c0c;
  transition: box-shadow .12s, transform .06s;
}
.beat-pad.alt { background: linear-gradient(180deg, #2b2f2b, #212421); }
.beat-pad[aria-pressed="true"] { background: linear-gradient(180deg, var(--accent-hover), var(--accent)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 12px rgba(var(--accent-rgb), .35), 0 2px 0 #0c0c0c; }
.beat-pad:active { transform: translateY(1px); }
.beat-pad.now { outline: 1px solid rgba(255, 255, 255, .35); outline-offset: -1px; }
.beat-pad.now[aria-pressed="true"] { background: var(--accent-hover); background: color-mix(in srgb, var(--accent-hover) 68%, white); box-shadow: 0 0 22px rgba(var(--accent-rgb), .9); }
.beat-ruler { display: grid; grid-template-columns: 96px 1fr; gap: 10px; margin-top: 2px; }
.beat-ruler .beat-steps span { height: 4px; border-radius: 2px; background: #262626; }
.beat-ruler .beat-steps span.now { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* EQ-тренажёр: кривая и спектр рисуются на canvas */
.eqt-screen { position: relative; border-radius: 12px; overflow: hidden; background: #0b0e06; border: 1px solid #222; box-shadow: inset 0 2px 10px rgba(0, 0, 0, .9); }
.eqt-canvas { display: block; width: 100%; height: 300px; cursor: crosshair; touch-action: manipulation; }
.eqt-tip {
  position: absolute; top: 14px; right: 14px; max-width: 330px; pointer-events: none;
  background: rgba(10, 12, 6, .86); border: 1px solid rgba(var(--accent-rgb), .3); border-radius: 10px; padding: 10px 12px;
  font-size: .86rem; line-height: 1.45; color: var(--text-body); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.eqt-tip b { display: block; margin-bottom: 3px; font-family: 'Martian Mono', ui-monospace, monospace; font-size: .66rem; font-weight: 600; letter-spacing: .08em; color: var(--accent-ink); }
@media (hover: none) { .eqt-mouse { display: none; } }

@media (max-width: 980px) {
  .try-block { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
}
@media (max-width: 560px) {
  .hw-panel { padding: 18px 14px 16px; }
  .beat-row { grid-template-columns: 44px 1fr; gap: 6px; }
  .beat-chan { height: auto; align-self: stretch; padding: 0 5px; font-size: .52rem; letter-spacing: 0; justify-content: center; flex-direction: column; gap: 5px; }
  .beat-steps { grid-template-columns: repeat(8, 1fr); gap: 3px; }
  .beat-pad { height: 26px; border-radius: 4px; }
  .beat-ruler { display: none; }
  .eqt-canvas { height: 240px; }
  .eqt-screen { overflow: visible; background: none; border: 0; box-shadow: none; }
  .eqt-canvas { border-radius: 12px; background: #0b0e06; border: 1px solid #222; }
  .eqt-tip { position: static; max-width: none; margin-top: 10px; }
}

/* ---------- Reviews ---------- */
.review-card { position: relative; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px 26px; }
.review-card::before { content: "\201C"; position: absolute; top: 14px; right: 22px; font-size: 4rem; line-height: 1; color: rgba(var(--accent-rgb), .22); }
.review-card p { font-style: italic; color: var(--text-primary); font-size: .96rem; }
.review-author { margin-top: 1.1rem; color: var(--accent-ink); font-weight: 600; font-size: .87rem; }
.review-shots-title { margin: 3rem 0 1.2rem; font-size: 1.15rem; }
.review-shots { columns: 3 300px; column-gap: 18px; }
.review-shots img {
  width: 100%; height: auto; margin: 0 0 18px; break-inside: avoid; cursor: zoom-in;
  border-radius: 12px; border: 1px solid var(--border);
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }

details.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); margin-bottom: 10px; overflow: hidden; transition: border-color .25s ease; }
details.faq-item[open] { border-color: rgba(var(--accent-rgb), .5); }
details.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 56px 18px 22px; font-weight: 600; font-size: .98rem; color: var(--text-primary);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--accent-ink); font-size: 1.5rem; font-weight: 400; transition: transform .25s ease;
}
details.faq-item[open] summary::after { content: "\2013"; }
details.faq-item .faq-a { padding: 0 22px 20px; color: var(--text-secondary); font-size: .94rem; line-height: 1.55; max-width: 62ch; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; position: relative; overflow: hidden; }
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 65% 90% at 50% 115%, rgba(var(--accent-rgb), .09), transparent 65%);
}
.final-cta > * { position: relative; }
.final-cta h2 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.final-cta p { color: var(--text-secondary); max-width: 40em; margin: 1.2rem auto 2.2rem; font-size: 1.06rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-footer); padding: 56px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-brand .logo { font-size: 1.3rem; }
.footer-brand p { color: var(--text-secondary); font-size: .85rem; margin-top: .6rem; max-width: 30em; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a, .footer-links span { color: var(--text-secondary); font-size: .9rem; }
.footer-links a:hover { color: var(--accent-ink); }
.footer-legal { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #555; font-size: .8rem; }
.footer-legal a { color: inherit; }

/* ---------- Reveal on scroll ----------
   Скрыто только если JS включил html.js — без JS контент всегда виден */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
html.noanim .reveal, html.noanim .btn-primary { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Oferta page ---------- */
.legal-doc { max-width: 860px; margin: 0 auto; padding: calc(var(--header-h) + 56px) 24px 96px; }
.legal-doc h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: .6rem; }
.legal-meta { color: var(--text-secondary); font-size: .95rem; margin-bottom: 3rem; line-height: 1.7; }
.legal-doc h2 { font-size: 1.25rem; font-weight: 700; margin: 2.6rem 0 1rem; color: var(--text-primary); letter-spacing: -.01em; }
.legal-doc p { color: var(--text-body); font-size: .95rem; line-height: 1.75; margin-bottom: 1rem; }
.legal-doc ul { margin: 0 0 1.2rem 1.3em; color: var(--text-body); font-size: .95rem; line-height: 1.7; }

/* ---------- Video section (после первого блока) ---------- */
.video-section { padding: 40px 0 8px; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-well);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.video-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; }
.video-frame.loaded .video-embed { display: block; }
.video-frame.loaded .video-placeholder { display: none; }
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(var(--accent-rgb), .08), transparent 60%),
    linear-gradient(160deg, #141414, #0c0c0c);
  color: var(--text-secondary); font-size: .95rem;
}
.video-frame .vp-link { cursor: pointer; }
.video-frame .vp-link:hover .vp-play { background: rgba(var(--accent-rgb), .2); box-shadow: 0 0 0 12px rgba(var(--accent-rgb), .08); }
.vp-play {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .4);
  color: var(--accent-ink); box-shadow: 0 0 0 8px rgba(var(--accent-rgb), .06);
}

/* ---------- Lightbox (zoom фото) ---------- */
img[data-lightbox] { cursor: zoom-in; transition: transform .25s ease, filter .25s ease; }
img[data-lightbox]:hover { transform: scale(1.015); filter: brightness(1.06); }
.mindmap-frame.zoomable { position: relative; }
.mindmap-frame.zoomable::after {
  content: "нажмите, чтобы рассмотреть";
  position: absolute; right: 14px; bottom: 14px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(var(--bg-rgb), .8); border: 1px solid var(--border);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--text-secondary); font-size: .78rem; letter-spacing: .02em;
  opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.mindmap-frame.zoomable:hover::after,
.mindmap-frame.zoomable:focus-within::after { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .mindmap-frame.zoomable::after { opacity: .85; transform: none; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 5, 5, .9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.lightbox.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .3s ease, visibility 0s;
}
.lb-viewport {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; touch-action: none; cursor: grab;
}
.lb-viewport.grabbing { cursor: grabbing; }
.lb-img {
  position: absolute; top: 0; left: 0;
  max-width: none; width: auto; height: auto;
  transform-origin: 0 0; will-change: transform;
  user-select: none; -webkit-user-drag: none;
  border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
.lb-img.lb-anim { transition: transform .36s cubic-bezier(.22, .8, .24, 1); }
@media (prefers-reduced-motion: reduce) { .lb-img.lb-anim { transition: none; } }
.lb-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 20, 20, .8); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.lb-close:hover { border-color: var(--accent); background: rgba(30, 30, 30, .9); }
.lb-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: #777; font-size: .8rem; white-space: nowrap;
  pointer-events: none; z-index: 2;
}
@media (max-width: 720px) { .lb-hint { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .offer-split { grid-template-columns: 1fr; gap: 32px; }
  .price-card { max-width: 460px; margin: 0 auto; width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .track-grid, .ab-grid { grid-template-columns: 1fr; }
  .program-split { grid-template-columns: 1fr; gap: 36px; }
  .site-tour { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
  .stage-card { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .stage-card:nth-child(even) .stage-media { order: 0; }
  .stages-flow { padding-left: 46px; }
  .stages-rail { width: 34px; left: -6px; }
  .rail-tick { width: 28px; margin-left: -14px; }
  .rail-tick span { display: none; }
  .rail-knob { width: 26px; height: 40px; margin: -20px 0 0 -13px; border-radius: 4px; }
  .knob-val { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 640px; margin: 8px auto 0; }
}
@media (max-width: 560px) {
  /* в 2 колонки на телефоне сценки ~95px и заголовки рвутся посреди слова */
  .grid-4 { grid-template-columns: 1fr; }
  .float-chip { width: min(138px, calc(50% + 4px)); gap: 7.5px; padding: 9px 10.5px 10.5px; border-radius: 15px; font-size: 13.5px; }
  .float-chip img { width: 42px; height: 42px; }
  .fc-1 { bottom: -18px; left: -10px; }
  .fc-2 { bottom: -20px; right: -10px; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .grid-3, .compare { grid-template-columns: 1fr; }
  /* карточки друг под другом — фон делим сверху/снизу */
  .compare-bg { left: 0; right: 0; width: auto; height: 58%; top: auto; bottom: auto; }
  .compare-bg-before { top: 0; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .compare-bg-after { bottom: 0; -webkit-mask-image: linear-gradient(0deg, #000 70%, transparent); mask-image: linear-gradient(0deg, #000 70%, transparent); }
  .section { padding: 72px 0; }
  .stats-row { gap: 12px; }
  .stat { padding: 18px 16px; }
  .ab-wrap { padding: 20px 16px; }
  .ab-player { gap: 10px; }
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .hero-bg { opacity: .6; }
  .social-proof { margin-left: 0; width: 100%; }
  .header-inner { gap: 1rem; }
  .header-cta { padding: 10px 14px; font-size: .78rem; letter-spacing: 0; white-space: nowrap; }
  .countdown { margin-left: 0; width: 100%; justify-content: space-between; }
  .cd-unit { flex: 1; min-width: 0; }
  .enroll-cta { width: 100%; }
}
@media (max-width: 380px) {
  /* «секунд» с широким трекингом не влезает в четверть экрана 320px */
  .countdown { gap: 6px; }
  .cd-unit { padding: 6px 2px; }
  .cd-lab { font-size: .6rem; letter-spacing: .04em; }
}
