/* css/base.css */
/* ==========================================================================
   ВениВидиВичи — базовые токены и компоненты
   ========================================================================== */

/* ---------- шрифты: свои файлы в assets/fonts/ (без Google Fonts: 152-ФЗ и скорость) ----------
   Onest — вариативный (400–800), Forum 400, IBM Plex Mono 400/500. Наборы: кириллица, латиница,
   latin-ext (в нём знак ₽). Браузер скачивает только те файлы, символы из которых есть на странице.
   Лицензия шрифтов — SIL Open Font License 1.1, см. assets/fonts/LICENSE.txt */
@font-face { font-family: "Forum"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/forum-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Forum"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/forum-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Forum"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/forum-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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-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: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #F2F4F8;
  --surface: #FFFFFF;
  --ink: #0F1B3D;
  --ink-2: #4B5675;
  --ink-3: #5A6480; /* мелкие подписи: ≥4.5:1 на белом, --paper и --blue-soft */
  --line: #DCE1EB;
  --blue: #2350F0;
  --blue-hover: #1A40CC;
  --blue-soft: #E7ECFE;
  --orange: #FF6A13;
  --orange-hover: #E85A06;
  --gold: #E4B23A;
  --success: #1F8A5B;
  --danger: #D63A2F;

  /* тёмная секция */
  --on-ink: #FFFFFF;
  --on-ink-2: #B7C0DA;
  --ink-line: rgba(255, 255, 255, .14);
  --ink-raise: #182754;

  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-roman: "Forum", "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-hero: clamp(2.4rem, 5vw, 4.25rem);
  --fs-h2: clamp(1.8rem, 3.2vw, 2.75rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-small: .875rem;
  --fs-xs: .78rem;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 12px 32px -14px rgba(15, 27, 61, .22);
  --shadow-sm: 0 2px 8px rgba(15, 27, 61, .06);

  --container: 1240px;
  --gutter: 20px;
  --section-y: clamp(64px, 8vw, 112px);
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; } /* :where — нулевая специфичность, чтобы padding из секций не проигрывал сбросу */
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.section--ink :focus-visible { outline-color: var(--gold); }

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

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); position: relative; }
.section--paper { background: var(--paper); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink .lead, .section--ink .muted { color: var(--on-ink-2); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- typography ---------- */
.h1, .h2, .h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.h1 { font-size: var(--fs-hero); line-height: 1.04; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.01em; }
.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.mono { font-family: var(--font-mono); font-feature-settings: "zero" 0; }
.roman {
  font-family: var(--font-roman);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 400;
  line-height: 1;
}
.roman-num { font-family: var(--font-roman); font-weight: 400; line-height: .9; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.link { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }
.section--ink .link { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); display: grid; gap: 14px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.section-head--row > .section-head__text { display: grid; gap: 14px; max-width: 760px; }
@media (max-width: 760px) { .section-head--row { grid-template-columns: 1fr; align-items: start; } }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid var(--btn-bd); border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
/* самые узкие телефоны (320–374px): длинные подписи кнопок переносятся, а не распирают страницу */
@media (max-width: 374px) { .btn { white-space: normal; } .btn--lg { padding-inline: 16px; } }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
/* тёмный текст на оранжевом: 5.9:1 (белый давал 2.87:1 — ниже WCAG AA) */
.btn--primary { --btn-bg: var(--orange); --btn-fg: var(--ink); --btn-bd: var(--orange); }
.btn--primary:hover { --btn-bg: var(--orange-hover); --btn-bd: var(--orange-hover); }
.btn--blue { --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--blue); }
.btn--blue:hover { --btn-bg: var(--blue-hover); --btn-bd: var(--blue-hover); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--ink); }
.btn--light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: var(--ink-line); }
.btn--light:hover { --btn-bd: #fff; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
/* на сенсорных экранах мелкие кнопки и чипы — не меньше 44px по высоте */
@media (pointer: coarse) { .btn--sm { min-height: 44px; } }

/* ---------- cards & chips ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 28px);
}
.section--surface .card { background: var(--paper); border-color: transparent; }
.section--ink .card { background: var(--ink-raise); border-color: var(--ink-line); color: var(--on-ink); }
.card--hover { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-size: .92rem; font-weight: 500; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--blue); }
@media (pointer: coarse) { .chip { min-height: 44px; } }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px;
  background: var(--blue-soft); color: var(--blue); font-size: var(--fs-xs); font-weight: 600; line-height: 1.3;
}

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); }
.input {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink);
  font-size: 1rem; line-height: 1.3;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: #C3CADA; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35, 80, 240, .28); }
.input.is-invalid, .input[aria-invalid="true"] { border-color: var(--danger); }
/* поле с ошибкой в фокусе: синяя рамка фокуса + красный ореол — отличается от просто ошибочного поля */
.input.is-invalid:focus, .input[aria-invalid="true"]:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(214, 58, 47, .32); }
textarea.input { min-height: 110px; resize: vertical; }
select.input {
  appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234B5675' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field__error { font-size: var(--fs-xs); color: var(--danger); }
.checkbox { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: var(--fs-xs); line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.checkbox a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.form-note { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; }
.form-status { font-size: var(--fs-small); font-weight: 500; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }

/* ---------- utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }
.icon { width: 24px; height: 24px; flex: none; }
.nowrap { white-space: nowrap; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ---------- body state ---------- */
body.is-locked { overflow: hidden; }


/* css/sections/01-header.css */
/* ==========================================================================
   01 — топбар, липкая шапка, мобильное меню, skip-link
   ========================================================================== */

/* ---------- skip-link ---------- */
.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--on-ink);
  font-size: var(--fs-small); font-weight: 600;
  transform: translateY(calc(-100% - 24px));
  transition: transform .2s var(--ease);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; outline-color: var(--gold); }

/* ---------- топбар ---------- */
.header-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .82rem;
  line-height: 1.3;
}
.header-bar__inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 38px;
}
.header-bar__item {
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.header-bar__item .mono { font-size: .95em; }
a.header-bar__item { transition: color .2s var(--ease); }
a.header-bar__item:hover { color: var(--blue); }
.header-bar__icon { width: 15px; height: 15px; flex: none; color: var(--ink-3); }
a.header-bar__item:hover .header-bar__icon { color: currentColor; }
.header-bar__item--addr { color: var(--ink); font-weight: 500; }
.header-bar__item--note {
  margin-left: auto;
  color: var(--ink); font-weight: 500;
  padding-left: 14px; position: relative;
}
.header-bar__item--note::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--orange);
}

/* типографский знак VK (без стороннего логотипа) */
.header-bar__vk {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--blue); color: #fff;
  font-size: .62rem; font-weight: 800; letter-spacing: .02em; line-height: 1;
}
.header-bar__item--vk { color: var(--ink); font-weight: 500; }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(15, 27, 61, .35);
}
.header__inner {
  display: flex; align-items: center; gap: 28px;
  height: var(--header-h);
}
.header__logo { display: inline-flex; align-items: center; flex: none; border-radius: 6px; }
.header__logo picture { display: flex; }
.header__logo img { height: 36px; width: auto; }

.header__nav { flex: 1 1 auto; min-width: 0; }
.header__menu { display: flex; align-items: center; gap: 2px; }
.header__link {
  position: relative; display: inline-flex; align-items: center;
  height: 40px; padding: 0 8px; border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 500; color: var(--ink);
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.header__link::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.header__link:hover { color: var(--blue); }
.header__link.is-active { color: var(--blue); }
.header__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 20px; margin-left: auto; flex: none; }
.header__contact { display: grid; justify-items: end; line-height: 1.2; }
.header__phone {
  font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink);
  white-space: nowrap; border-radius: 4px;
  transition: color .2s var(--ease);
}
.header__phone:hover { color: var(--blue); }
.header__phone-note { margin-top: 3px; font-size: var(--fs-xs); color: var(--ink-2); white-space: nowrap; }

.header__cta { min-height: 46px; padding: 10px 20px; font-size: .95rem; }
.header__cta-short { display: none; }

.header__call,
.header__burger,
.header-menu__close {
  display: none; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.header__call:hover, .header__burger:hover, .header-menu__close:hover { border-color: var(--ink); }
.header__call svg, .header__burger svg, .header-menu__close svg { width: 22px; height: 22px; }
.header__call svg { width: 20px; height: 20px; }

/* ---------- мобильное меню (полноэкранная панель) ---------- */
.header-menu {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column;
  background: var(--surface);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.header-menu.is-open { opacity: 1; transform: none; }
.header-menu__top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h); padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.header-menu__close { display: grid; }
.header-menu__body {
  flex: 1 0 auto;
  display: grid; align-content: start; gap: 28px;
  padding: 12px var(--gutter) 24px;
}
.header-menu__list { display: grid; }
.header-menu__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
  color: var(--ink);
}
.header-menu__link::after {
  content: ""; width: 9px; height: 9px; flex: none; margin-right: 6px;
  border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3);
  transform: rotate(45deg);
}
.header-menu__link.is-active { color: var(--blue); }
.header-menu__link.is-active::after { border-color: var(--blue); }

.header-menu__contacts { display: grid; gap: 8px; }
.header-menu__phone { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); justify-self: start; }
.header-menu__meta { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.45; }
.header-menu__meta .mono { font-size: .95em; }
.header-menu__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.header-menu__chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px 8px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--ink);
}
.header-menu__chip svg { width: 20px; height: 20px; color: var(--ink-2); }
.header-menu__bottom {
  position: sticky; bottom: 0;
  display: grid; gap: 10px;
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line);
  flex: none;
}
.header-menu__hint { font-size: var(--fs-xs); color: var(--ink-2); text-align: center; }

/* ---------- адаптив ---------- */
@media (max-width: 1280px) {
  .header__inner { gap: 20px; }
  .header__link { font-size: .92rem; }
  .header__actions { gap: 16px; }
}

/* «Преподаватели» длиннее «Учителей» — на 1181–1240 ужимаем меню, чтобы не выталкивать кнопку за край */
@media (max-width: 1240px) {
  .header-bar__inner { gap: 20px; }
  .header__inner { gap: 16px; }
  .header__menu { gap: 0; }
  .header__phone-note { display: none; }
  .header__link { padding: 0 6px; font-size: .9rem; }
  .header__link::after { left: 6px; right: 6px; }
  .header__actions { gap: 14px; }
}

@media (max-width: 1180px) {
  .header__nav { display: none; }
  .header__burger { display: grid; }
  .header__actions { gap: 12px; }
  .header__contact { margin-right: 8px; }
}
@media (min-width: 1181px) {
  .header-menu { display: none !important; }
}

/* на 1025–1180 все пять пунктов топбара не помещались (VK уезжал за край) — «Набор открыт» есть в промо */
@media (max-width: 1180px) {
  .header-bar__item--note { display: none; }
  .header-bar__item--mail { margin-left: auto; }
}

@media (max-width: 960px) {
  .header-bar__item--mail { display: none; }
  .header-bar__item--vk { margin-left: auto; }
}

@media (max-width: 760px) {
  .header-bar__inner { gap: 16px; min-height: 34px; }
  .header-bar__item--hours, .header-bar__item--mail { display: none; }
  .header-bar__item--note { display: inline-flex; margin-left: auto; }
  .header-bar__item--vk { margin-left: 0; }
  .header-bar__item--vk .header-bar__vk-text { display: none; }
  .header__contact { display: none; }
  .header__call { display: grid; }
  .header__cta-full { display: none; }
  .header__cta-short { display: inline; }
  .header__cta { min-height: 44px; padding: 8px 16px; }
}

@media (max-width: 420px) {
  .header__inner { gap: 10px; }
  .header__actions { gap: 8px; }
  .header__logo img { height: 30px; }
  .header__cta { padding: 8px 12px; font-size: .9rem; }
  .header-bar__item--note { font-size: .78rem; }
}

@media (max-width: 480px) {
  /* VK есть в мобильном меню; в топбаре на узких экранах он выталкивал строку за край */
  .header-bar__item--vk { display: none; }
  .header-bar__inner { gap: 12px; justify-content: space-between; }
  .header-bar__item--addr, .header-bar__item--note { min-width: 0; }
}

@media (max-width: 380px) {
  /* кнопки остаются 44×44 (минимальная зона касания); место выигрываем на логотипе */
  .header__inner { gap: 8px; }
  .header__actions { gap: 6px; }
  .header__logo img { height: 26px; }
  .header__cta { min-height: 44px; padding: 8px 10px; font-size: .86rem; }
  .header-bar__item--note { font-size: .74rem; }
  .header-bar { font-size: .76rem; }
}

/* ≤370px: вместо полного логотипа — знак «V» (см. <source> в 01-header.html) */
@media (max-width: 370px) {
  .header__logo img { height: 36px; }
}

/* фокус на секции после перехода из мобильного меню — без рамки вокруг всего блока */
[data-menu-focus-target]:focus { outline: none; }

@media (max-width: 339px) {
  /* 320px: знак вместо логотипа, «Записаться» остаётся — ужимаем только отступы */
  .header__cta { padding: 8px 9px; font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  .header-menu { transform: none; }
}

/* ≤350px (320–349): адрес и «Набор открыт» не помещаются в одну строку — оставляем адрес */
@media (max-width: 350px) {
  .header-bar__item--note { display: none; }
}


/* css/sections/02-hero.css */
/* ==========================================================================
   02 · Hero — первый экран: тезис, форма, надпись VENI · VIDI · VICI
   ========================================================================== */

.hero {
  padding-block: clamp(40px, 5.5vw, 80px) 0;
  overflow: hidden;
  isolation: isolate;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

/* ---------- левая колонка ---------- */
.hero__main { display: grid; gap: 22px; align-content: start; padding-top: 8px; }

.hero__place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--on-ink-2);
}
.hero__place .icon { width: 18px; height: 18px; color: var(--gold); }

.hero__title {
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  line-height: 1.06;
  max-width: 16em;
  text-wrap: pretty;
}

.hero__lead { max-width: 36em; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 4px;
  border-top: 1px solid var(--ink-line);
  max-width: 720px;
}
.hero__fact {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-line);
  font-size: .95rem;
  line-height: 1.45;
  color: var(--on-ink-2);
}
.hero__fact b { color: var(--on-ink); font-weight: 600; }
.hero__fact .icon { width: 22px; height: 22px; color: var(--gold); margin-top: 0; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
/* на десктопе форма заявки стоит рядом, её кнопка — единственная оранжевая на первом экране */
@media (min-width: 881px) { .hero__actions [data-hero-to-form] { display: none; } }

.hero__call {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: var(--fs-small);
  color: var(--on-ink-2);
}
.hero__phone {
  color: var(--on-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ink-line);
  text-underline-offset: 4px;
  white-space: nowrap;
}
.hero__phone:hover { text-decoration-color: currentColor; }
.hero__hours { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--on-ink-2); opacity: .85; }

/* ---------- форма (белая карточка на тёмном фоне) ---------- */
.hero .hero__form {
  background: var(--surface);
  border-color: transparent;
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px);
  box-shadow: var(--shadow);
}
.hero__form :focus-visible { outline-color: var(--blue); }
.hero__form-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero__form-sub { margin-top: 8px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.hero__form-body { display: grid; gap: 14px; margin-top: 20px; }
.hero__form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero__consent { margin-top: 2px; }
.hero__form-note { text-align: center; margin-top: -4px; }
.hero__form .form-status:empty { display: none; }

/* правая колонка: форма + чёткое фото занятия под ней (фон hero — чистый ink) */
.hero__aside { display: grid; gap: 20px; align-content: start; min-width: 0; }
.hero__shot {
  margin: 0;
  aspect-ratio: 16 / 7;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-raise);
}
.hero__shot picture { display: block; width: 100%; height: 100%; }
.hero__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 58% 32%;
  color: transparent;
}

/* ---------- фирменная надпись VENI · VIDI · VICI ---------- */
.hero__motto { margin-top: clamp(44px, 5vw, 72px); }

.hero__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(32px, 4vw, 52px) clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--ink-line);
  position: relative;
}
.hero__steps::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 5px;
  border-top: 1px solid var(--ink-line);
}

.hero__step {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  gap: 6px;
}
/* интерпункт между словами */
.hero__step + .hero__step::before {
  content: "·";
  position: absolute;
  top: 0;
  left: calc(clamp(24px, 4vw, 64px) / -2);
  transform: translateX(-50%);
  font-family: var(--font-roman);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1;
  color: var(--on-ink-2);
  opacity: .5;
}

.hero__word {
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: .14em;
  margin-right: -.14em; /* компенсируем разрядку после последней буквы */
  color: var(--on-ink);
  line-height: 1;
}
.hero__step--2 .hero__word { color: color-mix(in srgb, var(--on-ink) 82%, transparent); }
.hero__step--3 .hero__word { color: var(--orange); }

.hero__ru {
  margin-top: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold);
}
.hero__step-text {
  max-width: 22em;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--on-ink-2);
  text-wrap: balance;
}

/* оркестрованное появление: VENI → VIDI → VICI */
@keyframes hero-engrave {
  from { opacity: 0; transform: translateY(14px); letter-spacing: .32em; }
  to   { opacity: 1; transform: none; letter-spacing: .14em; }
}
@keyframes hero-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.hero__word { animation: hero-engrave 1.1s var(--ease) both; }
.hero__ru, .hero__step-text { animation: hero-fade .8s var(--ease) both; }
.hero__step + .hero__step::before { animation: hero-fade .8s var(--ease) both; }

.hero__step--1 .hero__word { animation-delay: .25s; }
.hero__step--1 .hero__ru, .hero__step--1 .hero__step-text { animation-delay: .6s; }
.hero__step--2::before { animation-delay: .55s; }
.hero__step--2 .hero__word { animation-delay: .7s; }
.hero__step--2 .hero__ru, .hero__step--2 .hero__step-text { animation-delay: 1.05s; }
.hero__step--3::before { animation-delay: 1s; }
.hero__step--3 .hero__word { animation-delay: 1.15s; }
.hero__step--3 .hero__ru, .hero__step--3 .hero__step-text { animation-delay: 1.5s; }

@media (prefers-reduced-motion: reduce) {
  .hero__word, .hero__ru, .hero__step-text, .hero__step + .hero__step::before { animation: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); }
  .hero__facts { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* на планшете и телефоне фото не показываем: форма идёт сразу за текстом, первый экран короче */
  .hero__shot { display: none; }
}

@media (max-width: 640px) {
  /* цель: главная CTA в первом экране телефона (≈ до 650px от верха) */
  .hero { padding-top: 24px; }
  .hero__main { gap: 14px; padding-top: 0; }
  .hero__title { font-size: clamp(1.85rem, 8.2vw, 2.4rem); line-height: 1.08; }
  .hero__lead { font-size: 1rem; line-height: 1.5; }

  /* факты — компактные плашки 2×2: иконка + главное, хвост фразы скрыт */
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 2px; border-top: 0; }
  .hero__fact {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--ink-line);
    border-radius: var(--r-sm);
    font-size: .88rem;
    line-height: 1.3;
  }
  .hero__fact .icon { width: 20px; height: 20px; }
  .hero__fact-more { display: none; }

  .hero__actions { margin-top: 4px; }
  .hero__actions .btn { width: 100%; }
  .hero__form-row { grid-template-columns: 1fr; }
  .hero .hero__form { border-radius: var(--r); }

  /* VENI · VIDI · VICI — одной строкой, без пояснений (их раскрывает секция «Метод») */
  .hero__motto { margin-top: 36px; }
  .hero__steps { column-gap: 12px; padding-block: 22px 28px; }
  .hero__steps::before { display: none; }
  .hero__step { gap: 4px; }
  .hero__step + .hero__step::before { left: -6px; font-size: 1.9rem; }
  .hero__word { font-size: clamp(1.6rem, 8vw, 2.1rem); letter-spacing: .1em; margin-right: -.1em; }
  .hero__ru { margin-top: 2px; font-size: .68rem; letter-spacing: .14em; }
  .hero__step-text { display: none; }
}

@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  @keyframes hero-engrave-sm {
    from { opacity: 0; transform: translateY(10px); letter-spacing: .2em; }
    to   { opacity: 1; transform: none; letter-spacing: .1em; }
  }
  .hero__word { animation-name: hero-engrave-sm; }
}


/* css/sections/03-promo.css */
/* ==========================================================================
   03 · Promo — сезонное предложение (спокойная дата вместо таймера)
   ========================================================================== */

/* полоса на surface между тёмным hero и paper-секцией «Направления» */
.promo--tight { padding-block: clamp(28px, 3.5vw, 48px); }

.promo__banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 2.8vw, 44px);
  padding: clamp(22px, 2.6vw, 34px) clamp(22px, 3vw, 40px);
  background: var(--blue-soft);
  border-radius: var(--r-lg);
}
.promo__banner.is-expired { grid-template-columns: minmax(0, 1fr) auto; }

.promo__badge {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  width: clamp(104px, 9vw, 124px);
  aspect-ratio: 1;
  border-radius: var(--r);
  background: var(--blue);
  color: #fff;
}
.promo__badge-num { font-size: clamp(2.2rem, 3.2vw, 2.7rem); line-height: .9; letter-spacing: -.02em; }
.promo__badge-cap { font-size: var(--fs-xs); opacity: .85; }

.promo__text { display: grid; gap: 10px; min-width: 0; }
.promo__title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.promo__offers { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 2px; }
.promo__offer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.promo__offer b { color: var(--ink); font-weight: 700; }
.promo__offer .icon { width: 20px; height: 20px; flex: none; color: var(--blue); }

.promo__cta { display: grid; gap: 8px; justify-items: center; }
.promo__cta-note { font-size: var(--fs-xs); color: var(--ink-2); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .promo__banner { grid-template-columns: minmax(0, 1fr) auto; }
  .promo__badge { display: none; }
  .promo__offers { flex-direction: column; }
}

@media (max-width: 760px) {
  .promo__banner { grid-template-columns: 1fr; gap: 20px; border-radius: var(--r); }
  .promo__offer { align-items: flex-start; }
  .promo__offer .icon { margin-top: 1px; }
  .promo__cta { justify-items: stretch; text-align: center; }
  .promo__cta .btn { width: 100%; }
}


/* css/sections/04-directions.css */
/* 04 · Направления: ЕГЭ (главная), ОГЭ, поурочная поддержка */

.directions__head-link { align-self: end; }

.directions__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-auto-rows: auto;
  gap: 20px;
}

.directions__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* ЕГЭ — тёмная, на две строки */
.directions__card--ege {
  grid-row: span 2;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}
.directions__card--ege :focus-visible { outline-color: var(--gold); }

/* ОГЭ и поурочная — одинаковые белые карточки; акцентная только ЕГЭ */

/* фото */
.directions__media {
  position: relative;
  flex: 1 1 220px;
  min-height: 220px;
  background: var(--ink-raise);
}
.directions__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  color: transparent; /* не показывать alt поверх заглушки, пока фото грузится */
}
.directions__media::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, rgba(15, 27, 61, .92) 0%, rgba(15, 27, 61, .6) 45%, rgba(15, 27, 61, 0) 100%);
  pointer-events: none;
}
.directions__media-note {
  position: absolute; left: clamp(22px, 2.6vw, 36px); bottom: 18px; z-index: 1;
  right: clamp(22px, 2.6vw, 36px);
  font-size: var(--fs-small); font-weight: 500; color: var(--on-ink);
  text-shadow: 0 1px 2px rgba(15, 27, 61, .5);
}

/* тело */
.directions__body {
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(22px, 2.6vw, 34px);
  flex: 0 0 auto;
}
.directions__card:not(.directions__card--ege) .directions__body { flex: 1 1 auto; gap: 18px; }

.directions__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}
.directions__title { display: grid; gap: 8px; }
.directions__name {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
  text-wrap: balance;
}
.directions__card--ege .directions__name { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.directions__who { color: var(--ink-2); font-size: .98rem; line-height: 1.5; text-wrap: pretty; }
.directions__card--ege .directions__who { color: var(--on-ink-2); }

.directions__grade {
  display: grid; justify-items: end; gap: 4px;
  color: var(--blue); text-align: right;
}
.directions__grade .roman-num { font-size: clamp(2.8rem, 4.2vw, 3.8rem); }
.directions__card--ege .directions__grade { color: var(--gold); }
.directions__card--ege .directions__grade .roman-num { font-size: clamp(3.2rem, 5vw, 4.6rem); }
.directions__grade-cap {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
}
.directions__card--ege .directions__grade-cap { color: var(--on-ink-2); }

/* список */
.directions__list { display: grid; gap: 10px; }
.directions__list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.directions__list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px;
  font-size: .97rem; line-height: 1.45;
}
.directions__list svg { width: 20px; height: 20px; margin-top: 1px; color: var(--blue); }
.directions__card--ege .directions__list svg { color: var(--gold); }

/* характеристики */
.directions__meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 20px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
}
.directions__card--ege .directions__meta { border-color: var(--ink-line); }
.directions__meta div { display: grid; gap: 3px; align-content: start; }
.directions__meta dt {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
}
.directions__card--ege .directions__meta dt { color: var(--on-ink-2); }
.directions__meta dd { font-size: .94rem; font-weight: 500; line-height: 1.4; }
.directions__meta .mono { font-size: .9em; }

/* короткие факты в боковых карточках */
.directions__facts {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .92rem; font-weight: 500;
}
.directions__facts li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.directions__facts svg { width: 18px; height: 18px; color: var(--ink-2); }
.directions__facts .mono { font-size: .92em; color: var(--ink-2); }

/* цена + кнопки */
.directions__foot {
  display: grid; gap: 18px;
  margin-top: auto;
}
.directions__price { display: grid; gap: 4px; }
.directions__price-main {
  font-size: clamp(1.7rem, 2.4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
  white-space: nowrap;
}
.directions__from, .directions__per { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.directions__card--ege .directions__from,
.directions__card--ege .directions__per { color: var(--on-ink-2); }
.directions__price-note { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.45; }
.directions__card--ege .directions__price-note { color: var(--on-ink-2); }

/* обе кнопки тянутся: в один ряд делят ширину, при переносе обе на всю ширину */
.directions__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.directions__actions .btn { flex: 1 1 auto; }
.directions__card--ege .directions__actions .btn { flex: 0 1 auto; }

/* «Ещё N пунктов» — появляется только на телефоне (кнопку добавляет 04-directions.js) */
.directions__more { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .directions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directions__card--ege { grid-column: 1 / -1; grid-row: auto; flex-direction: row; }
  .directions__card--ege .directions__media { flex: 0 0 38%; min-height: 0; }
  .directions__card--ege .directions__body { flex: 1 1 auto; }
  .directions__list--cols { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 760px) {
  .directions__grid { grid-template-columns: 1fr; }
  .directions__card--ege { flex-direction: column; }
  /* фото — узкая полоса без подписи: карточка короче, пробник и так есть в списке */
  .directions__card--ege .directions__media { flex: 0 0 auto; aspect-ratio: 5 / 2; }
  .directions__card--ege .directions__media::after,
  .directions__media-note { display: none; }
  .directions__body, .directions__card:not(.directions__card--ege) .directions__body { gap: 16px; }
  .directions__card--ege .directions__actions .btn { flex: 1 1 auto; }

  /* «Старт: набор открыт» уже сказан в промо и шапке; формат и длительность — в две колонки */
  .directions__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 14px; }
  .directions__meta-start { display: none !important; }

  .directions__list.is-collapsible:not(.is-open) > li:nth-child(n + 3) { display: none; }
  .directions__more {
    display: inline-flex; align-items: center; gap: 6px; justify-self: start; align-self: flex-start;
    min-height: 44px; margin-block: -12px -6px; padding: 0;
    font-weight: 600; font-size: .95rem; color: var(--blue);
  }
  .directions__more svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
  .directions__more[aria-expanded="true"] svg { transform: rotate(180deg); }
  .directions__card--ege .directions__more { color: var(--gold); }
  .directions__card--ege .directions__more:focus-visible { outline-color: var(--gold); }
}

@media (max-width: 420px) {
  .directions__head { gap: 12px; }
  .directions__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 900px) {
  .directions__head { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .directions__title { display: contents; }
  .directions__name { grid-column: 1; grid-row: 1; align-self: center; }
  .directions__grade { grid-column: 2; grid-row: 1; }
  .directions__who { grid-column: 1 / -1; grid-row: 2; }
}


/* css/sections/05-subjects.css */
/* 05 · Предметы: сетка 10 плиток, клик открывает заявку с предметом.
   Плитка: иконка в строку с названием, короткое описание, внизу — классы школьной программы и стрелка. */

.subjects__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.subjects__grid > li { display: flex; min-width: 0; }

.subjects__tile {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "icon name name"
    "desc desc desc"
    "grades grades go";
  align-items: center;
  column-gap: 10px;
  row-gap: 10px;
  width: 100%;
  padding: 20px 18px 16px;
  border: 1px solid transparent; border-radius: var(--r);
  background: var(--paper);
  color: var(--ink); text-align: left;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.subjects__tile:hover {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.subjects__tile:focus-visible { outline-offset: 2px; border-radius: var(--r); }

.subjects__icon { grid-area: icon; display: grid; place-items: center; color: var(--blue); }
.subjects__icon svg { width: 24px; height: 24px; }

.subjects__name {
  grid-area: name;
  font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25;
  hyphens: auto; overflow-wrap: break-word;
}
.subjects__desc {
  grid-area: desc; align-self: start;
  font-size: var(--fs-small); color: var(--ink-2); line-height: 1.45; text-wrap: pretty;
}
.subjects__grades {
  grid-area: grades;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2);
}
.subjects__grades .mono { font-size: 1.05em; color: var(--ink); }

.subjects__go {
  grid-area: go; align-self: end;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  color: var(--ink-3);
  transition: color .2s, background-color .2s, transform .25s var(--ease);
}
.subjects__go svg { width: 18px; height: 18px; }
.subjects__tile:hover .subjects__go { color: var(--blue); background: var(--blue-soft); transform: translateX(2px); }

/* нижняя строка */
.subjects__note {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
  margin-top: 28px; padding: 18px 22px;
  border: 1px dashed var(--line); border-radius: var(--r);
}
.subjects__note-text {
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 720px; color: var(--ink-2);
}
.subjects__note-text b { color: var(--ink); font-weight: 700; }
.subjects__note-text svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--blue); }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .subjects__tile { padding: 18px 14px 14px; }
  .subjects__name { font-size: 1rem; }
}

@media (max-width: 900px) {
  .subjects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subjects__tile { padding: 18px 16px 14px; }
  .subjects__name { font-size: 1.08rem; }
}

/* телефон: 2 колонки компактных плиток — иконка, название, классы; описание и стрелка скрыты,
   кликабельна вся плитка */
@media (max-width: 560px) {
  .subjects__grid { gap: 8px; }
  .subjects__tile {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "icon" "name" "grades";
    justify-items: start;
    row-gap: 8px;
    padding: 14px;
  }
  .subjects__icon svg { width: 26px; height: 26px; }
  .subjects__name { align-self: start; font-size: .98rem; line-height: 1.2; }
  .subjects__desc, .subjects__go { display: none; }
  .subjects__grades { width: 100%; padding-top: 8px; }
  .subjects__note { padding: 16px; }
  .subjects__note .btn { width: 100%; white-space: normal; }
}

@media (max-width: 374px) {
  .subjects__name { font-size: .92rem; }
  .subjects__tile { padding: 12px; }
}


/* css/sections/06-formats.css */
/* 06 · Форматы: индивидуально vs мини-группа, строки выровнены через subgrid */

.formats__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 0;
  align-items: stretch;
}

/* карточки */
.formats__card {
  grid-row: 1 / span 7;
  display: grid;
  grid-template-rows: subgrid;
  min-width: 0;
  padding: 8px clamp(20px, 2.2vw, 30px) clamp(20px, 2.2vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.formats__card--group { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }

.formats__head {
  display: flex; align-items: center; gap: 14px;
  padding-block: 20px 18px;
}
.formats__icon {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--paper); color: var(--ink);
}
.formats__card--group .formats__icon { background: var(--blue-soft); color: var(--blue); }
.formats__icon svg { width: 26px; height: 26px; }
.formats__name { font-size: clamp(1.35rem, 1.9vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.formats__sub { margin-top: 4px; font-size: var(--fs-small); color: var(--ink-2); }

.formats__row {
  display: grid; align-content: start; gap: 8px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  font-size: .96rem; line-height: 1.5;
}
.formats__label {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
}
.formats__row .mono { font-size: .92em; }

/* цены */
.formats__prices { display: grid; gap: 6px; }
.formats__prices li {
  display: flex; align-items: baseline; gap: 10px;
}
.formats__prices li span { color: var(--ink-2); }
.formats__prices li b {
  margin-left: auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.formats__hour {
  margin-top: 6px; padding: 8px 12px;
  border-radius: var(--r-sm);
  background: var(--paper);
}
.formats__hour span { color: var(--ink) !important; font-weight: 500; }
.formats__card--group .formats__hour { background: var(--blue-soft); }
.formats__card--group .formats__hour b { color: var(--blue); }

/* плюсы / ограничения */
.formats__list { display: grid; gap: 8px; }
.formats__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.formats__list svg {
  width: 18px; height: 18px; margin-top: 2px; padding: 2px;
  border-radius: 50%;
}
.formats__list--plus svg { color: var(--success); background: rgba(31, 138, 91, .1); }
.formats__list--minus svg { color: var(--ink-2); background: var(--paper); }
.formats__list--minus li { color: var(--ink-2); }

.formats__cta { padding-top: 8px; align-self: end; }

/* подсказка под сравнением — светлая плашка: следом идёт тёмная секция «Метод» */
.formats__help {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 40px;
  margin-top: 20px;
  padding: clamp(22px, 2.6vw, 32px) clamp(22px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: var(--blue-soft); color: var(--ink);
}
.formats__help-text { display: grid; gap: 8px; max-width: 760px; color: var(--ink-2); }
.formats__help-title { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }

/* переключатель форматов — только на телефоне */
.formats__switch { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 760px) {
  .formats__switch {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
    margin-bottom: 16px; padding: 4px;
    background: var(--surface);
    border: 1px solid var(--line); border-radius: 999px;
  }
  .formats__switch-btn {
    min-height: 44px; padding: 8px 12px;
    border-radius: 999px;
    font-size: .95rem; font-weight: 600; color: var(--ink-2);
    transition: background-color .2s var(--ease), color .2s var(--ease);
  }
  .formats__switch-btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

  .formats__layout { grid-template-columns: 1fr; row-gap: 16px; }
  .formats__layout[data-formats-active="group"] .formats__card--solo,
  .formats__layout[data-formats-active="solo"] .formats__card--group { display: none; }
  .formats__card { grid-row: auto; grid-template-rows: none; display: flex; flex-direction: column; }
  .formats__head { padding-block: 16px 14px; }
  .formats__row { padding-block: 14px; }
  .formats__cta { align-self: stretch; padding-top: 12px; }
  .formats__help { flex-direction: column; align-items: stretch; }
  .formats__help .btn { width: 100%; white-space: normal; }
}


/* css/sections/07-method.css */
/* ==========================================================================
   07 — Метод Veni · Vidi · Vici (тёмная секция, «дорога» из пяти шагов)
   ========================================================================== */

.method { overflow: hidden; }

/* ---------- шапка ---------- */
.method__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 48px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.method__intro { margin-bottom: 0; }

.method__facts {
  display: grid;
  grid-auto-flow: column;
  gap: 0;
  margin: 0;
  border-left: 1px solid var(--ink-line);
}
.method__fact {
  display: grid;
  gap: 10px;
  padding: 4px 28px;
  border-right: 1px solid var(--ink-line);
  min-width: 190px;
}
.method__fact-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--on-ink-2);
}
.method__fact-value { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.method__fact-value .roman-num { font-size: 3rem; color: var(--on-ink); }
.method__fact-value .mono { font-size: var(--fs-small); color: var(--on-ink-2); line-height: 1.3; max-width: 16ch; }

/* ---------- дорога ---------- */
.method__road {
  --m-marker: 60px;
  --m-latin: 34px;
  --m-gap: clamp(20px, 2.2vw, 32px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--m-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.method__step {
  position: relative;
  display: grid;
  grid-template-rows: var(--m-latin) var(--m-marker) 1fr;
  row-gap: 14px;
}

/* линия, соединяющая шаги: от центра своего маркера до центра следующего */
.method__step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(var(--m-latin) + 14px + var(--m-marker) / 2);
  left: calc(var(--m-marker) / 2);
  width: calc(100% + var(--m-gap));
  height: 1px;
  background: var(--ink-line);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .9s var(--ease);
}
/* последний отрезок — к победе — тонкий золотой */
.method__step:nth-child(4)::before {
  background: linear-gradient(90deg, var(--ink-line), var(--gold));
}
/* засечки на линии (как деления на римской дороге) */
.method__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--m-latin) + 14px + var(--m-marker) / 2 - 3px);
  left: calc(var(--m-marker) / 2 + (100% + var(--m-gap)) / 2 - 3px);
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink-line);
  background: var(--ink);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.method__road.is-visible .method__step::before { transform: scaleX(1); }
.method__road.is-visible .method__step::after { opacity: 1; }
.method__road.is-visible .method__step:nth-child(2)::before { transition-delay: .15s; }
.method__road.is-visible .method__step:nth-child(3)::before { transition-delay: .3s; }
.method__road.is-visible .method__step:nth-child(4)::before { transition-delay: .45s; }
.method__road.is-visible .method__step::after { transition-delay: .7s; }
.no-js .method__step::before { transform: none; }
.no-js .method__step::after { opacity: 1; }

/* метка над маркером: латинское слово или время */
.method__latin {
  align-self: end;
  font-size: 1.5rem;
  letter-spacing: .16em;
  color: var(--on-ink);
  line-height: 1;
}
.method__latin--muted {
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--on-ink-2);
  padding-bottom: 3px;
}

.method__marker {
  position: relative;
  z-index: 1;
  width: var(--m-marker);
  height: var(--m-marker);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  background: var(--ink);
  color: var(--gold);
  box-shadow: 0 0 0 6px var(--ink);
}
.method__marker .roman-num { font-size: 1.6rem; line-height: 1; transform: translateY(1px); }

.method__step--final .method__latin { color: var(--orange); }
.method__step--final .method__marker {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink); /* белый на оранжевом — 2.87:1, тёмный — 5.88:1, как у .btn--primary */
}

.method__body { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; align-content: start; }
.method__title { color: var(--on-ink); }
.method__text { color: var(--on-ink-2); font-size: .95rem; line-height: 1.55; }

.method__meta {
  display: flex;
  align-self: end;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--ink-line);
  font-size: var(--fs-xs);
  color: var(--on-ink);
  letter-spacing: .02em;
}
.method__meta-icon { width: 16px; height: 16px; flex: none; color: var(--gold); }

.method__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
  line-height: 1.45;
  color: var(--on-ink-2);
}
.method__list li {
  position: relative;
  padding-left: 18px;
}
.method__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .6em;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* ---------- CTA ---------- */
.method__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 40px;
  margin-top: clamp(44px, 5vw, 72px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--ink-line);
}
.method__cta-text {
  max-width: 620px;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--on-ink-2);
  text-wrap: pretty;
}
.method__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- планшет: шаги 3 + 2, цифры 45 / 1 остаются справа от лида ---------- */
@media (max-width: 1180px) {
  .method__fact { min-width: 150px; padding-inline: 20px; }
  .method__fact-value { flex-direction: column; align-items: flex-start; gap: 4px; }
  .method__road {
    --m-marker: 52px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 44px;
  }
  .method__step { grid-column: span 2; }
  .method__step:nth-child(4), .method__step:nth-child(5) { grid-column: span 3; }
  /* третий шаг — конец первого ряда: линию и засечку за ним не рисуем */
  .method__step:nth-child(3)::before, .method__step:nth-child(3)::after { display: none; }
  .method__cta { grid-template-columns: 1fr; }
}

/* ---------- вертикальная дорога ---------- */
@media (max-width: 900px) {
  .method__head { grid-template-columns: 1fr; align-items: start; }
  .method__facts { justify-self: start; }
  .method__fact:first-child { padding-left: 24px; }
  .method__fact-value { flex-direction: row; align-items: baseline; gap: 10px; }
  .method__step, .method__step:nth-child(4), .method__step:nth-child(5) { grid-column: auto; }
  .method__step:nth-child(3)::before { display: block; }
  .method__road {
    --m-marker: 52px;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 640px;
  }
  .method__step {
    grid-template-columns: var(--m-marker) minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas: "marker latin" "marker body";
    column-gap: 20px;
    row-gap: 8px;
    padding-bottom: 36px;
  }
  .method__step:last-child { padding-bottom: 0; }
  .method__marker { grid-area: marker; align-self: start; box-shadow: 0 0 0 5px var(--ink); }
  .method__latin { grid-area: latin; align-self: center; min-height: 0; font-size: 1.3rem; padding-top: 4px; }
  .method__latin--muted { font-size: var(--fs-xs); padding: 8px 0 0; }
  .method__body { grid-area: body; grid-template-rows: auto; }
  .method__text, .method__list { font-size: .95rem; }

  .method__step:not(:last-child)::before {
    top: calc(var(--m-marker) / 2);
    left: calc(var(--m-marker) / 2);
    width: 1px;
    height: 100%;
    transform-origin: center top;
    transform: scaleY(0);
  }
  .method__step:nth-child(4)::before { background: linear-gradient(180deg, var(--ink-line), var(--gold)); }
  .method__road.is-visible .method__step::before { transform: scaleY(1); }
  .no-js .method__step::before { transform: none; }
  .method__step:not(:last-child)::after { display: none; }
}

@media (max-width: 640px) {
  .method__facts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; width: 100%; border-left: 0; }
  .method__fact { min-width: 0; padding: 0 16px; }
  .method__fact:first-child { padding-left: 0; }
  .method__fact:last-child { border-right: 0; }
  .method__fact-value { flex-direction: column; align-items: flex-start; gap: 4px; }
  .method__fact-value .roman-num { font-size: 2.5rem; }
  .method__cta-actions .btn { width: 100%; }
  .method__cta-text { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .method__step::before { transform: none !important; }
  .method__step::after { opacity: 1 !important; }
}


/* css/sections/08-schedule.css */
/* ==========================================================================
   08 — Расписание групп
   ========================================================================== */

.schedule { --sch-gold-soft: color-mix(in srgb, var(--gold) 26%, var(--surface)); }

.schedule__head-cta { align-self: end; }

/* ---------- панель фильтров ---------- */
.schedule__toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 24px; margin-bottom: 14px;
}
.schedule__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-width: 0; }
.schedule__chips { min-width: 0; }
.schedule__chips .chip { gap: 7px; }
.schedule__chip-note { color: var(--ink-3); font-weight: 400; font-size: .86em; }
.schedule__chips .chip[aria-pressed="true"] .schedule__chip-note { color: var(--on-ink-2); }
.schedule__chips .chip[aria-pressed="true"] .schedule__dot--ege { background: var(--surface); }

.schedule__select.input {
  width: auto; min-width: 210px; min-height: 38px;
  padding: 6px 40px 6px 16px; border-width: 1px; border-radius: 999px;
  font-size: .92rem; font-weight: 500; background-position: right 12px center;
}

.schedule__views {
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.schedule__view {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 5px 14px 5px 12px; border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.schedule__view svg { width: 18px; height: 18px; }
.schedule__view:hover { color: var(--ink); }
.schedule__view[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue); }

.schedule__summary { margin-bottom: 16px; font-size: var(--fs-small); color: var(--ink-2); }
.schedule__summary strong { color: var(--ink); font-weight: 600; }

/* ---------- обозначения направлений ---------- */
.schedule__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.schedule__dot--oge { background: var(--blue); }
.schedule__dot--ege { background: var(--ink); }
.schedule__dot--pou { background: var(--gold); }

.schedule__tag { font-size: .72rem; padding: 2px 7px; letter-spacing: .01em; }
.schedule__tag--ege { background: var(--ink); color: var(--on-ink); }
.schedule__tag--pou { background: var(--sch-gold-soft); color: var(--ink); }
.schedule__grade { font-size: var(--fs-xs); color: var(--ink-2); white-space: nowrap; }
.schedule__level { font-weight: 500; color: var(--ink-2); font-size: .86em; letter-spacing: 0; }

/* ---------- карточка группы ---------- */
.schedule__card {
  position: relative;
  display: grid; gap: 3px; min-width: 0;
  padding: 10px 10px 10px;
  background: var(--paper); border: 1px solid transparent; border-radius: 10px;
  transition: border-color .2s var(--ease);
}
.schedule__card:hover, .schedule__card:focus-within { border-color: var(--line); }
.schedule__card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 3px; }
.schedule__subj {
  font-size: .95rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em;
  overflow-wrap: break-word; hyphens: manual;
}
.schedule__week .schedule__level { display: block; }
.schedule__time { font-size: .8rem; font-weight: 500; color: var(--ink); line-height: 1.35; }
.schedule__teacher { font-size: .8rem; color: var(--ink-2); line-height: 1.35; }
.schedule__teacher.is-tbd, .schedule__lteacher.is-tbd { color: var(--ink-3); font-style: normal; }

.schedule__seats { display: grid; gap: 4px; margin-top: 6px; }
.schedule__meter { display: flex; gap: 2px; }
.schedule__meter i { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--line); }
.schedule__meter i.is-free { background: var(--blue); }
.schedule__seats-text { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.3; }
.schedule__seats.is-low .schedule__seats-text { color: var(--ink); font-weight: 600; }
.schedule__seats.is-full .schedule__seats-text { color: var(--ink-3); }

.schedule__cta.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line);
  margin-top: 7px; min-height: 34px; padding: 6px 10px; border-width: 1px; border-radius: 8px;
  font-size: .84rem;
}
.schedule__cta.btn:hover { --btn-bd: var(--blue); --btn-fg: var(--blue); }
.schedule__cta--wait.btn { --btn-bg: transparent; --btn-fg: var(--ink-2); border-style: dashed; }
.schedule__card .schedule__cta { width: 100%; white-space: normal; }

/* сетка недели: вся карточка — кнопка записи, «Записаться →» — тихая строка внизу */
.schedule__cta--link {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin-top: 6px; padding-top: 7px; border-top: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; color: var(--ink-2); text-align: left;
  transition: color .2s var(--ease);
}
.schedule__cta--link svg { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease); }
.schedule__cta--link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.schedule__cta--link:focus-visible { outline: none; }
.schedule__card.is-linked { cursor: pointer; }
.schedule__card.is-linked:hover, .schedule__card.is-linked:focus-within { border-color: var(--blue); background: var(--surface); }
.schedule__card.is-linked:focus-within { box-shadow: 0 0 0 2px var(--blue); }
.schedule__card.is-linked:hover .schedule__cta--link,
.schedule__card.is-linked:focus-within .schedule__cta--link { color: var(--blue); }
.schedule__card.is-linked:hover .schedule__cta--link svg { transform: translateX(3px); }
.schedule__cta--link.schedule__cta--wait { color: var(--ink-3); font-weight: 500; }
.schedule__card.is-full .schedule__subj,
.schedule__card.is-full .schedule__time { color: var(--ink-2); }

/* ---------- вид «Неделя»: сетка ---------- */
.schedule__week { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.schedule__grid { width: 100%; table-layout: fixed; }
.schedule__grid th, .schedule__grid td { text-align: left; vertical-align: top; }
.schedule__corner { width: 84px; padding: 14px 12px; background: var(--paper); border-bottom: 1px solid var(--line); vertical-align: bottom !important; }
.schedule__corner .mono { font-size: var(--fs-xs); color: var(--ink-3); }

.schedule__dayhead {
  padding: 14px 12px 12px; background: var(--paper);
  border-bottom: 1px solid var(--line); border-left: 1px solid var(--line);
  font-weight: 400; position: relative;
}
.schedule__dname { display: block; font-weight: 700; font-size: .98rem; letter-spacing: -.01em; }
.schedule__dshort { display: none; font-weight: 700; font-size: 1rem; }
.schedule__dcount { display: block; font-size: var(--fs-xs); color: var(--ink-3); margin-top: 1px; }
.schedule__dayhead.is-today { color: var(--blue); }
.schedule__dayhead.is-today::after {
  content: "сегодня"; position: absolute; top: 14px; right: 10px;
  font-family: var(--font-mono); font-size: .68rem; color: var(--blue);
}

.schedule__slothead {
  padding: 16px 12px; background: var(--paper);
  border-top: 1px solid var(--line); font-weight: 400;
}
.schedule__grid tbody tr:first-child > * { border-top: 0; }
.schedule__slotrow { display: grid; gap: 0; line-height: 1.25; }
.schedule__slotrow + .schedule__slotrow { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.schedule__slotdays { font-size: var(--fs-xs); color: var(--ink-3); }
.schedule__slottime { font-size: 1.02rem; font-weight: 500; color: var(--ink); }
.schedule__slotrow--sat .schedule__slottime { font-size: .86rem; color: var(--ink-2); }

.schedule__cell { padding: 8px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.schedule__cell.is-today { background: color-mix(in srgb, var(--blue-soft) 45%, var(--surface)); }
.schedule__stack { display: grid; gap: 8px; }

/* ---------- вид «Неделя»: дни на узких экранах ---------- */
.schedule__days { display: none; }
.schedule__tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.schedule__tab {
  display: grid; justify-items: center; gap: 1px; min-height: 54px; padding: 7px 4px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  position: relative; transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.schedule__tab:hover { border-color: var(--blue); }
.schedule__tab-day { font-weight: 700; font-size: .98rem; line-height: 1.2; }
.schedule__tab-count { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.2; }
.schedule__tab.is-empty .schedule__tab-day { color: var(--ink-3); }
.schedule__tab.is-today::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue);
}
.schedule__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.schedule__tab[aria-selected="true"] .schedule__tab-day { color: var(--on-ink); }
.schedule__tab[aria-selected="true"] .schedule__tab-count { color: var(--on-ink-2); }
.schedule__tab[aria-selected="true"].is-today::after { background: var(--gold); }

.schedule__panel { margin-top: 18px; }
.schedule__panel-empty { padding: 28px 16px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--r); }
.schedule__pgroup + .schedule__pgroup { margin-top: 20px; }
.schedule__plabel {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line);
}
.schedule__plabel { font-size: var(--fs-xs); color: var(--ink-3); }
.schedule__plabel .mono { font-size: 1rem; font-weight: 500; color: var(--ink); }
.schedule__pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.schedule__pcards .schedule__card {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "meta time" "subj subj" "teacher teacher" "seats cta";
  column-gap: 12px; padding: 14px;
}
.schedule__pcards .schedule__card-meta { grid-area: meta; }
.schedule__pcards .schedule__time { grid-area: time; justify-self: end; font-size: .86rem; }
.schedule__pcards .schedule__subj { grid-area: subj; font-size: 1.02rem; }
.schedule__pcards .schedule__teacher { grid-area: teacher; font-size: .86rem; }
.schedule__pcards .schedule__seats { grid-area: seats; align-self: end; margin-top: 8px; }
.schedule__pcards .schedule__meter { max-width: 120px; }
.schedule__pcards .schedule__cta { grid-area: cta; align-self: end; width: auto; min-height: 38px; padding-inline: 14px; }

/* ---------- вид «Списком» ---------- */
.schedule__listwrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.schedule__list { width: 100%; }
.schedule__list thead th {
  padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line);
  text-align: left; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.schedule__list tbody tr + tr > * { border-top: 1px solid var(--line); }
.schedule__list tbody th, .schedule__list tbody td { padding: 13px 16px; text-align: left; vertical-align: middle; }
.schedule__row { transition: background-color .15s; }
.schedule__row:hover { background: color-mix(in srgb, var(--paper) 60%, var(--surface)); }
.schedule__lsubj { display: table-cell; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.schedule__lgrade { white-space: nowrap; }
.schedule__lwhen { white-space: nowrap; }
.schedule__ldays { font-weight: 600; margin-right: 6px; }
.schedule__lwhen .mono { font-size: .9rem; }
.schedule__lteacher { color: var(--ink-2); font-size: .95rem; white-space: nowrap; }
.schedule__lstart .mono { font-size: .9rem; color: var(--ink-2); }
.schedule__lstart-label { display: none; }
.schedule__lseats .schedule__seats { margin-top: 0; min-width: 130px; }
.schedule__lseats .schedule__meter { width: 84px; }
.schedule__lcta { text-align: right; width: 1%; white-space: nowrap; }
.schedule__lcta .schedule__cta { margin-top: 0; min-height: 38px; min-width: 142px; padding-inline: 16px; }
.schedule__more { display: none; }
.schedule__row.is-full .schedule__lsubj, .schedule__row.is-full .schedule__lwhen { color: var(--ink-2); }

/* ---------- пустое состояние ---------- */
.schedule__empty {
  display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: clamp(36px, 5vw, 64px) 20px;
  border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface);
}
.schedule__empty-icon { width: 40px; height: 40px; color: var(--ink-3); margin-bottom: 4px; }
.schedule__empty-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; max-width: 36ch; text-wrap: balance; }
.schedule__empty-text { color: var(--ink-2); max-width: 46ch; }
.schedule__empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; max-width: 100%; }
.schedule__empty-actions .btn { white-space: normal; }

/* ---------- подвал ---------- */
.schedule__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; margin-top: 18px;
}
.schedule__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: var(--fs-small); color: var(--ink-2); }
.schedule__legend li { display: inline-flex; align-items: center; gap: 8px; }
.schedule__legend .schedule__legend-format { color: var(--ink-3); }
.schedule__note { font-size: var(--fs-small); color: var(--ink-2); }
.schedule__phone { color: var(--ink); font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.schedule__phone:hover { text-decoration-color: currentColor; }

.schedule__noscript { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.no-js .schedule__toolbar, .no-js .schedule__summary, .no-js .schedule__legend { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1200px) {
  .schedule__dname { display: none; }
  .schedule__dshort { display: block; }
  .schedule__corner { width: 68px; }
  .schedule__slothead { padding-inline: 10px; }
  .schedule__cell { padding: 6px; }
  .schedule__card { padding: 9px 8px; }
  .schedule__subj { font-size: .88rem; }
  .schedule__week .schedule__cta.btn { padding-inline: 4px; font-size: .8rem; }
  .schedule__time, .schedule__teacher { font-size: .76rem; }
  .schedule__lteacher { font-size: .9rem; }
  .schedule__list tbody th, .schedule__list tbody td, .schedule__list thead th { padding-inline: 12px; }
}

@media (max-width: 1100px) {
  .schedule__lstart, .schedule__list thead th:nth-child(5) { display: none; }
}

@media (max-width: 900px) {
  .schedule__week { display: none; }
  .schedule__days { display: block; }
  .schedule__toolbar { align-items: stretch; }

  /* список карточками */
  .schedule__listwrap { border: 0; border-radius: 0; overflow: visible; }
  .schedule__list, .schedule__list tbody { display: block; }
  .schedule__list thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .schedule__list tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .schedule__list tbody tr + tr > * { border-top: 0; }
  .schedule__row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "subj grade" "when when" "teacher teacher" "start start" "seats cta";
    grid-template-rows: repeat(4, auto) 1fr;
    gap: 4px 12px; padding: 14px; border-radius: var(--r); background: var(--paper);
  }
  .schedule__row:hover { background: var(--paper); }
  .schedule__list tbody th, .schedule__list tbody td { display: block; padding: 0; }
  .schedule__lsubj { grid-area: subj; display: flex !important; align-items: flex-start; font-size: 1.02rem; line-height: 1.35; white-space: normal; }
  .schedule__lgrade { grid-area: grade; justify-self: end; }
  .schedule__lwhen { grid-area: when; margin-top: 4px; }
  .schedule__lteacher { grid-area: teacher; font-size: .88rem; white-space: normal; }
  .schedule__lstart { grid-area: start; display: block !important; font-size: .82rem; color: var(--ink-3); }
  .schedule__lstart-label { display: inline; }
  .schedule__lstart .mono { font-size: .82rem; color: var(--ink-3); }
  .schedule__lseats { grid-area: seats; align-self: end; margin-top: 6px; }
  .schedule__lseats .schedule__seats { min-width: 0; }
  .schedule__lcta { grid-area: cta; align-self: end; width: auto; }
}

@media (max-width: 640px) {
  .schedule__head-cta { justify-self: start; }
  .schedule__toolbar > * { min-width: 0; }
  .schedule__filters { width: 100%; }
  .schedule__chips { flex: 1 1 100%; gap: 8px; }
  .schedule__subject { flex: 1 1 auto; }
  .schedule__select.input { width: 100%; min-height: 44px; }
  .schedule__views { width: 100%; }
  .schedule__view { flex: 1 1 0; justify-content: center; min-height: 40px; }
  .schedule__pcards, .schedule__list tbody { grid-template-columns: 1fr; gap: 8px; }

  /* «Списком» на телефоне: компактная карточка в 3–4 строки, кнопка справа */
  .schedule__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "subj grade" "when cta" "teacher cta" "seats start";
    grid-template-rows: auto auto auto auto;
    gap: 2px 12px; padding: 12px 14px;
  }
  .schedule__lwhen { margin-top: 2px; }
  .schedule__lwhen .mono { font-size: .86rem; }
  .schedule__lteacher { font-size: .84rem; }
  .schedule__lstart { grid-area: start; justify-self: end; align-self: end; }
  .schedule__lseats { margin-top: 4px; }
  .schedule__lseats .schedule__meter { display: none; }
  .schedule__lcta { align-self: center; }
  .schedule__lcta { justify-self: end; }
  .schedule__lcta .schedule__cta { min-width: 128px; min-height: 44px; padding-inline: 12px; }
  .schedule__list.is-clipped tbody tr:nth-child(n+9) { display: none; }
  .schedule__more { display: flex; margin-top: 10px; }
  .schedule__foot { display: grid; }
  .schedule__empty-actions { display: grid; width: 100%; }
  .schedule__legend { gap: 6px 16px; }
  .schedule__legend .schedule__legend-format { flex-basis: 100%; }
}

/* сенсорные экраны: зоны нажатия не меньше 44px (перебиваем компактные min-height выше) */
@media (pointer: coarse) {
  .schedule__cta.btn,
  .schedule__pcards .schedule__cta,
  .schedule__lcta .schedule__cta,
  .schedule__view,
  .schedule__select.input { min-height: 44px; }
}


/* css/sections/09-programs.css */
/* 09 · Учебные планы */

.programs__ico { width: 18px; height: 18px; flex: none; }

/* ---------- табы ---------- */
.programs__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.programs__tab {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  min-height: 64px;
  padding: 10px 18px;
  border-radius: 10px;
  text-align: left;
  color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.programs__tab:hover { background: var(--paper); }
.programs__tab[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.programs__tab-title { font-weight: 700; font-size: 1.1rem; line-height: 1.2; letter-spacing: -.01em; }
.programs__tab-sub { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.3; }
.programs__tab[aria-selected="true"] .programs__tab-sub { color: var(--on-ink-2); }

/* ---------- панель ---------- */
.programs__panel {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 14px 20px;
  align-items: start;
}
/* выбор предмета стоит над планом (справа от сводки), на узких экранах — сразу под табами */
.programs__subjects { grid-column: 2; grid-row: 1; }
.programs__summary { grid-column: 1; grid-row: 1 / span 2; }
.programs__main { grid-column: 2; }
.programs__panel:focus-visible { outline-offset: 6px; border-radius: var(--r); }

/* ---------- сводка ---------- */
.programs__summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 18px;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.programs__eyebrow { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--blue); letter-spacing: .02em; text-transform: uppercase; }
.programs__title { margin-top: -10px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.programs__title-note { color: var(--ink-2); font-weight: 600; }
.programs__format { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.5; margin-top: -6px; }

.programs__stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
}
.programs__stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 14px 16px; }
.programs__stat:nth-child(odd) { border-right: 1px solid var(--line); }
.programs__stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.programs__stat-val { display: flex; align-items: baseline; gap: 6px; }
.programs__stat-val .roman-num { font-size: 2.6rem; color: var(--ink); }
.programs__stat-unit { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-2); }
.programs__stat-label { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.35; }

.programs__perks-title { font-weight: 700; font-size: 1rem; margin-bottom: -6px; }
.programs__perks { display: grid; gap: 9px; font-size: var(--fs-small); line-height: 1.45; }
.programs__perks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.programs__perks svg { width: 18px; height: 18px; margin-top: 1px; color: var(--blue); }

.programs__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.programs__actions .btn { padding-inline: 14px; }

/* ---------- основная колонка ---------- */
.programs__main {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(18px, 2.4vw, 30px) clamp(18px, 2.4vw, 32px);
}
.programs__subjects {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  min-width: 0;
}
.programs__subj { background: var(--surface); }
.programs__more { display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--ink-2); }
.programs__more svg { width: 18px; height: 18px; color: var(--ink-3); }

/* ---------- таймлайн ---------- */
.programs__timeline { counter-reset: none; }
.programs__month {
  position: relative;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) auto;
  gap: 4px 20px;
  align-items: start;
  padding: 16px 0 16px 28px;
}
.programs__month + .programs__month { border-top: 1px dashed var(--line); }
/* вертикальная ось и точка месяца */
.programs__month::before {
  content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: var(--line);
}
.programs__month:first-child::before { top: 24px; }
.programs__month:last-child::before { bottom: calc(100% - 24px); }
.programs__month::after {
  content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--blue);
}
.programs__month--check::after { background: var(--blue); }
.programs__month:last-child::after { background: var(--gold); border-color: var(--gold); }

.programs__when { display: grid; gap: 2px; padding-top: 1px; }
.programs__mname { font-weight: 700; line-height: 1.3; }
.programs__weeks { font-size: var(--fs-xs); color: var(--ink-3); }
.programs__what { min-width: 0; }
.programs__module { font-size: 1.02rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.programs__topics { margin-top: 3px; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.5; text-wrap: pretty; }

.programs__mark {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 1px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--blue-soft); color: var(--blue);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.programs__mark svg { width: 16px; height: 16px; }
.programs__mark--diag { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.programs__month:focus { outline: none; }
.programs__month:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.programs__expand { display: none; }

/* ---------- цикл поурочной поддержки ---------- */
ol.programs__cycle {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.programs__cycle-step {
  position: relative;
  display: grid; gap: 4px; align-content: start;
  padding: 14px 14px 16px;
  border-radius: 10px;
  background: var(--paper);
}
.programs__cycle-step:not(:last-child)::after {
  content: ""; position: absolute; right: -8px; top: 24px; width: 6px; height: 6px;
  border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3); transform: rotate(45deg);
}
.programs__cycle-ico { width: 22px; height: 22px; color: var(--blue); margin-bottom: 6px; }
.programs__cycle-title { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.programs__cycle-text { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.4; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .programs__panel { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
  .programs__month { grid-template-columns: 104px minmax(0, 1fr); }
  .programs__mark { grid-column: 2; justify-self: start; margin-top: 6px; }
  .programs__actions { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .programs__panel { grid-template-columns: 1fr; gap: 16px; }
  .programs__subjects, .programs__summary, .programs__main { grid-column: 1; grid-row: auto; }
  .programs__summary { position: static; }
  .programs__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .programs__stat { border-bottom: 0 !important; border-right: 1px solid var(--line); }
  .programs__stat:last-child { border-right: 0; }
  .programs__actions { grid-template-columns: auto auto; justify-content: start; }
  ol.programs__cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programs__cycle-step:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  .programs__tabs { gap: 4px; padding: 4px; }
  .programs__tab { min-height: 58px; padding: 8px 10px; }
  .programs__tab-title { font-size: .95rem; }
  .programs__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programs__stat { border-right: 0 !important; }
  .programs__stat:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  .programs__stat:nth-child(-n+2) { border-bottom: 1px solid var(--line) !important; }
  .programs__stat-val .roman-num { font-size: 2.2rem; }
  .programs__actions { grid-template-columns: 1fr; }
  .programs__month { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 0 14px 26px; gap: 4px 10px; }
  .programs__month::after { top: 17px; }
  .programs__when { grid-column: 1; grid-row: 1; align-self: center; }
  .programs__weeks { display: none; }
  .programs__mark { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; margin-top: 0; padding: 3px 8px 3px 6px; }
  .programs__what { grid-column: 1 / -1; grid-row: 2; }
  .programs__subjects { gap: 8px; }
  .programs__more { font-size: var(--fs-xs); }
  .programs__plan.is-collapsed .programs__month:nth-child(n+4) { display: none; }
  .programs__plan.is-collapsed .programs__month:nth-child(3)::before { bottom: calc(100% - 24px); }
  .programs__expand { display: flex; margin-top: 6px; }
  ol.programs__cycle { padding-bottom: 16px; }
  ol.programs__cycle { grid-template-columns: 1fr; gap: 8px; }
  .programs__cycle-step { grid-template-columns: 22px 1fr; column-gap: 12px; padding: 12px 14px; }
  .programs__cycle-ico { grid-row: span 2; margin: 0; }
  .programs__cycle-step::after { display: none; }
}
@media (max-width: 380px) {
  .programs__tab-title { font-size: .88rem; }
}


/* css/sections/10-prices.css */
/* 10 · Цены */

/* ---------- переключатель ---------- */
.prices__switch {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  padding: 4px;
  background: var(--paper);
  border-radius: 12px;
}
.prices__switch-btn {
  min-height: 44px; padding: 8px 18px;
  border-radius: 9px;
  font-size: .95rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.prices__switch-btn:hover { color: var(--ink); }
.prices__switch-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.prices__switch-note { font-weight: 500; color: var(--ink-2); }

/* режим показа цены: разовое / абонемент */
.prices[data-mode="sub"] [data-prices-show="single"],
.prices[data-mode="single"] [data-prices-show="sub"] { display: none; }

/* ---------- диагностика: плашка над тарифами ---------- */
.prices__free {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 28px;
  margin-bottom: 28px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.prices__free-price { display: flex; align-items: baseline; gap: 2px; font-size: 1.5rem; font-weight: 600; line-height: 1; padding-right: 28px; border-right: 1px solid var(--line); }
.prices__free-text { display: grid; gap: 4px; }
.prices__free-desc { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.5; max-width: 68ch; }
.prices__free-cta { white-space: nowrap; }

/* ---------- карточки ---------- */
.prices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.prices__card {
  position: relative;
  display: flex; flex-direction: column; gap: 20px;
  padding: 26px 24px 24px;
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: var(--r);
}
.prices__card--featured {
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.prices__card--featured .prices__head { padding-top: 6px; }
.prices__head { display: grid; gap: 4px; min-height: 56px; align-content: start; }
.prices__badge {
  position: absolute; top: -12px; left: 20px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue);
  line-height: 24px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; color: #fff;
  text-transform: uppercase; letter-spacing: .03em;
}
.prices__name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.prices__for { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.4; }

.prices__price {
  display: grid; gap: 2px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}
.prices__amount { display: flex; align-items: baseline; gap: 2px; font-size: 1.5rem; font-weight: 600; line-height: 1; color: var(--ink); }
.prices__num { font-family: var(--font-roman); font-size: 3.4rem; font-weight: 400; line-height: .9; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.prices__per { margin-top: 10px; font-size: var(--fs-small); font-weight: 500; color: var(--ink); }
.prices__extra { margin-top: 6px; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.4; }
.prices__extra b { color: var(--blue); font-weight: 700; }

.prices__list { display: grid; gap: 10px; font-size: var(--fs-small); line-height: 1.45; flex: 1; align-content: start; }
.prices__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.prices__list svg { width: 20px; height: 20px; color: var(--blue); }

.prices__cta { margin-top: auto; }

/* ---------- акция ---------- */
.prices__promo {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 16px;
  padding: 16px 22px;
  border: 1px dashed var(--blue);
  border-radius: var(--r);
  background: var(--blue-soft);
  color: var(--ink);
}
.prices__promo-ico { width: 22px; height: 22px; color: var(--blue); flex: none; }
.prices__promo-text { flex: 1; line-height: 1.5; }
.prices__promo-terms { color: var(--ink-2); font-size: var(--fs-small); }

/* ---------- условия ---------- */
.prices__terms {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.prices__terms-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.prices__term { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; align-content: start; }
.prices__term > svg { width: 24px; height: 24px; color: var(--blue); }
.prices__term-title { font-weight: 700; line-height: 1.3; }
.prices__term-text { margin-top: 4px; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.5; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .prices__free { grid-template-columns: auto minmax(0, 1fr); }
  .prices__free-cta { grid-column: 2; justify-self: start; }
  .prices__grid { gap: 12px; }
  .prices__card { padding-inline: 20px; }
  .prices__num { font-size: 3rem; }
  .prices__terms { grid-template-columns: 1fr; }
  .prices__terms-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .prices__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .prices__head { min-height: 0; }
}
@media (max-width: 760px) {
  .prices__switch { justify-self: start; }
}
@media (max-width: 640px) {
  .prices__free { grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; padding: 16px; }
  .prices__free-price { padding-right: 16px; }
  .prices__free-price .prices__num { font-size: 2.6rem; }
  .prices__free .prices__name { font-size: 1.05rem; }
  .prices__free-desc { grid-column: 1 / -1; grid-row: 2; }
  .prices__free-text { display: contents; }
  .prices__free-cta { grid-column: 1 / -1; justify-self: stretch; white-space: normal; }

  /* платные тарифы — горизонтальная лента со «снапом», соседняя карточка выглядывает */
  .prices__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 14px var(--gutter) 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .prices__grid::-webkit-scrollbar { display: none; }
  .prices__card { padding: 22px 18px 18px; gap: 16px; scroll-snap-align: start; }
  .prices__card--featured { box-shadow: none; }
  .prices__num { font-size: 2.8rem; }
  .prices__switch { display: grid; width: 100%; }
  .prices__switch-btn { padding-inline: 8px; font-size: .9rem; }
  .prices__promo { padding: 14px 16px; gap: 12px; }

  .prices__terms-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .prices__term { grid-template-columns: 1fr; gap: 8px; }
  .prices__term-title { font-size: .95rem; }
  .prices__term-text { font-size: var(--fs-xs); }
}
@media (max-width: 374px) {
  .prices__switch-btn { padding-block: 5px; line-height: 1.15; }
  .prices__switch-note { display: block; font-size: .8rem; }
}


/* css/sections/11-teachers.css */
/* ==========================================================================
   Общая навигация горизонтальных лент на телефоне (учителя, результаты):
   счётчик «1 / 6» и стрелки. Логика — src/js/11-carousel.js
   ========================================================================== */

.snav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.snav[hidden] { display: none; }
.snav__count { margin-right: auto; font-size: var(--fs-small); color: var(--ink-2); white-space: nowrap; }
.snav__btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), opacity .2s;
}
.snav__btn svg { width: 22px; height: 22px; }
.snav__btn:hover:not([aria-disabled="true"]) { border-color: var(--ink); background: var(--ink); color: #fff; }
.snav__btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.snav__btn:focus-visible { border-radius: 50%; }

.snav--dark .snav__count { color: var(--on-ink-2); }
.snav--dark .snav__btn { border-color: var(--ink-line); background: transparent; color: var(--on-ink); }
.snav--dark .snav__btn:hover:not([aria-disabled="true"]) { border-color: var(--on-ink); background: var(--on-ink); color: var(--ink); }
.snav--dark .snav__btn:focus-visible { outline-color: var(--gold); }

/* ==========================================================================
   11. Преподаватели
   ========================================================================== */

.teachers__pick { align-self: end; }

.teachers__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.teachers__item { display: flex; min-width: 0; }

.teachers__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.teachers__card:hover { box-shadow: var(--shadow); border-color: transparent; }

/* ---- фото ---- */
.teachers__photo {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--blue-soft);
  overflow: hidden;
  isolation: isolate;
}
.teachers__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  /* лёгкая общая цветокоррекция, чтобы разные снимки смотрелись одной серией */
  filter: saturate(.92) contrast(1.02);
}

.teachers__badge {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.2;
}
.teachers__badge svg { width: 15px; height: 15px; color: var(--gold); }
.teachers__badge--lead { padding-left: 11px; }

.teachers__exp {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 14px 8px 12px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}
.teachers__exp-num { font-size: 1.75rem; color: var(--blue); }

/* ---- текст ---- */
.teachers__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: 22px 24px 24px;
}
.teachers__name { font-size: 1.3rem; }

.teachers__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.teachers__tags .tag { font-size: .8rem; padding: 4px 10px; }
.teachers__tag-exam {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.3;
}

.teachers__facts { display: grid; gap: 8px; font-size: .93rem; line-height: 1.45; color: var(--ink); }
.teachers__facts li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.teachers__facts svg { width: 20px; height: 20px; color: var(--blue); margin-top: 0; }

.teachers__quote {
  position: relative;
  margin-top: 2px;
  padding: 14px 16px 14px 16px;
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink-2);
  font-size: .93rem;
  line-height: 1.5;
}

.teachers__cta { margin-top: auto; }

/* ---- адаптив ---- */
@media (max-width: 1180px) {
  .teachers__body { padding: 20px 20px 22px; }
  .teachers__name { font-size: 1.2rem; }
}

@media (max-width: 1024px) {
  .teachers__body { padding: 18px 18px 20px; gap: 12px; }
  .teachers__name { font-size: 1.12rem; }
  .teachers__facts, .teachers__quote { font-size: .88rem; }
}

@media (max-width: 860px) {
  .teachers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teachers__photo { aspect-ratio: 4 / 3; }
}

@media (max-width: 760px) {
  .teachers__pick { justify-self: start; }
}

/* мобильный: горизонтальный слайдер со снапом */
@media (max-width: 640px) {
  .teachers__grid {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .teachers__grid::-webkit-scrollbar { display: none; }
  .teachers__item { flex: 0 0 84%; scroll-snap-align: start; }
  .teachers__photo { aspect-ratio: 1 / 1; }
  .teachers__nav { margin-top: 14px; }
}


/* css/sections/12-results.css */
/* ==========================================================================
   12 — Результаты учеников (тёмная секция, карточки «было → стало»)
   ========================================================================== */

.results { border-top: 1px solid var(--ink-line); }

/* ---------- шапка + легенда ---------- */
.results__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-bottom: 6px;
  font-size: var(--fs-small);
  color: var(--on-ink-2);
}
.results__legend-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.results__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--on-ink-2);
  background: var(--ink);
  flex: none;
}
.results__dot--to { border-color: var(--gold); background: var(--gold); }

/* пометка «пример» — видна, пока карточки не заменены реальными результатами */
.results__sample {
  justify-self: start;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 12px;
  border: 1px dashed color-mix(in srgb, var(--on-ink-2) 55%, transparent);
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--on-ink-2);
}

/* ---------- сетка: одна широкая карточка + компактные ---------- */
.results__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.results__item { display: flex; min-width: 0; }
.results__item--feature { grid-column: span 2; }

.results__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  background: var(--ink-raise);
  color: var(--on-ink);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.results__card:hover { border-color: color-mix(in srgb, var(--on-ink-2) 45%, transparent); transform: translateY(-2px); }

/* широкая карточка: слева баллы, справа история и ученик */
.results__card--feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px clamp(28px, 3.4vw, 48px);
}
.results__card--feature:hover { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.results__main { display: flex; flex-direction: column; min-width: 0; }
.results__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: clamp(28px, 3.4vw, 48px);
  border-left: 1px solid var(--ink-line);
}
.results__story { font-size: 1.02rem; line-height: 1.6; color: var(--on-ink); text-wrap: pretty; }
.results__card--feature .results__num { font-size: clamp(3.4rem, 5vw, 4.4rem); }
.results__card--feature .results__num--to { font-size: clamp(4.4rem, 7vw, 6.2rem); }
.results__card--feature .results__plus { color: var(--gold); }

.results__card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.results__exam { font-weight: 700; font-size: 1.05rem; line-height: 1.3; letter-spacing: -.01em; }
.results__exam-type {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--ink-line);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--on-ink-2);
  vertical-align: 2px;
}
.results__sample-tag {
  flex: none;
  padding: 2px 8px;
  border: 1px dashed var(--ink-line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--on-ink-2);
}

/* ---------- было → стало ---------- */
.results__scores {
  display: grid;
  grid-template-columns: auto minmax(28px, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 14px;
  row-gap: 6px;
  margin-top: 24px;
}
.results__from, .results__to { display: contents; }
.results__from .results__label { grid-column: 1; grid-row: 1; }
.results__to .results__label { grid-column: 3; grid-row: 1; justify-self: center; }
.results__from .results__num { grid-column: 1; grid-row: 2; }
.results__to .results__num-wrap { grid-column: 3; grid-row: 2; }
.results__arrow { grid-column: 2; grid-row: 2; }
.results__label {
  font-size: var(--fs-xs);
  letter-spacing: .03em;
  color: var(--on-ink-2);
  white-space: nowrap;
}
.results__num { font-size: clamp(3rem, 4.2vw, 3.75rem); color: var(--on-ink-2); }
.results__num--to { font-size: clamp(3.9rem, 5.6vw, 5rem); color: var(--on-ink); }

.results__num-wrap { display: inline-flex; align-items: flex-end; gap: 0; }
.results__laurel {
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
  color: var(--gold);
  opacity: .85;
  flex: none;
}
.results__laurel--r { transform: scaleX(-1); }

.results__arrow {
  position: relative;
  height: 1px;
  margin-bottom: 1.5rem;
  background: var(--ink-line);
}
.results__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--on-ink-2);
  border-right: 1px solid var(--on-ink-2);
  transform: rotate(45deg);
  transform-origin: center;
}

/* ---------- шкала ---------- */
.results__scale {
  position: relative;
  height: 12px;
  margin-top: 22px;
}
.results__track {
  position: absolute;
  inset: 5px 0 auto;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-line);
}
.results__scale::before {
  content: "";
  position: absolute;
  top: 5px;
  left: var(--from);
  width: calc(var(--to) - var(--from));
  height: 2px;
  background: var(--on-ink-2);
  opacity: .8;
  z-index: 1;
}
.results__scale::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--to) - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  z-index: 2;
}
.results__track::after {
  content: "";
  position: absolute;
  top: -4px;
  left: calc(var(--from) - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--on-ink-2);
  background: var(--ink-raise);
  z-index: 2;
}

.results__delta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: var(--fs-xs);
  color: var(--on-ink-2);
}
.results__plus { color: var(--on-ink); font-weight: 500; }
.results__grade {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-xs);
  color: var(--on-ink-2);
}

/* ---------- ученик ---------- */
.results__student {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--ink-line);
}
.results__card:not(.results__card--feature) > :nth-last-child(2) { margin-bottom: 22px; }
.results__side .results__student { padding-top: 18px; }
.results__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  font-size: 1.15rem;
  letter-spacing: 0;
  color: var(--on-ink-2);
}
.results__who { display: grid; gap: 1px; min-width: 0; }
.results__name { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.results__meta { font-size: var(--fs-xs); color: var(--on-ink-2); line-height: 1.4; }

/* ---------- итог ---------- */
.results__summary {
  display: grid;
  justify-items: center;
  gap: 22px;
  margin-top: clamp(40px, 4.5vw, 64px);
  text-align: center;
}
.results__summary-text {
  max-width: 720px;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--on-ink);
  text-wrap: balance;
}
.results__summary-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results__item--feature { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .results__card--feature { grid-template-columns: minmax(0, 1fr); }
  .results__side { padding-left: 0; padding-top: 20px; border-left: 0; border-top: 1px solid var(--ink-line); }
  .results__side .results__student { border-top: 0; padding-top: 0; }
}

/* телефон: горизонтальная лента со снапом, как у отзывов и учителей */
@media (max-width: 640px) {
  .results__legend { gap: 8px 18px; }
  .results__grid {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .results__grid::-webkit-scrollbar { display: none; }
  .results__item { flex: 0 0 86%; scroll-snap-align: start; }
  .results__card--feature { display: flex; gap: 0; }
  .results__side { gap: 16px; margin-top: 18px; padding-top: 18px; }
  .results__story { font-size: .95rem; }
  .results__num, .results__card--feature .results__num { font-size: 3rem; }
  .results__num--to, .results__card--feature .results__num--to { font-size: 3.8rem; }
  .results__nav { margin-top: 16px; }
  .results__summary { justify-items: stretch; }
  .results__summary-actions .btn { width: 100%; }
}

@media (max-width: 400px) {
  .results__scores { column-gap: 10px; }
  .results__num, .results__card--feature .results__num { font-size: 2.6rem; }
  .results__num--to, .results__card--feature .results__num--to { font-size: 3.3rem; }
  .results__laurel { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .results__card:hover { transform: none; }
}


/* css/sections/13-reviews.css */
/* ==========================================================================
   13. Отзывы
   ========================================================================== */

.reviews__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- полоса: рейтинг + навигация ---- */
.reviews__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
/* пометка «примеры» — видна, пока отзывы не заменены реальными */
.reviews__sample {
  max-width: 46ch;
  width: fit-content;
  padding: 8px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--ink-2);
}

.reviews__stars svg { width: 16px; height: 16px; }
.reviews__star-off { color: var(--line); }

.reviews__nav { display: flex; align-items: center; gap: 10px; }
.reviews__counter { margin-right: 8px; font-size: var(--fs-small); color: var(--ink-2); white-space: nowrap; }
.reviews__arrow {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), opacity .2s;
}
.reviews__arrow svg { width: 22px; height: 22px; }
.reviews__arrow:hover:not([aria-disabled="true"]) { border-color: var(--ink); background: var(--ink); color: #fff; }
/* край ленты: aria-disabled вместо disabled, чтобы фокус клавиатуры не терялся */
.reviews__arrow[aria-disabled="true"] { opacity: .35; cursor: default; }
.reviews__arrow:focus-visible { border-radius: 50%; }

/* ---- лента ---- */
.reviews__track {
  --reviews-per-view: 3;
  --reviews-gap: 20px;
  display: flex;
  align-items: stretch;
  gap: var(--reviews-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* место под фокус-рамку карточек */
  margin: -6px;
  padding: 6px;
  scroll-padding-inline: 6px;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline-offset: 0; border-radius: var(--r); }

.reviews__card {
  flex: 0 0 calc((100% - var(--reviews-gap) * (var(--reviews-per-view) - 1)) / var(--reviews-per-view));
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 22px;
  border-radius: var(--r);
  background: var(--paper);
  scroll-snap-align: start;
}

.reviews__head { display: flex; align-items: center; gap: 14px; }
.reviews__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.reviews__avatar--photo { object-fit: cover; background: var(--line); }
.reviews__who { min-width: 0; }
.reviews__name { font-size: 1.05rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.reviews__role { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.35; }

.reviews__rate { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reviews__date { font-size: var(--fs-small); color: var(--ink-3); white-space: nowrap; }

.reviews__text { display: grid; gap: 10px; font-size: .97rem; line-height: 1.6; color: var(--ink); }

/* обрезка длинных отзывов — только с JS (иначе нечем раскрыть) */
html:not(.no-js) .reviews__text.is-clamped:not(.is-expanded) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  overflow: hidden;
}
html:not(.no-js) .reviews__text.is-clamped:not(.is-expanded) p { display: inline; }
html:not(.no-js) .reviews__text.is-clamped:not(.is-expanded) p + p::before { content: " "; }

.reviews__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  /* зона нажатия 44px без сдвига вёрстки */
  min-height: 44px;
  margin-block: -15px -11px;
  color: var(--blue);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.reviews__more:hover { text-decoration-thickness: 2px; }

.reviews__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.reviews__format { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); }

/* ---- адаптив ---- */
@media (max-width: 900px) {
  .reviews__track { --reviews-per-view: 2; }
}

@media (max-width: 760px) {
  .reviews__actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .reviews__actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .reviews__actions .btn { width: 100%; }

  .reviews__bar { flex-wrap: wrap; align-items: flex-end; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; }
  .reviews__sample { max-width: none; flex: 1 1 100%; }
  .reviews__nav { flex: 1 1 100%; }
  .reviews__counter { margin-right: auto; }
  .reviews__arrow { width: 46px; height: 46px; }

  .reviews__track {
    --reviews-gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .reviews__card { flex-basis: 86%; padding: 22px 20px 18px; }
}


/* css/sections/14-faq.css */
/* ==========================================================================
   14 · FAQ
   ========================================================================== */

.faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.faq__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 28px;
}
.faq__head { margin-bottom: 0; }

/* карточка «не нашли ответ» */
.faq__help {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--on-ink);
}
.faq__help-icon { width: 32px; height: 32px; color: var(--gold); }
.faq__help-title { color: var(--on-ink); }
.faq__help-text { color: var(--on-ink-2); font-size: var(--fs-small); }
.faq__help-actions { display: grid; gap: 10px; margin-top: 8px; }
.faq__help :focus-visible { outline-color: var(--gold); }

/* аккордеон */
.faq__list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px clamp(20px, 3vw, 36px);
  interpolate-size: allow-keywords;
}

.faq__item + .faq__item { border-top: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
  transition: color .2s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--blue); }
.faq__q:focus-visible { outline-offset: 2px; border-radius: var(--r-sm); }

.faq__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--ink);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.faq__icon svg { width: 18px; height: 18px; }
.faq__icon-v {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.faq__q:hover .faq__icon { border-color: var(--blue); color: var(--blue); }
.faq__item[open] .faq__icon { background: var(--ink); border-color: var(--ink); color: #fff; }
.faq__item[open] .faq__icon-v { transform: rotate(90deg) scaleY(0); }

.faq__a {
  display: grid;
  gap: 12px;
  max-width: 68ch;
  padding: 0 56px 24px 0;
  color: var(--ink-2);
}
.faq__a .link { color: var(--blue); }

.faq__prices {
  display: grid;
  margin: 2px 0;
  padding: 0;
  list-style: none;
  border-radius: var(--r-sm);
  background: var(--paper);
}
.faq__prices li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  font-size: var(--fs-small);
}
.faq__prices li + li { border-top: 1px solid var(--line); }
.faq__prices li > span:first-child { color: var(--ink-2); }
.faq__price { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* плавное раскрытие там, где браузер умеет анимировать details */
.faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .32s var(--ease), content-visibility .32s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) {
  .faq__item::details-content { transition: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .faq__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 36px; }
  .faq__a { padding-right: 0; }
}

/* планшет и телефон: заголовок → вопросы → карточка помощи */
@media (max-width: 860px) {
  .faq__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 24px; }
  .faq__aside { display: contents; }
  .faq__head { order: 1; grid-column: 1 / -1; }
  .faq__list { order: 2; grid-column: 1 / -1; }
  .faq__help { order: 3; grid-column: 1 / -1; }
  .faq__help-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .faq__layout { grid-template-columns: minmax(0, 1fr); }
  .faq__help-actions { grid-template-columns: minmax(0, 1fr); }
  .faq__list { padding: 4px 18px; border-radius: var(--r); }
  .faq__q { padding: 18px 0; gap: 14px; }
  .faq__icon { width: 32px; height: 32px; }
  .faq__a { padding-bottom: 20px; }
  .faq__prices li { flex-direction: column; gap: 2px; }
  .faq__price { text-align: left; }
}


/* css/sections/15-contacts.css */
/* ==========================================================================
   15 · Контакты
   ========================================================================== */

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "info map"
    "form form";
  gap: 20px;
}

/* ---------- информация ---------- */
.contacts__info {
  grid-area: info;
  display: grid;
  gap: 22px;
  align-content: start;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  background: var(--paper);
}

.contacts__block { display: grid; gap: 8px; }
.contacts__block + .contacts__block { padding-top: 20px; border-top: 1px solid var(--line); }

.contacts__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-2);
}
.contacts__label svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

.contacts__address {
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.45;
  text-wrap: pretty;
}

.contacts__route {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: .95rem;
}
.contacts__route li { position: relative; padding-left: 16px; }
.contacts__route li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-3);
}

.contacts__hours { display: grid; gap: 2px; margin: 0; }
.contacts__hours > div { display: grid; grid-template-columns: 72px auto; gap: 12px; }
.contacts__hours dt { color: var(--ink-2); }
.contacts__hours dd { font-weight: 500; }

.contacts__block--reach { gap: 10px; }
.contacts__phone {
  justify-self: start;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.contacts__phone:hover { color: var(--blue); }

.contacts__links { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.contacts__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.contacts__link svg { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.contacts__link:hover { color: var(--blue); text-decoration-color: currentColor; }

.contacts__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contacts__actions .btn { flex: 1 1 200px; }

/* ---------- карта: фасад без стороннего iframe до клика ---------- */
.contacts__map {
  grid-area: map;
  position: relative;
  min-height: 420px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--blue-soft);
  isolation: isolate;
}
.contacts__map-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 28px 24px;
  text-align: center;
  color: var(--ink);
  /* условная схема района: сетка кварталов и «улица» у края */
  background-image:
    linear-gradient(90deg, transparent calc(12% - 4px), var(--surface) calc(12% - 4px), var(--surface) calc(12% + 4px), transparent calc(12% + 4px)),
    linear-gradient(color-mix(in srgb, var(--surface) 70%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--surface) 70%, transparent) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
.contacts__map-pin {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--blue) 14%, transparent);
}
.contacts__map-pin svg { width: 30px; height: 30px; }
.contacts__map-place {
  display: grid;
  gap: 2px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.contacts__map-name { font-weight: 700; letter-spacing: -.01em; }
.contacts__map-addr { font-size: var(--fs-small); color: var(--ink-2); }
.contacts__map-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
}
.contacts__map-show { background: var(--surface); }
.contacts__map-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--blue);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.contacts__map-link:hover { text-decoration-thickness: 2px; }
.contacts__map-link svg { width: 16px; height: 16px; }
.contacts__map-note { font-size: var(--fs-xs); color: var(--ink-2); }
.no-js .contacts__map-show, .no-js .contacts__map-note { display: none; }

.contacts__map-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
}
.contacts__map.is-live .contacts__map-fallback { visibility: hidden; }

/* ---------- форма ---------- */
.contacts__form-wrap {
  grid-area: form;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.contacts__form-intro { display: grid; gap: 12px; align-content: start; }
.contacts__form-title {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.contacts__form-alt { padding-top: 12px; border-top: 1px solid var(--line); }
.contacts__inline-btn {
  /* зона нажатия 44px без сдвига строки */
  display: inline-block;
  padding: 11px 0;
  margin-block: -11px;
  color: var(--blue);
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.contacts__inline-btn:hover { text-decoration-thickness: 2px; }

.contacts__form { display: grid; gap: 18px; }
.contacts__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.contacts__field-wide { grid-column: 1 / -1; }
.contacts__form-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 28px;
}
.contacts__form .form-status:empty { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .contacts__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contacts__form-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .contacts__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "info" "map" "form";
  }
  .contacts__map { min-height: 360px; }
}

@media (max-width: 640px) {
  .contacts__map { min-height: 340px; border-radius: var(--r); }
  .contacts__info, .contacts__form-wrap { border-radius: var(--r); }
  .contacts__fields { grid-template-columns: 1fr; }
  .contacts__form-foot { grid-template-columns: 1fr; }
  .contacts__form-foot .btn { width: 100%; }
  .contacts__actions .btn { flex-basis: 100%; }
  .contacts .section-head--row > .btn { justify-self: stretch; }
}


/* css/sections/16-footer.css */
/* ==========================================================================
   16 — футер (тёмный)
   ========================================================================== */

.footer {
  background: var(--ink);
  color: var(--on-ink-2);
  font-size: .94rem;
  line-height: 1.5;
  padding-top: clamp(48px, 6vw, 80px);
}
.footer :focus-visible { outline-color: var(--gold); }
.footer a { transition: color .2s var(--ease); }
.footer a:hover { color: var(--on-ink); }

/* ---------- девиз ---------- */
.footer__motto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 48px;
  padding-bottom: clamp(36px, 4vw, 52px);
  border-bottom: 1px solid var(--ink-line);
}
.footer__latin {
  color: var(--on-ink);
  font-size: clamp(1.8rem, 3.4vw, 2.9rem); /* заметно меньше, чем в hero */
  letter-spacing: .1em;
  line-height: .95;
  white-space: nowrap;
}
.footer__latin span[aria-hidden] { color: var(--on-ink-2); opacity: .5; margin-inline: -.12em; }
.footer__vici { color: var(--orange); }
.footer__translation {
  margin-top: 16px; max-width: 560px;
  font-size: var(--fs-small); color: var(--on-ink-2);
}
.footer__motto-action { display: grid; justify-items: start; gap: 12px; max-width: 320px; }
.footer__motto-note { font-size: var(--fs-xs); color: var(--on-ink-2); line-height: 1.45; }

/* ---------- колонки ---------- */
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.25fr);
  gap: 32px 40px;
  padding-block: clamp(36px, 4vw, 52px);
}
.footer__logo { display: inline-flex; border-radius: 6px; }
.footer__logo img { height: 36px; width: auto; }
.footer__about { margin-top: 18px; max-width: 360px; }

.footer__title {
  margin-bottom: 16px;
  font-size: var(--fs-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--on-ink);
}
.footer__list { display: grid; gap: 10px; }
.footer__list a { display: inline-block; border-radius: 4px; }

.footer__phone {
  display: inline-block; margin-bottom: 14px;
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2;
  color: var(--on-ink); white-space: nowrap; border-radius: 4px;
}
.footer__phone:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.footer__contacts { display: grid; gap: 12px; }
.footer__contacts li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.footer__contacts svg { width: 18px; height: 18px; margin-top: 2px; color: var(--on-ink-2); opacity: .8; }
.footer__contacts a { overflow-wrap: anywhere; border-radius: 4px; }
.footer__contacts .mono, .footer__legal .mono { font-size: .93em; }
.footer__vk {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; margin-top: 1px; border-radius: 5px;
  background: var(--on-ink); color: var(--ink);
  font-size: .56rem; font-weight: 800; line-height: 1; letter-spacing: .02em;
}

/* ---------- нижняя строка ---------- */
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px;
  padding-block: 22px 28px;
  border-top: 1px solid var(--ink-line);
  font-size: var(--fs-xs);
  color: var(--on-ink-2);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__docs { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer__docs a {
  border-radius: 4px;
  text-decoration: underline; text-decoration-color: var(--ink-line);
  text-underline-offset: 3px;
}
.footer__docs a:hover { text-decoration-color: currentColor; }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .footer__motto { grid-template-columns: 1fr; align-items: start; }
  .footer__motto-action { max-width: none; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 20px; }
  .footer__motto-note { max-width: 320px; }
  .footer__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: 36px 28px; }
  .footer__brand {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    column-gap: 40px; align-items: center;
    padding-bottom: 32px; border-bottom: 1px solid var(--ink-line);
  }
  .footer__logo { justify-self: start; }
  .footer__about { margin-top: 0; max-width: 520px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .footer__latin { font-size: clamp(1.4rem, 7vw, 1.8rem); letter-spacing: .08em; }
  .footer__motto-action { grid-template-columns: 1fr; }
  .footer__motto-action .btn { width: 100%; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer__brand { display: block; padding-bottom: 0; border-bottom: 0; }
  .footer__about { margin-top: 18px; }
  /* зоны нажатия не меньше 44px */
  .footer__list { gap: 0; }
  .footer__list a, .footer__docs a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__title { margin-bottom: 4px; }
  .footer__col--contacts .footer__title { margin-bottom: 12px; }
  .footer__docs { gap: 0; }
  .footer__contacts a { display: inline-block; padding-block: 11px; margin-block: -11px; }
  .footer__brand, .footer__col--contacts { grid-column: 1 / -1; }
  .footer__legal { flex-direction: column; }
  .footer__docs { flex-direction: column; }
  /* место под плавающую кнопку чата справа снизу */
  .footer__bottom { padding-bottom: 96px; }
}


/* css/sections/90-modal.css */
/* ==========================================================================
   90 — модальное окно заявки + общие состояния форм заявок
   (ошибки полей, ловушка для ботов, блок «Заявка принята»)
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.modal.is-open .modal__overlay { opacity: .72; }

.modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  /* одна строка, ограниченная max-height диалога: иначе строка растёт по контенту
     и overflow-y у .modal__body не срабатывает (кнопка отправки уезжает за экран) */
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  max-width: 940px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  background: var(--surface);
  border-radius: var(--r-lg);
  /* светлая кромка + глубокая тень: тёмная левая колонка не сливается с затемнённым фоном */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 28px 70px -20px rgba(0, 0, 0, .55);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface); /* форма прокручивается под кнопкой — текст не просвечивает */
  color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.modal__close:hover { background: var(--paper); color: var(--ink); }

/* --- левая колонка: что будет на диагностике --- */
.modal__aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
  padding: 36px 30px 30px;
  background: var(--ink-raise);
  color: var(--on-ink);
  overflow-y: auto;
}
.modal__aside :focus-visible { outline-color: var(--gold); }

.modal__aside-kicker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-line);
}
.modal__aside-kicker .roman { font-size: 2.1rem; color: var(--gold); }
.modal__aside-kicker-ru { font-size: var(--fs-xs); color: var(--on-ink-2); text-transform: uppercase; letter-spacing: .12em; }

.modal__aside-title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }

.modal__facts { display: grid; gap: 16px; list-style: none; padding: 0; }
.modal__fact {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--on-ink-2);
}
.modal__fact b { color: var(--on-ink); font-weight: 600; }
.modal__fact-icon { width: 22px; height: 22px; color: var(--gold); margin-top: 1px; }

.modal__aside-contact {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--ink-line);
  display: grid;
  gap: 4px;
}
.modal__aside-label { font-size: var(--fs-xs); color: var(--on-ink-2); }
.modal__aside-phone { font-size: 1.2rem; font-weight: 700; color: var(--on-ink); letter-spacing: -.01em; }
.modal__aside-phone:hover { text-decoration: underline; text-underline-offset: 3px; }
.modal__aside-hours { font-size: var(--fs-xs); color: var(--on-ink-2); line-height: 1.55; margin-top: 4px; }

/* --- правая колонка: форма --- */
.modal__body {
  min-height: 0;
  padding: 36px 36px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal__head { display: grid; gap: 8px; margin-bottom: 22px; padding-right: 40px; }
.modal__title { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; }
.modal__subtitle { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.5; max-width: 46ch; }

.modal__form { display: grid; gap: 16px; }
.modal__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 14px; }
.modal__field--wide { grid-column: 1 / -1; }
.modal__textarea { min-height: 84px; }
.modal__optional { color: var(--ink-3); font-weight: 400; }
.modal__consent { margin-top: 2px; }
.modal__submit { margin-top: 2px; }
.modal__form .form-status:empty { display: none; }

/* --- планшет: без левой колонки, форма в две колонки --- */
@media (max-width: 900px) {
  .modal__dialog { grid-template-columns: minmax(0, 1fr); max-width: 600px; }
  .modal__aside { display: none; }
  .modal__body { padding: 32px 30px 28px; }
}

/* --- телефон: bottom-sheet на всю ширину --- */
@media (max-width: 640px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal__dialog {
    max-width: none;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    transform: translateY(40px);
  }
  .modal__body { padding: 30px 16px calc(20px + env(safe-area-inset-bottom)); }
  .modal__body::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 2px;
    background: var(--line);
  }
  .modal__close { top: 12px; right: 8px; }
  .modal__head { margin-bottom: 18px; }
  .modal__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal__dialog { transform: none; }
}

/* ==========================================================================
   Общие состояния форм заявок (работают в hero, contacts, модалке, чате)
   ========================================================================== */

/* ловушка для ботов — скрыта визуально и от вспомогательных технологий */
.lead-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-weight: 500;
  line-height: 1.35;
}
.field__error::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checkbox + .field__error { margin-top: -8px; }
.checkbox.is-invalid input { outline: 2px solid var(--danger); outline-offset: 1px; }

.form-status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.form-status.is-error {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--danger);
  color: inherit;
}

/* кнопка в состоянии отправки */
.btn.is-loading { opacity: .85; }
.lead-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: lead-spin .7s linear infinite;
}
@keyframes lead-spin { to { transform: rotate(360deg); } }

/* блок «Заявка принята» — подменяет форму; нейтральный, наследует цвет текста
   (формы стоят и на светлых, и на тёмных подложках) */
.lead-success {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 4px 0;
  color: inherit;
}
.lead-success:focus { outline: none; }
.lead-success:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.lead-success__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--success);
  color: var(--on-ink);
}
.lead-success__icon svg { width: 26px; height: 26px; }
.lead-success__title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.lead-success__text { font-size: var(--fs-small); line-height: 1.55; opacity: .82; max-width: 44ch; }
.lead-success__text a { color: inherit; font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
.lead-success .btn { margin-top: 6px; }

.modal__body:has(.lead-success) .modal__subtitle { display: none; }
.modal .lead-success {
  padding: 28px;
  border-radius: var(--r);
  background: var(--paper);
}

/* ---------- сообщение после отправки формы без JS (#lead-ok / #lead-error, см. send.php) ---------- */
.lead-notice { display: none; }
.lead-notice:target {
  position: fixed; z-index: 120; left: 50%; top: 96px; transform: translateX(-50%);
  display: grid; gap: 6px; width: min(440px, calc(100% - 32px));
  padding: 20px 22px; border-radius: var(--r);
  background: var(--surface); color: var(--ink);
  border-left: 0; box-shadow: var(--shadow);
  outline: 2px solid var(--success); outline-offset: -2px;
}
.lead-notice--error:target { outline-color: var(--danger); }
.lead-notice__title { font-weight: 800; font-size: 1.1rem; }
.lead-notice__text { font-size: var(--fs-small); color: var(--ink-2); }
.lead-notice__text a { color: var(--blue); font-weight: 600; white-space: nowrap; }
.lead-notice__close { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 600; }


/* css/sections/91-chat.css */
/* ==========================================================================
   91 — чат-виджет (плавающая кнопка справа снизу + панель)
   --chat-lift — подъём над cookie-баннером на телефоне (ставит 91-chat.js)
   ========================================================================== */

.chat {
  --chat-edge: 24px;
  --chat-lift: 0px;
  position: fixed;
  right: var(--chat-edge);
  bottom: calc(var(--chat-edge) + var(--chat-lift) + env(safe-area-inset-bottom));
  z-index: 250; /* выше шапки (100) и cookie (90), ниже мобильного меню (300) и модалки (1000) */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
  transition: bottom .25s var(--ease);
}
.chat > * { pointer-events: auto; }
.chat > template { display: none; }

/* --- плавающая кнопка --- */
.chat__fab {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--on-ink);
  font-weight: 600;
  font-size: .98rem;
  box-shadow: var(--shadow);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.chat__fab:hover { background: var(--blue-hover); transform: translateY(-2px); }
.chat__fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 999px; }
.chat__fab-icon { width: 24px; height: 24px; flex: none; }
.chat__fab-icon--close { display: none; }
.chat.is-open .chat__fab-icon--open { display: none; }
.chat.is-open .chat__fab-icon--close { display: block; }
.chat.is-open .chat__fab { padding: 0; width: 56px; justify-content: center; background: var(--ink); }
.chat.is-open .chat__fab-label { display: none; }

/* --- панель --- */
.chat__panel {
  order: 1;
  display: flex;
  flex-direction: column;
  width: 384px;
  height: min(620px, calc(100vh - 140px));
  height: min(620px, calc(100dvh - 140px - var(--chat-lift)));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transform-origin: bottom right;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.chat.is-open .chat__panel { opacity: 1; transform: none; }
.chat__panel:focus { outline: none; }

.chat__head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 16px;
  background: var(--ink);
  color: var(--on-ink);
}
.chat__head :focus-visible { outline-color: var(--gold); }
.chat__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-roman);
  font-size: 1rem;
  letter-spacing: .06em;
  line-height: 1;
}
.chat__title { font-size: 1rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.chat__status { font-size: var(--fs-xs); color: var(--on-ink-2); line-height: 1.35; margin-top: 2px; }
.chat__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--on-ink-2);
  transition: background-color .2s, color .2s;
}
.chat__close:hover { background: var(--ink-raise); color: var(--on-ink); }

/* --- лента: прокручиваемая область = сообщения + быстрые вопросы под ними --- */
.chat__scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px 16px;
  background: var(--paper);
}
.chat__log {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat__msg {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: .92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  animation: chat-in .22s var(--ease);
}
.chat__msg > * + * { margin-top: 8px; }
.chat__msg--bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.chat__msg--user {
  align-self: flex-end;
  background: var(--blue);
  color: var(--on-ink);
  border-bottom-right-radius: 6px;
}
.chat__msg--form { width: 88%; }
.chat__msg--typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.chat__msg--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: chat-dot 1s infinite ease-in-out;
}
.chat__msg--typing span:nth-child(2) { animation-delay: .15s; }
.chat__msg--typing span:nth-child(3) { animation-delay: .3s; }

.chat__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.chat__link::after { content: "→"; text-decoration: none; display: inline-block; }
.chat__link:hover { text-decoration-thickness: 2px; }
.chat__cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--ink); /* как у .btn--primary: белый на оранжевом не проходит по контрасту */
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.2;
  transition: background-color .2s;
}
.chat__cta:hover { background: var(--orange-hover); }

/* мини-форма в ленте */
.chat__form { display: grid; gap: 12px; }
.chat__form .input { min-height: 46px; }
.chat__form .form-status:empty { display: none; }
.chat__msg .lead-success { gap: 8px; }
.chat__msg .lead-success__icon { width: 36px; height: 36px; }
.chat__msg .lead-success__icon svg { width: 20px; height: 20px; }
.chat__msg .lead-success__title { font-size: 1rem; }

/* --- быстрые вопросы (всегда под последним сообщением) --- */
.chat__quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  max-width: 92%;
}
.chat__chip {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  transition: border-color .2s, color .2s, background-color .2s;
}
.chat__chip:hover { background: var(--blue); color: var(--on-ink); }
.chat__chip[aria-pressed="true"] { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue); }
.chat__chip[aria-pressed="true"]:hover { background: var(--blue); border-color: var(--blue); color: var(--on-ink); }

/* --- поле ввода --- */
.chat__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  padding: 12px 12px 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.chat__input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 1rem; /* 16px — без автозума в iOS */
}
.chat__input::placeholder { color: var(--ink-3); }
.chat__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.chat__send {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--on-ink);
  transition: background-color .2s;
}
.chat__send:hover { background: var(--blue-hover); }

/* --- каналы связи --- */
.chat__channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0 12px 12px 16px;
  background: var(--surface);
}
.chat__channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--paper);
  transition: color .2s, background-color .2s;
}
.chat__channel:hover { color: var(--blue); background: var(--blue-soft); }
.chat__channel svg { width: 16px; height: 16px; flex: none; }

/* сенсорные экраны: цели касания не меньше 44px */
@media (pointer: coarse) {
  .chat__chip, .chat__cta, .chat__channel { min-height: 44px; }
}

@keyframes chat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }

/* --- телефон: кнопка-круг, панель почти на весь экран --- */
@media (max-width: 640px) {
  .chat { --chat-edge: 16px; }
  .chat__fab { width: 56px; padding: 0; justify-content: center; }
  .chat__fab-label { display: none; }

  .chat__panel {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    border-radius: 20px;
    transform: translateY(24px);
  }
  .chat.is-open .chat__fab { visibility: hidden; }
  .chat__scroll { padding-inline: 12px; }
  .chat__msg { max-width: 92%; }
  .chat__msg--form { width: 92%; }
  .chat__composer { padding-inline: 12px; }
  .chat__channels { padding: 0 12px calc(12px + env(safe-area-inset-bottom)); }
  body.chat-lock { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .chat__panel { transform: none; }
  .chat__msg { animation: none; }
  .chat__msg--typing span { animation: none; opacity: .6; }
}

@media print { .chat { display: none; } }


/* css/sections/92-cookie.css */
/* ==========================================================================
   92 — cookie-баннер: на десктопе карточка снизу слева (не перекрывает чат справа),
   на телефоне — низкая полоса на всю ширину; чат поднимается над ней (--chat-lift в 91-chat.js)
   ========================================================================== */

.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 14px;
  width: min(680px, calc(100vw - 20px - 240px)); /* справа — место под кнопку чата «Есть вопрос?» */
  padding: 12px 12px 12px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  color: var(--ink-2);
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cookie.is-visible { opacity: 1; transform: none; }
.cookie__icon { width: 22px; height: 22px; color: var(--ink-3); }
.cookie__text { font-size: var(--fs-xs); line-height: 1.45; }
.cookie__text a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; border-radius: 3px; white-space: nowrap; }
.cookie__text a:hover { text-decoration-thickness: 2px; }
.cookie__short { display: none; }
.cookie__actions { display: flex; gap: 8px; }
.cookie__btn { min-height: 38px; padding-inline: 14px; }

@media (max-width: 760px) {
  .cookie {
    left: 0; right: 0; bottom: 0;
    width: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) 16px;
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: 0 -6px 20px -12px rgba(15, 27, 61, .25);
  }
  .cookie__icon, .cookie__long { display: none; }
  .cookie__short { display: inline; }
  .cookie__text { line-height: 1.35; }
  .cookie__actions { gap: 6px; }
  .cookie__btn { min-height: 44px; padding-inline: 11px; font-size: .85rem; }
}

@media (max-width: 380px) {
  .cookie { padding-left: 12px; padding-right: 10px; gap: 8px; max-width: 100vw; }
  .cookie__text { font-size: .72rem; min-width: 0; overflow-wrap: anywhere; }
  .cookie__btn { padding-inline: 9px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie { transform: none; }
}


/* css/pages.css */
/* ==========================================================================
   Юридические страницы: politika.html, soglasie.html, oferta.html
   Все классы — с префиксом legal-. Колонка текста ~760px, слева оглавление.
   ========================================================================== */

/* ---------- шапка документа ---------- */
.legal-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(28px, 4.5vw, 56px) clamp(24px, 3.5vw, 40px);
}
.legal-hero__crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  font-size: var(--fs-small); color: var(--ink-3); line-height: 1.4;
}
.legal-hero__crumbs svg { width: 14px; height: 14px; flex: none; }
.legal-hero__crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.legal-hero__crumbs a:hover { color: var(--blue); text-decoration-color: currentColor; }
.legal-hero__crumbs [aria-current] { color: var(--ink); }

.legal-hero__title {
  max-width: 20ch;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.06;
  text-wrap: balance;
}
.legal-hero__lead {
  max-width: 640px; margin-top: 16px;
  font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); text-wrap: pretty;
}

.legal-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px clamp(32px, 5vw, 80px); align-items: end;
}
.legal-hero__main { min-width: 0; }

/* «Коротко» — выжимка документа для родителя */
.legal-brief {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
}
.legal-brief__title {
  margin-bottom: 12px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.legal-brief__list { display: grid; gap: 10px; }
.legal-brief__list li {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start;
  font-size: .95rem; line-height: 1.45; font-weight: 500;
}
.legal-brief__list svg { width: 20px; height: 20px; color: var(--blue); margin-top: 1px; }
.legal-brief__list .link { overflow-wrap: anywhere; }

.legal-hero__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.legal-hero__meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; }
.legal-hero__meta > div { display: grid; gap: 2px; }
.legal-hero__meta dt { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 500; }
.legal-hero__meta dd { margin: 0; font-size: .95rem; font-weight: 600; color: var(--ink); }
.legal-hero__meta dd.mono { font-weight: 500; }
.legal-hero__print { flex: none; }

.legal-docs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.legal-docs .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- раскладка: оглавление + колонка ---------- */
.legal-body {
  background: var(--surface);
  padding-block: clamp(36px, 5vw, 72px) clamp(56px, 8vw, 112px);
}
.legal-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 760px);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.legal-toc__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  list-style: none;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.legal-toc__summary::-webkit-details-marker { display: none; }
.legal-toc__summary svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.legal-toc[open] .legal-toc__summary svg { transform: rotate(180deg); }

.legal-toc__list { margin-top: 8px; }
.legal-toc__list a {
  display: grid; grid-template-columns: 2em minmax(0, 1fr); align-items: baseline;
  padding: 7px 8px 7px 0;
  border-radius: 6px;
  font-size: .925rem; line-height: 1.35; color: var(--ink-2);
  transition: color .15s;
}
.legal-toc__list a:hover { color: var(--blue); }
.legal-toc__n { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }
.legal-toc__list a:hover .legal-toc__n { color: var(--blue); }

/* ---------- текст документа ---------- */
.legal-doc {
  min-width: 0;
  font-size: 1.0625rem; line-height: 1.7; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.legal-doc__part + .legal-doc__part {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.legal-doc h2 {
  display: flex; align-items: baseline; gap: .55em;
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.2;
  text-wrap: balance;
}
.legal-doc__h-n {
  flex: none; min-width: 1.1em;
  font-family: var(--font-roman); font-weight: 400; font-size: 1.35em; line-height: .8;
  color: var(--blue);
}
.legal-doc > p, .legal-doc__part > p:not([class]) { margin-top: 12px; }
.legal-doc b { font-weight: 600; }

/* пункт с номером: висячий отступ */
.legal-clause {
  display: grid; grid-template-columns: 3.1em minmax(0, 1fr); gap: 0 .4em;
  margin-top: 12px;
  text-wrap: pretty;
}
.legal-clause:first-of-type { margin-top: 0; }
.legal-clause__n {
  padding-top: .18em;
  font-family: var(--font-mono); font-size: .82em; color: var(--ink-3); white-space: nowrap;
}
.legal-clause--plain { display: block; }

/* списки внутри пункта — выровнены по тексту пункта */
.legal-list { margin: 10px 0 0 3.5em; padding: 0; list-style: none; display: grid; gap: 8px; }
.legal-list li { position: relative; padding-left: 1.4em; text-wrap: pretty; }
.legal-list li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }
.legal-list--ordered { counter-reset: legal-li; }
.legal-list--ordered li { counter-increment: legal-li; padding-left: 1.9em; }
.legal-list--ordered li::before { content: counter(legal-li, cyrillic-lower) ")"; font-family: var(--font-mono); font-size: .85em; top: .15em; }

/* определения */
.legal-terms { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.legal-terms > div {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4px 24px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.legal-terms dt { font-weight: 600; line-height: 1.45; }
.legal-terms dd { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }

/* карточки целей обработки */
.legal-purposes { display: grid; gap: 12px; margin: 20px 0; }
.legal-purpose {
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--paper);
  border-radius: var(--r);
}
.legal-purpose__title {
  display: flex; align-items: baseline; gap: 12px;
  font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; line-height: 1.3;
}
.legal-purpose__n { flex: none; font-size: .78rem; font-weight: 500; color: var(--blue); }
.legal-purpose__goal { margin-top: 8px; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.legal-purpose__rows { margin: 16px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.legal-purpose__rows > div {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 2px 20px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: .95rem; line-height: 1.55;
}
.legal-purpose__rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.legal-purpose__rows dt { color: var(--ink-3); font-weight: 500; }
.legal-purpose__rows dd { margin: 0; }

/* таблица реквизитов и сроков */
.legal-req {
  margin-top: 16px;
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
}
.legal-req table { width: 100%; font-size: .975rem; line-height: 1.5; }
.legal-req th, .legal-req td { padding: 13px 18px; text-align: left; vertical-align: top; }
.legal-req tr + tr > * { border-top: 1px solid var(--line); }
.legal-req tbody th { width: 38%; font-weight: 500; color: var(--ink-2); background: var(--paper); }
.legal-req thead th {
  background: var(--paper); border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.legal-req--terms td:first-child { width: 42%; font-weight: 500; }
.legal-req--terms td:last-child { color: var(--ink-2); }
.legal-req .mono { font-size: .92em; }

/* выделенный абзац-преамбула (согласие, оферта) */
.legal-preamble {
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--r);
  background: var(--blue-soft);
  color: var(--ink);
  text-wrap: pretty;
}
.legal-preamble + .legal-doc__part { margin-top: clamp(32px, 4vw, 44px); padding-top: 0; border-top: 0; }

/* подпись документа */
.legal-end {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px 32px; align-items: center;
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  font-size: 1rem; line-height: 1.6;
}
.legal-end__title { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 8px; text-wrap: balance; }
.legal-end__text p:not(.legal-end__title) { color: var(--ink-2); }
.legal-end__docs { display: grid; gap: 8px; }
.legal-end__docs a {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 14px;
  border-radius: 10px; background: var(--paper);
  font-size: .95rem; font-weight: 600; line-height: 1.3;
  transition: color .15s, background-color .15s;
}
.legal-end__docs a:hover { color: var(--blue); background: var(--blue-soft); }
.legal-end__docs svg { width: 20px; height: 20px; flex: none; color: var(--blue); }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .legal-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .legal-hero__print { display: none; }
  .legal-brief { max-width: 640px; }
  .legal-brief__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .legal-doc { max-width: 760px; }
  .legal-aside {
    position: static; max-height: none; overflow: visible;
    max-width: 760px;
    padding: 16px 20px;
    background: var(--paper); border-radius: var(--r);
  }
  .legal-toc__summary { padding-bottom: 0; border-bottom: 0; font-size: .8rem; }
  .legal-toc[open] .legal-toc__summary { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .legal-toc__list { columns: 2; column-gap: 32px; }
  .legal-toc__list li { break-inside: avoid; }
  .legal-end { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .legal-hero__meta { gap: 12px 28px; }
  .legal-brief { padding: 18px; }
  .legal-brief__list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .legal-docs .chip { font-size: .875rem; padding-inline: 12px; }
  .legal-toc__list { columns: 1; }
  .legal-doc { font-size: 1rem; line-height: 1.65; }
  .legal-clause { grid-template-columns: 2.9em minmax(0, 1fr); gap: 0 .3em; }
  .legal-list { margin-left: 0; }
  .legal-terms > div { grid-template-columns: minmax(0, 1fr); }
  .legal-purpose__rows > div { grid-template-columns: minmax(0, 1fr); }
  .legal-req th, .legal-req td { padding: 11px 14px; }
  .legal-req tbody th { width: 40%; }
  .legal-req--stack tbody tr { display: grid; }
  .legal-req--stack tbody th, .legal-req--stack tbody td { width: auto; }
  .legal-req--stack tbody th { padding-bottom: 4px; background: transparent; font-size: var(--fs-xs); color: var(--ink-3); }
  .legal-req--stack tbody td { padding-top: 0; border-top: 0 !important; }
  .legal-req--terms thead { display: none; }
  .legal-req--terms tbody tr { display: grid; }
  .legal-req--terms td:first-child { width: auto; padding-bottom: 2px; }
  .legal-req--terms td:last-child { padding-top: 0; border-top: 0 !important; }
}

/* ---------- печать ---------- */
@media print {
  .skip-link, .header-bar, .header, .footer, .modal, .chat, .cookie,
  .legal-aside, .legal-docs, .legal-hero__print, .legal-hero__crumbs, .legal-end { display: none !important; }
  body { background: #fff; }
  .legal-hero, .legal-body { background: #fff; padding-block: 12px; border: 0; }
  .legal-layout { display: block; }
  .legal-doc { font-size: 11pt; line-height: 1.5; }
  .legal-purpose { background: #fff; border: 1px solid var(--line); break-inside: avoid; }
  .legal-doc h2 { break-after: avoid; }
  .legal-doc a { text-decoration: none; }
}

/* таблица цен в оферте */
.legal-req--prices td:not(:first-child), .legal-req--prices th:not(:first-child) { text-align: right; white-space: nowrap; }
.legal-req--prices td:not(:first-child) { font-weight: 600; }
@media (max-width: 640px) {
  .legal-req--prices thead { display: none; }
  .legal-req--prices tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-req--prices tbody tr + tr { border-top: 1px solid var(--line); }
  .legal-req--prices tbody tr > * { border-top: 0 !important; }
  .legal-req--prices td { padding: 4px 14px 12px; text-align: left !important; }
  .legal-req--prices td:first-child { grid-column: 1 / -1; padding-top: 12px; padding-bottom: 6px; font-weight: 600; }
  .legal-req--prices td:not(:first-child)::before {
    content: attr(data-label); display: block;
    font-size: var(--fs-xs); font-weight: 500; color: var(--ink-3);
  }
}
