/* ==========================================================================
   Repita School — общие стили /parents и /students
   Дизайн-система: MindMarket (warm storybook on cream paper)
   Спека: DESIGN.md
   ========================================================================== */

/* --- Шрифт -------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Токены ------------------------------------------------------------- */

:root {
  /* Поверхности */
  --c-cream: #f5f1e4;
  --c-white: #ffffff;
  --c-sandstone: #e0dbce;

  /* Текст и линии */
  --c-ink: #2c2e2a;
  /* 5.6:1 на cream, 4.6:1 на sandstone — WCAG AA для мелкого текста.
     Прежний #6e706d давал 4.42 и 3.62 соответственно. */
  --c-gray: #5c5e5b;
  --c-hairline: #d5d5d4;

  /* Акценты */
  --c-green: #8ed462;
  --c-coral: #ff705d;
  --c-blue: #2ba0ff;
  --c-yellow: #f5e211;

  /* Акцент страницы — дефолт. Переопределяется модификатором на body ниже,
     а не инлайн-стилями: main.css грузится последним и перебил бы их. */
  --c-page-accent: var(--c-green);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, sans-serif;

  /* Типографическая шкала */
  --t-display: clamp(36px, 5.5vw, 64px);
  --t-h2: clamp(28px, 4.2vw, 56px);
  --t-h3: clamp(22px, 3.5vw, 53px);
  --t-h4: clamp(19px, 2.5vw, 30px);
  --t-subhead: clamp(17px, 2vw, 20px);
  --t-body: 17px;
  --t-body-lg: 18px;
  --t-small: 15px;

  /* Радиусы — на мобиле мягче, см. медиазапрос ниже */
  --r-full: 32px;
  --r-illus: 32px;
  --r-small: 10px;
  --r-pill: 50px;

  /* Раскладка */
  --page-max: 1200px;
  --gutter: clamp(20px, 5vw, 60px);
  --section-gap: clamp(56px, 7vw, 96px);
  --card-pad: clamp(20px, 4vw, 32px);
}

@media (min-width: 768px) {
  :root {
    --r-full: 50px;
    --r-illus: 64px;
  }
}

/* Акцент по страницам */
.page--parents {
  --c-page-accent: var(--c-blue);
}

.page--students {
  --c-page-accent: var(--c-green);
}

/* --- Сброс -------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
  /* Липкий навбар: 12px отступ + 72px высота = 84px нижняя кромка.
     Плюс воздух, чтобы заголовок секции не прилипал к плашке. */
  scroll-padding-top: 104px;
}

/* Дублируем на самих секциях: scroll-padding-top не покрывает случай,
   когда до якоря доскроллили вручную, а не кликом по ссылке. */
section[id],
div[id] {
  scroll-margin-top: 104px;
}

body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Типографика -------------------------------------------------------- */

.h1,
.h2,
.h3,
.h4 {
  font-weight: 500;
  text-wrap: balance;
}

.h1 {
  font-size: var(--t-display);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

@media (min-width: 768px) {
  .h1 {
    letter-spacing: -0.06em;
  }
}

.h2 {
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

@media (min-width: 768px) {
  .h2 {
    letter-spacing: -0.06em;
  }
}

.h3 {
  font-size: var(--t-h3);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.h4 {
  font-size: var(--t-h4);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.subhead {
  font-size: var(--t-subhead);
  line-height: 1.35;
  text-wrap: pretty;
}

.small {
  font-size: var(--t-small);
}

.muted {
  color: var(--c-gray);
}

/* --- Раскладка ---------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-gap);
}

.section--tight {
  padding-block: calc(var(--section-gap) * 0.55);
}

.stack > * + * {
  margin-top: var(--flow, 20px);
}

.section__head {
  max-width: 900px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section__head .subhead {
  margin-top: 16px;
  color: var(--c-gray);
  max-width: 640px;
}

/* --- Фокус -------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  color: var(--c-ink);
  padding: 12px 20px;
  border-radius: var(--r-small);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* --- Кнопки ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  filter: brightness(0.94);
}

.btn:active {
  transform: scale(0.98);
}

/* Точка-аффорданс */
.btn__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.btn--primary {
  background: var(--c-coral);
  /* Тёмный текст на coral даёт 5.05:1 против 2.72:1 у белого —
     белый на этом фоне не проходит даже для крупного текста. */
  color: var(--c-ink);
  font-size: var(--t-body);
}

.btn--ghost {
  background: var(--c-white);
  color: var(--c-ink);
  border-color: var(--c-ink);
}

.btn--ghost .btn__dot {
  background: var(--c-blue);
  opacity: 1;
}

.btn--block {
  display: flex;
  width: 100%;
}

@media (min-width: 768px) {
  .btn {
    font-size: var(--t-body);
    padding: 15px 28px;
  }
}

/* --- Навбар ------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding-inline: 16px;
  margin-top: 12px;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 10px 10px 10px 16px;
  background: var(--c-white);
  border-radius: var(--r-pill);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  /* 44px — тач-цель, при 36px-марке добираем паддингом */
  min-height: 44px;
  flex: none;
  padding-right: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.nav__mark {
  flex: none;
  width: 40px;
  height: 40px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: var(--r-pill);
  font-size: var(--t-small);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease;
}

.nav__link:hover {
  background: var(--c-cream);
}

.nav__cta {
  display: none;
}

/* Мобильное меню — на <details>, без JS */
.nav__menu {
  position: relative;
  display: block;
  flex: none;
}

/* ========================================================================== 
   Квиз «План подготовки»
   Три точки отсылают к бланку экзамена: это реальная последовательность,
   поэтому прогресс здесь несёт смысл, а не служит декором.
   ========================================================================== */

.quiz-teaser {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: 250px;
  margin-top: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border-radius: var(--r-illus);
  background: var(--c-ink);
  color: var(--c-white);
}

.quiz-teaser::before {
  content: '3';
  position: absolute;
  right: clamp(270px, 27vw, 360px);
  bottom: -58px;
  color: rgba(255, 255, 255, .055);
  font-size: clamp(210px, 24vw, 330px);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.08em;
  pointer-events: none;
}

.quiz-teaser__content,
.quiz-teaser__action {
  position: relative;
  z-index: 1;
}

.quiz-teaser__content {
  max-width: 720px;
}

.quiz-teaser__eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--c-page-accent);
  color: var(--c-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.quiz-teaser .h3 {
  max-width: 22ch;
  color: var(--c-white);
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: .98;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.quiz-teaser__content > p:last-child {
  max-width: 55ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.5;
}

.quiz-teaser__action {
  display: grid;
  justify-items: center;
  width: min(100%, 300px);
}

.quiz-teaser__gift {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin-bottom: -12px;
  margin-right: -210px;
  border: 4px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-page-accent);
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  transform: rotate(7deg);
}

.quiz-teaser__action .btn {
  width: 100%;
  min-height: 58px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .08);
}

.quiz-teaser__action small {
  margin-top: 14px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

@media (max-width: 699px) {
  .quiz-teaser {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 24px;
    padding: 28px 22px 26px;
    border-radius: 30px;
  }

  .quiz-teaser::before {
    right: -12px;
    bottom: -26px;
    font-size: 190px;
  }

  .quiz-teaser .h3 {
    max-width: 14ch;
    font-size: clamp(31px, 9.2vw, 40px);
    line-height: 1.02;
  }

  .quiz-teaser__content > p:last-child {
    margin-top: 14px;
    font-size: 15px;
  }

  .quiz-teaser__action {
    justify-items: stretch;
    width: 100%;
  }

  .quiz-teaser__gift {
    position: absolute;
    right: 4px;
    bottom: 56px;
    width: 68px;
    height: 68px;
    margin: 0;
    border-width: 3px;
    font-size: 13px;
  }

  .quiz-teaser__action .btn {
    width: calc(100% - 30px);
    min-height: 54px;
    padding-inline: 17px 54px;
  }

  .quiz-teaser__action small {
    justify-self: start;
  }
}

.quiz-section {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-top: clamp(24px, 4vw, 48px);
}

.quiz-section__copy {
  max-width: 520px;
}

.quiz-section__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.quiz-section__copy > p:not(.quiz-section__eyebrow) {
  max-width: 48ch;
  margin-top: 18px;
  color: var(--c-gray);
  line-height: 1.55;
}

.quiz-section__note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.quiz-section__note > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--c-ink);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.quiz-section__note p {
  max-width: 36ch;
  color: var(--c-gray);
  font-size: 14px;
  line-height: 1.45;
}

.quiz-section__note b {
  color: var(--c-ink);
  font-weight: 600;
}

@media (min-width: 900px) {
  .quiz-section {
    grid-template-columns: minmax(0, .82fr) minmax(500px, 1.18fr);
  }
}

.quiz-shell {
  position: relative;
  min-width: 0;
  min-height: 352px;
  padding: clamp(20px, 3.5vw, 34px);
  border: 1px solid var(--c-hairline);
  border-radius: clamp(28px, 4vw, 44px);
  background: var(--c-white);
  box-shadow: 8px 8px 0 var(--c-page-accent);
}

.quiz-shell--modal {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.quiz__intro {
  display: grid;
}

.quiz__intro-label {
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: var(--c-page-accent);
  color: var(--c-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.quiz__intro-title {
  max-width: 28ch;
  margin-top: 20px;
  font-size: clamp(30px, 3.4vw, 37px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.quiz__intro-copy {
  max-width: 57ch;
  margin-top: 14px;
  color: var(--c-gray);
  font-size: 15px;
  line-height: 1.5;
}

.quiz__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.quiz__benefits li {
  position: relative;
  min-height: 64px;
  padding: 13px 12px 12px 34px;
  border: 1px solid var(--c-hairline);
  border-radius: 18px;
  background: var(--c-cream);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.quiz__benefits li::before {
  content: '✓';
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-page-accent);
  color: var(--c-ink);
  font-size: 11px;
  font-weight: 800;
}

.quiz__intro .btn {
  min-height: 56px;
  margin-top: 18px;
}

.quiz__intro-note {
  margin-top: 10px;
  color: var(--c-gray);
  font-size: 11px;
  text-align: center;
}

.quiz__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.quiz__counter {
  color: var(--c-gray);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.quiz__progress {
  display: flex;
  align-items: center;
  gap: 7px;
}

.quiz__progress span {
  display: block;
  width: 10px;
  height: 10px;
  border: 1px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-white);
  transition: width .2s ease, background-color .2s ease;
}

.quiz__progress span[data-state='done'] {
  background: var(--c-ink);
}

.quiz__progress span[data-state='active'] {
  width: 28px;
  border-color: var(--c-page-accent);
  border-radius: var(--r-pill);
  background: var(--c-page-accent);
}

.quiz__question {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.quiz__hint {
  margin-top: 8px;
  color: var(--c-gray);
  font-size: 14px;
}

.quiz__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.quiz__option {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 15px;
  border: 1px solid var(--c-hairline);
  border-radius: 20px;
  background: var(--c-cream);
  color: var(--c-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.quiz__option::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: inset 0 0 0 5px var(--c-white);
}

.quiz__option:hover {
  border-color: var(--c-ink);
  transform: translateY(-1px);
}

.quiz__option[aria-pressed='true'] {
  border-color: var(--c-ink);
  background: var(--c-page-accent);
}

.quiz__option[aria-pressed='true']::before {
  background: var(--c-ink);
}

.quiz__option:focus-visible,
.quiz__back:focus-visible,
.quiz-modal__close:focus-visible,
.quiz__contact-option:focus-within {
  outline: 3px solid var(--c-page-accent);
  outline-offset: 3px;
}

.quiz__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--c-gray);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.quiz__back::before {
  content: '←';
  margin-right: 7px;
}

.quiz__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}

.quiz__summary div {
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--c-cream);
}

.quiz__summary span {
  display: block;
  margin-bottom: 5px;
  color: var(--c-gray);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.quiz__summary b {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.quiz__lead-copy {
  margin-top: 8px;
  color: var(--c-gray);
  font-size: 14px;
  line-height: 1.45;
}

.quiz__contact-title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
}

.quiz__contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz__contact-option {
  position: relative;
}

.quiz__contact-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.quiz__contact-option span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-pill);
  background: var(--c-white);
  font-size: 13px;
  cursor: pointer;
}

.quiz__contact-option input:checked + span {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: var(--c-white);
}

.quiz__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.quiz__form .consent {
  padding-bottom: 4px;
}

.quiz__form .btn {
  min-height: 52px;
}

.quiz-modal[hidden] {
  display: none;
}

.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
}

.quiz-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 46, 42, .62);
  backdrop-filter: blur(3px);
  animation: fade-in .2s ease;
}

.quiz-modal__box {
  position: relative;
  width: min(100%, 680px);
  max-height: min(92dvh, 760px);
  padding: clamp(24px, 4vw, 38px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: clamp(28px, 4vw, 44px);
  background: var(--c-white);
  box-shadow: 10px 10px 0 var(--c-page-accent);
  animation: modal-in .28s cubic-bezier(.22, 1, .36, 1);
}

.quiz-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-cream);
  color: var(--c-ink);
  cursor: pointer;
  touch-action: manipulation;
}

.quiz-modal .quiz__top {
  padding-right: 48px;
}

.has-quiz-modal {
  overflow: hidden;
}

@media (max-width: 620px) {
  .quiz-section {
    padding-top: 20px;
  }

  .quiz-section__copy .h3 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .quiz-section__copy > p:not(.quiz-section__eyebrow) {
    margin-top: 14px;
    font-size: 15px;
  }

  .quiz-section__note {
    margin-top: 18px;
  }

  .quiz-shell {
    min-height: 0;
    padding: 20px;
    border-radius: 28px;
    box-shadow: 6px 6px 0 var(--c-page-accent);
  }

  .quiz__top {
    margin-bottom: 18px;
  }

  .quiz__options,
  .quiz__form-grid {
    grid-template-columns: 1fr;
  }

  .quiz__intro-title {
    margin-top: 16px;
    font-size: 27px;
    line-height: 1.04;
  }

  .quiz__intro-copy {
    font-size: 14px;
  }

  .quiz__benefits {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 16px;
  }

  .quiz__benefits li {
    min-height: 0;
    padding-block: 11px;
  }

  .quiz__options {
    gap: 8px;
    margin-top: 18px;
  }

  .quiz__option {
    min-height: 56px;
  }

  .quiz__summary {
    grid-template-columns: 1fr;
  }

  .quiz__summary div {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 8px;
  }

  .quiz__summary span {
    margin: 0;
  }

  .quiz-modal {
    align-items: end;
    padding: 8px;
  }

  .quiz-modal__box {
    width: 100%;
    max-height: 92dvh;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 22px 22px;
    box-shadow: 0 -6px 0 var(--c-page-accent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz__progress span,
  .quiz__option,
  .quiz-modal__backdrop,
  .quiz-modal__box {
    animation: none;
    transition: none;
  }
}

.nav__toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-green);
  cursor: pointer;
  list-style: none;
}

.nav__toggle::-webkit-details-marker {
  display: none;
}

.nav__drawer {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 12px;
  background: var(--c-white);
  border-radius: 24px;
  border: 1px solid var(--c-hairline);
}

.nav__drawer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: var(--r-small);
  font-size: var(--t-small);
  font-weight: 500;
  text-decoration: none;
}

.nav__drawer a:hover {
  background: var(--c-cream);
}

.nav__phone {
  display: none;
  align-items: center;
  min-height: 44px;
  font-size: var(--t-small);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  padding-inline: 12px;
}

/* Полная навигация вместе с переключателем помещается только на широком
   десктопе. На более узких ноутбуках оставляем телефон и переключатель,
   а ссылки и CTA собираем в меню — так шапка не переполняется. */
@media (min-width: 1320px) {
  .nav__inner {
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr) max-content max-content;
    gap: 8px;
    max-width: 1320px;
    padding: 8px;
  }

  .nav__brand {
    padding-right: 8px;
    padding-left: 4px;
  }

  .nav__inner > .audience {
    margin: 0;
  }

  .nav__links,
  .nav__cta {
    display: flex;
  }

  .nav__links {
    justify-content: center;
    min-width: 0;
    gap: 0;
  }

  .nav__link {
    padding-inline: 11px;
    font-size: 14px;
  }

  /* CTA в навбаре компактнее базовой кнопки, но не ниже тач-минимума */
  .nav__cta {
    min-height: 44px;
    padding-inline: 22px;
  }

  .nav__menu {
    display: none;
  }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

/* Переключатель аудитории в шапке: в первом экране он вставал третьей
   плашкой подряд и спорил с заголовком. Здесь это выбор режима сайта,
   а не часть оффера. Две обычные ссылки — у каждого лендинга свой URL. */
.audience {
  display: inline-flex;
  flex: none;
  margin-right: auto;
  gap: 3px;
  padding: 4px;
  background: var(--c-cream);
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-full);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.audience__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--r-full);
  color: var(--c-gray);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.audience__btn::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.38;
}

/* Зона нажатия 44px без роста высоты навбара */
.audience__btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 44px;
  transform: translateY(-50%);
}

.audience__btn.is-active {
  background: var(--c-ink);
  color: var(--c-white);
  font-weight: 650;
  box-shadow: 0 2px 7px rgba(44, 46, 42, 0.16);
}

.audience__btn.is-active::before {
  opacity: 1;
}

@media (hover: hover) {
  .audience__btn:not(.is-active):hover {
    background: rgba(255, 255, 255, 0.68);
    color: var(--c-ink);
    transform: translateY(-1px);
  }
}

.audience__btn:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 2px;
}

/* На телефоне выбор версии — это навигация первого уровня, поэтому он
   остаётся в шапке, а не прячется за меню. */
@media (max-width: 1099px) {
  .nav__inner > .audience {
    display: inline-flex;
    margin-left: auto;
    margin-right: 0;
  }
}

/* На телефоне сохраняем и знак, и название школы. Сам переключатель
   остаётся компактным, но не превращается в две микроскопические ссылки. */
@media (max-width: 699px) {
  .nav {
    padding-inline: 10px;
  }

  .nav__inner {
    gap: 8px;
    padding: 8px;
  }

  .nav__brand {
    min-height: 40px;
    margin-right: 0;
    padding-right: 0;
    gap: 6px;
    font-size: 15px;
  }

  .nav__mark {
    width: 36px;
    height: 36px;
  }

  .nav__inner > .audience {
    gap: 2px;
    padding: 3px;
  }

  .nav__inner > .audience .audience__btn {
    min-height: 38px;
    gap: 5px;
    padding-inline: 7px;
    font-size: 11px;
  }

  .nav__inner > .audience .audience__btn::before {
    width: 6px;
    height: 6px;
  }

  .nav__toggle {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 360px) {
  .nav__inner {
    flex-wrap: wrap;
  }

  .nav__brand {
    order: 1;
  }

  .nav__menu {
    order: 2;
    margin-left: auto;
  }

  .nav__inner > .audience {
    order: 3;
    width: 100%;
    margin: 0;
  }

  .nav__inner > .audience .audience__btn {
    flex: 1;
    padding-inline: 10px;
    font-size: 12px;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 16px;
  border: 1px solid var(--c-ink);
  border-radius: var(--r-pill);
  font-size: var(--t-small);
  font-weight: 500;
}

.hero__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-page-accent);
}

.hero__title {
  max-width: 22ch;
  margin-bottom: 8px;
}

.hero__sub {
  margin-top: 24px;
  max-width: 46ch;
  color: var(--c-gray);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__mobile-cta {
  display: none;
}

.btn--secondary {
  color: var(--c-ink);
  border-color: var(--c-ink);
  background: transparent;
}

@media (hover: hover) {
  .btn--secondary:hover {
    background: var(--c-ink);
    color: var(--c-white);
  }
}

/* Порядок цен в первом экране: с холодного трафика приходят
   с вопросом «сколько это стоит», а до тарифов — далеко вниз. */
.hero__price {
  margin-top: 20px;
  font-size: var(--t-small);
  color: var(--c-ink);
}

.hero__price strong {
  font-weight: 500;
}

.hero__price a {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: var(--c-gray);
  text-underline-offset: 3px;
}

.hero__note {
  margin-top: 10px;
  font-size: var(--t-small);
  color: var(--c-gray);
}

/* Телефон в тексте — полноценная тач-цель.
   Отрицательный margin гасит влияние паддинга на высоту строки:
   зона нажатия растёт, межстрочный интервал — нет. */
.hero__note a,
.cta-block a[href^='tel:'] {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
  color: var(--c-ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--c-gray);
  text-underline-offset: 3px;
}

.hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

/* --- Карточки ----------------------------------------------------------- */

.card {
  padding: var(--card-pad);
  background: var(--c-white);
  border-radius: var(--r-full);
}

.card--cream {
  background: var(--c-sandstone);
}

.card--accent {
  background: var(--c-page-accent);
}

/* --- Статистика --------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.stat {
  padding: clamp(20px, 3vw, 32px);
  background: var(--c-white);
  border-radius: var(--r-full);
}

.stat__num {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  /* «8 лет» не должно рваться на две строки */
  white-space: nowrap;
}

.stat__label {
  margin-top: 10px;
  font-size: var(--t-small);
  color: var(--c-gray);
  line-height: 1.4;
}

/* --- Список с галочками ------------------------------------------------- */

.checks {
  display: grid;
  gap: 14px;
}

.checks li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}

.checks li::before {
  content: '';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c2e2a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* --- Фичи (что вы получите) --------------------------------------------- */

.features {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--c-cream);
}

.feature__icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin-bottom: 10px;
}

.feature p {
  color: var(--c-gray);
}

/* --- Автор -------------------------------------------------------------- */

.author {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

@media (min-width: 900px) {
  .author {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.author__photo {
  position: relative;
  border-radius: var(--r-illus);
  background: var(--c-page-accent);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.author__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Плейсхолдер, пока нет фото */
.author__photo--empty {
  display: grid;
  place-items: center;
  color: var(--c-ink);
  font-size: var(--t-small);
  text-align: center;
  padding: 20px;
}

.unis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.unis li {
  padding: 10px 18px;
  background: var(--c-white);
  border-radius: var(--r-pill);
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--c-ink);
}

/* --- Отзывы ------------------------------------------------------------- */

.reviews {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  /* Вылезаем за поля, чтобы карточки уходили под край экрана */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: none;
}

.reviews::-webkit-scrollbar {
  display: none;
}

.review {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review__avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--c-white);
  background: var(--c-sandstone);
  object-fit: cover;
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 20px;
  color: var(--c-ink);
}

.review__name {
  font-weight: 500;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--c-green);
  border-radius: var(--r-small);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.chip--coral {
  border-color: var(--c-coral);
}

.review blockquote {
  margin: 0;
  color: var(--c-ink);
}

.review__more {
  align-self: flex-start;
  margin-top: auto;
  padding: 2px 0 3px;
  border: 0;
  border-bottom: 2px solid var(--c-green);
  background: transparent;
  color: var(--c-ink);
  font: inherit;
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}

.review__more:hover {
  border-bottom-color: var(--c-ink);
}

.review__more:focus-visible,
.review-dialog__close:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--c-green) 55%, transparent);
  outline-offset: 4px;
}

.has-review-dialog {
  overflow: hidden;
}

.review-dialog {
  width: min(calc(100% - 32px), 680px);
  max-width: none;
  max-height: min(86dvh, 760px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--c-hairline);
  border-radius: 28px;
  background: var(--c-white);
  color: var(--c-ink);
  box-shadow: 0 28px 80px rgba(44, 46, 42, .24);
}

.review-dialog::backdrop {
  background: rgba(44, 46, 42, .58);
  backdrop-filter: blur(3px);
}

.review-dialog__panel {
  position: relative;
  max-height: min(86dvh, 760px);
  padding: clamp(24px, 5vw, 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.review-dialog__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0 0 3px;
  border: 1px solid var(--c-hairline);
  border-radius: 50%;
  background: var(--c-cream);
  color: var(--c-ink);
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.review-dialog__top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding-right: 54px;
}

.review-dialog__avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border: 2px solid var(--c-white);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--c-hairline);
}

.review-dialog__name {
  margin-bottom: 5px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.review-dialog__copy {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--c-hairline);
  font-size: 17px;
  line-height: 1.6;
}

.review-dialog__copy p {
  margin: 0;
}

.review-dialog__copy p + p {
  margin-top: 18px;
}

@media (max-width: 520px) {
  .review-dialog {
    width: calc(100% - 20px);
    max-height: 90dvh;
    border-radius: 24px;
  }

  .review-dialog__panel {
    max-height: 90dvh;
    padding: 24px 20px 28px;
  }

  .review-dialog__close {
    top: 14px;
    right: 14px;
  }

  .review-dialog__top {
    padding-right: 46px;
  }
}

/* --- Тарифы ------------------------------------------------------------- */

.tariff-carousel {
  width: min(100%, 720px);
  margin-inline: auto;
}

.tariff-carousel__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .72);
}

.tariff-carousel__tabs button {
  min-width: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--c-gray);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.tariff-carousel__tabs button span {
  margin-right: 6px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  opacity: .62;
}

.tariff-carousel__tabs button[aria-pressed="true"] {
  background: var(--c-ink);
  color: var(--c-white);
}

.tariff-carousel__tabs button:not([aria-pressed="true"]):hover {
  color: var(--c-ink);
  transform: translateY(-1px);
}

.tariff-carousel__tabs button:focus-visible {
  outline: 3px solid rgba(45, 156, 240, .42);
  outline-offset: 2px;
}

.tariffs {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.tariffs > .tariff {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.tariff {
  display: flex;
  flex-direction: column;
}

.tariff__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

/* Место под стикер «выбирают чаще», который лежит внутри карточки */
.tariff--featured .tariff__head,
.tariff--featured .tariff__note {
  padding-right: 150px;
}

/* На узких карточках стикер рядом с заголовком не помещается — ставим
   его в поток над заголовком. 700px, а не 480: на планшете тарифы уже
   в две колонки, и каждая карточка снова узкая. */
@media (max-width: 700px) {
  .tariff--featured .tariff__head,
  .tariff--featured .tariff__note {
    padding-right: 0;
  }
  .tariff__sticker {
    position: static;
    align-self: flex-start;
    margin-bottom: 14px;
  }
}

.tariff__note {
  color: var(--c-gray);
  font-size: var(--t-small);
  margin-bottom: 24px;
}

.tariff__list {
  display: grid;
  gap: 2px;
  margin-bottom: 28px;
}

.tariff__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-hairline);
}

/* Выгодные пакеты подсвечены — на них ведём взгляд.
   Подсветка не выходит за поля карточки: на узком экране отрицательные
   margin'ы выталкивали цену под скруглённый край. */
.tariff__row--best {
  padding-inline: 12px;
  background: var(--c-cream);
  border-radius: 16px;
  border-bottom-color: transparent;
}

.tariff__qty {
  font-size: var(--t-body);
}

.tariff__row:last-child {
  border-bottom: none;
}

.tariff__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tariff__price {
  text-align: right;
  white-space: nowrap;
}

/* Цена — акцент строки, а не обычный текст */
.tariff__price b {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tariff__per {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--c-gray);
}

.tariff__monthly {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink);
}

.tariff .btn {
  margin-top: auto;
}

/* --- FAQ ---------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq__item {
  background: var(--c-white);
  border-radius: var(--r-full);
  padding: clamp(18px, 3vw, 28px) var(--card-pad);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: var(--t-h4);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  min-height: 44px;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-green);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__icon {
  transform: rotate(180deg);
}

.faq__a {
  padding-top: 16px;
  color: var(--c-gray);
  max-width: 68ch;
}

.faq__a p + p {
  margin-top: 12px;
}

/* --- Формы -------------------------------------------------------------- */

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: var(--t-small);
  font-weight: 500;
}

.field input[type='text'],
.field input[type='tel'] {
  width: 100%;
  min-height: 48px;
  padding: 13px 20px;
  /* 16px минимум — иначе iOS зумит при фокусе */
  font-size: 16px;
  background: var(--c-white);
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-pill);
  transition: border-color 0.18s ease;
}

.field input::placeholder {
  color: var(--c-gray);
}

.field input:focus {
  outline: none;
  border-color: var(--c-ink);
  box-shadow: 0 0 0 1px var(--c-ink);
}

.field input[aria-invalid='true'] {
  border-color: var(--c-ink);
  border-width: 2px;
}

/* Ошибки — контрастом и иконкой, не цветом:
   акцентные цвета в системе не означают состояний */
.field__error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink);
  padding-left: 20px;
}

.field__error::before {
  content: '!';
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-white);
  font-size: 11px;
  line-height: 1;
}

.field--invalid .field__error {
  display: flex;
}

/* Согласие */
.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  /* Тач-зона всей строки */
  padding: 10px 0;
  min-height: 44px;
  cursor: default;
  font-size: 13px;
  line-height: 1.45;
  color: var(--c-gray);
}

.consent label {
  cursor: pointer;
}

.consent input {
  appearance: none;
  position: relative;
  width: 24px;
  height: 24px;
  margin: 0;
  background: var(--c-white);
  border: 1px solid var(--c-ink);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

/* Зона нажатия 44px без изменения видимого размера */
.consent input::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.consent input:checked {
  background: var(--c-green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c2e2a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 15px no-repeat;
}

/* Ссылки в согласии — инлайн внутри абзаца. Растянуть до 44px нельзя,
   не разорвав строку: увеличиваем зону нажатия вертикальным padding'ом
   (перекрытие соседних строк тут безопасно — рядом нет других ссылок). */
/* border-bottom на многострочной инлайн-ссылке рисуется по всей высоте
   строки и перечёркивает текст — используем underline с отступом. */
.consent a {
  position: relative;
  z-index: 1;
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: var(--c-gray);
  text-underline-offset: 3px;
  padding-block: 10px;
  touch-action: manipulation;
}

/* Ссылка на оферту в блоке гарантии — самостоятельная тач-цель */
.guarantee a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--c-gray);
}

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Ответ формы */
.form__status {
  display: none;
  padding: 16px 20px;
  border-radius: 24px;
  font-size: var(--t-small);
  line-height: 1.45;
}

.form__status--ok {
  display: block;
  background: var(--c-green);
  color: var(--c-ink);
}

.form__status--err {
  display: block;
  background: var(--c-white);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
}

.form[data-sent='true'] .form__fields {
  display: none;
}

/* Блок формы */
.cta-block {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(28px, 5vw, 64px);
  background: var(--c-white);
  border-radius: var(--r-illus);
}

@media (min-width: 900px) {
  .cta-block {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.cta-block .form {
  max-width: 460px;
  width: 100%;
}

/* Форма в hero — на cream, поля белые */
.hero .form {
  max-width: 460px;
}

.form__response {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -8px 0 18px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--c-gray);
}

.form__response::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--c-green);
}

/* --- Гарантия ----------------------------------------------------------- */

.guarantee {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-illus);
  background: var(--c-white);
}

@media (min-width: 900px) {
  .guarantee {
    /* текст — чеклист — маскот */
    grid-template-columns: 1.1fr 1fr auto;
    align-items: center;
  }
}

/* --- Футер -------------------------------------------------------------- */

.footer {
  background: #26352b;
  color: #f8f5ec;
  padding-block: clamp(32px, 5vw, 52px);
  margin-top: var(--section-gap);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(28px, 4vw, 40px);
  margin-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid rgba(248, 245, 236, 0.22);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  color: inherit;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.footer__brand img {
  width: 40px;
  height: 40px;
}

.footer__call {
  display: grid;
  gap: 3px;
  color: inherit;
  text-align: right;
  text-decoration: none;
}

.footer__call span {
  color: rgba(248, 245, 236, 0.68);
  font-size: 13px;
}

.footer__call strong {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.footer__grid {
  display: grid;
  gap: 28px 48px;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer__intro {
  max-width: 29ch;
  color: rgba(248, 245, 236, 0.78);
  font-size: var(--t-small);
  line-height: 1.5;
}

.footer__links {
  display: grid;
  gap: 12px;
  font-size: var(--t-small);
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  border-bottom: 1px solid rgba(248, 245, 236, 0.35);
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(32px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(248, 245, 236, 0.22);
  color: rgba(248, 245, 236, 0.58);
  font-size: 13px;
  line-height: 1.6;
}

.pay {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.pay li {
  padding: 6px 14px;
  border: 1px solid rgba(248, 245, 236, 0.42);
  border-radius: var(--r-small);
  font-size: 13px;
  font-weight: 500;
}

/* --- Декор -------------------------------------------------------------- */

.deco {
  pointer-events: none;
  user-select: none;
}

/* --- Утилиты ------------------------------------------------------------ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Акцентные блоки — цвет, стикеры, editorial-моменты
   ========================================================================== */

/* Маркер-стикер в заголовке: «80+» на акцентной плашке */
.hl {
  display: inline-block;
  padding: 0 0.18em;
  background: var(--c-page-accent);
  border-radius: 0.22em;
  transform: rotate(-2deg);
}

/* Круглая наклейка на карточке формы */
#signup {
  position: relative;
}

.card-badge {
  position: absolute;
  /* На мобиле сильнее выносим за край, чтобы не накрывать заголовок карточки */
  top: -34px;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  padding: 8px;
  border-radius: 50%;
  background: var(--c-page-accent);
  color: var(--c-ink);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  transform: rotate(8deg);
}

@media (min-width: 768px) {
  .card-badge {
    top: -24px;
    right: 14px;
    width: 92px;
    height: 92px;
    font-size: 14px;
  }
}

/* Заголовок карточки не заезжает под наклейку */
#signup > .h4 {
  padding-right: 76px;
}

/* Ряд статистики держим на одной поверхности: четыре разных фона читались
   как четыре разные системы и растаскивали внимание. Выделен только
   главный показатель — средний балл. */
.stat--green {
  background: var(--c-white);
  box-shadow: inset 0 0 0 2px var(--c-green);
}

.stat--green .stat__num {
  color: var(--c-ink);
}

.stat--yellow,
.stat--blue {
  background: var(--c-white);
}

.stat--green .stat__label,
.stat--yellow .stat__label,
.stat--blue .stat__label {
  color: var(--c-gray);
}

.stat--blue .stat__label {
  color: var(--c-gray);
}

/* Гигантское контурное «80+» в блоке гарантии */
.guarantee {
  position: relative;
  overflow: hidden;
}

.guarantee > * {
  position: relative;
}

.guarantee__big {
  position: absolute;
  right: -0.06em;
  bottom: -0.28em;
  z-index: 0;
  font-size: clamp(110px, 22vw, 300px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px var(--c-sandstone);
  pointer-events: none;
  user-select: none;
}

/* Цветные иконки фич — один акцент на карточку */
.feature__icon--green {
  background: var(--c-green);
}

.feature__icon--blue {
  background: var(--c-sandstone);
}

.feature__icon--yellow {
  background: var(--c-green);
}

.feature__icon--sand {
  background: var(--c-sandstone);
}

/* Полоса-подложка под секцией (full-bleed sandstone) */
.section--band {
  background: var(--c-sandstone);
}

/* Стикерность чипов */
.review .chip {
  background: var(--c-green);
  border-color: var(--c-green);
}

/* Выделенный тариф */
.tariff {
  position: relative;
}

.tariff--featured {
  border: 2px solid var(--c-ink);
}

/* Внутри карточки, а не поверх её края: при выносе наружу стикер
   обрезался липким навбаром на мобиле. */
.tariff__sticker {
  position: absolute;
  top: 16px;
  right: 20px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--c-yellow);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}

/* Маскот Пит */
.hero__mascot {
  display: block;
  width: clamp(150px, 22vw, 230px);
  height: auto;
  margin-top: 28px;
  transform: rotate(-3deg);
}

.cta-block {
  position: relative;
}

/* Квокка выглядывает из-за верхнего края CTA-блока:
   лапки в нижней части viewBox ложатся на кромку карточки */
.cta-peek {
  position: absolute;
  /* лапки должны заходить на кромку карточки, а не висеть над ней.
     Фигура в полный рост (соотношение 4:5) — сдвиг больше, чем у поясной. */
  top: -86px;
  right: 20px;
  width: 96px;
  height: auto;
}

@media (min-width: 768px) {
  .cta-peek {
    top: -104px;
    right: 56px;
    width: 118px;
  }
}

/* Гигантский вордмарк в футере */
/* Декоративный вордмарк. На 190px он был крупнейшим элементом страницы
   после H1 при наименьшей смысловой нагрузке — приглушаем размер. */

/* Буллеты в hero */
.checks--hero {
  margin-top: 24px;
  gap: 12px;
}

/* Цветные аватары отзывов */
.review:nth-child(3n + 1) .review__avatar {
  background: var(--c-green);
}

.review:nth-child(3n + 2) .review__avatar {
  background: var(--c-sandstone);
}

.review:nth-child(3n) .review__avatar {
  background: var(--c-ink);
  color: var(--c-white);
}

/* Маскот-квокка */
/* Маскот в hero — рядом с телефоном, не растягивая первый экран */
.hero__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 20px;
}

.hero__mascot {
  flex: none;
  width: clamp(96px, 15vw, 150px);
  height: auto;
}

.hero__foot .hero__price {
  margin-top: 0;
}

.hero__foot .hero__note {
  margin-top: 0;
}

/* Квокка с ноутбуком — обтекается карточками фич */
.offer__mascot {
  width: clamp(140px, 22vw, 240px);
  height: auto;
  margin: 0 auto clamp(24px, 4vw, 40px);
}

@media (min-width: 900px) {
  .offer__mascot {
    float: right;
    margin: 0 0 24px 40px;
    shape-outside: circle(50%);
  }
}

/* Квокка с медалью в блоке гарантии */
/* В трёхколоночном блоке заголовок рвётся на короткие строки */
.guarantee .h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  letter-spacing: -0.03em;
}

.guarantee__mascot {
  width: clamp(130px, 18vw, 200px);
  height: auto;
  justify-self: center;
}

/* ==========================================================================
   Преподаватели и платформа
   ========================================================================== */

.teachers {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .teachers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1100px) {
  .teachers {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .teachers > .teacher {
    grid-column: span 2;
  }
}

.teacher {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 18px;
  border: 1px solid var(--c-hairline);
}

.teacher__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--r-full) - 12px);
  background: var(--c-sandstone);
  overflow: hidden;
}

.teacher__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.teacher__photo--marina img {
  object-position: center 38%;
}

.teacher__meta {
  margin-top: 4px;
  font-size: var(--t-small);
  color: var(--c-gray);
  overflow-wrap: anywhere;
}

.teacher__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.teacher__experience {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--c-hairline);
  color: var(--c-gray);
  font-size: 13px;
}

.teacher__quote {
  margin: 14px 0 0;
  padding: 14px;
  background: var(--c-cream);
  border-radius: 16px;
  color: var(--c-ink);
  font-size: 13px;
  line-height: 1.45;
}

.founder {
  display: grid;
  gap: 24px;
  margin-top: 20px;
  padding: var(--card-pad);
  background: var(--c-sandstone);
  border-radius: var(--r-full);
}

@media (min-width: 900px) {
  .founder {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
  }
}

.founder .unis {
  margin-top: 0;
}

.platform {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .platform {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.platform__ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
}

.platform__ico svg {
  width: 24px;
  height: 24px;
}

.platform__ico--green  { background: var(--c-green); }
.platform__ico--blue   { background: var(--c-sandstone); }
.platform__ico--yellow { background: var(--c-green); }
.platform__ico--coral  { background: var(--c-sandstone); }

.platform__item h3 {
  margin-bottom: 10px;
}

.platform__item p {
  color: var(--c-gray);
}

/* Наглядная схема кабинета: CSS-only, без тяжёлого скриншота на первом визите. */
.platform-proof {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  padding: clamp(20px, 4vw, 36px);
  background: var(--c-sandstone);
  border-radius: var(--r-full);
}

@media (min-width: 800px) {
  .platform-proof {
    grid-template-columns: 1fr minmax(300px, .9fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
  }
}

.platform-proof__copy p:not(.eyebrow) {
  max-width: 48ch;
  margin-top: 14px;
  color: var(--c-gray);
}

.platform-proof__copy .btn {
  margin-top: 22px;
}

.progress-preview {
  padding: clamp(20px, 3vw, 28px);
  background: var(--c-white);
  border: 1px solid var(--c-hairline);
  border-radius: calc(var(--r-full) - 12px);
  box-shadow: 0 18px 32px rgba(44, 46, 42, .08);
}

.progress-preview__label {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-hairline);
  font-size: var(--t-small);
  font-weight: 500;
}

.progress-preview ul {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  font-size: var(--t-small);
  line-height: 1.35;
}

.progress-preview li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.progress-preview__check {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-green);
  font-size: 13px;
  font-weight: 500;
}

/* ==========================================================================
   Таймер набора
   ========================================================================== */

.deadline {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 4vw, 32px);
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--r-full);
  text-align: center;
}

@media (min-width: 900px) {
  .deadline {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 32px;
    text-align: left;
  }
}

/* 0.82 вместо 0.65: на чёрном 0.65 давало ~4.1:1, ниже AA для мелкого текста */
.deadline__text .muted {
  color: rgba(255, 255, 255, 0.82);
}

/* Счётчик мест — на месте прежнего обратного отсчёта */
.deadline__seats {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 128px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

.deadline__seats b {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.deadline__seats span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   Плавающая планка, Telegram, попап, тосты
   ========================================================================== */

.stickybar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 18px;
  background: var(--c-white);
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-pill);
  transform: translateY(140%);
  transition: transform 0.25s ease;
}

.stickybar[data-show='true'] {
  transform: translateY(0);
}

.stickybar__text {
  display: grid;
  line-height: 1.25;
  min-width: 0;
}

.stickybar__text b {
  font-size: var(--t-small);
  font-weight: 500;
}

.stickybar__text span {
  font-size: 12px;
  color: var(--c-gray);
}

.stickybar .btn {
  flex: none;
  min-height: 44px;
  padding: 12px 20px;
  font-size: var(--t-small);
}

@media (min-width: 900px) {
  .stickybar {
    display: none;
  }
}

.contact-fab {
  position: fixed;
  left: 16px;
  bottom: 88px;
  z-index: 68;
  width: min(318px, calc(100vw - 32px));
  color: var(--c-ink);
}

.contact-fab__trigger {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 7px 13px 7px 7px;
  border: 1px solid rgba(44, 46, 42, 0.18);
  border-radius: 18px;
  background: #fffdf7;
  box-shadow: 0 10px 30px rgba(44, 46, 42, 0.16);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.contact-fab__trigger::-webkit-details-marker {
  display: none;
}

.contact-fab__trigger-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 13px;
  background: var(--c-green);
  color: var(--c-ink);
}

.contact-fab__trigger-icon svg,
.contact-fab__channel svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-fab__chevron {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.18s ease;
}

.contact-fab[open] .contact-fab__chevron {
  transform: rotate(180deg);
}

.contact-fab__panel {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(44, 46, 42, 0.16);
  border-radius: 24px;
  background: #fffdf7;
  box-shadow: 0 18px 46px rgba(44, 46, 42, 0.2);
  transform-origin: bottom left;
  animation: contact-panel-in 0.18s ease-out;
}

.contact-fab__head {
  display: grid;
  gap: 2px;
  padding: 8px 10px 10px;
}

.contact-fab__head strong {
  font-size: 17px;
}

.contact-fab__head span {
  color: var(--c-gray);
  font-size: 13px;
}

.contact-fab__action {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.contact-fab__action:hover {
  background: rgba(44, 46, 42, 0.055);
}

.contact-fab__action > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.contact-fab__action b {
  font-size: 15px;
  font-weight: 600;
}

.contact-fab__action small {
  overflow: hidden;
  color: var(--c-gray);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-fab__channel {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
}

.contact-fab__channel--telegram {
  background: #229ed9;
}

.contact-fab__channel--telegram svg,
.contact-fab__channel--whatsapp svg {
  fill: currentColor;
  stroke: none;
}

.contact-fab__channel--whatsapp {
  background: #26a95c;
}

.contact-fab__channel--max {
  background: #7357ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-fab__channel--phone {
  background: var(--c-ink);
}

.contact-fab__trigger:focus-visible,
.contact-fab__action:focus-visible {
  outline: 3px solid rgba(132, 207, 90, 0.42);
  outline-offset: 2px;
}

@keyframes contact-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@media (min-width: 900px) {
  .contact-fab {
    left: 24px;
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-fab__panel {
    animation: none;
  }

  .contact-fab__chevron {
    transition: none;
  }
}

/* Cookie-полоса не должна ложиться под планку заказа */
@media (max-width: 899px) {
  .cookie-banner {
    bottom: 76px;
  }
}

.modal[hidden] {
  display: none;
}

.cookie-banner[hidden] {
  display: none;
}

/* Полоса во всю ширину внизу: карточка в углу перекрывала форму первого экрана */
.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 75;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  padding: 12px clamp(16px, 4vw, 32px);
  border-top: 1px solid rgba(44, 46, 42, 0.14);
  background: #fffdf7;
  box-shadow: 0 -6px 24px rgba(44, 46, 42, 0.12);
  color: var(--c-ink);
}

.cookie-banner p {
  flex: 1 1 380px;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner strong {
  font-size: 14px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.cookie-banner .btn {
  min-height: 44px;
  padding-inline: 20px;
  font-size: 14px;
}

.cookie-banner > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}

.has-lead-modal {
  overflow: hidden;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 46, 42, 0.55);
}

.modal__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 5vw, 36px);
  background: var(--c-white);
  border-radius: var(--r-illus);
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 1;
}

.modal__close:hover {
  background: var(--c-cream);
}

.modal__mascot {
  width: 120px;
  height: auto;
  margin: 0 auto 12px;
}

.modal .form {
  text-align: left;
}

.toasts {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 50;
  display: grid;
  gap: 10px;
  max-width: 300px;
}

@media (max-width: 899px) {
  .toasts {
    bottom: 112px;
  }
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--c-white);
  border: 1px solid var(--c-hairline);
  border-radius: 20px;
  font-size: 13px;
  line-height: 1.35;
  animation: toast-in 0.3s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
}

/* ==========================================================================
   Промо-полоса, доверие, сравнение цен
   ========================================================================== */

.promo[hidden] {
  display: none;
}

.promo {
  background: var(--c-ink);
  color: var(--c-white);
}

.promo__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 10px var(--gutter);
}

.promo__text {
  font-size: var(--t-small);
  line-height: 1.3;
}

.promo__seats {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
  font-size: var(--t-small);
  white-space: nowrap;
}

.promo__seats b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.promo__btn {
  min-height: 44px;
  padding: 11px 20px;
  font-size: var(--t-small);
}

@media (max-width: 767px) {
  .promo__seats {
    order: 3;
  }
  .promo__btn {
    display: none;
  }
}

.trust {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(28px, 5vw, 56px);
  background: var(--c-white);
  border-radius: var(--r-illus);
  align-items: center;
}

@media (min-width: 900px) {
  .trust {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.trust__mascot {
  width: clamp(180px, 30vw, 300px);
  height: auto;
  justify-self: center;
}

.compare {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .compare {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
  }
}

.compare__card {
  padding: var(--card-pad);
  background: var(--c-white);
  border-radius: var(--r-full);
}

.compare__card--win {
  background: var(--c-page-accent);
}

.compare__label {
  font-size: var(--t-small);
  font-weight: 500;
}

.compare__price {
  margin-top: 12px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.compare__unit {
  margin-top: 8px;
  font-size: var(--t-small);
  color: var(--c-gray);
}

.compare__card--win .compare__unit {
  color: var(--c-ink);
  opacity: 0.75;
}

.compare__list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--c-hairline);
  font-size: var(--t-small);
}

.compare__card--win .compare__list {
  border-color: rgba(44, 46, 42, 0.25);
}

.compare__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.compare__list li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Минусы — та же геометрия, но крестик и приглушённый тон */
.compare__list--minus li::before {
  background: var(--c-hairline)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c2e2a' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.compare__list--minus li {
  color: var(--c-gray);
}

.who {
  padding: clamp(28px, 5vw, 56px);
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--r-illus);
}

.who .subhead {
  color: rgba(255, 255, 255, 0.7);
}

.who__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.who .btn--ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.stickybar__clock b {
  font-weight: 500;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}

/* Планка была двухстрочной и занимала слишком много экрана */
@media (max-width: 899px) {
  .stickybar {
    padding: 10px 10px 10px 16px;
    gap: 12px;
  }
  .stickybar__text b {
    font-size: 14px;
    line-height: 1.2;
  }
  .stickybar__clock {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .stickybar .btn {
    min-height: 44px;
    padding: 12px 18px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* ==========================================================================
   Блоки боли: «Знакомо?», самоподготовка, проходные баллы
   ========================================================================== */

.feelings {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .feelings {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.feeling__quote {
  font-size: var(--t-h4);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.feeling__note {
  margin-top: 12px;
  font-size: var(--t-small);
  color: var(--c-gray);
}

.feeling--accent {
  background: var(--c-page-accent);
}

.feeling--accent .feeling__note {
  color: var(--c-ink);
  opacity: 0.8;
}

/* Список с крестиками — для «не работает» */
.checks--cross li::before {
  background: var(--c-sandstone)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c2e2a' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.selfstudy {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 5vw, 56px);
  background: var(--c-white);
  border-radius: var(--r-illus);
  align-items: center;
}

@media (min-width: 900px) {
  .selfstudy {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.selfstudy__mascot {
  width: clamp(160px, 26vw, 260px);
  height: auto;
  justify-self: center;
}

/* Таблица проходных баллов */
.unis-table {
  background: var(--c-white);
  border-radius: var(--r-full);
  overflow: hidden;
}

.unis-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--c-hairline);
}

.unis-row:last-child {
  border-bottom: none;
}

.unis-row--head {
  background: var(--c-sandstone);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-gray);
}

.unis-row b {
  display: block;
  font-weight: 500;
}

.unis-row small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--c-gray);
}

.unis-row span[role='cell']:nth-child(2) {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 599px) {
  .unis-row {
    grid-template-columns: 1fr auto;
    row-gap: 6px;
  }
  .unis-row--head {
    display: none;
  }
  .unis-row span[role='cell']:nth-child(2)::before {
    content: 'Проходной ';
    font-weight: 400;
    color: var(--c-gray);
    font-size: 13px;
  }
  .unis-row span[role='cell']:first-child {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Процесс: шаги, урок, программа
   ========================================================================== */

.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--c-page-accent);
  font-size: 20px;
  font-weight: 500;
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  font-size: var(--t-small);
  color: var(--c-gray);
}

.steps__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 40px);
}

/* ==========================================================================
   Лид-магнит
   ========================================================================== */

.magnet {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(28px, 5vw, 56px);
  background: var(--c-sandstone);
  border-radius: var(--r-illus);
  align-items: center;
}

@media (min-width: 900px) {
  .magnet {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* В магните заголовок конкурирует с формой — держим его компактным */
.magnet .h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.03em;
}

.magnet__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 14px;
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
}

/* Список того, что придёт в боте */
.magnet__flow {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  counter-reset: mf;
}

.magnet__flow li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 4px 12px;
  align-items: baseline;
  font-size: var(--t-small);
  line-height: 1.45;
  color: var(--c-gray);
}

/* Пояснение уходит на свою строку, а не рвётся посреди перечисления */
.magnet__flow li span {
  grid-column: 2;
}

.magnet__flow li::before {
  counter-increment: mf;
  content: counter(mf);
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 500;
}

.magnet__flow b {
  color: var(--c-ink);
  font-weight: 500;
}

.magnet__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

/* Имитация переписки с ботом */
.magnet__card {
  width: 100%;
}

.magnet__chat {
  display: grid;
  gap: 10px;
}

.magnet__msg {
  max-width: 88%;
  padding: 12px 16px;
  background: var(--c-cream);
  border-radius: 18px 18px 18px 6px;
  font-size: var(--t-small);
  line-height: 1.4;
}

.magnet__msg b {
  font-weight: 500;
}

/* Ответ ученика — справа, акцентным цветом */
.magnet__msg--out {
  justify-self: end;
  background: var(--c-page-accent);
  border-radius: 18px 18px 6px 18px;
}

/* ==========================================================================
   Анимации
   Только transform/opacity — они не вызывают reflow и идут на GPU.
   Всё выключается при prefers-reduced-motion (см. блок в начале файла).
   ========================================================================== */

/* --- Появление при скролле ---------------------------------------------- */

/* Стартовое состояние ставим только когда JS работает: без него
   контент должен быть виден сразу. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Каскад для элементов внутри группы */
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal-group].is-in > * {
  opacity: 1;
  transform: none;
}

.js [data-reveal-group].is-in > *:nth-child(1) { transition-delay: 0ms; }
.js [data-reveal-group].is-in > *:nth-child(2) { transition-delay: 70ms; }
.js [data-reveal-group].is-in > *:nth-child(3) { transition-delay: 140ms; }
.js [data-reveal-group].is-in > *:nth-child(4) { transition-delay: 210ms; }
.js [data-reveal-group].is-in > *:nth-child(5) { transition-delay: 280ms; }

/* --- Счётчики статистики ------------------------------------------------- */

.stat__num {
  font-variant-numeric: tabular-nums;
}

/* --- Живость интерактивных элементов ------------------------------------- */

.card,
.stat,
.teacher,
.feeling,
.platform__item,
.step {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  /* Селектор нарочно специфичнее, чем `.js [data-reveal-group].is-in > *`,
     иначе его `transform: none` гасит подъём карточки при наведении. */
  .js [data-reveal-group].is-in > .stat:hover,
  .js [data-reveal-group].is-in > .feeling:hover,
  .js [data-reveal-group].is-in > .platform__item:hover,
  .js [data-reveal-group].is-in > .step:hover,
  .js [data-reveal-group].is-in > .teacher:hover,
  .js [data-reveal-group].is-in > .tariff:hover,
  .stat:hover,
  .feeling:hover,
  .platform__item:hover,
  .step:hover,
  .teacher:hover,
  .tariff:hover {
    transform: translateY(-4px);
  }
}

/* Кнопки: точка-аффорданс подаётся вперёд при наведении */
.btn__dot {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .btn:hover .btn__dot {
    transform: translateX(3px) scale(1.15);
  }
}

/* Иконки фич и платформы слегка оживают */
@media (hover: hover) {
  .feature:hover .feature__icon,
  .platform__item:hover .platform__ico {
    transform: rotate(-8deg) scale(1.08);
  }
}

.feature__icon,
.platform__ico {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Пульс на кнопке записи в стики-баре --------------------------------- */

@keyframes soft-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 112, 93, 0.45);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 112, 93, 0);
  }
}

/* --- Маскот: лёгкое покачивание ------------------------------------------ */

@keyframes float-soft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero__mascot,
.trust__mascot {
  animation: float-soft 5s ease-in-out infinite;
}

.selfstudy__mascot {
  animation: float-soft 5s ease-in-out infinite 0.8s;
}

/* --- FAQ: плавное раскрытие ---------------------------------------------- */

.faq__item {
  transition: background 0.2s ease;
}

.faq__a {
  animation: faq-open 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* --- Модалка ------------------------------------------------------------- */

.modal__backdrop {
  animation: fade-in 0.2s ease;
}

.modal__box {
  animation: modal-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

/* --- Промо-полоса и таймер ------------------------------------------------ */

.promo:not([hidden]) {
  animation: slide-down 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slide-down {
  from {
    transform: translateY(-100%);
  }
}

/* ==========================================================================
   Разнообразие появлений
   Тип движения задаётся значением data-reveal: сбоку, с масштабом,
   разворотом или «выпрыгиванием». Финал у всех один — transform: none.
   ========================================================================== */

/* Боковые сдвиги только на широких экранах: на узких они выталкивают
   контент за правый край и дают горизонтальный скролл. */
.js [data-reveal='left'],
.js [data-reveal='right'] {
  transform: translateY(18px);
}

@media (min-width: 1024px) {
  .js [data-reveal='left'] {
    transform: translateX(-32px);
  }

  .js [data-reveal='right'] {
    transform: translateX(32px);
  }
}

.js [data-reveal='zoom'] {
  transform: scale(0.94);
}

.js [data-reveal='tilt'] {
  transform: rotate(-2.5deg) translateY(20px);
}

/* Выпрыгивание — с перелётом, для акцентных блоков */
.js [data-reveal='pop'] {
  transform: scale(0.86);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.js [data-reveal='left'].is-in,
.js [data-reveal='right'].is-in,
.js [data-reveal='zoom'].is-in,
.js [data-reveal='tilt'].is-in,
.js [data-reveal='pop'].is-in {
  transform: none;
}

/* --- Варианты каскада ---------------------------------------------------- */

/* Карточки выезжают по очереди сбоку — для лент и списков шагов.
   На узких экранах — тоже вертикально, чтобы не рвать вёрстку. */
.js [data-reveal-group='slide'] > * {
  transform: translateY(18px);
}

@media (min-width: 1024px) {
  .js [data-reveal-group='slide'] > * {
    transform: translateX(-24px);
  }
}

/* Масштаб — для плиток статистики и тарифов */
.js [data-reveal-group='zoom'] > * {
  transform: scale(0.9);
}

.js [data-reveal-group='slide'].is-in > *,
.js [data-reveal-group='zoom'].is-in > * {
  transform: none;
}

/* Пружинистый каскад для акцентных групп */
.js [data-reveal-group='pop'] > * {
  transform: scale(0.88) translateY(12px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.js [data-reveal-group='pop'].is-in > * {
  transform: none;
}

/* Больше ступеней каскада — группы бывают из 7 элементов */
.js [data-reveal-group].is-in > *:nth-child(6) { transition-delay: 350ms; }
.js [data-reveal-group].is-in > *:nth-child(7) { transition-delay: 420ms; }

/* ==========================================================================
   Живые детали
   ========================================================================== */

/* Номера шагов подпрыгивают */
.js .steps.is-in .step__num {
  animation: num-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.js .steps.is-in > *:nth-child(1) .step__num { animation-delay: 0.05s; }
.js .steps.is-in > *:nth-child(2) .step__num { animation-delay: 0.15s; }
.js .steps.is-in > *:nth-child(3) .step__num { animation-delay: 0.25s; }
.js .steps.is-in > *:nth-child(4) .step__num { animation-delay: 0.35s; }

@keyframes num-pop {
  from {
    transform: scale(0.3);
    opacity: 0;
  }
}

/* Галочки в списках прорисовываются */
.js .checks.is-in li::before {
  animation: check-in 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.js .checks.is-in li:nth-child(1)::before { animation-delay: 0.05s; }
.js .checks.is-in li:nth-child(2)::before { animation-delay: 0.14s; }
.js .checks.is-in li:nth-child(3)::before { animation-delay: 0.23s; }
.js .checks.is-in li:nth-child(4)::before { animation-delay: 0.32s; }

@keyframes check-in {
  from {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
}

/* Реплики бота появляются как настоящая переписка */
.js .magnet__chat.is-in .magnet__msg {
  animation: msg-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.js .magnet__chat.is-in .magnet__msg:nth-child(1) { animation-delay: 0.1s; }
.js .magnet__chat.is-in .magnet__msg:nth-child(2) { animation-delay: 0.5s; }
.js .magnet__chat.is-in .magnet__msg:nth-child(3) { animation-delay: 0.9s; }
.js .magnet__chat.is-in .magnet__msg:nth-child(4) { animation-delay: 1.3s; }

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}

/* Бейджи и чипы слегка качаются, привлекая внимание */
@keyframes wiggle {
  0%, 92%, 100% {
    transform: rotate(8deg);
  }
  94% {
    transform: rotate(4deg);
  }
  97% {
    transform: rotate(11deg);
  }
}

.card-badge {
  animation: wiggle 6s ease-in-out infinite;
}

@keyframes wiggle-flat {
  0%, 92%, 100% {
    transform: none;
  }
  94% {
    transform: rotate(-3deg);
  }
  97% {
    transform: rotate(3deg);
  }
}

.tariff__sticker {
  animation: wiggle-flat 7s ease-in-out infinite 1s;
}

/* Подчёркивание акцента в заголовке «прорисовывается» */
.js .hl {
  background-size: 0 100%;
  background-repeat: no-repeat;
  background-image: linear-gradient(var(--c-page-accent), var(--c-page-accent));
  background-color: transparent;
  animation: hl-draw 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

@keyframes hl-draw {
  to {
    background-size: 100% 100%;
  }
}

/* Стрелка FAQ поворачивается мягче */
.faq__icon {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease;
}

@media (hover: hover) {
  .faq__q:hover .faq__icon {
    transform: scale(1.12);
  }
  .faq__item[open] .faq__q:hover .faq__icon {
    transform: rotate(180deg) scale(1.12);
  }
}

/* ==========================================================================
   Разбор заданий: где теряются баллы
   ========================================================================== */

.tasks {
  display: grid;
  gap: 16px;
}

@media (min-width: 800px) {
  .tasks {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
  }
}

.task {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--c-hairline);
}

.task .h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-hairline);
}

.task__topic {
  font-size: var(--t-small);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--c-gray);
}

.task__body {
  margin: 18px 0 0;
}

.task__body dt {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-gray);
}

.task__body dd {
  margin: 6px 0 16px;
  font-size: var(--t-small);
  line-height: 1.5;
}

.task__body dd:last-of-type {
  margin-bottom: 0;
}

/* Сравнение двух решений: родитель не читает код, но видит предмет
   разговора, ученик узнаёт собственную ошибку. Один объект на две аудитории. */
.codecmp {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

@media (min-width: 560px) {
  .codecmp {
    grid-template-columns: 1fr 1fr;
  }
}

.codecmp__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.codecmp__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-gray);
}

.codecmp__tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-gray);
}

/* Состояние показываем не цветом текста, а меткой и точкой: красный
   как цвет ошибки система запрещает, coral зарезервирован под CTA. */
.codecmp__col--good .codecmp__tag::before {
  background: var(--c-green);
}

.codecmp__code {
  flex: 1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--c-ink);
  color: #f8f5ec;
  /* Кегль подстраивается под ширину колонки: на узких карточках
     строки вроде `key=lambda r: (r[1], r[0])` иначе обрезаются. */
  font: clamp(11px, 1.05vw, 12.5px)/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.codecmp__col--bad .codecmp__code {
  background: #3a3c37;
}

.codecmp__code span { color: #91d7ff; }
.codecmp__code b { color: var(--c-green); font-weight: 500; }
.codecmp__code i { color: var(--c-yellow); font-style: normal; }
.codecmp__code em { color: var(--c-coral); font-style: normal; }

/* Задание 23: вместо кода — описание ручного счёта */
.codecmp__note {
  color: rgba(248, 245, 236, 0.6);
  font-style: italic;
}

/* Решение отделено линией и зелёным маркером слева, а не целой плашкой:
   заливка во всю карточку перевешивала текст проблемы. */
.task__fix {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--c-hairline);
}

.task__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink);
}

.task__label::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-green);
}

.task__fix ul {
  display: grid;
  gap: 8px;
  font-size: var(--t-small);
  line-height: 1.45;
}

.task__fix li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.task__fix li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c2e2a' stroke-width='3.5' stroke-linecap='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* Ссылка на «соседнюю» страницу — тише основных пунктов меню */
.nav__link--alt {
  color: var(--c-gray);
}

@media (max-width: 1339px) {
  .nav__link--alt {
    display: none;
  }
}

/* ==========================================================================
   Мобильная лента: горизонтальные карусели вместо вертикальных стопок.
   На 390px страница была 29 экранов — карточки складывались в одну колонку.
   ========================================================================== */

@media (max-width: 799px) {
  /* Общий приём: ряд со скроллом и снапом, карточки уходят под край */
  .tasks,
  .teachers,
  .platform,
  .feelings,
  .steps,
  .features {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% - 44px);
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 10px;
    /* полоса прокрутки не нужна — есть индикатор ниже */
    scrollbar-width: none;
  }

  .tasks::-webkit-scrollbar,
  .teachers::-webkit-scrollbar,
  .platform::-webkit-scrollbar,
  .feelings::-webkit-scrollbar,
  .steps::-webkit-scrollbar,
  .features::-webkit-scrollbar {
    display: none;
  }

  .tasks > *,
  .teachers > *,
  .platform > *,
  .feelings > *,
  .steps > *,
  .features > * {
    scroll-snap-align: start;
    height: auto;
  }

  /* Подсказка, что ряд листается */
  .swipe-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--c-gray);
  }

  .swipe-hint::after {
    content: '';
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(
      to right,
      var(--c-green) 0 30%,
      var(--c-hairline) 30% 100%
    );
  }
}

@media (min-width: 800px) {
  .swipe-hint {
    display: none;
  }
}

/* --- Компактнее вертикальные блоки на мобиле ----------------------------- */

@media (max-width: 799px) {
  /* Заголовок — главный якорь при быстром скролле. Крупнее и плотнее,
     подзаголовок тише, чтобы не спорил с ним. */
  .section__head {
    margin-bottom: 22px;
  }

  .h2 {
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -0.035em;
  }

  .section__head .subhead {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--c-gray);
  }

  .h4 {
    font-size: 19px;
  }

  /* Крупные составные блоки — плотнее */
  .trust,
  .selfstudy,
  .guarantee,
  .magnet,
  .who,
  .cta-block {
    padding: 24px 20px;
  }

  /* Маскот в тяжёлых блоках только мешает листать */
  .trust__mascot,
  .selfstudy__mascot {
    display: none;
  }
}

/* --- Ещё компактнее на мобиле -------------------------------------------- */

@media (max-width: 799px) {
  /* Секции: меньше воздуха между блоками */
  :root {
    --section-gap: 48px;
  }

  /* Первый экран: форма сразу под оффером, без длинного хвоста */
  .hero {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .hero__grid {
    gap: 24px;
  }

  .checks--hero {
    gap: 8px;
    margin-top: 16px;
    font-size: 15px;
  }

  .hero__sub {
    margin-top: 12px;
    font-size: 16px;
  }

  .hero__mobile-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 18px;
  }

  .hero__foot {
    margin-top: 12px;
  }

  /* Маскот стоял между буллитами и телефоном и отодвигал форму
     за пределы первого экрана */
  .hero__mascot {
    display: none;
  }

  /* Таблица вузов длинная — ужимаем строки */
  .unis-row {
    padding: 12px 18px;
  }

  /* Отзывы и тарифы плотнее */
  .review {
    gap: 12px;
  }

  .tariff__row {
    padding: 12px 0;
  }

  /* Лид-магнит: чат занимал целый экран */
  .magnet__chat {
    gap: 8px;
  }

  .magnet__msg {
    font-size: 14px;
    padding: 10px 14px;
  }

  /* Футер-вордмарк съедал экран */
}

/* ==========================================================================
   Мобильные акценты: якоря для быстрого скролла
   ========================================================================== */

@media (max-width: 799px) {
  .cookie-banner {
    justify-content: flex-start;
    padding: 12px 16px;
  }

  .cookie-banner p {
    flex-basis: 100%;
    font-size: 13px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .footer__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__call {
    text-align: left;
  }

  .footer__legal {
    flex-direction: column;
    gap: 6px;
  }

  /* Надзаголовок-метка: даёт понять, о чём блок, до чтения заголовка */
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c-gray);
  }

  .eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-green);
  }

  /* Планка перекрывала низ футера: отступ ставим внутри футера,
     иначе full-bleed фон обрывается раньше самой планки. */
  .footer {
    padding-bottom: 104px;
  }

  /* Индикатор прогресса чтения: видно, сколько осталось */
  .readbar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 70;
    height: 3px;
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
    background: var(--c-green);
    pointer-events: none;
  }
}

@media (min-width: 800px) {
  .eyebrow,
  .readbar {
    display: none;
  }
}

/* Ключевые цифры внутри текста — акцентом, а не в общем потоке */
.hl-num {
  font-weight: 500;
  color: var(--c-ink);
}

/* --- Быстрые якоря под первым экраном (мобайл) --------------------------- */

@media (max-width: 799px) {
  .quicknav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    /* без отрицательных полей: они давали лишние 20px scrollWidth */
    max-width: 100%;
    padding: 4px var(--gutter) 0;
  }

  .quicknav::-webkit-scrollbar {
    display: none;
  }

  .quicknav a {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    background: var(--c-white);
    border: 1px solid var(--c-hairline);
    border-radius: var(--r-pill);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
  }
}

@media (min-width: 800px) {
  .quicknav {
    display: none;
  }
}

/* ========================================================================
   Маршрут подготовки — главный визуальный мотив первого экрана.
   На телефоне это короткая карта пути, на desktop — самостоятельная сцена
   между оффером и формой. У точек есть смысловая последовательность, поэтому
   здесь уместна нумерация, в отличие от декоративных «01» у секций.
   ======================================================================== */

.hero-journey {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: 28px;
}

.hero-journey::before {
  content: '';
  position: absolute;
  inset: auto -24px -66px auto;
  width: 150px;
  height: 150px;
  border: 28px solid var(--c-page-accent);
  border-radius: 50%;
  opacity: .9;
}

.hero-journey__label,
.hero-journey__note,
.hero-journey__steps {
  position: relative;
  z-index: 1;
}

.hero-journey__label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

.hero-journey__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-journey__step {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.hero-journey__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 13px;
  left: calc(50% + 14px);
  width: calc(100% - 22px);
  height: 2px;
  background: rgba(255,255,255,.32);
}

.hero-journey__point {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-ink);
  font-size: 12px;
  font-weight: 500;
}

.hero-journey__step b,
.hero-journey__step small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-journey__step b {
  font-size: 13px;
  line-height: 1.2;
}

.hero-journey__step small {
  margin-top: 3px;
  color: rgba(255,255,255,.65);
  font-size: 11px;
  line-height: 1.25;
}

.hero-journey__step--goal .hero-journey__point {
  width: 38px;
  height: 38px;
  margin-top: -5px;
  background: var(--c-page-accent);
  font-size: 11px;
}

.hero-journey__note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.35;
}

@media (min-width: 600px) and (max-width: 999px) {
  .hero-journey {
    padding: 24px 28px;
  }

  .hero-journey__steps {
    gap: 20px;
  }

  .hero-journey__step b {
    font-size: 14px;
  }
}

@media (min-width: 1000px) and (max-width: 1199px) {
  .hero__grid {
    grid-template-columns: 1fr .86fr;
  }

  .hero-journey {
    grid-column: 1;
    padding: 28px;
  }

  .hero__grid > #signup {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (min-width: 1200px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.16fr) minmax(260px, .74fr) minmax(300px, .86fr);
    gap: 28px;
  }

  .hero-journey {
    align-self: center;
    padding: 30px;
    border-radius: 36px;
  }

  .hero-journey__steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-journey__step {
    grid-template-columns: 34px 1fr;
    align-items: center;
  }

  .hero-journey__step:not(:last-child)::after {
    top: 32px;
    left: 13px;
    width: 2px;
    height: 20px;
  }

  .hero-journey__step--goal .hero-journey__point {
    margin: 0;
  }

  .hero-journey__note {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-journey__step--goal .hero-journey__point {
    animation: journey-goal 2.8s ease-in-out infinite;
  }
}

@keyframes journey-goal {
  50% { transform: scale(1.08); }
}

/* Доказательства после hero: это переход от обещания к проверяемым цифрам,
   а не ещё одна промо-плашка. */
.proof-intro {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 20px;
}

.proof-intro__kicker {
  margin: 0;
  color: var(--c-gray);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.proof-intro .h3 {
  max-width: 20ch;
  font-size: clamp(26px, 7vw, 40px);
  line-height: 1.03;
}

.proof-intro__note {
  max-width: 38ch;
  margin: 0;
  color: var(--c-gray);
  font-size: var(--t-small);
  line-height: 1.45;
}

@media (min-width: 900px) {
  .proof-intro {
    grid-template-columns: 150px minmax(0, .95fr) minmax(240px, .5fr);
    align-items: end;
    gap: 28px;
    padding-top: 34px;
    padding-bottom: 26px;
  }

  .proof-intro .h3 {
    max-width: 19ch;
    font-size: clamp(30px, 3.4vw, 48px);
  }
}

/* ========================================================================
   Главы лендинга. Метка называет следующий смысловой этап, а разные формы
   блоков не дают странице превратиться в повторяющийся каталог карточек.
   ======================================================================== */

.chapter::before {
  content: attr(data-chapter);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.chapter--system::before,
.chapter--path::before {
  background: var(--c-page-accent);
  color: var(--c-ink);
}

.chapter--result::before {
  background: var(--c-coral);
  color: var(--c-ink);
}

/* Один большой кейс вместо четырёх равноправных карточек. Первый кейс
   отвечает на вопрос «что именно меняется в подготовке», остальные дают
   ширину покрытия экзамена. */
@media (min-width: 800px) {
  .tasks .task:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(260px, 1.2fr) minmax(220px, .8fr);
    gap: 28px;
    align-items: start;
    padding: clamp(28px, 4vw, 44px);
    background: var(--c-ink);
    color: var(--c-white);
  }

  .tasks .task:first-child .h4 {
    padding: 0;
    border: 0;
    font-size: clamp(26px, 3vw, 40px);
  }

  .tasks .task:first-child .task__topic,
  .tasks .task:first-child .task__body dt {
    color: rgba(255,255,255,.62);
  }

  .tasks .task:first-child .task__body {
    margin: 0;
  }

  .tasks .task:first-child .task__body dd {
    color: rgba(255,255,255,.88);
  }

  .tasks .task:first-child .task__fix {
    margin: 0;
    padding: 22px;
    background: var(--c-white);
    border: 0;
    border-radius: 24px;
    color: var(--c-ink);
  }

  .tasks .task:first-child .task__label {
    color: var(--c-ink);
  }
}

/* Платформа — не список возможностей, а визуальное доказательство: тёмная
   рабочая поверхность и светлый фрагмент реального прогресса. */
.chapter--platform .platform-proof {
  background: var(--c-ink);
  color: var(--c-white);
}

.chapter--platform .platform-proof__copy p:not(.eyebrow) {
  color: rgba(255,255,255,.72);
}

.chapter--platform .platform-proof .eyebrow {
  color: rgba(255,255,255,.66);
}

.chapter--platform .platform-proof .btn--secondary {
  background: var(--c-white);
  border-color: var(--c-white);
  color: var(--c-ink);
}

.chapter--platform .progress-preview {
  box-shadow: 16px 16px 0 var(--c-page-accent);
}

/* На большом экране отзывы превращаются в стену доказательств: ведущий
   результат — крупно, остальные подтверждают его рядом. */
@media (min-width: 900px) {
  .reviews {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    gap: 20px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }

  .reviews .review:first-child {
    grid-column: span 2;
    min-height: 280px;
    padding: clamp(28px, 4vw, 48px);
    background: var(--c-page-accent);
  }

  .reviews .review:first-child blockquote {
    max-width: 27ch;
    font-size: clamp(22px, 2.6vw, 34px);
    line-height: 1.18;
    letter-spacing: -.03em;
  }

  .reviews .review:nth-child(2) {
    background: var(--c-ink);
    color: var(--c-white);
  }

  .reviews .review:nth-child(2) blockquote {
    color: rgba(255,255,255,.82);
  }
}

/* Цены — финальный выбор, поэтому выделенный формат должен читаться как
   готовое решение, а не ещё одна одинаковая таблица. */
.tariff--featured {
  background: var(--c-ink);
  color: var(--c-white);
  border-color: var(--c-ink);
}

.tariff--featured .tariff__note,
.tariff--featured .tariff__per {
  color: rgba(255,255,255,.68);
}

.tariff--featured .tariff__row {
  border-bottom-color: rgba(255,255,255,.18);
}

.tariff--featured .tariff__row--best {
  background: var(--c-page-accent);
  color: var(--c-ink);
}

.tariff--featured .tariff__row--best .tariff__per {
  color: rgba(44,46,42,.72);
}

.tariff--featured .btn--primary {
  background: var(--c-page-accent);
}

/* Телефон: новый мотив остаётся компактным. Основные главы получают больше
   различимого ритма, но первая карточка кейса не становится мелкой сеткой. */
@media (max-width: 799px) {
  .chapter {
    padding-top: calc(var(--section-gap) * .86);
  }

  .chapter::before {
    margin-bottom: 12px;
  }

  .chapter--case .task:first-child {
    background: var(--c-ink);
    color: var(--c-white);
  }

  .chapter--case .task:first-child .task__topic,
  .chapter--case .task:first-child .task__body dt,
  .chapter--case .task:first-child .task__body dd {
    color: rgba(255,255,255,.78);
  }

  .chapter--case .task:first-child .task__fix {
    margin-top: 22px;
    padding: 18px;
    background: var(--c-white);
    border-radius: 20px;
    color: var(--c-ink);
  }

  .chapter--case .task:first-child .task__label {
    color: var(--c-ink);
  }

  .chapter--platform .progress-preview {
    box-shadow: 8px 8px 0 var(--c-page-accent);
  }
}

.tariff--featured {
  background: var(--c-white);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
}

.tariff--featured .tariff__note,
.tariff--featured .tariff__per { color: var(--c-gray); }
.tariff--featured .tariff__row { border-bottom-color: var(--c-hairline); }
.tariff--featured .tariff__row--best { background: var(--c-cream); color: var(--c-ink); }
.tariff--featured .tariff__row--best .tariff__per { color: var(--c-gray); }
.tariff--featured .btn--primary { background: var(--c-coral); }

@media (min-width: 800px) {
  .tasks .task:first-child {
    grid-column: auto;
    display: flex;
    grid-template-columns: none;
    gap: normal;
    align-items: initial;
    padding: var(--card-pad);
    background: var(--c-white);
    color: var(--c-ink);
  }

  .tasks .task:first-child .h4 {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-hairline);
    font-size: var(--t-h4);
  }

  .tasks .task:first-child .task__topic,
  .tasks .task:first-child .task__body dt { color: var(--c-gray); }
  .tasks .task:first-child .task__body { margin: 18px 0 0; }
  .tasks .task:first-child .task__body dd { color: var(--c-ink); }
  .tasks .task:first-child .task__fix {
    margin-top: auto;
    padding: 18px 0 0;
    background: transparent;
    border-top: 1px solid var(--c-hairline);
    border-radius: 0;
    color: var(--c-ink);
  }
}

@media (min-width: 900px) {
  .reviews {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(280px, 340px);
    gap: 16px;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
  }

  .reviews .review:first-child,
  .reviews .review:nth-child(2) {
    grid-column: auto;
    min-height: 0;
    padding: var(--card-pad);
    background: var(--c-white);
    color: var(--c-ink);
  }

  .reviews .review:first-child blockquote,
  .reviews .review:nth-child(2) blockquote {
    max-width: none;
    color: var(--c-ink);
    font-size: inherit;
    line-height: inherit;
    letter-spacing: normal;
  }
}

/* В исходной hero-разметке две колонки. После удаления экспериментального
   маршрута возвращаем сетку, иначе остаётся пустая третья колонка. */
@media (min-width: 1200px) {
  .hero__grid {
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(32px, 5vw, 56px);
  }
}

/* ========================================================================
   Почему Repita. Это не набор декоративных преимуществ, а первая проверка
   обещания: узкая специализация и фрагмент настоящего живого занятия.
   ======================================================================== */

.specialization {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 112px);
}

.specialization__label {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.specialization .h2 {
  max-width: 16ch;
}

.specialization .subhead {
  max-width: 54ch;
  margin-top: 18px;
  color: var(--c-gray);
}

.specialization__proof {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--c-hairline);
}

.specialization__proof li {
  display: grid;
  grid-template-columns: minmax(120px, .75fr) 1.25fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-hairline);
  font-size: var(--t-small);
  line-height: 1.35;
}

.specialization__proof b {
  font-weight: 500;
}

.specialization__proof span {
  color: var(--c-gray);
}

.specialization__cta {
  margin-top: 24px;
}

.section-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--c-hairline);
}

.section-cta p {
  margin: 0;
  font-size: var(--t-h4);
  font-weight: 500;
}

.stats-method {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--c-gray);
  font-size: var(--t-small);
  text-align: center;
}

.stats-method summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  cursor: pointer;
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stats-method p { margin: 10px 0 0; line-height: 1.45; }

.platform-screen { margin: 0; overflow: hidden; border-radius: 22px; background: var(--c-white); }
.platform-screen img { display: block; width: 100%; height: auto; }
.platform-screen figcaption { padding: 9px 12px; color: var(--c-gray); font-size: 12px; line-height: 1.3; }

/* New mascot system: transparent PNGs are intentionally flatter and need no shadow. */
.mascot-v2 { object-fit: contain; filter: none; }
.mascot-v2--head { object-position: center bottom; }

/* --- Thank-you page ----------------------------------------------------- */

.page--thanks {
  min-height: 100svh;
  background:
    radial-gradient(circle at 82% 18%, rgba(142, 212, 98, 0.22), transparent 26rem),
    var(--c-cream);
}

.thanks-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  width: min(100%, 1120px);
  margin-inline: auto;
  padding: 24px clamp(20px, 5vw, 56px);
}

.thanks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.thanks-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

.thanks-brand img {
  width: 40px;
  height: 40px;
}

.thanks-header__note {
  color: var(--c-gray);
  font-size: var(--t-small);
}

.thanks-main {
  display: grid;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding-block: clamp(48px, 9vw, 96px);
}

.thanks-copy {
  max-width: 650px;
}

.thanks-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid var(--c-ink);
  border-radius: var(--r-pill);
  font-size: var(--t-small);
  font-weight: 500;
}

.thanks-kicker::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-green);
  font-size: 13px;
  font-weight: 700;
}

.thanks-title {
  max-width: 10ch;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.thanks-lead {
  max-width: 46ch;
  margin-top: 24px;
  color: var(--c-gray);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.4;
}

.thanks-next {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  padding: 22px;
  background: var(--c-white);
  border: 1px solid var(--c-hairline);
  border-radius: 28px;
}

.thanks-next__item {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: start;
  gap: 12px;
}

.thanks-next__number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-white);
  font-size: 13px;
  font-weight: 600;
}

.thanks-next__item p {
  margin: 3px 0 0;
  line-height: 1.4;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.thanks-actions .btn--secondary {
  border-color: var(--c-ink);
  background: transparent;
  color: var(--c-ink);
}

.thanks-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}

.thanks-visual::before {
  content: none;
}

.thanks-visual img {
  position: relative;
  width: min(82%, 320px);
  height: auto;
}

.thanks-footer {
  padding-top: 20px;
  border-top: 1px solid var(--c-hairline);
  color: var(--c-gray);
  font-size: 13px;
}

@media (min-width: 820px) {
  .thanks-main {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.75fr);
  }
}

@media (max-width: 560px) {
  .thanks-shell {
    padding-top: 16px;
  }

  .thanks-header__note {
    display: none;
  }

  .thanks-title {
    font-size: clamp(42px, 14vw, 58px);
  }

  .thanks-visual {
    min-height: 280px;
  }

  .thanks-actions {
    display: grid;
  }
}

@media (min-width: 900px) {
  .platform-proof { grid-template-columns: .72fr 1.15fr .72fr; }
}

.lesson-board {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 36px);
  background: #26352b;
  color: #f8f5ec;
  border-radius: var(--r-illus);
  box-shadow: 14px 14px 0 var(--c-page-accent);
}

.lesson-board::after {
  content: '';
  position: absolute;
  right: -42px;
  top: -42px;
  width: 120px;
  height: 120px;
  border: 22px solid var(--c-page-accent);
  border-radius: 50%;
  opacity: .9;
}

.lesson-board__top,
.lesson-board__prompt,
.lesson-board__code,
.lesson-board__reply {
  position: relative;
  z-index: 1;
}

.lesson-board__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(248,245,236,.65);
  font-size: 12px;
  font-weight: 500;
}

.lesson-board__live {
  color: var(--c-green);
}

.lesson-board__prompt {
  max-width: 38ch;
  margin: 24px 0 18px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.02em;
}

.lesson-board__code {
  overflow: hidden;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(248,245,236,.16);
  border-radius: 18px;
  background: rgba(0,0,0,.2);
  color: #f8f5ec;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.lesson-board__code span { color: #91d7ff; }
.lesson-board__code b { color: var(--c-green); font-weight: 500; }
.lesson-board__code i { color: var(--c-yellow); font-style: normal; }
.lesson-board__code em { color: var(--c-coral); font-style: normal; }

.lesson-board__reply {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.4;
}

.lesson-board__reply span {
  color: var(--c-green);
  font-weight: 500;
}

.lesson-board__reply p { margin: 0; color: rgba(248,245,236,.78); }

@media (min-width: 900px) {
  .specialization {
    grid-template-columns: minmax(0, 860px);
  }
}

@media (max-width: 799px) {
  /* На телефоне промо повторяет CTA и отнимает 102px у первого экрана. */
  .promo { display: none !important; }

  .specialization {
    gap: 28px;
    padding-block: 52px 60px;
  }

  .specialization .h2 {
    font-size: 34px;
  }

  .specialization__proof li {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-block: 13px;
  }

  .section-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
  }

  .lesson-board {
    padding: 22px;
    border-radius: 28px;
    box-shadow: 8px 8px 0 var(--c-page-accent);
  }

  .lesson-board__top { font-size: 11px; }
  .lesson-board__prompt { margin-top: 20px; font-size: 18px; }
  .lesson-board__code { padding: 14px; font-size: 11px; }
  .lesson-board__reply { grid-template-columns: 1fr; gap: 4px; }
}

/* ========================================================================
   Mobile conversion polish — один фокус на экран, без плавающих перекрытий
   ======================================================================== */

.signup-card__title {
  margin-bottom: 10px;
}

.signup-card__copy {
  margin-bottom: 20px;
}

.trust__checks {
  margin-top: 28px;
}

.trust__checks strong {
  font-weight: 650;
}

.trust__cta {
  margin-top: 32px;
}

.unis-note {
  max-width: 68ch;
  margin-top: 16px;
  line-height: 1.5;
}

.nav__drawer-contact {
  margin-top: 8px;
  padding: 12px;
  border-top: 1px solid var(--c-hairline);
  background: var(--c-cream);
  border-radius: 18px;
}

.nav__drawer-contact > span {
  display: block;
  margin-bottom: 8px;
  color: var(--c-gray);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav__drawer-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav__drawer .nav__drawer-channels a,
.nav__drawer-contact button {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--c-hairline);
  border-radius: 12px;
  background: var(--c-white);
  color: var(--c-ink);
  font: 600 13px/1 var(--font);
  text-decoration: none;
}

.nav__drawer-contact button {
  width: 100%;
  margin-top: 6px;
  cursor: pointer;
}

.nav__drawer .nav__drawer-phone {
  margin-top: 6px;
  color: var(--c-gray);
}

@media (max-width: 899px) {
  /* Способы связи доступны в меню. Отдельный FAB больше не закрывает формы. */
  .contact-fab {
    display: none;
  }

  .nav__drawer {
    width: min(300px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 88px));
    overflow-y: auto;
    box-shadow: 0 18px 44px rgba(44, 46, 42, .16);
  }
}

@media (max-width: 799px) {
  .hero {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .hero__grid {
    gap: 38px;
  }

  .hero__eyebrow {
    margin-bottom: 24px;
    padding: 8px 14px;
    font-size: 14px;
    line-height: 1.25;
  }

  .h1.hero__title {
    max-width: 100%;
    margin-bottom: 0;
    font-size: clamp(40px, 10.8vw, 46px);
    line-height: 1.05;
    letter-spacing: -.045em;
    text-wrap: wrap;
  }

  .hero__title-line {
    display: block;
  }

  .hero__sub {
    max-width: 34ch;
    margin-top: 28px;
    font-size: 18px;
    line-height: 1.45;
  }

  .checks--hero {
    gap: 14px;
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.42;
  }

  .checks--hero li {
    grid-template-columns: 26px 1fr;
    gap: 12px;
  }

  .checks--hero li::before {
    width: 26px;
    height: 26px;
  }

  .hero__mobile-cta {
    min-height: 56px;
    margin-top: 30px;
    padding-inline: 20px;
    font-size: 16px;
  }

  .hero__foot {
    gap: 5px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--c-hairline);
  }

  .hero__price {
    font-size: 15px;
    line-height: 1.5;
  }

  .hero__price strong {
    font-weight: 650;
  }

  .hero__note {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.45;
  }

  #signup {
    padding: 26px 24px 28px;
    border-radius: 30px;
  }

  .card-badge {
    position: static;
    display: inline-flex;
    width: auto;
    height: auto;
    margin: 0 0 12px;
    padding: 6px 10px;
    border-radius: var(--r-pill);
    font-size: 12px;
    line-height: 1;
    transform: none;
    animation: none;
  }

  #signup > .signup-card__title {
    padding-right: 0;
    font-size: clamp(22px, 6vw, 25px);
    line-height: 1.15;
    letter-spacing: -.035em;
    white-space: nowrap;
  }

  .signup-card__copy {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.5;
  }

  #signup .form__response {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
  }

  #signup .form {
    margin-top: 0;
  }

  .specialization {
    gap: 30px;
    padding-block: 58px 64px;
  }

  .specialization .h2 {
    font-size: 35px;
    line-height: 1.06;
  }

  .specialization .subhead {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.5;
  }

  .specialization__proof {
    margin-top: 26px;
  }

  .specialization__proof li {
    gap: 4px;
    padding-block: 16px;
  }

  .specialization__proof b {
    font-size: 18px;
    font-weight: 650;
    line-height: 1.25;
  }

  .specialization__proof span {
    font-size: 14px;
    line-height: 1.45;
  }

  .specialization__cta {
    width: 100%;
    min-height: 54px;
    margin-top: 26px;
  }

  .section-cta {
    align-items: stretch;
    gap: 16px;
    margin-top: 26px;
    padding: 20px;
    border: 1px solid var(--c-hairline);
    border-radius: 24px;
    background: var(--c-white);
  }

  .section-cta p {
    font-size: 21px;
    line-height: 1.28;
    letter-spacing: -.02em;
  }

  .section-cta .btn {
    width: 100%;
    min-height: 52px;
  }

  .stats-method {
    margin-top: 10px;
    font-size: 13px;
  }

  .trust {
    padding: 28px 24px;
    border-radius: 30px;
  }

  .trust .h2 {
    font-size: 36px;
    line-height: 1.04;
  }

  .trust__checks {
    gap: 18px;
    margin-top: 26px;
    font-size: 16px;
    line-height: 1.42;
  }

  .trust__checks strong {
    text-decoration: underline;
    text-decoration-color: var(--c-green);
    text-decoration-thickness: 4px;
    text-underline-offset: 2px;
    text-decoration-skip-ink: none;
  }

  .trust__cta {
    width: 100%;
    margin-top: 28px;
  }

  .unis-note {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.45;
  }

  #tariffs .section__head {
    margin-bottom: 26px;
  }

  #tariffs .section__head .subhead {
    max-width: 34ch;
    font-size: 15px;
  }

  .tariff {
    padding: 24px 22px 22px;
    border-radius: 30px;
  }

  .tariff__sticker {
    position: static;
    order: -1;
    align-self: flex-start;
    margin: 0 0 12px;
    padding: 5px 9px;
    border: 1px solid var(--c-green);
    background: transparent;
    color: var(--c-ink);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .02em;
    animation: none;
  }

  .tariff__head {
    margin-bottom: 4px;
  }

  .tariff__head .h4 {
    font-size: 27px;
    line-height: 1.1;
  }

  .tariff__note {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.4;
  }

  .tariff__list {
    margin-bottom: 22px;
  }

  .tariff__row {
    min-height: 58px;
    padding: 12px 0;
  }

  .tariff__qty {
    font-size: 16px;
  }

  .tariff__qty .chip {
    padding: 2px 7px;
    border: 0;
    background: rgba(142, 212, 98, .22);
    font-size: 11px;
  }

  .tariff__price b {
    font-size: 20px;
    font-weight: 650;
  }

  .tariff__per {
    font-size: 12px;
  }

  .tariff .btn {
    min-height: 52px;
    font-size: 15px;
  }

  /* Плавающая планка исчезает рядом с любой видимой CTA (логика в app.js).
     На самом узком экране она становится одной понятной кнопкой. */
  .stickybar {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 8px;
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(44, 46, 42, .16);
  }
}

@media (max-width: 520px) {
  .stickybar__text {
    display: none;
  }

  .stickybar .btn {
    width: 100%;
    min-height: 50px;
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .h1.hero__title {
    font-size: 37px;
  }

  #signup > .signup-card__title {
    font-size: 21px;
  }
}

/* --- Постоянная связь: номер в шапке и единый мобильный док ------------ */
.mobile-phone-fab {
  display: none;
}

@media (min-width: 900px) {
  .nav__phone {
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    padding-inline: 14px;
    border: 1px solid var(--c-hairline);
    border-radius: var(--r-pill);
    background: var(--c-cream);
    font-weight: 650;
    transition: border-color .16s ease, background .16s ease;
  }

  .nav__phone::before {
    content: '';
    width: 17px;
    height: 17px;
    flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c2e2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.2 3.5 9 7.7a1 1 0 0 1-.3 1.1l-1.4 1.1a14.8 14.8 0 0 0 6.8 6.8l1.1-1.4a1 1 0 0 1 1.1-.3l4.2 1.8a1 1 0 0 1 .6 1v2.4a1 1 0 0 1-.9 1C11 22 2 13 2.8 3.8a1 1 0 0 1 1-.9h2.4a1 1 0 0 1 1 .6Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .nav__phone:hover {
    border-color: rgba(44, 46, 42, .35);
    background: var(--c-white);
  }
}

@media (max-width: 899px) {
  .mobile-phone-fab {
    position: fixed;
    left: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 68;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(44, 46, 42, .16);
    border-radius: 18px;
    background: var(--c-ink);
    color: var(--c-white);
    box-shadow: 0 12px 34px rgba(44, 46, 42, .2);
  }

  .mobile-phone-fab svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-phone-fab:focus-visible {
    outline: 3px solid rgba(132, 207, 90, .5);
    outline-offset: 2px;
  }

  .stickybar {
    left: 72px;
    right: 72px;
  }

  .contact-fab {
    display: block;
    left: auto;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 54px;
  }

  .contact-fab[open] {
    width: min(318px, calc(100vw - 20px));
  }

  .contact-fab__trigger {
    width: 54px;
    min-height: 54px;
    margin-left: auto;
    padding: 8px;
    border-radius: 18px;
  }

  .contact-fab__trigger-icon {
    width: 38px;
    height: 38px;
  }

  .contact-fab__trigger > span:not(.contact-fab__trigger-icon),
  .contact-fab__chevron {
    display: none;
  }

  .contact-fab__panel {
    right: 0;
    left: auto;
    width: min(318px, calc(100vw - 20px));
    max-height: calc(100vh - 94px - env(safe-area-inset-bottom));
    overflow-y: auto;
    transform-origin: bottom right;
  }
}

@media (max-width: 520px) {
  .stickybar {
    padding: 6px;
    border-radius: 20px;
  }

  .stickybar .btn {
    min-height: 52px;
    padding-inline: 10px;
    font-size: 14px;
  }
}

/* --- Экран платформы: крупное доказательство вместо служебного макета -- */
.platform-screen {
  border: 1px solid rgba(44, 46, 42, .12);
  box-shadow: 0 18px 38px rgba(44, 46, 42, .12);
}

@media (min-width: 900px) {
  .platform-proof {
    grid-template-columns: minmax(250px, .62fr) minmax(0, 1.38fr);
    align-items: start;
  }

  .platform-proof__copy {
    grid-column: 1;
  }

  .platform-screen {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .progress-preview {
    grid-column: 1;
  }
}

@media (max-width: 599px) {
  .platform-screen {
    width: calc(100% + 40px);
    margin-inline: -20px;
    aspect-ratio: 4 / 3;
  }

  .platform-screen img {
    width: 205%;
    max-width: none;
    height: auto;
    transform: translate(-18%, -3%);
  }
}

/* --- Платформа как серия реальных экранов ------------------------------- */
.legacy-platform[hidden] {
  display: none !important;
}

.platform-showcase-section .section__head {
  max-width: 820px;
}

.platform-carousel-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .72);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.platform-carousel-tabs::-webkit-scrollbar {
  display: none;
}

.platform-carousel-tabs button {
  flex: 1 0 auto;
  min-width: 112px;
  padding: 11px 13px;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--c-gray);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.platform-carousel-tabs button span {
  margin-right: 5px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  opacity: .6;
}

.platform-carousel-tabs button[aria-pressed="true"] {
  background: var(--c-ink);
  color: var(--c-white);
}

.platform-carousel-tabs button:not([aria-pressed="true"]):hover {
  color: var(--c-ink);
  transform: translateY(-1px);
}

.platform-carousel-tabs button:focus-visible {
  outline: 3px solid rgba(45, 156, 240, .42);
  outline-offset: 2px;
}

.platform-showcase {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.platform-showcase::-webkit-scrollbar {
  display: none;
}

.platform-showcase > .platform-feature {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.platform-feature {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(44, 46, 42, .14);
  border-radius: 32px;
  background: var(--c-white);
  box-shadow: 0 14px 34px rgba(44, 46, 42, .06);
}

.platform-feature__copy {
  padding: clamp(22px, 3vw, 34px);
}

.platform-feature__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--c-gray);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.platform-feature__kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--c-green);
}

.platform-feature h3 {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 36px);
  font-weight: 520;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.platform-feature__copy > p:last-child,
.platform-feature__copy > h3 + p {
  max-width: 52ch;
  margin: 16px 0 0;
  color: var(--c-gray);
  font-size: 16px;
  line-height: 1.5;
}

.platform-feature__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.platform-feature__facts li {
  padding: 8px 12px;
  border-radius: var(--r-pill);
  background: var(--c-cream);
  font-size: 13px;
  font-weight: 600;
}

.platform-feature__visual {
  position: relative;
  overflow: hidden;
  display: block;
  min-width: 0;
  margin: 0 18px 18px;
  border: 1px solid rgba(44, 46, 42, .13);
  border-radius: 22px;
  background: #f7f8fa;
  color: var(--c-ink);
  text-decoration: none;
}

.platform-feature__visual img {
  display: block;
  width: 100%;
  height: auto;
}

.platform-feature__visual span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(44, 46, 42, .12);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 14px rgba(44, 46, 42, .1);
  font-size: 11px;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.platform-feature__visual:focus-visible {
  outline: 3px solid rgba(45, 156, 240, .45);
  outline-offset: 3px;
}

.platform-showcase__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(44, 46, 42, .14);
  border-radius: 26px;
  background: var(--c-ink);
  color: var(--c-white);
}

.platform-showcase__cta p {
  max-width: 52ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}

.platform-showcase__cta .btn {
  flex: none;
}

@media (min-width: 820px) {
  .platform-feature {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
    align-items: center;
  }

  .platform-feature__visual {
    grid-column: 2;
    grid-row: 1;
    margin: 24px 24px 24px 0;
  }

  .platform-feature__copy {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (max-width: 819px) {
  .platform-feature__visual {
    aspect-ratio: 4 / 3;
  }

  .platform-feature__visual img {
    width: 120%;
    max-width: none;
    transform: translateX(-16%);
  }

  .platform-feature__copy {
    order: 2;
  }

  .platform-feature__visual {
    order: 1;
    margin: 16px 16px 0;
  }

  .platform-feature h3 {
    font-size: 26px;
  }

  .platform-showcase__cta {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .platform-showcase__cta .btn {
    width: 100%;
  }
}

@media (hover: hover) {
  .platform-feature__visual {
    transition: transform .18s ease, box-shadow .18s ease;
  }

  .platform-feature__visual:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(44, 46, 42, .12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-carousel-tabs button,
  .platform-feature__visual {
    transition: none;
  }
}

/* --- Карусель экранов платформы и просмотр без новой вкладки ------------ */
.platform-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 0;
}

.platform-carousel-nav__count {
  min-width: 72px;
  color: var(--c-gray);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.platform-carousel-nav__buttons {
  display: flex;
  gap: 8px;
}

.platform-carousel-nav button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(44, 46, 42, .18);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-ink);
  font: inherit;
  font-size: 21px;
  cursor: pointer;
}

.platform-carousel-nav button:disabled {
  opacity: .34;
  cursor: default;
}

.platform-carousel-nav button:focus-visible {
  outline: 3px solid rgba(45, 156, 240, .42);
  outline-offset: 2px;
}

.platform-lightbox {
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: #15171b;
  color: #f5f2ec;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

.platform-lightbox::backdrop {
  background: rgba(15, 17, 20, .78);
  backdrop-filter: blur(7px);
}

.platform-lightbox__frame {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.platform-lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 108px);
  border-radius: 16px;
  object-fit: contain;
}

.platform-lightbox__caption {
  margin: 0;
  padding: 0 52px 2px 4px;
  color: rgba(245, 242, 236, .72);
  font-size: 13px;
  line-height: 1.35;
}

.platform-lightbox__close {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(245, 242, 236, .96);
  color: #15171b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.platform-lightbox__close:focus-visible {
  outline: 3px solid rgba(99, 184, 234, .72);
  outline-offset: 3px;
}

.has-platform-lightbox,
.has-platform-lightbox body {
  overflow: hidden;
}

@media (max-width: 819px) {
  .platform-carousel-tabs {
    width: calc(100% + 20px);
    margin-right: -20px;
    padding-right: 20px;
    border-right: 0;
    border-radius: 24px 0 0 24px;
  }

  .platform-carousel-tabs button {
    flex-basis: auto;
  }

  .platform-lightbox {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    border-radius: 18px;
  }

  .platform-lightbox__frame {
    padding: 8px;
  }

  .platform-lightbox__image {
    max-height: calc(100vh - 82px);
    border-radius: 12px;
  }

  .platform-lightbox__caption {
    padding: 0 48px 2px 4px;
    font-size: 12px;
  }

  .platform-lightbox__close {
    right: 14px;
    bottom: 11px;
  }
}
