/* ============================================================
   BFine.Academy — main.css
   Дизайн-система «Ясный путь» (см. DESIGN-CONCEPT.md §2–4)
   ============================================================ */

/* ---------- Fonts (self-hosted, latin + cyrillic + cyrillic-ext) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400-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;
  font-display: swap;
  src: url('../assets/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500-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: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600-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: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/manrope-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/manrope-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/manrope-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/manrope-600-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/manrope-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/manrope-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-800-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-800-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-800-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;
}

/* ---------- Tokens ---------- */
:root {
  --blue-600: #3434FF; --blue-700: #2626D9; --blue-800: #1E1EA8;
  --blue-500: #5C5CFF; --blue-100: #E6E6FF; --blue-50: #F2F2FF;
  --ink-900: #1C1C1C; --ink-600: #4E4E5A; --ink-400: #8A8A99;
  --bg: #FAFAFA; --surface: #FFFFFF; --surface-2: #F2F2F5; --line: #E4E4EC;
  --navy-900: #12123A; --navy-800: #1B1B52;
  --amber-500: #FFB01F; --amber-100: #FFF3D9;
  --success: #12A150; --success-bg: #E7F6EE;
  --warning: #E58E00; --warning-bg: #FFF3D9;
  --error: #DE3B4B; --error-bg: #FDEBED;
  --offer-green: #0E7C46; --offer-green-ink: #0B6B3C; --offer-green-bg: #E9F6EF;
  --focus-ring: 0 0 0 3px rgba(52, 52, 255, .25);
  --shadow-s: 0 1px 2px rgba(18,18,58,.06);
  --shadow-m: 0 6px 24px -8px rgba(18,18,58,.12);
  --shadow-l: 0 24px 64px -16px rgba(18,18,58,.18);
  --shadow-cta: 0 8px 24px -8px rgba(52,52,255,.45);
  --radius-s: 10px; --radius-m: 16px; --radius-l: 24px; --radius-full: 999px;
  --font-head: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* якорные переходы (#partners, #faq, #form…): цель не должна прятаться под липкой
   шапкой (73px) — плюс воздух сверху, чтобы блок не упирался в её край */
:target, [id] { scroll-margin-top: 104px; }
/* защита от горизонтального «уезжания». Сначала hidden — fallback для старых
   Chromium (Samsung Internet и т.п.), где значение clip не поддерживается и
   правило молча игнорировалось: страница расширялась и телефон сжимал вёрстку.
   Современные браузеры перекрывают его clip (не ломает sticky). */
html, body { overflow-x: hidden; max-width: 100%; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body {
  font-family: var(--font-body);
  background: var(--bg); color: var(--ink-900);
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
ul, ol { list-style: none; }
button { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--blue-600);
  padding: 12px 20px; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.15; }
h3 { font-size: clamp(21px, 2vw, 24px); line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-600); max-width: 40em; }
.lead b, .lead strong { color: var(--ink-900); font-weight: 600; }
.kicker {
  display: block; font: 600 13px/1.25 var(--font-body); letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .lead, .section-head p { margin-top: 16px; }
/* шапка блока – единственный элемент в своей строке: слева текст, справа пустота, поэтому по центру */
.container > .section-head { margin-inline: auto; text-align: center; }
.container > .section-head .lead, .container > .section-head p { margin-inline: auto; }
/* на главной (сцены дороги) все заголовочные группы центрированы — правка клиента */
[data-road] .section-head { margin-inline: auto; text-align: center; }
[data-road] .section-head .lead, [data-road] .section-head p { margin-inline: auto; }
.muted { color: var(--ink-600); }
.small { font-size: 14px; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding-block: 96px; position: relative; }
.section--alt { background: var(--surface-2); }
.section--tint { background: var(--blue-50); }
main { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1 var(--font-body); border-radius: 12px; cursor: pointer;
  border: 0; padding: 0 26px; height: 52px; white-space: nowrap;
  transition: transform .15s ease-out, background .15s ease-out,
              box-shadow .15s ease-out, border-color .15s, color .15s;
}
/* на узких экранах несжимаемая кнопка (white-space: nowrap) распирает родителя
   за край экрана: разрешаем перенос текста — высота растёт вместо оверфлоу */
@media (max-width: 640px) {
  .btn { white-space: normal; height: auto; min-height: 52px; padding-block: 10px; text-align: center; }
}
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--blue-700); color: #fff; transform: translateY(-1px); }
.btn--primary:active { background: var(--blue-800); transform: none; box-shadow: none; }
.btn--secondary { background: transparent; color: var(--ink-900); border: 1.5px solid var(--line); }
.btn--secondary:hover { border-color: var(--blue-600); color: var(--blue-600); background: var(--blue-50); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; box-shadow: none; }
.btn .arr { transition: transform .15s ease-out; }
.btn:hover .arr { transform: translateX(4px); }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
/* на тёмной секции */
.on-dark .btn--primary { background: #fff; color: var(--blue-600); box-shadow: none; }
.on-dark .btn--primary:hover { background: var(--blue-50); color: var(--blue-700); }
.on-dark .btn--secondary { border-color: rgba(255,255,255,.3); color: #fff; }
.on-dark .btn--secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
/* белая карточка формы внутри тёмной секции: возвращаем обычный primary */
.on-dark .form-card .btn--primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-cta); }
.on-dark .form-card .btn--primary:hover { background: var(--blue-700); color: #fff; }
.on-dark .form-card .btn--primary:active { background: var(--blue-800); box-shadow: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--blue-600);
}
.link-arrow .arr { transition: transform .15s ease-out; }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,250,.85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-s); }
.header__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 36px; width: auto; }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 10px; white-space: nowrap;
  font-size: 15px; font-weight: 500; color: var(--ink-600);
  transition: color .15s ease-out, background .15s ease-out;
}
.nav a:hover { color: var(--blue-600); background: var(--blue-50); }
.nav a[aria-current="page"] { color: var(--ink-900); font-weight: 600; }

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

.lang {
  display: flex; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-full); padding: 3px;
}
.lang a {
  font: 600 12.5px/1 var(--font-body); letter-spacing: .04em;
  color: var(--ink-600); padding: 7px 11px; border-radius: var(--radius-full);
  transition: background .15s, color .15s;
}
.lang a:hover { color: var(--blue-600); }
.lang a[aria-current="true"] { background: var(--blue-600); color: #fff; }

/* переключатель языков — disclosure-dropdown в шапке (B6) */
.lang-menu { position: relative; }
.lang-menu__btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  height: 40px; padding: 0 10px 0 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font: 600 13px/1 var(--font-body); letter-spacing: .04em; color: var(--ink-900);
  transition: border-color .15s, color .15s;
}
.lang-menu__btn:hover { border-color: var(--blue-600); color: var(--blue-600); }
.lang-menu__btn .chev { color: var(--ink-400); transition: transform .15s ease-out; }
.lang-menu__btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu__list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 176px; padding: 6px; margin: 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-m);
}
.lang-menu__list::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.lang-menu__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  font: 500 14.5px/1.2 var(--font-body); color: var(--ink-900);
}
.lang-menu__list a:hover { background: var(--blue-50); color: var(--blue-600); }
.lang-menu__list a .check { display: none; color: var(--blue-600); flex-shrink: 0; }
.lang-menu__list a[aria-current="true"] { font-weight: 600; color: var(--blue-600); }
.lang-menu__list a[aria-current="true"] .check { display: block; }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px;
  align-items: center; justify-content: center; color: var(--ink-900);
}
.burger:hover { background: var(--blue-50); color: var(--blue-600); }
.burger svg { width: 26px; height: 26px; }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

/* мобильное меню */
.mobile-menu {
  display: none; position: fixed; inset: 72px 0 0; z-index: 49;
  background: var(--surface); padding: 32px 24px 40px;
  flex-direction: column; overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu > nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu > nav a {
  font: 700 26px/1.3 var(--font-head); color: var(--ink-900);
  padding: 12px 8px; border-radius: 12px; letter-spacing: -0.01em;
}
.mobile-menu > nav a:hover { color: var(--blue-600); background: var(--blue-50); }
.mobile-menu > nav a[aria-current="page"] { color: var(--blue-600); }
.mobile-menu__bottom { margin-top: auto; padding-top: 32px; display: grid; gap: 16px; }
.mobile-menu__bottom .lang { justify-content: center; }
.mobile-menu__bottom .lang a { flex: 1; text-align: center; padding-block: 10px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero (главная) ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__mark {
  position: absolute; right: -160px; top: -60px; width: 640px; opacity: .04;
  pointer-events: none;
}
.hero__in {
  position: relative; display: grid; grid-template-columns: 55fr 45fr;
  gap: 56px; align-items: center; padding-block: 88px 96px;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-full);
  padding: 9px 18px 9px 14px; font: 500 14px/1.35 var(--font-body); color: var(--ink-600);
  box-shadow: var(--shadow-s); margin-bottom: 28px;
}
.badge b { color: var(--ink-900); font-weight: 600; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(18,161,80,.16);
}
.hero h1 { margin-bottom: 24px; }
.hl { position: relative; color: var(--blue-600); white-space: nowrap; }
.hl svg { position: absolute; left: 0; bottom: -0.18em; width: 100%; height: .22em; }
.hero .lead { max-width: 34em; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.hero__note { font-size: 14px; color: var(--ink-400); max-width: 34em; margin-bottom: 40px; }
.trust { border-top: 1px solid var(--line); padding-top: 24px; max-width: 560px; }
.trust__label {
  font: 600 12px/1 var(--font-body); letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-400); margin-bottom: 14px;
}
.trust__row { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.trust__row > span {
  font-family: var(--font-head); font-weight: 800; font-size: 17px;
  color: var(--ink-400); letter-spacing: -0.01em; transition: color .2s;
}
.trust__row > span:hover { color: var(--blue-600); }
.trust__row small { font: 500 12px/1.3 var(--font-body); color: var(--ink-400); display: block; }

.hero__media { position: relative; }
.photo-card {
  border-radius: var(--radius-l); transform: rotate(-2deg);
  box-shadow: var(--shadow-l); overflow: hidden; position: relative;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/4.6; filter: contrast(1.04) saturate(.94); }
/* планка-подпись у нижней кромки hero-фото (A3) */
.photo-strip {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 8px 28px; flex-wrap: wrap;
  padding: 14px 22px;
  background: rgba(250,250,250,.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.55);
}
.photo-strip__item {
  display: flex; align-items: baseline; gap: 8px;
  font: 500 13px/1.3 var(--font-body); color: var(--ink-600);
}
.photo-strip__item b {
  font: 800 24px/1 var(--font-head); color: var(--blue-600);
  letter-spacing: -0.02em; font-feature-settings: "tnum";
}

/* ---------- Page hero (внутренние страницы) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: 72px 64px; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .4;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 0%, #000 25%, transparent 72%);
          mask-image: radial-gradient(ellipse 90% 90% at 50% 0%, #000 25%, transparent 72%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { margin-bottom: 20px; max-width: 20em; }
.page-hero .lead--claim {
  font-size: clamp(19px, 1.7vw, 22px); font-weight: 600; color: var(--ink-900); max-width: 24em;
}
.page-hero .lead + .lead { margin-top: 18px; }
.page-hero .lead--claim + .lead { font-size: clamp(16px, 1.2vw, 17px); max-width: 44em; }

/* Одиночный текст в хиро занимал левую половину, справа оставалась пустота – центрируем.
   Исключение – хиро, где справа стоит карточка (.reviews-hero): там текст остаётся слева. */
.page-hero .container > .kicker,
.page-hero .container > h1,
.page-hero .container > .lead,
.page-hero .container > p { text-align: center; }
.page-hero .container > h1 { max-width: none; }
.page-hero .container > .lead, .page-hero .container > p { margin-inline: auto; }
.page-hero .container > .fork-ic { display: grid; width: 48px; margin-inline: auto; }
/* пунктир дороги остаётся у левого края – он продолжает линию дороги */
.page-hero .container > h1::after { margin-inline: 0 auto; }
.page-hero--edge { border-top: 6px solid var(--blue-600); }
.page-hero--edge-amber { border-top: 6px solid var(--amber-500); }
.breadcrumbs { font-size: 14px; color: var(--ink-400); margin-bottom: 24px; }
.breadcrumbs a { color: var(--ink-400); }
.breadcrumbs a:hover { color: var(--blue-600); }

/* ---------- Лента цифр ---------- */
.stats { background: var(--blue-50); border-block: 1px solid var(--blue-100); }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 44px; }
.stats__in--5 { grid-template-columns: repeat(5, 1fr); }
.stat { padding-left: 24px; border-left: 2px solid var(--blue-100); }
.stat:first-child { border-left-color: transparent; padding-left: 0; }
.stat__num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(32px, 3.4vw, 50px); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--blue-600); font-feature-settings: "tnum"; white-space: nowrap;
}
.stat__cap { font: 500 14px/1.4 var(--font-body); color: var(--ink-600); margin-top: 6px; }

/* ---------- Карточки-фичи ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 32px; display: flex; flex-direction: column;
  transition: box-shadow .2s ease-out, transform .2s ease-out;
}
.card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--ink-600); font-size: 16px; line-height: 1.55; }
.card__ic {
  width: 40px; height: 40px; border-radius: var(--radius-s); background: var(--blue-50);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--blue-600);
}
.card__link { margin-top: auto; padding-top: 16px; }

/* ---------- Bento «Как устроено обучение» (A1) ---------- */
.how-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.how-grid > .card { grid-column: span 3; }
.how-grid > .card--feature { grid-column: span 6; grid-row: span 2; }
.card--feature {
  background: var(--blue-50); border-color: var(--blue-100);
  padding: 40px; position: relative; overflow: hidden;
}
.card--feature h3 { font-size: 24px; max-width: 18ch; }
.card--feature p  { font-size: 17px; max-width: 46ch; }
.card--feature .card__ic { width: 48px; height: 48px; background: var(--surface); }
.card__approved { margin-top: auto; padding-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.approve-badge {
  font: 600 13px/1.3 var(--font-body); color: var(--blue-600);
  background: var(--surface); border: 1px solid var(--blue-100);
  border-radius: var(--radius-full); padding: 8px 14px;
}
.card__mark {
  position: absolute; right: -28px; bottom: -24px; width: 150px;
  opacity: .07; pointer-events: none;
}

/* ---------- Путь (таймлайн) ---------- */
.path { position: relative; max-width: 840px; }
.path__item { position: relative; padding: 0 0 44px 76px; }
.path__item:last-child { padding-bottom: 0; }
.path__item::before {
  content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px;
  border-left: 2px dashed var(--blue-100);
}
.path__item:last-child::before { display: none; }
.path__num {
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-600); color: #fff;
  font: 800 19px/1 var(--font-head); display: grid; place-items: center;
  box-shadow: 0 4px 12px -4px rgba(52,52,255,.5);
}
.path__item h3 { font-size: 21px; margin-bottom: 8px; padding-top: 10px; }
.path__item p { color: var(--ink-600); max-width: 62ch; }
/* компактная версия таймлайна (контакты, B9) */
.path--compact .path__item { padding: 0 0 28px 60px; }
.path--compact .path__num { width: 40px; height: 40px; font-size: 16px; }
.path--compact .path__item::before { left: 19px; top: 44px; }
.path--compact h3 { font-size: 17px; padding-top: 8px; }
.path--compact p { font-size: 15px; }

/* ---------- Змейка-дорога «Путь студента» (A2) ---------- */
.road { position: relative; }
.road__line {
  position: absolute; top: 0; left: 0; width: 100%; height: 640px;
  z-index: 0; overflow: visible; pointer-events: none;
}
.road__path {
  fill: none; stroke: var(--blue-600); stroke-opacity: .35;
  stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1 12;            /* точечный пунктир «маршрут на карте» */
}
.road__arrow { fill: none; stroke: var(--blue-600); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
/* «дорога прочерчивается»: маска-копия пути */
.road__reveal { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease-out .15s; }
.road.is-drawn .road__reveal { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .road__reveal { stroke-dashoffset: 0 !important; }
}

.road__steps {
  position: relative; z-index: 1; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 320px 320px; gap: 0 32px;
}
.road__step { text-align: center; padding: 0 12px 48px; }
.road__step .path__num { position: static; margin: 20px auto 16px; }
.road__step h3 { font-size: 20px; margin-bottom: 8px; }
.road__step p { color: var(--ink-600); font-size: 15.5px; line-height: 1.5; max-width: 30ch; margin-inline: auto; }
/* разворот второго ряда: 4 справа, 6 слева */
.road__step--r2c3 { grid-row: 2; grid-column: 3; }
.road__step--r2c2 { grid-row: 2; grid-column: 2; }
.road__step--r2c1 { grid-row: 2; grid-column: 1; }
.road__next { position: relative; z-index: 1; margin-top: -56px; padding-left: 19%; }

@media (max-width: 1023px) {
  /* планшет и мобайл: вертикальная волна */
  .road__line { display: none; }
  .road__steps { grid-template-columns: 1fr; grid-template-rows: none; }
  .road__step, .road__step--r2c1, .road__step--r2c2, .road__step--r2c3 {
    grid-row: auto; grid-column: auto;
    min-height: 0; text-align: left; padding: 0 0 40px 64px; position: relative;
  }
  .road__step p { margin-inline: 0; max-width: 60ch; }
  .road__step .path__num { position: absolute; left: 0; top: 0; margin: 0; width: 42px; height: 42px; font-size: 17px; }
  .road__step:not(:last-child)::before {
    content: ""; position: absolute; left: 9px; top: 50px; bottom: 2px; width: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 80" width="24" height="80"><path d="M12 0 C 21 20, 3 60, 12 80" fill="none" stroke="%233434FF" stroke-opacity=".3" stroke-width="2.5" stroke-dasharray="1 10" stroke-linecap="round"/></svg>') repeat-y center / 24px 80px;
  }
  .road__next { margin-top: 0; padding-left: 20px; }
}

/* ---------- Программы: карточки-«билеты» ---------- */
.tickets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.ticket {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 36px 36px 32px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease-out, transform .2s ease-out;
}
.ticket:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); }
.ticket::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--blue-600); }
.ticket--amber::before { background: var(--amber-500); }
.ticket__badge {
  display: inline-block; align-self: flex-start; font: 600 13px/1 var(--font-body);
  background: var(--blue-100); color: var(--blue-800);
  border-radius: var(--radius-full); padding: 7px 14px; margin-bottom: 18px;
}
.ticket--amber .ticket__badge { background: var(--amber-100); color: #8a5a00; }
.ticket h3 { margin-bottom: 12px; }
.ticket > p { color: var(--ink-600); font-size: 16px; margin-bottom: 24px; }
.ticket > p + p { margin-top: -10px; }
.ticket > p b { color: var(--ink-900); font-weight: 600; }
.variant-note b { color: var(--ink-900); font-weight: 600; }
.ticket__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-bottom: 24px; }
.ticket__meta div { font: 500 14px/1.4 var(--font-body); color: var(--ink-600); }
.ticket__meta b { display: block; color: var(--ink-900); font-weight: 600; font-size: 15px; }
.ticket ul { display: grid; gap: 8px; margin-bottom: 28px; }
.ticket ul li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-600); }
.ticket ul li::before { content: "→"; position: absolute; left: 0; color: var(--blue-600); font-weight: 600; }
.ticket--amber ul li::before { color: var(--warning); }
.ticket__price {
  border-top: 2px dashed var(--line); margin-top: auto; padding-top: 20px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.ticket__price b { font: 800 28px/1 var(--font-head); letter-spacing: -0.02em; color: var(--ink-900); white-space: nowrap; }
/* информационная карточка «Скидка для студентов из Украины» (B7):
   не третья программа, а тихий инфоблок на всю ширину сетки */
.discount-card {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--offer-green-bg);
  border: 1.5px solid var(--offer-green);
  border-radius: var(--radius-l);
  padding: 26px 32px;
}
.discount-card__ic {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-s);
  background: #FFFFFF; color: var(--offer-green);
  display: grid; place-items: center;
}
.discount-card h3 { font-size: 19px; margin-bottom: 6px; color: var(--offer-green-ink); }
.discount-card p { color: var(--ink-600); font-size: 15.5px; line-height: 1.55; max-width: 78ch; margin-bottom: 10px; }
.discount-card .link-arrow { color: var(--offer-green-ink); font-weight: 600; }
/* тихая зелёная строка на детальных страницах (B7) */
.offer-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--offer-green-bg); color: var(--offer-green-ink);
  border-radius: var(--radius-s); padding: 12px 14px; margin-bottom: 20px;
  font: 500 13.5px/1.45 var(--font-body);
}
.offer-note svg { flex-shrink: 0; margin-top: 2px; color: var(--offer-green); }

/* ---------- Преподаватели ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-grid--wide { grid-template-columns: repeat(2, 1fr); gap: 28px; }
/* страница «Преподаватели»: две колонки, карточка горизонтальная — фото слева, профиль справа */
.team-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.team-grid--2 .person { display: grid; grid-template-columns: 232px 1fr; }
/* фото на всю высоту карточки. Кадры для этой полосы отдельные (…-tall.jpg, 2:5,
   лицо по центру) — обычный кроп 3:4 здесь резал бы лица. */
.team-grid--2 .person__media { aspect-ratio: auto; height: 100%; min-height: 300px; }
.team-grid--2 .person__media img:not(.mark) { object-position: 50% 22%; }
/* .team-grid.team-grid--2 — двойной класс, иначе общие правила .team-grid ниже перебьют */
@media (max-width: 1180px) { .team-grid.team-grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .team-grid.team-grid--2 .person { grid-template-columns: 1fr; }
  .team-grid.team-grid--2 .person__media { aspect-ratio: 3/4; height: auto; min-height: 0; }
}
.person {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  overflow: hidden; transition: box-shadow .2s ease-out, transform .2s ease-out;
}
.person:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); }
.person__media {
  position: relative; aspect-ratio: 3/4; background: var(--blue-100); overflow: hidden;
  display: grid; place-items: center;
}
.team-grid--wide .person__media { aspect-ratio: 16/9; }
.person__media::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(52,52,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,52,255,.10) 1px, transparent 1px);
  background-size: 32px 32px;
}
.person__media svg.mark { position: absolute; right: -14px; bottom: -10px; width: 110px; opacity: .12; }
.avatar {
  position: relative; width: 96px; height: 96px; border-radius: 50%;
  background: var(--blue-600); color: #fff; display: grid; place-items: center;
  font: 800 32px/1 var(--font-head); letter-spacing: 0;
}
/* аватар с реальным фото (отзывы студентов): круглая маска, статус-точка ::after сохраняется */
.avatar--photo { background: var(--blue-100); }
.avatar--photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
}
/* аватар команды консультантов: один нейтральный силуэт вместо фото конкретного человека.
   Глиф — data-URI, поэтому в разметке только <i></i>. */
.avatar-team { display: inline-flex; align-items: center; flex-shrink: 0; }
.avatar-team i {
  width: 52px; height: 52px; border-radius: 50%;
  background-color: var(--blue-600);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.2' r='3.4'/%3E%3Cpath d='M5.6 19.6c0-3.4 2.9-5.4 6.4-5.4s6.4 2 6.4 5.4'/%3E%3C/svg%3E");
  background-size: 56% 56%; background-position: 50% 52%; background-repeat: no-repeat;
}
.avatar-team--s i { width: 44px; height: 44px; }
.person__body { padding: 22px 24px 24px; }
.person__name { font: 700 20px/1.3 var(--font-head); letter-spacing: -0.01em; }
.person__fact { font: 500 14px/1.45 var(--font-body); color: var(--ink-600); margin-top: 6px; }
/* реальные фото преподавателей: заполняют медиа-блок 3:4 вместо аватара-инициалов */
.person__media picture { display: contents; }
/* абсолют, а не height:100%: внутри грида процентная высота у картинки в <picture>
   не разрешается, и снизу оставалась полоса фона */
.person__media img:not(.mark) {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* поверх снимка фирменная сетка не нужна — она просвечивает через фото */
.person__media--photo::before { display: none; }
.person__role { font: 600 13px/1.35 var(--font-body); color: var(--blue-700); margin-top: 5px; }
.person__meta { margin-top: 14px; display: grid; gap: 10px; }
.person__meta dt {
  font: 600 11px/1 var(--font-body); letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-400); margin-bottom: 3px;
}
.person__meta dd { font: 400 13.5px/1.45 var(--font-body); color: var(--ink-600); }
.person__tags { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.person__tags span {
  font: 600 12px/1 var(--font-body); color: var(--blue-800); background: var(--blue-100);
  border-radius: var(--radius-full); padding: 6px 10px;
}
.person__quote { font-size: 14.5px; line-height: 1.5; color: var(--ink-600); margin-top: 14px; font-style: italic; }
.draft-note {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px/1.4 var(--font-body); color: var(--ink-400);
  background: var(--surface-2); border: 1px dashed var(--line);
  border-radius: var(--radius-s); padding: 8px 14px;
}

/* ---------- Отзывы ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.quote-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 32px; display: flex; flex-direction: column;
  transition: box-shadow .2s ease-out, transform .2s ease-out;
}
.quote-card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); }
.quote-card__mark { font: 800 44px/0.6 var(--font-head); color: var(--blue-600); margin-bottom: 18px; }
.quote-card p { color: var(--ink-600); font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
.quote-card footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar--s {
  width: 48px; height: 48px; font-size: 16px; font-family: var(--font-body);
  font-weight: 600; flex-shrink: 0;
}
.avatar--c2 { background: var(--blue-800); }
.avatar--c3 { background: var(--navy-800); }
.avatar--c4 { background: var(--amber-500); color: var(--ink-900); }
.avatar--c5 { background: var(--blue-100); color: var(--blue-800); }
.quote-card b { font-size: 15px; font-weight: 600; display: block; }
.quote-card small { font-size: 13px; color: var(--ink-400); display: block; }

/* «стол с записками» (A4): 3+2 со сдвигами и поворотами */
.quotes--scatter {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 28px 20px; padding-block: 16px 8px;
}
.quotes--scatter .quote-card { grid-column: span 2; will-change: transform; }
.quotes--scatter .quote-card:nth-child(4) { grid-column: 2 / 4; margin-top: -12px; }
.quotes--scatter .quote-card:nth-child(5) { grid-column: 4 / 6; margin-top: -12px; }
.quotes--scatter .quote-card:nth-child(1) { transform: rotate(-2.4deg) translateY(10px); }
.quotes--scatter .quote-card:nth-child(2) { transform: rotate(1.6deg)  translateY(-14px); }
.quotes--scatter .quote-card:nth-child(3) { transform: rotate(-1.2deg) translateY(22px); }
.quotes--scatter .quote-card:nth-child(4) { transform: rotate(2.6deg)  translateY(-6px); }
.quotes--scatter .quote-card:nth-child(5) { transform: rotate(-1.8deg) translateY(8px); }
/* «взять записку в руки» */
.quotes--scatter .quote-card:hover,
.quotes--scatter .quote-card:focus-within {
  transform: rotate(0) translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-m); z-index: 2; position: relative;
  transition: transform .25s ease-out, box-shadow .25s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .quotes--scatter .quote-card,
  .quotes--scatter .quote-card:hover { transform: none; }
}
/* mobile/планшет: горизонтальная лента со snap */
@media (max-width: 1023px) {
  .quotes--scatter {
    display: flex; gap: 16px; padding: 20px 20px 28px;
    margin-inline: -20px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .quotes--scatter .quote-card {
    flex: 0 0 82vw; max-width: 400px;
    scroll-snap-align: center; margin-top: 0 !important;
  }
  .quotes--scatter .quote-card:nth-child(odd)  { transform: rotate(-1.4deg); }
  .quotes--scatter .quote-card:nth-child(even) { transform: rotate(1.4deg); }
}

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq .section-head { margin-inline: auto; text-align: center; max-width: 640px; position: relative; }
/* линия дороги ныряет к левому полю через зону заголовка — halo цвета фона
   секции маскирует пунктир под текстом (тот же приём, что в «Мы не исчезаем») */
.faq .section-head::before {
  content: ""; position: absolute; inset: -32px -48px;
  background: radial-gradient(closest-side, var(--surface-2) 62%, transparent 100%);
  z-index: -1; pointer-events: none;
}
.faq-item { border-bottom: 1px solid var(--line); border-radius: 12px; transition: background .2s ease-out; }
.faq-item.is-open { background: var(--blue-50); border-bottom-color: transparent; }
.faq-item button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font: 600 18px/1.4 var(--font-body); color: var(--ink-900); padding: 22px 16px;
}
.faq-item .faq-ic {
  flex-shrink: 0; width: 24px; height: 24px; color: var(--blue-600);
  transition: transform .2s ease-out;
}
.faq-item.is-open .faq-ic { transform: rotate(45deg); }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease-out; }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel > div { overflow: hidden; }
.faq-panel p { color: var(--ink-600); padding: 0 16px 24px; max-width: 65ch; }
.faq__more { text-align: center; margin-top: 36px; }

/* ---------- Тёмный CTA-остров ---------- */
.cta-island { padding-block: 48px 96px; }
.cta-island__card {
  position: relative; overflow: hidden;
  background: var(--navy-900); border-radius: 32px; color: #fff;
  padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.cta-island__card .mark {
  position: absolute; left: -80px; bottom: -90px; width: 420px; opacity: .06; pointer-events: none;
}
.cta-island__txt { position: relative; }
.cta-island__txt h2 { color: #fff; margin-bottom: 16px; }
.cta-island__txt p { color: rgba(255,255,255,.75); max-width: 44ch; }
.consultant { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.consultant .avatar { width: 64px; height: 64px; font-size: 22px; position: relative; }
.consultant .avatar::after {
  content: ""; position: absolute; right: 2px; bottom: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--success); border: 2px solid var(--navy-900);
}
.consultant b { display: block; font-size: 16px; }
.consultant small { color: rgba(255,255,255,.6); font-size: 13.5px; line-height: 1.4; display: block; max-width: 34ch; }

/* ---------- Форма ---------- */
.form-card {
  position: relative; background: var(--surface); color: var(--ink-900);
  border-radius: var(--radius-l); padding: 40px; box-shadow: var(--shadow-l);
}
.form-card h3 { font-size: 24px; margin-bottom: 8px; }
.form-card > p.small { color: var(--ink-600); margin-bottom: 24px; }
/* «адаптивный диалог» (B10) */
.form-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.form-head h3 { font-size: 22px; margin-bottom: 4px; }
.form-head .small { color: var(--ink-600); margin: 0; }
.form-group { border: 0; margin: 0 0 8px; padding: 18px 0 4px; border-top: 1px dashed var(--line); min-width: 0; }
.form-group:first-of-type { border-top: 0; padding-top: 0; }
.form-group__t {
  font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-400); padding: 0; margin-bottom: 14px;
}
.form-row[hidden] { display: none; } /* display:grid перебивает hidden */
.form-more {
  display: inline-flex; gap: 6px; background: none; border: 0; cursor: pointer;
  font: 600 14.5px/1.3 var(--font-body); color: var(--blue-600); padding: 4px 0; margin-bottom: 14px;
  text-align: left;
}
.form-more:hover { color: var(--blue-700); }
.form-more .muted { font-weight: 400; }
.form-more[aria-expanded="true"] { display: none; }
.form-row { display: grid; gap: 6px; margin-bottom: 18px; }
.form-row label { font: 500 14px/1.3 var(--font-body); color: var(--ink-900); }
.form-row input, .form-row select, .form-row textarea {
  font: 400 16px/1.4 var(--font-body); color: var(--ink-900);
  background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-s);
  height: 52px; padding: 0 16px; width: 100%;
  transition: background .12s, border-color .12s, box-shadow .12s;
  appearance: none; -webkit-appearance: none;
}
.form-row textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; }
.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234E4E5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; background: #fff; border-color: var(--blue-600); box-shadow: var(--focus-ring);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--ink-400); }
.form-row.has-error input, .form-row.has-error select, .form-row.has-error textarea {
  border-color: var(--error); background: var(--error-bg);
}
.field-error { display: none; font-size: 13px; color: var(--error); }
.form-row.has-error .field-error { display: block; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* сегмент-контрол канала связи */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg label {
  position: relative; display: block; cursor: pointer;
}
.seg input { position: absolute; opacity: 0; inset: 0; height: auto; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; height: 44px;
  font: 500 13.5px/1 var(--font-body); color: var(--ink-600);
  background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-s);
  transition: background .12s, color .12s, border-color .12s;
}
.seg input:checked + span { background: var(--blue-100); color: var(--blue-800); border-color: var(--blue-600); font-weight: 600; }
.seg input:focus-visible + span { box-shadow: var(--focus-ring); }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; }
.consent input {
  width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue-600);
}
.consent span { font-size: 13.5px; line-height: 1.45; color: var(--ink-600); }
.consent.has-error span { color: var(--error); }
.form-note { font-size: 13px; color: var(--ink-400); text-align: center; margin-top: 14px; }
.form-facts { font-size: 13px; color: var(--ink-400); text-align: center; margin-top: 10px; }
.form-status { display: none; }
.form-status.is-visible { display: block; }
.form-status--success { text-align: center; padding: 24px 8px; }
.form-status--success .ok {
  width: 48px; height: 48px; border-radius: 50%; background: var(--success-bg);
  color: var(--success); display: grid; place-items: center; margin: 0 auto 18px;
}
.form-status--error {
  background: var(--error-bg); color: var(--error); border-radius: var(--radius-s);
  padding: 14px 16px; font-size: 14.5px; margin-bottom: 16px;
}
.form-recipient { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.form-recipient .avatar { width: 40px; height: 40px; font-size: 14px; font-family: var(--font-body); font-weight: 600; }
.form-recipient small { font-size: 13px; line-height: 1.4; color: var(--ink-600); }

/* honeypot */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Сравнительная таблица ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.compare thead th { font: 700 17px/1.3 var(--font-head); letter-spacing: -0.01em; }
.compare thead th:nth-child(2) { color: var(--blue-600); }
.compare thead th:nth-child(3) { color: #A36000; } /* тёмный amber: 4.9:1 на белом (AA); #E58E00 не проходил по контрасту */
.compare tbody th { font-weight: 600; color: var(--ink-600); font-size: 14.5px; width: 30%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td b { font-weight: 600; }

/* ---------- Детальная страница программы ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
/* min-width: 0 — иначе широкий контент (таблица сравнения) распирает грид-колонку за экран */
.detail-body { min-width: 0; }
.detail-body > section { margin-bottom: 64px; }
.detail-body > section:last-child { margin-bottom: 0; }
.detail-body h2 { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 24px; }
.detail-body h3 { font-size: 19px; margin: 28px 0 12px; }
.detail-body p { color: var(--ink-600); max-width: 68ch; margin-bottom: 14px; }
.checklist { display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink-600); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--success-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2312A150' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.bullets { display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 26px; color: var(--ink-600); }
.bullets li::before { content: "→"; position: absolute; left: 0; color: var(--blue-600); font-weight: 600; }
.stages { counter-reset: stage; display: grid; gap: 0; }
.stages li { position: relative; padding: 0 0 28px 64px; counter-increment: stage; }
.stages li:last-child { padding-bottom: 0; }
.stages li::before {
  content: counter(stage); position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-600);
  font: 800 16px/1 var(--font-head); display: grid; place-items: center;
}
.stages li::after {
  content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px;
  border-left: 2px dashed var(--blue-100);
}
.stages li:last-child::after { display: none; }
.stages b { display: block; font-weight: 600; margin-bottom: 4px; }
.stages li, .stages li p { color: var(--ink-600); }

.side-card {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 32px; box-shadow: var(--shadow-m);
}
.side-card__price { font: 800 34px/1.1 var(--font-head); letter-spacing: -0.02em; margin-bottom: 4px; }
.side-card__price small { font: 500 14px/1 var(--font-body); color: var(--ink-400); letter-spacing: 0; }
.side-card dl { display: grid; gap: 12px; margin: 22px 0 24px; }
.side-card dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; }
.side-card dt { color: var(--ink-400); }
.side-card dd { font-weight: 600; text-align: right; }
.side-card .warn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--warning-bg); color: #8a5a00; border-radius: var(--radius-s);
  font: 500 13px/1.35 var(--font-body); padding: 8px 12px; margin-bottom: 20px;
}
.side-card .btn { width: 100%; }
.side-card__foot { font-size: 13px; color: var(--ink-400); text-align: center; margin-top: 14px; }

/* ---------- О нас ---------- */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.partner-card b { font: 700 18px/1.35 var(--font-head); display: block; margin-bottom: 8px; letter-spacing: -0.01em; }
.prose { max-width: 68ch; }
.prose p { color: var(--ink-600); margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.collage { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.collage figure { position: relative; overflow: hidden; border-radius: var(--radius-m); margin: 0; }
.collage img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04) saturate(.94); transition: transform .3s ease-out; }
.collage figure:hover img { transform: scale(1.03); }
.collage figcaption {
  position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border-radius: 8px; padding: 5px 10px; font: 500 12.5px/1.3 var(--font-body); color: var(--ink-600);
}
.collage .c-1 { grid-column: span 7; aspect-ratio: 16/10; }
.collage .c-2 { grid-column: span 5; aspect-ratio: 4/3.35; }
.collage .c-3 { grid-column: span 4; aspect-ratio: 4/3; }
.collage .c-4 { grid-column: span 4; aspect-ratio: 4/3; }
.collage .c-5 { grid-column: span 4; aspect-ratio: 4/3; border-radius: var(--radius-l); }
/* честный bento «Среда обучения» (A5): факт-плитки и заглушка */
.tile {
  position: relative; border-radius: var(--radius-m); overflow: hidden;
  padding: 28px; display: flex; flex-direction: column; justify-content: flex-end;
}
.tile--fact {
  background: var(--blue-50); border: 1px solid var(--blue-100);
  background-image:
    linear-gradient(var(--blue-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-100) 1px, transparent 1px);
  background-size: 40px 40px;
}
.tile__num {
  font: 800 clamp(44px, 4.5vw, 64px)/1 var(--font-head);
  color: var(--blue-600); letter-spacing: -0.02em; font-feature-settings: "tnum";
}
.tile__num small { font-size: .38em; font-weight: 800; }
.tile--fact p { margin-top: 10px; font: 500 15px/1.45 var(--font-body); color: var(--ink-600); max-width: 30ch; }
.tile--soon {
  background: var(--surface);
  border: 2px dashed var(--blue-100);   /* пунктир = «место зарезервировано» */
  justify-content: center;
}
.tile--soon .tile__mark { position: absolute; right: -20px; top: -16px; width: 120px; opacity: .08; }
.tile__badge {
  align-self: flex-start; margin-bottom: 12px;
  font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-600); background: var(--blue-50);
  border-radius: var(--radius-full); padding: 7px 12px;
}
.tile--soon p { font: 400 15px/1.5 var(--font-body); color: var(--ink-600); }
/* плитка-логотип: вместо «скоро будут фото аудиторий» — знак на белом + ссылка на видео */
.tile--logo {
  background: var(--surface); display: grid; place-content: center;
  justify-items: center; gap: 16px; text-align: center;
}
.tile--logo img { width: 148px; height: auto; opacity: .45; }
.tile--soon b { display: block; color: var(--ink-900); font-weight: 600; margin-bottom: 6px; }
.fact-strip {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--blue-600);
  border-radius: var(--radius-m); padding: 28px 32px;
}
.fact-strip .stat__num { font-size: clamp(30px, 3vw, 44px); }
.fact-strip p { color: var(--ink-600); max-width: 52ch; }

/* ---------- Контакты (B9) ---------- */
.contacts-layout { display: grid; grid-template-columns: 1fr 460px; gap: 48px; align-items: start; }
.contacts-layout > .form-card { order: 2; position: sticky; top: 96px; }
.contacts-layout .contacts-info { order: 1; }
.hero-facts { margin-top: 20px; font: 500 15px/1.5 var(--font-body); color: var(--ink-400); }
/* персона на светлом фоне */
.consultant--light { margin-top: 0; }
.consultant--light b { color: var(--ink-900); }
.consultant--light small { color: var(--ink-600); }
.consultant--light .avatar::after { border-color: var(--bg); }
/* чипы каналов «мы напишем первыми» */
.channel-list ul { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 0; list-style: none; }
.channel-list li {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-full);
  padding: 8px 16px 8px 8px; font: 500 14px/1 var(--font-body); color: var(--ink-600);
  background: var(--surface);
}
.channel-list .card__ic { width: 28px; height: 28px; margin: 0; border-radius: 50%; }
.channel-list .card__ic svg { width: 15px; height: 15px; }
.channel-list__note { color: var(--ink-600); font-size: 15px; max-width: 52ch; }
.contacts-info > h2 { font-size: 22px; margin: 40px 0 14px; }
.contacts-info > h2:first-of-type { margin-top: 36px; }
.requisites { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 40px; }
.requisites h2 { font-size: 20px; margin-bottom: 14px; }
.requisites ul { padding: 0; list-style: none; }
.requisites li { padding: 6px 0; color: var(--ink-600); font-size: 15.5px; }
.requisites b { color: var(--ink-900); font-weight: 600; }
/* карта-заглушка с пином */
.map-placeholder {
  margin: 24px 0 0; height: 220px; border-radius: var(--radius-m);
  background: var(--blue-50);
  background-image:
    linear-gradient(var(--blue-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-100) 1px, transparent 1px);
  background-size: 32px 32px;
  border: 1px solid var(--blue-100);
  display: grid; place-content: center; justify-items: center; gap: 6px;
  text-align: center;
}
.map-placeholder svg { width: 40px; height: 40px; color: var(--blue-600); }
.map-placeholder figcaption { display: grid; gap: 4px; justify-items: center; }
.map-placeholder b { font: 700 17px/1 var(--font-head); }
.map-placeholder span { font: 500 13px/1.4 var(--font-body); color: var(--ink-400); max-width: 30ch; }

/* тёмная полоса «Сотрудничество» */
.partners-strip { padding-block: 0 96px; }
.partners-strip__card {
  position: relative; overflow: hidden; background: var(--navy-900); color: #fff;
  border-radius: var(--radius-l); padding: 48px 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.partners-strip__card .mark { position: absolute; right: -70px; top: -60px; width: 320px; opacity: .06; }
.partners-strip__card h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; }
.partners-strip__card p { color: rgba(255,255,255,.75); font-size: 15.5px; }
.partners-strip__card ul { margin-top: 18px; display: grid; gap: 8px; }
.partners-strip__card ul li { position: relative; padding-left: 24px; color: rgba(255,255,255,.75); font-size: 14.5px; }
.partners-strip__card ul li::before { content: "→"; position: absolute; left: 0; color: var(--blue-500); }
.partners-strip__cta { text-align: center; position: relative; }

/* ---------- Футер ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: 64px 32px; }
/* колонка «Программы» с длинными названиями и «Контакты» с телефонами шире,
   чем короткая «Навигация» — иначе строки переносятся неравномерно */
.footer__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr 1.35fr 1.25fr;
  gap: 40px 32px; margin-bottom: 48px; align-items: start;
}
.footer__brand img { height: 34px; width: auto; margin-bottom: 16px; }
.footer__brand p { font-size: 14.5px; color: var(--ink-600); max-width: 30ch; }
.footer h4 {
  font: 600 12.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-400); margin-bottom: 18px;
}
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--ink-600); font-size: 15px; }
.footer ul a:hover { color: var(--blue-600); }
.footer address { font-style: normal; font-size: 15px; color: var(--ink-600); display: grid; gap: 10px; }
.footer__bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer__bottom p { font-size: 13.5px; color: var(--ink-400); }
.footer__attrib { font-size: 12.5px; color: var(--ink-400); margin-top: 10px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .35s ease-out, transform .35s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .35s ease-out, transform .35s ease-out; }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > :nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > :nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.is-visible > :nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.is-visible > :nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.is-visible > :nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.is-visible > :nth-child(6) { transition-delay: 300ms; }
.reveal-stagger.is-visible > :nth-child(7) { transition-delay: 360ms; }
.reveal-stagger.is-visible > :nth-child(8) { transition-delay: 420ms; }
.reveal-stagger.is-visible > :nth-child(9) { transition-delay: 480ms; }
.reveal-stagger.is-visible > :nth-child(10) { transition-delay: 540ms; }
.reveal-stagger.is-visible > :nth-child(11) { transition-delay: 600ms; }
.reveal-stagger.is-visible > :nth-child(12) { transition-delay: 660ms; }

/* ---------- 404 ---------- */
.err-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 96px; }
.err-page .code { font: 800 clamp(80px, 14vw, 140px)/1 var(--font-head); color: var(--blue-100); letter-spacing: -0.04em; }
.err-page h1 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 24px; }
.err-page .links { display: flex; gap: 16px 28px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1023px) {
  .section { padding-block: 64px; }
  .nav, .header .btn--header { display: none; }
  .header .lang-menu { display: none; }
  .burger { display: inline-flex; }
  .hero__in { grid-template-columns: 1fr; gap: 48px; padding-block: 56px 64px; }
  .hero__media { max-width: 460px; }
  .stats__in, .stats__in--5 { grid-template-columns: repeat(2, 1fr); row-gap: 32px; padding-block: 36px; }
  /* на мобильной сетке цифры по центру, без «линеек» слева — двухколонник читается ровнее */
  .stats .stat { border-left: 0; padding-left: 0; text-align: center; }
  .stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stats .stat__cap { margin-inline: auto; max-width: 24ch; }
  .stat:nth-child(odd) { border-left-color: transparent; padding-left: 0; }
  .cards-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .tickets, .quotes, .team-grid--wide { grid-template-columns: 1fr; }
  .how-grid > .card, .how-grid > .card--feature { grid-column: span 12; grid-row: auto; }
  .how-grid > .card:not(.card--feature) { grid-column: span 6; } /* 2×2 */
  .detail-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .contacts-layout { grid-template-columns: 1fr; }
  .contacts-layout > .form-card { order: 1; position: static; }
  .contacts-layout .contacts-info { order: 2; }
  .cta-island__card { grid-template-columns: 1fr; padding: 48px 40px; gap: 40px; }
  .partners-strip__card { grid-template-columns: 1fr; padding: 40px 36px; }
  /* кнопки CTA на мобиле по центру — и в тёмном острове, и в полосе партнёров */
  .partners-strip__cta { text-align: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .collage .c-1 { grid-column: span 12; }
  .collage .c-2 { grid-column: span 12; aspect-ratio: 16/9; }
  .collage .c-3, .collage .c-4, .collage .c-5 { grid-column: span 4; }
  .collage .tile { aspect-ratio: auto; min-height: 200px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }
  .header__in { height: 64px; gap: 12px; }
  .logo img { height: 30px; }
  .mobile-menu { inset: 64px 0 0; }
  .hero__cta .btn { width: 100%; }
  .photo-card { transform: rotate(0); }
  .photo-card img { aspect-ratio: 4/4.2; }
  .photo-strip { padding: 12px 16px; gap: 4px 20px; }
  .photo-strip__item b { font-size: 20px; }
  .cards-grid, .team-grid { grid-template-columns: 1fr; }
  .how-grid > .card:not(.card--feature) { grid-column: span 12; }
  .card--feature { padding: 28px 24px; }
  .discount-card { flex-direction: column; padding: 24px 20px; }
  .tile { padding: 24px 20px; }
  .values-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .seg { grid-template-columns: repeat(2, 1fr); }
  .cta-island__card { padding: 40px 24px; border-radius: var(--radius-l); }
  .partners-strip__card { padding: 32px 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .path__item { padding-left: 62px; }
  .path__num { width: 42px; height: 42px; font-size: 17px; }
  .path__item::before { left: 20px; }
  .collage { gap: 12px; }
  .collage .c-3, .collage .c-4, .collage .c-5 { grid-column: span 12; aspect-ratio: 16/10; }
  .contact-cards { grid-template-columns: 1fr; }
  .ticket { padding: 28px 24px; }
  .card { padding: 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ============================================================
   V2 «Дорога» — моушн-главная (SCENARIO-V2.md)
   ============================================================ */
:root {
  /* линия дороги: план — «blue-300» на ~45%, пройденное — мягкий blue-500 */
  --road-plan: #8F8FF5;
  --road-plan-opacity: .45;
  --road-done: var(--blue-500);
  --road-done-opacity: .8;
  --marker-line: #C9C9E8;
  --reveal: 350ms; --reveal-stagger: 60ms; --hover: 200ms;
  --marker-fill: 250ms; --marker-pulse: 600ms; --countup: 900ms;
  --road-lerp: 0.15; --road-eyeline: 66%;
}

/* без JS контент обязан быть видимым */
html:not(.js) .reveal,
html:not(.js) .reveal-stagger > * { opacity: 1; transform: none; }

/* ---------- Фон главной: сильно осветлённая Прага (правка клиента) ---------- */
.page-road {
  background:
    linear-gradient(rgba(250,250,250,.93), rgba(250,250,250,.955)),
    url('../assets/photos/prague-rooftops.jpg') center top / cover no-repeat;
}
@media (min-width: 1024px) {
  .page-road { background-attachment: fixed, fixed; }
}

/* ---------- Слой дороги ---------- */
[data-road] { position: relative; }
[data-road] > .container { position: relative; z-index: 1; }
.road-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; overflow: visible; display: block;
}
.road-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.road-svg .rp { stroke: var(--road-plan); stroke-width: 3; stroke-dasharray: 2 14; opacity: .9; }
.road-svg .rd { stroke: var(--blue-600); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.road-svg--thin .rp { stroke-width: 2; }
.road-svg--thin .rd { stroke-width: 2; }
/* без JS: статичный пунктир-ось на левом поле */
html:not(.js) [data-road]::before {
  content: ""; position: absolute; left: 23px; top: 0; bottom: 0; width: 3px;
  background-image: radial-gradient(circle 1.5px, var(--road-plan) 1.4px, transparent 1.6px);
  background-size: 3px 16px; background-repeat: repeat-y;
}

/* ---------- Чекпоинт-маркеры ---------- */
.cp { display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; pointer-events: none; }
.cp__dot {
  width: 48px; height: 48px; border-radius: 50%; box-sizing: border-box;
  background: var(--surface); border: 2.5px solid var(--road-plan);
  color: var(--ink-400); font: 800 20px/1 var(--font-head);
  display: grid; place-items: center; flex-shrink: 0;
  transition: background var(--marker-fill) ease-out, color var(--marker-fill) ease-out,
              border-color var(--marker-fill) ease-out;
}
.cp__label {
  font: 600 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-400); white-space: nowrap;
  background: color-mix(in srgb, var(--bg) 76%, transparent); border-radius: 6px; padding: 2px 6px;
}
.cp.is-reached .cp__dot {
  background: var(--blue-600); color: #fff; border-color: var(--blue-600);
  animation: cp-pulse var(--marker-pulse) ease-out 1;
}
@keyframes cp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,52,255,.25); }
  55% { box-shadow: 0 0 0 12px rgba(52,52,255,.14); }
  100% { box-shadow: 0 0 0 0 rgba(52,52,255,0); }
}
.cp--top { position: absolute; top: -122px; transform: translateX(-50%); }
.cp--at-left { left: 15%; }
.cp--at-center { left: 50%; }
.cp--flow { position: static; transform: none; }
.cp-row { display: flex; justify-content: center; margin: 8px 0 40px; }
/* бонус-маркеры (amber) */
.cp--bonus .cp__dot { border-color: var(--amber-500); background: var(--amber-100); color: #8a5a00; }
.cp--bonus.is-reached .cp__dot {
  background: var(--amber-500); border-color: var(--amber-500); color: var(--ink-900);
  animation: cp-pulse-amber var(--marker-pulse) ease-out 1;
}
@keyframes cp-pulse-amber {
  0% { box-shadow: 0 0 0 0 rgba(255,176,31,.35); }
  55% { box-shadow: 0 0 0 12px rgba(255,176,31,.16); }
  100% { box-shadow: 0 0 0 0 rgba(255,176,31,0); }
}
/* финиш-маркер 64px со стрелкой */
.cp--finish .cp__dot { width: 64px; height: 64px; }
.cp--finish .cp__dot svg { width: 28px; height: 28px; }
.cp--finish.is-reached .cp__dot svg { animation: arrow-pop .45s ease-out .25s 1; }
@keyframes arrow-pop {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-4px); }
}

/* чипы на линии */
.road-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-full);
  box-shadow: var(--shadow-s); padding: 9px 16px;
  font: 600 13px/1.2 var(--font-body); color: var(--ink-600); white-space: nowrap;
}
.road-chip svg { color: var(--blue-600); flex-shrink: 0; }

/* прогресс-бар шапки (только главная) */
.pagebar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.pagebar i {
  display: block; height: 100%; background: var(--blue-600);
  transform: scaleX(0); transform-origin: left center; will-change: transform;
}

/* ---------- Сцена 0 · HERO ---------- */
.hero-v2 {
  overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  min-height: max(92vh, 640px); padding-top: 32px;
}
.hero-v2__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-v2__bg img {
  width: 100%; height: calc(100% + 56px); object-fit: cover; object-position: 72% 40%;
  filter: contrast(1.07) saturate(1.1);
  will-change: transform;
}
.hero-v2__bg::after {
  content: ""; position: absolute; inset: 0;
  /* читаемый центр под текстом; справа студентка проступает отчётливо, слева — здание */
  background:
    linear-gradient(90deg, rgba(250,250,250,.26) 0%, rgba(250,250,250,.76) 26%, rgba(250,250,250,.78) 72%, rgba(250,250,250,.10) 96%),
    linear-gradient(rgba(250,250,250,.42) 0%, rgba(250,250,250,.22) 45%, rgba(250,250,250,.88) 100%);
}
.hero-v2__in { position: relative; z-index: 1; width: 100%; padding-block: 56px 24px; }
/* единственная зацикленная анимация на главной — стрелка чипа «Вы здесь» */
.hero-v2 .badge .dot { animation: none; box-shadow: 0 0 0 4px rgba(18,161,80,.15); }
/* центрированная композиция hero (правка клиента: фото-карточки справа больше нет) */
.hero-v2__col { max-width: 760px; margin-inline: auto; text-align: center; }
.hero-v2 h1 { margin-bottom: 24px; }
.hero-v2 .lead { max-width: 34em; margin-inline: auto; margin-bottom: 36px; }
.hero-v2 .hero__cta { justify-content: center; }
.hero-v2 .hero__note { margin-inline: auto; margin-bottom: 40px; }
.hero-v2 .trust { max-width: 560px; margin-inline: auto; }
.hero-v2 .trust__row { justify-content: center; }
.hero-v2__facts { position: relative; z-index: 1; }
@media (min-width: 1024px) {
  .hero-v2__facts {
    position: absolute; right: 48px; bottom: 190px;
    display: grid; gap: 12px; justify-items: end; z-index: 2;
    will-change: transform;
  }
}
@media (max-width: 1023px) {
  .hero-v2__facts { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 20px 0; justify-content: center; }
}
.fact-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-full);
  box-shadow: var(--shadow-m); padding: 10px 18px;
  font: 500 13.5px/1.3 var(--font-body); color: var(--ink-600);
}
.fact-chip b { font: 800 20px/1 var(--font-head); color: var(--blue-600); font-feature-settings: "tnum"; }
.hero-v2__foot { position: relative; z-index: 1; width: 100%; margin-top: auto; padding-bottom: 20px; }
.hero-v2__here { position: relative; left: 15%; transform: translateX(-50%); }
.hero-v2__here .arr-d { display: inline-block; }
.js .hero-v2__here .arr-d { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
/* вход при загрузке */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js .hero-fx { opacity: 0; animation: rise var(--reveal) ease-out forwards; }
.js .hero-fx--1 { animation-delay: 0ms; }
.js .hero-fx--2 { animation-delay: 120ms; }
.js .hero-fx--3 { animation-delay: 240ms; }
.js .hero-fx--4 { animation-delay: 360ms; }
.js .hero-fx--5 { animation-delay: 480ms; }
/* стрелка под «пути» убрана (правка клиента) — дорога стартует прямо из-под слова */
@media (max-width: 1023px) {
  .hero-v2 { min-height: 0; padding-top: 8px; }
  .hero-v2__in { padding-block: 40px 0; }
  .hero-v2__bg::after {
    background: rgba(250,250,250,.9);
  }
  .hero-v2__foot { padding: 28px 0 18px; }
  .hero-v2__here { left: 0; transform: none; margin-left: -10px; }
  .js .hero-fx { animation-duration: 250ms; }
  .js .hero-fx--2 { animation-delay: 80ms; }
  .js .hero-fx--3 { animation-delay: 160ms; }
  .js .hero-fx--4 { animation-delay: 240ms; }
  .js .hero-fx--5 { animation-delay: 320ms; }
}

/* ---------- Общая геометрия сцен ---------- */
.sc-pad { padding-top: 168px; }
@media (max-width: 1023px) {
  /* линия дороги уходит в левое поле, у самого края экрана: контент больше не
     сдвигается вправо и стоит симметрично, как на остальных страницах */
  [data-road] > .container { padding-left: 20px; }
  /* у CTA-острова линия заходит по центру сверху — боковой отступ под неё не нужен,
     он лишь сдвигал карточку с формой вправо */
  .cta-island > .container { padding-left: 20px; }
  /* линия дороги на мобильном не должна выходить за секцию по горизонтали */
  .road-svg { overflow: hidden; }
  .sc-pad { padding-top: 104px; }
  /* точка стоит справа от линии и касается её левым краем */
  .cp--top { left: 10px; transform: none; flex-direction: row; top: -78px; }
  .cp--top .cp__label { background: none; }
  .cp__dot { width: 40px; height: 40px; font-size: 17px; }
  .cp--finish .cp__dot { width: 52px; height: 52px; }
  .cp--flow { flex-direction: row; margin-left: -10px; justify-content: flex-start; }
  .cp-row { justify-content: flex-start; margin: 0 0 28px; }
}

/* ---------- Сцена 1 · Чекпоинт 1 (карточка слева, текст справа) ---------- */
.sc1__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
@media (min-width: 1024px) {
  .sc1__grid .sc1__txt { order: 2; }
  .sc1__grid .call-card { order: 1; }
}
.consult-line { display: flex; gap: 12px; align-items: center; margin-top: 28px; }
.consult-line .avatar--s { background: var(--blue-600); }
.consult-line p { font: 400 14.5px/1.5 var(--font-body); color: var(--ink-600); max-width: 34ch; }
.consult-line b { color: var(--ink-900); font-weight: 600; }
.chips-label {
  font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-400); margin: 28px 0 12px;
}
.mini-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-full);
  padding: 9px 16px; font: 500 14px/1 var(--font-body); color: var(--ink-600);
}
.mini-chip svg { color: var(--blue-600); flex-shrink: 0; }
.call-card {
  position: relative; margin: 0; background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow-m); overflow: hidden;
}
.call-card__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.call-card__dots { display: flex; gap: 6px; flex-shrink: 0; }
.call-card__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.call-card__dots i:first-child { background: var(--blue-600); }
.call-card__peer {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  font: 600 13.5px/1.3 var(--font-body); color: var(--ink-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.call-card__online {
  flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 3px var(--success-bg);
}
.call-card__video { position: relative; background: var(--blue-100); }
.call-card__video > img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: 50% 20%; }
/* фирменная заглушка вместо фото конкретного человека: логотип + роль на тёмном градиенте */
.call-card__stub {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  display: grid; place-content: center; justify-items: center; gap: 8px;
  padding: 24px 24px 58px; text-align: center; color: #fff;
  background:
    radial-gradient(110% 110% at 26% 12%, rgba(52,52,255,.85) 0%, rgba(52,52,255,0) 62%),
    var(--navy-900);
}
.call-card__stub::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(80% 80% at 70% 90%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 80% at 70% 90%, #000 0%, transparent 75%);
}
.call-card__stub-mark { width: 66px; height: auto; opacity: .95; margin-bottom: 6px; position: relative; }
.call-card__stub-t { font: 600 15.5px/1.3 var(--font-body); position: relative; }
.call-card__stub-s { font: 500 13px/1.3 var(--font-body); color: rgba(255,255,255,.62); position: relative; }
.call-card__self {
  position: absolute; right: 14px; top: 14px;
  width: 92px; aspect-ratio: 4/3; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-s);
  display: grid; place-items: center; align-content: center; gap: 2px;
  color: var(--ink-400);
}
.call-card__self small { font: 600 10.5px/1 var(--font-body); letter-spacing: .04em; }
.call-card__chip {
  position: absolute; left: 16px; bottom: 74px;
  background: rgba(250,250,250,.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: var(--radius-full); padding: 9px 16px;
  font: 600 13px/1.2 var(--font-body); color: var(--ink-600); box-shadow: var(--shadow-s);
}
.call-card__controls {
  display: flex; justify-content: center; gap: 14px;
  padding: 12px 18px; background: var(--surface); border-top: 1px solid var(--line);
}
.call-card__controls .ctl {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-600);
  display: grid; place-items: center;
}
.call-card__controls .ctl--end { background: var(--error); color: #fff; }
/* «положили на стол»: доворот -3deg → -1.5deg */
.call-card.reveal { transform: rotate(-3deg) translateY(16px); }
.call-card.reveal.is-visible { transform: rotate(-1.5deg); }
@media (max-width: 1023px) {
  .sc1__grid { grid-template-columns: 1fr; gap: 40px; min-width: 0; }
  .sc1__grid > * { min-width: 0; max-width: 100%; }
  .call-card { max-width: 100%; }
  .call-card.reveal, .call-card.reveal.is-visible { transform: none; }
}

/* ---------- Сцена 2 · Вилка программ ---------- */
.sc2 .bridge { font-size: 17px; color: var(--ink-600); margin: -24px auto 8px; max-width: 52ch; text-align: center; }
.sc2 .tickets { margin-top: 12px; }
.or-chip { display: none; }
@media (max-width: 1023px) {
  .sc2 .bridge { text-align: left; margin: -16px 0 4px; }
  .or-chip {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface); border: 1.5px solid var(--road-plan);
    font: 600 13px/1 var(--font-body); color: var(--ink-400);
    margin: -8px 0 -8px -10px; position: relative; z-index: 1;
  }
}

/* ---------- Сцена 3 · Документы + голоса ---------- */
.sc3__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
@media (min-width: 1024px) {
  .sc3__grid .sc3__txt { order: 2; }
  .sc3__grid .doc-stack { order: 1; }
}
.doc-stack { display: grid; gap: 0; justify-items: stretch; max-width: 440px; position: relative; }
.doc {
  position: relative; display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-m); padding: 22px 24px;
  font: 600 15px/1.35 var(--font-body); color: var(--ink-900);
}
.doc small { display: block; font: 500 12.5px/1.3 var(--font-body); color: var(--ink-400); margin-top: 3px; }
.doc__ic {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center;
}
.doc--1 { transform: rotate(-2deg); z-index: 1; }
.doc--2 { transform: rotate(1.2deg); margin-top: -8px; z-index: 2; }
.doc--3 { transform: rotate(-1.2deg); margin-top: -8px; z-index: 3; }
.doc__ok {
  margin-left: auto; flex-shrink: 0;
  font: 600 12.5px/1.2 var(--font-body); color: var(--success); background: var(--success-bg);
  border-radius: var(--radius-full); padding: 7px 12px; white-space: nowrap;
}
.doc--3 .doc__ic { background: var(--success-bg); color: var(--success); }
/* каскад «падают на стол» (поверх reveal-stagger) */
.doc-stack.reveal-stagger > .doc { transform: translateY(24px) rotate(0); }
.doc-stack.reveal-stagger.is-visible > .doc--1 { transform: rotate(-2deg); transition-delay: 0ms; }
.doc-stack.reveal-stagger.is-visible > .doc--2 { transform: rotate(1.2deg); transition-delay: 90ms; }
.doc-stack.reveal-stagger.is-visible > .doc--3 { transform: rotate(-1.2deg); transition-delay: 180ms; }
.js .doc__ok { opacity: 0; transform: scale(.9); transition: opacity .3s ease-out, transform .3s ease-out; }
.doc-stack.is-visible .doc__ok { opacity: 1; transform: scale(1); transition-delay: 420ms; }
html:not(.js) .doc__ok { opacity: 1; }
/* мини-таймлайн оплаты */
.pay-line {
  display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
  margin-top: 28px; padding: 18px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
}
.pay-node { display: flex; align-items: baseline; gap: 10px; font: 500 14.5px/1.45 var(--font-body); color: var(--ink-600); }
.pay-node b { color: var(--ink-900); white-space: nowrap; }
.pay-dot {
  flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; align-self: center;
  background: var(--blue-600);
}
.pay-dot--hollow { background: var(--surface); border: 2.5px solid var(--road-plan); box-sizing: border-box; }
.pay-arr { color: var(--road-plan); font-weight: 700; align-self: center; letter-spacing: -1px; }
/* слайс отзывов «Голоса с дороги» */
.voices-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-top: 96px; justify-content: center; text-align: center; }
.voices-head h3 { font-size: clamp(24px, 2.4vw, 30px); }
.plaque, .voices-head .plaque {
  font: 500 13.5px/1.3 var(--font-body); color: var(--ink-400);
  border: 1px dashed var(--line); border-radius: var(--radius-full); padding: 7px 14px;
}
.voices { position: relative; height: 760px; margin-top: 28px; }
.voice {
  position: absolute; left: var(--x); top: var(--y); width: clamp(280px, 29%, 330px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-s); padding: 24px; cursor: default;
  transform: rotate(var(--rot)); z-index: var(--z);
  transition: transform 250ms ease-out, box-shadow 250ms ease-out;
}
.voice > p {
  font: 400 15px/1.55 var(--font-body); color: var(--ink-600); margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.voice footer { display: flex; align-items: center; gap: 12px; }
.voice b { font-size: 15px; font-weight: 600; display: block; }
.voice small { font-size: 13px; color: var(--ink-400); display: block; }
.voice:hover, .voice:focus-within, .voice.is-top {
  z-index: 20; transform: rotate(0) translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-l); transition-duration: var(--hover);
}
.voices.reveal-stagger > .voice { opacity: 0; transform: rotate(var(--rot)) translateY(16px); }
.voices.reveal-stagger.is-visible > .voice { opacity: 1; transform: rotate(var(--rot)); }
.voices.reveal-stagger.is-visible > :nth-child(1) { transition-delay: 0ms; }
.voices.reveal-stagger.is-visible > :nth-child(2) { transition-delay: 70ms; }
.voices.reveal-stagger.is-visible > :nth-child(3) { transition-delay: 140ms; }
.voices.reveal-stagger.is-visible > :nth-child(4) { transition-delay: 210ms; }
.voices.reveal-stagger.is-visible > :nth-child(5) { transition-delay: 280ms; }
.voices.reveal-stagger.is-visible > :nth-child(6) { transition-delay: 350ms; }
.voices.reveal-stagger.is-visible > :nth-child(7) { transition-delay: 420ms; }
.voices.reveal-stagger.is-visible > .voice:hover,
.voices.reveal-stagger.is-visible > .voice:focus-within,
.voices.reveal-stagger.is-visible > .voice.is-top { transform: rotate(0) translateY(-8px) scale(1.03); }
@media (max-width: 1023px) {
  .sc3__grid { grid-template-columns: 1fr; gap: 40px; min-width: 0; }
  /* grid/flex-элементы должны уметь сжиматься — иначе карточки/текст «улетают» вправо */
  .sc3__grid > * { min-width: 0; max-width: 100%; }
  .sc3__txt { text-align: center; }
  .sc3__txt .lead, .sc3__txt .muted { margin-inline: auto; }
  .sc3 .pay-line { justify-content: center; max-width: 100%; }
  .doc-stack { max-width: 100%; margin-inline: auto; justify-self: center; }
  /* карточки договор/приглашение/виза: иконка слева, текст справа от неё;
     длинные строки переносятся внутри текста, а не под иконку */
  .doc { max-width: 100%; text-align: left; }
  .doc > span { min-width: 0; }
  /* у карточки визы чип с процентом уходит на свою строку, а не сжимает текст */
  .doc--3 { flex-wrap: wrap; }
  .doc--3 .doc__ok { margin-left: 52px; }
  .doc__ok { white-space: normal; }
  .doc--1 { transform: rotate(-1.5deg); }
  .doc--2 { transform: rotate(1deg); }
  .doc--3 { transform: rotate(-1deg); }
  .doc-stack.reveal-stagger.is-visible > .doc--1 { transform: rotate(-1.5deg); }
  .doc-stack.reveal-stagger.is-visible > .doc--2 { transform: rotate(1deg); }
  .doc-stack.reveal-stagger.is-visible > .doc--3 { transform: rotate(-1deg); }
  .voices-head { margin-top: 64px; }
  .voices, .team-row { scrollbar-width: none; }
  .voices::-webkit-scrollbar, .team-row::-webkit-scrollbar { display: none; }
  /* «колода со сдвигом»: горизонтальный scroll-snap */
  .voices {
    height: auto; display: flex; align-items: stretch;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 20px 0 0 -20px; padding: 16px 20px 28px 20px;
  }
  .voice {
    position: static; flex: 0 0 82vw; max-width: 380px;
    scroll-snap-align: center; opacity: .7;
    transition: transform 250ms ease-out, opacity 250ms ease-out, box-shadow 250ms ease-out;
  }
  .voice:not(:first-child) { margin-left: -24px; }
  .voice:nth-child(odd) { transform: rotate(-2deg); }
  .voice:nth-child(even) { transform: rotate(2deg); }
  .voice.is-active { transform: rotate(0); opacity: 1; z-index: 5; box-shadow: var(--shadow-m); }
  .voices.reveal-stagger > .voice { transform: none; }
  .voices.reveal-stagger.is-visible > .voice { transform: none; opacity: .7; }
  .voices.reveal-stagger.is-visible > .voice.is-active { opacity: 1; }
}

/* ---------- Сцена 4 · Обучение, преподаватели, приложение ---------- */
.sc4 .mini-chips { margin-top: 24px; }
.team-row { margin-top: 56px; }
/* строки карточек выровнены между собой: подсетка вытягивает ряды из общей сетки,
   поэтому имя, описание, теги и цитата стоят на одной линии во всех карточках.
   row-gap: 0 — иначе зазор сетки раздвинул бы ряды внутри карточки. */
@media (min-width: 1024px) {
  @supports (grid-template-rows: subgrid) {
    .team-row { grid-template-rows: repeat(5, auto); column-gap: 24px; row-gap: 0; }
    .team-row .person { grid-row: span 5; display: grid; grid-template-rows: subgrid; }
    .team-row .person__body { grid-row: span 4; display: grid; grid-template-rows: subgrid; align-content: start; }
  }
}
@media (max-width: 1023px) {
  .team-row {
    display: flex; overflow-x: auto; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    margin: 40px 0 0 -20px; padding: 4px 20px 20px 20px; gap: 16px;
  }
  .team-row .person { flex: 0 0 78vw; max-width: 320px; scroll-snap-align: center; }
}
.app-card {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-l);
  padding: 56px; margin-top: 64px; position: relative; z-index: 1;
}
.badge-amber {
  display: inline-block; font: 600 12px/1 var(--font-body); letter-spacing: .06em;
  text-transform: uppercase; background: var(--amber-100); color: #8a5a00;
  border-radius: var(--radius-full); padding: 8px 14px; margin-bottom: 18px;
}
.app-card h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 14px; }
.app-card__txt > p { color: var(--ink-600); max-width: 52ch; }
.phone {
  width: 272px; justify-self: center;
  background: var(--ink-900); border-radius: 40px; padding: 12px;
  box-shadow: var(--shadow-l);
}
.phone__screen { background: var(--bg); border-radius: 30px; padding: 18px 16px 22px; display: grid; gap: 14px; }
.phone__head {
  display: flex; align-items: center; gap: 8px;
  font: 800 14px/1 var(--font-head); color: var(--ink-900);
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.phone__head img { width: 18px; height: 18px; }
.phone__row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; font: 500 13px/1.3 var(--font-body); color: var(--ink-600);
}
.phone__row b { font: 800 19px/1 var(--font-head); color: var(--ink-900); font-feature-settings: "tnum"; }
.ok-chip {
  font: 600 11.5px/1.2 var(--font-body); color: var(--success); background: var(--success-bg);
  border-radius: var(--radius-full); padding: 5px 10px; white-space: nowrap;
}
.phone__chartwrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 10px; }
.phone__chartcap { font: 600 11.5px/1 var(--font-body); color: var(--ink-400); margin-bottom: 10px; letter-spacing: .04em; text-transform: uppercase; }
.phone__chart { display: flex; gap: 10px; align-items: flex-end; height: 64px; }
.phone__chart i {
  flex: 1; background: var(--blue-600); border-radius: 5px 5px 2px 2px;
  height: calc(var(--h) * 100%); transform-origin: bottom;
}
.phone__chart i:nth-child(2n) { background: var(--blue-500); }
.js .phone__chart i { transform: scaleY(0); transition: transform .35s ease-out; }
.app-card.is-on .phone__chart i { transform: scaleY(1); }
.app-card.is-on .phone__chart i:nth-child(1) { transition-delay: 300ms; }
.app-card.is-on .phone__chart i:nth-child(2) { transition-delay: 360ms; }
.app-card.is-on .phone__chart i:nth-child(3) { transition-delay: 420ms; }
.app-card.is-on .phone__chart i:nth-child(4) { transition-delay: 480ms; }
.app-card.is-on .phone__chart i:nth-child(5) { transition-delay: 540ms; }
html:not(.js) .phone__chart i { transform: scaleY(1); }
.phone__days { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--font-body); color: var(--ink-400); margin-top: 8px; }
.phone__days span { flex: 1; text-align: center; }
@media (max-width: 1023px) {
  .app-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 36px; }
  .phone { width: 260px; }
}

/* ---------- Сцена 5 · Финал (pinned) ---------- */
.sc5 { min-height: 170vh; }
.sc5__pin {
  position: sticky; top: 0; min-height: 100vh; height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.sc5__mark {
  position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 560px; opacity: .05; pointer-events: none; z-index: 0;
}
.sc5__in { text-align: center; display: grid; justify-items: center; gap: 0; }
.sc5__in h2 { margin-bottom: 8px; }
.sc5__lead { color: var(--ink-600); max-width: 52ch; margin-bottom: 12px; }
.sc5__num {
  font: 800 clamp(56px, 8vw, 96px)/1.05 var(--font-head); letter-spacing: -0.03em;
  color: var(--blue-600); font-feature-settings: "tnum"; min-width: 4.2ch;
}
.sc5__cap { font: 500 17px/1.4 var(--font-body); color: var(--ink-600); margin-top: 4px; }
.sc5__next { font: 400 15px/1.5 var(--font-body); color: var(--ink-400); margin-top: 14px; max-width: 52ch; }
.sc5__chips { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.enrol-chip {
  font: 600 14px/1.2 var(--font-body); color: var(--offer-green-ink);
  background: var(--offer-green-bg); border: 1px solid rgba(18,161,80,.25);
  border-radius: var(--radius-full); padding: 10px 18px;
}
.js .sc5__chips .enrol-chip { opacity: 0; transform: translateY(10px); transition: opacity .3s ease-out, transform .3s ease-out; }
.sc5__chips.is-in .enrol-chip { opacity: 1; transform: none; }
.sc5__chips.is-in .enrol-chip:nth-child(2) { transition-delay: 120ms; }
/* список вузов, куда поступают студенты: полные названия + аббревиатура */
.sc5__unis {
  list-style: none; margin: 14px auto 0; padding: 0; max-width: 520px;
  display: grid; gap: 8px; text-align: left;
}
.sc5__unis li {
  position: relative; padding-left: 26px;
  font: 500 15px/1.45 var(--font-body); color: var(--ink-900);
}
.sc5__unis li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--success); font-weight: 700;
}
.sc5__unis li b { font-weight: 600; }
.sc5__unis li span { color: var(--ink-400); font-weight: 400; }
.sc5__unis-more { color: var(--ink-400) !important; font-weight: 400 !important; }
.sc5__unis-more::before { content: "" !important; }
.js .sc5__unis li { opacity: 0; transform: translateY(8px); transition: opacity .3s ease-out, transform .3s ease-out; }
.sc5__unis.is-in li { opacity: 1; transform: none; }
.sc5__unis.is-in li:nth-child(2) { transition-delay: 70ms; }
.sc5__unis.is-in li:nth-child(3) { transition-delay: 140ms; }
.sc5__unis.is-in li:nth-child(4) { transition-delay: 210ms; }
.sc5__unis.is-in li:nth-child(5) { transition-delay: 280ms; }
.sc5__unis.is-in li:nth-child(6) { transition-delay: 350ms; }
.sc5__unis-lead { margin-top: 26px; font: 500 14px/1.4 var(--font-body); color: var(--ink-600); }
.sc5 .cp--finish { margin-top: 36px; }
.sc5__more {
  display: block; margin-top: 18px;
  font: 600 12.5px/1 var(--font-body); letter-spacing: .06em; color: var(--ink-400);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-full);
  padding: 8px 14px; position: relative; z-index: 1;
}
.js .sc5__more { opacity: 0; transition: opacity .35s ease-out; }
.sc5__more.is-in { opacity: 1; }
@media (max-width: 1023px), (prefers-reduced-motion: reduce) {
  /* на мобильном pin статичен и не является containing block для водяного знака —
     без relative+hidden знак раздувал layout-viewport телефона (карточки липли к краю) */
  .sc5 { min-height: 0; position: relative; overflow: hidden; }
  .sc5__pin { position: static; height: auto; min-height: 0; padding: 72px 0; }
  /* текст финала центрируем — как на десктопе; линия дороги идёт по касательной слева */
  .sc5__in { text-align: center; justify-items: center; }
  .sc5__chips { justify-content: center; }
  /* маркер финиша и подпись «дорога продолжается» принадлежат дороге, а не тексту —
     ставим их слева, маркер касается линии */
  .sc5__in .cp--finish { justify-self: start; margin-left: -10px; }
  .sc5__in .sc5__more { justify-self: start; margin-left: -10px; }
}

/* ---------- Сцена 6 · Бонус-чекпоинты ---------- */
.sc6 { padding-block: 72px 88px; }
/* заголовок центрирован (правка клиента); линия дороги мягко уходит под него —
   halo того же цвета, что фон секции, маскирует пунктир в зоне текста */
.sc6 .section-head { max-width: 560px; position: relative; }
.sc6 .section-head::before {
  content: ""; position: absolute; inset: -32px -48px;
  background: radial-gradient(closest-side, var(--bg) 62%, transparent 100%);
  z-index: -1; pointer-events: none;
}
.bonus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; max-width: 940px; margin: 8px auto 0; }
.bonus-col { display: grid; justify-items: center; gap: 18px; align-content: start; position: relative; }
.bonus-col .card { width: 100%; }
.bonus-col .card h3 { font-size: 20px; }
.road-note-row { display: flex; justify-content: center; margin-top: 44px; }
@media (max-width: 1023px) {
  .bonus-grid { grid-template-columns: 1fr; margin: 0; }
  .bonus-col { justify-items: start; }
  .bonus-col .cp { flex-direction: row; margin-left: -10px; }
  .road-note-row { justify-content: flex-start; margin-top: 28px; }
  /* плашка переносится в несколько строк — текст внутри выравниваем по центру,
     иначе рваный левый край в узкой «таблетке» */
  .road-note-row .road-chip { white-space: normal; text-align: center; }
}

/* ---------- Сцена 7 · FAQ и сцена 8 · заявка ---------- */
.sc-cta { padding-top: 128px; }
.cta-lead { color: var(--ink-400); font: 600 13px/1.35 var(--font-body); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.road-end {
  position: absolute; z-index: 1; width: 26px; height: 26px; margin: -4px 0 0 -13px;
  color: var(--blue-600); pointer-events: none;
}
.js .road-end { opacity: 0; transform: scale(.6); transition: opacity .3s ease-out, transform .3s ease-out; }
.road-end.is-in { opacity: 1; transform: scale(1); }
.road-end-chip { position: absolute; z-index: 1; transform: translate(-50%, -50%); }
/* чип «вы здесь» центрируется тем же translate(-50%,-50%), что и на десктопе */
@media (max-width: 1023px) {
  /* место над карточкой: чип + изгиб линии к центру + стрелка */
  .sc-cta { padding-top: 216px; }
}

/* ---------- Галерея «Живые фото студентов» — раскиданные карточки ---------- */
.gallery-band .section-head { margin-inline: auto; text-align: center; }
.gallery-scatter { position: relative; height: 600px; margin-top: 32px; }
.gallery-scatter figure {
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  margin: 0; border-radius: 14px; overflow: hidden; background: #fff;
  border: 5px solid #fff; box-shadow: var(--shadow-m);
  transform: rotate(var(--rot)); z-index: var(--z); cursor: pointer;
  transition: transform 260ms ease-out, box-shadow 260ms ease-out;
}
.gallery-scatter img {
  width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3/2;
}
.gallery-scatter figure:hover,
.gallery-scatter figure:focus-visible {
  z-index: 30; transform: rotate(0) translateY(-10px) scale(1.05);
  box-shadow: var(--shadow-l); outline: none;
}
/* появление при скролле */
.gallery-scatter.reveal-stagger > figure { opacity: 0; transform: rotate(var(--rot)) translateY(18px); }
.gallery-scatter.reveal-stagger.is-visible > figure { opacity: 1; transform: rotate(var(--rot)); }
.gallery-scatter.reveal-stagger.is-visible > figure:hover,
.gallery-scatter.reveal-stagger.is-visible > figure:focus-visible {
  transform: rotate(0) translateY(-10px) scale(1.05);
}
@media (prefers-reduced-motion: reduce) {
  .gallery-scatter.reveal-stagger > figure { opacity: 1; }
}
/* мобильный: горизонтальная колода со scroll-snap, как у отзывов */
@media (max-width: 1023px) {
  .gallery-scatter {
    position: static; height: auto; display: flex;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 28px -20px 0; padding: 12px 20px 24px;
    scrollbar-width: none;
  }
  .gallery-scatter::-webkit-scrollbar { display: none; }
  /* колода с нахлестом — как у отзывов: карточки перекрываются, ближняя к центру активна.
     Десктопные --z и --rot перебиваем: активная всегда в первом ряду. */
  .gallery-scatter figure,
  .gallery-scatter.reveal-stagger > figure,
  .gallery-scatter.reveal-stagger.is-visible > figure {
    position: static; flex: 0 0 78vw; max-width: 360px; width: auto;
    scroll-snap-align: center; opacity: .75; z-index: 1;
    transition: transform 250ms ease-out, opacity 250ms ease-out, box-shadow 250ms ease-out;
  }
  .gallery-scatter figure:not(:first-child) { margin-left: -26px; }
  .gallery-scatter figure:nth-child(odd),
  .gallery-scatter.reveal-stagger.is-visible > figure:nth-child(odd) { transform: rotate(-2deg); }
  .gallery-scatter figure:nth-child(even),
  .gallery-scatter.reveal-stagger.is-visible > figure:nth-child(even) { transform: rotate(2deg); }
  .gallery-scatter figure.is-active,
  .gallery-scatter.reveal-stagger.is-visible > figure.is-active {
    transform: rotate(0) scale(1.03); opacity: 1; z-index: 5;
    box-shadow: 0 10px 32px -10px rgba(18,18,58,.28);
  }
}

/* ---------- Внутренние страницы: мосты к новой главной ---------- */
.page-hero h1 { position: relative; }
.page-hero h1::after {
  content: ""; display: block; width: 96px; height: 14px; margin-top: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 14'%3E%3Cpath d='M2 7 h64' fill='none' stroke='%23C9C9E8' stroke-width='3' stroke-linecap='round' stroke-dasharray='.1 11'/%3E%3Ccircle cx='84' cy='7' r='6' fill='%23FFFFFF' stroke='%233434FF' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
.fork-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); margin-bottom: 16px; }
/* таймлайны внутренних страниц — в пунктир дороги */
.path__item::before, .stages li::after { border-left: 0; width: 3px; background-image: radial-gradient(circle 1.5px, var(--road-plan) 1.4px, transparent 1.6px); background-size: 3px 13px; background-repeat: repeat-y; }

/* ---------- Reduced motion: дорога статична, всё видно ---------- */
@media (prefers-reduced-motion: reduce) {
  .road-svg .rd { stroke-dashoffset: 0 !important; }
  .pagebar { display: none; }
  .js .hero-fx, .js .hero-v2 .hl svg path { opacity: 1; animation: none; stroke-dashoffset: 0; }
  .js .hero-v2__here .arr-d { animation: none; }
  .call-card.reveal, .call-card.reveal.is-visible { transform: rotate(-1.5deg); }
  .doc-stack.reveal-stagger > .doc { opacity: 1; }
  .doc-stack.reveal-stagger > .doc--1 { transform: rotate(-2deg); }
  .doc-stack.reveal-stagger > .doc--2 { transform: rotate(1.2deg); }
  .doc-stack.reveal-stagger > .doc--3 { transform: rotate(-1.2deg); }
  .js .doc__ok { opacity: 1; transform: none; }
  .voices.reveal-stagger > .voice { opacity: 1; transform: rotate(var(--rot)); }
  .js .phone__chart i { transform: scaleY(1); }
  .js .sc5__chips .enrol-chip { opacity: 1; transform: none; }
  .js .sc5__more { opacity: 1; }
  .js .road-end { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1023px) {
  .voice:nth-child(odd), .voice:nth-child(even),
  .voices.reveal-stagger > .voice,
  .voices.reveal-stagger.is-visible > .voice { transform: none; }
}

/* ============================================================
   V3 «Пять маршрутов, два входа» (CONCEPT-V3-PROGRAMS, COPY-V3)
   ============================================================ */
:root {
  /* цветовое кодирование маршрутов (§5.4): 4 родственных синеватых + amber */
  --route-czech: var(--blue-600);
  --route-tech: #7048E8;        /* фиолетово-синий */
  --route-tech-ink: #5B3FC4;    /* текстовый (AA на белом) */
  --route-med: var(--success);
  --route-eng: #38A8E0;         /* небесно-голубой */
  --route-eng-ink: #1D7FB8;     /* текстовый (AA на белом) */
  --route-visa: var(--amber-500);
  --amber-ink: #8a5a00;
}

/* ---------- Hero: столбик из двух чипов-указателей ---------- */
.here-col {
  position: relative; left: 15%; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.here-col .hero-v2__here { position: static; left: auto; transform: none; margin-left: 0; }
a.road-chip { transition: border-color .15s, color .15s; }
a.road-chip:hover { border-color: var(--blue-600); color: var(--blue-600); }
.road-chip--amber { border-color: #EFD9A8; }
.road-chip--amber svg { color: var(--amber-ink); }
a.road-chip--amber:hover { border-color: var(--amber-500); color: var(--amber-ink); }
@media (max-width: 1023px) {
  .here-col { left: 0; transform: none; margin-left: -10px; }
  .here-col .road-chip { white-space: normal; }
}

/* ---------- Сцена 2 · вилка «по ситуации» ---------- */
.fork-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 312px;
  gap: 28px 44px; align-items: start; margin-top: 8px;
}
.fork-group { display: grid; gap: 14px; align-content: start; }
.fork-label {
  justify-self: center; align-self: center; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-full);
  box-shadow: var(--shadow-s); padding: 8px 15px;
  font: 600 12px/1.25 var(--font-body); letter-spacing: .07em; text-transform: uppercase;
  color: var(--blue-700); position: relative; z-index: 1; text-align: center;
}
.fork-label--amber { color: var(--amber-ink); border-color: #EFD9A8; }
/* фон-плашка: линия ветви проходит позади подписи, не по тексту */
.shelf-note {
  text-align: center; font: 500 13.5px/1.45 var(--font-body); color: var(--ink-600);
  margin: 0; align-self: center; justify-self: center; width: fit-content;
  background: var(--surface-2); border-radius: 8px; padding: 3px 12px;
  position: relative; z-index: 1;
}
.mini-tickets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mini-ticket {
  --tk: var(--route-czech);
  position: relative; display: flex; flex-direction: column; gap: 7px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 20px 18px 16px 22px; overflow: hidden; color: var(--ink-900);
  transition: box-shadow .2s ease-out, transform .2s ease-out;
}
.mini-ticket::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--tk); }
.mini-ticket:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); color: var(--ink-900); }
.mini-ticket--tech { --tk: var(--route-tech); }
.mini-ticket--med { --tk: var(--route-med); }
.mini-ticket--eng { --tk: var(--route-eng); }
.mini-ticket__t { font: 800 17px/1.25 var(--font-head); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.mini-ticket__sub { font: 400 13.5px/1.45 var(--font-body); color: var(--ink-600); }
/* резервируем до 2 строк под заголовок и описание, чтобы часы/цена во всех
   карточках вставали на одну линию (в раскладке 2×2 и 4-в-ряд) */
@media (min-width: 641px) {
  .mini-ticket__t { min-height: 2.5em; }
  .mini-ticket__sub { min-height: 2.9em; }
}
.mini-ticket__mix { font: 500 13px/1.45 var(--font-body); color: var(--ink-600); }
.mini-ticket__price {
  margin-top: auto; padding-top: 12px; border-top: 2px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font: 800 18px/1 var(--font-head); letter-spacing: -0.01em;
}
.mini-ticket__price .arr { color: var(--blue-600); font-weight: 600; transition: transform .15s ease-out; }
.mini-ticket:hover .mini-ticket__price .arr { transform: translateX(4px); }
/* карточка «Виза 23» — второй голос: amber-кромка, без перфорации-акции */
.ticket--visa { padding: 26px 26px 22px 30px; }
.ticket--visa::before { background: var(--route-visa); }
.ticket--visa .ticket__badge { background: var(--amber-100); color: var(--amber-ink); }
.ticket--visa h3 { font-size: 20px; margin-bottom: 10px; }
.ticket--visa > p { font-size: 14.5px; margin-bottom: 14px; }
.ticket--visa .ticket__facts { font: 500 13.5px/1.5 var(--font-body); color: var(--ink-600); margin-bottom: 18px; }
.ticket--visa .ticket__price { border-top: 1px solid var(--line); }
.ticket--visa .ticket__price b { font-size: 24px; }
/* строка на линии после схождения веток */
.fork-merge { margin-top: 44px; }
.fork-merge .road-chip { white-space: normal; text-align: center; }
/* подпись + ghost-кнопка под секцией (фоны маскируют линию хвоста) */
.fork-foot { text-align: center; margin-top: 36px; position: relative; z-index: 1; }
.fork-foot .muted {
  max-width: 56ch; width: fit-content; margin-inline: auto;
  background: var(--surface-2); border-radius: 8px; padding: 3px 12px;
}
.fork-foot .btn { margin-top: 18px; }
.fork-foot .btn--secondary { background: var(--surface-2); }
.sc2 .discount-card { margin-top: 32px; }
/* amber-ветвь вилки «вливается» в основную линию */
.sc2 .road-svg .rp[data-seg="br"] { stroke: #EFC06A; }
.sc2 .road-svg .rd[data-seg="br"] { stroke: var(--amber-500); }
/* узкий десктоп (1024–1199): компактнее полка и карточка визы */
@media (min-width: 1024px) and (max-width: 1199px) {
  .fork-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px 32px; }
  .mini-tickets { gap: 12px; }
  .mini-ticket { padding: 18px 14px 14px 18px; }
  .mini-ticket__t { font-size: 15.5px; }
}

/* мобильные чипы-соединители на вертикальной оси */
.axis-chip { display: none; }
@media (max-width: 1023px) and (min-width: 641px) {
  .mini-tickets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .fork-grid { grid-template-columns: 1fr; gap: 20px; }
  .fork-group { grid-template-rows: none; }
  .fork-label { display: none; }
  .shelf-note { text-align: left; }
  .axis-chip {
    display: inline-flex; align-items: center; align-self: start; justify-self: start;
    background: var(--surface); border: 1.5px solid var(--road-plan); border-radius: var(--radius-full);
    padding: 8px 14px; font: 600 12.5px/1.2 var(--font-body); color: var(--ink-600);
    margin-left: -10px; position: relative; z-index: 1;
  }
  .axis-chip--amber { border-color: var(--amber-500); color: var(--amber-ink); }
  .fork-merge { margin-top: 28px; justify-content: flex-start; }
  .fork-foot { text-align: left; margin-top: 28px; }
  .fork-foot .muted { margin-inline: 0; }
}
@media (max-width: 640px) {
  .mini-tickets { grid-template-columns: 1fr; }
}

/* ---------- Programs v3: плашка «во все направления входит» ---------- */
.base-strip {
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-m);
  padding: 18px 22px; margin: 0 0 36px;
  font: 500 14.5px/1.55 var(--font-body); color: var(--ink-600);
}
.base-strip b { color: var(--ink-900); font-weight: 600; }
.base-strip + .base-strip__note { margin: -24px 0 36px; font: 400 14px/1.5 var(--font-body); }

/* amber-кикер островов визы 23 */
.kicker--amber { color: var(--amber-ink); }

/* переключатель вариантов внутри билета (радиогруппа) */
.variant-seg { border: 0; padding: 0; display: grid; gap: 8px; margin-bottom: 14px; }
.variant-seg label { position: relative; display: block; cursor: pointer; }
.variant-seg input { position: absolute; opacity: 0; inset: 0; height: auto; cursor: pointer; }
.variant-seg .variant-opt {
  display: flex; gap: 12px; align-items: baseline; justify-content: space-between;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface-2); font: 500 14px/1.4 var(--font-body); color: var(--ink-600);
  transition: background .12s, color .12s, border-color .12s;
}
.variant-seg .variant-opt b { color: var(--ink-900); font-weight: 600; }
.variant-seg .variant-opt .variant-price { white-space: nowrap; font-weight: 600; }
.variant-seg input:checked + .variant-opt { background: var(--blue-100); border-color: var(--blue-600); color: var(--blue-800); }
.variant-seg input:checked + .variant-opt b { color: var(--blue-800); }
.variant-seg input:focus-visible + .variant-opt { box-shadow: var(--focus-ring); }
.variant-note { font: 400 13.5px/1.5 var(--font-body); color: var(--ink-400); margin-bottom: 20px; }

/* матрица сравнения направлений */
.compare--matrix { min-width: 960px; }
.compare--matrix thead th { font-size: 16px; }
.compare--matrix thead th:nth-child(2) { color: var(--route-czech); }
.compare--matrix thead th:nth-child(3) { color: var(--route-tech-ink); }
.compare--matrix thead th:nth-child(4) { color: var(--offer-green-ink); }
.compare--matrix thead th:nth-child(5) { color: var(--route-eng-ink); }
.compare--matrix tbody th, .compare--matrix thead td:first-child {
  background: var(--surface);
}
.compare--matrix tfoot td {
  background: var(--blue-50); font: 500 14.5px/1.5 var(--font-body); color: var(--ink-600);
  border-bottom: 0; padding: 18px 24px;
}
.compare--matrix tfoot b { color: var(--ink-900); font-weight: 600; }
.matrix-under { margin-top: 20px; font: 500 15px/1.5 var(--font-body); color: var(--ink-600); }

/* Подсказка о горизонтальной прокрутке — только там, где таблица не влезает целиком */
.compare-hint { display: none; }

/* На узких экранах таблица остаётся таблицей и прокручивается по горизонтали:
   первая колонка не фиксируется (иначе не пролистать), ячейки компактнее. */
@media (max-width: 1023px) {
  .compare-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .compare--matrix { min-width: 1000px; }
  .compare--matrix th, .compare--matrix td { padding: 13px 16px; font-size: 14px; }
  .compare--matrix thead th { font-size: 15px; }
  .compare--matrix tbody th { width: 20%; font-size: 13.5px; }
  .compare--matrix tfoot td { padding: 15px 16px; font-size: 13.5px; }
  .compare-hint {
    display: block; margin-bottom: 12px;
    font: 500 13px/1.4 var(--font-body); color: var(--ink-400);
  }
}

/* оплата двумя таймлайнами */
.pay-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pay-col {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  border-top: 4px solid var(--blue-600); padding: 28px 30px;
  display: flex; flex-direction: column;
}
.pay-col--amber { border-top-color: var(--amber-500); }
.pay-col__t {
  font: 600 13px/1.25 var(--font-body); letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-400); margin-bottom: 18px;
}
.pay-steps { display: grid; gap: 14px; }
.pay-steps .pay-node { align-items: flex-start; }
/* строка целиком в <b> — переносим её, иначе распирает колонку на узких экранах */
.pay-steps .pay-node b { white-space: normal; }
.pay-steps .pay-node small {
  display: block; margin-top: 5px;
  font: 400 13.5px/1.5 var(--font-body); color: var(--ink-400);
}
.pay-steps .pay-dot { margin-top: 6px; align-self: flex-start; }
.pay-col__strong { font: 600 15px/1.5 var(--font-body); color: var(--ink-900); margin-top: 18px; }
.pay-col__note { font: 400 13.5px/1.5 var(--font-body); color: var(--ink-400); margin-top: 10px; }
@media (max-width: 1023px) {
  .pay-cols { grid-template-columns: 1fr; }
}

/* остров «Уже в Чехии: виза 23» */
.visa-rows { display: grid; gap: 10px; margin: 6px 0 18px; }
.visa-row {
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
  padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-s); font: 500 14.5px/1.5 var(--font-body); color: var(--ink-900);
}
.visa-row small { font-weight: 400; color: var(--ink-600); font-size: 13.5px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip-row .mini-chip { font-size: 13.5px; padding: 8px 14px; }
.ticket--wide { max-width: 860px; }
.ticket--wide .ticket__price { flex-wrap: wrap; }

/* честный юридический абзац (виза 23) */
.law-note {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--amber-500);
  border-radius: var(--radius-s); padding: 20px 24px;
  font: 400 15px/1.6 var(--font-body); color: var(--ink-600); max-width: 68ch;
}

/* чипы фактов на карточках направлений */
.ticket__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ticket__chips span {
  font: 500 13px/1.2 var(--font-body); color: var(--ink-600);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-full); padding: 6px 12px;
}
.ticket--route { --tk: var(--route-czech); }
.ticket--route::before { background: var(--tk); }
.ticket--route-tech { --tk: var(--route-tech); }
.ticket--route-med { --tk: var(--route-med); }
.ticket--route-eng { --tk: var(--route-eng); }

/* ============================================================
   Страница «Отзывы»: плашка рейтинга, стена цитат, видео-отзывы
   ============================================================ */

/* хиро: текст + плашка рейтинга справа */
.reviews-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
/* minmax(0,1fr), а не 1fr: у 1fr авто-минимум = min-content, и несжимаемая кнопка
   внутри .gscore распирала колонку за край экрана на узких телефонах */
@media (max-width: 1023px) { .reviews-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.gscore {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-m); padding: 28px;
}
.gscore__top { display: flex; align-items: center; gap: 14px; }
.gscore__num {
  font: 800 52px/1 var(--font-head); color: var(--blue-600);
  letter-spacing: -0.02em; font-feature-settings: "tnum";
}
/* звёзды: серый слой снизу, amber-слой сверху обрезается по --fill */
.gscore__stars { position: relative; display: inline-block; width: 108px; height: 20px; }
.gscore__stars i { position: absolute; inset: 0; display: block; overflow: hidden; }
.gscore__stars svg { display: block; height: 20px; width: 108px; }
.gscore__stars-bg { color: var(--line); }
.gscore__stars-fg { color: var(--amber-500); width: var(--fill, 100%); }
.gscore__count { font: 500 15px/1.4 var(--font-body); color: var(--ink-900); margin-top: 16px; }
.gscore__count b { font-weight: 700; }
.gscore__note { font: 400 13px/1.45 var(--font-body); color: var(--ink-400); margin-top: 6px; }
.gscore .btn { margin-top: 18px; width: 100%; justify-content: center; gap: 10px; font-size: 15px; padding: 13px 18px; height: auto; min-height: 52px; white-space: normal; text-align: center; }
.gscore .btn svg { flex-shrink: 0; }

/* стена цитат из Google */
/* полные тексты разной длины → кладка колонками, чтобы не было пустот в рядах */
.quotes--wall { display: block; columns: 3; column-gap: 24px; }
.quotes--wall .quote-card { break-inside: avoid; margin-bottom: 24px; }
@media (max-width: 1023px) { .quotes--wall { columns: 2; } }
@media (max-width: 640px) { .quotes--wall { columns: 1; } }
.quote-card--google { padding: 28px; }
.quote-card--google blockquote { margin: 0; }
.quote-card--google blockquote p { margin-bottom: 20px; font-size: 15.5px; }
.quote-card__stage {
  align-self: flex-start; margin-bottom: 14px;
  font: 600 12px/1 var(--font-body); color: var(--blue-800);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--radius-full); padding: 7px 12px;
}
.quote-card__src { color: var(--ink-400); }
.quotes__more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.quote-card[hidden] { display: none; }
.attr-line {
  font: 400 15px/1.6 var(--font-body); color: var(--ink-600);
  max-width: 76ch; margin-top: 14px;
}
.attr-line b { color: var(--ink-900); font-weight: 600; }

/* видео-отзывы: вертикальный кадр, воспроизведение по клику */
.vstories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1180px) { .vstories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vstories { grid-template-columns: 1fr; } .vstory { max-width: 340px; margin-inline: auto; } }
.vstory { margin: 0; }
.vstory__frame {
  position: relative; aspect-ratio: 9/16; overflow: hidden;
  border-radius: var(--radius-m); background: var(--navy-900);
  border: 1px solid var(--line);
}
.vstory__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vstory__play {
  position: absolute; inset: 0; margin: auto;
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--blue-600);
  display: grid; place-items: center; box-shadow: var(--shadow-m);
  transition: transform .15s ease-out, background .15s ease-out;
}
@media (hover: hover) { .vstory__play:hover { transform: scale(1.07); background: #fff; } }
.vstory__meta {
  position: absolute; right: 10px; bottom: 10px;
  font: 600 12px/1 var(--font-body); color: #fff;
  background: rgba(18, 18, 58, .6); border-radius: var(--radius-full); padding: 6px 10px;
}
.vstory.is-playing .vstory__play, .vstory.is-playing .vstory__meta { opacity: 0; pointer-events: none; }
.vstory.is-loading .vstory__play { opacity: 0; }
.vstory__spinner { display: none; }
.vstory.is-loading .vstory__spinner {
  display: block; position: absolute; inset: 0; margin: auto;
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: vspin .8s linear infinite;
}
@keyframes vspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vstory.is-loading .vstory__spinner { animation: none; } }
.vstory__cap { margin-top: 14px; }
.vstory__cap b { font: 700 16px/1.3 var(--font-head); display: block; }
.vstory__cap small { font: 400 13.5px/1.45 var(--font-body); color: var(--ink-600); display: block; margin-top: 3px; }
.vstory__cap .vstory__lang { color: var(--ink-400); font-size: 12.5px; }
.vstory__fallback { padding: 20px; color: #fff; font-size: 14px; }

/* экскурсия по академии: видео + текст */
.tour-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .tour-row { grid-template-columns: 1fr; gap: 24px; } .tour-row .vstory { max-width: 300px; } }

/* «указатель» обратно на дорогу главной */
.road-note-row {
  display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--radius-l); padding: 28px 32px;
}
.road-note-row p { font: 500 16px/1.5 var(--font-body); color: var(--ink-900); max-width: 60ch; }

/* меню из 4 пунктов (2 группы) помещается на ноутбуках — бургер с планшета */
@media (max-width: 1023px) {
  .nav, .header .btn--header { display: none; }
  .burger { display: inline-flex; }
}

/* источник цитаты в колоде «Голоса с дороги» на главной */
.voice__src { display: block; font: 400 12px/1.4 var(--font-body); color: var(--ink-400); margin-top: 2px; }
.plaque--link { text-decoration: none; transition: background .15s ease-out, color .15s ease-out; }
.plaque--link:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }

/* статичная карта на «Контактах»: OSM-склейка с двумя пинами, без внешних запросов */
.map-static { margin: 24px 0 0; }
.map-static img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-m); border: 1px solid var(--line);
}
.map-static figcaption { display: grid; gap: 6px; margin-top: 12px; }
.map-static figcaption span { display: flex; align-items: center; gap: 8px; font: 400 14px/1.5 var(--font-body); color: var(--ink-600); }
.map-static figcaption small { color: var(--ink-400); font-size: 12px; }

/* ============================================================
   Меню с выпадающими группами («Программы ▾», «Об академии ▾»)
   ============================================================ */
.nav-group { position: relative; display: flex; }
.nav-group__btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 10px; white-space: nowrap;
  font: 500 15px/1 var(--font-body); color: var(--ink-600);
  background: none; border: 0; cursor: pointer;
  transition: color .15s ease-out, background .15s ease-out;
}
.nav-group__btn:hover { color: var(--blue-600); background: var(--blue-50); }
.nav-group.is-active .nav-group__btn { color: var(--ink-900); font-weight: 600; }
.nav-group__btn .chev { width: 14px; height: 14px; transition: transform .18s ease-out; }
.nav-group.is-open .nav-group__btn { color: var(--blue-600); background: var(--blue-50); }
.nav-group.is-open .nav-group__btn .chev { transform: rotate(180deg); }
.nav-group__panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; display: none;
  min-width: 268px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-m); box-shadow: var(--shadow-l);
}
.nav-group.is-open > .nav-group__panel { display: grid; gap: 2px; }
.nav-group:focus-within > .nav-group__panel { display: grid; gap: 2px; }
/* невидимый мост через зазор кнопка→панель, чтобы курсор не терял наведение */
.nav-group__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-group__panel a {
  display: block; padding: 10px 12px; border-radius: 8px; white-space: nowrap;
  font: 500 14.5px/1.3 var(--font-body); color: var(--ink-700);
  transition: color .15s ease-out, background .15s ease-out;
}
.nav-group__panel a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav-group__panel a[aria-current="page"] { color: var(--blue-600); font-weight: 600; }
.nav-group__panel a.nav-group__all { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; padding-bottom: 12px; color: var(--ink-900); font-weight: 600; }

/* мобильное меню: группы с подзаголовком (аккордеон не нужен — меню на весь экран) */
.m-group { display: grid; gap: 2px; margin: 6px 0; }
.m-group__t {
  font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-400); padding: 12px 8px 6px;
}
.mobile-menu > nav .m-group a { font-size: 20px; padding: 9px 8px 9px 20px; }

/* мессенджеры: кнопки WhatsApp / Telegram (свои цвета брендов, без внешних скриптов) */
.msg-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.msg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-full);
  font: 600 14.5px/1 var(--font-body); color: #fff;
  transition: transform .15s ease-out, box-shadow .15s ease-out, opacity .15s;
}
.msg-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-s); color: #fff; }
.msg-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.msg-btn--wa { background: #25D366; }
.msg-btn--tg { background: #29A0DA; }
/* в футере — компактные, на тёмном фоне */
.footer .msg-btns { margin-top: 12px; gap: 8px; }
.footer .msg-btn { padding: 8px 14px; font-size: 13.5px; }

/* контакты «как мы выходим на связь»: карточки-ссылки вместо чипов-декораций */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--surface); color: var(--ink-900);
  transition: border-color .15s ease-out, box-shadow .15s ease-out, transform .15s ease-out;
}
.contact-card:hover { border-color: var(--blue-600); box-shadow: var(--shadow-s); transform: translateY(-1px); color: var(--ink-900); }
.contact-card__ic {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600);
}
.contact-card__ic svg { width: 19px; height: 19px; }
.contact-card--wa .contact-card__ic { background: rgba(37, 211, 102, .14); color: #1FA855; }
.contact-card--tg .contact-card__ic { background: rgba(41, 160, 218, .14); color: #2189B8; }
.contact-card b { display: block; font: 600 15px/1.25 var(--font-body); }
.contact-card small { display: block; margin-top: 2px; font: 400 13px/1.35 var(--font-body); color: var(--ink-400); }
/* аватар-фото не должен сплющиваться во flex-контейнерах (был овал в шапке формы) */
.avatar { flex-shrink: 0; }

/* ---------- Блог: список статей и страница статьи ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  transition: box-shadow .16s, transform .16s, border-color .16s;
}
.post-card:hover { box-shadow: var(--shadow-m); border-color: var(--blue-100); transform: translateY(-2px); }
.post-card__media { display: block; aspect-ratio: 3 / 2; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.post-card__date { font: 500 13px/1.3 var(--font-body); color: var(--ink-400); }
.post-card h3 { font: 700 19px/1.32 var(--font-head); letter-spacing: -0.01em; }
.post-card h3 a { color: var(--ink-900); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue-600); }
.post-card p { font: 400 14.5px/1.55 var(--font-body); color: var(--ink-600); }
.post-card .link-arrow { margin-top: auto; padding-top: 6px; font-size: 14.5px; }

.post-hero { padding-bottom: 40px; }
.post-hero h1 { max-width: 22em; }
.post-hero h1::after { display: none; }
.crumbs { font: 500 13px/1.3 var(--font-body); margin-bottom: 14px; }
.crumbs a { color: var(--blue-600); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.post-meta { font: 500 14px/1.4 var(--font-body); color: var(--ink-400); margin: 14px 0 18px; }
.post-figure { margin-bottom: 48px; }
.post-figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-l); border: 1px solid var(--line);
}

.post-body { max-width: 44em; margin-inline: auto; padding-bottom: 8px; }
.post-body h2 {
  font: 700 clamp(22px, 2.2vw, 27px)/1.25 var(--font-head); letter-spacing: -0.015em;
  color: var(--ink-900); margin: 40px 0 16px;
}
.post-body h2:first-child { margin-top: 0; }
.post-body p { font: 400 17px/1.65 var(--font-body); color: var(--ink-600); margin-bottom: 18px; }
.post-body p b, .post-body li b { color: var(--ink-900); font-weight: 600; }
.post-list { list-style: none; display: grid; gap: 14px; margin: 0 0 22px; }
.post-list li {
  position: relative; padding-left: 26px;
  font: 400 17px/1.6 var(--font-body); color: var(--ink-600);
}
.post-list li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue-600);
}
.post-note {
  background: var(--blue-50); border-left: 4px solid var(--blue-600);
  border-radius: var(--radius-s); padding: 20px 24px; margin-top: 28px;
  font: 500 16px/1.6 var(--font-body) !important; color: var(--ink-600);
}
.post-back { max-width: 44em; margin: 36px auto 0; }

@media (max-width: 1023px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-figure { margin-bottom: 36px; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-body h2 { margin-top: 32px; }
  .post-body p, .post-list li { font-size: 16px; }
  .post-figure img { border-radius: var(--radius-m); }
}

/* ---------- Мобильный: текст в блоках-«колонках» выравниваем по центру ---------- */
/* На широком экране эти блоки стоят рядом с картинкой или карточкой и текст в них
   логично прижат влево. На телефоне они разворачиваются в одну колонку — и тогда
   левое выравнивание выбивается из остальных блоков, где текст центрирован. */
@media (max-width: 1023px) {
  .sc1__txt, .app-card__txt, .cta-island__txt { text-align: center; }
  .sc1__txt .lead, .app-card__txt p, .cta-island__txt p { margin-inline: auto; }
  .consult-line { justify-content: center; }
  .consult-line p { text-align: left; }
  /* ряды чипов внутри блоков дороги — по центру, вслед за текстом над ними */
  [data-road] .mini-chips { justify-content: center; }
  /* подпись консультанта: аватар над текстом, иначе он висит сбоку от центрированного блока */
  .cta-island__txt .consultant { flex-direction: column; gap: 12px; }
  .cta-island__txt .consultant small { max-width: 30ch; margin-inline: auto; }
  .hero-v2__facts .fact-chip { justify-content: center; text-align: center; }
}

/* ---------- Продление визы: типы виз 99 / 23-24D и ценовые карточки ---------- */
.visa-types { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.visa-type {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  border-top: 4px solid var(--amber-500); padding: 20px 22px;
}
.visa-type--study { border-top-color: var(--blue-600); }
.visa-type h3 { font-size: 16.5px; margin: 0 0 8px; }
.visa-type p { font-size: 14.5px; margin: 0; }

.visa-price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 24px; }
.visa-price-card {
  background: var(--amber-50, #FFF8EA); border: 1px solid #EFD9A8; border-radius: var(--radius-m);
  padding: 18px 20px; font: 400 15px/1.6 var(--font-body); color: var(--ink-600);
}
.visa-price-card--study { background: var(--blue-50); border-color: var(--blue-100); }
.visa-price-card b { color: var(--ink-900); font-weight: 600; }

@media (max-width: 640px) {
  .visa-types, .visa-price-cards { grid-template-columns: 1fr; }
}

/* фото-лента на детальных страницах: кадрируется по высоте, не съедает экран */
.detail-figure { margin: 0 0 48px; border-radius: var(--radius-l); overflow: hidden; }
.detail-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .detail-figure { border-radius: var(--radius-m); }
  .detail-figure img { aspect-ratio: 16 / 9; }
}
