/* ═══════════════════════════════════════════════════════════════════════════
   AutoDetail · публичный сайт · дизайн-система
   Источник – дизайн-пакет заказчика (website/website.zip, «AutoDetail
   Spec», утверждён 05.09.2026): токены, типографика, компоненты. Здесь они
   переведены в CSS-переменные обеих тем; тёмная гамма – по таблице MAP из
   theme.js пакета.

   Отступления от пакета – осознанные, каждое с причиной:
   – шрифт: в пакете Work Sans, у которого нет кириллицы (русский текст
     в прототипах шёл системным шрифтом). Взят Manrope (OFL, кириллица,
     та же геометрическая пластика), лежит в site/fonts – внешних ресурсов
     у сайта нет;
   – кегль: ничего меньше 15 px – Евгений просил не уменьшать текст.
     Подписи 11–13 px из пакета подняты до 15;
   – приглушённый текст – #5C6774 (5,9:1) везде, где в пакете #8A867E
     (3,1:1 – не читается);
   – оранжевый как цвет ТЕКСТА – только тёмный #B4460B (4,9:1 на белом):
     #EA6A0C на белом даёт 3,2:1. Заливка кнопок – #EA6A0C, как в пакете.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  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: 200 800;
  font-display: swap;
  src: url(/fonts/manrope-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

:root {
  /* поверхности */
  --bg:      #FFFFFF;   /* страница */
  --card:    #FFFFFF;
  --s2:      #FBFAF8;   /* фон разделов, readonly-поля */
  --s3:      #F3F1EC;   /* подложка вкладок, скелетоны */
  --bd:      #EEECE7;   /* обводка карточек */
  --bd2:     #E3E0DA;   /* обводка полей и кнопок */
  --bdh:     #D5D1CA;   /* обводка карточки при hover */
  /* текст */
  --tx:      #14181D;
  --tx2:     #5C6774;
  --mu:      #5C6774;
  /* действие */
  --brand:   #EA6A0C;
  --act:     #EA6A0C;
  --act-h:   #B4460B;
  --onact:   #FFFFFF;
  /*  Оранжевый-как-текст. Был #B4460B и давал на белом 4,48 — на две
   *  сотых ниже порога 4,5, то есть формально провал в каждой проверке.
   *  #B4460B — тот же оттенок ступенью темнее и ровно тот, что стоит
   *  в приложении (theme/app_theme.dart, orangeLight.link): сайт и
   *  приложение перестают расходиться на ссылке. */
  --link:    #B4460B;
  --ink:     #14181D;   /* тёмные кнопки, футер */
  --onink:   #FFFFFF;
  --navy:    #1E3A5F;
  --ok:      #1F7A3A;
  --dnr:     #E5231B;
  /* плашки: подложка / текст */
  /*  Тёмная плита: первая полоса корпоративных страниц и окно кабинета.
   *  Свой токен, а не --ink: в тёмной теме --ink переворачивается в
   *  светлый, и плита вместе с ним становилась светлой — а текст на ней
   *  написан белым намеренно, потому что плита тёмная по смыслу.  */
  --dk: #14181D;
  /*  Отметка на карте: на светлой подложке нужен тёмный оттенок, на
   *  тёмной — фирменный, иначе точка тонет в воде.  */
  --pin: #B4460B;
  --tab-gap: 18px;   /* просвет между пунктами меню, равен радиусу стыка */
  /*  Фоновый рисунок (конверт на контактах): на тёмном фоне та же
   *  прозрачность съедает его целиком, поэтому значение своё на тему.  */
  --bgi-op: .08;
  /* фон обычной кнопки при наведении и нажатии – токеном, иначе
   * в тёмной теме светлая заливка съедает подпись */
  --btn-h: #E9EEF4;
  --btn-a: #DDE5EE;
  --acc-bg:  #FFF8F2;  --acc-bd:  #F5E6DA;  --acc-tx:  #B4460B;  --acc-tint: #FFF1E6;
  --br-bg:   #F7F9FC;  --br-bd:   #D5DEE8;  --br-tx:   #1E3A5F;
  --ok-bg:   #EAF7EC;  --ok-bd:   #CDEBD4;  --ok-tx:   #1F7A3A;
  --neu-bg:  #F3F1EC;  --neu-tx:  #5C6774;
  /* блок опасности */
  --dn-bg:   #FDF0EF;  --dn-tx:   #14181D;  --dn-ic: #E5231B;  --dn-bd: #F1C2BE;
  /* полоса-пояснение */
  --st-bg:   #FFF8F2;  --st-tx:   #3A3F47;  --st-acc: #B4460B;
  /* живые цвета: звезда (в пакете красная), сердце, тона имён студий */
  --star:    #E5231B;
  --heart:   #E5231B;
  --p1-bg: #FFF1E6; --p1-tx: #B4460B;
  --p2-bg: #E9EEF4; --p2-tx: #1E3A5F;
  --p3-bg: #EAF7EC; --p3-tx: #1F7A3A;
  --p4-bg: #E3F3F1; --p4-tx: #0F6E66;
  --n1: #B4460B; --n2: #1E3A5F; --n3: #1F7A3A; --n4: #7B3FA0; --n5: #B0295A; --n6: #0F6E66;
  /* тени пакета */
  --sh-card: 0 1px 0 rgba(0,0,0,.06);
  --sh-up:   0 24px 56px rgba(20,24,29,.08);
  --sh-acc:  0 12px 28px rgba(234,106,12,.12);

  /* Ничего меньше 15: имена токенов оставлены, значения подняты. */
  --fs-12: 15px; --fs-13: 15px; --fs-15: 15px; --fs-16: 16px;
  --fs-20: 20px; --fs-24: 24px; --fs-28: 28px; --fs-30: 30px; --fs-36: 36px; --fs-48: 48px;
  --r8: 10px; --r12: 12px; --r16: 16px; --r20: 20px; --r24: 24px; --r28: 28px; --rp: 999px;
  --sp4: 4px; --sp8: 8px; --sp12: 12px; --sp16: 16px; --sp24: 24px; --sp32: 32px; --sp48: 48px; --sp64: 64px;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --maxw: 1184px;
  color-scheme: light;
}

/* Тёмная гамма – MAP из theme.js пакета: оранжевый и красная звезда не меняются. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1216; --card: #1B1F26; --s2: #151920; --s3: #232830; --bd: #2B3039; --bd2: #343A44; --bdh: #3E4550;
    --tx: #F2F0EB; --tx2: #A3ABB6; --mu: #A3ABB6;
    --link: #FF9A4D; --ink: #F2F0EB; --onink: #0F1216; --navy: #9DBBE0; --ok: #8CE0A6;
    --heart: #FF8FB0;
    --dk: #171C22; --pin: #EA6A0C; --bgi-op: .18; --btn-h: #262C35; --btn-a: #2F3641;
  --acc-bg: #2E2419; --acc-bd: #3A3229; --acc-tx: #FF9A4D; --acc-tint: #3A2A1C;
    --br-bg: #22303F; --br-bd: #35485E; --br-tx: #9DBBE0;
    --ok-bg: #1D3324; --ok-bd: #2A4A34; --ok-tx: #8CE0A6;
    --neu-bg: #232830; --neu-tx: #A3ABB6;
    --dn-bg: #3A2224; --dn-tx: #F2F0EB; --dn-ic: #FF8A7A; --dn-bd: #6B3B3B;
    --st-bg: #2E2419; --st-tx: #D9D6CF; --st-acc: #FF9A4D;
    --p1-bg: #3A2A1C; --p1-tx: #FF9A4D; --p2-bg: #22303F; --p2-tx: #9DBBE0;
    --p3-bg: #1D3324; --p3-tx: #8CE0A6; --p4-bg: #1B3330; --p4-tx: #5EEAD4;
    --n1: #FF9A4D; --n2: #9DBBE0; --n3: #8CE0A6; --n4: #C9A0F0; --n5: #FF8FB0; --n6: #5EEAD4;
    --sh-card: 0 1px 0 rgba(0,0,0,.4); --sh-up: 0 24px 56px rgba(0,0,0,.35); --sh-acc: 0 12px 28px rgba(234,106,12,.18);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1216; --card: #1B1F26; --s2: #151920; --s3: #232830; --bd: #2B3039; --bd2: #343A44; --bdh: #3E4550;
  --tx: #F2F0EB; --tx2: #A3ABB6; --mu: #A3ABB6;
  --link: #FF9A4D; --ink: #F2F0EB; --onink: #0F1216; --navy: #9DBBE0; --ok: #8CE0A6; --heart: #FF8FB0;
  --dk: #171C22; --pin: #EA6A0C; --bgi-op: .18; --btn-h: #262C35; --btn-a: #2F3641;
  --acc-bg: #2E2419; --acc-bd: #3A3229; --acc-tx: #FF9A4D; --acc-tint: #3A2A1C;
  --br-bg: #22303F; --br-bd: #35485E; --br-tx: #9DBBE0;
  --ok-bg: #1D3324; --ok-bd: #2A4A34; --ok-tx: #8CE0A6;
  --neu-bg: #232830; --neu-tx: #A3ABB6;
  --dn-bg: #3A2224; --dn-tx: #F2F0EB; --dn-ic: #FF8A7A; --dn-bd: #6B3B3B;
  --st-bg: #2E2419; --st-tx: #D9D6CF; --st-acc: #FF9A4D;
  --p1-bg: #3A2A1C; --p1-tx: #FF9A4D; --p2-bg: #22303F; --p2-tx: #9DBBE0;
  --p3-bg: #1D3324; --p3-tx: #8CE0A6; --p4-bg: #1B3330; --p4-tx: #5EEAD4;
  --n1: #FF9A4D; --n2: #9DBBE0; --n3: #8CE0A6; --n4: #C9A0F0; --n5: #FF8FB0; --n6: #5EEAD4;
  --sh-card: 0 1px 0 rgba(0,0,0,.4); --sh-up: 0 24px 56px rgba(0,0,0,.35); --sh-acc: 0 12px 28px rgba(234,106,12,.18);
  color-scheme: dark;
}

/* ─── база ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/*  Горизонтальной прокрутки на сайте нет и быть не должно.
 *
 *  Первая полоса растягивается на всю ширину окна приёмом
 *  `margin: 0 calc(50% - 50vw)`, а 100vw в браузерах с классическим
 *  скроллбаром (Firefox, Chrome на Windows) включает и его ширину — полоса
 *  оказывается на десяток пикселей шире страницы, и внизу появляется
 *  вторая полоса прокрутки. На macOS, где скроллбар накладной, этого не
 *  видно, поэтому подстраховываемся здесь, а не ищем по одному месту.  */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font: 400 var(--fs-15)/1.55 var(--sans);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: var(--fs-36); letter-spacing: -.03em; }
h2 { font-size: var(--fs-28); letter-spacing: -.03em; }
h3 { font-size: 17px; line-height: 1.3; }
p { margin: 0 0 var(--sp12); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 var(--sp12); padding-left: 22px; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(234,106,12,.35); border-radius: 6px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp24); }
.mu { color: var(--mu); }
.tx2 { color: var(--tx2); }
.small { font-size: var(--fs-12); }
.num { font-variant-numeric: tabular-nums; }
.price { font-size: var(--fs-24); font-weight: 800; color: var(--tx); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.big { font-size: var(--fs-30); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hr { height: 1px; background: var(--bd); margin: var(--sp16) 0; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.overline { font-size: var(--fs-15); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acc-tx); }
.overline.mu { color: var(--tx2); }

/* ─── шапка ────────────────────────────────────────────────────────────── */
.hd { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--bd); }
.hd .wrap { display: flex; align-items: center; gap: var(--sp16); min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800;
  color: var(--tx); text-decoration: none; letter-spacing: -.02em; flex: none; }
.logo i { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); display: block; }
/*  Пилюля навигации и панели, которые из неё вырастают.
    Открытая пилюля теряет нижние скругления и белеет — панель под ней
    того же белого и без верхней тени, поэтому одно перетекает в другое,
    а не лежит двумя карточками друг под другом.  */
.nav-wrap { position: relative; margin: 0 auto; }
/*  Просвет между пунктами равен радиусу скруглений стыка: тогда
    расстояние между оранжевыми линиями соседних вкладок совпадает с
    кривизной, которой они расходятся. Значение из спецификации дизайна
    от 08.09.2026 (было 4 px).  */
.nav { display: flex; gap: var(--tab-gap); background: var(--s3); padding: 5px; border-radius: var(--rp);
  position: relative; z-index: 2; }
/*  Открытая пилюля остаётся кремовой: это постоянная часть шапки, и
    менять её вид при каждом открытии значит дёргать всю строку. Меняется
    только выбранный пункт — он белеет, обводится фирменным контуром и
    вытягивается вниз до края пилюли, где встречается с панелью.  */
/*  Прозрачная рамка у всех пунктов — чтобы у выбранного она появлялась
    цветом, а не съедала пиксели: без неё строка подпрыгивает на три
    пикселя каждый раз, когда меняется раздел.  */
.nav a, .nav-i { color: var(--tx2); text-decoration: none; font-size: var(--fs-15); font-weight: 600;
  padding: 8px 17px; border-radius: var(--rp); white-space: nowrap; display: flex; align-items: center;
  background: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.nav a:hover, .nav-i:hover { color: var(--tx); background: var(--card); }
.nav a.on { color: var(--tx); font-weight: 700; background: var(--card); box-shadow: 0 4px 12px rgba(20,24,29,.10); }
/*  Раздел открытой страницы остаётся отмеченным и после перехода: человек
    видит, где он находится, а не только куда нажал.  */
.nav-i.on { color: var(--tx); font-weight: 700; background: var(--card); border-color: var(--brand); }

/*  Пока панель открыта, отметка текущего раздела гасится до нейтральной
    рамки: два оранжевых контура рядом читаются как два открытых меню.  */
.nav-wrap.open .nav-i.on:not([aria-expanded="true"]) { border-color: var(--bd2); }

/*  Открытая панель и её пункт — одна фигура: кнопка выходит из пилюли
    вниз, а край панели поднимается к ней двумя обратными скруглениями —
    как язычок вкладки. Прямой стык под углом читался как две наложенные
    карточки; здесь линия непрерывна.
    Правило идёт после .on: вес у них одинаковый, и побеждает нижнее —
    открытая панель важнее отметки раздела.

    Скругление сверху — полукруг, как у любой пилюли на сайте; обратные
    уголки внизу той же кривизны, поэтому линия расходится в стороны
    ровно так же, как поднималась.
    Тень 0 2px закрывает верхнюю линию панели под кнопкой: фон становится
    общим, и граница нигде не пересекает белое поле.  */
.nav-i[aria-expanded="true"] {
  position: relative; z-index: 3; color: var(--tx); font-weight: 700;
  background: var(--card); border-color: var(--brand); border-bottom-color: transparent;
  border-radius: var(--rp) var(--rp) 0 0;
  margin-bottom: -5px; padding-bottom: 14px;
}
/*  Силуэт открытого меню — один путь.
 *
 *  Раньше стык собирался из трёх независимых кусков: рамка панели, белая
 *  перемычка и две дуги на радиальных градиентах. Оттуда всё сразу — излом
 *  на повороте, разная толщина линии (бордюр против края градиента), три
 *  разных радиуса в одном узле и обрыв тени о пилюлю.
 *
 *  Теперь пилюля, вкладка и панель нарисованы контуром в SVG, а разметка
 *  над ним держит только текст: кнопки и содержимое панели. Отсюда правила
 *  ниже — на время открытия пилюля и панель отдают свой фон, рамку и тень
 *  контуру и становятся прозрачными.
 *
 *  Числа — из спецификации дизайна от 08.09.2026: подъём 5 px (это и есть
 *  внутренний отступ пилюли, просвета между ней и панелью нет), радиус всех
 *  четырёх скруглений стыка 18 px, углы панели 24 px, линия 1,5 px.
 */
.nav-svg { position: absolute; z-index: 1; overflow: visible; pointer-events: none; display: none; }
.nav-wrap.open .nav-svg { display: block; }
.nav-svg .pill { fill: var(--s3); }
.nav-svg .plate { fill: var(--card); stroke: var(--brand); stroke-width: 1.5;
  filter: drop-shadow(0 24px 50px rgba(20,24,29,.14)); }
.nav-wrap.open .nav { background: transparent; }
.nav-wrap.open .mega { background: transparent; border-color: transparent; box-shadow: none; }
/*  Выбранный пункт: контур рисует SVG, кнопке остаётся только текст.  */
.nav-i[aria-expanded="true"] { position: relative; z-index: 2; color: var(--tx); font-weight: 700;
  background: transparent; border-color: transparent; }

.mega { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-6px);
  width: min(1000px, calc(100vw - 48px)); background: var(--card);
  border: 1.5px solid var(--brand); border-radius: 24px;
  padding: 26px 28px 28px; z-index: 1; box-shadow: 0 24px 50px rgba(20,24,29,.14);
  opacity: 0; pointer-events: none; transition: opacity .16s ease, transform .16s ease; }
.mega.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.mega-cols { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 28px; align-items: start; }
.mc { display: grid; gap: 4px; align-content: start; }
.mc .overline { margin-bottom: 6px; }
.mi { display: block; padding: 9px 12px; margin-left: -12px; border-radius: 12px; text-decoration: none; }
.mi:hover { background: var(--s2); }
.mi b { display: block; font-size: var(--fs-16); color: var(--tx); }
.mi span { display: block; font-size: var(--fs-13); color: var(--tx2); margin-top: 2px; }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.mgrid a { font-size: var(--fs-15); color: var(--tx2); text-decoration: none; padding: 5px 0; }
.mgrid a:hover { color: var(--link); text-decoration: underline; }
.mc .more { display: inline-block; margin-top: 10px; font-size: var(--fs-15); font-weight: 700; text-decoration: none; }
.mc .more:hover { text-decoration: underline; }
.mc.promo { background: var(--acc-bg); border: 1px solid var(--acc-bd); border-radius: 18px; padding: 18px; gap: 8px; }
.mc.promo p { font-size: var(--fs-15); color: var(--tx2); }
.mc.promo .btn { margin-top: 4px; }
.mc.promo .more { margin-top: 2px; }

/*  Затемнение страницы под открытым меню. Шапка выше него по z-index и
    остаётся светлой: меню — часть шапки, а не всплывающее окно поверх
    сайта.  */
.scrim { position: fixed; inset: 68px 0 0; z-index: 18; background: rgba(20,24,29,.45);
  opacity: 0; transition: opacity .16s ease; }
.scrim.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .mega, .scrim { transition: none; }
}
.hd-actions { display: flex; gap: 12px; align-items: center; flex: none; margin-left: auto; }
/* переключатель темы – тумблер 44×26 из пакета */
/*  Размеры переключателя — из дизайн-пакета: 42×24 при кружке 18.
    Ход кружка считается из них: 42 − 18 − 3 − 3 = 18.  */
.tgl { width: 42px; height: 24px; border-radius: var(--rp); background: var(--bdh); border: 0; padding: 0;
  position: relative; cursor: pointer; flex: none; transition: background .2s; }
.tgl i { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(20,24,29,.25); transition: transform .2s; display: flex; align-items: center;
  justify-content: center; font-style: normal; font-size: 11px; color: #14181D; }
.tgl.dark { background: var(--brand); }
.tgl.dark i { transform: translateX(18px); }
.burger { display: none; width: 44px; height: 44px; border-radius: var(--rp); border: 1px solid var(--bd2);
  background: var(--card); cursor: pointer; font-size: 20px; line-height: 1; }
.menu { display: none; }
.menu.open { display: block; position: fixed; inset: 68px 0 0; z-index: 19; background: var(--bg); padding: var(--sp24); overflow: auto; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 14px 0; border: 0; border-bottom: 1px solid var(--bd);
  background: none; color: var(--tx); text-decoration: none; font-size: var(--fs-20); font-weight: 700; cursor: pointer; }
.menu .grp { margin-top: var(--sp24); }
.menu .grp a { font-size: var(--fs-16); font-weight: 600; color: var(--tx2); padding: 10px 0; }
/*  Кнопка в меню — та же кнопка, что в шапке: тот же кегль, та же высота.
 *  Здесь она наследовала от ссылок меню размер 20 px и тянула за собой
 *  оранжевое свечение btn-p во всю ширину экрана — «гигантские кнопки с
 *  нелепыми тенями», и это правда. Свечение уместно на одной кнопке в
 *  первом экране, а не на списке. */
.menu .btn { display: flex; margin-top: var(--sp16); border-bottom: 0;
  font-size: var(--fs-15); box-shadow: none; }
.menu .btn-p { box-shadow: inset 0 0 0 1px var(--act-h); }

/* ─── кнопки ───────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp8);
  min-height: 48px; padding: 0 22px; border-radius: var(--rp); border: 1.5px solid transparent;
  font-size: var(--fs-15); font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s; }
.btn:active { transform: scale(.98); }
/*  Тяжёлая тень — только у крупной кнопки первой полосы: там она держит
    карточку заявки на светлом фоне. Везде ещё — лёгкая: в футере и в меню
    одна и та же «жирная» тень читается как перебор.  */
.btn-p { background: var(--act); color: var(--onact); box-shadow: inset 0 0 0 1px var(--act-h), 0 4px 10px rgba(234,106,12,.3); }
.hero .btn-p { box-shadow: inset 0 0 0 1px var(--act-h), 0 10px 24px rgba(234,106,12,.28); }
.btn-p:hover { background: #D9600A; box-shadow: inset 0 0 0 1px #B34E09, 0 6px 14px rgba(234,106,12,.34); transform: translateY(-1px); }
.hero .btn-p:hover { box-shadow: inset 0 0 0 1px #B34E09, 0 14px 30px rgba(234,106,12,.38); }
.btn-p:active { background: #C4560A; transform: translateY(0); }
.btn-g { background: var(--card); color: var(--tx); border-color: var(--ink); box-shadow: 0 8px 20px rgba(20,24,29,.08); }
/*  При наведении текст остаётся чёрным — отдельное решение заказчика.
    Заливка тёмным с белым текстом ему противоречила.  */
.btn-g:hover { background: var(--btn-h); border-color: var(--ink); color: var(--tx); }
.btn-g:active { background: var(--btn-a); }
/*  Выбранный вид каталога — как выбранный чип услуги: тёмная заливка.
    Два одинаковых на вид переключателя не показывают, какой из них
    сейчас включён.  */
.btn-g.on, .btn-g.on:hover { background: var(--ink); color: var(--onink); border-color: var(--ink); }
.btn-d { background: var(--ink); color: var(--onink); }
.btn-d:hover { background: #2B2F36; color: #fff; }
.btn-w { background: #fff; color: var(--act-h); }
.btn-w:hover { background: #FFF1E6; }
.btn-q { background: transparent; color: var(--tx); border-color: transparent; padding: 0 var(--sp12); box-shadow: none; }
.btn-q:hover { background: var(--s3); }
.btn-s { min-height: 42px; padding: 0 18px; font-size: var(--fs-15); }
.btn-l { min-height: 56px; padding: 0 28px; font-size: var(--fs-16); }
.btn-ic { width: 48px; padding: 0; font-size: var(--fs-20); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; }
.btn-full { width: 100%; }

/* ─── страница ─────────────────────────────────────────────────────────── */
main { flex: 1; padding: 0 0 var(--sp64); position: relative; }
.page-art { display: none; }
.sec { margin: var(--sp64) 0 0; }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp16);
  margin-bottom: 28px; flex-wrap: wrap; }
.sec-hd h2 { font-size: var(--fs-36); }
.sec-hd .sub { color: var(--tx2); margin-top: 6px; }
.lead { font-size: 19px; line-height: 1.5; color: var(--tx2); max-width: 560px; }
.page-hd { margin: var(--sp48) 0 var(--sp24); }
.page-hd h1 { font-size: var(--fs-48); line-height: 1.05; }
.page-hd .sub { color: var(--tx2); margin-top: var(--sp12); font-size: var(--fs-16); }
.crumbs { font-size: var(--fs-13); color: var(--mu); margin: var(--sp24) 0 var(--sp12); }
.crumbs a { color: var(--mu); }
.center { text-align: center; }

/* ─── главная: первая полоса ───────────────────────────────────────────── */
/* на всю ширину окна: main ограничен рамкой, полоса – нет */
.dl-photo { display: block; width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 10px 24px rgba(20,24,29,.12); }
.hero { background: var(--s2); margin: 0 calc(50% - 50vw); padding: var(--sp64) calc(50vw - 50%) var(--sp48); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: var(--sp64); align-items: center;
  max-width: calc(var(--maxw) - 2 * var(--sp24)); margin: 0 auto; }
.hero-txt { display: flex; flex-direction: column; gap: var(--sp24); }
/*  Шапка без правой колонки. Сетка по умолчанию держит под неё 480 точек –
 *  на страницах, где справа ничего нет, текст из-за этого ужимается вдвое
 *  и лид рвётся на четыре строки вместо двух. */
.hero-grid.solo { grid-template-columns: minmax(0, 1fr); }
.hero-grid.solo .lead { max-width: 880px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-15); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--tx2); background: var(--card);
  border: 1px solid var(--bd); padding: 7px 12px; border-radius: var(--rp); width: max-content; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: 62px; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 .acc { color: var(--brand); }
.stats { display: flex; gap: 28px; padding-top: 8px; flex-wrap: wrap; }
.stats > div { display: flex; flex-direction: column; }
.stats b { font-size: var(--fs-28); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stats span { font-size: var(--fs-15); color: var(--tx2); }
.stats .sep { width: 1px; background: var(--bd2); align-self: stretch; }
.apps { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--bd2); }
.apps .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.store { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--ink);
  color: var(--onink); text-decoration: none; }
.store:hover { background: #2B2F36; color: #fff; }
.store .ic { width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex: none; color: #fff; background: linear-gradient(135deg,#2E8CFF,#0057E0); }
.store .ic.ios { background: linear-gradient(135deg,#2CC4FF,#0A6CF1); }
.store .ic.gp { background: linear-gradient(135deg,#00C853,#0A6CF1); }
.store .ic.ag { background: linear-gradient(135deg,#FF6A5A,#C8102E); }
.store .ic.web { background: var(--brand); }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 12px; opacity: .65; }
.store b { font-size: var(--fs-15); font-weight: 800; }
.store.soon { opacity: .55; cursor: default; }
.store.soon:hover { background: var(--ink); }

/* карточка заявки в первой полосе */
.hform { background: var(--card); border: 1px solid var(--bd); border-radius: var(--r24); padding: 28px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: 0 32px 72px rgba(20,24,29,.16), 0 2px 8px rgba(20,24,29,.06); }
.hform .top { display: flex; justify-content: space-between; align-items: center; }
.hform .top b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.hform .top span { font-size: var(--fs-15); font-weight: 700; color: var(--tx2); }
.hform .prog { display: flex; gap: 6px; }
.hform .prog i { flex: 1; height: 3px; border-radius: 2px; background: var(--bd); }
.hform .prog i.on { background: var(--brand); }
.hform label, .hform .lbl { font-size: var(--fs-15); font-weight: 700; display: block; margin-bottom: 8px; }
.hform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hform .foot { font-size: var(--fs-15); color: var(--tx2); text-align: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: var(--fs-15); font-weight: 600; padding: 9px 14px; border-radius: var(--rp); border: 1px solid var(--bd2);
  background: var(--card); color: var(--tx); cursor: pointer; }
.tag:hover { border-color: var(--bdh); }
.tag.on { background: var(--ink); color: var(--onink); border-color: var(--ink); }

/* ─── поля ─────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-15); font-weight: 700; color: var(--tx); }
select, input[type="text"], input[type="search"], textarea { min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--bd2); background: var(--s2); color: var(--tx); font-size: var(--fs-15); width: 100%; }
textarea { resize: vertical; min-height: 72px; }
select:focus, input:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(234,106,12,.15); outline: 0; background: var(--card); }
::placeholder { color: var(--mu); opacity: 1; }
.filters { display: flex; gap: var(--sp12); flex-wrap: wrap; align-items: flex-end; margin-bottom: var(--sp16); }
.filters .field { min-width: 200px; }
.chips { display: flex; gap: var(--sp8); flex-wrap: wrap; margin-bottom: var(--sp16); }
.chip { min-height: 42px; padding: 0 16px; border-radius: var(--rp); border: 1px solid var(--bd2);
  background: var(--card); color: var(--tx); font-size: var(--fs-15); font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--bdh); }
.chip.on { background: var(--ink); color: var(--onink); border-color: var(--ink); }

/* ─── сетки ────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.split { display: grid; gap: var(--sp24); grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ─── карточки ─────────────────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--bd); border-radius: var(--r20); padding: 22px; box-shadow: var(--sh-card); }
.card h3 + p { margin-top: var(--sp8); }
a.card { color: var(--tx); text-decoration: none; display: block; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--bdh); box-shadow: 0 14px 36px rgba(20,24,29,.08); }
/*  Карточка студии приподнята всегда, а не только под курсором: на витрине
    она главный объект, и на сенсорном экране наведения не бывает вовсе.  */
a.card.scard { box-shadow: 0 14px 36px rgba(20,24,29,.08); }
a.card.scard:hover { box-shadow: 0 18px 44px rgba(20,24,29,.10); border-color: var(--bdh); }
.card .kv { display: flex; justify-content: space-between; gap: var(--sp12); padding: var(--sp8) 0; border-bottom: 1px solid var(--bd); }
.card .kv:last-child { border-bottom: 0; }
/*  Левая подпись сжимается и обрезается многоточием, правая величина —
    никогда: в ленте работ длинное название машины выдавливало цену за
    край карточки, и от суммы оставалась одна цифра.  */
.card .kv i { font-style: normal; color: var(--tx2); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card .kv b.num { flex: none; }
/*  Значение переносится по словам: длинные реквизиты — наименование,
    налоговый орган, суд — не помещались в строку и уезжали за край
    карточки. Подпись слева при этом остаётся одной строкой.  */
.card .kv b { font-weight: 700; text-align: right; white-space: normal; min-width: 0; }
.card .kv b.num { white-space: nowrap; }
.sname { color: var(--tx); }
.scard { display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
/*  Обложка студии в карточке каталога.
 *  Осветления нет: студия выкладывает фото зала или входа, и показывать
 *  его вполсилы значит показывать чужую работу хуже, чем она есть.
 *  Растворение вниз оставлено – оно отделяет фото от текста карточки,
 *  а не гасит его. Начинается оно не от самого верха, а с 20 % высоты:
 *  так верхняя пятая часть фотографии видна в полную силу, а таять оно
 *  начинает там, где под ним уже идёт текст. */
.scard .cover { position: absolute; left: 0; right: 0; top: 0; height: 96px; background: center/cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent);
  mask-image: linear-gradient(180deg, #000 20%, transparent); pointer-events: none; }
.scard > * { position: relative; }
.scard .ava { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--onink); display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: none; overflow: hidden; }
.scard .ava img { width: 100%; height: 100%; object-fit: cover; }
.scard .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
/*  Гало и у оценки: она стоит на той же обложке, что и звезда, и по той
 *  же причине теряется на светлом фото. Обводка та же, чтобы пара
 *  «звезда – число» читалась как одно целое, а не как значок с подписью
 *  разной толщины. */
.scard .rate { font-size: var(--fs-15); font-weight: 800;
  -webkit-text-stroke: 3px #fff; paint-order: stroke fill; }
/*  Звезда стоит поверх обложки, а обложка бывает любой – от чёрного
 *  капота до белой стены. Раньше её выручало осветление фотографии;
 *  теперь фото в полную силу, и звезде нужен собственный контур.
 *  paint-order уводит обводку под заливку: без него она съедает лучи
 *  изнутри и звезда худеет. */
.scard .rate .star { color: var(--star); -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
  /*  Просвет к оценке. Обводка в три пикселя выросла у обоих наружу, и
   *  пробела между ними стало не хватать: ореолы почти смыкались. */
  margin-right: 3px; }
.scard .addr { font-size: var(--fs-15); color: var(--tx2); padding-top: 2px; }
.scard .foot { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-15); color: var(--tx2);
  border-top: 1px solid var(--bd); padding-top: 12px; margin-top: auto; }
.scard .foot b { color: var(--acc-tx); font-weight: 700; }
.pill-g { background: var(--ok-bg); color: var(--ok-tx); }
.pill-t { background: var(--p4-bg); color: var(--p4-tx); }
.feed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp8) var(--sp12); margin-top: var(--sp12); }
.feed-meta a { text-decoration: none; font-weight: 700; }
.feed-meta a:hover { text-decoration: underline; }
.likes { color: var(--heart); font-weight: 700; }
.entry { display: flex; flex-direction: column; }
.entry p { flex: 1; }
.entry .btn { width: 100%; white-space: normal; text-align: center; }
.cat-ic { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: var(--sp8); background: var(--p2-bg); color: var(--p2-tx); }
.tile { background: var(--card); border: 1px solid var(--bd); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.tile .ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 16px; font-size: var(--fs-24); line-height: 1; background: var(--brand); color: #fff;
  box-shadow: 0 8px 20px rgba(234,106,12,.35); }
.tile h3 { font-size: 19px; }
.tile p { color: var(--tx2); }
.step { position: relative; padding-left: 48px; }
.step .n { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--act); color: var(--onact); font-weight: 800; display: flex; align-items: center;
  justify-content: center; font-size: var(--fs-15); }
.step:nth-child(3n+2) .n { background: var(--navy); color: #fff; } .step:nth-child(3n+3) .n { background: var(--ok); color: #fff; }
.step .promise { color: var(--mu); font-size: var(--fs-13); margin-top: var(--sp4); }

/* ─── главная: «Почему», «Как мы работаем», направления, студии, входы ── */
.why { margin-top: var(--sp64); background: linear-gradient(135deg, var(--acc-tint) 0%, var(--s2) 60%, var(--acc-bg) 100%);
  border: 1px solid var(--acc-bd); border-radius: var(--r28); padding: 44px 40px 40px; display: flex; flex-direction: column; gap: 28px; }
.why .hd2 { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.why .hd2 h2 { font-size: var(--fs-30); padding-top: 6px; }
.why .grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.why .tile { border: 0; box-shadow: 0 18px 44px rgba(234,106,12,.16), 0 2px 6px rgba(20,24,29,.06); }
/*  Иконка и плашка состояния — столбцом, а не строкой.
    В строку они помещались через раз: «ЗАФИКСИРОВАНО» длиннее остальных
    меток, переносилось только в первой карточке, и ряд разъезжался —
    у одной плитки плашка под иконкой, у трёх справа. Столбец одинаков
    всегда и не зависит от длины слова.  */
.why .tile .row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
/*  Единственное место на сайте мельче 15px — по решению заказчика 07.09.2026.
    «✓ ЗАФИКСИРОВАНО» не помещалось рядом с иконкой и падало строкой ниже,
    ломая выравнивание первой карточки. Это метка состояния из одного слова
    заглавными, а не текст для чтения: 14px здесь читается, а перенос — нет.
    Разрядка убрана и отступы поджаты по той же причине.  */
.ok-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--ok-bg); color: var(--ok-tx); white-space: nowrap;
  font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; padding: 6px 9px; border-radius: var(--rp); }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
/*  Стрелки между шагами.
    Рисуются на контейнере, а не на карточках: у карточки overflow: hidden —
    им положено обрезать крупную цифру фона, и любой выступающий за край
    псевдоэлемент срезался бы вместе с ней. Позиция считается из ширины
    колонки: (100% − два зазора) / 3, дальше половина зазора.  */
.how::before, .how::after {
  content: '→'; position: absolute; top: 50%; z-index: 2;
  width: 32px; height: 32px; margin-left: -16px; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; font-weight: 800;
  color: #fff; background: var(--brand); border-radius: 50%;
  box-shadow: 0 6px 16px rgba(234,106,12,.35); pointer-events: none;
}
.how::before { left: calc((100% - 56px) / 3 + 14px); }
.how::after  { left: calc((100% - 56px) / 3 * 2 + 42px); }
.how .st { background: var(--card); border: 1px solid var(--bd2); border-radius: 22px; padding: 22px; box-shadow: var(--sh-up);
  display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.how .st .bgn { position: absolute; right: 16px; bottom: -14px; font-size: 96px; font-weight: 800; letter-spacing: -.05em;
  color: var(--s3); line-height: 1; pointer-events: none; }
.how .st .lbl { display: flex; align-items: center; gap: 8px; position: relative; }
.how .st .lbl::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.how .demo { background: var(--s3); border-radius: 16px; padding: 16px; min-height: 132px; position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.how .demo .msg { align-self: flex-end; max-width: 85%; background: var(--card); border: 1px solid var(--bd);
  border-radius: 14px 14px 4px 14px; padding: 10px 14px; font-size: var(--fs-15); line-height: 1.4; }
.how .demo .ph { display: flex; gap: 6px; align-self: flex-end; }
.how .demo .ph i { width: 44px; height: 34px; border-radius: 8px; background-size: cover; background-position: center; display: block; }
.how .demo .off { display: flex; justify-content: space-between; align-items: center; background: var(--card);
  border: 1px solid var(--bd); border-radius: 10px; padding: 8px 12px; font-size: var(--fs-15); }
.how .demo .off b { font-weight: 700; }
.how .demo .off span { font-weight: 800; color: var(--acc-tx); }
.how .demo .who { display: flex; align-items: center; gap: 10px; }
.how .demo .who .ava { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--onink);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.how .demo .book { background: var(--brand); color: #fff; border-radius: var(--rp); padding: 9px; text-align: center;
  font-size: var(--fs-15); font-weight: 800; }
.how .st h3 { font-size: 20px; position: relative; }
.how .st p { color: var(--tx2); position: relative; }

/*  Порядок плиток — строго как в списке направлений.
    Раскладка была с grid-auto-flow: dense: сетка сама затягивала мелкие
    плитки в дыры за крупными, и порядок на экране переставал совпадать
    со списком. Теперь крупная плитка занимает свои две ячейки, а
    следующие перескакивают через занятое, сохраняя очередь.  */
.dirs { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 100px; gap: 14px; }
.dir { border-radius: 18px; box-shadow: 0 10px 24px rgba(20,24,29,.12); background: var(--ink) center/cover no-repeat;
  position: relative; overflow: hidden; color: #fff; text-decoration: none; display: block; }
.dir::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,29,.05) 30%, rgba(20,24,29,.72)); }
.dir .t { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; }
.dir .t b { display: block; font-size: 18px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.dir .t span { display: block; font-size: var(--fs-15); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .9; padding-top: 2px; }
.dir:hover { box-shadow: 0 16px 34px rgba(20,24,29,.22); }
.dir-badge { position: absolute; left: 14px; top: 14px; z-index: 1; background: var(--brand); color: #fff; font-size: var(--fs-15);
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--rp); box-shadow: 0 6px 16px rgba(234,106,12,.35); }
.dir.w2 { grid-column: span 2; }
.dir.h2 { grid-row: span 2; }
.dir.nophoto { background: var(--navy); }
.dir.nophoto::after { background: none; }
.dir.nophoto .c1, .dir.nophoto .c2 { position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.dir.nophoto .c1 { width: 140px; height: 140px; right: -40px; top: -50px; }
.dir.nophoto .c2 { width: 80px; height: 80px; left: -20px; bottom: -30px; }

/* ─── кабинет: тёмный мокап с подсветкой зон ───────────────────────────── */
/*  Приём дизайн-пакета, общий для страниц «Студиям», «Автопаркам» и
    «Поставщикам»: слева тёмное окно кабинета, справа четыре пункта, клик по
    пункту подсвечивает свою зону в окне. Один компонент на три страницы —
    иначе три копии разойдутся при первой же правке.
    Цвет верхней полоски задаётся переменной --cab-line: у каждой страницы
    своя (оранжевая, синяя, зелёная).  */
.cab { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: center; --cab-line: rgba(234,106,12,.8); }
.cab .mock { position: relative; overflow: hidden; background: var(--dk); border-radius: 24px; padding: 18px;
  box-shadow: 0 30px 70px rgba(20,24,29,.25); min-height: 420px; display: grid; grid-template-columns: 172px 1fr; gap: 14px; }
.cab .mock::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cab-line), transparent); }
.cab .side { display: flex; flex-direction: column; gap: 10px; color: rgba(255,255,255,.55); font-size: var(--fs-13); }
.cab .side b { color: #fff; font-size: var(--fs-16); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cab .side b i { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); display: block; }
/*  Пункты левой колонки – заголовки, как и всё, что справа, поэтому
 *  белые. Серыми они были заодно с подписями блока, и в одном кадре
 *  оказывалось два вида заголовков; выбранный пункт держит подложка,
 *  а не приглушённый текст у соседей. */
.cab .side span { padding: 7px 10px; border-radius: 9px; color: #fff; font-weight: 600; }
.cab .side span.on { background: rgba(255,255,255,.12); }
.cab .work { display: grid; gap: 10px; align-content: start; }
.cab .zone { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 14px;
  padding: 12px 14px; color: rgba(255,255,255,.75); font-size: var(--fs-13); transition: opacity .25s ease; }
.cab .zone b { display: block; color: #fff; font-size: var(--fs-15); margin-bottom: 4px; }
.cab.picked .zone { opacity: .35; }
.cab.picked .zone.on { opacity: 1; border-color: rgba(234,106,12,.45); }
.cab .picks { display: grid; gap: 10px; }
.cab .pick { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; text-align: left;
  padding: 16px 18px; border-radius: 16px; border: 1px solid var(--bd); background: transparent; cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s; }
.cab .pick:hover { border-color: var(--bdh); }
.cab .pick.on { background: var(--card); border-color: var(--brand); box-shadow: 0 12px 28px rgba(234,106,12,.12); }
.cab .pick i { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 800; background: var(--s3); color: var(--tx2); }
.cab .pick.on i { background: var(--brand); color: #fff; }
.cab .pick b { display: block; font-size: var(--fs-16); }
.cab .pick span { display: block; color: var(--tx2); font-size: var(--fs-13); margin-top: 2px; }
/*  Высота окна — под число зон: с четырьмя оно заполнено, с тремя тянуло
    вниз пустой чёрный подвал.  */
.cab.n3 .mock { min-height: 340px; }
@media (max-width: 980px) { .cab { grid-template-columns: 1fr; } .cab .mock { min-height: 320px; } }
@media (max-width: 620px) { .cab .mock { grid-template-columns: 1fr; } .cab .side { display: none; } }

/* ─── шаги на персиковой плашке ────────────────────────────────────────── */
/*  Второй приём пакета. Отличается от блока «Как мы работаем» на главной
    только числом колонок, поэтому стрелки считаются по их количеству.  */
.steps { position: relative; background: linear-gradient(135deg, var(--acc-tint) 0%, var(--s2) 60%, var(--acc-bg) 100%);
  border: 1px solid var(--acc-bd); border-radius: 28px; padding: 44px 40px 40px; }
.steps .sec-hd { margin-bottom: 24px; }
.steps .row3, .steps .row4 { display: grid; gap: 20px; position: relative; }
.steps .row3 { grid-template-columns: repeat(3, 1fr); }
.steps .row4 { grid-template-columns: repeat(4, 1fr); }
.steps .st { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--bd2); border-radius: 22px;
  padding: 24px; box-shadow: 0 24px 56px rgba(20,24,29,.10), 0 2px 6px rgba(20,24,29,.05); }
.steps .st .bgn { position: absolute; right: 16px; bottom: -14px; font-size: 96px; font-weight: 800; letter-spacing: -.05em;
  color: var(--s3); line-height: 1; pointer-events: none; }
.steps .st .lbl { display: flex; align-items: center; gap: 8px; position: relative; margin-bottom: 10px; }
.steps .st .lbl::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.steps .st h3 { font-size: 19px; position: relative; }
.steps .st p { color: var(--tx2); position: relative; margin-top: 6px; }
.steps .row3::before, .steps .row3::after, .steps .row4::before, .steps .row4::after {
  content: '→'; position: absolute; top: 50%; z-index: 2; width: 32px; height: 32px; margin-left: -16px;
  transform: translateY(-50%); display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; font-weight: 800; color: #fff; background: var(--brand); border-radius: 50%;
  box-shadow: 0 6px 16px rgba(234,106,12,.35); pointer-events: none; }
.steps .row3::before { left: calc((100% - 40px) / 3 + 10px); }
.steps .row3::after  { left: calc((100% - 40px) / 3 * 2 + 30px); }
.steps .row4::before { left: calc((100% - 60px) / 4 + 10px); }
.steps .row4::after  { left: calc((100% - 60px) / 4 * 3 + 50px); }
@media (max-width: 980px) {
  .steps { padding: 28px 20px 24px; }
  .steps .row3, .steps .row4 { grid-template-columns: 1fr; }
  .steps .row3::before, .steps .row3::after, .steps .row4::before, .steps .row4::after { display: none; }
}

/*  Песочная плашка под сеткой карточек — приём дизайн-пакета: она отделяет
    витрину от белой страницы и держит круги-акценты. Содержимое поднято над
    кругами z-индексом, сами круги обрезаны по радиусу.  */
.plate { position: relative; overflow: hidden; background: var(--s3); border-radius: 28px; padding: 32px; }
.plate > .c { position: absolute; border-radius: 50%; pointer-events: none; }
.plate > .grid, .plate > .sub, .plate > .split { position: relative; z-index: 1; }
@media (max-width: 760px) { .plate { padding: 20px; border-radius: 22px; } }
/*  Тёмная первая полоса — для страниц, которые говорят не с автовладельцем,
    а с компанией: автопарк, поставщик, правила. Приём дизайн-пакета; тёмный
    фон здесь смысловой, а не декоративный — он отделяет корпоративные
    страницы от клиентских, где полоса светлая.

    Оранжевый в акценте берём светлый (#FF9A4D): фирменный #EA6A0C на почти
    чёрном даёт 4,4:1 — ниже порога, и это тот же тон, что тёмная тема
    подставляет в --st-acc.  */
.hero.dark { background: var(--dk); color: #fff; position: relative; overflow: hidden; }
.hero.dark > .c { position: absolute; border-radius: 50%; pointer-events: none; }
.hero.dark .hero-grid { position: relative; z-index: 1; }
.hero.dark h1 .acc { color: #FF9A4D; }
.hero.dark .lead, .hero.dark .stats span { color: rgba(255,255,255,.72); }
.hero.dark .stats .sep { background: rgba(255,255,255,.18); }
.hero.dark .badge { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.82); }
.hero.dark .btn-g { background: transparent; color: #fff; border-color: rgba(255,255,255,.38); box-shadow: none; }
.hero.dark .btn-g:hover { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.5); }

/*  Карточка пилота в тёмной полосе: что именно запущено и где. Стоит рядом
    с обещанием, чтобы обещание было видно вместе с его границами.  */
.pilot { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r24);
  padding: 24px; color: #fff; display: flex; flex-direction: column; gap: 12px; }
/*  Строка заголовка карточки названа .top, а не .hd: .hd — это шапка сайта,
    залитая белым и приклеенная к верху; вложенность её не спасала.  */
.pilot .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pilot .top b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.pilot .top span { font-size: var(--fs-13); font-weight: 700; color: #FF9A4D;
  background: rgba(255,154,77,.14); border-radius: var(--rp); padding: 4px 10px; }
.pilot .kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-15); }
.pilot .kv i { font-style: normal; color: rgba(255,255,255,.68); }
.pilot .kv b { font-weight: 700; text-align: right; }
.pilot .foot { color: rgba(255,255,255,.6); font-size: var(--fs-13); }

/*  Полоска-утверждение с цветным краем: приём пакета для одной мысли,
    которую нельзя пропустить. Цвет края задаётся на месте — синий у
    автопарков, зелёный у поставщиков.  */
.note { position: relative; overflow: hidden; background: var(--s2); border: 1px solid var(--bd2);
  border-radius: 16px; padding: 18px 22px 18px 26px; }
.note::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--note-acc, var(--brand)); }
.note b { color: var(--tx); }

/*  Карточка обращения: конверт лежит фоном, крупно и бледно. Он не
    иллюстрация к тексту, а указатель — глаз находит блок «написать нам»
    раньше, чем прочитает заголовок.  */
.env { position: relative; overflow: hidden; }
.env > * { position: relative; z-index: 1; }
.env .bgi { position: absolute; right: -30px; bottom: -60px; width: 300px; color: var(--brand);
  opacity: var(--bgi-op); pointer-events: none; z-index: 0; }
.env .bgi svg { width: 100%; height: auto; stroke-width: 1; }
@media (max-width: 620px) { .env .bgi { width: 200px; right: -40px; bottom: -50px; } }

/*  Полоса формулы: те же доли факторов, что и в столбиках на «Правилах»,
    но одной строкой — так видно, что доли складываются в целое и другого
    слагаемого в формуле нет. Столбики отвечают на вопрос «сколько у
    фактора», полоса — на вопрос «из чего всё вместе».  */
.frm { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--s3); }
.frm i { display: block; }
.frm-lg { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.frm-lg span { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-15); color: var(--tx2); }
.frm-lg span::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--fc); }
.frm-lg b { color: var(--tx); font-weight: 700; }

/*  Фото в первой полосе: карточка, а не фон — на фоне текст пришлось бы
    затемнять, а затемнённое фото хуже читается и хуже выглядит.  */
.shot { border-radius: var(--r24); overflow: hidden; box-shadow: 0 32px 72px rgba(20,24,29,.18); }
.shot img { display: block; width: 100%; height: 420px; object-fit: cover; }
@media (max-width: 980px) { .shot img { height: 280px; } }

/*  Документ с оглавлением. Оглавление липкое: длинные оферты читают по
    пунктам, и якорь должен оставаться под рукой, а не уезжать вверх.
    scroll-margin — под липкую шапку сайта: без него якорь встаёт ровно
    под неё и первая строка раздела оказывается закрытой.  */
.doc-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.doc-wrap.solo { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 88px; display: grid; gap: 6px; max-height: calc(100vh - 120px); overflow: auto;
  padding-right: 6px; }
.toc a { font-size: var(--fs-15); color: var(--tx2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--link); text-decoration: underline; }
.toc a.l3 { padding-left: 12px; font-size: var(--fs-13); }
.toc .overline { margin-bottom: 4px; }
.doc h2, .doc h3 { scroll-margin-top: 88px; }
@media (max-width: 900px) {
  .doc-wrap { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
}

/*  Карта присутствия. Контур в SVG, отметки — обычными ссылками поверх:
    так они доступны с клавиатуры и читаются экранным диктором, чего не
    даёт ни картинка, ни чужой виджет. Цвета — токенами, чтобы карта
    переключалась вместе с темой.  */
.map { position: relative; background: var(--p2-bg); border: 1px solid var(--bd); border-radius: var(--r24);
  overflow: hidden; padding: 0; }
.map svg { display: block; width: 100%; height: auto; }
.map .near { fill: var(--s3); stroke: var(--bd2); stroke-width: 1.5; }
.map .land { fill: var(--card); stroke: var(--bdh); stroke-width: 1.8; }
.map .pins { position: absolute; inset: 0; }
.map .pt { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--tx); white-space: nowrap; }
/*  Отметка тёмно-оранжевая, а не фирменная: #EA6A0C на голубой подложке
    карты даёт 2,7 — ниже порога для графики. Тот же тон ступенью темнее
    читается и на воде, и на суше.  */
.map .pt i { width: 10px; height: 10px; border-radius: 50%; background: var(--pin); flex: none;
  box-shadow: 0 0 0 3px var(--card), 0 2px 6px rgba(20,24,29,.25); }
.map .pt span { font-size: var(--fs-13); font-weight: 700; background: var(--card); border: 1px solid var(--bd2);
  border-radius: 8px; padding: 2px 7px; opacity: 0; transition: opacity .12s; pointer-events: none; }
.map .pt:hover span, .map .pt:focus-visible span, .map .pt.on span { opacity: 1; }
/*  Текущий город на карте каталога: точка крупнее и подпись видна всегда —
    её и ищут глазами, открыв карту.  */
.map .pt.on i { width: 14px; height: 14px; background: var(--pin); box-shadow: 0 0 0 4px var(--card), 0 2px 8px rgba(20,24,29,.3); }
.map .pt.on span { border-color: var(--brand); }
.map .pt:hover i, .map .pt:focus-visible i { background: var(--brand); box-shadow: 0 0 0 4px var(--card), 0 2px 8px rgba(20,24,29,.3); }
/*  На узком экране подписи не помещаются, а точки слипаются: карту
    показываем меньше и без подписей — список городов ниже никуда не делся.  */
@media (max-width: 620px) { .map .pt span { display: none; } }

/*  Карта сайта в две колонки разной ширины: слева стопка коротких
    списков, справа перечень документов, которому нужна строка целиком.  */
.sm-cols { display: grid; gap: 20px; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.sm-cols .col { display: grid; gap: 20px; align-content: start; }
@media (max-width: 860px) { .sm-cols { grid-template-columns: 1fr; } }

/*  Столбик ссылок карты сайта: ссылки идут списком, а не строкой через
    разделитель, — по такому списку глаз ищет раздел, а не читает фразу.  */
.sm-list { display: grid; gap: 7px; margin-top: 10px; }
.sm-list a { font-size: var(--fs-15); width: max-content; max-width: 100%; }
/*  Длинные перечни — направления и города — в несколько колонок: одним
    столбцом девятнадцать строк превращаются в ленту, по которой приходится
    скроллить, вместо списка, который виден целиком.  */
.sm-list.cols { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 7px 20px; }

/*  Пара кнопок под заголовком. Правила для .cta не было вовсе: кнопки
    держались друг за друга только пробелом между тегами, а там, где разметка
    склеена без переноса, слипались вплотную. Промежуток задаём явно.  */
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/*  Синяя плашка того же приёма — для блоков, которые говорят не со студией,
    а с соседним видом исполнителя (перевозчики, автопарки). Цвета взяты
    токенами --br-*, а не числами из пакета: тёмная тема меняет их сама.  */
.plate-b { background: var(--br-bg); border: 1px solid var(--br-bd); border-radius: 24px; }

/*  Виджет заявки в первой полосе страницы «Студиям»: что студия увидит в
    кабинете. Это макет, а не живые данные, — цифры подписаны как пример.
    Окно ответа показано полосой, а не тикающим таймером: секунды, которые
    идут сами по себе, обещают живую заявку, которой на витрине нет.  */
.lead-w { background: var(--card); border: 1px solid var(--bd); border-radius: var(--r24); padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 32px 72px rgba(20,24,29,.16), 0 2px 8px rgba(20,24,29,.06); }
.lead-w .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lead-w .top b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.lead-w .tmr { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-15); font-weight: 700;
  color: var(--acc-tx); background: var(--acc-bg); border: 1px solid var(--acc-bd); border-radius: var(--rp); padding: 5px 10px; }
.lead-w .tmr::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.lead-w .win { height: 4px; border-radius: 2px; background: var(--bd); overflow: hidden; }
.lead-w .win i { display: block; height: 100%; background: var(--brand); }
.lead-w .req { background: var(--s2); border: 1px solid var(--bd2); border-radius: 16px; padding: 14px 16px; }
.lead-w .req h3 { font-size: var(--fs-16); }
.lead-w .req .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--tx2); font-size: var(--fs-13); margin: 4px 0 8px; }
.lead-w .req p { font-size: var(--fs-15); color: var(--tx2); }
.lead-w .ofr { display: grid; gap: 8px; }
.lead-w .of { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  border: 1px solid var(--bd2); border-radius: 14px; padding: 10px 14px; }
.lead-w .of b { font-size: var(--fs-15); }
.lead-w .of .num { font-weight: 800; letter-spacing: -.02em; }
.lead-w .of span:not(.num) { grid-column: 1 / -1; color: var(--tx2); font-size: var(--fs-13); }
.lead-w .of.you { border-style: dashed; border-color: var(--brand); background: var(--acc-bg); }
.lead-w .of.you b, .lead-w .of.you .num { color: var(--acc-tx); }
.lead-w .foot { color: var(--mu); font-size: var(--fs-13); }
@media (max-width: 760px) { .lead-w { padding: 18px; } }
/*  На узком экране заголовок и метка окна ответа не помещаются в строку:
    метка ломалась пополам вокруг точки. Ставим их друг под другом.  */
@media (max-width: 620px) {
  .lead-w .top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .lead-w .tmr { white-space: nowrap; }
}

/*  Шапка раздела: выбор района и две кнопки одной строкой.
    Общее правило для полей задаёт select ширину во всю колонку — она нужна
    в формах и мешает здесь: поле уезжало на свою строку и выталкивало
    кнопки вниз. Ширину возвращаем по содержимому и выравниваем по высоте
    кнопок, а не по высоте поля формы.  */
.sec-hd .hd-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sec-hd .hd-btns select { width: auto; min-width: 150px; min-height: 42px; padding: 8px 12px; }
.join { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.join h2 { font-size: 40px; letter-spacing: -.035em; text-wrap: balance; max-width: 760px; }
.join p { font-size: var(--fs-16); color: var(--tx2); }
.jcard { border-radius: 24px; color: #fff; padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative;
  overflow: hidden; text-decoration: none; }
.jcard .c { position: absolute; border-radius: 50%; background: rgba(255,255,255,.10); }
/*  Знак в плашке: 31px вместо 24px и строка ровно по высоте знака.
    Без line-height: 1 строка наследует межстрочный интервал и оказывается
    выше самого символа — flex центрирует строку, а глаз видит знак
    сдвинутым вниз.  */
.jcard .ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.18); display: flex; align-items: center;
  justify-content: center; line-height: 1; position: relative; }
.jcard h3 { font-size: 22px; padding-top: 6px; position: relative; }
.jcard p { color: rgba(255,255,255,.88); flex: 1; position: relative; }
.jcard .go { background: #fff; text-align: center; padding: 13px; border-radius: var(--rp); font-size: var(--fs-15); font-weight: 800;
  margin-top: 6px; position: relative; }
.jcard.j1 { background: var(--brand); box-shadow: 0 24px 56px rgba(234,106,12,.35); } .jcard.j1 .go { color: #B4460B; }
.jcard.j2 { background: #1E3A5F; box-shadow: 0 24px 56px rgba(30,58,95,.35); } .jcard.j2 .go { color: #1E3A5F; }
.jcard.j3 { background: radial-gradient(160px 160px at 100% 0%, rgba(234,106,12,.45), transparent 70%), #2B2F36;
  box-shadow: 0 24px 56px rgba(43,47,54,.35); } .jcard.j3 .go { color: #2B2F36; }
.jcard.j4 { background: #1F6B4A; box-shadow: 0 24px 56px rgba(31,107,74,.35); } .jcard.j4 .go { color: #1F6B4A; }
.jcard:hover .go { background: #FFF1E6; }

/* ─── плашки ───────────────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-13); font-weight: 600;
  padding: 5px 10px; border-radius: var(--rp); background: var(--s2); color: var(--tx); border: 1px solid var(--bd); }
.pill-a { background: var(--acc-tint); color: var(--acc-tx); border-color: transparent; }
/*  Пиктограммы линейного набора: рисуются контуром цвета текста, поэтому
    подчиняются теме и не требуют отдельной палитры. Не сжимаются в узкой
    строке — иначе круг превращается в овал.  */
.i { display: block; flex: none; }
.pill .i, .rate .i, .foot .i { opacity: .75; }

.pill-b { background: var(--br-bg); color: var(--br-tx); border-color: var(--br-bd); }
/* перевозчик — navy, как в пакете: бейдж «Эвакуатор», кнопка «Вызвать», обводка карточки */
.pill-n { background: #E9EEF4; color: #1E3A5F; border-color: transparent; font-weight: 800; }
/*  Тёмно-синяя кнопка. Текст берём токеном, а не белым: в тёмной теме
    --navy становится светло-голубым, и белая подпись на нём пропадала.  */
.btn-n { background: var(--navy); color: var(--onink); }
.btn-n:hover { filter: brightness(1.08); }
.scard.carrier { border-color: var(--navy); box-shadow: 0 10px 24px rgba(30,58,95,.12); }
.scard .tow-rates .kv { padding: 6px 0; }
.scard .tow-rates .kv i { white-space: nowrap; }
.tow-card { border-color: var(--navy); }
.tow-card h2, .tow-card h3 { color: var(--navy); }
.chips .sep { width: 1px; align-self: stretch; background: var(--bd2); margin: 4px 4px; }
.chip.navy { border-color: var(--navy); color: var(--navy); font-weight: 700; }
.chip.navy.on { background: var(--navy); color: #fff; }
.hf-more { display: block; text-align: center; font-weight: 700; font-size: var(--fs-15); margin-top: 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* полоса-пояснение и блок опасности */
.strip { background: var(--acc-bg); color: var(--st-tx); border: 1px solid var(--acc-bd); border-radius: 14px;
  padding: 14px 16px 14px 44px; font-size: var(--fs-15); font-weight: 600; position: relative; }
.strip::before { content: '★'; color: var(--star); position: absolute; left: 16px; top: 13px; }
.strip b, .strip a { color: var(--acc-tx); }
.danger { background: var(--dn-bg); color: var(--dn-tx); border: 1px solid var(--dn-bd); border-radius: 14px;
  padding: 14px 16px; display: flex; gap: 12px; }
.danger .ic { color: var(--dn-ic); font-size: var(--fs-20); line-height: 1.2; flex: none; }

/* рейтинг и полосы критериев */
.rating { display: flex; align-items: baseline; gap: var(--sp8); }
.rating .star { color: var(--star); font-size: 1.1em; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 8px 0; }
.bar .track { grid-column: 1 / -1; height: 6px; background: var(--s3); border-radius: 3px; overflow: hidden; }
.bar .track i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

/* фотографии до / после */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: 14px; overflow: hidden; }
.ba figure { margin: 0; position: relative; background: var(--s3); aspect-ratio: 4 / 3; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba figcaption { position: absolute; left: 6px; bottom: 6px; font-size: var(--fs-12); font-weight: 700;
  background: var(--card); color: var(--tx); padding: 2px 8px; border-radius: var(--rp); }
.ba .none { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--mu); font-size: var(--fs-12); }

/* пустое состояние, ошибка, загрузка */
.empty { padding: var(--sp32) var(--sp24); text-align: center; color: var(--tx2); background: var(--s2); border: 1px solid var(--bd); border-radius: var(--r20); }
.empty h3 { color: var(--tx); margin-bottom: var(--sp8); }
/*  Экран загрузки. Занимает ту же высоту, что и будущая страница, – без
 *  этого футер подпрыгивал вверх и обратно на каждом переходе. Кольцо
 *  появляется через 0,2 с: на быстрых ответах его просто не видно. */
.loading { display: flex; align-items: center; justify-content: center;
  min-height: min(62vh, 560px); padding: var(--sp48) 0; color: var(--mu); }
.loading .spin { width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--bd2); border-top-color: var(--brand);
  animation: spin .85s linear infinite, spin-in .3s ease .2s both; }
.loading .sr { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .loading .spin { animation: spin 2.4s linear infinite, spin-in .3s ease .2s both; }
}
.skel { background: var(--s3); border-radius: var(--r20); min-height: 120px; }

/* документ (markdown) */
.doc { max-width: 760px; }
.doc h1 { margin: var(--sp24) 0 var(--sp12); }
.doc h2 { margin: var(--sp24) 0 var(--sp8); font-size: var(--fs-24); }
.doc h3 { margin: var(--sp16) 0 var(--sp8); }
.doc table { border-collapse: collapse; width: 100%; margin: 0 0 var(--sp16); font-size: var(--fs-13); }
.doc th, .doc td { border: 1px solid var(--bd2); padding: var(--sp8); text-align: left; vertical-align: top; }
.doc th { background: var(--s3); font-weight: 700; }
.doc .tbl { overflow-x: auto; }
.doc blockquote { margin: 0 0 var(--sp12); padding: var(--sp8) var(--sp16); border-left: 3px solid var(--bd2); color: var(--tx2); }
.doc hr { border: 0; height: 1px; background: var(--bd2); margin: var(--sp24) 0; }
.doc code { background: var(--s3); padding: 1px 5px; border-radius: 4px; font-size: 0.93em; }
.ph { background: var(--acc-tint); color: var(--acc-tx); padding: 0 5px; border-radius: 4px; font-weight: 700; font-size: 0.93em; }
/*  Единственное место на сайте мельче 15 px, и это осознанно.
 *  Строка «Редакция 1 · действует с … · адресат: …» — служебная подпись
 *  над заголовком документа, а не текст для чтения: она нужна тому, кто
 *  сверяет редакцию, и мешает тому, кто пришёл читать. Правка по просьбе
 *  Евгения 09.09.2026. Общее правило «ничего мельче 15» остаётся в силе, и
 *  токен --fs-13 по-прежнему равен 15: уменьшен один элемент, а не шкала. */
.doc-meta { color: var(--mu); font-size: 12px; margin-bottom: var(--sp16); }
/*  Та же подпись на карточке в списке документов: класс один, чтобы
 *  размер не пришлось менять в двух местах и они не разъехались. */
.card .doc-meta { margin: 8px 0 0; }

/*  Раздел списка документов: заголовок адресата слева, карточки справа.
 *  Обычная сетка на этой странице оставляла пустые ряды — у «Мастерам»,
 *  «Поставщикам» и «Автопаркам» по одной-две карточки, а строка сетки всё
 *  равно занимала ширину страницы. В две колонки пустот не остаётся, и
 *  группировка по адресатам при этом сохраняется. На узком экране
 *  сворачивается в обычный столбик. */
.doc-sec { display: grid; grid-template-columns: 210px minmax(0, 1fr);
           gap: var(--sp24); align-items: start; margin: var(--sp32) 0 0; }
.doc-sec > h2 { font-size: var(--fs-24); margin: 0; padding-top: 4px; }
.doc-sec .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
/*  Заливка идёт вместо обводки, а не вместе с ней: два способа отделить
 *  карточку от фона сразу — это шум. Песочный --s3 уже фирменный, на нём
 *  стоят подложки вкладок и скелетоны. */
.doc-sec .card { background: var(--s3); border-color: transparent; box-shadow: none; }
.doc-sec a.card:hover { border-color: var(--bdh); box-shadow: none; }
@media (max-width: 760px) {
  .doc-sec { grid-template-columns: minmax(0, 1fr); gap: var(--sp12); }
  .doc-sec > h2 { font-size: var(--fs-20); }
}

/* ─── футер ────────────────────────────────────────────────────────────── */
.ft { background: #14181D; color: #fff; padding: 56px 0 28px; margin-top: var(--sp64); }
.ft .cols { display: grid; gap: 32px; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; }
.ft .brand { display: flex; flex-direction: column; gap: 14px; }
.ft .brand .logo { color: #fff; }
.ft .brand p { color: rgba(255,255,255,.6); max-width: 260px; }
.ft .brand .btn { width: max-content; }
.ft .brand .apps { border-top: 0; padding-top: 6px; gap: 8px; }
.ft .brand .overline { color: rgba(255,255,255,.45); }
.ft .store { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04); color: #fff; padding: 6px 10px; }
.ft .store:hover { background: rgba(255,255,255,.12); }
.ft h4 { font-size: var(--fs-15); color: #fff; margin-bottom: 14px; font-weight: 800; }
.ft ul { list-style: none; padding: 0; margin: 0; }
.ft li { margin: 0 0 10px; }
/*  Ссылки футера, но не кнопки. «Мобильное приложение» стоит и в шапке,
 *  и здесь – одна кнопка с одной подписью; общее правило футера красило
 *  её подпись в полупрозрачный белый и подчёркивало при наведении, и
 *  человек видел два разных поведения у одной кнопки. */
.ft a:not(.btn), .ft button.lnk { color: rgba(255,255,255,.7); text-decoration: none; }
.ft a:not(.btn):hover, .ft button.lnk:hover { color: #fff; text-decoration: underline; }
.ft button.lnk { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; font-family: inherit; }
.ft .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-15); }
.ft .legal a { color: rgba(255,255,255,.75); }
.ft .legal .ph { background: rgba(255,255,255,.12); color: #fff; }

/* ─── cookie-баннер и настройка ────────────────────────────────────────── */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: var(--sp16); }
.cookie .box { max-width: 900px; margin: 0 auto; background: #14181D; color: #fff; border-radius: 20px; padding: 18px 22px;
  box-shadow: 0 16px 48px rgba(0,0,0,.35); display: flex; gap: 16px 24px; align-items: center; flex-wrap: wrap; }
.cookie .box .txt { flex: 1 1 380px; color: rgba(255,255,255,.8); }
.cookie .box .txt b { color: #fff; }
.cookie .box .txt a { color: #fff; }
.cookie .row { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .btn-g { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; }
.cookie .btn-g:hover { background: rgba(255,255,255,.12); color: #fff; }
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(10,13,18,.55); display: flex;
  align-items: flex-end; justify-content: center; padding: var(--sp16); }
.modal .sheet { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; background: var(--card);
  border: 1px solid var(--bd); border-radius: var(--r24); padding: var(--sp24); }
@media (min-width: 640px) { .modal { align-items: center; } }
.opt { display: flex; gap: var(--sp12); align-items: flex-start; padding: var(--sp12) 0; border-top: 1px solid var(--bd); }
.opt input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--act); }
.opt b { display: block; }
.opt .d { color: var(--tx2); font-size: var(--fs-13); }

/* ─── адаптив ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: var(--sp32); }
  .hero h1 { font-size: 44px; }
  .dirs { grid-template-columns: repeat(4, 1fr); }
  .how { grid-template-columns: 1fr; }
  /*  В одну колонку шаги идут сверху вниз — стрелка вправо там врала бы. */
  .how::before, .how::after { display: none; }
  .ft .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .nav-wrap { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .hd-actions .btn-p { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .dirs { grid-template-columns: repeat(2, 1fr); }
  .dir.w2, .dir.h2 { grid-column: auto; grid-row: auto; }
  .why { padding: 28px 20px; }
  .join h2 { font-size: 30px; }
  .join p { white-space: normal; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 var(--sp16); }
  .hero { padding-top: var(--sp32); padding-bottom: var(--sp32); }
  .stats > div { flex: 1 1 auto; }
  .hero h1 { font-size: 32px; }
  .hd .wrap { min-height: 60px; }
  .hd-actions .btn-g { min-height: 40px; padding: 0 14px; }
  h1 { font-size: var(--fs-28); }
  .page-hd h1 { font-size: var(--fs-30); }
  .sec-hd h2, .why .hd2 h2 { font-size: var(--fs-28); }
  .sec { margin-top: var(--sp48); }
  .hform { padding: 20px; }
  .hform .two { grid-template-columns: 1fr; }
  .stats { gap: 16px; }
  .dirs { grid-auto-rows: 92px; }
  /* на двух колонках плашке «Чаще всего» места рядом с именем нет – в верхний угол */
  .dir-badge { top: 12px; left: 12px; padding: 4px 9px; }
  .chips .sep { display: none; }
  .ft .cols { grid-template-columns: 1fr; }
  .price { font-size: var(--fs-20); }
}
@media print { .hd, .ft, .cookie, .modal, .menu { display: none; } }
