@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/inter-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/inter-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/inter-cyrillic-500.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/inter-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/inter-cyrillic-600.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/inter-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/inter-cyrillic-700.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/inter-latin-700.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;
}

/* ═══════════════════════════════════════════════════════════════════
   Юлия Калиниченко — дизайн-система «лимон / синий».
   Гибрид: тёмное — там, где я; светлое — там, где клиент.
   Источник правды: design.md. Не изобретать стили мимо переменных.
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }

:root {
  /* ── светлые блоки ── */
  --bg:       #FFFFFF;
  --ink:      #0D1117;
  --body:     #2B3138;
  --muted:    #6E767F;
  --blue:     #1B44E0;
  --blue-dk:  #193FCE;   /* hover: −8% */
  --line:     #DDE1E6;
  --surface:  #F7F8FA;

  /* ── тёмные блоки ── */
  --dark-bg:       #0D1117;
  --dark-surface:  #1A222C;
  --dark-line:     #242C36;
  --on-dark:       #FFFFFF;
  --on-dark-muted: #A8B0BA;
  --lemon:         #E9FF4F;
  --lemon-dk:      #D6EB49;  /* hover: −8% */
  --blue-light:    #8AA6FF;

  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1120px;
  --gutter: 24px;
}
@media (min-width: 721px) { :root { --gutter: 48px; } }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--body);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ─── Типографика ─── */
h1, .h1 { font-size: 52px; font-weight: 700; line-height: 1.1;  letter-spacing: -.02em;  color: var(--ink); text-wrap: balance; }
h2, .h2 { font-size: 34px; font-weight: 700; line-height: 1.2;  letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
h3, .h3 { font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em;  color: var(--ink); }

.lead  { font-size: 20px; line-height: 1.6; color: var(--body); max-width: 640px; }
.prose { font-size: 17px; line-height: 1.7; color: var(--body); max-width: 640px; }
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose.wide, .lead.wide { max-width: 820px; }
.meta { font-size: 14px; line-height: 1.5; color: var(--muted); }

.eyebrow {
  font-size: 11px; font-weight: 600; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.eyebrow.blue { color: var(--blue); }

/* Лимонная подсветка ключевой фразы. Один раз на сайт — H1 первого экрана, только на тёмном. */
.hl {
  background: var(--lemon); color: var(--ink); padding: 0 .12em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ─── Сетка и ритм ─── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
/* Узкая колонка НЕ центрируется: левый край совпадает с краем контейнера на всех секциях */
.container.narrow > * { max-width: 820px; }

.section { padding: 96px 0; }
.section.surface { background: var(--surface); }
.section.line { border-top: 1px solid var(--line); }

/* Тёмные блоки — full-bleed: фон на всю ширину, контент в контейнере */
.section.dark { background: var(--dark-bg); color: var(--on-dark); padding: 64px 0; }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--on-dark); }
.section.dark .prose { color: var(--on-dark); }
.section.dark .lead,
.section.dark .meta { color: var(--on-dark-muted); }
.section.dark .eyebrow { color: var(--blue-light); }
.section.dark .prose a, .section.dark .lead a { color: var(--blue-light); }

.section__head { margin-bottom: 28px; }
.section__head .lead { margin-top: 16px; }

/* Внутренний ритм тёмных блоков */
.stack > * + * { margin-top: 64px; }
/* Ритм смысловых блоков внутри одной светлой секции */
.blocks > * + * { margin-top: 56px; }

/* ─── Ссылки в тексте ─── */
.prose a, .lead a, .link {
  color: var(--blue); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.prose a:hover, .lead a:hover, .link:hover { text-decoration-thickness: 2px; }

/* ─── Кнопки ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 20px; border-radius: 6px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.3;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dk); }
.btn.secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn.secondary:hover { color: var(--blue-dk); border-color: var(--blue-dk); }
.btn.lemon { background: var(--lemon); color: var(--ink); }
.btn.lemon:hover { background: var(--lemon-dk); }
.btn.ghost-dark { background: transparent; color: var(--on-dark); border-color: var(--on-dark-muted); }
.btn.ghost-dark:hover { border-color: var(--on-dark); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn-note { font-size: 14px; color: var(--muted); }
.section.dark .btn-note, .hero .btn-note, .cta .btn-note { color: var(--on-dark-muted); }

/* ─── Фокус ─── */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}
.section.dark a:focus-visible, .section.dark button:focus-visible,
.hero a:focus-visible, .cta a:focus-visible, .page-head a:focus-visible,
.header a:focus-visible, .footer a:focus-visible { outline-color: var(--lemon); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--lemon); color: var(--ink); padding: 10px 16px;
  font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 6px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ═══ ШАПКА ═══ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--dark-bg); border-bottom: 1px solid var(--dark-line);
}
.header__inner {
  min-height: 60px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.header__logo { font-size: 15px; font-weight: 600; color: var(--on-dark); text-decoration: none; white-space: nowrap; }
.header__nav { display: flex; gap: 18px; list-style: none; margin-left: auto; }
.header__nav a { white-space: nowrap; font-size: 13px; color: var(--on-dark-muted); text-decoration: none; transition: color .15s; }
.header__nav a:hover { color: var(--on-dark); }
.header__cta {
  display: inline-flex; align-items: center; min-height: 36px; padding: 8px 16px;
  background: var(--lemon); color: var(--ink); border-radius: 6px;
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s;
}
.header__cta:hover { background: var(--lemon-dk); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__tg {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 8px 14px; border-radius: 6px;
  border: 1px solid var(--on-dark-muted); color: var(--on-dark);
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: border-color .15s;
}
.header__tg:hover { border-color: var(--on-dark); }

/* ═══ ПЕРВЫЙ ЭКРАН ═══ */
.hero { background: var(--dark-bg); color: var(--on-dark); padding: 72px 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--on-dark); }
.hero .lead { color: var(--on-dark-muted); max-width: 520px; margin-top: 24px; }
.hero .eyebrow { color: var(--blue-light); }
.hero .btn-row { margin-top: 32px; }
.hero__photo { background: var(--dark-surface); border-radius: 10px; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* ═══ ШАПКА ПОДСТРАНИЦЫ ═══ */
.page-head { background: var(--dark-bg); color: var(--on-dark); padding: 64px 0; }
.page-head h1 { color: var(--on-dark); }
.page-head .lead { color: var(--on-dark-muted); margin-top: 20px; }
.page-head .eyebrow { color: var(--blue-light); }
.page-head .btn-row { margin-top: 28px; }
.page-head .quote { margin-top: 20px; border-color: var(--lemon); color: var(--on-dark); }
/* Светлая шапка подстраницы — /kurs/ */
.page-head.light { background: var(--bg); color: var(--body); border-bottom: 1px solid var(--line); }
.page-head.light h1 { color: var(--ink); }
.page-head.light .lead { color: var(--body); }
.page-head.light .quote { border-color: var(--blue); color: var(--ink); }
.page-head.light a:focus-visible { outline-color: var(--blue); }

/* ═══ ЦИТАТА ═══ */
.quote {
  border-left: 2px solid var(--blue); padding-left: 20px; margin: 28px 0;
  font-size: 20px; font-weight: 500; line-height: 1.5; color: var(--ink); max-width: 720px;
}
.section.dark .quote { border-left-color: var(--lemon); color: var(--on-dark); }

/* ═══ ЧИПЫ (компании, без ссылок) ═══ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li {
  font-size: 14px; line-height: 1.4; color: var(--body);
  border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px;
}
.section.dark .chips li { color: var(--on-dark-muted); border-color: var(--dark-line); }

/* ═══ КАРТОЧКИ БОЛЕЙ ═══ */
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.pain { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s; }
.pain:hover { border-color: var(--body); }
.pain__head { margin: 0; font-size: inherit; font-weight: inherit; }
.pain__toggle {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 20px 48px 20px 20px; font: inherit; color: inherit; cursor: pointer; position: relative;
}
.pain__label {
  display: block; font-size: 11px; font-weight: 600; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.pain__quote { display: block; font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.pain__sign {
  position: absolute; right: 18px; top: 18px; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 400; color: var(--muted); line-height: 1;
}
.pain__sign::before { content: "+"; }
.pain__toggle[aria-expanded="true"] .pain__sign::before { content: "\2212"; }
/* Раскрытие через grid-template-rows, не через display:none.
   Без JS все диагнозы видны: скрывает их только скрипт после инициализации. */
.pain__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .2s ease; }
.pain__panel-inner { overflow: hidden; }
.pain__panel-box { margin: 0 20px 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.pain[data-collapsed="true"] .pain__panel { grid-template-rows: 0fr; }
.pain[data-collapsed="true"] .pain__panel-inner { visibility: hidden; }
.pain__panel-label {
  font-size: 11px; font-weight: 600; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.pain__text { font-size: 15px; line-height: 1.6; color: var(--body); }
.pain__link {
  display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 600;
  color: var(--blue); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.pain__link:hover { text-decoration-thickness: 2px; }

/* ═══ ПЛАНКА: бесплатный вход над карточками форматов ═══ */
.plank {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--blue); border-radius: 10px;
  padding: 22px; margin-bottom: 12px;
}
.plank__label { font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.plank__title { font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.plank__text { font-size: 15px; line-height: 1.6; color: var(--body); margin-top: 6px; max-width: 620px; }
.plank__note { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 8px; }

/* ═══ КАРТОЧКА ФОРМАТА РАБОТЫ ═══ */
.fmt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fmt {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 22px; text-decoration: none; transition: border-color .15s;
}
.fmt:hover { border-color: var(--body); }
.fmt__pain { font-size: 13px; line-height: 1.4; color: var(--blue); margin-bottom: 10px; }
.fmt__name { font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.fmt__eng { font-size: 12px; line-height: 1.4; color: var(--muted); margin-top: 4px; }
.fmt__label { font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.fmt__list { list-style: none; margin-top: 10px; }
.fmt__list li { font-size: 14px; line-height: 1.55; color: var(--body); padding-left: 16px; position: relative; }
.fmt__list li + li { margin-top: 6px; }
.fmt__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.fmt__term { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 14px; }
.fmt__result { font-size: 14px; line-height: 1.55; color: var(--body); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.fmt__result b { font-weight: 600; color: var(--ink); }

/* ═══ ОГЛАВЛЕНИЕ ПО КАТЕГОРИЯМ ═══ */
.toc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; }
.toc a {
  display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); text-decoration: none; transition: border-color .15s;
}
.toc a:hover { border-color: var(--blue); }
.toc__num { display: block; font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.toc__name { display: block; font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.toc__sub { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 4px; }

/* ═══ БЛОК СИТУАЦИИ (весь текст открыт, без аккордеона) ═══ */
.cat { margin-top: 56px; padding-top: 24px; border-top: 2px solid var(--ink); scroll-margin-top: 76px; }
.cat__num { font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.cat h2 { margin-top: 10px; }
.cat__sub { font-size: 17px; line-height: 1.6; color: var(--muted); margin-top: 8px; }

.sit { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 76px; }
.sit__num { font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.sit h3 { font-size: 22px; line-height: 1.3; }
.sit__label { font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 20px 0 10px; }
.sit__text { font-size: 16px; line-height: 1.65; color: var(--body); max-width: 720px; }
.sit__list { list-style: none; max-width: 720px; }
.sit__list li { font-size: 15px; line-height: 1.6; color: var(--body); padding-left: 16px; position: relative; }
.sit__list li + li { margin-top: 6px; }
.sit__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.sit__link { display: inline-block; margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.sit__link:hover { text-decoration-thickness: 2px; }

/* ═══ БЛОК СКАЧИВАНИЯ PDF ═══ */
.pdf {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin: 40px 0;
}
.pdf__title { font-size: 17px; font-weight: 600; color: var(--ink); }
.pdf__note { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 4px; }

/* ═══ ПЛАНКА СТАТУСА ═══ */
.badge {
  display: inline-block; font-size: 11px; font-weight: 600; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  border: 1px solid var(--blue); border-radius: 6px; padding: 7px 12px; margin-bottom: 16px;
}
.page-head .badge { color: var(--lemon); border-color: var(--lemon); }
.page-head.light .badge { color: var(--blue); border-color: var(--blue); }

/* ═══ КАРТОЧКИ УСЛУГ ═══ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.svc {
  display: block; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 22px; text-decoration: none; transition: border-color .15s;
}
.svc:hover { border-color: var(--body); }
.svc__pain { font-size: 13px; line-height: 1.4; color: var(--blue); margin-bottom: 10px; }
.svc__name { font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.svc__desc { font-size: 15px; line-height: 1.6; color: var(--body); margin-top: 8px; }
.svc__term { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 12px; }

/* ═══ ЦИФРЫ (только на тёмном) ═══ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat__num { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--lemon); font-variant-numeric: tabular-nums; }
.stat__label { font-size: 14px; line-height: 1.5; color: var(--on-dark-muted); margin-top: 8px; }

/* ═══ КАРТОЧКИ НА ТЁМНОМ ═══ */
.dark-card { background: var(--dark-surface); border: 1px solid var(--dark-line); border-radius: 10px; padding: 20px; }
.dark-card__title { font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--on-dark); margin-bottom: 8px; }
.dark-card__text { font-size: 15px; line-height: 1.6; color: var(--on-dark-muted); }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* ═══ ДВУХКОЛОНОЧНЫЙ БЛОК ═══ */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.split__photo { background: var(--dark-surface); border-radius: 10px; overflow: hidden; }
.split__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* ═══ СПИСКИ-СТРОКИ ═══ */
.rows { list-style: none; }
.rows li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.7; color: var(--body); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows strong { color: var(--ink); font-weight: 600; }
.section.dark .rows li { border-color: var(--dark-line); color: var(--on-dark); }
.section.dark .rows strong { color: var(--on-dark); }

/* ═══ ШАГИ ═══ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: var(--bg); }
.step__num { font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.step__title { font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.step__text { font-size: 15px; line-height: 1.6; color: var(--body); margin-top: 8px; }

/* ═══ ПРОГРАММА КУРСА ═══ */
.week + .week { margin-top: 32px; }
.week__title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin-bottom: 4px; }
.week__list { list-style: none; }
.week__list li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--body); }
.week:last-child .week__list li:last-child { border-bottom: 1px solid var(--line); }
.week__list strong { color: var(--ink); font-weight: 600; }

/* ═══ FAQ ═══ */
.faq { display: grid; gap: 8px; }
.faq__item { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); transition: border-color .15s; }
.faq__item:hover { border-color: var(--body); }
.faq__q { margin: 0; }
.faq__toggle {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 18px 48px 18px 20px; font-family: inherit; color: var(--ink);
  font-size: 17px; font-weight: 600; line-height: 1.45; cursor: pointer; position: relative;
}
.faq__sign {
  position: absolute; right: 18px; top: 17px; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 400; color: var(--muted); line-height: 1;
}
.faq__sign::before { content: "+"; }
.faq__toggle[aria-expanded="true"] .faq__sign::before { content: "\2212"; }
.faq__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .2s ease; }
.faq__panel-inner { overflow: hidden; }
.faq__panel-box { margin: 0 20px 20px; }
.faq__item[data-collapsed="true"] .faq__panel { grid-template-rows: 0fr; }
.faq__item[data-collapsed="true"] .faq__panel-inner { visibility: hidden; }
.faq__panel p { font-size: 15px; line-height: 1.65; color: var(--body); max-width: 720px; }

/* ═══ КОНТАКТЫ (на тёмном) ═══ */
.contacts { display: grid; gap: 8px; }
.contact {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 16px 20px; border-radius: 10px; text-decoration: none;
  background: var(--dark-surface); border: 1px solid var(--dark-line); transition: border-color .15s;
}
.contact:hover { border-color: var(--on-dark-muted); }
.contact__platform { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 6px; }
.contact__handle { display: block; font-size: 17px; font-weight: 600; color: var(--on-dark); }
.contact__arrow { color: var(--on-dark-muted); font-size: 17px; }

/* ═══ БАННЕР ═══ */
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 22px;
}
.banner__title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.banner__sub { font-size: 15px; line-height: 1.6; color: var(--body); margin-top: 4px; }

/* ═══ ФИНАЛЬНЫЙ ПРИЗЫВ ═══ */
.cta { background: var(--dark-bg); color: var(--on-dark); padding: 56px 0; }
.cta h2 { font-size: 26px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--on-dark); }
.cta p { font-size: 14px; line-height: 1.6; color: var(--on-dark-muted); margin-top: 12px; max-width: 680px; }
.cta .btn-row { margin-top: 28px; }
.cta .eyebrow { color: var(--blue-light); }
.cta a:not(.btn) { color: var(--blue-light); }

/* ═══ ФОРМА ПРЕДЗАПИСИ ═══ */
.form { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.form h3 { margin-bottom: 0; }
.form__fields { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.form__fields input {
  flex: 1 1 220px; min-height: 44px; padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  font-family: inherit; font-size: 15px; color: var(--ink);
}
.form__fields input::placeholder { color: var(--muted); }
.form__fields input:focus { border-color: var(--blue); }
.form__note { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 14px; }

/* ═══ СМЕЖНЫЕ УСЛУГИ ═══ */
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.related a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  font-size: 14px; color: var(--body); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.related a:hover { border-color: var(--blue); color: var(--blue); }

/* ═══ ОКНО ВЫБОРА КАНАЛА СВЯЗИ ═══ */
.chooser {
  margin: auto;                 /* глобальный ресет margin:0 ломает центрирование dialog */
  width: calc(100% - 32px); max-width: 420px; padding: 0;
  background: var(--bg); color: var(--body);
  border: 1px solid var(--line); border-radius: 10px;
}
.chooser::backdrop { background: rgba(13, 17, 23, .6); }
.chooser__box { padding: 24px; }
.chooser__title { font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.chooser__sub { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 6px; }
.chooser__list { display: grid; gap: 8px; margin-top: 20px; }
.chooser__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 14px 16px; text-decoration: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s;
}
.chooser__row:hover { border-color: var(--blue); }
.chooser__name { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.chooser__handle { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.chooser__arrow { color: var(--blue); font-size: 17px; }
.chooser__close {
  width: 100%; min-height: 44px; margin-top: 16px; padding: 10px 16px;
  font-family: inherit; font-size: 15px; color: var(--body); cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 6px;
  transition: border-color .15s;
}
.chooser__close:hover { border-color: var(--body); }

/* ═══ ФУТЕР ═══ */
.footer { background: var(--dark-bg); color: var(--on-dark-muted); border-top: 1px solid var(--dark-line); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--blue-light); font-size: 14px; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 2px; }
.footer a.footer__brand { color: var(--on-dark); font-size: 15px; font-weight: 600; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__updated { font-size: 14px; color: var(--on-dark-muted); }

/* ═══ МОБИЛЬНАЯ ВЕРСИЯ ═══ */
/* Шесть пунктов меню и две кнопки перестают помещаться раньше мобильной точки.
   Навигация в этом диапазоне живёт в футере. */
@media (max-width: 1020px) { .header__nav { display: none; } }
@media (max-width: 980px) and (min-width: 721px) {
  .svc-grid, .card-grid-3, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  h1, .h1 { font-size: 34px; }
  h2, .h2 { font-size: 26px; }
  .lead { font-size: 17px; }

  .section { padding: 56px 0; }
  .section.dark { padding: 40px 0; }
  .stack > * + * { margin-top: 40px; }
  .blocks > * + * { margin-top: 40px; }

  .hero { padding: 40px 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__text { order: 1; }
  .hero__photo { order: 2; }          /* фото уходит ПОД текст */
  .page-head { padding: 40px 0; }
  .cta { padding: 40px 0; }

  .pain-grid, .svc-grid, .steps, .card-grid-3, .card-grid-2, .split,
  .fmt-grid, .toc { grid-template-columns: 1fr; }
  .split { gap: 28px; }
  .split__photo { order: 2; }        /* фото под текст — первым читается заголовок */
  .stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat__num { font-size: 34px; }

  .header__tg-label { display: none; }
  .header__tg { padding: 8px 11px; }
  .header__logo { font-size: 14px; }
  .sit h3 { font-size: 20px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ═══ COOKIE-БАННЕР ═══ */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  background: var(--dark-bg); border-top: 1px solid var(--dark-line);
  padding: 16px 24px;
}
.cookie-bar__text { color: var(--on-dark-muted); font-size: 14px; line-height: 1.5; margin: 0; max-width: 640px; }
.cookie-bar__text a { color: var(--blue-light); }
.cookie-bar__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cookie-bar__decline {
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--on-dark-muted);
  padding: 11px 4px; min-height: 44px;
}
.cookie-bar__decline:hover { color: var(--on-dark); }

@media (max-width: 720px) {
  .cookie-bar { padding: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
