/* ══════════════════════════════════════════════════════════════
   InterPrep Academy — лендинг по образцу sui.io
   Мягкие скругления (--r-*), пунктирные разделители, красный акцент
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Красный — из логотипа InterPrep (кармин, а не оранжево-красный) */
  --red:       #C4101F;
  --red-deep:  #7A0A12;
  --maroon:       #0F0506;
  --black:      #050505;
  --ink:        #0A0A0A;
  --card:       #101114;
  --line-dark:  #2A2C31;
  --white:      #FFFFFF;
  --gray-bg:    #F4F4F4;
  --line-light: #C4C8CE;
  --text:       #0B0C0E;
  --text-sec:   #55585E;
  --text-dark-sec: #9AA0A8;

  /* Пара шрифтов (см. fonts.css): Unbounded - крупные заголовки,
     Manrope - весь остальной текст, включая мелкий */
  --f-display: 'Unbounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-sans:    'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-small:   'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Радиусы: мелкие элементы / панели / карточки */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --pad: clamp(16px, 1.6vw, 24px);
  --banner-h: 0px;
  --nav-h: 72px;
}

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

*, *::before, *::after { box-sizing: border-box; }

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

/* Lenis (плавный скролл, как у sui.io): пока он активен, нативный
   smooth-scroll выключается — иначе они борются друг с другом */
html.lenis, html.lenis body { height: auto; }
/* С Lenis нативный smooth выключаем: ScrollTrigger при пересчёте мгновенно
   прыгает наверх, чтобы замерить позиции, а smooth превращал прыжок
   в анимацию — все триггеры съезжали на величину прокрутки, и анимации
   (карточки секций и др.) срабатывали раньше, чем до них доходили */
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
mark { background: none; color: inherit; }

::selection { background: rgba(196, 16, 31, .30); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* hidden должен побеждать display:flex/grid у блоков (форма, успех) */
[hidden] { display: none !important; }

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
}

section[id] { scroll-margin-top: calc(var(--banner-h) + var(--nav-h) + 8px); }

/* Маленький синий квадрат-буллит */
.sq {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 3px;
  flex-shrink: 0;
}

/* Мини-чип с моноширинным текстом */
.chip {
  display: inline-block;
  padding: 4px 10px;
  background: #E9E9E9;
  border-radius: 6px;
  font-family: var(--f-small);
  font-size: .8rem;
  color: var(--text);
}


/* Синий квадрат со стрелкой (ссылки-действия) */
.arrow-sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--red);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: background-color .25s cubic-bezier(.645, .045, .355, 1);
}

.arrow-sq svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s cubic-bezier(.645, .045, .355, 1);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s cubic-bezier(.645, .045, .355, 1),
              color .2s cubic-bezier(.645, .045, .355, 1),
              filter .2s cubic-bezier(.645, .045, .355, 1);
}

.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { filter: brightness(1.12); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #23252A; }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #E8ECF2; }

.btn--lg { padding: 17px 30px; border-radius: 10px; font-size: 1.02rem; }

/* ── Баннер ───────────────────────────────────────────────────── */

.banner {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 44px;
  background: var(--red);
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner:hover { filter: brightness(1.08); }

/* ── Навигация ────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--ink);
}

.nav__inner {
  height: 100%;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav__logo-mark {
  width: auto;
  height: 36px;
}

/* «Prep» — красным, как в логотипе */
.nav__logo b, .footer__logo b { font-weight: inherit; color: #E0303F; }

.nav__links {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  font-size: .95rem;
  color: #fff;
}

.nav__links a { opacity: .85; transition: opacity .2s ease; }
.nav__links a:hover { opacity: 1; }

.nav__actions { display: flex; align-items: center; gap: 18px; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.nav__burger span {
  display: block;
  height: 2px;
  background: #fff;
  transition: transform .3s ease;
}

.nav__burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--ink);
  display: flex;
  justify-content: center;
  text-align: center;
  /* На низком экране (телефон в альбомной ориентации) пункты меню не
     помещаются. Без прокрутки кнопка «Узнать свой балл» уезжала за край
     и нажать её было нельзя. Отступ сверху - под баннер и шапку.
     Центрируем через margin:auto у вложенного nav, а не align-items:
     при переполнении align-items:center срезает верх без возможности
     докрутить. */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--banner-h) + var(--nav-h) + 16px) var(--pad) 32px;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  margin: auto;
}

/* совсем низкий экран - поджимаем, чтобы влезло без прокрутки */
@media (max-height: 560px) {
  .mobile-menu nav { gap: 14px; }
  .mobile-menu a:not(.btn) { font-size: 1.2rem; }
}

.mobile-menu a:not(.btn) {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--banner-h) + var(--nav-h) + 40px) var(--pad) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Матовый hero: фото заранее размыто и приглушено (assets/img/hero.jpg
     готовится из оригинала с blur), сверху — плотная полупрозрачная
     заливка тёмно-красным без блеска (normal, не multiply), к низу
     переходит в белый, чтобы сшиться со следующей секцией. */
  background:
    linear-gradient(180deg,
      rgba(22, 8, 10, .78) 0%,
      rgba(58, 14, 20, .60) 30%,
      rgba(96, 20, 28, .50) 52%,
      rgba(128, 32, 40, .46) 66%,
      rgba(214, 150, 156, .58) 80%,
      rgba(246, 236, 237, .90) 91%,
      var(--white) 100%),
    url('../img/hero.jpg') center right / cover no-repeat #3A0E14;
}

.hero__space { flex: 1 1 0; }

/* Заголовок в три строки капсом, всё по центру. Средняя строка
   (печатаемое слово) стоит ровно по центру экрана: заголовок выведен из
   потока, его верх — на середине hero минус половина строки. Верхняя и
   нижняя строки висят над и под ней (absolute) и в центровке не
   участвуют — пока слово печатается, ничего не прыгает. */
.hero__title {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: 50%;
  margin-top: -.5em;
  color: #fff;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero__word { display: block; white-space: nowrap; will-change: filter, opacity; }

/* Постоянные строки — другой шрифт и масштаб: Manrope, небольшой кегль,
   широкая разрядка. Печатаемое слово — крупный жирный Unbounded.
   Контраст стилей держит слово главным. */
.hero__title .hero__lead,
.hero__title .hero__tail {
  position: absolute;
  left: 0;
  right: 0;
  font-family: var(--f-sans);
  font-size: clamp(1.05rem, 1.9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .88);
}
.hero__title .hero__lead { bottom: 100%; margin-bottom: clamp(18px, 2.6vw, 36px); }
.hero__title .hero__tail { top: 100%; margin-top: clamp(18px, 2.6vw, 36px); }

.hero__title .hero__typed { font-weight: 800; letter-spacing: -0.02em; }

/* Акцент на «IELTS» в верхней строке: белая плашка с красным жирным
   текстом — выделяется и на тёмном, и на светлом участке фото */
.hero__accent {
  display: inline-block;
  padding: .16em .5em .12em;
  margin-right: .2em;
  background: #fff;
  color: var(--red);
  border-radius: 8px;
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: .04em;
}

.hero__caret {
  display: inline-block;
  width: .09em;
  height: .78em;
  margin-left: .06em;
  background: #fff;
  border-radius: .03em;
  vertical-align: baseline;
  animation: caret-blink 1s steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

.hero__bottom {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  padding-bottom: clamp(48px, 8vh, 96px);
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__cta .btn { border: 0; }


/* Полоска фактов под кнопками — вместо «социального доказательства»,
   которого у новой школы пока нет */
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero__proof li {
  padding: 8px 14px;
  border: 1px solid rgba(11, 12, 14, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  font-family: var(--f-small);
  font-size: .8rem;
  color: var(--text);
  white-space: nowrap;
}

.hero__proof li b { font-weight: 600; }

/* Вторая кнопка стоит на почти белом низу градиента — без обводки
   она сливается с фоном */
.hero__cta .btn--white { border: 1px solid var(--line-light); }

/* ── Компании (marquee) ───────────────────────────────────────── */

.companies {
  background: var(--white);
  padding: clamp(64px, 9vw, 130px) 0 clamp(56px, 7vw, 100px);
  text-align: center;
}

.companies__label {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

/* Отступы — margin на элементах, а не flex-gap: при дублировании ряда
   translateX(-50%) попадает ровно на границу копии. С gap цикл
   «прыгал» на полширины отступа при каждом повторе. */
.marquee__row {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee__row { animation-play-state: paused; }

.marquee__item {
  display: inline-flex;
  align-items: center;
  margin: 0 clamp(28px, 4vw, 60px);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #9AA0A8;
  white-space: nowrap;
  transition: color .3s cubic-bezier(.645, .045, .355, 1);
}

.marquee__item:hover { color: var(--text); }

/* Логотип показывается только если файл реально загрузился (класс
   has-logo ставит onload у картинки). Нет файла - остаётся название
   текстом, пустых мест и «битых картинок» в ряду не бывает. */
.marquee__item img {
  display: none;
  width: auto;
  height: clamp(34px, 3.6vw, 52px);
  object-fit: contain;
  /* приглушаем до серого, как и текстовые названия */
  filter: grayscale(1);
  opacity: .5;
  transition: filter .3s cubic-bezier(.645, .045, .355, 1),
              opacity .3s cubic-bezier(.645, .045, .355, 1);
}

.marquee__item.has-logo img { display: block; }
.marquee__item.has-logo .marquee__name { display: none; }
.marquee__item:hover img { filter: none; opacity: 1; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Манифест ─────────────────────────────────────────────────── */

.manifesto {
  background: var(--white);
  padding: clamp(72px, 10vw, 150px) 0;
}

.manifesto .chip { margin-bottom: 28px; }

.manifesto__text {
  font-size: clamp(1.75rem, 4.5vw, 4rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.manifesto__text mark {
  position: relative;
  display: inline-block;
  color: inherit;
  padding: 0 .14em;
  border-radius: .14em;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size .8s cubic-bezier(.65, 0, .35, 1),
              color .3s ease .3s;
}

.manifesto__text mark.is-on { background-size: 100% 100%; color: #fff; }

.manifesto__text mark .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: .82em;
  height: .82em;
  background: var(--red);
  border-radius: .18em;
  vertical-align: -0.08em;
  margin-left: .18em;
}

.manifesto__text mark .ico svg {
  width: 62%;
  height: 62%;
  stroke: #fff;
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Курсы: чёрная секция с осью ──────────────────────────────── */

.stack {
  background: var(--black);
  color: #fff;
  padding: clamp(72px, 10vw, 150px) 0 clamp(88px, 11vw, 170px);
}

.stack__title {
  text-align: center;
  font-size: clamp(2.2rem, 6.4vw, 5.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.stack__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #E6E8EC;
}

.stack__wrap { position: relative; margin-top: clamp(48px, 7vw, 96px); }

.stack__spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  border-left: 1px dotted #4A4D53;
}

.stack__marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.stack__list {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 88px);
}

.stack-card {
  /* каждая карточка задаёт свой акцентный цвет и более заметные
     фон/границы, чем у остального чёрного полотна */
  --accent: var(--red);
  --line-dark: #3A3F47;
  width: min(560px, calc(50% - 40px));
  background: #15171D;
  border: 1px solid #3A3F47;
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* Все карточки секций — в фирменном красном (--accent = --red выше) */

.stack-card:nth-child(odd) { align-self: flex-start; }
.stack-card:nth-child(even) { align-self: flex-end; }

.stack-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--f-small);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stack-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--accent, #4A4D53);
  border-radius: var(--r-sm);
}

.stack-card__tag { color: #C9CDD3; }

/* Карточка целиком «откидывается» в 3D (JS): вращение вокруг верхней
   кромки, layout не меняется. Без JS всё видно сразу. */
.stack-card { backface-visibility: hidden; will-change: transform, opacity; }

.stack-card__art {
  height: clamp(190px, 22vw, 260px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}

.stack-card__art svg { width: 100%; height: 100%; }

.iso path {
  stroke: #4C515B;
  fill: none;
  stroke-width: 1;
  stroke-dasharray: 1;
}

.iso-low path {
  stroke: #3D424B;
  fill: none;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.iso-nodes circle {
  fill: #15171D;
  stroke: var(--accent, var(--red));
  stroke-width: 1.6;
  animation: node-pulse 3.2s ease-in-out infinite;
}

.iso-nodes circle:nth-of-type(2) { animation-delay: .5s; }
.iso-nodes circle:nth-of-type(3) { animation-delay: 1s; }
.iso-nodes circle:nth-of-type(4) { animation-delay: 1.5s; }
.iso-nodes circle:nth-of-type(5) { animation-delay: 2s; }

@keyframes node-pulse {
  0%, 100% { stroke-opacity: 1; }
  50% { stroke-opacity: .35; }
}

.iso-nodes .lnk {
  stroke: var(--accent, var(--red));
  stroke-width: 1.3;
  fill: none;
  opacity: .85;
}

.stack-card__body { padding: 24px 20px 8px; }

.stack-card__body h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.stack-card__body > p { margin-top: 10px; color: var(--text-dark-sec); }

.stack-card__points { margin-top: 22px; }

.stack-card__points li {
  position: relative;
  padding: 10px 0 10px 34px;
  font-size: .98rem;
}

.stack-card__points li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-left: 1.6px solid var(--accent, var(--red));
  border-bottom: 1.6px solid var(--accent, var(--red));
}

.stack-card__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 20px;
  border-top: 1px dotted #4A4D53;
  font-size: .95rem;
  font-weight: 500;
}

.stack-card .arrow-sq { background: var(--accent, var(--red)); }
.stack-card__cta:hover .arrow-sq { filter: brightness(1.15); }
.stack-card__cta:hover .arrow-sq svg { transform: translateX(2px); }

/* ── Две колонки ──────────────────────────────────────────────── */

.twocol { background: var(--white); padding: clamp(64px, 9vw, 130px) 0; }

.twocol__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
}

.twocol .chip { margin-bottom: 24px; }

.twocol__title {
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.twocol__grid { grid-template-columns: minmax(0, 640px); align-items: start; }

.twocol__rows { display: flex; flex-direction: column; gap: 10px; }

/* Строка гарантии: жирный тезис + пояснение, буллит по верхней строке */
/* .lrow объявлен ниже по файлу — без двойного класса он перебивал бы
   align-items */
.lrow.lrow--g { align-items: flex-start; font-weight: 400; font-size: 1.02rem; line-height: 1.45; }
.lrow--g .sq { margin-top: .45em; }
.lrow--g strong { font-weight: 600; }


/* ── Преподаватель ─────────────────────────────────────────────── */

.teacher { background: var(--white); padding: clamp(64px, 9vw, 130px) 0; }

.teacher__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.4vw, 44px);
  padding: clamp(24px, 4vw, 56px);
  background: var(--gray-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  overflow: hidden;
}
/* красная полоса сверху карточки */
.teacher__card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--red);
}

.teacher__head { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }

/* Фото — небольшой круг с красным кольцом; пока файла нет — силуэт */
.teacher__photo {
  position: relative;
  flex-shrink: 0;
  width: clamp(96px, 10vw, 140px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px var(--gray-bg), 0 0 0 6px var(--red);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.teacher__ph { width: 52%; fill: none; stroke: var(--line-light); stroke-width: 2.6; stroke-linecap: round; }
.teacher__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.teacher__who { display: flex; flex-direction: column; gap: 6px; }
.teacher__role { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--red); font-weight: 600; }
.teacher__name { font-size: clamp(1.9rem, 3.6vw, 3.2rem); line-height: 1.04; }

.teacher__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: stretch;
}

.teacher__scores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.teacher__score {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
}
/* красный уголок-квадрат, как буллиты по всему сайту */
.teacher__score::after {
  content: '';
  position: absolute;
  top: 22px;
  right: 22px;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 3px;
}
.teacher__score span { font-size: clamp(1rem, 1.3vw, 1.15rem); font-weight: 600; color: var(--text-dark-sec); }
.teacher__score strong { font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1; }

.teacher__facts { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.teacher__facts li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--r-md);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.3;
}

.teacher__ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: 10px;
}
.teacher__ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.teacher__cta { align-self: flex-start; }

@media (max-width: 860px) {
  .teacher__grid { grid-template-columns: 1fr; }
  .teacher__cta { align-self: stretch; justify-content: center; text-align: center; }
  .teacher__score { padding: 18px; }
  .teacher__score::after { top: 18px; right: 18px; }
  .teacher__score strong { font-size: clamp(2rem, 10vw, 2.6rem); }
}

.lrow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 22px;
  background: var(--gray-bg);
  border-radius: var(--r-md);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
}

.twocol__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
}

/* ── Шаги ─────────────────────────────────────────────────────── */

.steps { background: var(--black); color: #fff; padding: clamp(64px, 9vw, 130px) 0; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
  /* выносим панель ровно на ширину отступа контейнера — не шире,
     иначе строка вылезает за экран и на телефоне появляется сдвиг вбок */
  padding: clamp(28px, 4vw, 44px) var(--pad);
  margin-inline: calc(-1 * var(--pad));
  border-radius: var(--r-md);
  transition: background-color .4s ease;
}

/* Пунктирные разделители — псевдоэлементами, а не border: у скруглённой
   панели border-top загибался бы на углах */
.step::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-top: 1px dotted #4A4D53;
}

/* Активная строка — как у образца: тёмная панель, большая синяя
   плитка с иконкой и синяя полоса-действие */
.step.is-active { background: #16171B; }

.steps .container > .step:last-of-type::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px dotted #4A4D53;
}

.step__marker {
  position: absolute;
  left: var(--pad);
  top: -6px;
  width: 11px;
  height: 11px;
  background: var(--red);
  border-radius: 3px;
  transition: opacity .3s ease;
}

.step.is-active .step__marker { opacity: 0; }

.step__lead {
  display: flex;
  align-items: center;
  gap: 0;
}

.step__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0;
  height: clamp(52px, 5vw, 72px);
  margin-right: 0;
  background: var(--red);
  border-radius: 10px;
  opacity: 0;
  overflow: hidden;
  flex-shrink: 0;
  transition: width .45s cubic-bezier(.65, 0, .35, 1),
              margin-right .45s cubic-bezier(.65, 0, .35, 1),
              opacity .3s ease;
}

.step.is-active .step__tile {
  width: clamp(52px, 5vw, 72px);
  margin-right: clamp(20px, 2.5vw, 36px);
  opacity: 1;
}

.step__tile svg {
  width: 44%;
  height: 44%;
  stroke: #fff;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step__title {
  font-size: clamp(2.1rem, 5.4vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.step__text {
  color: var(--text-dark-sec);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  max-width: 44ch;
}

.step__action {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 20px;
  padding: 15px 18px;
  background: var(--red);
  border-radius: var(--r-sm);
  color: #fff;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .35s ease .1s, transform .35s ease .1s, filter .2s ease;
}

.step.is-active .step__action {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.step__action:hover { filter: brightness(1.12); }

.step__arrow { font-family: var(--f-small); }

/* Компаниям */
.corp {
  margin-top: clamp(56px, 8vw, 100px);
  background: var(--card);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
}

.corp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px dotted #4A4D53;
}

.corp__head h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}


.corp__points { padding: 18px 24px; }

.corp__points li {
  position: relative;
  padding: 12px 0 12px 34px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.corp__points li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-left: 1.6px solid var(--red);
  border-bottom: 1.6px solid var(--red);
}

.corp__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-top: 1px dotted #4A4D53;
  font-weight: 500;
}

.corp__cta:hover .arrow-sq { background: #C2331F; }

/* ── Отзывы ───────────────────────────────────────────────────── */

.reviews {
  background: var(--black);
  color: #fff;
  padding: clamp(72px, 10vw, 140px) 0;
  border-top: 1px dotted #4A4D53;
}


.reviews__title {
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.reviews__track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reviews__track::-webkit-scrollbar { display: none; }

.reviews__row {
  display: flex;
  gap: 14px;
  padding: 0 var(--pad);
  width: max-content;
}

.review {
  margin: 0;
  width: min(420px, 80vw);
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 26px;
  padding: 28px 24px;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* Слот под фото/скан: положите файл по пути из data-file (см. HTML) —
   картинка появится сама; пока файла нет, показывается заглушка */
.review__photo {
  position: relative;
  margin: -28px -24px 0;
  aspect-ratio: 4 / 3;
  background: var(--gray-bg);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
  display: grid;
  place-items: center;
}
/* заглушка: пунктирная рамка + иконка сертификата с красной печатью */
.review__photo::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1.5px dashed var(--line-light);
  border-radius: var(--r-md);
}
.review__ph { width: 22%; fill: none; stroke: #9AA0A8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.review__ph .seal { fill: var(--red); stroke: var(--red); }

/* скан сертификата — целиком, без обрезки */
.review__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--gray-bg);
}

.review blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
}

.review figcaption { margin-top: auto; border-top: 1px dotted var(--line-light); padding-top: 16px; }

.review figcaption strong { display: block; font-weight: 500; }

.review figcaption strong { font-size: 1.15rem; }

.review__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }

/* Результат «было → стало» — главный аргумент карточки */
.review__score {
  padding: 8px 14px;
  background: var(--red);
  border-radius: 8px;
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}

.review__tag {
  padding: 8px 12px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text);
}

/* Скан открывается по клику (лайтбокс в main.js) */
.review__photo img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 5, .88);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: calc(100vw - 48px);
  max-height: calc(100svh - 48px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

/* ── FAQ ──────────────────────────────────────────────────────── */

.faq-section {
  background: var(--white);
  padding: clamp(64px, 9vw, 130px) 0;
}

.faq-section__title {
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.faq__item { border-top: 1px dotted var(--line-light); }
.faq__item:last-child { border-bottom: 1px dotted var(--line-light); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 3vw, 30px) 0;
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--red);
  border-radius: var(--r-sm);
}

.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: #fff;
  translate: -50% -50%;
  transition: rotate .3s ease;
}

.faq__icon::after { rotate: 90deg; }
.faq__item[open] .faq__icon::after { rotate: 0deg; }

.faq__answer { overflow: hidden; }

.faq__answer p {
  padding: 0 0 26px;
  color: var(--text-sec);
  font-size: 1.02rem;
  max-width: 70ch;
}

/* ── Форма ────────────────────────────────────────────────────── */

.lead { background: var(--black); color: #fff; padding: clamp(72px, 10vw, 150px) 0; }

.lead__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.lead__intro h2 {
  font-size: clamp(2.6rem, 6.5vw, 5.6rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -0.03em;
}

.lead__intro > p {
  margin-top: 26px;
  color: var(--text-dark-sec);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 40ch;
}


/* Что будет после заявки — снимает страх «сейчас начнут названивать» */
.lead__steps { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; }

.lead__steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .98rem;
  color: #E6E8EC;
}

.lead__steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--red);
  border-radius: var(--r-sm);
  font-family: var(--f-small);
  font-weight: 500;
  font-size: .8rem;
}

.field__opt { text-transform: none; letter-spacing: 0; opacity: .7; }


.lead__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--card);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
}

.field > label, .field legend {
  display: block;
  margin-bottom: 9px;
  font-family: var(--f-small);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dark-sec);
}

.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line-dark);
  background: #0A0B0D;
  color: #fff;
  font: inherit;
  border-radius: var(--r-sm);
  transition: border-color .2s ease;
}

.field input::placeholder { color: #55585E; }

.field input:focus { outline: none; border-color: var(--red); }

.radio-sq { display: inline-block; margin: 0 8px 8px 0; }

.radio-sq input { position: absolute; opacity: 0; pointer-events: none; }

.radio-sq span {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  font-size: .92rem;
  color: #C9CDD3;
  cursor: pointer;
  transition: all .2s ease;
}

.radio-sq input:checked + span {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.radio-sq input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--text-dark-sec);
  cursor: pointer;
}

.consent input {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  accent-color: var(--red);
}

.lead__submit { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }

/* колонки формы могут сжиматься уже своего содержимого — иначе на
   узких телефонах (320px) форма распирала страницу вбок */
.lead__grid > * { min-width: 0; }

.lead__error { font-size: .88rem; color: #FF8E8E; }

.lead__success {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 64px 30px;
  background: var(--card);
  border: 1px solid var(--red);
  border-radius: var(--r-lg);
}

.lead__success svg {
  width: 58px;
  height: 58px;
  stroke: var(--red);
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 10px;
}

.lead__success svg rect { stroke: var(--line-dark); }

.lead__success h3 { font-size: 1.5rem; font-weight: 500; }
.lead__success p { color: var(--text-dark-sec); }
.lead__success .btn { margin-top: 18px; }

/* ── Цены (секция лендинга) ───────────────────────────────────── */

.prices {
  background: var(--white);
  padding: clamp(64px, 9vw, 130px) 0;
  border-top: 1px dotted var(--line-light);
}

.prices .chip { margin-bottom: 24px; }

.prices__title {
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.prices__grid {
  display: grid;
  /* два тарифа: держим их одинаковой ширины и не даём растянуться
     на весь экран на больших мониторах */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 900px;
  margin-inline: auto;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--gray-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
}

.price-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--f-small);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.price-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--red);
  border-radius: var(--r-sm);
}

/* Выделенный тариф — как «Most popular» у E2Language: якорь выбора */
.price-card--featured { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }

.price-card__badge {
  margin-left: auto;
  padding: 4px 10px;
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  font-size: .72rem;
  letter-spacing: .06em;
}

.price-card__body { flex: 1; padding: 24px 20px; }



.price-card__amount {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.price-card__amount span {
  font-size: .55em;
  color: var(--text-sec);
}

.price-card__points { margin-top: 20px; }

.price-card__points li {
  position: relative;
  padding: 9px 0 9px 32px;
  font-size: .96rem;
}

.price-card__points li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-left: 1.6px solid var(--red);
  border-bottom: 1.6px solid var(--red);
}

/* Подцена: одна секция IELTS — белая плашка между списком и кнопкой */
.price-card__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin: 0 20px 20px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
}
.price-card__sub-label { font-size: 1.02rem; font-weight: 500; }
.price-card__sub-price {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.price-card__sub-price span { font-family: var(--f-sans); font-size: .7em; color: var(--text-sec); letter-spacing: 0; }
.price-card__sub-price b { font-weight: 800; color: var(--text); }

.price-card__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-top: 1px dotted var(--line-light);
  font-size: .95rem;
  font-weight: 500;
}

.price-card__cta:hover .arrow-sq { filter: brightness(1.15); }
.price-card__cta:hover .arrow-sq svg { transform: translateX(2px); }


.prices__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 64px);
}

/* ── Плавающая кнопка WhatsApp ────────────────────────────────── */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px 0 14px;
  background: #25D366;
  color: #062B14;
  border-radius: 26px;
  font-size: .95rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .25s cubic-bezier(.645, .045, .355, 1), filter .2s ease;
}

.wa-float:hover { transform: translateY(-2px); filter: brightness(1.05); }

.wa-float svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 560px) {
  .wa-float { padding: 0; width: 52px; justify-content: center; right: 14px; bottom: 14px; }
  .wa-float span { display: none; }
}

body.menu-open .wa-float { display: none; }

/* ── Footer ───────────────────────────────────────────────────── */

.footer {
  background: var(--black);
  color: #fff;
  padding: clamp(40px, 6vw, 72px) 0 28px;
  border-top: 1px dotted #4A4D53;
}

.footer__giant {
  font-size: clamp(3rem, 11vw, 10.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: .9;
  color: #FFFFFF;
  user-select: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-top: clamp(32px, 5vw, 56px);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.footer__logo img { width: auto; height: 36px; }

.footer__brand p { color: var(--text-dark-sec); font-size: .95rem; }

.footer__col { display: flex; flex-direction: column; gap: 12px; }

.footer__col h4 {
  margin-bottom: 6px;
  font-family: var(--f-small);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #55585E;
}

.footer__col a {
  font-size: .95rem;
  color: #C9CDD3;
  transition: color .2s ease;
}

.footer__col a:hover { color: #fff; }

.footer__muted { font-size: .85rem; color: #55585E; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px dotted #4A4D53;
  font-family: var(--f-small);
  font-size: .76rem;
  color: #55585E;
}

/* ── Путь студента: горизонтальный таймлайн + созвездия ──────────
   Пилюли с длительностью сверху, узлы на линии, названия этапов
   снизу; ветка «ВУЗы» — пунктирный отвод. Канвас-фон рисует JS. */

.roadmap {
  position: relative;
  background: var(--black);
  color: #fff;
  padding: clamp(72px, 10vw, 150px) 0;
  overflow: hidden;
  border-top: 1px dotted #4A4D53;
}

.roadmap__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.roadmap .container { position: relative; z-index: 1; }

.roadmap__title {
  text-align: center;
  font-size: clamp(2.2rem, 6.4vw, 5.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}


.roadmap__viz { margin-top: clamp(56px, 8vw, 110px); }

.rm-track { position: relative; display: flex; padding-bottom: 150px; }

.rm-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.rm-pill {
  display: inline-block;
  height: 36px;
  line-height: 36px;
  padding: 0 16px;
  background: var(--red);
  color: #fff;
  border-radius: var(--r-sm);
  font-family: var(--f-small);
  font-size: .82rem;
  letter-spacing: .04em;
  white-space: nowrap;
}

.rm-v { width: 1px; height: 22px; background: #3A3F47; }

.rm-node {
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 4px;
  outline: 3px solid var(--black);
  animation: rm-node-pulse 3.2s ease-in-out infinite;
}

/* узлы пульсируют по очереди — волна слева направо */
.rm-item:nth-child(2) .rm-node { animation-delay: .45s; }
.rm-item:nth-child(3) .rm-node { animation-delay: .9s; }
.rm-item:nth-child(4) .rm-node { animation-delay: 1.35s; }
.rm-item:nth-child(5) .rm-node { animation-delay: 1.8s; }

@keyframes rm-node-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 16, 31, .55); }
  50%      { box-shadow: 0 0 0 9px rgba(196, 16, 31, 0); }
}

.rm-v--b { height: 26px; }

.rm-label {
  padding: 12px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: #101114;
  font-size: clamp(.92rem, 1.2vw, 1.05rem);
  font-weight: 500;
  max-width: 200px;
}

/* горизонтальная линия: от центра первого узла до центра последнего */
.rm-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 63px;
  height: 2px;
  border-radius: 2px;
  background: #2A2C31;
  overflow: hidden;
}

.rm-line-fill {
  position: absolute;
  inset: 0;
  background: var(--red);
  transform-origin: left center;
}

.rm-dot {
  position: absolute;
  left: 10%;
  top: 64px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rm-dot-glow 2s ease-in-out infinite;
}

@keyframes rm-dot-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(196, 16, 31, .75); }
  50%      { box-shadow: 0 0 22px rgba(196, 16, 31, 1); }
}

/* ветка «ВУЗы»: пунктирный отвод вниз между 4-м и 5-м узлами */
.rm-branch {
  position: absolute;
  left: 80%;
  top: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rm-branch__stem {
  width: 1px;
  height: 120px; /* ниже ряда названий, чтобы не пересекаться с «Сдача IELTS» */
  background: repeating-linear-gradient(180deg,
    #4A4D53 0 4px, transparent 4px 9px);
  background-size: 1px 9px;
  animation: rm-stem-flow 1.1s linear infinite;
}

@keyframes rm-stem-flow {
  to { background-position-y: 9px; }
}

.rm-branch__box {
  padding: 12px 18px;
  border: 1px dashed var(--red);
  border-radius: 10px;
  background: #0A0B0D;
  max-width: 240px;
  transform: translateX(-50%);
  margin-top: 0;
  text-align: center;
}

.rm-branch__box strong { display: block; font-weight: 500; font-size: .95rem; }

.rm-branch__box em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-family: var(--f-small);
  font-size: .72rem;
  color: var(--text-dark-sec);
}

@media (max-width: 860px) {
  .rm-track { flex-direction: column; gap: 28px; padding-bottom: 0; }
  .rm-item { flex-direction: row; text-align: left; gap: 14px; align-items: center; }
  .rm-v { display: none; }
  .rm-node { flex-shrink: 0; order: -1; }
  .rm-pill { order: 0; }
  .rm-label { max-width: none; }
  .rm-line { left: 5px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .rm-line-fill { transform-origin: center top; }
  .rm-dot { display: none; }
  .rm-branch { position: static; order: 1; }
  .rm-item:last-of-type { order: 2; } /* ВУЗы — между экзаменами и сдачей */
  .rm-branch__stem { display: none; }
  .rm-branch__box { transform: none; max-width: none; text-align: left; }
}

/* ── Адаптив ──────────────────────────────────────────────────── */

@media (max-width: 1020px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .prices__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .twocol__grid { grid-template-columns: 1fr; gap: 56px; }
  .lead__grid { grid-template-columns: 1fr; }
  .lead__success { grid-column: 1; }
  .stack__spine, .stack__marker { display: none; }
  .stack-card { width: 100%; }
}

@media (max-width: 560px) {
  /* Manrope шире системного шрифта: на телефоне заголовок масштабируем
     от ширины экрана, чтобы «за краткие сроки» не переносилось */
  .hero__title { font-size: 11.2vw; }
  .nav__actions .btn { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-self: stretch; }
  .hero__proof li { font-size: .72rem; padding: 6px 11px; }
  .price-card__badge { margin-left: 0; }
  /* block + line-height вместо flex: у flex-центровки текст обрезается
     с обеих сторон без многоточия */
  .banner { display: block; line-height: var(--banner-h); text-align: center; font-size: .72rem; padding: 0 12px; }
}

/* ── Reduced motion ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__row { animation: none; }
  .manifesto__text mark { transition: none; background-size: 100% 100%; }
  .hero__caret { animation: none; }
  .iso-nodes circle { animation: none; }
  .rm-node, .rm-dot, .rm-branch__stem { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ── Типографика: Unbounded для крупного текста ────────────────────
   Unbounded заметно шире Manrope, под который были размеры: кегли
   уменьшены, отрицательный трекинг ослаблен. Правила стоят в конце
   файла и перебивают размеры выше. */

.hero__title, .stack__title, .roadmap__title, .twocol__title,
.reviews__title, .prices__title, .faq-section__title, .lead__intro h2,
.step__title, .footer__giant, .manifesto__text, .stack-card__body h3,
.teacher__name, .price-card__amount, .teacher__score strong,
.lead__success h3, .corp__head h3 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero__title { font-size: clamp(2.4rem, 7.4vw, 6.8rem); line-height: 1; }
.stack__title, .roadmap__title { font-size: clamp(1.8rem, 4.6vw, 4rem); }
.twocol__title, .reviews__title, .prices__title, .faq-section__title { font-size: clamp(1.6rem, 3.4vw, 2.9rem); line-height: 1.08; }
.lead__intro h2 { font-size: clamp(2rem, 4.6vw, 4rem); }
.step__title { font-size: clamp(1.6rem, 3.8vw, 3.2rem); }
.footer__giant { font-size: clamp(2.4rem, 8.4vw, 7.6rem); letter-spacing: -0.03em; }
.manifesto__text { font-size: clamp(1.3rem, 3vw, 2.6rem); line-height: 1.22; }
.stack-card__body h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.price-card__amount { font-size: clamp(1.4rem, 2.1vw, 1.9rem); }

@media (max-width: 560px) {
  /* «УНИВЕРСИТЕТУ» должно влезать в одну строку; верхняя строка
     переносится на две ровные: «IELTS это первый / шаг к» */
  .hero__title { font-size: 8.4vw; }
  .hero__title .hero__lead { white-space: normal; text-wrap: balance; letter-spacing: .1em; }
}

/* ── Юридическая страница (privacy.html) ──────────────────────── */

.legal {
  background: var(--white);
  padding: calc(var(--nav-h) + 56px) 0 clamp(56px, 8vw, 100px);
}

.legal__inner { max-width: 760px; }

.legal__title {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal__meta {
  margin-top: 14px;
  font-size: .9rem;
  color: var(--text-sec);
}

.legal h2 {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: clamp(32px, 4vw, 48px) 0 12px;
}

.legal p { margin-bottom: 12px; color: var(--text-sec); }

.legal__list { margin: 0 0 12px; color: var(--text-sec); }

.legal__list li {
  position: relative;
  padding: 5px 0 5px 26px;
}

.legal__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 2px;
}

.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.legal__back { margin-top: clamp(40px, 5vw, 64px); }

.consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
