/* ============================================================
   style.css — раскладка и компоненты.
   Цвета только через var(--color-*) из tokens.css. Hex здесь запрещён.
   ============================================================ */

/* ---------- Шрифты: собственные файлы (SIL OFL, fonts/OFL.txt), только кириллица и латиница ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/manrope-cyrillic-700.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/manrope-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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/fonts/manrope-cyrillic-800.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/fonts/manrope-latin-800.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; font-display: swap;
  src: url("/fonts/onest-cyrillic-400.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; font-display: swap;
  src: url("/fonts/onest-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: "Onest"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/onest-cyrillic-500.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: 500; font-display: swap;
  src: url("/fonts/onest-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: "Onest"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/onest-cyrillic-600.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: 600; font-display: swap;
  src: url("/fonts/onest-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; }

/* Знак ₽ (U+20BD) из latin-ext: файл загружается только на страницах, где есть ₽ */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/fonts/manrope-latin-ext-800.woff2") format("woff2"); unicode-range: U+20BD; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  letter-spacing: -0.015em;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 .5em;
}
h1 { font-size: var(--fs-h1); max-width: 20ch; }
h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--color-blue); text-underline-offset: 3px; }
a:hover { color: var(--color-navy); }

:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 2px; }
.site-header :focus-visible, .section--dark :focus-visible, .site-footer :focus-visible {
  outline-color: var(--color-accent);
}

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  padding: 12px 16px; background: var(--color-bg); color: var(--color-navy);
}
.skip-link:focus { top: 8px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.muted { color: var(--color-text-muted); }
.small { font-size: var(--fs-small); }
.mt { margin-top: 1.5rem; }

.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon--sm { width: 18px; height: 18px; }

/* ---------- Контейнер и секции ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: var(--space-section) 0; background: var(--color-bg); }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-navy); color: var(--color-on-dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--color-on-dark); }

.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.eyebrow {
  font-size: var(--fs-small); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 1rem;
}
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--color-text-muted); max-width: 60ch; }
.lede-sm { font-size: clamp(17px, 1.3vw, 20px); }
.prose { max-width: 760px; }
.subhead { margin-top: 3rem; }
.stack { display: grid; gap: 24px; align-content: start; }

/* ---------- Сетки ---------- */
.grid { display: grid; gap: 20px; }
.grid--2, .grid--3, .grid--4, .grid--contacts { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--contacts { grid-template-columns: 1.4fr 1fr; gap: 40px; }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--2 { gap: 40px; }
}
.grid--center { align-items: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--cta-height); padding: 0 24px;
  border-radius: var(--radius-btn); border: 1.5px solid transparent;
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--color-accent); color: var(--color-navy); }
.btn--primary:hover { background: var(--color-accent-hover); color: var(--color-navy); }
.btn--outline { background: transparent; color: var(--color-blue); border-color: var(--color-blue); }
.btn--outline:hover { background: var(--color-bg-alt); color: var(--color-navy); border-color: var(--color-navy); }
.btn--outline-dark { background: transparent; color: var(--color-on-dark); border-color: var(--color-on-dark-border); }
.btn--outline-dark:hover { background: var(--color-on-dark-hover-bg); color: var(--color-on-dark); border-color: var(--color-on-dark); }

/* ---------- Шапка ---------- */
.site-header { background: var(--color-navy); color: var(--color-on-dark); position: sticky; top: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.logo {
  display: inline-flex; align-items: center; min-height: var(--tap-min);
  text-decoration: none; color: var(--color-on-dark); flex-shrink: 0;
}
.logo:hover { color: var(--color-on-dark); }
/* Логотип 310:100: 40px на десктопе, 36px на мобильном (ширина 112px — минимальная) */
.logo svg { display: block; height: 36px; width: auto; min-width: 112px; }
@media (min-width: 768px) { .logo svg { height: 40px; } }
.logo--footer svg { height: 48px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap-min); height: var(--tap-min); padding: 0;
  background: transparent; color: var(--color-on-dark); border: 0; border-radius: 8px; cursor: pointer;
}
.nav-toggle:hover { background: var(--color-on-dark-hover-bg); }
.site-nav { display: none; }
.site-nav ul { list-style: none; }
.site-nav a:not(.btn) {
  display: flex; align-items: center; min-height: var(--tap-min); padding: 0 10px;
  color: var(--color-on-dark-muted); text-decoration: none; font-weight: 500; border-radius: 8px;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--color-on-dark); }
.site-nav a:not(.btn):hover { background: var(--color-on-dark-hover-bg); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.site-nav .btn { min-height: var(--tap-min); }

/* Мобильное меню */
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--color-navy); padding: 8px var(--gutter) 24px;
  border-top: 1px solid var(--color-on-dark-divider);
}
.site-nav.is-open ul { display: grid; margin-bottom: 16px; }
.site-nav.is-open .btn { width: 100%; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: flex; align-items: center; gap: 16px; position: static; padding: 0; border: 0; }
  .site-nav ul, .site-nav.is-open ul { display: flex; gap: 2px; margin: 0; }
  .site-nav a:not(.btn) { font-size: 15px; padding: 0 8px; }
  .site-nav .btn { padding: 0 18px; font-size: 15px; }
}

/* ---------- Хлебные крошки и заголовок страницы ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: 1.25rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; }
.breadcrumbs a { color: var(--color-blue); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); background: var(--color-bg); }
.hero h1 { margin-bottom: .4em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
@media (max-width: 479px) { .hero__actions .btn { width: 100%; } }

/* ---------- Карточки ---------- */
.card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 28px;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--color-text-muted); }
.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s; }
.card--link:hover { border-color: var(--color-blue); color: inherit; }
.card--link:hover h3 { color: var(--color-blue); }
.card__more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--color-blue); font-weight: 600; }

.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 20px;
  background: var(--color-teal-soft); color: var(--color-teal);
}
.icon-box .icon { width: 28px; height: 28px; }
.icon-box--sm { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.icon-box--sm .icon { width: 22px; height: 22px; }

/* ---------- Списки ---------- */
.check-list, .x-list { list-style: none; display: grid; gap: 12px; }
.check-list li, .x-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--color-teal); margin-top: 4px; }
.x-list .icon { color: var(--color-navy); margin-top: 4px; }

/* ---------- Шаги ---------- */
.steps { list-style: none; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.step {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-teal); border-radius: var(--radius-card); padding: 24px;
}
.section--alt .step { background: var(--color-bg); }
.step__num { display: block; font: 800 44px/1 var(--font-heading); letter-spacing: -0.02em; color: var(--color-teal); margin-bottom: 16px; }
.step__title { font-size: var(--fs-h3); }
.step p { color: var(--color-text-muted); }

/* ---------- Цифры на тёмном фоне ---------- */
.stats { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat__num { display: block; font: 800 clamp(40px, 5vw, 56px)/1 var(--font-heading); letter-spacing: -0.02em; color: var(--color-accent); margin-bottom: 10px; }
.stat__label { color: var(--color-on-dark-muted); }

/* ---------- CTA-блок ---------- */
.cta { display: grid; gap: 24px; align-items: center; }
@media (min-width: 768px) { .cta { grid-template-columns: 1fr auto; gap: 48px; } }
.cta p { max-width: 60ch; }

/* ---------- Бейджи и теги ---------- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  background: var(--color-bg-alt); color: var(--color-navy);
}
.badge--outline { background: transparent; border: 1px solid var(--color-blue); color: var(--color-blue); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.tag {
  padding: 6px 12px; border-radius: 8px; font-size: var(--fs-small);
  background: var(--color-bg-alt); color: var(--color-text); border: 1px solid var(--color-border);
}

/* ---------- Команда, кейсы ---------- */
.person h3 { margin-bottom: .2em; }
.person__zh { font-size: 18px; color: var(--color-text); margin-bottom: .5em; }
.case__dl, .requisites { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.case__dl dt, .requisites dt { color: var(--color-text-muted); }
.case__dl dd, .requisites dd { margin: 0; }
.requisites { grid-template-columns: 1fr; gap: 2px; }
.requisites dd { margin-bottom: 12px; }

/* ---------- Блок исключений ---------- */
.notice {
  border: 1px solid var(--color-border); border-left: 4px solid var(--color-navy);
  border-radius: var(--radius-card); padding: clamp(24px, 4vw, 40px); background: var(--color-bg-alt);
  max-width: 760px;
}
.notice h2 { font-size: clamp(24px, 2.6vw, 32px); }

/* ---------- Таблица ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; }
.table th, .table td { padding: 16px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.table thead th { font-size: var(--fs-small); color: var(--color-text-muted); font-weight: 600; background: var(--color-bg-alt); }
.table tbody th { font-family: var(--font-heading); color: var(--color-navy); white-space: nowrap; }
@media (max-width: 767px) {
  .table:not(.table--scroll) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table:not(.table--scroll), .table:not(.table--scroll) tbody, .table:not(.table--scroll) tr,
  .table:not(.table--scroll) th, .table:not(.table--scroll) td { display: block; }
  .table:not(.table--scroll) tr { border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 8px 0; margin-bottom: 16px; }
  .table:not(.table--scroll) th, .table:not(.table--scroll) td { border: 0; padding: 8px 20px; }
  .table:not(.table--scroll) tbody th { font-size: 18px; white-space: normal; }
  .table:not(.table--scroll) td::before { content: attr(data-label); display: block; font-size: var(--fs-small); color: var(--color-text-muted); }
}

/* Числовые таблицы: прокрутка внутри блока, первый столбец закреплён */
.table-wrap--scroll { overflow: visible; position: relative; }
.table-scroll {
  overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-card);
  -webkit-overflow-scrolling: touch;
}
.table-scroll:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 2px; }
.table--scroll { min-width: 640px; }
.table--scroll th, .table--scroll td { white-space: nowrap; padding: 12px 16px; font-variant-numeric: tabular-nums; }
.table--scroll tr:last-child th, .table--scroll tr:last-child td { border-bottom: 0; }
.table--scroll thead th { white-space: normal; min-width: 7em; vertical-align: bottom; }
@media (max-width: 767px) {
  .table--scroll tbody th, .table--scroll thead th:first-child { white-space: normal; min-width: 7.5em; max-width: 9em; }
}
.table--scroll tbody th, .table--scroll thead th:first-child {
  position: sticky; left: 0; z-index: 1; background: var(--color-bg);
  border-right: 1px solid var(--color-border);
}
.table--scroll thead th:first-child { background: var(--color-bg-alt); }
.table-hint { display: none; margin: 0 0 8px; text-align: right; font-size: var(--fs-small); color: var(--color-text-muted); }
.table-wrap--scroll.is-scrollable .table-hint { display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-bg); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font: 700 18px/1.35 var(--font-heading); color: var(--color-navy); min-height: var(--tap-min);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--color-blue);
}
.faq__item[open] summary::after { content: "−"; }
.faq__answer { padding: 0 24px 20px; color: var(--color-text-muted); }

/* ---------- Формы (зарезервировано для формы: сейчас на сайте форм нет, стили — часть дизайн-системы) ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: var(--field-height); padding: 12px 14px;
  font: inherit; color: var(--color-text); background: var(--color-bg-alt);
  border: 1.5px solid var(--color-text-muted); border-radius: var(--radius-field);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--color-blue); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 2px; }
.field [aria-invalid="true"] { border-width: 2px; }
.field__error { display: flex; gap: 8px; align-items: center; font-size: var(--fs-small); color: var(--color-text); margin: 0; }
.field__error[hidden] { display: none; }
.form .btn { justify-self: start; }
@media (max-width: 479px) { .form .btn { justify-self: stretch; } }
.form__status:empty { display: none; }

.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
@media (max-width: 479px) { .contact-actions .btn { width: 100%; } }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.anchor { scroll-margin-top: 96px; }

/* ---------- Футер ---------- */
.site-footer { background: var(--color-navy); color: var(--color-on-dark-muted); padding: 64px 0 32px; font-size: 15px; border-top: 1px solid var(--color-on-dark-divider); }
.site-footer a { color: var(--color-on-dark-muted); }
.site-footer a:hover { color: var(--color-on-dark); }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand .logo { margin-bottom: 16px; }
.slogan { font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 1.35; color: var(--color-on-dark-muted); margin-bottom: 12px; }
.slogan__accent { display: block; font-weight: 800; color: var(--color-accent); }
.footer__about { font-size: var(--fs-small); color: var(--color-on-dark-muted); }
.footer__title { font: 700 14px/1.2 var(--font-heading); letter-spacing: .06em; text-transform: uppercase; color: var(--color-on-dark); margin-bottom: 16px; }
.footer__list { list-style: none; display: grid; gap: 4px; }
.footer__list a { display: inline-flex; align-items: center; min-height: 32px; }
.footer__tg { gap: 8px; }
.footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 32px; }
.footer__bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--color-on-dark-divider);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: var(--fs-small);
}

/* ---------- Отрасли: теги на серой секции, отказ ---------- */
.section--alt .tag { background: var(--color-bg); }
.no-work { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--color-navy); margin-top: 1.25rem; }
.no-work .icon { margin-top: 4px; }

/* ---------- Статьи ---------- */
.article > * { max-width: 760px; }
.article > .table-wrap, .article > .phases { max-width: none; }
.article h2 { margin-top: 2.5em; scroll-margin-top: 96px; }
.article h3 { margin-top: 1.75em; scroll-margin-top: 96px; }
.article [id] { scroll-margin-top: 96px; }
.article .table-wrap { margin: 1.5rem 0; }
.article .check-list, .article .plain-list, .article .faq, .article .facts, .article .steps { margin: 1rem 0 1.5rem; }
.plain-list { padding-left: 1.25em; display: grid; gap: 8px; }
.article__updated { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: var(--fs-small); }

.toc {
  background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-card);
  padding: 20px 24px; margin: 2rem 0;
}
.toc__title { font: 700 16px/1.3 var(--font-heading); color: var(--color-navy); margin-bottom: .75rem; }
.toc ol { padding-left: 1.25em; display: grid; gap: 4px; }
.toc a { display: inline-block; padding: 4px 0; }

.facts { display: grid; gap: 4px 24px; margin: 0; }
.facts dt { font-weight: 600; color: var(--color-navy); }
.facts dd { margin: 0 0 12px; }
@media (min-width: 768px) {
  .facts { grid-template-columns: 220px 1fr; }
  .facts dd { margin: 0 0 8px; }
}

.stage { border-top: 1px solid var(--color-border); padding-top: 8px; margin-top: 2rem; }
.stage h3 { display: flex; gap: 12px; align-items: baseline; margin-top: .5em; }
.stage__num { font: 800 20px/1 var(--font-heading); color: var(--color-teal); min-width: 2.5ch; }
.stage__more { font-size: var(--fs-small); }

.phases { display: grid; gap: 32px; margin: 1.5rem 0 2rem; }
.phase__title { margin: 0 0 12px; font-size: 18px; color: var(--color-text-muted); }
@media (min-width: 1024px) { .phases .steps { grid-template-columns: repeat(3, 1fr); } }
.step__title a { color: var(--color-navy); text-decoration: none; }
.step__title a:hover { color: var(--color-blue); text-decoration: underline; }
h4.step__title { font: 700 18px/1.25 var(--font-heading); color: var(--color-navy); margin: 0 0 .4em; }

.read-more { margin-top: 2.5rem; max-width: 760px; }
.read-more ul { padding-left: 1.25em; display: grid; gap: 6px; }

.next-steps h2 { scroll-margin-top: 96px; }
.next-steps p { max-width: 60ch; }
.next-steps__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
@media (max-width: 479px) { .next-steps__actions .btn { width: 100%; } }

/* ---------- Юридические документы ---------- */
.doc-edition { color: var(--color-text-muted); font-size: var(--fs-small); margin-bottom: 1.5rem; }
.legal h2 { font-size: clamp(22px, 2.4vw, 28px); }
.legal .toc ol { list-style: none; padding-left: 0; }

/* ---------- Плашки в статьях ---------- */
.note {
  border: 1px solid var(--color-border); border-left: 4px solid var(--color-blue);
  border-radius: var(--radius-field); background: var(--color-bg-alt);
  padding: 14px 18px; margin: 1.5rem 0; font-size: var(--fs-small); color: var(--color-text);
}
.note--disclaimer { border-left-color: var(--color-text-muted); }

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