/* ============================================================
   КВАНТИ — онлайн-школа программирования
   Дизайн-система: «квантовый неон»
   ============================================================ */

/* ---------- 1. Токены ---------- */
:root {
  --bg:        #070B1F;
  --bg-2:      #0A1030;
  --bg-3:      #0F1B4C;
  --surface:   rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --stroke:    rgba(255, 255, 255, .10);
  --stroke-2:  rgba(255, 255, 255, .18);

  --ink:       #EAF0FF;
  --ink-2:     #B9C6EE;
  --muted:     #8291BC;

  --cyan:      #00E5FF;
  --violet:    #A855F7;
  --lime:      #C6FF3D;
  --pink:      #FF4D9D;

  --grad-main: linear-gradient(115deg, #00E5FF 0%, #A855F7 55%, #FF4D9D 100%);
  --grad-lime: linear-gradient(115deg, #C6FF3D 0%, #00E5FF 100%);
  --grad-soft: linear-gradient(160deg, rgba(0,229,255,.14), rgba(168,85,247,.10));

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-glow: 0 0 60px -12px rgba(0, 229, 255, .55);
  --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, .9);

  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.6, .05, .3, 1);

  --font-display: "Unbounded", "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* clip, в отличие от hidden, не создаёт собственный контейнер прокрутки —
   именно из-за него на телефоне страницу утаскивало вбок при листании вниз.
   Для старых браузеров выше остаётся hidden. */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body.is-locked { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--cyan); color: #04061a; }

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

/* ---------- 3. Типографика ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 4.6vw, 56px); }
h2 { font-size: clamp(27px, 3.9vw, 46px); }
h3 { font-size: clamp(19px, 2.2vw, 25px); line-height: 1.2; }
h4 { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.25; }
p  { margin: 0; text-wrap: pretty; }

.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-lime {
  background: var(--grad-lime);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(16px, 1.9vw, 20px);
  color: var(--ink-2);
  font-weight: 500;
}

.muted { color: var(--muted); }

/* ---------- 4. Раскладка ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 130px);
}
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

.sec-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(32px, 4vw, 56px);
  max-width: 720px;
}
.sec-head--center {
  margin-inline: auto;
  text-align: center;
  align-items: center;
}

/* Плашка-метка над заголовком */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--stroke-2);
  border-radius: 100px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.sec-head--center .eyebrow { align-self: center; }
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.4s var(--ease-io) infinite;
}
.eyebrow--lime::before { background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.eyebrow--violet::before { background: var(--violet); box-shadow: 0 0 12px var(--violet); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.7); }
}

/* ---------- 5. Фоновые эффекты ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(15, 27, 76, .95), transparent 70%),
    linear-gradient(180deg, #070B1F 0%, #080D26 50%, #070B1F 100%);
}

.bg-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 72%);
  animation: gridDrift 34s linear infinite;
}
@keyframes gridDrift {
  to { transform: translate3d(64px, 64px, 0); }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .5;
  will-change: transform;
}
.blob--1 { width: 46vw; height: 46vw; top: -12vw;  left: -10vw;  background: #00E5FF; animation: float1 22s var(--ease-io) infinite; }
.blob--2 { width: 40vw; height: 40vw; top: 30vh;   right: -12vw; background: #A855F7; animation: float2 27s var(--ease-io) infinite; }
.blob--3 { width: 34vw; height: 34vw; bottom: -8vw; left: 25vw;  background: #FF4D9D; opacity: .3; animation: float3 31s var(--ease-io) infinite; }

@keyframes float1 { 0%,100%{transform:translate3d(0,0,0)} 50%{transform:translate3d(6vw,8vh,0) scale(1.15)} }
@keyframes float2 { 0%,100%{transform:translate3d(0,0,0)} 50%{transform:translate3d(-8vw,-6vh,0) scale(.85)} }
@keyframes float3 { 0%,100%{transform:translate3d(0,0,0)} 50%{transform:translate3d(5vw,-9vh,0) scale(1.2)} }

/* Зернистость поверх фона — убирает «пластиковость» градиентов */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 6. Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  /* Кнопка не должна вылезать за край экрана: на узких телефонах
     «Бесплатный пробный урок» шире, чем колонка контента. */
  max-width: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s;
  will-change: transform;
}
.btn svg { flex: none; }

.btn--primary {
  background: var(--grad-main);
  color: #04061a;
  box-shadow: 0 10px 40px -12px rgba(0,229,255,.7), inset 0 0 0 1px rgba(255,255,255,.25);
}
.btn--primary:hover {
  box-shadow: 0 16px 55px -10px rgba(168,85,247,.85), inset 0 0 0 1px rgba(255,255,255,.4);
}

.btn--lime {
  background: var(--grad-lime);
  color: #04061a;
  box-shadow: 0 10px 40px -12px rgba(198,255,61,.6);
}
.btn--lime:hover { box-shadow: 0 16px 55px -10px rgba(198,255,61,.8); }

.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--stroke-2);
  color: var(--ink);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.36); }

.btn--sm { padding: 12px 22px; font-size: 14px; }
.btn--lg { padding: 19px 38px; font-size: 17px; }
/* На всю ширину — значит текст может переноситься,
   иначе длинная подпись вылезает за кнопку на узком экране. */
.btn--block { width: 100%; white-space: normal; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Пульсирующее кольцо вокруг главного CTA */
.btn--pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(0,229,255,.8);
  animation: ring 2.6s var(--ease-io) infinite;
  pointer-events: none;
}
@keyframes ring {
  0%   { opacity: .9; transform: scale(1); }
  70%  { opacity: 0;  transform: scale(1.18); }
  100% { opacity: 0;  transform: scale(1.18); }
}

/* ---------- 7. Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 16px;
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s, padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  padding-block: 9px;
  /* Непрозрачности хватает и без размытия: backdrop-filter
     поддержан не везде, а текст под шапкой просвечивать не должен. */
  background: rgba(7, 11, 31, .94);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--stroke);
}
@supports (backdrop-filter: blur(1px)) {
  .header.is-stuck { background: rgba(7, 11, 31, .78); }
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: .04em;
}
.logo__mark {
  width: 38px; height: 38px;
  flex: none;
  filter: drop-shadow(0 0 12px rgba(0,229,255,.6));
  animation: spinMark 18s linear infinite;
}
@keyframes spinMark { to { transform: rotate(360deg); } }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  white-space: nowrap;   /* иначе на ноутбуках «ОГЭ и ЕГЭ» ломается на две строки */
  padding: 9px 15px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color .25s, background .25s;
}
.nav__link:hover { color: var(--ink); background: var(--surface); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-main);
}

.header__cta { flex: none; }

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke-2);
  background: var(--surface);
  flex: none;
  margin-left: auto;
}
/* Полоски позиционируем абсолютно: так «крестик» собирается
   ровно по центру независимо от раскладки контейнера. */
.burger span {
  position: absolute;
  left: 50%;
  width: 19px; height: 2px;
  margin-left: -9.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  /* явная колонка: без неё авто-колонка растягивается
     по самой длинной ссылке и вылезает за экран */
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding-block: 90px 40px;
  overflow-y: auto;
  background: rgba(7, 11, 31, .96);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}
.mobile-menu a:not(.btn) {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 700;
  padding-block: 12px;
  border-bottom: 1px solid var(--stroke);
  transform: translateY(18px);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.mobile-menu.is-open a { transform: none; opacity: 1; }
.mobile-menu.is-open a:nth-child(1) { transition-delay: .06s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: .12s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: .18s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: .24s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: .30s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: .36s; }
.mobile-menu a.btn { margin-top: 26px; border-bottom: 0; padding-block: 18px; }

/* ---------- 8. Первый экран ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 130px 70px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  width: 100%;
}

.hero__title {
  margin-bottom: 22px;
  font-size: clamp(28px, 4vw, 50px);
}
.hero__title .line { display: block; }

.hero__text {
  max-width: 480px;
  margin-bottom: 32px;
}

/* Три коротких обещания под кнопками первого экрана */
.hero__points {
  /* Столбцом, а не в строку: три пункта не влезают в колонку
     и переносятся «2 + 1», что выглядит как случайность. */
  display: grid;
  gap: 12px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--stroke);
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
}
.hero__points svg { flex: none; color: var(--lime); }

/* 3D-сцена справа */
.hero__scene {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
#quantum-canvas {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px rgba(0, 229, 255, .35));
}

/* Плавающие «стеклянные» карточки поверх сцены */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border-radius: 100px;
  border: 1px solid var(--stroke-2);
  background: rgba(11, 17, 48, .75);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  will-change: transform;
}
.float-card__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: none;
}
.float-card--1 { top: 10%;  left: -6%;  animation: bob 6s var(--ease-io) infinite; }
.float-card--2 { top: 44%;  right: -8%; animation: bob 7.5s var(--ease-io) infinite .6s; }
.float-card--3 { bottom: 9%; left: 4%;  animation: bob 6.8s var(--ease-io) infinite 1.2s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* Индикатор прокрутки */
.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 26px;
  display: grid;
  justify-items: center;
  gap: 9px;
  opacity: .7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint__line {
  width: 1px; height: 42px;
  background: linear-gradient(var(--cyan), transparent);
  animation: scrollLine 2.2s var(--ease-io) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}

/* ---------- 9. Бегущая строка ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 20px;
  border-block: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* ---------- 10. Карточки и бенто ---------- */
.card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { border-color: var(--stroke-2); }

/* Свечение, следующее за курсором */
.card--spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(0,229,255,.16), transparent 60%);
  pointer-events: none;
}
.card--spot:hover::before { opacity: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  margin-bottom: 20px;
  background: var(--grad-soft);
  border: 1px solid var(--stroke-2);
  color: var(--cyan);
}
.card__icon--violet { color: var(--violet); }
.card__icon--lime   { color: var(--lime); }
.card__icon--pink   { color: var(--pink); }

.card h3 { margin-bottom: 10px; }
.card p  { color: var(--ink-2); font-size: 15px; }

.grid {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 11. Карточки направлений ---------- */
.track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke);
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), border-color .4s;
}
.track-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .95;
  transition: opacity .5s;
}
.track-card--py::before {
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(0,229,255,.30), transparent 65%),
    linear-gradient(165deg, rgba(0,229,255,.10), rgba(7,11,31,.6));
}
.track-card--oge::before {
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(198,255,61,.26), transparent 65%),
    linear-gradient(165deg, rgba(168,85,247,.16), rgba(7,11,31,.6));
}
.track-card:hover { border-color: var(--stroke-2); }

.track-card__badge {
  align-self: flex-start;
  padding: 6px 13px;
  border-radius: 100px;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--stroke-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.track-card h3 {
  margin-top: 20px;
  font-size: clamp(26px, 3.4vw, 40px);
}
.track-card__desc {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 34ch;
}
.track-card__list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 600;
}
.track-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}
.track-card__list li::before {
  content: "";
  width: 18px; height: 18px;
  flex: none;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--stroke-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300E5FF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}
.track-card__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 28px;
}
.track-card__arrow {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--stroke-2);
  background: var(--surface);
  transition: transform .4s var(--ease), background .3s;
}
.track-card:hover .track-card__arrow { transform: translateX(5px); background: var(--surface-2); }

/* Крупная цифра-водяной знак */
.track-card__ghost {
  position: absolute;
  right: -12px; bottom: -34px;
  z-index: -1;
  font-family: var(--font-display);
  font-size: 190px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,.035);
  pointer-events: none;
}

/* ---------- 12. Платформа ---------- */
.platform {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.platform__features { display: grid; gap: 12px; }

.feat {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .35s, background .35s, transform .35s var(--ease);
}
.feat:hover { transform: translateX(6px); }
.feat.is-active {
  border-color: rgba(0,229,255,.45);
  background: linear-gradient(100deg, rgba(0,229,255,.14), rgba(168,85,247,.07));
  box-shadow: 0 0 40px -18px rgba(0,229,255,.9);
}
.feat__ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  color: var(--cyan);
  transition: color .3s;
}
.feat.is-active .feat__ico { color: var(--lime); }
.feat h4 { margin-bottom: 4px; }
.feat p { font-size: 14px; color: var(--muted); }

/* Макет окна платформы */
.mock {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke-2);
  background: linear-gradient(165deg, #0D1438, #080C22);
  box-shadow: var(--shadow-card), 0 0 90px -30px rgba(0,229,255,.55);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
}
.mock__dot { width: 10px; height: 10px; border-radius: 50%; }
.mock__title {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
}
.mock__body { padding: 20px; min-height: 320px; }

.mock__pane { display: none; animation: fadeUp .45s var(--ease); }
.mock__pane.is-active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--stroke);
}
.mock-row + .mock-row { margin-top: 10px; }
.mock-row__thumb {
  width: 62px; height: 40px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0,229,255,.3), rgba(168,85,247,.3));
  color: #fff;
}
.mock-row__main { min-width: 0; flex: 1; }
/* span по умолчанию строчный — без display:block заголовок
   и подпись сливаются в одну строку, а отступ не работает */
.mock-row__t {
  display: block;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-row__s {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-row__tag {
  flex: none;
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.tag--done { background: rgba(198,255,61,.16); color: var(--lime); }
.tag--wait { background: rgba(0,229,255,.16); color: var(--cyan); }
.tag--new  { background: rgba(255,77,157,.16); color: var(--pink); }

.mock-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}
.mock-cal__d {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,.04);
  border: 1px solid transparent;
  color: var(--muted);
}
.mock-cal__d.is-head { background: none; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.mock-cal__d.is-lesson {
  background: linear-gradient(135deg, rgba(0,229,255,.28), rgba(168,85,247,.28));
  border-color: rgba(0,229,255,.45);
  color: #fff;
  box-shadow: 0 0 22px -6px rgba(0,229,255,.7);
}

.mock-prog { display: grid; gap: 18px; }
.mock-prog__item { display: grid; gap: 9px; }
.mock-prog__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}
.mock-prog__val { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }

.mock-prog__bar {
  position: relative;
  height: 10px;
  border-radius: 100px;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  overflow: hidden;
}
/* Насечки каждые 25% — полоса читается как шкала, а не как пятно */
.mock-prog__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,
    transparent 0 calc(25% - 1px),
    rgba(255,255,255,.12) calc(25% - 1px) 25%);
  pointer-events: none;
}
.mock-prog__fill {
  display: block;          /* без этого span остаётся строчным и ширина не работает */
  height: 100%;
  border-radius: 100px;
  width: 0;
  transition: width 1.1s var(--ease);
}
/* Цвет по уровню: сразу видно, где всё закрыто, а где провал */
.mock-prog__fill--high {
  background: linear-gradient(90deg, #7BE38B, var(--lime));
  box-shadow: 0 0 14px -2px rgba(198,255,61,.75);
}
.mock-prog__fill--mid {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 14px -2px rgba(0,229,255,.7);
}
.mock-prog__fill--low {
  background: linear-gradient(90deg, var(--violet), var(--pink));
  box-shadow: 0 0 14px -2px rgba(255,77,157,.75);
}
.mock-prog__val--high { color: var(--lime); }
.mock-prog__val--mid  { color: var(--cyan); }
.mock-prog__val--low  { color: var(--pink); }

.mock-code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre;
  overflow-x: auto;
  color: #C8D4FF;
}
.mock-code .k { color: #FF79C6; }
.mock-code .f { color: #00E5FF; }
.mock-code .s { color: #C6FF3D; }
.mock-code .c { color: #5A6A9E; }
.mock-code .n { color: #FFB86C; }

/* ---------- 13. Слайдер преподавателей ---------- */
.teachers { position: relative; }

.slider {
  position: relative;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}
.slider.is-dragging { cursor: grabbing; }
.slider.is-dragging .slider__track { transition: none; }

.slider__track {
  display: flex;
  gap: 22px;
  transition: transform .6s var(--ease);
  will-change: transform;
}

.teacher {
  position: relative;
  /* Ширина подобрана так, чтобы две карточки заполняли ряд целиком.
     Добавится третий преподаватель — включится горизонтальный свайп. */
  flex: 0 0 min(549px, 86vw);
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke);
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  backdrop-filter: blur(14px);
  overflow: hidden;
  user-select: none;
  transition: border-color .4s, transform .5s var(--ease);
}
.teacher:hover { border-color: var(--stroke-2); }

.teacher__photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(150deg, #14205A, #0A0F2E);
}
.teacher__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  transition: transform .8s var(--ease);
}
.teacher:hover .teacher__photo img { transform: scale(1.05); }
.teacher__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,16,48,.95) 2%, transparent 55%);
}

.teacher__role {
  position: absolute;
  left: 20px; bottom: 16px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: 100px;
  background: rgba(7,11,31,.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--stroke-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--cyan);
}
.teacher__role--lime { color: var(--lime); }

.teacher__body { padding: 22px 24px 26px; }
.teacher__name { font-size: 24px; margin-bottom: 6px; }
.teacher__sub { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 18px; }

.teacher__facts { display: grid; gap: 10px; }
.teacher__facts li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.teacher__facts li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.teacher--lime .teacher__facts li::before { background: var(--lime); box-shadow: 0 0 8px var(--lime); }

.teacher__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
}
.chip {
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip--cyan  { background: rgba(0,229,255,.12);  border-color: rgba(0,229,255,.3);  color: var(--cyan); }
.chip--lime  { background: rgba(198,255,61,.12); border-color: rgba(198,255,61,.3); color: var(--lime); }
.chip--violet{ background: rgba(168,85,247,.14); border-color: rgba(168,85,247,.35);color: #D4B4FF; }

.slider__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.slider__btn {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid var(--stroke-2);
  background: var(--surface);
  color: var(--ink);
  transition: background .3s, transform .3s var(--ease), opacity .3s;
}
.slider__btn:hover:not(:disabled) { background: var(--surface-2); transform: scale(1.07); }
.slider__btn:disabled { opacity: .3; cursor: default; }

.slider__dots { display: flex; gap: 8px; margin-left: auto; }
.slider__dot {
  width: 9px; height: 9px;
  border-radius: 100px;
  background: rgba(255,255,255,.2);
  transition: width .4s var(--ease), background .3s;
}
.slider__dot.is-active { width: 30px; background: var(--grad-main); }

.slider__hint {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- 14. Аккордеон и программа ---------- */
.acc { display: grid; gap: 12px; }

.acc__item {
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .35s, background .35s;
}
.acc__item.is-open {
  border-color: rgba(0,229,255,.35);
  background: linear-gradient(150deg, rgba(0,229,255,.08), rgba(168,85,247,.05));
}

.acc__head {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  text-align: left;
}
.acc__num {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 11px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--cyan);
}
.acc__item.is-open .acc__num { background: var(--grad-main); color: #04061a; border-color: transparent; }
.acc__title { flex: 1; font-family: var(--font-display); font-size: clamp(16px, 1.9vw, 19px); font-weight: 700; }
.acc__sub { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 5px; font-family: var(--font-body); }

/* Подсказка на свёрнутом блоке: без неё непонятно, что месяц раскрывается */
.acc__hint {
  flex: none;
  padding: 6px 13px;
  border: 1px solid rgba(0,229,255,.3);
  border-radius: 100px;
  background: rgba(0,229,255,.08);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
  transition: opacity .3s, transform .3s var(--ease);
}
.acc__item.is-open .acc__hint {
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
}
@media (max-width: 720px) {
  .acc__hint { display: none; }
}
.acc__plus {
  position: relative;
  width: 22px; height: 22px;
  flex: none;
  transition: transform .4s var(--ease);
}
.acc__plus::before, .acc__plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s;
}
.acc__plus::after { transform: rotate(90deg); }
.acc__item.is-open .acc__plus::after { transform: rotate(0); opacity: 0; }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__content { padding: 0 22px 24px 76px; }
.acc__content p { color: var(--ink-2); font-size: 15px; }
.acc__content .goal {
  display: block;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(198,255,61,.08);
  border-left: 3px solid var(--lime);
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 600;
}

/* Список уроков */
.lessons { display: grid; gap: 8px; margin-top: 16px; }
.lesson {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--stroke);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.lesson:hover { background: rgba(255,255,255,.06); border-color: var(--stroke-2); transform: translateX(4px); }
.lesson__n {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  padding-top: 3px;
  flex: none;
  min-width: 26px;
}
.lesson__main { min-width: 0; }
.lesson__t { font-size: 15px; font-weight: 700; line-height: 1.35; }
.lesson__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lesson__tags .chip { font-size: 11.5px; padding: 4px 10px; }

.result-line {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 13px;
  background: rgba(0,229,255,.08);
  border: 1px solid rgba(0,229,255,.22);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.result-line strong { color: var(--cyan); }

/* ---------- 15. Шаги / как проходит ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--surface);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(0,229,255,.4); background: var(--surface-2); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* Соединительная линия между шагами */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px; right: -18px;
  width: 18px; height: 1px;
  background: linear-gradient(90deg, rgba(0,229,255,.5), transparent);
}

/* ---------- 16. Форма ---------- */
.cta-block {
  position: relative;
  padding: clamp(32px, 5vw, 66px);
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke-2);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(150deg, rgba(0,229,255,.10), rgba(168,85,247,.10) 55%, rgba(255,77,157,.08));
  box-shadow: 0 40px 120px -50px rgba(0,229,255,.7);
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent 0%, rgba(0,229,255,.14) 15%, transparent 35%, rgba(168,85,247,.14) 55%, transparent 75%);
  animation: spinSlow 18s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.cta-block__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

.form { display: grid; gap: 12px; }
.field { position: relative; display: grid; gap: 7px; }
.field label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--stroke-2);
  background: rgba(7, 11, 31, .55);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  transition: border-color .3s, background .3s, box-shadow .3s;
  appearance: none;
}
.field input::placeholder { color: rgba(146, 161, 205, .55); font-weight: 500; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(7, 11, 31, .8);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, .13);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238291BC' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 46px;
  cursor: pointer;
}
.field select option { background: #0A1030; color: var(--ink); }
.field.has-error input { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,77,157,.14); }
.field__err {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pink);
  display: none;
}
.field.has-error .field__err { display: block; }

.form__note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.form__note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

.form__status {
  display: none;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
}
.form__status.is-ok   { display: block; background: rgba(198,255,61,.12); border: 1px solid rgba(198,255,61,.35); color: var(--lime); }
.form__status.is-fail { display: block; background: rgba(255,77,157,.12); border: 1px solid rgba(255,77,157,.35); color: var(--pink); }

.cta-perks { display: grid; gap: 14px; margin-top: 26px; }
.cta-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.cta-perks svg { flex: none; color: var(--lime); }

/* ---------- 17. FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

/* ---------- 18. Подвал ---------- */
.footer {
  position: relative;
  padding-block: clamp(44px, 6vw, 76px) 34px;
  border-top: 1px solid var(--stroke);
  background: rgba(4, 7, 22, .5);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 50px);
  padding-bottom: 34px;
  border-bottom: 1px solid var(--stroke);
}
.footer__about { max-width: 340px; }
.footer__about p { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.footer h5 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__links { display: grid; gap: 11px; }
.footer__links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color .25s, transform .25s var(--ease);
  width: fit-content;
}
.footer__links a:hover { color: var(--cyan); transform: translateX(4px); }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  border: 1px solid var(--stroke-2);
  background: var(--surface);
  color: var(--ink-2);
  transition: color .3s, background .3s, transform .3s var(--ease);
}
.socials a:hover { color: var(--cyan); background: var(--surface-2); transform: translateY(-3px); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  padding-top: 26px;
  font-size: 13px;
  color: var(--muted);
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 19. Анимации появления ----------
   Прячем блоки только если JS жив (класс js ставится в <head>).
   Иначе при сбое скрипта страница осталась бы пустой. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
/* Стартовое смещение задаём только непоказанным блокам:
   иначе правила для отдельных направлений конфликтуют
   с общим .is-in и блок навсегда остаётся сдвинутым. */
.js [data-reveal="left"]:not(.is-in)  { transform: translateX(-32px); }
.js [data-reveal="right"]:not(.is-in) { transform: translateX(32px); }
.js [data-reveal="zoom"]:not(.is-in)  { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 20. Прогресс чтения ---------- */
.read-bar {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  height: 2px;
  width: 0;
  background: var(--grad-main);
  box-shadow: 0 0 12px rgba(0,229,255,.9);
  transition: width .1s linear;
}

/* ---------- 21. Хлебные крошки / шапка подстраниц ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(120px, 15vw, 175px) clamp(40px, 6vw, 70px);
  overflow: hidden;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.crumbs a:hover { color: var(--cyan); }
.crumbs span { opacity: .5; }

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}
.spec {
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  background: var(--surface);
  backdrop-filter: blur(10px);
}
.spec__v {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  /* Градиентный текст обрезается по коробке элемента: если слово
     не влезет, «лишние» буквы станут прозрачными. Разрешаем перенос. */
  overflow-wrap: break-word;
}
.spec__l { margin-top: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* Куб на подстраницах */
.cube-wrap {
  display: grid;
  place-items: center;
  perspective: 1000px;
  aspect-ratio: 1;
  max-width: 420px;
  margin-inline: auto;
}
.cube {
  position: relative;
  width: 190px; height: 190px;
  transform-style: preserve-3d;
  animation: cubeSpin 22s linear infinite;
}
.cube__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,229,255,.45);
  background: rgba(0, 229, 255, .06);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 40px rgba(0,229,255,.18);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: rgba(234, 240, 255, .85);
  text-shadow: 0 0 20px rgba(0,229,255,.8);
}
.cube__face--f { transform: translateZ(95px); }
.cube__face--b { transform: rotateY(180deg) translateZ(95px); }
.cube__face--r { transform: rotateY(90deg) translateZ(95px); border-color: rgba(168,85,247,.5); background: rgba(168,85,247,.06); }
.cube__face--l { transform: rotateY(-90deg) translateZ(95px); border-color: rgba(168,85,247,.5); background: rgba(168,85,247,.06); }
.cube__face--t { transform: rotateX(90deg) translateZ(95px); border-color: rgba(198,255,61,.5); background: rgba(198,255,61,.05); }
.cube__face--d { transform: rotateX(-90deg) translateZ(95px); border-color: rgba(198,255,61,.5); background: rgba(198,255,61,.05); }
@keyframes cubeSpin {
  from { transform: rotateX(-20deg) rotateY(0); }
  to   { transform: rotateX(-20deg) rotateY(360deg); }
}

/* Орбиты вокруг куба */
.orbit {
  position: absolute;
  border: 1px dashed rgba(255,255,255,.13);
  border-radius: 50%;
  pointer-events: none;
}
.orbit--1 { width: 300px; height: 300px; animation: cubeSpin 30s linear infinite reverse; }
.orbit--2 { width: 390px; height: 390px; animation: cubeSpin 44s linear infinite; }

/* ---------- 22. Автор курса ---------- */
.author {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 4vw, 50px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke);
  background: linear-gradient(150deg, rgba(0,229,255,.08), rgba(168,85,247,.06));
}
.author__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--stroke-2);
  aspect-ratio: 1;
  background: linear-gradient(150deg, #14205A, #0A0F2E);
}
.author__photo img { width: 100%; height: 100%; object-fit: cover; }
.author__facts { display: grid; gap: 12px; margin-top: 20px; }
.author__facts li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.author__facts svg { flex: none; color: var(--cyan); margin-top: 3px; }

/* ---------- 23. Сравнительный блок «до/после» ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.compare__col {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
}
.compare__col--old { background: rgba(255,255,255,.02); }
.compare__col--new {
  background: linear-gradient(160deg, rgba(0,229,255,.10), rgba(168,85,247,.07));
  border-color: rgba(0,229,255,.32);
  box-shadow: 0 0 60px -30px rgba(0,229,255,.9);
}
.compare h4 { margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.compare ul { display: grid; gap: 12px; }
.compare li { display: flex; gap: 11px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.compare li::before { content: "—"; color: var(--muted); flex: none; }
.compare__col--new li::before {
  content: "";
  width: 18px; height: 18px;
  margin-top: 3px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6FF3D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---------- 24. Адаптив ---------- */
@media (max-width: 1080px) {
  .hero__grid,
  .platform,
  .page-hero__grid,
  .cta-block__grid,
  .faq-grid,
  .author { grid-template-columns: minmax(0, 1fr); }

  .hero { min-height: auto; padding-block: 120px 60px; }
  .hero__scene { max-width: 460px; margin-inline: auto; width: 100%; }
  .scroll-hint { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:not(:last-child)::after { display: none; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author__photo { max-width: 320px; }
  .platform__mock { order: -1; }
}

/* Пять пунктов меню плюс кнопка не помещаются на узких ноутбуках:
   сначала поджимаем пункты, а ниже 1000px переходим на меню-«бургер». */
@media (max-width: 1180px) {
  .nav { gap: 2px; }
  .nav__link { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 1000px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
}

@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track-card { min-height: 340px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4,
  .steps, .compare { grid-template-columns: minmax(0, 1fr); }

  /* На телефоне длинные надписи не влезают в строку и распирают
     страницу вбок. Разрешаем перенос и ужимаем поля. */
  .btn { white-space: normal; text-align: center; }
  .btn--lg { padding: 17px 26px; font-size: 16px; }
  .btn-row { width: 100%; }
  .btn-row .btn { width: 100%; }

  /* Плитки характеристик оставляем по две в ряд — они короткие */
  .spec { padding: 14px 12px; }
  .spec__v { font-size: 17px; }
  .spec__l { font-size: 12px; margin-top: 5px; }
  .hero__points { gap: 10px; margin-top: 32px; padding-top: 22px; }
  .acc__content { padding-left: 22px; }
  .acc__head { padding: 16px 18px; gap: 12px; }
  .float-card { font-size: 12px; padding: 9px 13px; }
  .float-card--1 { left: -2%; }
  .float-card--2 { right: -2%; }
  .btn { padding: 15px 24px; }
  .cube-wrap { max-width: 300px; margin-top: 26px; }
  .cube { width: 140px; height: 140px; }
  .cube__face { font-size: 32px; }
  .cube__face--f { transform: translateZ(70px); }
  .cube__face--b { transform: rotateY(180deg) translateZ(70px); }
  .cube__face--r { transform: rotateY(90deg) translateZ(70px); }
  .cube__face--l { transform: rotateY(-90deg) translateZ(70px); }
  .cube__face--t { transform: rotateX(90deg) translateZ(70px); }
  .cube__face--d { transform: rotateX(-90deg) translateZ(70px); }
  .orbit--1 { width: 220px; height: 220px; }
  .orbit--2 { width: 285px; height: 285px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .slider__dots { display: none; }
}

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

/* ---------- 26. Правовые страницы ---------- */
.legal {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.legal h2 {
  margin: 44px 0 14px;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink);
}
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: 14px; }
.legal ul {
  margin: 0 0 18px;
  display: grid;
  gap: 9px;
}
.legal li {
  position: relative;
  padding-left: 20px;
}
.legal li::before {
  content: "";
  position: absolute;
  left: 2px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal__updated {
  margin-bottom: 34px;
  font-size: 14px;
  color: var(--muted);
}
/* Места, которые обязательно заменить своими реквизитами */
.fill {
  padding: 1px 7px;
  border: 1px dashed var(--pink);
  border-radius: 6px;
  background: rgba(255, 77, 157, .12);
  color: #FFC2DC;
  font-weight: 700;
  white-space: nowrap;
}
