/* ==========================================================================
   Институт ПК ЦФО — основная таблица стилей
   Палитра А из ТЗ (разд. 8.1) с поправками на контраст WCAG 2.2 AA.
   Порядок: шрифты → токены → база → раскладка → элементы → блоки → страницы → доступность → печать
   ========================================================================== */

/* ---------- Шрифт: Golos Text, локально (152-ФЗ, разд. 11 ТЗ) ---------- */
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --blue-900: #2b2d6e;   /* Индиго логотипа, светлее надписи: заголовки, меню, тёмные акценты (12.3:1) */
  --blue-950: #1f2156;   /* Самый тёмный: мелкие плашки и выделения */
  --blue-600: #4f50a8;   /* Барвинок — дуга логотипа: ссылки, иконки, активные фильтры (6.9:1) */
  --blue-100: #e3e4f5;
  --blue-50:  #f3f3fb;
  --gold-500: #f4a62a;   /* Акцент: только крупные элементы и декор */
  --gold-400: #f4a62a;   /* Фон CTA-кнопок: текст --on-gold 8.2:1 */
  --on-gold: #1c1d2e;    /* Текст на золоте: нейтральный, без синевы — синий на жёлтом мутнеет */
  --gold-600: #e8951a;   /* Hover CTA */
  --gold-800: #8a5a00;   /* Мелкий акцентный текст (5.9:1) */
  --gold-50:  #fdf6e3;
  --green-700: #17784b;  /* Success: «В реестре», «Аккредитовано» (5.5:1) */
  --green-50:  #e9f5ef;
  --red-700: #c62828;    /* Ошибки, «штрафы» */
  --red-50:  #fdecec;

  --bg: #ffffff;
  --bg-alt: #f6f6fb;     /* Чередование секций — холодный сиреневый, без бежевого */
  --line: #dfe0ea;
  --line-strong: #c6c8d8;
  --text: #1c1d2e;
  --text-2: #5c5e72;

  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Шкала разд. 8.2: mobile → desktop */
  --fs-cap: 0.875rem;                                   /* 14 */
  --fs-body: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);  /* 16 → 17 */
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);   /* 17 → 20 */
  --fs-h3: clamp(1.25rem, 1.18rem + 0.3vw, 1.375rem);   /* 20 → 22 */
  --fs-h2: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);        /* 24 → 32 */
  --fs-h1: clamp(1.875rem, 1.4rem + 2.1vw, 2.75rem);    /* 30 → 44 */

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --r-btn: 8px;
  --r-card: 12px;
  --r-panel: 16px;

  --shadow: 0 10px 30px -14px rgb(43 45 110 / .35), 0 2px 6px -2px rgb(43 45 110 / .08);
  --container: 1300px;   /* ширина контента; с полями по 32px — 1364px */
  --gutter: 16px;
  --header-h: 64px;
  --focus-ring: 0 0 0 3px #fff, 0 0 0 5px var(--blue-600);
}
@media (min-width: 768px)  { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 76px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.55; color: var(--text); background: var(--bg); font-feature-settings: "kern"; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-900); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 var(--s4); line-height: 1.15; color: var(--blue-900); font-weight: 750; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.022em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: var(--fs-body); }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.3em; }
li + li { margin-top: .35em; }
table { font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -80px; z-index: 1000; padding: 12px 16px; background: var(--blue-900); color: #fff; border-radius: var(--r-btn); }
.skip-link:focus { top: 8px; color: #fff; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- Раскладка ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s8); }
@media (min-width: 1024px) { .section { padding-block: 72px; } }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: var(--s7); }
.section-head { max-width: 760px; margin-bottom: var(--s6); }
.section-head > :last-child { margin-bottom: 0; }
.section-head p { color: var(--text-2); font-size: var(--fs-lead); }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: end; justify-content: space-between; }
.section-head--split > div { max-width: 760px; }
.section-head--split > div > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: var(--s5); }
/* На телефоне — горизонтальная лента с прокруткой вместо столбика карточек: главная короче в разы */
@media (max-width: 639px) {
  .rail-m.rail-m { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--s3); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) var(--s3); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .rail-m.rail-m::-webkit-scrollbar { display: none; }
  .rail-m > * { scroll-snap-align: start; }
}
@media (min-width: 640px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stack > * + * { margin-top: var(--s4); }

/* ---------- Кнопки ---------- */
.btn {
  --bg: var(--gold-400); --fg: var(--on-gold); --bd: var(--gold-400);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 11px 22px;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  color: var(--fg); background: var(--bg); border: 2px solid var(--bd); border-radius: var(--r-btn);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { --bg: var(--gold-600); --bd: var(--gold-600); color: var(--fg); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
.btn--secondary { --bg: #fff; --fg: var(--blue-900); --bd: var(--blue-900); }
.btn--secondary:hover { --bg: var(--blue-900); --fg: #fff; --bd: var(--blue-900); }
.btn--ghost { --bg: transparent; --fg: var(--blue-600); --bd: transparent; padding-inline: 12px; }
.btn--ghost:hover { --bg: var(--blue-50); --fg: var(--blue-900); --bd: var(--blue-50); }
.btn--on-dark { --bg: #fff; --fg: var(--blue-900); --bd: var(--line-strong); }
.btn--on-dark:hover { --bg: var(--blue-900); --fg: #fff; --bd: var(--blue-900); }
.btn--sm { min-height: 40px; padding: 7px 14px; font-size: var(--fs-cap); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-more { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-more:hover { text-decoration: underline; }

/* ---------- Иконки, бейджи, цены ---------- */
.icon { width: 20px; height: 20px; flex: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-size: var(--fs-cap); font-weight: 600; line-height: 1.35; background: var(--blue-50); color: var(--blue-900); }
.badge .icon { width: 16px; height: 16px; }
.badge--ok { background: var(--green-50); color: var(--green-700); }
.badge--warn { background: var(--gold-50); color: var(--gold-800); }
.badge--line { background: transparent; border: 1px solid var(--line-strong); color: var(--text-2); }
.price { font-weight: 800; font-size: 1.375rem; line-height: 1.1; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { font-size: .7em; font-weight: 600; color: var(--text-2); }
.muted { color: var(--text-2); }
.cap { font-size: var(--fs-cap); }

/* ---------- Формы ---------- */
.field { display: grid; gap: 6px; margin-bottom: var(--s4); }
.field > label, .field__label { font-size: var(--fs-cap); font-weight: 600; }
.field__opt { font-weight: 400; color: var(--text-2); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 14px; background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-btn); transition: border-color .15s, box-shadow .15s; }
.select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235c5e72' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.textarea { min-height: 104px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgb(79 80 168 / .2); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--red-700); background: var(--red-50); }
.field__error { font-size: var(--fs-cap); color: var(--red-700); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-cap); line-height: 1.45; color: var(--text-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue-600); }
.check a { color: inherit; }
.check--error { color: var(--red-700); }
.file-drop { display: flex; gap: var(--s3); align-items: center; padding: 12px 14px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-btn); font-size: var(--fs-cap); color: var(--text-2); cursor: pointer; }
.file-drop:hover { border-color: var(--blue-600); }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-drop:focus-within { box-shadow: var(--focus-ring); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin: var(--s3) 0 0; font-size: 0.8125rem; color: var(--text-2); }
.form__alert { padding: 10px 14px; border-radius: var(--r-btn); background: var(--red-50); color: var(--red-700); font-size: var(--fs-cap); margin-bottom: var(--s4); }
.form-done { text-align: center; padding: var(--s5) 0 var(--s3); }
.form-done .icon { width: 56px; height: 56px; margin: 0 auto var(--s4); color: var(--green-700); }
.form-done h3 { margin-bottom: var(--s2); }
.form-done p { color: var(--text-2); margin: 0; }
.form-row { display: grid; gap: 0 var(--s4); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Шапка: строка с логотипом и полоса меню ---------- */
.header { position: relative; z-index: 52; background: #fff; border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: var(--s5); min-height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--blue-900); text-decoration: none; }
.logo:hover { color: var(--blue-900); text-decoration: none; }
.logo__mark { display: block; width: 56px; flex: none; }
.logo__mark img { display: block; width: 100%; height: auto; }
.logo__text { display: grid; line-height: 1.15; }
.logo__name { font-weight: 800; font-size: 1.0625rem; letter-spacing: -.01em; }
.logo__sub { font-size: 0.75rem; color: var(--text-2); max-width: 210px; }
.header__search { flex: 1 1 360px; max-width: 520px; }
.header__search .search__field { padding: 3px 3px 3px 12px; }
.header__search .search__field input { min-height: 40px; }
.header__contacts { display: grid; margin-left: auto; line-height: 1.25; text-align: right; }
.header__phone { font-size: 1.1875rem; font-weight: 800; color: var(--text); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header__phone:hover { color: var(--blue-600); }
.header__meta { font-size: 0.8125rem; color: var(--text-2); white-space: nowrap; }
.header__msg { display: flex; gap: 6px; }
.header__cta { flex: none; }
.header__mobile { display: none; gap: 8px; margin-left: auto; }
.msg-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; text-decoration: none; }
.msg-ico .icon { width: 18px; height: 18px; }
.msg-ico--tg { background: #1f6fb2; }
.msg-ico--max { background: #5b3fd1; }
.msg-ico:hover { filter: brightness(.9); }
@media (max-width: 1279px) { .header__meta, .header__msg { display: none; } .header__search { max-width: 400px; } }
@media (max-width: 1023px) {
  .header { position: sticky; top: 0; z-index: 50; }
  .header.is-stuck { box-shadow: 0 6px 20px -12px rgb(43 45 110 / .35); }
  .header__inner { min-height: 64px; gap: var(--s3); }
  .header__search, .header__contacts, .header__cta { display: none; }
  .header__mobile { display: flex; }
  .logo__mark { width: 46px; }
}
@media (max-width: 479px) { .logo__sub { display: none; } }

.navbar { position: sticky; top: 0; z-index: 51; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.navbar.is-stuck { box-shadow: 0 8px 24px -16px rgb(31 33 86 / .35); }
.navbar__inner { display: flex; align-items: stretch; gap: var(--s2); min-height: 54px; }
.navbar__catalog { display: inline-flex; align-items: center; gap: 8px; margin: 7px 8px 7px 0; padding: 0 16px; border: 0; border-radius: var(--r-btn); background: var(--gold-400); color: var(--on-gold); font-weight: 650; font-size: 0.9375rem; white-space: nowrap; }
.navbar__catalog:hover, .navbar__catalog[aria-expanded="true"] { background: var(--gold-600); }
.navbar__catalog .navbar__chev { width: 16px; height: 16px; transition: transform .15s; }
.navbar__catalog[aria-expanded="true"] .navbar__chev { transform: rotate(180deg); }
.navbar__list { display: flex; list-style: none; margin: 0; padding: 0; }
.navbar__list li { display: flex; margin: 0; }
.navbar__link { display: flex; align-items: center; padding: 0 12px; border-block: 3px solid transparent; color: var(--blue-900); font-weight: 600; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; }
.navbar__link:hover { color: var(--blue-600); background: var(--blue-50); text-decoration: none; }
.navbar__link[aria-current="page"] { color: var(--blue-600); border-bottom-color: var(--gold-500); }
.navbar__aside { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.navbar__util { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; border-radius: var(--r-btn); background: none; color: var(--text-2); font-size: var(--fs-cap); font-weight: 500; text-decoration: none; white-space: nowrap; }
.navbar__util:hover { color: var(--blue-900); background: var(--blue-50); text-decoration: none; }
.navbar__util .icon { width: 18px; height: 18px; }
@media (max-width: 1279px) {
  .navbar__util span { display: none; }
  .navbar__link { padding: 0 9px; font-size: 0.875rem; }
}
@media (max-width: 1023px) { .navbar { display: none; } }

/* Мега-меню курсов */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgb(43 45 110 / .35); }
.mega__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-block: var(--s6); }
@media (min-width: 1024px) { .mega__inner { grid-template-columns: minmax(0, 1fr) 300px; } }
.mega__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px var(--s4); list-style: none; padding: 0; margin: 0; }
.mega__list li { margin: 0; }
.mega__item { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; align-items: center; padding: 10px; border-radius: var(--r-btn); color: var(--text); text-decoration: none; }
.mega__item:hover { background: var(--bg-alt); color: var(--text); text-decoration: none; }
.mega__item .sign { grid-row: span 2; width: 40px; height: 40px; }
.mega__item b { font-weight: 650; line-height: 1.25; }
.mega__item span { font-size: var(--fs-cap); color: var(--text-2); }
.mega__aside { padding: var(--s5); border-radius: var(--r-card); background: var(--bg-alt); }
.mega__aside h3 { font-size: 1.0625rem; }
.mega__aside p { font-size: var(--fs-cap); color: var(--text-2); }
.mega__all { display: block; margin-top: var(--s4); font-size: var(--fs-cap); font-weight: 600; }

/* Поиск с подсказками */
.search { position: relative; }
.search__field { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-btn); }
.search__field:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgb(79 80 168 / .2); }
.search__field .icon { color: var(--text-2); }
.search__field input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: none; padding: 0; }
.search__field input:focus { outline: none; }
.search__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); max-height: 60vh; overflow-y: auto; }
.search__list li { margin: 0; }
.search__opt { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-radius: var(--r-btn); color: var(--text); text-decoration: none; }
.search__opt b { font-weight: 600; line-height: 1.3; }
.search__opt span { font-size: var(--fs-cap); color: var(--text-2); }
.search__opt .price { font-size: 1rem; align-self: center; grid-row: span 2; }
.search__opt:hover, .search__opt[aria-selected="true"] { background: var(--blue-50); color: var(--text); text-decoration: none; }
.search__empty { padding: 12px; color: var(--text-2); font-size: var(--fs-cap); }
.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding-block: var(--s4); box-shadow: 0 24px 40px -24px rgb(43 45 110 / .35); }
.search-panel .search { max-width: 760px; margin-inline: auto; }

/* Мобильное меню */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgb(31 33 86 / .5); opacity: 0; transition: opacity .2s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 90vw); display: flex; flex-direction: column; gap: var(--s5); padding: var(--s4) var(--s5) var(--s6); overflow-y: auto; background: #fff; transform: translateX(100%); transition: transform .25s ease; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__nav ul { list-style: none; margin: 0; padding: 0; }
.drawer__nav li { margin: 0; }
.drawer__nav a, .drawer__nav summary { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 650; font-size: 1.0625rem; color: var(--text); text-decoration: none; cursor: pointer; list-style: none; }
.drawer__nav summary::-webkit-details-marker { display: none; }
.drawer__nav details ul a { padding: 10px 0 10px 12px; font-weight: 500; font-size: 1rem; }
.drawer__nav details ul a span { color: var(--text-2); font-size: var(--fs-cap); font-weight: 500; }
.drawer__contacts { display: grid; gap: var(--s3); font-size: var(--fs-cap); color: var(--text-2); }
.drawer__phone { font-size: 1.25rem; font-weight: 800; color: var(--text); text-decoration: none; }
.icon-btn--primary { background: var(--blue-900); color: #fff; }
.icon-btn--primary:hover { background: var(--blue-600); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--r-btn); background: var(--bg-alt); color: var(--text); }
.icon-btn:hover { background: var(--line); }

/* Нижняя панель на мобильных (разд. 7.1) */
.tabbar { display: none; }
@media (max-width: 767px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px -18px rgb(43 45 110 / .5); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; padding: 8px 4px 7px; border: 0; background: none; font-size: 0.75rem; font-weight: 600; color: var(--text); text-decoration: none; }
  .tabbar .icon { width: 22px; height: 22px; color: var(--blue-600); }
  .tabbar__cta { color: var(--gold-800) !important; }
  .tabbar__cta .icon { color: var(--gold-500) !important; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ---------- Хлебные крошки ---------- */
.crumbs { padding-block: var(--s5) var(--s4); font-size: var(--fs-cap); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text-2); }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue-600); text-decoration: underline; }

/* ---------- Знаки направлений: стиль предписывающих знаков (синий круг, белая пиктограмма) ---------- */
.sign { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blue-600); color: #fff; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--blue-600); flex: none; }
.sign .icon { width: 58%; height: 58%; }
.sign--sm { width: 40px; height: 40px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; padding-block: var(--s7) calc(var(--s7) + 10px); background: linear-gradient(165deg, #fff 0%, var(--blue-50) 50%, #fbf1df 100%); color: var(--text); overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 90% at 88% 0%, var(--blue-100) 0%, transparent 65%); }
.hero__grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 1024px) { .hero { padding-block: var(--s8) calc(var(--s7) + 10px); } .hero__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s8); } }
@media (min-width: 1280px) { .hero__grid { grid-template-columns: minmax(0, 1fr) 420px; } }
.hero h1 { color: var(--blue-900); max-width: 14em; margin-bottom: var(--s4); }
.hero__lead { font-size: var(--fs-lead); color: var(--text-2); max-width: 36em; margin-bottom: var(--s5); }
.search--hero { max-width: 640px; }
.search--hero .search__field { padding: 6px 6px 6px 16px; border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgb(43 45 110 / .35); }
.search--hero .search__field input { min-height: 48px; font-size: 1.0625rem; }
.search--hero .search__field .btn { min-height: 48px; padding-inline: 22px; font-size: 1rem; }
.hero__hints { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: var(--s3) 0 var(--s5); font-size: var(--fs-cap); color: var(--text-2); }
.hero__hints a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--blue-900); text-decoration: none; }
.hero__hints a:hover { border-color: var(--blue-600); color: var(--blue-600); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero__ctas .btn--secondary { --bg: #fff; --fg: var(--blue-900); --bd: var(--line-strong); }
.hero__ctas .btn--secondary:hover { --bg: var(--blue-900); --fg: #fff; --bd: var(--blue-900); }
.registry { display: grid; gap: var(--s3); list-style: none; padding: 0; margin: var(--s7) 0 0; }
@media (min-width: 640px)  { .registry { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .registry { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.registry li { margin: 0; }
.registry a { display: flex; gap: var(--s3); align-items: flex-start; height: 100%; padding: 14px 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: rgb(255 255 255 / .75); color: var(--text-2); text-decoration: none; font-size: 0.8125rem; line-height: 1.4; }
.registry a:hover { border-color: var(--blue-600); background: #fff; color: var(--text); }
.registry .icon { width: 28px; height: 28px; color: var(--blue-600); flex: none; margin-top: 2px; }
.registry b { display: block; color: var(--blue-900); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-form { position: relative; background: #fff; color: var(--text); border-radius: var(--r-panel); padding: var(--s5); border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgb(43 45 110 / .4); }
@media (min-width: 640px) { .hero-form { padding: var(--s6); } }
.hero-form h2 { font-size: 1.375rem; margin-bottom: var(--s2); }
.hero-form > p { font-size: var(--fs-cap); color: var(--text-2); margin-bottom: var(--s4); }
.hero-form .field { margin-bottom: var(--s3); }
.hero-form--light { box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- Цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); list-style: none; margin: 0; padding: 0; }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats li { margin: 0; padding-left: var(--s4); border-left: 3px solid var(--gold-500); }
.stats b { display: block; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 800; line-height: 1.1; color: var(--blue-900); font-variant-numeric: tabular-nums; }
.stats span { font-size: var(--fs-cap); color: var(--text-2); }

/* ---------- Карточки направлений ---------- */
.dir-grid { display: grid; gap: var(--s4); }
@media (min-width: 640px)  { .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dir-card { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: var(--s2) var(--s4); padding: var(--s5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .15s, box-shadow .15s; }
.dir-card:hover { border-color: var(--blue-600); box-shadow: var(--shadow); }
.dir-card .sign { grid-row: span 3; }
.dir-card h3, .dir-card__title { margin: 0; font-size: 1.125rem; }
.dir-card h3 a, .dir-card__title a { color: var(--blue-900); text-decoration: none; }
.dir-card h3 a::after, .dir-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.dir-card p { margin: 0; font-size: var(--fs-cap); color: var(--text-2); }
.dir-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; font-size: var(--fs-cap); color: var(--text-2); }
.dir-card__meta b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.dir-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.dir-links li { margin: 0; }
.dir-links a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); text-decoration: none; font-size: var(--fs-cap); font-weight: 600; }
.dir-links a:hover { border-color: var(--blue-600); color: var(--blue-600); }

/* ---------- Карточка курса ---------- */
.course-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
@media (min-width: 640px)  { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .course-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.course-card { position: relative; display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .15s, box-shadow .15s; }
.course-card:hover { border-color: var(--blue-600); box-shadow: var(--shadow); }
.course-card__type { font-size: 0.8125rem; font-weight: 600; color: var(--blue-600); }
.course-card__title { margin: 0; font-size: 1.0625rem; line-height: 1.35; font-weight: 700; }
.course-card__title a { color: var(--text); text-decoration: none; }
.course-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.course-card__title a:hover { color: var(--blue-900); }
.course-card__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 0; font-size: var(--fs-cap); color: var(--text-2); }
.course-card__facts li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.course-card__facts .icon { width: 16px; height: 16px; color: var(--blue-600); }
.course-card__doc { font-size: var(--fs-cap); color: var(--text-2); }
.course-card__doc b { color: var(--text); font-weight: 600; }
.course-card__bottom { margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; }
.course-card__actions { position: relative; z-index: 1; display: flex; gap: 8px; }
.course-card[hidden] { display: none; }

/* Компактная карточка — строка таблицы цен */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.price-table th, .price-table td { padding: 14px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--bg-alt); font-size: var(--fs-cap); font-weight: 600; color: var(--text-2); }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--blue-50); }
.price-table a { color: var(--text); font-weight: 600; text-decoration: none; }
.price-table a:hover { color: var(--blue-600); text-decoration: underline; }
.price-table .price { font-size: 1.0625rem; }
.price-table td:last-child { text-align: right; white-space: nowrap; }
@media (max-width: 767px) {
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; }
  .price-table thead { display: none; }
  .price-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .price-table td { padding: 2px 0; border: 0; text-align: left !important; }
  .price-table td[data-label]::before { content: attr(data-label) ": "; color: var(--text-2); font-size: var(--fs-cap); }
}

/* ---------- Почему мы ---------- */
.why { display: grid; gap: var(--s4); }
@media (min-width: 640px)  { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .why { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.why__item { padding: var(--s5); border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.why__item h3 { display: flex; gap: 10px; align-items: center; font-size: 1.125rem; }
.why__item h3 .icon { width: 28px; height: 28px; color: var(--gold-500); }
.why__item p { color: var(--text-2); font-size: var(--fs-cap); margin: 0; }

/* ---------- Как проходит обучение (последовательность) ---------- */
.steps { display: grid; gap: var(--s5); list-style: none; padding: 0; margin: 0; counter-reset: step; }
@media (min-width: 768px)  { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; } }
.steps > li { counter-increment: step; position: relative; margin: 0; padding-right: var(--s5); }
.steps > li::before { content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s4); border-radius: 50%; background: #fff; border: 2px solid var(--blue-600); color: var(--blue-900); font-weight: 800; font-variant-numeric: tabular-nums; }
@media (min-width: 1180px) { .steps > li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 52px; right: 8px; height: 2px; background: var(--line-strong); } }
.steps > li:last-child::before { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.steps h3 { font-size: 1.0625rem; margin-bottom: var(--s2); }
.steps p { margin: 0; font-size: var(--fs-cap); color: var(--text-2); }

/* «Как проходит обучение»: карточки-шаги, соединённые пунктиром; последний шаг — результат */
.journey { position: relative; display: grid; gap: var(--s4); list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px)  { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .journey { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.journey__step { position: relative; display: flex; flex-direction: column; gap: var(--s2); margin: 0; padding: var(--s5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); transition: transform .2s, box-shadow .2s, border-color .2s; }
.journey__step:hover { transform: translateY(-3px); border-color: var(--blue-100); box-shadow: var(--shadow); }
@media (min-width: 1024px) {
  .journey__step:not(:last-child)::after { content: ""; position: absolute; z-index: 1; top: 50px; right: calc(-1 * var(--s4) - 1px); width: calc(var(--s4) + 2px); border-top: 2px dashed var(--line-strong); }
}
.journey__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--s2); }
.journey__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); }
.journey__ico .icon { width: 26px; height: 26px; }
.journey__num { font-size: 2.25rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); font-variant-numeric: tabular-nums; }
.journey__step h3 { margin: 0; font-size: 1.0625rem; }
.journey__step p { margin: 0; flex: 1; font-size: var(--fs-cap); color: var(--text-2); }
.journey__tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: var(--s2); padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--blue-900); font-size: 0.8125rem; font-weight: 600; }
.journey__tag .icon { width: 14px; height: 14px; color: var(--blue-600); }
.journey__step--final { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.journey__step--final:hover { border-color: var(--blue-600); }
.journey__step--final h3 { color: #fff; }
.journey__step--final p { color: #e8e8f8; }
.journey__step--final .journey__ico { background: var(--gold-400); color: var(--on-gold); }
.journey__step--final .journey__num { -webkit-text-stroke-color: rgb(255 255 255 / .3); }
.journey__step--final .journey__tag { background: rgb(255 255 255 / .1); color: #fff; }
.journey__step--final .journey__tag .icon { color: var(--gold-400); }
@media (prefers-reduced-motion: reduce) { .journey__step { transition: none; } .journey__step:hover { transform: none; } }

/* ---------- Блок НОК ---------- */
.nok { display: grid; gap: var(--s6); padding: var(--s6) var(--s5); border-radius: var(--r-panel); background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--text); }
@media (min-width: 1024px) { .nok { grid-template-columns: 1fr 1fr; padding: var(--s7); gap: var(--s7); align-items: start; } }
.nok h2, .nok h3 { color: var(--blue-900); }
.nok p { color: var(--text-2); }
.nok .link-more { color: var(--blue-600); }
.nok__exam { display: grid; gap: var(--s3); list-style: none; padding: 0; margin: 0 0 var(--s5); }
.nok__exam li { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: var(--s4); padding: var(--s4); border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.nok__exam b { display: block; color: var(--blue-900); font-size: 1.5rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nok__exam small { color: var(--text-2); }
.nok__exam p { margin: 0; font-size: var(--fs-cap); }
.nok__exam h3 { font-size: 1rem; margin-bottom: 4px; }
.nok__place { display: flex; gap: var(--s4); align-items: center; padding: var(--s4); border-radius: var(--r-card); background: #fff; color: var(--text); margin-bottom: var(--s5); }
.nok__place .sign { background: var(--gold-400); color: var(--on-gold); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--gold-400); }
.nok__place b { display: block; color: var(--blue-900); font-size: 1.125rem; }
.nok__place span { font-size: var(--fs-cap); color: var(--text-2); }
.nok__ctas { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- Для организаций: штрафы и калькулятор ---------- */
.b2b-head { display: grid; gap: var(--s5); margin-bottom: var(--s6); align-items: end; }
@media (min-width: 1024px) { .b2b-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s7); } }
.b2b-head h2 { margin-bottom: var(--s3); }
.b2b-head > div > p:not(.fines__note) { color: var(--text-2); font-size: var(--fs-lead); margin: 0; }
.fines { display: grid; gap: var(--s3); list-style: none; padding: 0; margin: 0; }
.fines--row { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fines li { margin: 0; display: grid; gap: 2px; padding: var(--s4); border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red-700); font-size: var(--fs-cap); color: var(--text-2); }
.fines b { color: var(--red-700); font-size: 1.1875rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fines__note { font-size: var(--fs-cap); color: var(--text-2); margin: var(--s3) 0 0; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 1024px) { .calc { grid-template-columns: minmax(0, 1fr) 420px; } }
.calc__params { padding: var(--s5); margin: 0; }
@media (min-width: 640px) { .calc__params { padding: var(--s6); } }
.calc__head { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: flex-end; justify-content: space-between; margin-bottom: var(--s5); }
.calc__head h3 { margin: 0; font-size: 1.25rem; }
.calc__intro { margin: 0; font-size: var(--fs-cap); color: var(--text-2); max-width: 46ch; }
.calc__staff { display: flex; gap: 12px; align-items: center; }
.calc__staff .stepper { width: 160px; }
.calc__staff label { font-size: var(--fs-cap); font-weight: 600; }
.calc__programs { display: grid; gap: var(--s2); margin: 0; padding: 0; border: 0; }
@media (min-width: 768px) { .calc__programs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc-opt { position: relative; align-self: start; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-btn); cursor: pointer; transition: border-color .15s, background-color .15s; }
.calc-opt:hover { border-color: var(--blue-600); }
.calc-opt input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue-600); }
.calc-opt:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); }
.calc-opt__name { font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.calc-opt__name small { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--text-2); margin-top: 2px; }
.calc-opt__price { font-weight: 700; font-size: 0.9375rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc__side { padding: var(--s5); background: var(--bg-alt); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .calc__side { padding: var(--s6); } }
@media (min-width: 1024px) { .calc__side { border-top: 0; border-left: 1px solid var(--line); } }
.calc__result { display: grid; gap: 2px; padding-bottom: var(--s4); margin-bottom: var(--s4); border-bottom: 1px dashed var(--line-strong); }
.calc__result small { font-size: var(--fs-cap); color: var(--text-2); }
.calc__result .price { font-size: 2rem; }
.calc__side .field { margin-bottom: var(--s3); }
.calc__side .form-row--2 { gap: 0 var(--s3); }
.calc__incl { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); list-style: none; margin: var(--s5) 0 0; padding: var(--s4) 0 0; border-top: 1px solid var(--line); font-size: var(--fs-cap); color: var(--text-2); }
.calc__incl li { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.calc__incl .icon { width: 18px; height: 18px; color: var(--green-700); }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; border: 1.5px solid var(--line-strong); border-radius: var(--r-btn); overflow: hidden; background: #fff; }
.stepper button { border: 0; background: var(--bg-alt); font-size: 1.25rem; font-weight: 700; color: var(--blue-900); }
.stepper button:hover { background: var(--blue-50); }
.stepper input { min-width: 0; border: 0; text-align: center; min-height: 44px; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper input:focus { outline: none; background: var(--blue-50); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-cap); font-weight: 600; cursor: pointer; background: #fff; }
.chip span:hover { border-color: var(--blue-600); }
.chip input:checked + span { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.chip input:focus-visible + span { box-shadow: var(--focus-ring); }

/* ---------- Документы ---------- */
.docs-grid { display: grid; gap: var(--s4); }
@media (min-width: 640px)  { .docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .docs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.doc-thumb { display: grid; gap: var(--s3); margin: 0; color: var(--text); text-decoration: none; }
.doc-thumb:hover { color: var(--text); text-decoration: none; }
.doc-thumb__paper { position: relative; aspect-ratio: .72; padding: 14% 12%; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 14px 28px -18px rgb(43 45 110 / .45); overflow: hidden; display: grid; align-content: start; gap: 6%; transition: transform .2s; }
.doc-thumb:hover .doc-thumb__paper { transform: translateY(-3px); }
.doc-thumb__paper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc-thumb__paper i { display: block; height: 4px; border-radius: 2px; background: #e4e5ef; }
.doc-thumb__paper i:first-child { width: 70%; height: 7px; margin: 0 auto 8%; background: var(--blue-100); }
.doc-thumb__paper i:nth-child(3n) { width: 82%; }
.doc-thumb__paper .doc-thumb__seal { position: absolute; right: 12%; bottom: 10%; width: 30%; aspect-ratio: 1; color: var(--blue-600); opacity: .7; }
.doc-thumb figcaption { font-size: var(--fs-cap); line-height: 1.4; }
.doc-thumb figcaption b { display: block; font-size: 1rem; font-weight: 650; }
.doc-thumb figcaption span { color: var(--text-2); }

/* ---------- Отзывы ---------- */
.reviews { display: grid; gap: var(--s4); }
@media (min-width: 640px)  { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review { position: relative; display: flex; flex-direction: column; gap: var(--s3); margin: 0; padding: var(--s5); border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.review::before { content: "“"; position: absolute; top: 4px; right: 18px; color: var(--blue-100); font-size: 5rem; font-weight: 800; line-height: 1; }
.review__stars { color: var(--gold-500); font-size: 1.125rem; letter-spacing: 2px; }
.review__stars .is-off { color: var(--line-strong); }
.review__text { flex: 1; margin: 0; }
.review__text p { margin: 0; color: var(--text); }
.review__by { display: flex; gap: var(--s3); align-items: center; padding-top: var(--s3); border-top: 1px solid var(--line); }
.review__avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); font-weight: 800; }
.review__by b { display: block; color: var(--blue-900); }
.review__by small { display: block; color: var(--text-2); font-size: 0.8125rem; }
.review__src { margin: 0; color: var(--text-2); font-size: 0.8125rem; }
.reviews-widget { min-height: 420px; border-radius: var(--r-card); border: 1px solid var(--line); background: #fff; overflow: hidden; }
.reviews-widget iframe { width: 100%; height: 520px; border: 0; }
.reviews-widget__ph { display: grid; place-items: center; gap: var(--s3); min-height: 420px; padding: var(--s5); text-align: center; color: var(--text-2); }

/* ---------- Статьи ---------- */
.post-card { display: flex; flex-direction: column; gap: var(--s3); margin: 0; position: relative; }
.post-card__img { aspect-ratio: 16/9; border-radius: var(--r-card); background: var(--blue-50); overflow: hidden; display: grid; place-items: center; color: var(--blue-600); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__img .icon { width: 48px; height: 48px; opacity: .5; }
.post-card time { font-size: var(--fs-cap); color: var(--text-2); }
.post-card h3 { margin: 0; font-size: 1.125rem; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card h3 a:hover { color: var(--blue-600); }
.post-card p { margin: 0; font-size: var(--fs-cap); color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s5) 0; font-weight: 650; font-size: 1.0625rem; line-height: 1.4; cursor: pointer; list-style: none; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%231f5fa8' stroke-width='2'%3E%3Cpath d='M6 1v10M1 6h10'/%3E%3C/svg%3E") no-repeat center; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue-600); }
.faq__a { padding: 0 0 var(--s5); color: var(--text-2); max-width: 70ch; }
.faq__a > :last-child { margin-bottom: 0; }

/* ---------- «Коротко» — факты для нейропоиска (разд. 10.5) ---------- */
.brief { padding: var(--s5); border-radius: var(--r-card); background: var(--bg-alt); border-left: 4px solid var(--blue-600); }
.brief h2 { font-size: 1.125rem; margin-bottom: var(--s3); }
.brief ul { margin: 0; padding-left: 1.2em; }
.brief li::marker { color: var(--blue-600); }
.updated { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-cap); color: var(--text-2); }
.updated .icon { width: 16px; height: 16px; }

/* ---------- SEO-текст ---------- */
.seo-text { max-width: 820px; }
.seo-text h2 { font-size: 1.5rem; }
.seo-text__body { position: relative; max-height: 240px; overflow: hidden; color: var(--text-2); }
.seo-text__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.section--alt .seo-text__body::after { background: linear-gradient(transparent, var(--bg-alt)); }
.seo-text.is-open .seo-text__body { max-height: none; }
.seo-text.is-open .seo-text__body::after { display: none; }

/* ---------- Контакты и карта ---------- */
.contacts { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .contacts { grid-template-columns: 400px 1fr; gap: var(--s7); } }
.contacts__list { display: grid; gap: var(--s4); list-style: none; padding: 0; margin: 0 0 var(--s5); }
.contacts__list li { margin: 0; display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); }
.contacts__list .icon { width: 24px; height: 24px; color: var(--blue-600); }
.contacts__list small { display: block; color: var(--text-2); font-size: var(--fs-cap); }
.contacts__list a, .contacts__list b { color: var(--text); font-weight: 650; text-decoration: none; }
.contacts__list a:hover { color: var(--blue-600); text-decoration: underline; }
.map { position: relative; min-height: 360px; border-radius: var(--r-card); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s3); padding: var(--s5); text-align: center; color: var(--text-2); background: repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px), var(--bg-alt); }
.map__ph .icon { width: 40px; height: 40px; color: var(--gold-500); }
.req-table { width: 100%; border-collapse: collapse; font-size: var(--fs-cap); }
.req-table th, .req-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.req-table th { width: 42%; font-weight: 600; color: var(--text-2); }

/* ---------- CTA-полоса с формой ---------- */
.cta { display: grid; gap: var(--s6); padding: var(--s6) var(--s5); border-radius: var(--r-panel); background: var(--bg-alt); border: 1px solid var(--line); align-items: center; }
@media (min-width: 1024px) { .cta { grid-template-columns: 1fr 460px; padding: var(--s7); } }
.cta form { padding: var(--s5); border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.cta .field { margin-bottom: var(--s3); }

/* Запись на курс: светлая панель с дугами из логотипа, факты и доверие слева, форма справа */
.enroll-sec { background: var(--bg-alt); }
.enroll { position: relative; display: grid; gap: var(--s6); padding: var(--s5); border-radius: var(--r-panel); overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #fff 0%, var(--blue-50) 60%, var(--blue-100) 100%); border: 1px solid var(--blue-100); }
.enroll::before { /* дуги — мотив логотипа */
  content: ""; position: absolute; z-index: -1; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%;
  border: 36px solid rgb(79 80 168 / .07); box-shadow: 0 0 0 44px rgb(79 80 168 / .04); }
@media (min-width: 1024px) { .enroll { grid-template-columns: minmax(0, 1fr) 440px; gap: var(--s7); padding: var(--s7); align-items: start; } }
.enroll__eyebrow { margin: 0 0 var(--s2); color: var(--blue-600); font-size: var(--fs-cap); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.enroll h2 { margin-bottom: var(--s5); font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); }
.enroll__facts { display: flex; flex-wrap: wrap; gap: var(--s3); list-style: none; margin: 0 0 var(--s5); padding: 0; }
.enroll__facts li { margin: 0; padding: 10px 16px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.enroll__facts b { display: block; color: var(--blue-900); font-size: 1.25rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.enroll__facts span { color: var(--text-2); font-size: 0.8125rem; }
.enroll__perks { display: grid; gap: var(--s2); list-style: none; margin: 0 0 var(--s5); padding: 0; }
.enroll__perks li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.enroll__perks .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--green-700); }
.enroll__proof { display: grid; gap: var(--s4); margin-bottom: var(--s5); }
@media (min-width: 640px) { .enroll__proof { grid-template-columns: 220px minmax(0, 1fr); align-items: center; } }
.enroll__doc { max-width: 240px; margin: 0; }
.enroll__doc img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 30px -18px rgb(43 45 110 / .55), 0 0 0 1px var(--line); transform: rotate(-2deg); }
.enroll__doc figcaption { margin-top: var(--s3); color: var(--text-2); font-size: 0.8125rem; }
.enroll__person { display: flex; gap: var(--s4); align-items: center; padding: var(--s4); border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.enroll__avatar { display: grid; place-items: center; width: 64px; height: 64px; flex: none; overflow: hidden; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--blue-100); }
.enroll__avatar img { width: 100%; height: 100%; object-fit: cover; }
.enroll__avatar .icon { width: 30px; height: 30px; }
.enroll__person b { display: block; color: var(--blue-900); }
.enroll__person span, .enroll__person small { display: block; color: var(--text-2); font-size: 0.8125rem; }
.enroll__person a { display: inline-block; margin-top: 4px; color: var(--blue-900); font-weight: 800; font-size: 1.0625rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.enroll__trust { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); list-style: none; margin: 0; padding: 0; color: var(--text-2); font-size: 0.8125rem; }
.enroll__trust li { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.enroll__trust .icon { width: 16px; height: 16px; color: var(--blue-600); }
.enroll__form { padding: var(--s5); border-radius: var(--r-panel); background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgb(43 45 110 / .45); }
@media (min-width: 640px) { .enroll__form { padding: var(--s6); } }
.enroll__form h3 { margin-bottom: var(--s2); font-size: 1.375rem; }
.enroll__form > p { margin-bottom: var(--s4); color: var(--text-2); font-size: var(--fs-cap); }
.enroll__form .field { margin-bottom: var(--s3); }

/* ---------- Подвал ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-cap); padding-top: var(--s8); }
.footer a { color: var(--blue-900); text-decoration: none; }
.footer a:hover { color: var(--blue-600); text-decoration: underline; }
.footer__grid { display: grid; gap: var(--s6); padding-bottom: var(--s7); }
@media (min-width: 768px)  { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.footer h2 { font-size: 1rem; color: var(--blue-900); margin-bottom: var(--s4); letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li { margin: 0; }
@media (max-width: 767px) { .footer ul { gap: 2px; } .footer li a { display: inline-block; padding-block: 7px; } }
.footer .logo { color: var(--blue-900); margin-bottom: var(--s4); }
.footer .logo__sub { color: var(--text-2); }
.footer__phone { display: block; font-size: 1.25rem; font-weight: 800; color: var(--blue-900) !important; font-variant-numeric: tabular-nums; }
.footer__creds { display: grid; gap: 6px; margin-top: var(--s4); }
.footer__creds a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-strong); }
.footer__msg { display: flex; gap: 8px; margin-top: var(--s4); }
.footer__legal { display: grid; gap: var(--s3); padding-block: var(--s5); border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--text-2); }
@media (min-width: 1024px) { .footer__legal { grid-template-columns: 1fr auto; align-items: start; } }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__req { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; }

/* ---------- Заголовок внутренних страниц ---------- */
.page-head { padding-block: var(--s4) var(--s6); }
.page-head h1 { margin-bottom: var(--s3); }
.page-head__lead { max-width: 72ch; font-size: var(--fs-lead); color: var(--text-2); margin: 0; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: var(--s4); }

/* ---------- Каталог ---------- */
.catalog { display: grid; gap: var(--s6); padding-bottom: var(--s8); }
@media (min-width: 1024px) { .catalog { grid-template-columns: 290px minmax(0, 1fr); gap: var(--s7); align-items: start; } }
.filters { background: #fff; }
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; } }
.filters__group { margin: 0 0 var(--s5); padding: 0 0 var(--s5); border: 0; border-bottom: 1px solid var(--line); }
.filters__group legend { margin-bottom: var(--s3); padding: 0; font-weight: 700; }
.filters__opts { display: grid; gap: 10px; }
.filters__opts .check { color: var(--text); font-size: 0.9375rem; }
.filters__opts .check small { margin-left: auto; color: var(--text-2); font-variant-numeric: tabular-nums; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range .input { min-height: 42px; padding: 8px 12px; }
.filters__head, .filters__foot { display: none; }
.filters-btn { display: none; }
@media (max-width: 1023px) {
  .filters-btn { display: inline-flex; }
  .filters { position: fixed; inset: 0; z-index: 95; padding: var(--s4) var(--s5) 0; overflow-y: auto; visibility: hidden; transform: translateY(100%); transition: transform .25s, visibility 0s .25s; }
  .filters.is-open { visibility: visible; transform: none; transition: transform .25s; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s4); }
  .filters__foot { display: flex; gap: var(--s3); position: sticky; bottom: 0; padding: var(--s4) 0; background: #fff; border-top: 1px solid var(--line); }
  .filters__foot .btn { flex: 1; }
}
.catalog__bar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.catalog__count { color: var(--text-2); }
.catalog__count b { color: var(--text); font-variant-numeric: tabular-nums; }
.catalog__sort { display: flex; align-items: center; gap: 8px; font-size: var(--fs-cap); }
.catalog__sort .select { width: auto; min-height: 42px; padding-block: 8px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s4); }
.active-filters:empty { display: none; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--blue-100); background: var(--blue-50); color: var(--blue-900); font-size: var(--fs-cap); font-weight: 500; }
.active-filters button .icon { width: 14px; height: 14px; }
.active-filters button:hover { border-color: var(--blue-600); }
.empty { padding: var(--s8) var(--s5); text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); }
.empty h2 { font-size: 1.375rem; }
.empty p { max-width: 46ch; margin: 0 auto var(--s5); color: var(--text-2); }
.more-wrap { display: flex; justify-content: center; margin-top: var(--s5); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; padding: 0; margin: var(--s6) 0 0; }
.pager li { margin: 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--r-btn); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--blue-600); color: var(--blue-600); }
.pager [aria-current="page"] { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }

/* ---------- Страница направления ---------- */
.dir-hero { padding-block: var(--s4) var(--s7); background: var(--bg-alt); }
.dir-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); align-items: center; }
@media (min-width: 1024px) { .dir-hero__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s8); } }
.dir-hero__title { display: flex; gap: var(--s4); align-items: center; margin-bottom: var(--s4); }
.dir-hero__title h1 { margin: 0; }
.dir-hero__lead { font-size: var(--fs-lead); color: var(--text-2); max-width: 64ch; }
.dir-hero__lead > :last-child { margin-bottom: 0; }
.dir-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin: var(--s5) 0; }
@media (min-width: 1280px) { .dir-facts { grid-template-columns: minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.4fr) minmax(0, 1.2fr); } }
.dir-facts > div { padding: var(--s4); border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.dir-facts dt { font-size: 0.8125rem; color: var(--text-2); }
.dir-facts dd { margin: 4px 0 0; font-weight: 650; font-size: 0.9375rem; line-height: 1.35; color: var(--text); }
.dir-facts > div:nth-child(-n+2) dd { font-size: 1.375rem; font-weight: 800; color: var(--blue-900); }
.dir-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s3); }
.brief-band { border-bottom: 1px solid var(--line); background: #fff; }
.brief-band__inner { display: grid; gap: var(--s3) var(--s6); padding-block: var(--s6); }
@media (min-width: 1024px) { .brief-band__inner { grid-template-columns: 200px minmax(0, 1fr); } }
.brief-band h2 { font-size: 1.25rem; margin: 0; }
.brief-band ul { display: grid; gap: var(--s2) var(--s6); margin: 0; padding-left: 1.2em; }
@media (min-width: 768px) { .brief-band ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.brief-band li { margin: 0; }
.brief-band li::marker { color: var(--gold-500); }
.brief-band .updated { grid-column: 1 / -1; }
@media (min-width: 1024px) { .brief-band .updated { grid-column: 2; } }
.who { display: grid; gap: var(--s3); list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.who li { margin: 0; display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); padding: var(--s4); border-radius: var(--r-btn); background: var(--bg-alt); }
.who .icon { width: 24px; height: 24px; color: var(--green-700); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.compare th, .compare td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--blue-900); color: #fff; font-weight: 650; }
.compare tbody th { background: var(--bg-alt); font-weight: 650; width: 28%; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.two-col { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; gap: var(--s7); } .two-col--form { grid-template-columns: minmax(0, 1fr) 480px; } }
/* Карточка с формой (контакты) */
.form-card { padding: var(--s5); border-radius: var(--r-panel); background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgb(43 45 110 / .45); }
@media (min-width: 640px) { .form-card { padding: var(--s6); } }
.form-card h2 { margin-bottom: var(--s2); font-size: 1.5rem; }
.form-card > p { margin-bottom: var(--s4); color: var(--text-2); font-size: var(--fs-cap); }
.form-card .field { margin-bottom: var(--s3); }
/* «Сведения об образовательной организации»: таблицы с микроразметкой */
.sveden h2 { margin-top: var(--s6); font-size: 1.25rem; }
.sveden .sv-table { width: 100%; margin: 0 0 var(--s5); border-collapse: collapse; font-size: 0.9375rem; }
.sveden .sv-table th, .sveden .sv-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.sveden .sv-table th[scope="row"] { width: 38%; font-weight: 600; background: var(--bg-alt); }
.sveden .sv-table--grid thead th { background: var(--bg-alt); font-weight: 650; font-size: var(--fs-cap); }
.sveden .sv-scroll { overflow-x: auto; margin-bottom: var(--s5); }
.sveden .sv-scroll .sv-table { min-width: 960px; margin-bottom: 0; font-size: var(--fs-cap); }
.sveden .sv-list { padding-left: 1.3em; }
.sveden .sv-list li { margin-bottom: 6px; }
@media (max-width: 639px) { .sveden .sv-table th[scope="row"] { width: 45%; } .sveden .sv-table th, .sveden .sv-table td { padding: 8px; font-size: var(--fs-cap); } }

/* Карта сайта */
.sitemap { display: grid; gap: var(--s6); }
@media (min-width: 768px)  { .sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sitemap__col--wide { grid-column: 1 / -1; } }
.sitemap h2 { font-size: 1.375rem; margin-bottom: var(--s4); }
.sitemap h2 a, .sitemap h3 a { color: inherit; text-decoration: none; }
.sitemap h2 a:hover, .sitemap h3 a:hover { color: var(--blue-600); text-decoration: underline; }
.sitemap h3 { font-size: 1.0625rem; margin-bottom: var(--s3); }
.sitemap__dirs { display: grid; gap: var(--s5) var(--s6); }
@media (min-width: 768px)  { .sitemap__dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sitemap__dirs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sitemap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.9375rem; }
.sitemap ul ul { margin: 6px 0 4px; padding-left: var(--s4); border-left: 2px solid var(--line); font-size: var(--fs-cap); }
.sitemap li { margin: 0; }
.sitemap small { color: var(--text-2); }

/* ---------- Карточка курса (страница) ---------- */
.course-hero { padding-block: var(--s4) var(--s7); background: var(--bg-alt); }
.course-hero__grid { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .course-hero__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s7); align-items: start; } }
.course-hero__type { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s4); }
.course-hero h1 { font-size: clamp(1.625rem, 1.25rem + 1.6vw, 2.5rem); }
.course-hero__price { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin: 0 0 var(--s4); padding: 12px 12px 12px 16px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.course-hero__price .price { display: block; color: var(--blue-900); font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.course-hero__price > div > small { display: block; color: var(--text-2); font-size: 0.8125rem; }
@media (min-width: 1024px) { .course-hero__price { display: none; } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: var(--s5) 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts > div { padding: var(--s4); background: #fff; }
.facts dt { font-size: 0.8125rem; color: var(--text-2); }
.facts dd { margin: 2px 0 0; font-weight: 700; line-height: 1.3; }
.registry-note { display: flex; gap: var(--s3); align-items: flex-start; margin-top: var(--s4); font-size: var(--fs-cap); color: var(--green-700); font-weight: 600; }
.registry-note .icon { width: 22px; height: 22px; }
.registry-note a { color: inherit; }
.buy { padding: var(--s5); border-radius: var(--r-panel); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 1024px) { .buy { position: sticky; top: calc(var(--header-h) + 16px); } }
.buy .price { font-size: 2.25rem; }
.buy__vat { font-size: 0.8125rem; color: var(--text-2); margin: 4px 0 var(--s4); }
.buy .btn + .btn { margin-top: var(--s3); }
.buy__list { display: grid; gap: 10px; list-style: none; margin: var(--s5) 0 0; padding: var(--s4) 0 0; border-top: 1px solid var(--line); font-size: var(--fs-cap); color: var(--text-2); }
.buy__list li { margin: 0; display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.buy__list .icon { width: 20px; height: 20px; color: var(--green-700); }
.course-body { display: grid; gap: var(--s7); padding-block: var(--s7) var(--s8); }
@media (min-width: 1024px) { .course-body { grid-template-columns: minmax(0, 1fr) 380px; } .course-body > * { grid-column: 1; } }
.course-body section > h2 { font-size: 1.625rem; }
.program { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.program details + details { border-top: 1px solid var(--line); }
.program summary { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: var(--s4) var(--s5); font-weight: 650; cursor: pointer; list-style: none; }
.program summary::-webkit-details-marker { display: none; }
.program summary:hover, .program details[open] summary { background: var(--bg-alt); }
.program__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-btn); background: var(--blue-50); color: var(--blue-900); font-weight: 800; font-variant-numeric: tabular-nums; }
.program__h { font-size: var(--fs-cap); color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.program ul { list-style: none; margin: 0; padding: 0 var(--s5) var(--s4) calc(var(--s5) + 36px + var(--s4)); background: var(--bg-alt); }
@media (max-width: 479px) { .program summary, .program__row { gap: var(--s3); padding-inline: var(--s4); } .program ul { padding-inline: var(--s4); } }
.program li { display: flex; justify-content: space-between; gap: var(--s4); margin: 0; padding: 8px 0; border-top: 1px dashed var(--line-strong); font-size: var(--fs-cap); color: var(--text-2); }
.program li span:last-child:not(:first-child) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.program__total { display: flex; justify-content: space-between; padding: var(--s4) var(--s5); background: var(--blue-900); color: #fff; font-weight: 700; }
.sample { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 768px) { .sample { grid-template-columns: 260px 1fr; } }
.mobile-buy { display: none; }
@media (max-width: 1023px) {
  .mobile-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; display: flex; gap: var(--s3); align-items: center; justify-content: space-between; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgb(43 45 110 / .5); transform: translateY(110%); transition: transform .2s; }
  .mobile-buy.is-visible { transform: none; }
  .mobile-buy .price { font-size: 1.25rem; }
  .has-mobile-buy .tabbar { display: none; }
}

/* ---------- Текстовые страницы и «Сведения» ---------- */
.page-layout { display: grid; gap: var(--s6); padding-bottom: var(--s8); }
@media (min-width: 1024px) { .page-layout { grid-template-columns: 300px minmax(0, 1fr); gap: var(--s8); align-items: start; } }
.side-nav { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); }
@media (min-width: 1024px) { .side-nav { position: sticky; top: calc(var(--header-h) + 16px); } }
.side-nav h2 { font-size: 1rem; padding: 8px 12px; margin: 0; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li { margin: 0; }
.side-nav a { display: block; padding: 9px 12px; border-radius: var(--r-btn); font-size: 0.9375rem; line-height: 1.35; color: var(--text); text-decoration: none; }
.side-nav a:hover { background: var(--bg-alt); }
.side-nav a[aria-current="page"] { background: var(--blue-900); color: #fff; font-weight: 600; }
@media (max-width: 1023px) {
  .side-nav { padding: 0; border: 0; }
  .side-nav h2 { display: none; }
  .side-nav ul { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .side-nav a { white-space: nowrap; border: 1px solid var(--line); }
}
.prose { max-width: 76ch; }
.prose--full { max-width: none; }
.prose h2 { margin-top: var(--s7); font-size: 1.625rem; }
.prose h3 { margin-top: var(--s6); }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: var(--r-card); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s5); font-size: 0.9375rem; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--bg-alt); }
.prose tbody th { width: 40%; font-weight: 600; background: var(--bg-alt); }
.prose blockquote { margin: 0 0 var(--s5); padding: var(--s4) var(--s5); border-left: 4px solid var(--blue-600); background: var(--bg-alt); border-radius: 0 var(--r-btn) var(--r-btn) 0; }
.file-list { display: grid; gap: var(--s3); list-style: none; padding: 0; margin: 0 0 var(--s5); }
.file-list li { margin: 0; }
.file-list a { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--s4); align-items: center; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-btn); color: var(--text); text-decoration: none; }
.file-list a:hover { border-color: var(--blue-600); }
.file-list .icon { width: 40px; height: 40px; color: var(--red-700); }
.file-list b { display: block; font-weight: 600; line-height: 1.35; }
.file-list span { font-size: var(--fs-cap); color: var(--text-2); }
.callout { padding: var(--s5); margin: 0 0 var(--s5); border-radius: var(--r-card); background: var(--blue-50); border-left: 4px solid var(--blue-600); }
.callout > :last-child { margin-bottom: 0; }
.callout--warn { background: var(--gold-50); border-color: var(--gold-500); }
.author { display: flex; gap: var(--s4); align-items: center; padding: var(--s4) 0; border-block: 1px solid var(--line); margin-bottom: var(--s6); }
.author__ph { width: 52px; height: 52px; border-radius: 50%; background: var(--blue-100); color: var(--blue-900); display: grid; place-items: center; font-weight: 800; flex: none; overflow: hidden; }
.author b { display: block; }
.author span { font-size: var(--fs-cap); color: var(--text-2); }

/* ---------- 404 и «Спасибо» ---------- */
.state { padding-block: var(--s8) var(--s9); text-align: center; }
.state__code { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 900; line-height: 1; color: var(--blue-100); letter-spacing: -.04em; }
.state h1 { margin-top: var(--s4); }
.state p { max-width: 52ch; margin: 0 auto var(--s5); color: var(--text-2); }
.state .search { max-width: 560px; margin: 0 auto var(--s6); text-align: left; }

/* ---------- Модальные окна ---------- */
.modal { width: min(500px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: var(--r-panel); color: var(--text); box-shadow: 0 40px 80px -24px rgb(31 33 86 / .5); }
.modal::backdrop { background: rgb(31 33 86 / .55); }
.modal[open] { animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px); } }
.modal__body { position: relative; padding: var(--s6) var(--s5) var(--s5); }
@media (min-width: 640px) { .modal__body { padding: var(--s7) var(--s6) var(--s6); } }
.modal__close { position: absolute; top: 10px; right: 10px; }
.modal h2 { padding-right: 40px; font-size: 1.5rem; margin-bottom: var(--s2); }
.modal__lead { color: var(--text-2); margin-bottom: var(--s5); }
.modal__course { padding: 10px 14px; margin-bottom: var(--s4); border-radius: var(--r-btn); background: var(--bg-alt); font-size: var(--fs-cap); }
.modal__course b { display: block; color: var(--text); font-size: .9375rem; line-height: 1.35; }
.modal--wide { width: min(760px, calc(100vw - 24px)); }
.modal--doc .modal__body { padding: var(--s5); }
.modal--doc img { border-radius: 4px; border: 1px solid var(--line); }

/* ---------- Плавающий виджет связи ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 44; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (max-width: 767px) { .fab { display: none; } }
.fab__toggle { width: 60px; height: 60px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--gold-400); color: var(--on-gold); box-shadow: 0 10px 24px -8px rgb(200 140 20 / .6); }
.fab__toggle:hover { background: var(--gold-600); }
.fab__toggle .icon { width: 28px; height: 28px; }
.fab__toggle .i-close { display: none; }
.fab.is-open .i-open { display: none; }
.fab.is-open .i-close { display: block; }
.fab__list { display: grid; gap: 8px; justify-items: end; list-style: none; margin: 0; padding: 0; }
.fab__list li { margin: 0; }
.fab__list a, .fab__list button { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); font-weight: 600; font-size: var(--fs-cap); text-decoration: none; }
.fab__list a:hover, .fab__list button:hover { border-color: var(--blue-600); }
.fab__list .msg-ico { width: 34px; height: 34px; }
.msg-ico--call { background: var(--blue-600); }

/* ---------- Cookie-баннер с категориями ---------- */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(460px, calc(100vw - 32px)); padding: var(--s5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); font-size: var(--fs-cap); color: var(--text-2); }
@media (max-width: 767px) { .cookie { left: 8px; right: 8px; bottom: calc(68px + env(safe-area-inset-bottom)); width: auto; padding: var(--s4); } }
.cookie h2 { font-size: 1rem; margin-bottom: var(--s2); color: var(--text); }
.cookie p { margin-bottom: var(--s3); }
.cookie__opts { display: grid; gap: 8px; margin-bottom: var(--s4); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Тост ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; translate: -50% 0; padding: 12px 18px; border-radius: var(--r-btn); background: var(--text); color: #fff; font-size: var(--fs-cap); box-shadow: var(--shadow); }

/* ==========================================================================
   Версия для слабовидящих (разд. 8.6). Классы на <html>:
   .a11y — режим включён; .a11y-fs-{1..3} — размер; .a11y-c-{bw,wb,blue,beige,brown} — цвет;
   .a11y-ff-serif — шрифт с засечками; .a11y-ls-{1,2} — интервал; .a11y-noimg — без изображений
   ========================================================================== */
.a11y-panel { display: none; background: #fff; color: #000; border-bottom: 3px solid #000; font-family: Arial, Helvetica, sans-serif; font-size: 17px; }
.a11y .a11y-panel { display: block; }
.a11y-panel__inner { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding-block: 10px; }
.a11y-panel__group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; }
.a11y-panel__group legend { float: left; margin-right: 6px; padding: 0; font-weight: 700; }
.a11y-panel button { min-width: 44px; min-height: 44px; padding: 4px 10px; border: 2px solid #000; border-radius: 4px; background: #fff; color: #000; font-family: inherit; font-size: 17px; font-weight: 700; }
.a11y-panel button[aria-pressed="true"] { outline: 3px solid #000; outline-offset: 2px; text-decoration: underline; }
.a11y-panel .sw-wb { background: #000; color: #fff; }
.a11y-panel .sw-blue { background: #9dd1ff; color: #063462; border-color: #063462; }
.a11y-panel .sw-beige { background: #f7f3d6; color: #4d4b43; border-color: #4d4b43; }
.a11y-panel .sw-brown { background: #3b2716; color: #a9e44d; border-color: #a9e44d; }
html.a11y-fs-1 { font-size: 118.75%; }
html.a11y-fs-2 { font-size: 137.5%; }
html.a11y-fs-3 { font-size: 162.5%; }
html.a11y body, html.a11y button, html.a11y input, html.a11y select, html.a11y textarea { font-family: Arial, Helvetica, sans-serif; }
html.a11y-ff-serif body, html.a11y-ff-serif button, html.a11y-ff-serif input, html.a11y-ff-serif select { font-family: Georgia, "Times New Roman", serif; }
html.a11y-ls-1 body { letter-spacing: .05em; word-spacing: .1em; line-height: 1.8; }
html.a11y-ls-2 body { letter-spacing: .1em; word-spacing: .2em; line-height: 2; }
html.a11y-noimg img, html.a11y-noimg .doc-thumb__paper, html.a11y-noimg .post-card__img, html.a11y-noimg .map, html.a11y-noimg .hero::after { display: none !important; }
html.a11y *, html.a11y *::before, html.a11y *::after { animation: none !important; transition: none !important; box-shadow: none !important; text-shadow: none !important; }
html.a11y .fab { display: none; }
html.a11y-c-bw    { --a-bg: #fff;    --a-fg: #000;    }
html.a11y-c-wb    { --a-bg: #000;    --a-fg: #fff;    }
html.a11y-c-blue  { --a-bg: #9dd1ff; --a-fg: #063462; }
html.a11y-c-beige { --a-bg: #f7f3d6; --a-fg: #4d4b43; }
html.a11y-c-brown { --a-bg: #3b2716; --a-fg: #a9e44d; }
html[class*="a11y-c-"] body,
html[class*="a11y-c-"] body *:not(svg, svg *, .a11y-panel, .a11y-panel *) {
  background-color: var(--a-bg) !important; background-image: none !important;
  color: var(--a-fg) !important; border-color: var(--a-fg) !important;
}
html[class*="a11y-c-"] svg { color: var(--a-fg) !important; }
html[class*="a11y-c-"] a { text-decoration: underline !important; }
html[class*="a11y-c-"] .btn, html[class*="a11y-c-"] .input, html[class*="a11y-c-"] .select, html[class*="a11y-c-"] .textarea,
html[class*="a11y-c-"] .course-card, html[class*="a11y-c-"] .dir-card, html[class*="a11y-c-"] .sign { border: 2px solid var(--a-fg) !important; }
html[class*="a11y-c-"] .hero::before, html[class*="a11y-c-"] .hero::after, html[class*="a11y-c-"] .seo-text__body::after { display: none; }

/* ---------- Печать ---------- */
@media print {
  .header, .navbar, .tabbar, .fab, .cookie, .mobile-buy, .buy .btn, .hero-form, .calc, .cta form, .map { display: none !important; }
  body { font-size: 11pt; padding: 0; }
  .hero { background: none; color: #000; }
  .hero h1 { color: #000; }
  a { color: #000; }
}

/* ---------- Мобильная страховка: одноколоночные гриды не растягиваются по min-content ---------- */
.two-col, .catalog, .course-hero__grid, .course-body,
.page-layout, .contacts, .cta, .nok, .sample { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px)  { .sample { grid-template-columns: 260px minmax(0, 1fr); } }
@media (min-width: 1024px) {
  .two-col, .nok { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .catalog { grid-template-columns: 290px minmax(0, 1fr); }
  .course-hero__grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .course-body { grid-template-columns: minmax(0, 1fr) 380px; }
  .page-layout { grid-template-columns: 300px minmax(0, 1fr); }
  .contacts { grid-template-columns: 400px minmax(0, 1fr); }
  .cta { grid-template-columns: minmax(0, 1fr) 460px; }
}
@media (max-width: 479px) {
  .catalog__sort > span { display: none; }
  .course-card__actions .btn--secondary { display: none; }
}

/* Крупный шрифт в режиме для слабовидящих: шапка всегда в мобильной раскладке */
html.a11y .navbar, html.a11y .header__search, html.a11y .header__contacts, html.a11y .header__cta, html.a11y .header__msg, html.a11y .logo__sub { display: none; }
html.a11y .header__mobile { display: flex; }
html.a11y .header { position: sticky; top: 0; }

/* Подсказки поиска: название и тип — слева столбиком, цена — справа */
.search__opt > b, .search__opt > span:not(.price) { grid-column: 1; }
.search__opt > .price { grid-column: 2; grid-row: 1 / span 2; }
.search__field input:focus-visible { box-shadow: none; }
@media (min-width: 768px) { .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } .steps--3 > li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 52px; right: 8px; height: 2px; background: var(--line-strong); } }
/* Шапка на узких десктопах и телефонах */
.header__search { min-width: 0; }
@media (min-width: 1024px) and (max-width: 1279px) { .header__search { flex-basis: 220px; } .logo__sub { max-width: 170px; } }
@media (max-width: 419px) { .header__mobile a.icon-btn { display: none; } } /* звонок есть в нижней панели */
@media (min-width: 1024px) { .who--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); align-items: start; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s8); } .faq-aside { position: sticky; top: 80px; } }
.faq-layout .faq { max-width: none; }
.faq-aside { padding: var(--s5); border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.section--alt .faq-aside { border-color: transparent; }
.faq-aside h3 { margin-bottom: var(--s2); }
.faq-aside p { color: var(--text-2); font-size: var(--fs-cap); }
.faq-aside__phone { display: block; font-size: 1.375rem; font-weight: 800; color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums; }
/* Страница курса: одна сетка на всю высоту, справа закреплённая панель с ценой */
.course-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s8); }
@media (min-width: 1024px) { .course-page { grid-template-columns: minmax(0, 1fr) 360px; } .course-aside { padding-top: var(--s5); } .course-aside__sticky { position: sticky; top: 78px; } .course-aside .buy { position: static; } }
.course-page .course-hero { position: relative; padding-block: var(--s4) var(--s7); background: var(--bg-alt); box-shadow: 0 0 0 100vmax var(--bg-alt); clip-path: inset(0 -100vmax); }
.course-page .course-body { display: block; padding-block: var(--s7) var(--s7); }
.course-page .course-body > section + section { margin-top: var(--s7); }
@media (max-width: 1023px) { .course-aside { order: -1; display: none; } }
.help-card { display: grid; gap: 4px; margin-top: var(--s4); padding: var(--s4) var(--s5); border-radius: var(--r-card); background: var(--bg-alt); font-size: var(--fs-cap); color: var(--text-2); }
.help-card b { color: var(--text); font-size: 1rem; }
.help-card a { font-weight: 800; font-size: 1.125rem; color: var(--text); text-decoration: none; }
@media (max-width: 639px) {
  .hero__ctas .btn, .dir-hero__ctas .btn { flex: 1 1 100%; }
  .hero__hints > span { display: none; }
}
h1, h2 { hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 639px) { .dir-hero__title .sign { width: 44px; height: 44px; } .dir-hero__title { gap: var(--s3); } }
/* Импортированный контент: строки плана без тем, картинка новости, мелкие заголовки */
.program__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: var(--s4) var(--s5); font-weight: 650; border-top: 1px solid var(--line); }
.program > :first-child.program__row { border-top: 0; }
.program details + .program__row, .program__row + details { border-top: 1px solid var(--line); }
@media (max-width: 479px) { .program__row { gap: var(--s3); padding-inline: var(--s4); } }
.article__img { width: 100%; height: auto; border-radius: var(--r-card); margin-bottom: var(--s6); }
.prose h5 { font-size: 1.0625rem; margin: var(--s5) 0 var(--s3); color: var(--blue-900); }
.prose img { height: auto; }
.prose a[href$=".pdf"]::after, .prose a[href$=".docx"]::after, .prose a[href$=".doc"]::after { content: " (файл)"; color: var(--text-2); font-size: .875em; }
