/* ---------- fonts.css ---------- */
/* Локальные шрифты, кириллица + латиница. Внешних подключений нет. */
@font-face{
  font-family:'Manrope';
  font-style:normal;
  font-weight:400 800;
  font-display:swap;
  src:url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face{
  font-family:'Manrope';
  font-style:normal;
  font-weight:400 800;
  font-display:swap;
  src:url('../fonts/manrope-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 700;
  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 700;
  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;
}

/* ---------- tokens.css ---------- */
/* ==========================================================================
   Эверест. Токены дизайн-системы «Вершина» (V5)
   Одна тема (светлая с тёмно-синими акцентными секциями), один акцент,
   один диапазон скруглений 12–16 px, одна шкала вертикальных отступов.
   ========================================================================== */

:root {
  /* --- Цвет: тёмно-синий каркас --- */
  --navy-900: #0E1B2E;  /* шапка, первый экран, подвал */
  --navy-800: #132540;  /* вторая тёмная плоскость, карточки на тёмном */
  --navy-700: #1B3252;  /* линии на тёмном */
  --navy-600: #24405F;  /* линии на тёмном, посветлее */

  /* --- Цвет: светлое тело --- */
  --bg:        #F4F6F8;
  --bg-sunk:   #EDF1F5;  /* секция чуть глубже фона */
  --surface:   #FFFFFF;
  --line:      #DFE5EC;
  --line-soft: #EAEFF4;

  /* --- Текст --- */
  --ink:        #0F1720;
  --muted:      #5D6B7A;
  --ink-on-dark:   #FFFFFF;
  --muted-on-dark: #A7B6C7;

  /* --- Акцент. Один тон, разные роли, все проходят WCAG AA ---
     accent        заливки, рамки, знак-гора
     accent-ink    текст и ссылки на светлом  (5,2:1 к белому)
     accent-on-dark текст и иконки на тёмно-синем (9,3:1)
     accent-hover  наведение на заливке, светлее (контраст к navy 5,8:1)
     accent-press  нажатие, из палитры ТЗ                                   */
  --accent:         #19A6A0;
  --accent-ink:     #0F7A75;
  --accent-on-dark: #4FD1CA;
  --accent-hover:   #15B3AC;
  --accent-press:   #128D88;
  --accent-soft:    #E4F4F3;
  --accent-soft-dk: rgba(79, 209, 202, .14);
  --accent-line:    #B7E2DF;  /* рамка на светлой акцентной подложке */

  /* --- Состояния --- */
  --danger:      #C2384A;
  --danger-soft: #FBECEE;
  --danger-line: #F1CDD3;
  --focus:       #19A6A0;

  /* --- Скругления. Диапазон 12–16 px.
     Поверхности 16, элементы управления 12.                                */
  --r-surface: 16px;
  --r-control: 12px;

  /* --- Тени. Тонированы в синий, без чистого чёрного --- */
  --shadow-sm: 0 1px 2px rgba(14, 27, 46, .06);
  --shadow-md: 0 6px 20px rgba(14, 27, 46, .07);
  --shadow-lg: 0 20px 50px rgba(14, 27, 46, .12);

  /* --- Типографика --- */
  --font-head: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-text: 'Onest', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* --- Ритм. Шкала вертикальных отступов между секциями.
     Десктоп 96, планшет 64, мобильный 48. Нигде не превышать.              */
  --section-y: 96px;
  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap:    20px;
  --gap-md: 28px;
  --gap-lg: 40px;
  --gap-xl: 56px;

  /* --- Сетка --- */
  --container: 1240px;
  --pad: 32px;

  /* --- Движение. Короткое, осмысленное, без бесконечных циклов --- */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --t-press: 120ms;
  --t-hover: 180ms;
  --t-panel: 220ms;
  --t-reveal: 480ms;
}

@media (max-width: 1024px) {
  :root { --section-y: 64px; --pad: 24px; }
}
@media (max-width: 768px) {
  :root { --section-y: 48px; --pad: 20px; }
}

/* ---------- base.css ---------- */
/* ==========================================================================
   Эверест. Сброс, типографика, сетка, утилиты
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Заголовки. Трекинг зависит от кегля: крупный текст тянем плотнее --- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
}
h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.028em; }
h2 { font-size: clamp(26px, 2.9vw, 38px); line-height: 1.12; letter-spacing: -.022em; font-weight: 700; }
h3 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.25; letter-spacing: -.012em; font-weight: 700; }
h4 { font-size: 17px; line-height: 1.35; letter-spacing: -.006em; font-weight: 700; }

/* --- Сетка --- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
/* --section-y это зазор между соседними секциями: 96 / 64 / 48.
   Каждая секция берёт половину сверху и снизу, поэтому шкала не превышается. */
.section { padding-block: calc(var(--section-y) / 2); }
.section--tight { padding-block: calc(var(--section-y) / 3); }

/* Тёмные акцентные плоскости внутри светлой темы */
.section--navy {
  background: var(--navy-900);
  color: var(--ink-on-dark);
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--ink-on-dark); }
/* Светлая карточка на тёмной плоскости остаётся светлой карточкой */
.section--navy .card:not(.card--dark) h3,
.section--navy .card:not(.card--dark) h4 { color: var(--ink); }
.section--navy .card:not(.card--dark) p { color: var(--muted); }
.section--navy .card:not(.card--dark) .ic-tile { background: var(--accent-soft); color: var(--accent-ink); }
.section--navy .lead, .section--navy .muted { color: var(--muted-on-dark); }
.section--sunk { background: var(--bg-sunk); }

/* --- Текстовые утилиты --- */
.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}
.muted { color: var(--muted); }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }
.nowrap { white-space: nowrap; }

.section-head { margin-bottom: var(--gap-lg); }
.section-head h2 + .lead { margin-top: 14px; }

/* Единственная разновидность надзаголовка на сайте, используется точечно */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.section--navy .kicker { color: var(--accent-on-dark); }

/* --- Иконки серии --- */
.ic { width: 24px; height: 24px; flex: 0 0 auto; color: var(--accent-ink); }
.section--navy .ic { color: var(--accent-on-dark); }
.ic--lg { width: 32px; height: 32px; }

/* Плитка под иконку */
.ic-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-control);
  background: var(--accent-soft);
  color: var(--accent-ink);
  flex: 0 0 auto;
}
.section--navy .ic-tile { background: var(--accent-soft-dk); color: var(--accent-on-dark); }

/* --- Появление секций при скролле: один раз, только прозрачность и сдвиг --- */
/* Скрываем только если JS работает: иначе секции просто видны сразу */
.js .reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal.is-in { transition: none; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--surface); color: var(--ink);
  padding: 12px 18px; border-radius: var(--r-control); box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 16px; }

/* ---------- components.css ---------- */
/* ==========================================================================
   Эверест. Компоненты: шапка, подвал, кнопки, карточки, формы, аккордеон
   ========================================================================== */

/* --------------------------------------------------------------- Кнопки -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--r-control);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.005em;
  background: var(--accent);
  color: var(--navy-900);          /* 5,8:1 на бирюзе */
  border: 1px solid transparent;
  transition: background var(--t-hover) var(--ease-out),
              color var(--t-hover) var(--ease-out),
              border-color var(--t-hover) var(--ease-out),
              box-shadow var(--t-hover) var(--ease-out),
              transform var(--t-press) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-hover); }
}
.btn:active { background: var(--accent-press); transform: scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 17px; }
.btn--wide { width: 100%; }

/* Вторичная кнопка на светлом: контур в акценте, чтобы читалась как действие */
.btn--ghost {
  background: transparent;
  color: var(--accent-ink);
  border: 1.5px solid var(--accent);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent-press); color: var(--accent-press); }
}
.btn--ghost:active { background: var(--accent-soft); transform: scale(.97); }
.btn--ghost[aria-disabled="true"] {
  border-color: var(--line); color: var(--muted); background: transparent;
}

/* Вторичная кнопка на тёмно-синем */
.btn--on-dark {
  background: transparent;
  color: var(--ink-on-dark);
  border-color: var(--navy-600);
}
@media (hover: hover) and (pointer: fine) {
  .btn--on-dark:hover { background: rgba(255, 255, 255, .07); border-color: var(--accent-on-dark); color: var(--ink-on-dark); }
}
.btn--on-dark:active { background: rgba(255, 255, 255, .12); }

/* Загрузка: содержимое размывается, поверх точки. Без бесконечной анимации в покое */
.btn[data-loading="true"] { pointer-events: none; position: relative; }
.btn[data-loading="true"] .btn__label { filter: blur(2px); opacity: .55; }
.btn__spinner { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; gap: 5px; }
.btn[data-loading="true"] .btn__spinner { display: flex; }
.btn__spinner i {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: btn-dot 900ms var(--ease-in-out) infinite;
}
.btn__spinner i:nth-child(2) { animation-delay: 130ms; }
.btn__spinner i:nth-child(3) { animation-delay: 260ms; }
@keyframes btn-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .btn__spinner i { animation: none; opacity: .7; }
}

/* Текстовая ссылка-действие */
.link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-ink);
  font-weight: 600;
  white-space: nowrap;
}
.link .ic { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--accent-press); text-decoration: underline; text-underline-offset: 3px; }
}
.section--navy .link { color: var(--accent-on-dark); }

/* ---------------------------------------------------------- Знак и шапка -- */
.mark { display: inline-flex; align-items: center; gap: 12px; }
.mark__peak {
  width: 38px; height: 32px; flex: 0 0 auto;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-on-dark) 100%);
  clip-path: polygon(0% 100%, 32% 20%, 46% 50%, 61% 0%, 100% 100%);
}
.mark__text { display: flex; flex-direction: column; line-height: 1.08; }
.mark__name {
  font-family: var(--font-head); font-weight: 800; font-size: 19px;
  letter-spacing: .06em; color: var(--ink-on-dark);
}
.mark__sub {
  font-size: 9px; letter-spacing: .19em; text-transform: uppercase;
  color: var(--accent-on-dark);
}

.hdr { background: var(--navy-900); color: var(--ink-on-dark); position: relative; z-index: 40; }
.hdr a { white-space: nowrap; }

.hdr__util { border-bottom: 1px solid var(--navy-700); }
.hdr__util-in {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 44px; font-size: 14px; color: var(--muted-on-dark);
}
.hdr__util-nav { display: flex; gap: 26px; }
@media (hover: hover) and (pointer: fine) {
  .hdr__util-nav a:hover { color: var(--accent-on-dark); }
}
.hdr__util-right { display: flex; align-items: center; gap: 20px; }
.hdr__city { display: inline-flex; align-items: center; gap: 6px; }
.hdr__city .ic { width: 16px; height: 16px; color: var(--accent-on-dark); }
.hdr__tel { font-weight: 700; color: var(--ink-on-dark); font-family: var(--font-head); }
@media (hover: hover) and (pointer: fine) { .hdr__tel:hover { color: var(--accent-on-dark); } }

.soc { display: inline-flex; gap: 8px; }
.soc a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--r-control);
  border: 1px solid var(--navy-600); font-size: 11px; font-weight: 700;
  letter-spacing: .02em; color: var(--muted-on-dark);
  transition: background var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out),
              border-color var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .soc a:hover { background: var(--accent); border-color: var(--accent); color: var(--navy-900); }
}

/* Основная строка: липкая, высота 76 px */
.hdr__bar { position: sticky; top: 0; z-index: 45; background: var(--navy-900); }
.hdr__bar-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.hdr.is-stuck .hdr__bar {
  background: rgba(14, 27, 46, .86);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--navy-700), 0 10px 30px rgba(6, 12, 22, .35);
}
@media (prefers-reduced-transparency: reduce) {
  .hdr.is-stuck .hdr__bar { background: var(--navy-900); backdrop-filter: none; }
}

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 26px 0; font-size: 15px; font-weight: 500; color: var(--ink-on-dark);
  border-bottom: 2px solid transparent;
  transition: color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--accent-on-dark); border-bottom-color: var(--accent-on-dark); }
}
.nav__link[aria-current="page"] { color: var(--accent-on-dark); border-bottom-color: var(--accent-on-dark); }
.nav__caret {
  width: 8px; height: 8px; flex: 0 0 auto;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: .65;
  transition: transform var(--t-panel) var(--ease-out);
}
.nav__item[data-open="true"] .nav__caret { transform: rotate(225deg) translate(-2px, -2px); }

/* Подменю: раскрывается вниз от пункта */
.subnav {
  position: absolute; top: 100%; left: -18px; min-width: 274px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-surface);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  transform-origin: top left;
  opacity: 0; transform: translateY(-6px) scale(.97); pointer-events: none;
  transition: opacity var(--t-panel) var(--ease-out), transform var(--t-panel) var(--ease-out);
}
.nav__item[data-open="true"] > .subnav { opacity: 1; transform: none; pointer-events: auto; }
.subnav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--r-control);
  font-size: 15px; color: var(--ink);
  transition: background var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out);
}
.subnav a .ic { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .subnav a:hover { background: var(--accent-soft); color: var(--accent-ink); }
}
@media (prefers-reduced-motion: reduce) {
  .subnav { transition: opacity 140ms linear; transform: none; }
  .nav__item[data-open="true"] > .subnav { transform: none; }
}

.nav .btn-hdr { display: none; }
.burger {
  display: none; width: 46px; height: 46px; margin-left: auto;
  border: 1px solid var(--navy-600); border-radius: var(--r-control);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger i { width: 18px; height: 1.75px; background: currentColor; border-radius: 2px;
  transition: transform var(--t-panel) var(--ease-out), opacity var(--t-panel) var(--ease-out); }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }

/* -------------------------------------------------------------- Карточки -- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  padding: 28px;
}
.card--dark { background: var(--navy-800); border-color: var(--navy-700); color: var(--ink-on-dark); }
.card--dark h3, .card--dark h4 { color: var(--ink-on-dark); }
.card--dark p { color: var(--muted-on-dark); }
.card--link { transition: border-color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out),
              transform var(--t-hover) var(--ease-out); display: block; }
@media (hover: hover) and (pointer: fine) {
  .card--link:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
}
.card--link:active { transform: translateY(0) scale(.995); }

/* --------------------------------------------------------- Хлебные крошки -- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-on-dark); }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: '/'; opacity: .45; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--accent-on-dark); } }
.crumbs [aria-current] { color: var(--ink-on-dark); }

/* -------------------------------------------------------------- Плашки -- */
.tag {
  display: inline-flex; align-items: center; min-height: 30px; padding: 5px 12px;
  border-radius: var(--r-control); background: var(--accent-soft);
  color: var(--accent-ink); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.section--navy .tag { background: var(--accent-soft-dk); color: var(--accent-on-dark); }

/* --------------------------------------------------------------- Формы -- */
.form { display: grid; gap: var(--gap-md); }
.field { display: grid; gap: 8px; }
.field > label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-control);
  transition: border-color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out);
}
.field input::placeholder { color: #8A96A4; }
.field input:hover { border-color: #C6D1DC; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(25, 166, 160, .18); }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { display: none; font-size: 13px; color: var(--danger); }
.field.is-invalid input { border-color: var(--danger); background: var(--danger-soft); }
.field.is-invalid .field__error { display: block; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }

/* Чипсы-переключатели */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-control);
  background: var(--surface); color: var(--ink); font-size: 14px; cursor: pointer;
  transition: background var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out),
              color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .chip:hover span { border-color: var(--accent); } }
.chip span:active { transform: scale(.97); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--navy-900); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Согласие */
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); max-width: 64ch; }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.agree.is-invalid { color: var(--danger); }

/* --------------------------------------------------------- Аккордеон -- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 22px 0; text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink);
  transition: color var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .acc__btn:hover { color: var(--accent-ink); } }
.acc__sign { position: relative; width: 20px; height: 20px; flex: 0 0 auto; color: var(--accent-ink); }
.acc__sign::before, .acc__sign::after {
  content: ''; position: absolute; left: 50%; top: 50%; background: currentColor; border-radius: 2px;
  transform: translate(-50%, -50%);
}
.acc__sign::before { width: 15px; height: 1.75px; }
.acc__sign::after { width: 1.75px; height: 15px; transition: transform var(--t-panel) var(--ease-out); }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: translate(-50%, -50%) scaleY(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-panel) var(--ease-out); }
.acc__item[data-open="true"] .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding-bottom: 22px; color: var(--muted); max-width: 68ch; }
@media (prefers-reduced-motion: reduce) { .acc__panel { transition: none; } }

/* ------------------------------------------------------------- Подвал -- */
.ftr { background: var(--navy-900); color: var(--muted-on-dark); padding-block: 64px 28px; }
.ftr__h { color: var(--ink-on-dark); font-size: 15px; font-weight: 700; margin-bottom: 18px; font-family: var(--font-head); }
.ftr__cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.25fr; gap: var(--gap-lg); }
.ftr__about { color: var(--muted-on-dark); font-size: 15px; margin-top: 18px; max-width: 30ch; }
.ftr__col a, .ftr__col span { display: block; font-size: 15px; margin-bottom: 11px; }
@media (hover: hover) and (pointer: fine) { .ftr a:hover { color: var(--accent-on-dark); } }
.ftr__tel { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--ink-on-dark) !important; }
.ftr__soc { display: flex !important; gap: 8px; margin-top: 14px; }
.ftr__soc a { display: inline-flex; margin-bottom: 0; }
.ftr__geo { margin-top: var(--gap-xl); padding-top: 26px; border-top: 1px solid var(--navy-700); font-size: 14px; }
.ftr__geo-title { color: var(--ink-on-dark); font-weight: 600; margin-bottom: 12px; }
.ftr__geo-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ftr__bot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--navy-700); font-size: 14px;
}
[aria-disabled="true"] { cursor: default; }

/* ------------------------------------------------------------- Адаптив -- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hdr__bar-in .btn-hdr { display: none; }
  .hdr__bar-in { height: 68px; }
  /* Мобильное меню */
  .nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--navy-800); border-top: 1px solid var(--navy-700);
    padding: 8px var(--pad) 20px; max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav.is-open .nav__link { display: flex; justify-content: space-between; padding: 15px 0;
    border-bottom: 1px solid var(--navy-700); }
  .nav.is-open .nav__link[aria-current="page"] { border-bottom-color: var(--accent-on-dark); }
  .nav.is-open .nav__item { position: static; }
  .nav.is-open .subnav {
    position: static; opacity: 1; transform: none; pointer-events: auto;
    background: transparent; border: 0; box-shadow: none; padding: 4px 0 12px 14px;
    display: none;
  }
  .nav.is-open .nav__item[data-open="true"] > .subnav { display: block; }
  .nav.is-open .subnav a { color: var(--muted-on-dark); padding: 10px 12px; }
  .nav.is-open .btn-hdr { display: inline-flex; margin-top: 18px; }
}
@media (max-width: 768px) {
  .hdr__util { display: none; }
  .field-grid { grid-template-columns: 1fr; }
  .ftr__cols { grid-template-columns: 1fr 1fr; gap: var(--gap-md); }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .ftr__cols { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn--auto { width: auto; }
}

/* ------------------------------------------------------------ Лайтбокс -- */
.lb {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.lb[data-open="true"] { display: flex; }
.lb__scrim {
  position: absolute; inset: 0; background: rgba(8, 16, 28, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity var(--t-panel) var(--ease-out);
}
.lb[data-in="true"] .lb__scrim { opacity: 1; }
@media (prefers-reduced-transparency: reduce) {
  .lb__scrim { background: rgba(8, 16, 28, .95); backdrop-filter: none; }
}
.lb__stage {
  position: relative; z-index: 1; display: grid; gap: 18px; justify-items: center;
  max-width: min(620px, 100%); width: 100%;
  opacity: 0; transform: scale(.965) translateY(10px);
  transition: opacity var(--t-panel) var(--ease-out), transform var(--t-panel) var(--ease-out);
}
.lb[data-in="true"] .lb__stage { opacity: 1; transform: none; }
.lb__frame {
  max-width: 100%; border-radius: var(--r-surface); overflow: hidden; background: var(--surface);
  box-shadow: 0 32px 80px rgba(4, 10, 20, .5); touch-action: pan-y; line-height: 0;
}
.lb__frame img {
  width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 200px);
  display: block; background: var(--surface);
  transition: opacity 160ms var(--ease-out);
}
.lb__frame.is-swapping img { opacity: 0; }
.lb__bar { display: flex; align-items: center; gap: 18px; color: var(--ink-on-dark); }
.lb__count { font-family: var(--font-head); font-weight: 700; font-size: 15px; min-width: 68px; text-align: center; }
.lb__nav, .lb__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--r-control);
  border: 1px solid rgba(255, 255, 255, .28); color: var(--ink-on-dark);
  transition: background var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out),
              transform var(--t-press) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .lb__nav:hover, .lb__close:hover { background: rgba(255, 255, 255, .14); border-color: var(--accent-on-dark); }
}
.lb__nav:active, .lb__close:active { transform: scale(.94); }
.lb__close { position: absolute; top: -4px; right: 0; transform: translateY(-100%); }
.lb__arrow { width: 12px; height: 12px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.lb__nav--prev .lb__arrow { transform: rotate(45deg) translate(1px, -1px); }
.lb__nav--next .lb__arrow { transform: rotate(-135deg) translate(1px, -1px); }
.lb__x { position: relative; width: 16px; height: 16px; }
.lb__x::before, .lb__x::after {
  content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
}
.lb__x::before { transform: rotate(45deg); }
.lb__x::after { transform: rotate(-45deg); }
/* Прокрутка под окном: ширину полосы возвращаем отступом, страница не прыгает */
body.is-locked { overflow: hidden; padding-right: var(--sbw, 0px); }
@media (prefers-reduced-motion: reduce) {
  .lb__scrim, .lb__stage { transition: opacity 140ms linear; }
  .lb__stage { transform: none; }
  .lb[data-in="true"] .lb__stage { transform: none; }
  .lb__frame img { transition: none; }
}
@media (max-width: 640px) {
  .lb { padding: 16px; }
  .lb__close { position: static; transform: none; }
  .lb__bar { flex-wrap: wrap; justify-content: center; }
}
.ftr__geo-title a { color: var(--ink-on-dark); }

/* Поле файла: свой вид вместо системной кнопки */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.filepick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filepick__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.filepick__label { cursor: pointer; }
.filepick__input:focus-visible + .filepick__label { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.filepick__name { font-size: 14px; color: var(--muted); }
.filepick__name.is-invalid { color: var(--danger); }
.form__status.is-error { color: var(--danger); }

/* Второй уровень меню: ниши выпадают вправо от пункта «SEO по нишам» */
.subnav__group { position: relative; }
.subnav__toggle {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 14px; border: 0; border-radius: var(--r-control);
  background: none; color: var(--ink); font: inherit; font-size: 15px; text-align: left;
  cursor: pointer;
  transition: background var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out);
}
.subnav__toggle .ic { width: 20px; height: 20px; flex: 0 0 auto; }
.subnav__toggle span:not(.subnav__caret) { flex: 1; }
.subnav__caret {
  width: 8px; height: 8px; flex: 0 0 auto;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg); opacity: .5;
  transition: transform var(--t-hover) var(--ease-out), opacity var(--t-hover) var(--ease-out);
}
.subnav__group[data-open="true"] > .subnav__toggle { background: var(--accent-soft); color: var(--accent-ink); }
.subnav__group[data-open="true"] > .subnav__toggle .subnav__caret { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .subnav__toggle:hover { background: var(--accent-soft); color: var(--accent-ink); }
}
.subnav__toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

.subnav--2 {
  top: -10px; left: 100%; margin-left: 8px; min-width: 248px;
  transform-origin: top left;
  transform: translateX(-6px) scale(.97);
}
.subnav__group[data-open="true"] > .subnav--2 { opacity: 1; transform: none; pointer-events: auto; }

/* Не хватает места справа - раскрываем влево */
@media (max-width: 1200px) {
  .subnav--2 { left: auto; right: 100%; margin: 0 8px 0 0; transform-origin: top right; }
}

/* В мобильном меню второй уровень идёт вниз со сдвигом */
@media (max-width: 1023px) {
  .nav.is-open .subnav__caret { transform: rotate(45deg); }
  .nav.is-open .subnav__group[data-open="true"] .subnav__caret { transform: rotate(-135deg); }
  .nav.is-open .subnav--2 {
    position: static; display: none; opacity: 1; transform: none; pointer-events: auto;
    min-width: 0; margin: 0 0 0 18px; padding: 0; border: 0; box-shadow: none; background: none;
  }
  .nav.is-open .subnav__group[data-open="true"] > .subnav--2 { display: block; }
  .nav.is-open .subnav__toggle { color: var(--muted-on-dark); padding: 10px 12px; }
  .nav.is-open .subnav__group[data-open="true"] > .subnav__toggle { background: none; color: var(--ink-on-dark); }
  .nav.is-open .subnav--2 a { color: var(--muted-on-dark); padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .subnav--2, .subnav__group[data-open="true"] > .subnav--2 { transform: none; }
}
.subnav__group[data-current="true"] > .subnav__toggle { color: var(--accent-ink); font-weight: 600; }
.subnav a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }

/* Пункт меню с подменю: ссылка на раздел и отдельная кнопка-стрелка */
.nav__row { display: inline-flex; align-items: center; gap: 2px; }
.nav__more {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--ink-on-dark); cursor: pointer;
  transition: background var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__more:hover { background: rgba(255, 255, 255, .09); color: var(--accent-on-dark); }
}
.nav__more:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nav__item[data-open="true"] .nav__more { color: var(--accent-on-dark); }

/* Первый пункт списка - сам раздел, отделяем его от подпунктов */
.subnav__lead { font-weight: 600; }
.subnav__lead + a, .subnav__lead + .subnav__group {
  border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px;
}

@media (max-width: 1023px) {
  .nav.is-open .nav__row { display: flex; align-items: stretch; justify-content: space-between;
    border-bottom: 1px solid var(--navy-700); }
  .nav.is-open .nav__row .nav__link { flex: 1; border-bottom: 0; }
  .nav.is-open .nav__more { width: 44px; height: auto; border-radius: 0; }
  .nav.is-open .subnav__lead + a, .nav.is-open .subnav__lead + .subnav__group {
    border-top-color: var(--navy-700);
  }
}


/* ======================================================= Окно с короткой формой */
.mdl { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; }
.mdl[hidden] { display: none; }
.mdl__scrim {
  position: absolute; inset: 0; background: rgba(14, 27, 46, .56);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 200ms var(--ease-out);
}
.mdl__card {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100dvh - 40px); overflow: auto;
  background: var(--surface); border-radius: var(--r-surface); box-shadow: var(--shadow-lg);
  padding: 34px 32px 26px;
  opacity: 0; transform: scale(.98);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.mdl[data-in="true"] .mdl__scrim { opacity: 1; }
.mdl[data-in="true"] .mdl__card { opacity: 1; transform: none; }
.mdl__x {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: var(--r-control);
  display: grid; place-items: center; color: var(--muted);
  transition: background var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out);
}
.mdl__x span, .mdl__x span::before { display: block; width: 16px; height: 1.75px; background: currentColor; border-radius: 2px; }
.mdl__x span { transform: rotate(45deg); }
.mdl__x span::before { content: ''; transform: rotate(90deg); }
@media (hover: hover) and (pointer: fine) { .mdl__x:hover { background: var(--bg-sunk); color: var(--ink); } }
.mdl__x:active { transform: scale(.96); }
.mdl__title { font-size: 24px; line-height: 1.2; letter-spacing: -.015em; padding-right: 36px; }
.mdl__form { display: grid; gap: 14px; margin-top: 20px; }
.mdl__form .field[hidden] { display: none; }
.mdl__submit { width: 100%; margin-top: 4px; }
.mdl__note { font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }
.mdl__form .form__status:empty { display: none; }
.mdl__form .form__status a { color: var(--accent-ink); text-decoration: underline; white-space: nowrap; }
.mdl__done { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 14px 0 6px; }
.mdl__done .mdl__title { padding-right: 0; }
.mdl__done p { color: var(--muted); max-width: 30ch; }
.mdl__done .btn { margin-top: 8px; min-width: 160px; }
.mdl__done-ic {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
}
.mdl__done-ic .ic { width: 28px; height: 28px; }

/* На телефоне окно выезжает снизу шторкой на всю ширину */
@media (max-width: 640px) {
  .mdl { place-items: center; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .mdl__card {
    max-width: none; max-height: calc(100dvh - 32px - env(safe-area-inset-bottom));
    border-radius: var(--r-surface);
    padding: 28px 20px 24px;
    opacity: 1; transform: translateY(16px);
  }
  .mdl[data-in="true"] .mdl__card { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mdl__scrim, .mdl__card { transition: opacity 120ms linear; transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .mdl__scrim { background: rgba(14, 27, 46, .8); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.btn--mt { margin-top: 12px; }

/* ---------- pages.css ---------- */
/* ==========================================================================
   Эверест. Раскладки конкретных секций и страниц
   ========================================================================== */

/* ============================================================ ПЕРВЫЙ ЭКРАН */
.hero { background: var(--navy-900); color: var(--ink-on-dark); padding-block: 72px 0; position: relative; }
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--navy-700);
}
.hero__in { display: grid; grid-template-columns: 1fr 520px; gap: var(--gap-xl); align-items: center; }
.hero h1 {
  font-size: clamp(52px, 8vw, 104px);
  line-height: .94; letter-spacing: -.035em; color: var(--ink-on-dark); margin-bottom: 28px;
}
.hero .kicker { color: var(--accent-on-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Фото команды в тёмно-синем тонировании */
.duotone { position: relative; border-radius: var(--r-surface); overflow: hidden; isolation: isolate; }
.duotone img { width: 100%; filter: grayscale(1) contrast(1.06) brightness(.92); }
.duotone::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(165deg, rgba(14, 27, 46, .18) 0%, rgba(14, 27, 46, .68) 100%);
}
.duotone::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: var(--accent); mix-blend-mode: color; opacity: .34;
}
.hero__media { position: relative; }
.hero__media .duotone { box-shadow: 0 30px 70px rgba(4, 10, 20, .45); }

/* Факты под первым экраном, отдельной полосой */
.facts { background: var(--navy-800); color: var(--ink-on-dark); border-bottom: 1px solid var(--navy-700); }
.facts__in { display: grid; grid-template-columns: repeat(4, 1fr); }
/* Четвёртый факт - ссылка: открывает диплом в лайтбоксе */
.facts__i--link { color: inherit; border-radius: var(--r-control);
  transition: background var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out); }
.facts__i--link .ic { color: var(--accent-on-dark); }
@media (hover: hover) and (pointer: fine) {
  .facts__i--link:hover { background: rgba(255, 255, 255, .06); }
}
.facts__i--link:active { transform: scale(.99); }
.facts__i { display: flex; align-items: center; gap: 16px; padding: 26px 0; }
.facts__i + .facts__i { padding-left: var(--gap-lg); border-left: 1px solid var(--navy-700); }
.facts__n {
  font-family: var(--font-head); font-weight: 800; font-size: 34px;
  letter-spacing: -.03em; color: var(--accent-on-dark); line-height: 1;
}
.facts__t { font-size: 15px; color: var(--muted-on-dark); max-width: 22ch; }

/* ================================================================= О НАС */
.about__in { display: grid; grid-template-columns: 1fr 520px; gap: var(--gap-xl); align-items: center; }
.about__text p { margin-bottom: 16px; max-width: 58ch; color: var(--muted); }
.about__text p:first-of-type { font-size: 19px; color: var(--ink); }
.about__text .btn { margin-top: 16px; }
.collage { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.collage figure { margin: 0; border-radius: var(--r-surface); overflow: hidden; background: var(--bg-sunk); }
.collage img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.collage figure:nth-child(1) { grid-row: span 2; aspect-ratio: 4 / 5; }
.collage figure:nth-child(2) { aspect-ratio: 4 / 3; }
.collage figure:nth-child(3) { aspect-ratio: 4 / 3; }

/* =============================================================== УСЛУГИ */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: stretch; }
.svc__card { display: flex; flex-direction: column; gap: 16px; padding: 30px; height: 100%; }
.svc__card h3 { margin: 0; }
.svc__card p { color: var(--muted); flex: 1; }
.svc__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.svc__price { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
/* Акцент на SEO даёт цвет, а не размер: все карточки одной высоты */
.svc__card--lead { background: var(--navy-900); border-color: var(--navy-900); color: var(--ink-on-dark); }
.svc__card--lead h3 { color: var(--ink-on-dark); }
.svc__card--lead p { color: var(--muted-on-dark); }
.svc__card--lead .svc__foot { border-top-color: var(--navy-600); }
.svc__card--lead .ic-tile { background: var(--accent-soft-dk); color: var(--accent-on-dark); }
.svc__card--lead .link { color: var(--accent-on-dark); }
.svc__card--lead .svc__price { color: var(--ink-on-dark); }
.svc__after { display: flex; justify-content: center; margin-top: var(--gap-lg); }

/* ============================================ КОМПЛЕКСНЫЙ ИНТЕРНЕТ-МАРКЕТИНГ */
.cx__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-xl); }
.cx__col > .ic-tile { margin-bottom: 18px; }
.cx__col h3 { margin-bottom: 12px; }
.cx__col p { color: var(--muted); font-size: 16px; }

/* ================================================= МЫ ЗНАЕМ, ЧТО ВАС БЕСПОКОИТ */
.worries { border-top: 1px solid var(--line); }
.worries li {
  display: grid; grid-template-columns: 92px 1fr; gap: var(--gap-md); align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.worries__n {
  font-family: var(--font-head); font-weight: 800; font-size: 34px;
  letter-spacing: -.03em; color: var(--accent-ink); line-height: 1;
}
.worries__t { font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; max-width: 62ch; }

/* ================================================== ЗАПУСК ПРОЕКТА ЗА 7 ДНЕЙ */
.route { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); padding-top: 34px; }
.route__line { position: absolute; left: 8px; right: 8px; top: 7px; height: 2px; background: var(--line); }
.route__i { position: relative; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.route__dot {
  position: absolute; top: -34px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--bg);
}
.route__n {
  font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .02em;
  color: var(--accent-ink);
}
.route__i p { font-size: 15px; font-weight: 500; }
.route__after { display: flex; justify-content: center; margin-top: var(--gap-lg); }

/* ================================================ ЧТО ЕЩЁ МЫ МОЖЕМ (тёмная) */
.more { display: grid; gap: 0; border-top: 1px solid var(--navy-700); }
.more__i {
  display: grid; grid-template-columns: 48px 300px 1fr; gap: var(--gap-md); align-items: start;
  padding: 28px 0; border-bottom: 1px solid var(--navy-700);
}
.more__i h3 { color: var(--ink-on-dark); }
.more__i p { color: var(--muted-on-dark); font-size: 16px; max-width: 62ch; }
.more__after { display: flex; justify-content: flex-start; margin-top: var(--gap-lg); }

/* =============================================================== КЕЙСЫ */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); align-items: start; }
.case {
  min-width: 0;
  display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface);
}
.case__img { display: block; border-radius: var(--r-control); overflow: hidden; background: var(--bg-sunk); }
.case__img img, .case__img picture { display: block; width: 100%; height: auto; }
.case h3 { font-size: 16px; line-height: 1.35; font-weight: 600; font-family: var(--font-text); letter-spacing: 0; }
.case__tag { margin-top: 4px; }
/* Первый кейс шире остальных, но обложка не обрезается: ряды заполняются целиком */
.cases .case:first-child { grid-column: span 2; }
.cases .case:nth-child(4), .cases .case:nth-child(5) { grid-column: span 2; }
.cases .case:first-child h3 { font-size: 21px; font-family: var(--font-head); font-weight: 700; letter-spacing: -.015em; }
.cases__after { display: flex; justify-content: center; margin-top: var(--gap-lg); }

/* ============================================================== КЛИЕНТЫ */
.clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap-sm); }
.clients__i {
  display: flex; align-items: center; justify-content: center; height: 96px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface);
}
.clients__i img {
  height: 40px; width: auto; max-width: 100%; object-fit: contain;
  filter: grayscale(1); opacity: .7;
  transition: filter var(--t-hover) var(--ease-out), opacity var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .clients__i:hover img { filter: none; opacity: 1; }
}

/* =============================================================== ОТЗЫВЫ */
.reviews { border-top: 1px solid var(--line); }
.review {
  display: grid; grid-template-columns: 300px 1fr; gap: var(--gap-lg); align-items: start;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.review__who { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; min-width: 0; }
.review__name, .review__site { overflow-wrap: anywhere; }
.review__who img { width: 56px; height: 56px; object-fit: contain; border-radius: var(--r-control); background: var(--surface); }
.review__name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.review__site { display: block; font-size: 14px; color: var(--accent-ink); }
.review__meta { grid-column: 2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review__date { font-size: 13px; color: var(--muted); white-space: nowrap; }
/* Оценка из отзыва: активные звёзды залиты акцентом, остальные - контуром */
.stars { display: inline-flex; gap: 2px; }
.stars__i { width: 15px; height: 15px; color: var(--line); }
.stars__i--on { color: var(--accent); }
.review__text { color: var(--muted); }
/* Свёрнутый длинный отзыв: ровно 4 строки, текст не сокращается */
.review__clamp {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.review[data-open="true"] .review__clamp { display: block; overflow: visible; }
.review__more { margin-top: 10px; }
.review[data-open="true"] .review__more { display: none; }

/* Подвал секции отзывов: независимая площадка и диплом. Один партиал на все
   страницы сайта, разметка в _build/common.js. */
.trust {
  display: grid; grid-template-columns: 1fr auto; gap: var(--gap-md);
  align-items: center; margin-top: var(--gap-md); padding: 22px 24px;
  background: var(--bg-sunk); border: 1px solid var(--line); border-radius: var(--r-surface);
}
.trust__src { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
/* Логотип нарисован для тёмной подложки: на светлой его белую плашку
   проявляем тенью, сам файл не трогаем */
.trust__logo { width: 124px; height: auto; filter: drop-shadow(0 1px 3px rgba(14, 27, 46, .22)); }
.section--navy .trust__logo { filter: none; }
.trust__t { font-family: var(--font-head); font-weight: 700; margin-bottom: 12px; }
.trust__award {
  display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center;
  max-width: 360px; padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-control);
}
.trust__thumb img {
  width: 46px; height: 65px; object-fit: cover; object-position: top;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
}
.trust__h { display: block; font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.trust__d { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
@media (max-width: 900px) {
  .trust { grid-template-columns: 1fr; align-items: start; padding: 20px; }
  .trust__award { max-width: none; }
}

/* Восстановленные текстовые секции старых страниц услуг */
.prose { max-width: 78ch; }
.prose > * + * { margin-top: 14px; }
.prose p { color: var(--muted); }
.prose ul { display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 26px; color: var(--muted); }
.prose li::before {
  content: ''; position: absolute; left: 5px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* Галерея прототипов: миниатюры открываются в лайтбоксе */
.proto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.proto__i {
  display: block; border: 1px solid var(--line); border-radius: var(--r-surface);
  background: var(--surface); padding: 12px; cursor: zoom-in;
  transition: border-color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .proto__i:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
}
.proto__i img { width: 100%; height: auto; border-radius: var(--r-control); }
@media (max-width: 720px) { .proto { grid-template-columns: 1fr; } }

/* Ссылка на сайт автора отзыва */
a.review__name { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { a.review__name:hover { color: var(--accent-ink); } }

/* ------------------------------------------------- КОМПОНЕНТЫ УСЛУГОВЫХ СТРАНИЦ */

/* Таймлайн сроков: узлы в ряд, линия проходит через центры кружков.
   Отрезок линии рисует сам узел, поэтому число узлов в CSS знать не нужно. */
.tline { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.tline__i { position: relative; padding-top: 0; }
/* Отрезок линии идёт от центра предыдущего кружка к центру своего.
   Кружок прижат к левому краю узла, поэтому считаем от левого края, не от центра. */
.tline__i::before {
  content: ''; position: absolute; top: 19px; height: 2px; background: var(--line);
  left: calc(-100% - var(--gap) + 46px); right: calc(100% - 14px);
}
.tline__i:first-child::before { content: none; }
.tline__dot {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--accent-ink); box-shadow: var(--shadow-sm);
}
.tline__dot .ic { width: 20px; height: 20px; }
.tline__t {
  margin-top: 16px; font-family: var(--font-head); font-weight: 700;
  font-size: 17px; line-height: 1.25; letter-spacing: -.01em; color: var(--ink);
}
.tline__d { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) {
  /* На телефоне таймлайн разворачивается вертикально, линия идёт слева */
  .tline { grid-template-columns: 1fr; gap: 0; }
  .tline__i { padding-left: 60px; padding-bottom: 26px; }
  .tline__i:last-child { padding-bottom: 0; }
  .tline__i::before {
    top: 40px; bottom: -6px; left: 19px; right: auto; width: 2px; height: auto;
  }
  .tline__i:first-child::before { content: ''; }
  .tline__i:last-child::before { content: none; }
  .tline__dot { position: absolute; left: 0; top: 0; }
  .tline__t { margin-top: 8px; }
}

/* Сетка преимуществ и факторов: 4 колонки, последний ряд по левому краю */
.advgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.advgrid__i { display: grid; align-content: start; gap: 8px; padding: 22px; }
.advgrid__i h3 { font-size: 16px; line-height: 1.3; }
.advgrid__i p { font-size: 15px; line-height: 1.47; color: var(--muted); }
.section--navy .advgrid__i { background: var(--navy-800); border-color: var(--navy-700); }
.advgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) { .advgrid, .advgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .advgrid, .advgrid--3 { grid-template-columns: 1fr; } }

/* Аккордеон этапов: номер, иконка, заголовок, строка описания, шеврон справа */
.acc--stages .acc__btn { align-items: center; gap: 16px; padding: 20px 0; }
/* Кружок номера как узел таймлайна: читается и на светлой, и на утопленной секции */
.acc__n {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--accent-line); color: var(--accent-ink);
  font: 800 15px/1 var(--font-head); letter-spacing: -.01em;
}
.acc__ic { flex: 0 0 auto; color: var(--accent-ink); }
.acc__txt { display: grid; gap: 3px; min-width: 0; text-align: left; }
.acc__t { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
/* Свёрнутая строка описания занимает ровно одну строку */
.acc__sub {
  font-size: 15px; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
/* Свёрнутая строка описания живёт в одну строку, раскрытая уступает место тексту */
.acc__item[data-open="true"] .acc__sub { display: none; }
.acc__chev {
  flex: 0 0 auto; margin-left: auto; color: var(--muted);
  transition: transform var(--t-panel) var(--ease-out), color var(--t-hover) var(--ease-out);
}
.acc__btn[aria-expanded="true"] .acc__chev { transform: rotate(180deg); color: var(--accent-ink); }
/* Нижний отступ даём последнему элементу: padding самой панели не схлопывается
   при grid-template-rows: 0fr и оставляет полоску у закрытого пункта. */
.acc--stages .acc__body { padding: 0 0 0 92px; display: grid; gap: 14px; }
.acc--stages .acc__body > :last-child { margin-bottom: 24px; }
.acc--stages .acc__body p { color: var(--muted); max-width: 68ch; }
.acc--stages .acc__body .art__list { display: grid; gap: 10px; }
.acc--stages .acc__body li { position: relative; padding-left: 26px; color: var(--muted); }
.acc--stages .acc__body li::before {
  content: ''; position: absolute; left: 5px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
/* Отклик на нажатие сразу, не по отпусканию кнопки */
.acc__btn:active .acc__n { transform: scale(.96); }
.acc__n { transition: transform var(--t-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .acc--stages .acc__btn:hover .acc__t { color: var(--accent-ink); }
}
@media (prefers-reduced-motion: reduce) {
  .acc__chev, .acc__n { transition: none; }
}
@media (max-width: 720px) {
  .acc--stages .acc__btn { gap: 12px; }
  .acc__ic { display: none; }
  .acc__t { font-size: 17px; }
  .acc--stages .acc__body { padding-left: 50px; }
}

/* Нижний SEO-текст: слева заголовок и лид, справа остальной текст */
.seotext { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 720px); gap: var(--gap-xl); align-items: start; }
.seotext__head h2 { font-size: clamp(24px, 2.4vw, 32px); }
.seotext__lead { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--ink); }
.seotext__body { font-size: 16px; line-height: 1.6; color: var(--muted); }
.seotext__body > * + * { margin-top: 16px; }
.seotext__body h3 { margin-top: 26px; font-size: 18px; color: var(--ink); }
.seotext__body b, .seotext__body strong { color: var(--ink); font-weight: 700; }
.seotext__list { display: grid; gap: 12px; }
.seotext__list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.seotext__list .ic { margin-top: 1px; color: var(--accent-ink); }
@media (max-width: 1024px) { .seotext { grid-template-columns: 1fr; gap: var(--gap-md); } }

/* ------------------------------------------------------------------ КЕЙСЫ */
/* Блок «задача / аудитория / реализация»: заголовок слева, текст справа */
.case-block { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--gap-xl); align-items: start; }
.case-block h2 { font-size: clamp(22px, 2vw, 28px); }
.case-block__b > * + * { margin-top: 14px; }
.case-block__b p { color: var(--muted); max-width: 68ch; }
.case-block__b ul { display: grid; gap: 10px; }
.case-block__b li { position: relative; padding-left: 26px; color: var(--muted); }
.case-block__b li::before {
  content: ''; position: absolute; left: 5px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
@media (max-width: 900px) { .case-block { grid-template-columns: 1fr; gap: var(--gap); } }

/* Скриншот сайта и график: открываются в лайтбоксе */
.chart--shot { padding: 12px; }
.chart__lb { display: block; cursor: zoom-in; }
.chart--shot img { max-height: 620px; object-fit: cover; object-position: top; }
.case-shot__head { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); flex-wrap: wrap; }
.case-shot__head h2 { margin: 0; }

/* Палитра проекта */
.swatches { display: flex; flex-wrap: wrap; gap: var(--gap); }
.swatch { display: grid; justify-items: center; gap: 10px; }
.swatch__c {
  display: block; width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.swatch__t { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }

/* Комментарий специалиста: фото, имя, должность */
.quote-block__ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.quote-block__who { display: grid; }
.quote-block__who b { color: var(--accent-on-dark); font-family: var(--font-head); }
.quote-block > p + p { margin-top: 14px; }

/* ================================================================ ФОРМА */
.formsec { background: var(--bg-sunk); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); padding: 48px; }
.form-card > h2 { margin-bottom: 10px; }
.form-card__in { display: grid; grid-template-columns: 1fr 300px; gap: var(--gap-xl); align-items: start; margin-top: var(--gap-md); }
.form-aside {
  display: grid; gap: 14px; align-content: start;
  background: var(--bg-sunk); border-radius: var(--r-surface); padding: 26px;
}
.form-aside__tel { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.form-aside__row { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.form-aside__row .ic { width: 20px; height: 20px; margin-top: 2px; }
.form__submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__status { font-size: 14px; color: var(--accent-ink); }

/* ====================================================== ВНУТРЕННИЕ СТРАНИЦЫ */
/* Тёмная шапка страницы */
.page-hero { background: var(--navy-900); color: var(--ink-on-dark); padding-block: 28px 72px; }
.page-hero__in { display: grid; grid-template-columns: 1fr 420px; gap: var(--gap-xl); align-items: end; }
.page-hero .kicker { color: var(--accent-on-dark); }
.page-hero h1 { color: var(--ink-on-dark); margin-block: 22px 20px; max-width: 18ch; }
.page-hero--case h1 { font-size: clamp(26px, 2.9vw, 38px); line-height: 1.14; letter-spacing: -.02em; max-width: 24ch; }
.page-hero .lead { color: var(--muted-on-dark); margin-bottom: 30px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.page-hero__price { display: grid; gap: 4px; }
.page-hero__price b { font-family: var(--font-head); font-size: 26px; letter-spacing: -.02em; color: var(--accent-on-dark); }
.page-hero__price span { font-size: 14px; color: var(--muted-on-dark); }
.page-hero--plain .page-hero__in { grid-template-columns: 1fr; }
.page-hero--plain h1 { max-width: 22ch; }

/* Панель фактов справа в шапке страницы */
.hero-facts { display: grid; gap: 2px; background: var(--navy-700); border-radius: var(--r-surface); overflow: hidden; }
.hero-facts__i { background: var(--navy-800); padding: 20px 24px; display: flex; gap: 14px; align-items: center; }
.hero-facts__n { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--accent-on-dark); letter-spacing: -.02em; }
.hero-facts__t { font-size: 14px; color: var(--muted-on-dark); }

/* Список «что входит» */
.inc { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.inc__i:last-child:nth-child(odd) { grid-column: span 2; }
.inc__i:last-child:nth-child(odd) p { max-width: 76ch; }
.inc__i { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; padding: 24px; }
.inc__i h3 { margin-bottom: 8px; }
.inc__i p { color: var(--muted); font-size: 16px; max-width: 46ch; }

/* Шаги в столбик, с линией слева */
.steps { display: grid; gap: 0; }
.step {
  position: relative; display: grid; grid-template-columns: 92px 1fr; gap: var(--gap-md);
  padding: 26px 0 26px 0; border-bottom: 1px solid var(--line);
}
.steps .step:first-child { border-top: 1px solid var(--line); }
.step__n { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -.01em; color: var(--accent-ink); padding-top: 2px; }
.step__b h3 { margin-bottom: 8px; }
.step__b p { color: var(--muted); max-width: 68ch; }

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 32px; height: 100%; }
.plan__name { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan__price { font-family: var(--font-head); font-weight: 800; font-size: 38px; letter-spacing: -.03em; line-height: 1; }
.plan__unit { font-size: 14px; color: var(--muted); margin-top: -10px; }
.plan ul { display: grid; gap: 12px; flex: 1; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15px; color: var(--muted); }
.plan li .ic { width: 20px; height: 20px; margin-top: 2px; }
.plan--lead { background: var(--navy-900); border-color: var(--navy-900); color: var(--ink-on-dark); }
.plan--lead .plan__name { color: var(--accent-on-dark); }
.plan--lead .plan__price, .plan--lead .plan__unit { color: var(--ink-on-dark); }
.plan--lead li { color: var(--muted-on-dark); }

/* Движки: карточки-ссылки */
.engines { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
/* Два движка с описанием идут широкими, три заготовки одинаковыми в один ряд */
.engines > * { grid-column: span 4; }
.engines > :nth-child(1), .engines > :nth-child(2) { grid-column: span 6; }
.engines--2 { grid-template-columns: repeat(2, 1fr); }
.engines--2 > :nth-child(n) { grid-column: auto; }
.engine { display: flex; flex-direction: column; gap: 14px; padding: 28px; height: 100%; }
.engine h3 { margin: 0; }
.engine p { color: var(--muted); font-size: 15px; flex: 1; }
.engine__soon { font-size: 13px; color: var(--muted); font-style: normal; }

/* Врезка */
.callout {
  display: grid; grid-template-columns: 56px 1fr auto; gap: var(--gap-md); align-items: center;
  padding: 32px; background: var(--navy-900); color: var(--ink-on-dark); border-radius: var(--r-surface);
}
.callout h3 { color: var(--ink-on-dark); margin-bottom: 6px; }
.callout p { color: var(--muted-on-dark); font-size: 15px; max-width: 62ch; }

/* Список кейсов: фильтр и сетка */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--gap-lg); }
.filter {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface);
  font-size: 15px; color: var(--ink);
  transition: background var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out),
              color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .filter:hover { border-color: var(--accent); } }
.filter:active { transform: scale(.97); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--navy-900); font-weight: 600; }
.grid-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: start; }
.grid-cases--2, .engines--2 { grid-template-columns: repeat(2, 1fr); }
.grid-cases .case { grid-column: auto !important; grid-row: auto !important; }
.grid-cases .case h3 { font-size: 17px; }
.case[hidden] { display: none; }
.more-btn { display: flex; justify-content: center; margin-top: var(--gap-lg); }
.empty-state { padding: 56px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-surface); }

/* Страница кейса */
.case-lede { display: grid; grid-template-columns: 1fr 380px; gap: var(--gap-xl); align-items: start; }
.case-lede p { color: var(--muted); margin-bottom: 16px; max-width: 66ch; }
.case-lede p:first-of-type { font-size: 19px; color: var(--ink); }
.kpi { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.kpi__i { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); }
.kpi__n { font-family: var(--font-head); font-weight: 800; font-size: 40px; letter-spacing: -.035em;
  color: var(--accent-ink); line-height: 1.05; overflow-wrap: anywhere; }
.kpi__t { font-size: 15px; color: var(--muted); margin-top: 10px; max-width: 34ch; overflow-wrap: anywhere; }
.chart { border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface); padding: 20px; }
.chart img {
  width: 100%; border-radius: 8px;
  /* Пиксели графика уже перекрашены в бирюзовый скриптом recolor-chart.js */
}
.rank { width: 100%; }
.rank th, .rank td { text-align: left; padding: 15px 18px; font-size: 15px; }
.rank thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rank tbody tr { border-top: 1px solid var(--line); }
.rank tbody tr:nth-child(odd) { background: var(--surface); }
.rank td:last-child { font-family: var(--font-head); font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.quote-block { display: grid; gap: 20px; padding: 36px; background: var(--navy-900); color: var(--ink-on-dark); border-radius: var(--r-surface); }
.quote-block h2 { color: var(--ink-on-dark); font-size: 20px; }
.quote-block p { color: var(--ink-on-dark); font-size: 19px; line-height: 1.55; max-width: 68ch; }
.quote-block footer { display: flex; align-items: center; gap: 12px; color: var(--muted-on-dark); font-size: 15px; }
.quote-block footer b { color: var(--accent-on-dark); font-family: var(--font-head); }

/* О компании */
.letters { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.letters a { border-radius: var(--r-control); overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  transition: transform var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out); display: block; }
@media (hover: hover) and (pointer: fine) { .letters a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); } }
.letters img { width: 100%; aspect-ratio: 311 / 440; object-fit: cover; }
.collage--six { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 232px; gap: 14px; }
.collage--six figure { margin: 0; border-radius: var(--r-surface); overflow: hidden; background: var(--bg-sunk); }
.collage--six img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%;
  filter: grayscale(1) contrast(1.04); }
.collage--six figure:nth-child(1) { grid-column: span 5; }
.collage--six figure:nth-child(2) { grid-column: span 4; }
.collage--six figure:nth-child(3) { grid-column: span 3; }
.collage--six figure:nth-child(4) { grid-column: span 4; }
.collage--six figure:nth-child(5) { grid-column: span 3; }
.collage--six figure:nth-child(6) { grid-column: span 5; }
.prose p { color: var(--muted); margin-bottom: 16px; max-width: 66ch; }
.prose p:first-child { font-size: 19px; color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-xl); align-items: start; }

/* ------------------------------------------------------------- Адаптив -- */
@media (max-width: 1180px) {
  .hero__in, .about__in, .page-hero__in, .case-lede, .form-card__in { grid-template-columns: 1fr; }
  .hero__in { gap: var(--gap-lg); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .cases .case:first-child, .cases .case:nth-child(4), .cases .case:nth-child(5) { grid-column: span 2; }
  .route { grid-template-columns: repeat(3, 1fr); row-gap: var(--gap-lg); }
  .route__line { display: none; }
  .route__dot { position: static; margin-bottom: 4px; }
  .more__i { grid-template-columns: 48px 1fr; }
  .more__i h3 { grid-column: 2; }
  .more__i p { grid-column: 2; }
  .clients { grid-template-columns: repeat(4, 1fr); }
  .letters { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .facts__in { grid-template-columns: repeat(2, 1fr); }
  .facts__i { padding: 20px 0; }
  .facts__i + .facts__i { padding-left: 0; border-left: 0; }
  .facts__i:nth-child(n+3) { border-top: 1px solid var(--navy-700); }
  .facts__i:nth-child(2n) { padding-left: var(--gap); border-left: 1px solid var(--navy-700); }
}
@media (max-width: 900px) {
  .svc, .plans, .engines, .engines--2, .grid-cases, .grid-cases--2, .inc, .cx__cols, .two-col {
    grid-template-columns: 1fr;
  }
  .engines > *, .engines > :nth-child(1), .engines > :nth-child(2),
  .inc__i:last-child:nth-child(odd) { grid-column: auto; }
  .facts__in { grid-template-columns: 1fr; }
  .facts__i + .facts__i { padding-left: 0; border-left: 0; border-top: 1px solid var(--navy-700); }
  .review { grid-template-columns: 1fr; gap: var(--gap); }
  .review__meta { grid-column: 1 / -1; }
  .form-card { padding: 28px; }
  .collage--six { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .collage--six figure { grid-column: span 1 !important; }
  .collage--six figure:nth-child(1) { grid-column: span 2 !important; }
  .callout { grid-template-columns: 1fr; gap: var(--gap); }
}
@media (max-width: 520px) {
  /* Итоги кейса: длинная величина вроде «112 посадочных» в две колонки не влезает */
  .kpi { grid-template-columns: 1fr; }
  .kpi__n { font-size: 32px; }
}
@media (max-width: 640px) {
  /* Длинные названия кейсов в две колонки не помещаются: на телефоне одна колонка */
  .cases, .grid-cases { grid-template-columns: 1fr; }
  .cases .case:first-child, .cases .case:nth-child(4), .cases .case:nth-child(5) { grid-column: auto; }
  .kpi, .clients { grid-template-columns: repeat(2, 1fr); }
  .tag { white-space: normal; }
  .case h3 { overflow-wrap: anywhere; }
  .route { grid-template-columns: repeat(2, 1fr); }
  .worries li { grid-template-columns: 56px 1fr; gap: var(--gap); }
  .worries__n { font-size: 26px; }
  .step { grid-template-columns: 56px 1fr; gap: var(--gap); }
  .collage { grid-template-columns: 1fr 1fr; }
  .collage figure:nth-child(1) { grid-row: auto; grid-column: span 2; aspect-ratio: 3 / 2; }
  .letters { grid-template-columns: repeat(2, 1fr); }
  .more__i { grid-template-columns: 1fr; gap: var(--gap-sm); }
  .more__i h3, .more__i p { grid-column: 1; }
  .rank th, .rank td { padding: 12px 10px; font-size: 14px; }
}

/* ------------------------------------------- Строка с парой ссылок (услуга) */
.linkrow {
  display: grid; grid-template-columns: 32px auto 1fr; gap: var(--gap-md); align-items: center;
  padding: 22px 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-surface);
}
.linkrow__t { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.linkrow__l { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.linkrow__l a { color: var(--accent-ink); font-weight: 600; }
.linkrow__l .linkrow__stub { font-weight: 600; color: var(--muted); text-decoration: underline;
  text-decoration-style: dashed; text-underline-offset: 4px; }

/* ------------------------------------- Компактные строки «описание готовится» */
.soonrow { display: grid; gap: 0; margin-top: var(--gap); border-top: 1px solid var(--line); }
.soonrow li { border-bottom: 1px solid var(--line); }
.soonrow a {
  display: grid; grid-template-columns: 24px auto 1fr; gap: 16px; align-items: center;
  padding: 16px 4px; color: var(--muted);
}
.soonrow a > span:first-of-type { font-family: var(--font-head); font-weight: 700;
  font-size: 16px; color: var(--ink); }
.soonrow__s { font-size: 14px; }
.soonrow .ic { color: var(--muted); }
@media (max-width: 640px) {
  .linkrow { grid-template-columns: 1fr; gap: var(--gap-sm); }
  .soonrow a { grid-template-columns: 24px 1fr; }
  .soonrow__s { grid-column: 2; }
}

/* ============================================================ Цены списком */
.pricelist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pricelist li { border-bottom: 1px solid var(--line); }
.pricelist__i {
  display: grid; grid-template-columns: 32px 1fr auto 24px; gap: var(--gap-md); align-items: center;
  padding: 20px 12px; border-radius: var(--r-control);
  transition: background var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .pricelist__i:hover { background: var(--surface); } }
.pricelist__t { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.pricelist__p { font-family: var(--font-head); font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.pricelist__a { width: 9px; height: 9px; border-right: 2px solid var(--accent); border-top: 2px solid var(--accent);
  transform: rotate(45deg); justify-self: end; }
.pricelist__i[aria-disabled="true"] .pricelist__p { color: var(--muted); }
.pricelist__i[aria-disabled="true"] .pricelist__a { border-color: var(--line); }

/* ============================================================== Контакты */
.contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.contacts li {
  display: grid; grid-template-columns: 32px 1fr; gap: 6px var(--gap-md); align-items: center;
  padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface);
}
.contacts__t { font-size: 14px; color: var(--muted); }
.contacts__v { grid-column: 2; font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.35; }
.contacts__v a { color: var(--accent-ink); }
.contacts li:nth-child(4) .contacts__v, .contacts li:nth-child(3) .contacts__v { font-size: 17px; font-weight: 600; }
.contacts li:last-child:nth-child(odd) { grid-column: span 2; }
@media (max-width: 900px) { .contacts li:last-child:nth-child(odd) { grid-column: auto; } }

/* ================================================================== Блог */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: start; }
.post {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 14px 14px 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-surface);
}
.post__img { display: block; border-radius: var(--r-control); overflow: hidden; background: var(--bg-sunk); }
.post__img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.post h3 { font-size: 18px; line-height: 1.3; }
.post__ann { font-size: 15px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post[hidden] { display: none; }
.post[aria-disabled="true"] { opacity: .92; }

/* ================================================================ Статья */
.art { display: grid; grid-template-columns: 260px minmax(0, 68ch); gap: var(--gap-xl); align-items: start; }
.art__toc { position: sticky; top: 100px; padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-surface); }
.art__toc-t { font-family: var(--font-head); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.art__toc ol { counter-reset: toc; display: grid; gap: 10px; }
.art__toc li { counter-increment: toc; display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 15px; }
.art__toc li::before { content: counter(toc, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 700; color: var(--accent-ink); font-size: 13px; padding-top: 2px; }
.art__toc a { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .art__toc a:hover { color: var(--accent-ink); } }
.art__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted-on-dark); font-size: 14px; }
.art__body { font-size: 18px; line-height: 1.65; min-width: 0; }
.art__body > * + * { margin-top: 20px; }
.art__body h2 { font-size: clamp(24px, 2.2vw, 30px); margin-top: 44px; scroll-margin-top: 100px; }
.art__body h3 { font-size: 20px; margin-top: 32px; }
.art__body p { color: var(--ink); }
.art__cover { border-radius: var(--r-surface); overflow: hidden; background: var(--bg-sunk); text-align: center; }
/* Обложки на старом сайте разного размера: мелкую не растягиваем, иначе мылит */
.art__cover img { max-width: 100%; height: auto; margin-inline: auto; }

/* =========================================================== Карта сайта */
.sitemap { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-lg); }
.sitemap__g h2 { font-size: 18px; margin-bottom: 16px; }
.sitemap__g ul { display: grid; gap: 10px; }
.sitemap__g a { color: var(--accent-ink); }
.sitemap__g a[aria-disabled="true"] { color: var(--muted); }

/* Компактные тарифы, когда их больше трёх */
.plans--compact { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap-sm); }
.plans--compact .plan { padding: 24px 20px; gap: 14px; }
.plans--compact .plan__name { font-size: 12px; }
.plans--compact .plan li { font-size: 14px; }
.plans--compact .plan__price { font-size: 30px; }

@media (max-width: 1180px) {
  /* minmax(0,...): иначе широкая обложка растягивает колонку и появляется горизонтальная прокрутка */
  .art { grid-template-columns: minmax(0, 1fr); }
  .art__toc { position: static; }
  .sitemap { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .contacts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .posts, .sitemap { grid-template-columns: 1fr; }
  .pricelist__i { grid-template-columns: 32px 1fr; row-gap: 4px; }
  .pricelist__p { grid-column: 2; white-space: normal; }
  .pricelist__t { min-width: 0; overflow-wrap: anywhere; }
  .pricelist__a { display: none; }
  .art__body { font-size: 17px; }
}

/* ==================================================================== Карта */
.map { margin: 0; border: 1px solid var(--line); border-radius: var(--r-surface);
  overflow: hidden; background: var(--bg-sunk); }
.map__frame { display: block; width: 100%; height: 460px; border: 0; }
.map__cap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 18px 24px; background: var(--surface); border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted); }
.map__cap .link { margin-left: auto; }
@media (max-width: 768px) {
  .map__frame { height: 320px; }
  .map__cap .link { margin-left: 0; }
}

/* Цифры результата на странице кейса */
.case-nums {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin: 28px 0;
}
.case-nums__i {
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-surface);
  background: var(--surface);
}
.case-nums__n {
  font: 800 34px/1.05 var(--font-display); letter-spacing: -.02em;
  color: var(--accent-ink); margin-bottom: 6px;
}
.case-nums__i p:last-child { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 640px) { .case-nums { grid-template-columns: 1fr; } }

/* Страницы без оглавления (кейсы, политика): текст занимает всю ширину сетки */
.art--wide { grid-template-columns: minmax(0, 78ch); justify-content: center; }
.art--wide .art__toc { display: none; }

/* Таблица тарифов: на узких экранах прокручивается по горизонтали */
.pricetable { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); }
.pricetable__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricetable__t { width: 100%; border-collapse: collapse; min-width: 640px; }
.pricetable__t th, .pricetable__t td { padding: 16px 20px; text-align: left; vertical-align: top; }
.pricetable__t thead th {
  font: 600 14px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.pricetable__t thead th.num, .pricetable__t td.num { text-align: right; }
.pricetable__t tbody tr + tr th, .pricetable__t tbody tr + tr td { border-top: 1px solid var(--line); }
.pricetable__q { display: block; font-weight: 700; white-space: nowrap; }
.pricetable__disc { display: block; margin-top: 4px; font-size: 13px; color: var(--accent-ink); }
.pricetable__sum { display: block; font-weight: 600; white-space: nowrap; }
.pricetable__day { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.pricetable__note {
  display: flex; gap: 10px; align-items: flex-start; padding: 16px 20px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 15px;
}
.pricetable__note .ic { flex: 0 0 auto; color: var(--accent-ink); }
@media (max-width: 640px) {
  .pricetable__t th, .pricetable__t td { padding: 14px; }
}

/* Группы работ (бывшие вкладки на старом сайте) */
.tabsgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.tabsgrid__i { display: flex; flex-direction: column; gap: 14px; }
.tabsgrid__i h3 { margin: 0; }
.tabsgrid__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.tabsgrid__list li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.55; }
.tabsgrid__list li::before {
  content: ''; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
@media (max-width: 900px) { .tabsgrid { grid-template-columns: 1fr; } }

/* Диплом: превью слева, пояснение справа */
.awards { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--gap-lg); align-items: center; }
.awards__i {
  display: block; border: 1px solid var(--line); border-radius: var(--r-surface);
  overflow: hidden; background: #fff; box-shadow: var(--shadow-sm);
  transition: transform var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out);
}
.awards__i img { display: block; width: 100%; height: auto; }
@media (hover: hover) and (pointer: fine) {
  .awards__i:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
}
.awards__i:active { transform: scale(.99); }
.awards__t h3 { margin-bottom: 10px; }
.awards__t p { color: var(--muted); max-width: 60ch; }
.awards__t p + p { margin-top: 10px; }
/* Иконка внутри строки текста: svg по умолчанию блочный и уезжает на свою строку */
.section-head .lead .ic {
  display: inline-block; width: 20px; height: 20px;
  vertical-align: -4px; margin-right: 6px; color: var(--accent-ink);
}
@media (max-width: 720px) {
  .awards { grid-template-columns: 1fr; gap: var(--gap); }
  .awards__i { max-width: 260px; }
}

/* Начало статьи: крошки, теги, дата и заголовок на светлом фоне, в одной колонке с текстом */
.art-top .crumbs { color: var(--muted); margin-bottom: 26px; }
.art-top .crumbs a { color: var(--muted); }
.art-top .crumbs [aria-current] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .art-top .crumbs a:hover { color: var(--accent-ink); } }

.art-top__in { max-width: 78ch; }
.art-top__in h1 { margin-top: 14px; max-width: 20ch; }
.art-top__in .lead { margin-top: 18px; max-width: 62ch; }
.art-top .art__meta { color: var(--muted); }
.art-top + .section { padding-top: 0; }
@media (max-width: 1023px) { .art-top__in, .art-top__in h1 { max-width: none; } }

/* --------------------------------------------------------------------------
   Тело статьи. Разметка перенесена со старого сайта как есть: карточки,
   врезки, диаграммы и блоки кода свёрстаны инлайновыми стилями и перекрашены
   по blog-style-map.json. Здесь описано только то, чего в них нет:
   базовая типографика, списки, ссылки, картинки и таблицы.
   -------------------------------------------------------------------------- */
.art__body a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .art__body a:hover { color: var(--accent-press); } }
/* Ссылка-карточка со своим оформлением подчёркивания не требует */
.art__body a[style] { text-decoration: none; }

.art__body ul, .art__body ol { display: grid; gap: 10px; padding: 0; }
.art__body ul > li { position: relative; padding-left: 28px; color: var(--muted); }
.art__body ul > li::before {
  content: ''; position: absolute; left: 6px; top: 12px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.art__body ol { counter-reset: art-n; }
.art__body ol > li {
  position: relative; padding-left: 34px; color: var(--muted); counter-increment: art-n;
}
.art__body ol > li::before {
  content: counter(art-n) '.'; position: absolute; left: 0; top: 0;
  font-family: var(--font-head); font-weight: 700; color: var(--accent-ink);
}
.art__body li b, .art__body li strong { color: var(--ink); }

/* Инлайновый код в тексте */
.art__body code {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--accent-soft); color: var(--accent-ink);
  padding: 2px 6px; border-radius: 6px;
}
/* Блок кода: подпись и сам код свёрстаны в статье, здесь только прокрутка */
.art__body pre { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Старая разметка Битрикса: pre без своего оформления */
.art__body pre:not([style]) {
  margin: 24px 0; padding: 18px 20px;
  background: var(--navy-900); color: var(--ink-on-dark);
  border-radius: var(--r-surface);
  font: 400 14px/1.6 var(--font-mono); white-space: pre;
}
.art__body pre code { background: none; color: inherit; padding: 0; border-radius: 0; }

/* Иллюстрации внутри статьи */
.art__pic { display: block; margin: 28px 0; }
.art__pic img {
  display: block; max-width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface);
}

/* Таблицы: на узком экране прокручиваются внутри своей обёртки */
.art__tablewrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface);
}
.art__tablewrap table:not(.rank) { width: 100%; border-collapse: collapse; font-size: 16px; }
.art__tablewrap table:not(.rank) :is(td, th) {
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; text-align: left;
}
.art__tablewrap table:not(.rank) tr:last-child td { border-bottom: 0; }
.art__tablewrap table:not(.rank) th { font-family: var(--font-head); font-weight: 700; color: var(--ink); }

/* Пункт оглавления для H3 идёт подпунктом, без номера и вне общей нумерации */
.art__toc li.sub {
  grid-template-columns: 1fr; padding-left: 30px; font-size: 14px; color: var(--muted);
  counter-increment: none;
}
.art__toc li.sub::before { content: none; }

/* Длинные названия в карточках не должны распирать сетку на телефоне */
.inc__i h3, .inc__i p, .kpi__i, .swatch__t { overflow-wrap: anywhere; min-width: 0; }

/* Призыв в тексте статьи: кнопка открывает окно заявки, выглядит как ссылка статьи */
.art__cta { font: inherit; cursor: pointer; border: 0; }
.art__cta--inline {
  display: inline; padding: 0; background: none; color: var(--accent-ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) { .art__cta--inline:hover { color: var(--accent-press); } }

/* fix: кнопка закрытия лайтбокса не уезжает при нажатии */
.lb__close{z-index:5;cursor:pointer}
.lb__close:active{transform:translateY(-100%) scale(.94)}
.lb__close *{pointer-events:none}
.lb__bar[hidden]{display:none!important}

/* fix: на узких экранах форма не должна растягивать страницу */
.form, .form-card, .form-card__in, .form-aside, .field, .field-grid, .chips { min-width: 0; }
.field input, .field textarea, .field select { min-width: 0; max-width: 100%; }
.chips .chip, .chips .chip span { max-width: 100%; }
.chips .chip span { white-space: normal; }
.form-aside, .form-aside * { min-width: 0; }
.form-aside__tel, .form-aside .link { overflow-wrap: anywhere; }
.form-aside .link { white-space: normal; }
@media (max-width: 420px){
  .trust__src { flex-wrap: wrap; }
  .trust__src, .trust__srct, .trust__t { min-width: 0; }
  .trust__srct .btn { white-space: normal; width: 100%; }
}
