/* ==========================================================================
   EngPulse — лендинг ОГЭ/ЕГЭ. Стили (БЭМ, mobile-first, CSS custom properties)
   Палитра бренда: navy #1B2A49 / coral #FF5B4A
   Готово к нарезке в шаблон (1С-Битрикс): без inline-стилей, без utility-хаоса.
   ========================================================================== */

/* --- Токены ------------------------------------------------------------- */
:root {
  /* Цвета */
  --navy:        #1B2A49;   /* основной тёмно-синий: структура и текст */
  --navy-800:    #16233D;
  --navy-700:    #243757;
  --navy-600:    #33486B;
  --coral:       #FF5B4A;   /* акцент */
  --coral-600:   #F0473A;
  --coral-soft:  #FFE7E2;   /* коралловый тинт для подложек */
  --cream:       #F7F3EC;   /* молочный фон страницы */
  --cream-2:     #FBF8F2;
  --sky:         #EAF1F8;   /* светло-голубой вторичный блок */
  --sky-soft:    #F1F6FB;
  --beige:       #F3EDE2;   /* тёплый бежевый */
  --white:       #FFFFFF;
  --ink:         #1B2A49;   /* основной текст */
  --ink-70:      #45556C;   /* приглушённый текст */
  --ink-50:      #6B7A8D;   /* мета / подписи */
  --line:        rgba(27, 42, 73, .12);
  --line-soft:   rgba(27, 42, 73, .08);

  /* Тени */
  --shadow-sm: 0 2px 8px rgba(27, 42, 73, .05);
  --shadow:    0 14px 36px rgba(27, 42, 73, .08);
  --shadow-lg: 0 28px 70px rgba(27, 42, 73, .16);
  --shadow-coral: 0 12px 28px rgba(255, 91, 74, .28);

  /* Радиусы */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Отступы (единая шкала) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 88px; --sp-10: 120px;

  --container: 1200px;
  --header-h: 72px;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- База --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--coral); color: #fff; }

/* Доступность: видимый фокус */
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip-link */
.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: var(--r-sm); z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* --- Типографика -------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(33px, 5.4vw, 60px); }
h2 { font-size: clamp(27px, 3.6vw, 42px); letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-600);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow--light { color: var(--coral); }
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--coral); border-radius: 2px;
}

.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-70); line-height: 1.6; }

/* --- Сетка / секции ----------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--sky { background: var(--sky); }
.section--navy { background: var(--navy); color: #fff; }
.section--tight { padding-top: clamp(36px, 5vw, 56px); }

.section__head { max-width: 720px; margin: 0 0 var(--sp-7); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title { margin: 14px 0 0; }
.section__sub { margin: 16px 0 0; }

/* --- Кнопки ------------------------------------------------------------- */
.btn {
  --btn-h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 26px;
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--coral); color: #fff; box-shadow: var(--shadow-coral); }
.btn--primary:hover { background: var(--coral-600); transform: translateY(-2px); box-shadow: 0 18px 34px rgba(255,91,74,.34); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); background: rgba(27,42,73,.04); transform: translateY(-2px); }

.btn--ghost-light { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost-light:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--block { width: 100%; }
.btn--lg { --btn-h: 58px; font-size: 17px; padding: 0 32px; }
.btn--sm { --btn-h: 44px; font-size: 15px; padding: 0 18px; }

/* --- Бейджи / пилюли ---------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  background: var(--white); color: var(--navy); border: 1px solid var(--line);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.pill--coral { background: var(--coral-soft); border-color: transparent; color: var(--coral-600); }
.pill--navy  { background: var(--navy); border-color: transparent; color: #fff; }
.pill--navy .pill__dot { background: var(--coral); }
.pill--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }

.badge-reco {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--coral); color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: .01em;
  box-shadow: var(--shadow-coral);
}
.badge-reco::before { content: "★"; font-size: 12px; }

/* Пульс-линия (мотив бренда) */
.pulse-line { display: block; width: 100%; height: 26px; color: var(--coral); opacity: .9; }
.pulse-line path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(247, 243, 236, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .35s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.header--scrolled { background: rgba(247,243,236,.92); border-bottom-color: var(--line-soft); box-shadow: var(--shadow-sm); }
.header--hidden { transform: translateY(-100%); }

.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--sp-5);
}
.header__logo { display: flex; align-items: center; gap: 10px; height: 34px; flex-shrink: 0; }
.header__logo img { height: 34px; width: auto; }
.brand-word { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }

.nav { display: none; }
@media (min-width: 992px) {
  .nav { display: flex; align-items: center; gap: 4px; margin: 0 auto 0 8px; }
}
.nav__link {
  padding: 9px 14px; border-radius: var(--r-sm);
  font-size: 15.5px; font-weight: 600; color: var(--ink-70);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav__link:hover { color: var(--navy); background: rgba(27,42,73,.05); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: var(--r-sm);
  background: var(--white); border: 1px solid var(--line);
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.cart-btn:hover { border-color: var(--navy); transform: translateY(-1px); }
.cart-btn img { width: 28px; height: 28px; }
.cart-btn__count {
  position: absolute; top: -7px; right: -7px;
  min-width: 21px; height: 21px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--coral); color: #fff; font-size: 12px; font-weight: 800;
  border-radius: var(--r-pill); border: 2px solid var(--cream);
  transform: scale(0); transition: transform .25s var(--ease);
}
.cart-btn__count.is-visible { transform: scale(1); }

.header__cta { display: none; }
@media (min-width: 992px) { .header__cta { display: inline-flex; } }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: var(--r-sm);
  background: var(--white); border: 1px solid var(--line);
}
.burger img { width: 28px; height: 28px; }
@media (min-width: 992px) { .burger { display: none; } }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 120;
  background: var(--navy); color: #fff;
  display: flex; flex-direction: column;
  padding: 20px;
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .4s var(--ease), opacity .3s var(--ease), visibility .3s;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mobile-menu__close {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2); color: #fff;
  font-size: 26px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6px; font-size: 22px; font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-menu__link::after { content: "→"; color: var(--coral); }
.mobile-menu__cta { margin-top: auto; padding-top: 24px; display: grid; gap: 12px; }

/* ==========================================================================
   Hero (2 варианта)
   ========================================================================== */
.hero { position: relative; padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(255,91,74,.08), transparent 70%),
    radial-gradient(50% 60% at 5% 30%, rgba(33,72,107,.07), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }

.hero-variant { display: none; }
.hero-variant.is-active { display: block; animation: fadeUp .5s var(--ease) both; }

/* Бейджи под CTA */
.hero__badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 480px) { .hero__cta .btn { width: 100%; } }

/* --- Hero A: split (текст слева, маршрут-карта справа) ------------------- */
.heroA__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 56px); align-items: center;
}
@media (min-width: 980px) { .heroA__grid { grid-template-columns: 1.04fr .96fr; } }
.heroA__title { margin-top: 22px; }
.heroA__sub { margin-top: 22px; max-width: 560px; }

/* --- Hero B: центр, маршрут широкой полосой снизу ----------------------- */
.heroB__head { max-width: 860px; margin: 0 auto; text-align: center; }
.heroB__title { margin-top: 22px; }
.heroB__sub { margin-top: 22px; margin-left: auto; margin-right: auto; max-width: 680px; }
.heroB .hero__cta, .heroB .hero__badges { justify-content: center; }
.heroB__stage { margin-top: clamp(40px, 5vw, 60px); }

/* ==========================================================================
   UI-макет: карточка платформы + маршрут
   ========================================================================== */
.ui-card {
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  padding: 22px;
}
.ui-card__bar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.ui-card__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.ui-card__dot:nth-child(1) { background: #FFB4AC; }
.ui-card__tag { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-50); letter-spacing: .08em; text-transform: uppercase; }

.ui-quiz { display: flex; align-items: center; gap: 16px; padding: 4px 2px 18px; border-bottom: 1px dashed var(--line); }
.ui-quiz__ring {
  --val: 78;
  width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--coral) calc(var(--val) * 1%), var(--sky) 0);
  display: grid; place-items: center;
}
.ui-quiz__ring::after {
  content: ""; width: 66px; height: 66px; background: #fff; border-radius: 50%;
  grid-area: 1/1; box-shadow: inset 0 0 0 1px var(--line-soft);
}
.ui-quiz__val { grid-area: 1/1; z-index: 1; font-weight: 800; font-size: 22px; color: var(--navy); }
.ui-quiz__val span { font-size: 13px; color: var(--ink-50); font-weight: 600; }
.ui-quiz__meta { display: flex; flex-direction: column; gap: 4px; }
.ui-quiz__label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); }
.ui-quiz__name { font-weight: 800; font-size: 18px; color: var(--navy); }
.ui-quiz__hint { font-size: 13.5px; color: var(--ink-70); }

.ui-weak { margin-top: 16px; }
.ui-weak__title { font-size: 13px; font-weight: 700; color: var(--ink-70); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ui-weak__title::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--coral); }
.ui-bar { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 12px; margin-bottom: 11px; }
.ui-bar__name { font-size: 13px; font-weight: 600; color: var(--navy); }
.ui-bar__track { height: 8px; border-radius: 999px; background: var(--sky); overflow: hidden; }
.ui-bar__fill { height: 100%; border-radius: 999px; background: var(--coral); width: 0; transition: width 1s var(--ease); }
.ui-bar__fill--ok { background: #36B37E; }
.ui-bar__pct { font-family: var(--mono); font-size: 12px; color: var(--ink-50); text-align: right; }

.ui-mini-courses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.ui-mini { padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--cream-2); }
.ui-mini__k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); }
.ui-mini__v { font-size: 14px; font-weight: 700; color: var(--navy); margin-top: 4px; }

/* Маршрут подготовки (route) — главный визуал hero */
.route { position: relative; }
.route--horizontal { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; }
.route--card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 34px) clamp(16px, 3vw, 30px); }

.route__step { position: relative; padding-top: 30px; text-align: center; }
.route__node {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; z-index: 2;
  background: var(--white); border: 2px solid var(--line);
  font-weight: 800; font-size: 16px; color: var(--ink-50);
  transition: transform .2s var(--ease);
}
.route__step--accent .route__node { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: var(--shadow-coral); }
.route__step--end .route__node { background: var(--navy); border-color: var(--navy); color: #fff; }
.route__name { margin-top: 16px; font-weight: 800; font-size: 16px; color: var(--navy); letter-spacing: -0.01em; }
.route__desc { margin-top: 6px; font-size: 13px; color: var(--ink-70); line-height: 1.45; padding: 0 4px; }
/* соединительная линия между шагами */
.route--horizontal .route__step::before {
  content: ""; position: absolute; top: 22px; left: -50%; width: 100%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 7px, transparent 7px 13px); z-index: 1;
}
.route--horizontal .route__step:first-child::before { display: none; }

/* вертикальный маршрут (mobile + Hero A) */
.route--vertical { display: flex; flex-direction: column; gap: 0; }
.route--vertical .route__step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; text-align: left; padding: 0 0 26px; }
.route--vertical .route__node { position: static; transform: none; }
.route--vertical .route__step::before {
  content: ""; position: absolute; left: 22px; top: 46px; bottom: -4px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--line) 0 7px, transparent 7px 13px);
}
.route--vertical .route__step:last-child { padding-bottom: 0; }
.route--vertical .route__step:last-child::before { display: none; }
.route--vertical .route__body { padding-top: 4px; }
.route--vertical .route__name { margin-top: 0; }
.route--vertical .route__desc { padding: 0; }

@media (max-width: 720px) {
  .route--responsive.route--horizontal { display: flex; flex-direction: column; }
  .route--responsive.route--horizontal .route__step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; text-align: left; padding: 0 0 24px; padding-top: 0; }
  .route--responsive.route--horizontal .route__node { position: static; transform: none; }
  .route--responsive.route--horizontal .route__step::before {
    top: 46px; left: 22px; bottom: -2px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 7px, transparent 7px 13px);
  }
  .route--responsive.route--horizontal .route__step:last-child { padding-bottom: 0; }
  .route--responsive.route--horizontal .route__step:last-child::before { display: none; }
  .route--responsive .route__name { margin-top: 0; }
  .route--responsive .route__desc { padding: 0; }
}

/* ==========================================================================
   Блок боли — карточки
   ========================================================================== */
.cards-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards-grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px) { .cards-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .cards-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.pain-card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pain-card__num {
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--coral-600);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.pain-card__num::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--coral); }
.pain-card__title { font-size: 18px; font-weight: 800; color: var(--navy); }
.pain-card__text { margin-top: 8px; font-size: 14.5px; color: var(--ink-70); line-height: 1.5; }

/* ==========================================================================
   Блок решения (navy) — маршрут-система
   ========================================================================== */
.solution__route { margin-top: clamp(36px, 5vw, 52px); }
.solution .route__node { background: #fff; border-color: #fff; color: var(--navy); }
.solution .route__step--accent .route__node { background: var(--coral); border-color: var(--coral); color: #fff; }
.solution .route__step--end .route__node { background: #fff; border-color: #fff; color: var(--navy); }
.solution .route__name { color: #fff; }
.solution .route__desc { color: rgba(255,255,255,.88); }
.solution .route--horizontal .route__step::before,
.solution .route--responsive.route--horizontal .route__step::before {
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 7px, transparent 7px 13px);
}
@media (max-width: 720px) {
  .solution .route--responsive.route--horizontal .route__step::before {
    background: repeating-linear-gradient(180deg, rgba(255,255,255,.28) 0 7px, transparent 7px 13px);
  }
}

/* ==========================================================================
   Блок 3 курсов
   ========================================================================== */
.courses-grid { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 800px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }

.course {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-xl);
  padding: 26px 24px 24px; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course--featured {
  border: 1.5px solid var(--coral);
  box-shadow: 0 18px 50px rgba(255,91,74,.16);
}
/* featured-карточки выделяются рамкой и тенью — без масштабирования (четыре карточки в ряд) */
.course__badge { position: absolute; top: -14px; left: 24px; }

.course__type { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50); }
.course__title { margin-top: 12px; font-size: 22px; font-weight: 800; color: var(--navy); }
.course__subtitle { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--coral-600); }
.course__offer { margin-top: 14px; font-size: 15px; color: var(--ink-70); line-height: 1.5; }

.course__block { margin-top: 20px; }
.course__block-title { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-50); margin-bottom: 10px; }
.course__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.course__list li { position: relative; padding-left: 26px; font-size: 14px; color: var(--navy); line-height: 1.45; }
.course__list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  background: var(--coral-soft); border-radius: 5px;
}
.course__list li::after {
  content: ""; position: absolute; left: 5px; top: 7px; width: 6px; height: 3px;
  border-left: 2px solid var(--coral-600); border-bottom: 2px solid var(--coral-600);
  transform: rotate(-45deg);
}
.course__result {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--sky-soft); border: 1px solid var(--line-soft);
  font-size: 13.5px; color: var(--navy); line-height: 1.5;
}
.course__result b { color: var(--coral-600); }

.course__foot { margin-top: auto; padding-top: 22px; }
.course__price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.course__price { font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.course__price-meta { font-size: 13px; color: var(--ink-50); }
.course__access { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 12.5px; color: var(--ink-50); font-family: var(--mono); }
.course__access img { width: 19px; height: 19px; opacity: .85; }

/* ==========================================================================
   Как выбрать курс
   ========================================================================== */
.chooser { display: grid; gap: 14px; }
.choose-row {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.choose-row:hover { transform: translateX(4px); box-shadow: var(--shadow); }
@media (min-width: 760px) { .choose-row { grid-template-columns: 1.4fr auto 1fr; align-items: center; gap: 20px; } }
.choose-row__situation { font-size: 16px; font-weight: 700; color: var(--navy); }
.choose-row__arrow { display: none; color: var(--coral); font-size: 20px; }
@media (min-width: 760px) { .choose-row__arrow { display: block; text-align: center; } }
.choose-row__pick {
  display: inline-flex; align-items: center; gap: 9px; align-self: start;
  padding: 8px 14px; border-radius: var(--r-pill); background: var(--coral-soft);
  color: var(--coral-600); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.choose-row__pick::before { content: "→"; }
@media (min-width: 760px) { .choose-row__pick::before { display: none; } }

/* ==========================================================================
   Аудитории (родители / ученики / преподаватели)
   ========================================================================== */
.aud {
  display: grid; gap: clamp(28px, 4vw, 48px); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .aud { grid-template-columns: 1fr 1fr; } .aud--reverse .aud__media { order: -1; } }

.aud__icon {
  width: 70px; height: 70px; border-radius: var(--r-md);
  background: var(--white); border: 1px solid var(--line-soft);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.aud__icon img { width: 42px; height: 42px; }
.aud__title { margin-bottom: 14px; }
.aud__text { color: var(--ink-70); }
.aud__list { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 11px; }
.aud__list li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--navy); }
.aud__list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  border-radius: 6px; background: var(--coral-soft);
}
.aud__list li::after {
  content: ""; position: absolute; left: 6px; top: 6px; width: 7px; height: 4px;
  border-left: 2px solid var(--coral-600); border-bottom: 2px solid var(--coral-600); transform: rotate(-45deg);
}

/* мини-карточки внутри аудитории */
.aud__cards { display: grid; gap: 14px; }
.mini-feature {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.mini-feature__k { font-family: var(--mono); font-size: 12px; color: var(--coral-600); letter-spacing: .08em; text-transform: uppercase; }
.mini-feature__title { margin-top: 8px; font-size: 18px; font-weight: 800; color: var(--navy); }
.mini-feature__text { margin-top: 7px; font-size: 14.5px; color: var(--ink-70); line-height: 1.5; }

/* ==========================================================================
   Преимущества
   ========================================================================== */
.benefit {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit__mark {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: var(--coral-soft); display: grid; place-items: center;
}
.benefit__mark::after {
  content: ""; width: 14px; height: 8px; border-left: 2.5px solid var(--coral-600);
  border-bottom: 2.5px solid var(--coral-600); transform: rotate(-45deg) translateY(-2px);
}
.benefit__title { font-size: 16.5px; font-weight: 800; color: var(--navy); }
.benefit__text { margin-top: 6px; font-size: 14px; color: var(--ink-70); line-height: 1.5; }

/* ==========================================================================
   Чек-лист результата
   ========================================================================== */
.results {
  display: grid; gap: clamp(28px, 4vw, 48px); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 920px) { .results { grid-template-columns: .92fr 1.08fr; } }
.results__card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-xl);
  box-shadow: var(--shadow); padding: clamp(24px, 3vw, 34px);
}
.results__card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; }
.results__card-head img { width: 48px; height: 48px; }
.results__card-head span { font-weight: 800; color: var(--navy); font-size: 17px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 36px; font-size: 15.5px; color: var(--navy); line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px;
  border-radius: 7px; background: var(--coral); box-shadow: var(--shadow-coral);
}
.check-list li::after {
  content: ""; position: absolute; left: 7px; top: 6px; width: 9px; height: 5px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  overflow: hidden; transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.faq-item.is-open { box-shadow: var(--shadow); border-color: var(--line); }
.faq-item__q {
  width: 100%; text-align: left; background: none; border: none;
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 20px 22px; font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.4;
}
.faq-item__icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  background: var(--coral-soft); color: var(--coral-600); position: relative;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.faq-item__icon::before { width: 12px; height: 2.5px; }
.faq-item__icon::after { width: 2.5px; height: 12px; }
.faq-item.is-open .faq-item__icon { background: var(--coral); color: #fff; }
.faq-item.is-open .faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-item__a-inner { padding: 0 22px 22px; font-size: 15.5px; color: var(--ink-70); line-height: 1.6; }

/* ==========================================================================
   Финальный CTA
   ========================================================================== */
.final { text-align: center; position: relative; overflow: hidden; }
.final__bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 0%, rgba(255,91,74,.16), transparent 70%);
}
.final .container { position: relative; z-index: 1; }
.final__title { margin: 18px auto 0; max-width: 760px; }
.final__text { margin: 18px auto 0; max-width: 600px; color: rgba(255,255,255,.78); }
.final__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (max-width: 480px) { .final__cta .btn { width: 100%; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-800); color: rgba(255,255,255,.7); padding: clamp(48px, 6vw, 72px) 0 32px; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__logo img { height: 32px; }
.footer__about { margin-top: 18px; max-width: 320px; font-size: 14px; line-height: 1.6; }
.footer__col-title { color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer__link { display: block; padding: 6px 0; font-size: 15px; color: rgba(255,255,255,.7); transition: color .15s var(--ease); }
.footer__link:hover { color: #fff; }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.5); }

/* ==========================================================================
   Мини-корзина (drawer) + checkout
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 130; background: rgba(20, 30, 52, .5);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 140; height: 100%;
  width: min(440px, 100%); background: var(--cream);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s var(--ease);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; gap: 12px; padding: 20px;
  border-bottom: 1px solid var(--line-soft); background: var(--white);
}
.drawer__head img { width: 30px; height: 30px; }
.drawer__title { font-size: 19px; font-weight: 800; color: var(--navy); }
.drawer__close {
  margin-left: auto; width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--cream); border: 1px solid var(--line); color: var(--navy);
  font-size: 22px; line-height: 1; display: grid; place-items: center;
}
.drawer__body { flex: 1; overflow-y: auto; padding: 20px; }

.cart-empty { text-align: center; padding: 56px 20px; color: var(--ink-50); }
.cart-empty img { width: 68px; height: 68px; opacity: .55; margin: 0 auto 16px; }
.cart-empty__title { font-weight: 800; color: var(--navy); font-size: 18px; margin-bottom: 8px; }

.cart-item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 16px; margin-bottom: 12px;
}
.cart-item__name { font-size: 15px; font-weight: 800; color: var(--navy); line-height: 1.35; }
.cart-item__meta { font-family: var(--mono); font-size: 11px; color: var(--ink-50); letter-spacing: .05em; text-transform: uppercase; margin-top: 4px; }
.cart-item__price { font-size: 16px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.cart-item__remove {
  grid-column: 2; justify-self: end; margin-top: 4px;
  background: none; border: none; color: var(--ink-50); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px;
}
.cart-item__remove:hover { color: var(--coral-600); }
.cart-item__remove::before { content: "✕"; font-size: 11px; }

.cart-foot { padding: 20px; border-top: 1px solid var(--line-soft); background: var(--white); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.cart-total__label { font-size: 15px; color: var(--ink-70); font-weight: 600; }
.cart-total__sum { font-size: 26px; font-weight: 800; color: var(--navy); }

/* Checkout form */
.checkout { display: none; }
.checkout.is-active { display: block; animation: fadeUp .35s var(--ease) both; }
.cart-list-view.is-hidden { display: none; }

.field { margin-bottom: 14px; }
.field__label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.field__label span { color: var(--coral-600); }
.field__input {
  width: 100%; height: 50px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white);
  font-family: inherit; font-size: 15px; color: var(--navy); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field__input::placeholder { color: var(--ink-50); }
.field__input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,91,74,.14); }
.field__input.is-error { border-color: var(--coral-600); box-shadow: 0 0 0 3px rgba(255,91,74,.12); }
.field__error { display: none; margin-top: 6px; font-size: 12.5px; color: var(--coral-600); font-weight: 600; }
.field__error.is-visible { display: block; }

.consent { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 12px; cursor: pointer; }
.consent__box {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px;
  border: 1.5px solid var(--line); background: var(--white); position: relative; transition: background .15s var(--ease), border-color .15s var(--ease);
}
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent input:checked + .consent__box { background: var(--coral); border-color: var(--coral); }
.consent input:checked + .consent__box::after {
  content: ""; position: absolute; left: 6px; top: 3px; width: 7px; height: 11px;
  border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(40deg);
}
.consent input:focus-visible + .consent__box { outline: 3px solid var(--coral); outline-offset: 2px; }
.consent__text { font-size: 13px; color: var(--ink-70); line-height: 1.45; }
.consent__text a { color: var(--coral-600); text-decoration: underline; }
.consent.is-error .consent__box { border-color: var(--coral-600); box-shadow: 0 0 0 3px rgba(255,91,74,.12); }

.checkout__back {
  background: none; border: none; color: var(--ink-70); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; padding: 4px 0;
}
.checkout__back::before { content: "←"; color: var(--coral); }
.secure-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--ink-50); font-family: var(--mono); }
.secure-note img { width: 19px; height: 19px; opacity: .85; }

/* ==========================================================================
   Переключатель hero-вариантов (для презентации заказчику)
   ========================================================================== */
.variant-switch {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: var(--navy); border-radius: var(--r-pill); box-shadow: var(--shadow-lg);
}
.variant-switch__label { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); padding: 0 10px 0 8px; }
.variant-switch__btn {
  border: none; background: transparent; color: rgba(255,255,255,.7);
  padding: 8px 16px; border-radius: var(--r-pill); font-weight: 700; font-size: 13px; transition: background .2s var(--ease), color .2s var(--ease);
}
.variant-switch__btn.is-active { background: var(--coral); color: #fff; }

/* ==========================================================================
   Анимация появления при скролле
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-variant.is-active { animation: none; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Блокировка скролла при открытых оверлеях */
body.is-locked { overflow: hidden; }

/* ==========================================================================
   Страница статуса оплаты (success / fail)
   ========================================================================== */
.status-head { padding: 16px 0; border-bottom: 1px solid var(--line-soft); background: rgba(247,243,236,.92); position: sticky; top: 0; z-index: 10; }
.status-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.status-head__inner > a:first-child { display: inline-flex; align-items: center; gap: 10px; }
.status-head__inner img { height: 32px; width: auto; }
.status-support { font-size: 14px; font-weight: 600; color: var(--ink-70); }
.status-support:hover { color: var(--navy); }

.status-wrap { display: flex; align-items: center; justify-content: center; padding: clamp(32px,6vw,72px) 0; }
.status-card {
  width: 100%; max-width: 620px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  padding: clamp(26px,4vw,46px); text-align: center;
}
.status-ico { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 24px; background: var(--coral-soft); display: grid; place-items: center; }
.status-ico img { width: 48px; height: 48px; }
.status-ico--ok { background: #E4F6EC; }
.status-ico--fail { background: var(--coral-soft); }
.status-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-600); }
.status-title { margin-top: 10px; font-size: clamp(24px,3.4vw,32px); }
.status-sub { margin: 14px auto 0; max-width: 470px; color: var(--ink-70); }

.status-order { margin-top: 28px; text-align: left; border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; }
.status-order__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.status-order__row:last-child { border-bottom: none; }
.status-order__name { color: var(--navy); font-weight: 600; }
.status-order__sub { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-50); margin-top: 3px; text-transform: uppercase; letter-spacing: .04em; }
.status-order__price { color: var(--navy); font-weight: 800; white-space: nowrap; }
.status-order__total { background: var(--cream-2); }
.status-order__total .status-order__name, .status-order__total .status-order__price { font-weight: 800; }

.status-meta { margin-top: 20px; text-align: left; background: var(--sky-soft); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 18px 20px; display: grid; gap: 12px; }
.status-meta__item { display: grid; grid-template-columns: 14px 1fr; gap: 12px; font-size: 14px; color: var(--ink-70); line-height: 1.45; align-items: start; }
.status-meta__item b { color: var(--navy); }
.status-meta__item a { color: var(--coral-600); font-weight: 600; }
.status-meta__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--coral); margin-top: 7px; }
.status-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 460px) { .status-cta .btn { width: 100%; } }
.status-note { margin-top: 18px; font-size: 12px; color: var(--ink-50); font-family: var(--mono); }

/* ==========================================================================
   Юридические / текстовые страницы (политика, оферта)
   ========================================================================== */
.legal { padding: clamp(32px,5vw,64px) 0 clamp(48px,6vw,80px); }
.legal__inner { max-width: 780px; margin: 0 auto; }
.legal__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-600); }
.legal h1 { margin: 12px 0 0; font-size: clamp(28px,4vw,40px); }
.legal__meta { margin-top: 14px; font-size: 14px; color: var(--ink-50); }
.legal__note { margin: 24px 0 8px; padding: 14px 18px; background: var(--coral-soft); border-radius: var(--r-md); font-size: 13.5px; color: var(--coral-600); font-weight: 600; }
.legal h2 { font-size: clamp(19px,2.2vw,23px); margin: 38px 0 0; }
.legal h2 .legal__num { font-family: var(--mono); color: var(--coral-600); font-size: 0.7em; margin-right: 10px; font-weight: 700; }
.legal p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-70); }
.legal ul { margin: 14px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.legal li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.6; color: var(--ink-70); }
.legal li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--coral); }
.legal a { color: var(--coral-600); font-weight: 600; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-weight: 700; color: var(--navy); }
.legal__back::before { content: "←"; color: var(--coral); }
.legal__ph { color: var(--coral-600); font-weight: 700; background: var(--coral-soft); padding: 1px 6px; border-radius: 5px; font-family: var(--mono); font-size: 0.92em; }
