/* Шрифты подключены <link>-ом в layouts/app.blade.php, а не @import-ом отсюда:
   @import виден браузеру только после того, как этот файл скачан и разобран, —
   получалась цепочка «сначала CSS, потом шрифты», вместо двух параллельных запросов. */

:root{
  --ink:#16242C;
  --ink-soft:#1C2B34;
  --surface:#FFFFFF;
  --ground:#F4F6F7;
  --line:#DDE3E6;
  --line-strong:#CFD8DC;
  --text:#16242C;
  --muted:#7B878E;
  --muted-2:#4E5C64;
  --accent:#0E5A7D;
  --accent-press:#0A4560;
  --accent-soft:#7FADC2;
  /* Пара к --accent по образцу --ok/--ok-bg и --warn/--warn-bg: подложка под
     включённое состояние акцентом. До полосы «моя машина» пары не было. */
  --accent-bg:#E7F0F6;
  --accent-warm:#E0522A;
  --danger:#C33F2E;
  --ok:#2F8F5F;
  --ok-bg:#E5F3EA;
  --warn:#B07D22;
  --warn-bg:#FBF1DF;
  --r-sm:6px; --r-md:10px; --r-lg:14px;
  --sh-1:0 1px 2px rgba(9,26,35,.06);
  --sh-2:0 2px 8px rgba(9,26,35,.08);
  --sh-3:0 18px 44px -28px rgba(9,26,35,.4);
  --maxw:1240px;
  --hdr-h:72px;
  /* Липкая шапка + воздух. Одна величина на три места: якорный отступ прокрутки
     и `top` липких колонок (фильтры, сводка корзины) — иначе якорь и колонка
     разъезжаются при любой правке высоты шапки. */
  --stick-top:calc(var(--hdr-h) + 16px);
}
*{box-sizing:border-box}
/* full-bleed hero uses 100vw, which counts the scrollbar and sticks out a few px:
   clip (not hidden) kills the sideways scroll without making a scroll container,
   which would break the sticky header and sidebars */
/* scrollbar-gutter: модалки и шторка фильтров гасят прокрутку через
   `body.style.overflow='hidden'` — полоса прокрутки исчезала, страница шире на её
   ширину, и весь макет прыгал вбок в момент открытия и закрытия. Место под полосу
   держим всегда: заодно пропадает разъезд между короткими и длинными страницами.
   scroll-padding-top: якорь и `scrollIntoView` иначе останавливаются ровно под
   липкой шапкой, и цель прокрутки не видно. */
html{overflow-x:hidden;overflow-x:clip;scrollbar-gutter:stable;
  scroll-behavior:smooth;scroll-padding-top:var(--stick-top)}
body{margin:0;background:var(--ground);color:var(--text);
  font-family:'Onest',system-ui,sans-serif;font-size:16px;line-height:1.55;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;overflow-x:clip}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
main.wrap{padding-top:24px;padding-bottom:56px}
/* Hero — full-bleed секция с собственным фоном: общий отступ main оставлял между
   шапкой и сеткой героя ничейную белую полосу. Первый экран примыкает к шапке. */
main.wrap:has(> .hero:first-child){padding-top:0}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer}
/* anchor-styled classes reused on <button> (modal triggers) — neutralise UA button chrome */
.btn-order,.btn-service-outline,.cta-band a,.cta-band button{border:none;background:none}
img{max-width:100%}
/* атрибут hidden обязан побеждать любой display у компонента:
   иначе каждый новый flex/grid-элемент тихо проступает сквозь [hidden] */
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
.mono{font-family:'IBM Plex Mono',monospace;font-variant-numeric:tabular-nums}
h1,h2,h3{text-wrap:balance}
h1,h2{font-family:'Onest',system-ui,sans-serif;font-weight:700;letter-spacing:-.01em}

/* annotation label — technical drawing vernacular */
.anno{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.anno::before{content:'';width:10px;height:10px;border-left:1.5px solid var(--accent);border-bottom:1.5px solid var(--accent);flex:none}
.anno span{font-family:'IBM Plex Mono',monospace;font-size:11.5px;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.anno::after{content:'';height:1px;background:var(--line);flex:1}

/* ---------- header ---------- */
.hdr{background:var(--surface);color:var(--text);position:sticky;top:0;z-index:50;
  border-bottom:1px solid var(--line)}

/* ---------- «моя машина»: полоса профиля под шапкой ---------- */
/* Липнет вслед за шапкой, а не вместе с ней: собственный `top` = высота шапки,
   иначе полоса уезжает под неё при прокрутке. z-index ниже шапки по той же причине —
   выпадающие панели шапки (каталог, подсказки поиска) обязаны накрывать полосу.
   Красится акцентом, а не подложкой: на --ground полоса читалась как серое на сером
   и терялась — ровно тот случай, когда покупатель забывает про выбранную машину и
   не понимает, почему выдача «неправильная». Акцент, а не зелёный: зелёное в
   витрине уже значит «подходит вашей» (см. .vfit), и вторым его смыслом «машина
   выбрана» сигнал вердикта размывается. Полоса при этом остаётся состоянием, а не
   призывом: своей кнопки-акцента у неё нет, спорить с поиском и корзиной нечем. */
.vbar{position:sticky;top:var(--hdr-h);z-index:49;background:var(--accent-bg);
  box-shadow:inset 0 2px 0 var(--accent);border-bottom:1px solid var(--line)}
.vbar .wrap{display:flex;align-items:center;gap:10px;min-height:38px;
  padding-top:6px;padding-bottom:6px;flex-wrap:wrap}
/* Полоса добавляет себя к высоте «занятого верха»: липкие колонки (фильтры, сводка
   корзины) и якорная прокрутка считают отступ от --stick-top, и без этой поправки
   они уезжали бы ровно под полосу. Одна величина на оба места, как и в :root. */
@media (min-width:641px){
  html:has(.vbar){scroll-padding-top:calc(var(--hdr-h) + 51px + 16px)}
  body:has(.vbar){--stick-top:calc(var(--hdr-h) + 51px + 16px)}
}
.vbar-logo{width:22px;height:22px;object-fit:contain;flex:none}
.vbar-label{font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--accent);font-weight:600}
.vbar-car{font-size:14px;font-weight:600;color:var(--ink)}
.vbar-years{font-size:12.5px;color:var(--muted-2)}
.vbar-actions{margin-left:auto;display:flex;align-items:center;gap:14px}
.vbar-change,.vbar-forget{font-size:13px;color:var(--muted-2);border:none;background:none;padding:0}
.vbar-change:hover,.vbar-forget:hover{color:var(--accent)}
.vbar-forget{color:var(--muted)}
.vbar-forget:hover{color:var(--danger)}
@media (max-width:640px){
  /* На телефоне полоса не липнет: две липкие строки съедают треть экрана,
     а «моя машина» — справка, ради которой не жертвуют высотой выдачи.
     Ужимаем до одной строки: подпись и годы уходят (знак марки и имя модели
     сами говорят, что это за строка), иначе полоса разъезжается на четыре
     ряда и на первом экране от героя не остаётся ничего. */
  .vbar{position:static}
  .vbar .wrap{gap:8px;flex-wrap:nowrap;min-height:34px}
  .vbar-label,.vbar-years{display:none}
  .vbar-car{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .vbar-actions{gap:14px;flex:none}
}

/* Вердикт применимости в карточке товара. Три состояния красятся тремя смыслами
   палитры (ok / warn / нейтраль) — «не для вашей» намеренно жёлтое, а не красное:
   это не ошибка покупателя и не поломка, товар исправен и его можно купить. */
.vfit{display:flex;align-items:flex-start;gap:10px;margin:14px 0 0;padding:11px 14px;
  border-radius:var(--r-md);font-size:14px;line-height:1.4}
.vfit svg{width:19px;height:19px;flex:none;margin-top:1px}
.vfit b{display:block;font-weight:600}
.vfit small{display:block;font-size:12.5px;margin-top:2px;color:var(--muted-2)}
.vfit small a{color:inherit;text-decoration:underline}
.vfit--yes{background:var(--ok-bg);color:var(--ok)}
.vfit--no{background:var(--warn-bg);color:var(--warn)}
.vfit--unknown{background:var(--ground);color:var(--muted-2);border:1px solid var(--line)}
.hdr .wrap{display:flex;align-items:center;gap:20px;height:var(--hdr-h)}
.brand{display:flex;flex-direction:column;justify-content:center;gap:1px;flex:none}
.brand-mark{width:32px;height:32px;flex:none}
.brand-name{font-family:'Onest',system-ui,sans-serif;font-size:24px;font-weight:700;
  letter-spacing:-.02em;line-height:1.1}
/* Подпись знака — тем же моно-стилем, что и прочие служебные метки (.anno, лейблы
   полей): читается как подпись к логотипу, а не как второй заголовок. */
.brand-tagline{font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted);white-space:nowrap}
footer .brand-name{font-size:20px}
.brand-name b{color:var(--accent)}
header nav{display:flex;align-items:center;gap:18px;flex:none}
header nav a{color:var(--muted-2);font-size:14px;transition:color .18s}
header nav a:hover{color:var(--accent)}
.nav-link-btn{color:var(--muted-2);font-size:14px;transition:color .18s;font-family:inherit;
  background:none;border:none;padding:0;cursor:pointer}
.nav-link-btn:hover{color:var(--accent)}
.f-link-btn{color:inherit;font-size:inherit;font-family:inherit;text-align:left;
  background:none;border:none;padding:0;cursor:pointer}
footer .f-link-btn:hover{color:var(--accent)}

/* Каталог — якорь навигации: единственный элемент шапки с заливкой, читается
   как вход в товар, а не как ещё одна ссылка. */
.catalog-menu{position:relative;flex:none}
.catalog-btn{display:flex;align-items:center;gap:9px;height:44px;padding:0 16px;border-radius:var(--r-md);
  background:var(--accent);color:#fff;font-size:14.5px;font-weight:600;white-space:nowrap;transition:background .18s}
.catalog-btn:hover{background:var(--accent-press);color:#fff}
.catalog-btn svg{width:17px;height:17px;flex:none}
.catalog-panel{position:absolute;top:calc(100% + 10px);left:0;width:560px;z-index:60;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);box-shadow:var(--sh-2);
  padding:8px}
/* Категорий полтора десятка: в одну колонку список закрывал бы весь первый экран. */
.catalog-panel ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:1px 8px}
.catalog-panel li a{display:block;padding:9px 12px;border-radius:6px;font-size:14.5px;color:var(--text);transition:background .15s}
.catalog-panel li a:hover{background:var(--ground);color:var(--accent)}
.catalog-panel-all{display:block;margin-top:6px;padding:10px 12px;border-top:1px solid var(--line);
  font-size:13px;font-weight:600;color:var(--accent)}

/* inline-flex, а не голая высота: класс висит и на <a> (шапка), где line-height
   не центрирует текст внутри заданных 40px. */
.btn-outline{display:inline-flex;align-items:center;justify-content:center;
  height:40px;padding:0 16px;border-radius:var(--r-md);border:1px solid var(--line-strong);
  background:transparent;color:var(--text);font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;
  white-space:nowrap;transition:border-color .18s,color .18s}
.btn-outline:hover{border-color:var(--accent);color:var(--accent)}

/* Без max-width: с потолком в 480px шапка обрывалась задолго до правого края
   своего блока, и справа висела пустота шириной с само поле. Поиск забирает
   весь остаток ряда, контакты прижаты к краю. */
.search-form{flex:1;min-width:0;position:relative}
.search-form input{width:100%;height:44px;border-radius:var(--r-md);border:1px solid var(--line-strong);
  background:var(--ground);color:var(--text);padding:0 14px 0 42px;font-size:14.5px}
.search-form input::placeholder{color:var(--muted)}
.search-form input:focus{background:#fff;border-color:var(--accent);outline:none}
.search-form svg{position:absolute;left:14px;top:13px;width:18px;height:18px;color:var(--muted);pointer-events:none}

.hdr-contacts{display:flex;flex-direction:column;gap:3px;flex:none;min-width:0}
.hdr-phone{display:flex;align-items:center;gap:8px;flex:none;font-weight:600;font-size:14.5px;
  font-family:'IBM Plex Mono',monospace;color:var(--text);white-space:nowrap}
.hdr-phone svg{width:16px;height:16px;color:var(--accent)}
.hdr-phone:hover{color:var(--accent)}
/* Адрес — вторая строка под телефоном; на узких экранах отрезается многоточием,
   а не переносится: шапка не должна расти в высоту. */
.hdr-address{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);
  max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .18s}
.hdr-address svg{width:13px;height:13px;flex:none;color:var(--accent-soft)}
.hdr-address span{overflow:hidden;text-overflow:ellipsis}
.hdr-address:hover{color:var(--accent)}
.hdr-address:hover svg{color:var(--accent)}

/* mobile-only floating call button — desktop already shows the phone in .hdr-phone */
.fab-call{display:none;position:fixed;right:16px;bottom:16px;z-index:50;width:52px;height:52px;
  border-radius:50%;background:var(--accent);color:#fff;align-items:center;justify-content:center;
  box-shadow:var(--sh-3)}
.fab-call svg{width:22px;height:22px}
.modal-open .fab-call{display:none}

/* ---------- hero: light, drafting-grid, two columns ---------- */
/* Вертикаль героя задаёт только .hero-copy: общий section{padding:52px 0} ложился
   поверх неё вторым отступом и добавлял 104px пустого фона — из-за него первый ряд
   плиток каталога уходил за сгиб. Один отступ, один источник. */
.hero{position:relative;overflow:hidden;padding:0;
  background:
    linear-gradient(90deg, rgba(14,90,125,.07) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(0deg, rgba(14,90,125,.07) 1px, transparent 1px) 0 0/40px 40px,
    var(--ground);
  width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
.hero::before{content:'';position:absolute;top:20px;right:calc(50% - var(--maxw)/2 + 20px);width:22px;height:22px;
  border:1.5px solid rgba(14,90,125,.35);border-left:none;border-bottom:none}
/* Одна колонка: правую занимала инструкция «как это работает», которая пересказывала
   то, что и так делает форма из трёх селектов, и дублировала полосу фактов под героем. */
.hero-grid{display:grid;position:relative}
.hero-copy{position:relative;z-index:2;padding:56px 0 32px;display:flex;flex-direction:column}
.hero-copy .anno-eyebrow{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--accent);margin-bottom:16px;display:flex;align-items:center;gap:8px}
.hero-copy .anno-eyebrow::before{content:'';width:8px;height:8px;border-left:1.5px solid var(--accent);border-bottom:1.5px solid var(--accent);flex:none}
/* Слоганы сменяются, длина разная — под h1 и лид резервируем высоту самого
   длинного (2 строки), иначе форма подбора прыгает на каждой смене. */
/* Плакатный кегль: в одноколоночном герое заголовок в 36px оставлял справа треть
   пустоты. Ширина ограничена так, чтобы любой из слоганов лёг ровно в две строки. */
.hero h1{font-size:clamp(34px,4vw,54px);line-height:1.08;letter-spacing:-.025em;margin:0 0 18px;
  font-weight:700;max-width:25ch;min-height:2.16em;color:var(--text)}
.hero h1 .is-accent{color:var(--accent)}
.hero-copy.is-typing h1::after{content:'';display:inline-block;vertical-align:-.08em;
  width:.5ch;height:.85em;margin-left:.12em;background:var(--accent);animation:hero-caret 1s steps(1) infinite}
@keyframes hero-caret{0%,50%{opacity:1}50.01%,100%{opacity:0}}
/* Лид фиксирован на 3 строки: меньше — резерв держит форму от прыжков при смене
   слогана, больше — обрезается (для лендинга 3 строки и так потолок). */
.hero .lede{color:var(--muted-2);font-size:18px;line-height:1.55;max-width:56ch;margin:0 0 30px;
  min-height:3.1em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
/* В одну колонку подбор раскладывается в строку: все четыре шага видны сразу,
   форма занимает ширину героя, а не половину с пустотой справа. */
.hero .selector{max-width:none;box-shadow:var(--sh-2);border:1px solid var(--line)}
.hero .vehicle-select{gap:10px}
.hero .vs-submit{padding:0 32px}
.hero-hints{display:flex;flex-wrap:wrap;gap:16px;padding:14px 2px 0;font-size:13px;color:var(--muted-2)}
.hero-hints b{color:var(--text);font-weight:600;border-bottom:1px solid var(--text)}
/* Единственная ссылка в hero кроме формы: ведёт на стёкла — у них своя страница,
   из подбора запчастей туда не попасть. Акцентом, чтобы читалась как переход. */
.hero-hints button{font:inherit;font-weight:600;background:none;border:none;padding:0;cursor:pointer;
  color:var(--text);border-bottom:1px solid var(--text)}
.hero-hints button:hover{color:var(--accent);border-bottom-color:var(--accent)}
.hero-hints a{color:var(--accent);font-weight:600;border-bottom:1px solid currentColor;text-decoration:none}
.hero-hints a:hover{border-bottom-color:transparent}

/* Единственный блок доверия на первом экране: тематическая иконка + факт. */
.hero-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:32px;padding:0 0 8px}
.hero-fact{display:flex;gap:14px}
.trust-icon{width:26px;height:26px;color:var(--accent);flex:none;margin-top:1px}
.hero-fact b{display:block;font-size:16px;margin-bottom:4px}
.hero-fact span{font-size:14px;color:var(--muted-2)}

/* 3-column business proof points near the final CTA */
.cta-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;padding:8px 0}
.cta-fact{display:flex;flex-direction:column;gap:4px;padding:20px;background:var(--surface);border-radius:var(--r-lg)}
.cta-fact b{font-size:15px}
.cta-fact span{font-size:13.5px;color:var(--muted-2)}

/* selector — the instrument */
.selector{background:var(--surface);border-radius:var(--r-lg);box-shadow:var(--sh-3);color:var(--text);padding:20px}
.sel-row{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px}
.field label{display:block;font-family:'IBM Plex Mono',monospace;font-size:10.5px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.vs-submit{height:50px;padding:0 30px;border:none;border-radius:var(--r-md);background:var(--accent);color:#fff;
  font-size:15px;font-weight:600;align-self:end;transition:background .18s}
.vs-submit:hover{background:var(--accent-press)}
.vs-reset{font-size:13px;color:var(--muted);align-self:center;padding-left:4px}
/* Сетка, а не flex-wrap: на flex ширина шага зависела от длины выбранного
   значения («8 поколение, 2011-2014, Седан» шире марки), шаги гуляли на каждом
   выборе, а кнопка «Подобрать» время от времени срывалась на вторую строку.
   minmax(0,1fr) обязателен: у трека по умолчанию минимум — min-content, и
   длинное значение всё равно раздувало бы свой столбец. */
.vehicle-select{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:12px;align-items:stretch}
.vehicle-select .field{min-width:0}
.vs-reset{grid-column:1 / -1}
/* Тот же подбор в узкой колонке карточки товара: пять столбцов в ~600px дают
   шаги по 100px, где не читается ни одно название. */
.product-vehicle .vehicle-select{grid-template-columns:repeat(2,minmax(0,1fr))}
.product-vehicle .vs-submit{grid-column:1 / -1}

.vs-combo{position:relative;min-width:0}
.vs-combo-trigger{display:flex;align-items:center;gap:9px;height:50px;padding:0 13px;border:1px solid var(--line-strong);
  border-radius:var(--r-md);background:#fff;width:100%;text-align:left;transition:border-color .18s,box-shadow .18s}
.vs-combo-trigger:hover{border-color:#9DAABC}
.vs-combo-trigger:disabled{background:#F5F7FA;border-color:var(--line);cursor:not-allowed;color:#AEB7C4}
.vs-combo.is-disabled .vs-combo-trigger{background:#F5F7FA;border-color:var(--line);cursor:not-allowed}
.vs-combo-icon{width:26px;height:19px;object-fit:contain;flex-shrink:0}
.vs-combo-icon--photo{width:44px;height:30px;object-fit:cover;border-radius:4px}
.vs-combo-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;color:#8A94A4}
.vs-combo:not(.is-disabled) .vs-combo-label{color:var(--text);font-weight:500}
.vs-combo-caret{flex-shrink:0;color:#9AA5B4;font-size:11px}
.vs-combo-panel{position:absolute;top:calc(100% + 4px);left:0;z-index:30;background:#fff;border:1px solid var(--line);
  border-radius:8px;box-shadow:var(--sh-3);width:300px;max-width:90vw;padding:8px}
.vs-combo-search{width:100%;padding:6px 8px;border:1px solid var(--line);border-radius:6px;margin-bottom:6px;
  font-size:13px;box-sizing:border-box}
.vs-combo-list{list-style:none;margin:0;padding:0;max-height:280px;overflow-y:auto}
.vs-combo-list li{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer;font-size:13px}
.vs-combo-list li:hover{background:var(--ground)}
.vs-combo-list li img{width:26px;height:18px;object-fit:contain;flex-shrink:0}
.vs-combo-list li img.vs-combo-icon--photo{width:40px;height:30px;object-fit:cover;border-radius:3px}
.vs-combo-empty{padding:12px;font-size:13px;color:var(--muted);text-align:center}

.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.how-step{position:relative;padding-top:6px}
.how-num{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;
  border:1.5px solid var(--accent);background:var(--ground);color:var(--accent);font-family:'IBM Plex Mono',monospace;
  font-weight:600;font-size:15px;margin-bottom:14px;position:relative;z-index:1}
.how-step b{display:block;font-size:16px;margin-bottom:6px}
.how-step p{margin:0;color:var(--muted);font-size:13.5px;line-height:1.55;max-width:32ch}
.how-step:not(:last-child)::after{content:'';position:absolute;top:24px;left:36px;right:-28px;
  height:1px;background:repeating-linear-gradient(to right,var(--line-strong) 0 5px,transparent 5px 10px)}

section{padding:52px 0}
section.block{padding:0;margin:52px 0}
/* Первая секция после героя: у героя свой фон, и граница фона уже отделяет её —
   полные 52px здесь только пустота, из-за которой плитки уходили за сгиб. */
section.block--tight-top{margin-top:12px}
.block-divided{margin-top:0;padding-top:52px;border-top:1px solid var(--line)}

.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}
.sec-head h2{font-size:26px;letter-spacing:-.01em;margin:0;font-weight:700;font-family:'Onest',system-ui,sans-serif}
.link-all{font-size:14px;color:var(--muted);display:flex;align-items:center;gap:5px;white-space:nowrap;transition:color .18s}
.link-all:hover{color:var(--accent)}
.link-all svg{width:14px;height:14px}

/* ---------- categories: featured photo tiles ---------- */
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.cat-tile-photo{position:relative;height:168px;border-radius:var(--r-sm);overflow:hidden;display:block}
.cat-tile-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.cat-tile-photo:hover img{transform:scale(1.04)}
.cat-tile-photo::after{content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(0deg,rgba(9,26,35,.78) 0%,rgba(9,26,35,.1) 62%)}
/* Длинное название («Автомобильные стёкла») в узкой плитке не помещается в строку:
   без min-width:0 flex-элемент не сжимается, название вылезает за плитку и
   уносит счётчик за край. Переносим — счётчик уходит на свою строку, но остаётся
   виден. */
.cat-tile-photo-label{position:absolute;left:16px;right:16px;bottom:14px;z-index:2;
  display:flex;flex-wrap:wrap;gap:0 8px;align-items:baseline;justify-content:space-between;color:#fff}
.cat-tile-photo-label b{font-size:17px;font-weight:600;min-width:0}
.cat-tile-photo-label span{flex:none;font-family:'IBM Plex Mono',monospace;font-size:12px;opacity:.8}

.cat-list-rest{display:flex;flex-wrap:wrap;gap:10px 26px;margin-top:18px;font-size:14px;color:var(--muted-2)}
.cat-list-rest a:hover{color:var(--accent)}

.vehicle-strip{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-md);padding:12px 16px;margin-bottom:20px}
.vehicle-strip-photo{width:56px;height:40px;object-fit:contain;flex:none}
.vehicle-strip-logo{max-width:64px;max-height:26px;object-fit:contain;flex:none}
.vehicle-strip-info{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;flex:1;min-width:0}
.vehicle-strip-info b{font-size:15px;font-weight:600}
.vehicle-strip-info span{font-size:13px;color:var(--muted)}
.vehicle-strip-clear{font-size:12.5px;color:var(--muted);flex:none;white-space:nowrap}
.vehicle-strip-clear:hover{color:var(--accent)}

.cat-tree{gap:2px}
.cat-tree-all{display:block;padding:6px 2px;font-size:14px;color:var(--muted);border-radius:6px}
.cat-tree-all:hover{color:var(--text)}
.cat-tree-all.active{color:var(--accent);font-weight:600}
.cat-tree-item{border-top:1px solid var(--line)}
.cat-tree-item summary{display:flex;align-items:center;gap:8px;padding:7px 2px;cursor:pointer;list-style:none}
.cat-tree-item summary::-webkit-details-marker{display:none}
.cat-tree-item summary::before{content:'';width:0;height:0;flex:none;
  border-left:4px solid var(--muted);border-top:4px solid transparent;border-bottom:4px solid transparent;
  transition:transform .15s}
.cat-tree-item[open] summary::before{transform:rotate(90deg)}
.cat-tree-item summary a{flex:1;min-width:0;font-size:14px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cat-tree-item summary a.active,.cat-tree-leaf.active{color:var(--accent);font-weight:600}
.cat-tree-count{font-size:12px;color:var(--muted);flex:none}
.cat-tree-children{display:flex;flex-direction:column;gap:2px;padding:2px 0 8px 12px}
.cat-tree-children a{display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:5px 6px;font-size:13.5px;color:var(--muted);border-radius:6px}
.cat-tree-children a:hover{background:var(--ground);color:var(--text)}
.cat-tree-children a.active{background:var(--ground);color:var(--accent);font-weight:600}
.cat-tree-children a span{color:var(--muted);font-size:12px}
.cat-tree-leaf{display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:7px 2px;font-size:14px;color:var(--text);border-top:1px solid var(--line)}
.cat-tree-leaf:hover{color:var(--accent)}
.vs-toggle-input{position:absolute;opacity:0;pointer-events:none}
.vs-toggle-label{display:none}

/* framed light band — used for "Свежие поступления" instead of a dark full-bleed block */
.block-framed{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  padding:48px 24px;margin:52px -24px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
@media (max-width:1080px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.grid-4{grid-template-columns:1fr}}

/* ---------- marks ---------- */
.marks-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.mark-tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
  height:104px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;
  transition:border-color .18s,box-shadow .18s}
/* Логотип — то, по чему марку узнают: 50×24 читались как иконка-сноска рядом с
   подписью. Плитка выросла следом, иначе знаку негде стоять. */
.mark-tile img{max-width:88px;max-height:40px;object-fit:contain;filter:grayscale(1);opacity:.62;transition:filter .2s,opacity .2s}
.mark-tile span{font-size:11.5px;color:var(--muted);transition:color .18s}
.mark-tile:hover{border-color:var(--line-strong);box-shadow:var(--sh-2)}
.mark-tile:hover img{filter:none;opacity:1}
.mark-tile:hover span{color:var(--text)}

/* ---------- catalog layout: sidebar + content ---------- */
.cat-layout{display:grid;grid-template-columns:250px 1fr;gap:24px;align-items:start}
.filters{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:18px;
  display:flex;flex-direction:column;gap:20px;position:sticky;top:var(--stick-top)}
.filter-group{display:flex;flex-direction:column;gap:10px}
.filter-group>b{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:600}
.filter-check{display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer}
.filter-check input{width:16px;height:16px;accent-color:var(--accent);flex:none}
.filter-check-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filter-check-count{color:var(--muted);font-size:12px;flex:none}
.filter-check.is-hidden{display:none}
.brand-search{width:100%;height:34px;border:1px solid var(--line-strong);border-radius:6px;padding:0 10px;
  font-size:13px;margin-bottom:2px}
.filter-list{display:flex;flex-direction:column;gap:8px;max-height:220px;overflow-y:auto;padding-right:4px;padding-bottom:6px;
  mask-image:linear-gradient(to bottom,#000 calc(100% - 18px),transparent);
  -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 18px),transparent)}
.filter-apply{margin-top:2px}
.price-range{display:flex;align-items:center;gap:8px}
.price-range input{width:100%;height:36px;border:1px solid var(--line-strong);border-radius:6px;padding:0 9px;
  font-size:13px;font-family:'IBM Plex Mono',monospace}
.price-range span{color:var(--muted);font-size:13px;flex:none}
.filter-apply{height:38px;border:none;border-radius:6px;background:var(--ink);color:#fff;font-size:13.5px;font-weight:600}
.filter-apply:hover{background:var(--ink-soft)}
.filter-clear{font-size:12.5px;color:var(--muted);text-align:center}
.filter-clear:hover{color:var(--accent)}

.results-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.results-count{font-size:14px;color:var(--muted)}
.results-count b{color:var(--text);font-family:'IBM Plex Mono',monospace;font-weight:600}

.breadcrumbs{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--muted);margin-bottom:10px;flex-wrap:wrap}
.breadcrumbs a:hover{color:var(--text)}
.breadcrumbs span:last-child{color:var(--text)}
.catalog-h1{font-size:24px;font-weight:600;margin:0 0 18px;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.catalog-h1-sub{font-size:14px;font-weight:500;color:var(--muted)}
.catalog-intro{max-width:72ch;margin:0 0 20px;color:var(--muted-2);font-size:14.5px;line-height:1.65}
.catalog-intro p{margin:0 0 10px}
.catalog-intro p:last-child{margin-bottom:0}

.active-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.active-chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px 0 12px;font-size:13px;
  background:var(--surface);border:1px solid var(--line-strong);border-radius:20px;color:var(--text)}
.active-chip:hover{border-color:var(--accent);color:var(--accent)}
.active-chip svg{width:13px;height:13px}
.results-tools{display:flex;align-items:center;gap:10px}
.sort-select{height:38px;border:1px solid var(--line-strong);border-radius:6px;padding:0 10px;font-size:13.5px;background:#fff}
.view-toggle{display:flex;border:1px solid var(--line-strong);border-radius:6px;overflow:hidden}
.view-toggle button{width:36px;height:36px;display:grid;place-items:center;border:none;background:#fff;color:var(--muted)}
.view-toggle button+button{border-left:1px solid var(--line-strong)}
.view-toggle button.is-active{background:var(--ink);color:#fff}
.view-toggle svg{width:16px;height:16px}

/* ---------- product cards (grid) ---------- */
/* 210, а не 220: рядом с сайдбаром выдаче достаётся 918 px, и четвёртой колонке
   не хватало ровно 4 px — каталог на 8601 позицию раскладывался по три штуки в ряд
   карточками по 296 px. Порог опущен до ширины, при которой ряд действительно
   четырёхколоночный; карточка при этом 219 px — то же, что и на любом узком экране. */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.card{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;
  display:flex;flex-direction:column;transition:border-color .18s,box-shadow .18s;animation:card-in .35s ease both}
.card:hover{border-color:var(--line-strong);box-shadow:var(--sh-3)}
/* Товар снят на белом фоне; на белой карточке у него не было силуэта — деталь висела
   в пустоте. Светлая подложка возвращает объекту границу и даёт сетке ритм. */
.card .prod-img{aspect-ratio:4/3;background:var(--ground);border-bottom:1px solid var(--line);position:relative;overflow:hidden}
/* Фото приходят с вшитым белым фоном: на подложке они читались бы белым прямоугольником
   внутри серого поля. multiply гасит белое до фона, и на карточке остаётся силуэт детали. */
.card .prod-img img{width:100%;height:100%;object-fit:contain;padding:10px;mix-blend-mode:multiply}
/* Зума на наведении нет: он поднимал картинку в отдельный слой, multiply переставал
   действовать, и фото вспыхивало белым. Карточка и так откликается тенью и кнопкой. */
.pill{position:absolute;top:9px;left:9px;display:inline-flex;align-items:center;gap:5px;
  padding:3.5px 8px;border-radius:20px;font-size:11px;font-weight:600;white-space:nowrap}
.pill.ok{background:var(--ok-bg);color:var(--ok)}
.pill.warn{background:var(--warn-bg);color:var(--warn)}
/* «Нет в наличии» — приглушённо, а не тревожно: это состояние склада, не ошибка. */
.pill.off{background:rgba(11,18,32,.07);color:var(--muted-2)}
.pill i{width:5px;height:5px;border-radius:50%;background:currentColor;display:block}
.pill-condition{left:auto;right:9px}
.pill-condition--new{background:rgba(11,18,32,.08);color:var(--ink)}
.pill-condition--used{background:var(--warn-bg);color:var(--warn)}
.prod-b{padding:12px;display:flex;flex-direction:column;gap:4px;flex:1}
.prod-b .art{font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--muted)}
.prod-b .name{font-size:13.5px;line-height:1.38;font-weight:500;margin:0;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.prod-f{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:auto;padding-top:8px}
.price{font-family:'IBM Plex Mono',monospace;font-size:18px;font-weight:600;letter-spacing:-.02em}
/* Цены нет — наценка на группу ещё не задана. Не сумма, поэтому и не выглядит
   суммой: обычный шрифт вместо моно, приглушённый цвет, размер как у подписи.
   Иначе «Цена скоро появится» кричало бы со страницы громче настоящих цен. */
.price--pending{font-family:inherit;font-size:14px;font-weight:500;color:var(--muted);letter-spacing:0}
.product-info .price--pending{font-size:18px}

/* Ссылка растянута на всю карточку; кнопка внутри поднята над ней, иначе клик по
   кнопке уходил бы на страницу товара. */
.card{position:relative}
.card-link{color:inherit}
.card-link::after{content:'';position:absolute;inset:0}
/* Контурная по умолчанию, заливка — на наведении карточки. Залитая на каждой карточке,
   кнопка давала ряд синих плит, которые перебивали и товар, и цену: заливка в макете
   остаётся признаком одного главного действия на экране («Подобрать»), не двадцати. */
.card-action{position:relative;z-index:1;margin-top:10px;height:36px;padding:0 12px;
  border:1px solid var(--accent);border-radius:7px;background:transparent;color:var(--accent);
  font-family:inherit;font-size:13px;font-weight:600;
  cursor:pointer;transition:background .18s,border-color .18s,color .18s;width:100%}
.card:hover .card-action,.card-action:hover,.card-action:focus-visible{background:var(--accent);border-color:var(--accent);color:#fff}
.card-action:hover{background:var(--accent-press);border-color:var(--accent-press)}
/* «Уточнить срок» / «Сообщить о поступлении» — не покупка: остаются нейтральными
   и на наведении карточки тоже, чтобы не читаться как «в корзину». */
.card-action--quiet,.card:hover .card-action--quiet{background:transparent;border-color:var(--line-strong);color:var(--muted-2)}
.card-action--quiet:hover,.card-action--quiet:focus-visible{background:transparent;border-color:var(--accent);color:var(--accent)}
/* Недоступную позицию не прячем — по ней подписываются на поступление, — но и не даём
   ей соперничать за внимание с тем, что можно купить. */
.card--muted .prod-img img,.card--muted .price{opacity:.55}

@keyframes card-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* ---------- related items carousel (product page) ---------- */
.related-carousel{position:relative;display:flex;align-items:center;gap:8px}
/* overscroll-behavior-x:contain — дойдя до края ленты, жест продолжался как
   «назад» в браузере: пролистывание похожих товаров уводило со страницы товара. */
.related-carousel-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;scroll-behavior:smooth;
  overscroll-behavior-x:contain;padding-bottom:4px;flex:1;scrollbar-width:thin}
.related-carousel-track .card{flex:0 0 220px;scroll-snap-align:start}
.related-sentinel{flex:0 0 1px}
.related-arrow{flex:none;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:var(--surface);
  color:var(--text);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .18s,color .18s}
.related-arrow:hover{border-color:var(--accent);color:var(--accent)}
.related-arrow svg{width:18px;height:18px}
@media (max-width:640px){.related-arrow{display:none}}

/* ---------- product rows (list view) ---------- */
.grid.is-list{display:flex;flex-direction:column;gap:10px}
.grid.is-list .card{flex-direction:row;align-items:center}
.grid.is-list .prod-img{width:96px;aspect-ratio:auto;height:72px;flex:none;border-bottom:none;border-right:1px solid var(--line)}
.grid.is-list .prod-b{flex-direction:row;align-items:center;gap:16px;flex:1;padding:10px 16px}
/* В строке колонки идут иначе, чем в карточке: артикул уходит влево, к фото, где
   он сканируется взглядом сверху вниз по всей выдаче. Порядок задаём order, а не
   разметкой — DOM один на оба режима. */
/* Действие идёт последним независимо от того, обёрнуто оно в <form> (в корзину) или
   лежит кнопкой напрямую (уточнить срок): порядок задаём всем детям, а не .card-action. */
.grid.is-list .prod-b > *{order:4}
.grid.is-list .prod-b .art{order:1;flex:none;width:130px}
.grid.is-list .prod-b .name{order:2;min-height:0;-webkit-line-clamp:1;flex:1}
.grid.is-list .prod-f{order:3;margin-top:0;padding-top:0;flex:none;width:140px;justify-content:flex-end}
.grid.is-list .card-action{width:auto;flex:none;margin-top:0;white-space:nowrap}
.grid.is-list .pill{font-size:9.5px;padding:2.5px 6px;top:5px;left:5px}
.grid.is-list .pill-condition{left:auto;right:5px}

/* Соседние разделы под выдачей — навигация, а не фильтр: отделены от списка
   линией и набраны тише карточек, чтобы не спорить с товаром за внимание. */
.sibling-cats{margin-top:32px;padding-top:20px;border-top:1px solid var(--line)}
.sibling-cats b{display:block;font-size:14px;margin-bottom:12px}
.sibling-cats-row{display:flex;flex-wrap:wrap;gap:8px}
.sibling-cats-row a{display:inline-flex;align-items:baseline;gap:8px;padding:8px 14px;font-size:13.5px;
  background:var(--surface);border:1px solid var(--line);border-radius:100px;transition:.16s}
.sibling-cats-row a:hover{border-color:var(--accent);color:var(--accent)}
.sibling-cats-row span{font-size:12px;color:var(--muted)}
.sibling-cats-row a:hover span{color:var(--accent-soft)}

.infinite-sentinel{height:60px;margin-top:8px;display:flex;align-items:center;justify-content:center}
.infinite-sentinel::after{content:'';width:22px;height:22px;border-radius:50%;border:3px solid var(--line);
  border-top-color:var(--ink);opacity:0}
.infinite-sentinel.is-loading::after{opacity:1;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

.empty-state{text-align:center;padding:60px 20px;color:var(--muted)}
.empty-state svg{width:40px;height:40px;color:var(--line-strong);margin-bottom:12px}
.empty-state p{margin:0 0 14px}
.empty-state-hint{font-size:13.5px;margin-bottom:10px!important}
.empty-state-actions{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:22px;flex-wrap:wrap}

/* ---------- product detail ---------- */
.product-page{display:grid;grid-template-columns:minmax(0,460px) 1fr;gap:32px}
.product-media img{width:100%;border-radius:var(--r-md);border:1px solid var(--line);background:#fff}
.product-media video{width:100%;border-radius:var(--r-md);margin-top:12px}
.product-info h1{font-size:21px;line-height:1.35;margin:0 0 12px;font-weight:600}
.product-info .price{font-size:28px;display:block;margin-bottom:14px}
.product-info dl{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;margin:0;font-size:14px}
.product-info dt{color:var(--muted)}
.product-info dd{margin:0;font-family:'IBM Plex Mono',monospace}
.product-badges{display:flex;gap:8px;margin-bottom:14px}
.back-link{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--muted);margin-bottom:20px}
.back-link:hover{color:var(--text)}
.product-actions{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.btn-order{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 26px;
  background:var(--accent);color:#fff;border-radius:8px;font-weight:600;font-size:15px}
.btn-order:hover{background:var(--accent-press)}
.btn-order svg{width:16px;height:16px}
.product-actions-hint{margin:10px 0 0;font-size:13px;color:var(--muted)}
/* Справочные ссылки карточки: тише кнопок, но кликабельны на вид — приглушённый
   акцент с подчёркиванием, чтобы не спорить с «в корзину» и не теряться в подписи. */
.product-links{display:flex;flex-wrap:wrap;gap:6px 18px;margin:14px 0 0;font-size:13px}
.product-links a{color:var(--accent);font-weight:600;text-decoration:underline;
  text-underline-offset:3px;text-decoration-color:var(--accent-soft)}
.product-links a:hover{color:var(--accent-press);text-decoration-color:currentColor}
.product-actions-hint a{color:var(--accent);font-weight:600}
.fitments{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.fitments-title{display:block;font-size:15px;margin-bottom:12px}
.fitments-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.fitments-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13.5px;
  background:var(--surface);border:1px solid var(--line);border-radius:8px}
/* Строка целиком — ссылка на срез каталога по этой машине. Отступы тогда живут на
   самой ссылке, иначе кликабельной была бы только середина строки; когда ссылки
   нет (поколение неизвестно), отступ остаётся у li. */
.fitments-list li:not(:has(.fitments-link)){padding:9px 12px}
.fitments-link{display:flex;align-items:center;justify-content:space-between;gap:12px;
  flex:1;min-width:0;padding:9px 12px;border-radius:7px;transition:background .16s,color .16s}
.fitments-link:hover{background:var(--ground)}
.fitments-link:hover .fitments-car{color:var(--accent)}
.fitments-car{font-weight:600}
.fitments-meta{color:var(--muted);font-family:'IBM Plex Mono',monospace;font-size:12.5px;white-space:nowrap}
.fitments-raw{font-size:13.5px;color:var(--text);background:var(--surface);border:1px solid var(--line);
  border-radius:8px;padding:12px;margin:0;line-height:1.5}
.fitments-note{font-size:12.5px;color:var(--muted);margin:12px 0 0}
/* Значение в характеристиках, которое ведёт в выдачу (бренд) — подчёркнуто, чтобы
   отличалось от соседних значений, которые никуда не ведут. */
.dl-link{color:var(--accent);text-decoration:underline;text-underline-offset:3px;
  text-decoration-color:var(--accent-soft)}
.dl-link:hover{text-decoration-color:var(--accent)}

.product-description{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.product-description p{font-size:14px;line-height:1.6;color:var(--text);margin:8px 0 0}

/* виджет «смена авто» на странице товара — раскрывашка на любой ширине, не только мобильной */
.product-vehicle{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.product-vehicle .vs-toggle-label{display:flex;align-items:center;justify-content:space-between;background:#fff;
  border:1px solid var(--line);border-radius:var(--r-md);padding:14px 16px;font-weight:600;font-size:14.5px;
  cursor:pointer;margin-bottom:12px}
.product-vehicle .vs-toggle-caret{width:18px;height:18px;transition:transform .2s;flex:none}
.product-vehicle .vs-toggle-input:checked + .vs-toggle-label .vs-toggle-caret{transform:rotate(180deg)}
.product-vehicle .vs-toggle-input ~ .selector{display:none}
.product-vehicle .vs-toggle-input:checked ~ .selector{display:block}
.back-link svg{width:15px;height:15px}

/* ---------- install service block ---------- */
/* Скрытие включает scroll-reveal.js классом на <html> — CSS сам по себе контент
   не прячет, иначе любой сбой скрипта оставлял бы пустую страницу. */
.reveal-on [data-reveal]{opacity:0;transform:translateY(24px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1)}
.reveal-on [data-reveal].is-visible{opacity:1;transform:translateY(0)}
@media (prefers-reduced-motion:reduce){
  .reveal-on [data-reveal]{opacity:1;transform:none;transition:none}
}

/* stretch, а не start: колонки одной высоты, иначе текст кончался заметно выше
   нижнего края фото и блок читался как незаконченный. Текст при этом не
   центрируется по высоте (отменённое решение 18.08) — он распределяется
   сверху вниз через space-between в .service-copy. */
.service{display:grid;grid-template-columns:1.1fr 1fr;gap:16px;align-items:stretch;background:var(--surface);
  color:var(--text);border:1px solid var(--line);border-radius:var(--r-lg);padding:44px;margin:52px -24px;
  position:relative;overflow:hidden}
.service::before{content:'';position:absolute;inset:0;
  background-image:linear-gradient(var(--line) 1px,transparent 1px),
                   linear-gradient(90deg,var(--line) 1px,transparent 1px);
  background-size:44px 44px;mask-image:radial-gradient(ellipse 70% 90% at 20% 50%,#000 20%,transparent 75%);opacity:.5}
.service::after{content:'';position:absolute;width:420px;height:420px;left:-160px;bottom:-180px;border-radius:50%;
  background:radial-gradient(circle,rgba(14,90,125,.14),transparent 68%)}
.service-copy{position:relative;z-index:2;display:flex;flex-direction:column}
.service-copy h2{font-size:32px;letter-spacing:-.02em;margin:0 0 12px;font-weight:700;max-width:22ch}
.service-copy p{color:var(--muted);font-size:15px;line-height:1.55;max-width:44ch;margin:0 0 22px}
.service-points{list-style:none;margin:0 0 26px;padding:0;display:flex;flex-direction:column;gap:12px}
.service-points li{display:flex;align-items:flex-start;gap:10px;font-size:14.5px}
.service-points svg{width:19px;height:19px;color:var(--accent);flex:none;margin-top:1px}
.btn-service{display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:#fff;
  padding:12px 22px;border-radius:8px;font-weight:600;font-size:14.5px;transition:background .18s,transform .18s}
.btn-service:hover{background:var(--accent-press);transform:translateX(2px)}
.btn-service svg{width:15px;height:15px}
/* Кнопки прижаты к низу колонки: текст стартует вровень с верхом фото, действие —
   вровень с его низом, и обе колонки заканчиваются на одной линии. */
.service-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:auto}
.btn-service-outline{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:8px;
  font-weight:600;font-size:14.5px;color:var(--accent);border:1.5px solid var(--accent)}
.btn-service-outline:hover{background:rgba(14,90,125,.06)}
.btn-service-outline svg{width:15px;height:15px}

.service-visual{position:relative;z-index:2}
.service-photo{width:100%;height:100%;min-height:280px;object-fit:cover;object-position:50% 20%;
  border-radius:var(--r-md);border:1px solid var(--line);box-shadow:var(--sh-3)}

@media (max-width:820px){
  .service{grid-template-columns:1fr;padding:30px;gap:32px}
  .service-visual{order:-1}
  .service-photo{min-height:220px}
}

.service--reverse .service-copy{order:2}
/* width:100% обязателен вместе с aspect-ratio: без него ширина считается ОТ
   высоты ряда (4/3 × высота), эта intrinsic-ширина спорит с 1.1fr-треком,
   раздвигает его и отъедает gap до текста (5.6px вместо заданных 16 — видно как
   «съехавший» стык фото и текста). С width:100% порядок обратный: ширина —
   это ширина трека, aspect-ratio считает высоту от неё же, трек и gap целы.
   Просто убрать aspect-ratio нельзя — без него высота через height:100% ловит
   feedback loop и фото раздувается на весь экран (проверено вживую). */
.service--reverse .service-visual{order:1;aspect-ratio:4/3;width:100%}
.service--reverse .service-photo{height:100%;min-height:0}
.service-products{grid-column:1/-1;order:3;position:relative;z-index:2;margin-top:24px}

/* ---------- CTA band ---------- */
.cta-band{display:flex;align-items:center;justify-content:space-between;gap:40px;flex-wrap:wrap;
  background:var(--accent);color:#fff;border-radius:var(--r-lg);padding:36px 40px}
.cta-band-copy b{display:block;font-family:'Onest',system-ui,sans-serif;font-size:24px;font-weight:700;
  letter-spacing:-.01em;margin-bottom:6px}
.cta-band-copy span{font-size:14.5px;color:#BCD4E0}
.cta-band a,.cta-band button{display:inline-flex;align-items:center;flex:none;background:var(--accent);color:#fff;padding:14px 26px;
  border-radius:8px;font-weight:600;font-size:15px;white-space:nowrap;transition:background .18s}
.cta-band a:hover,.cta-band button:hover{background:var(--accent-press)}

@media (max-width:600px){
  .cta-band{flex-direction:column;align-items:flex-start;text-align:left}
}

/* ---------- pick request form ---------- */
.pick-form{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:26px;
  display:grid;gap:14px;max-width:560px}
.pick-form label{font-size:12.5px;color:var(--muted);display:block;margin-bottom:5px}
.pick-form input,.pick-form textarea{width:100%;border:1px solid var(--line-strong);border-radius:8px;
  padding:10px 12px;font:inherit;font-size:14.5px}
.pick-form textarea{resize:vertical;min-height:80px}
.pick-form button{height:46px;border:none;border-radius:8px;background:var(--accent);color:#fff;font-weight:600;font-size:15px}
.pick-form button:hover{background:var(--accent-press)}
/* Пометка «необязательно» в подписи поля — тише самой подписи, чтобы читалась
   как уточнение, а не как второе требование. */
.label-optional{color:var(--muted-2);font-weight:400}
/* Согласие на обработку ПД: обязательное, но не главное на форме — мельче полей,
   галочка прижата к первой строке текста, а не к его середине. */
.consent-field label{display:flex;gap:9px;align-items:flex-start;cursor:pointer;
  font-size:12.5px;color:var(--muted);line-height:1.45}
.consent-field input[type=checkbox]{margin:1px 0 0;flex:0 0 auto;width:15px;height:15px;accent-color:var(--accent)}
.consent-field a{color:var(--muted);text-decoration:underline}
.consent-field a:hover{color:var(--accent)}
/* Кнопка, которая читается как ссылка — для «оставьте заявку» внутри абзаца. */
.link-button{background:none;border:0;padding:0;font:inherit;color:var(--accent);
  text-decoration:underline;cursor:pointer}
.pick-form .err{color:var(--danger);font-size:12.5px;margin-top:4px}
.pick-form .err:empty{display:none}
/* honeypot: живой человек поля не видит, бот заполняет — заявка отбраковывается
   валидацией (prohibited). Не display:none — часть ботов такие поля пропускает. */
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-success{background:var(--ok-bg);color:var(--ok);border-radius:var(--r-md);padding:16px 18px;font-size:14.5px}

/* ---------- footer ---------- */
footer{background:var(--ground);color:var(--muted-2);padding:46px 0 30px;font-size:13.5px;margin-top:60px;
  border-top:1px solid var(--line)}
.f-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:36px;padding-bottom:20px}
.f-address{font-size:13px;line-height:1.5;max-width:22ch}
footer h4{color:var(--muted);font-family:'IBM Plex Mono',monospace;font-size:11px;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase;margin:0 0 12px}
footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
footer a:hover{color:var(--accent)}
.f-brand{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:var(--text)}
.f-about{font-size:14px;line-height:1.55;max-width:34ch;margin:0;color:var(--muted)}
.f-bot{border-top:1px solid var(--line);padding-top:20px;margin-top:10px;font-family:'IBM Plex Mono',monospace;
  font-size:12px;color:var(--line-strong)}

/* В две колонки плитка ~110 px под подпись: на 17 px «Автомобильные» не влезает
   даже в свою строку. 15 px помещается целиком — переносим по словам, не по буквам. */
@media (max-width:560px){
  .cat-tile-photo-label b{font-size:15px}
}
@media (max-width:1080px){
  .marks-strip{grid-template-columns:repeat(4,1fr)}
  .cat-layout{grid-template-columns:1fr}
  .filters{position:static}
  .grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
}
@media (max-width:820px){
  .hdr .wrap{height:auto;gap:12px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
  .search-form{order:3;flex:1 0 100%;max-width:none}
  /* На телефоне шапка сжимается до двух рядов: бренд + Каталог, затем поиск.
     «Связаться с нами» уходит — звонок закрывает плавающая кнопка, форма есть в подвале. */
  header nav{display:none}
  /* Подпись знака уводит «Каталог» на третью строку: на телефоне город и так
     виден в подвале и на «Контактах», а высота шапки дороже. */
  .brand-tagline{display:none}
  .brand-name{font-size:21px}
  .catalog-menu{order:2;margin-left:auto}
  .catalog-btn{height:40px;padding:0 12px}
  .catalog-panel{left:0;right:auto;width:min(340px, calc(100vw - 40px))}
  .catalog-panel ul{grid-template-columns:1fr}
  .hdr-phone span{display:none}
  /* Адрес в шапке телефона не переживает: остаётся иконка звонка, а адрес есть
     на «Контактах» и в подвале. */
  .hdr-address{display:none}
  .fab-call{display:flex}
  .hero::before{display:none}
  .hero-grid{grid-template-columns:1fr}
  .hero h1{font-size:26px;max-width:none;min-height:2.4em}
  .hero .lede{min-height:0;-webkit-line-clamp:4}
  .hero-copy{padding:32px 20px 28px}
  .hero .selector{max-width:none}
  .vehicle-select{grid-template-columns:1fr}
  .vs-submit{grid-column:1 / -1}
  .hero-facts{grid-template-columns:1fr 1fr;gap:20px;padding:0 0 4px}
  .cta-facts{grid-template-columns:1fr}
  .hero-hints{flex-direction:column;gap:6px}
  .sel-row{grid-template-columns:1fr}
  .vs-submit{width:100%}
  .cat-grid{grid-template-columns:repeat(2,1fr)}
  .marks-strip{grid-template-columns:repeat(3,1fr)}
  .grid{grid-template-columns:repeat(2,1fr)}
  /* Строка сложилась в колонку — колоночного порядка больше нет, читаем как карточку. */
  .grid.is-list .prod-b{flex-direction:column;align-items:flex-start;gap:4px}
  .grid.is-list .prod-b > *,
  .grid.is-list .prod-b .art,.grid.is-list .prod-b .name,.grid.is-list .prod-f{order:0}
  .grid.is-list .prod-b .art,.grid.is-list .prod-f{width:auto}
  .product-page{grid-template-columns:1fr}
  .f-top{grid-template-columns:1fr;gap:26px}
  .anno span{white-space:normal}
  .anno::after{display:none}
  .sec-head{flex-direction:column;align-items:flex-start;gap:8px}
  section{padding:36px 0}
  .how-grid{grid-template-columns:1fr;gap:22px}
  .how-step::after{display:none}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .cat-tile-photo:hover img{transform:none}
  /* scroll-behavior — не анимация и не transition, правилом выше не гасится:
     без этой строки плавная прокрутка остаётся у тех, кто её отключил. */
  html,.related-carousel-track{scroll-behavior:auto}
}

/* ---------- contact modal ---------- */
/* Прокручивается сама подложка, а не панель: форма заявки выше экрана на телефоне
   упиралась в края и обрезалась. overscroll-behavior:contain — чтобы прокрутка,
   дойдя до конца модалки, не перескакивала на страницу под ней. */
.modal-backdrop{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(11,18,32,0);transition:background .25s ease;
  overflow-y:auto;overscroll-behavior:contain}
.modal-backdrop[hidden]{display:none}
.modal-backdrop.is-open{background:rgba(11,18,32,.64)}
.modal-panel{background:#fff;border-radius:var(--r-lg);padding:32px;max-width:400px;width:100%;position:relative;
  opacity:0;transform:translateY(16px) scale(.97);transition:opacity .25s cubic-bezier(.2,.7,.2,1),transform .25s cubic-bezier(.2,.7,.2,1);
  box-shadow:0 24px 60px rgba(11,18,32,.28)}
.modal-backdrop.is-open .modal-panel{opacity:1;transform:translateY(0) scale(1)}
.modal-panel h2{font-size:20px;margin:0 0 6px}
.modal-lede{color:var(--muted);font-size:13.5px;margin:0 0 22px;line-height:1.5}
.modal-close{position:absolute;top:16px;right:16px;width:32px;height:32px;display:grid;place-items:center;
  border:none;background:var(--surface);border-radius:50%;color:var(--muted);transition:color .18s}
.modal-close:hover{color:var(--text)}
.modal-close svg{width:15px;height:15px}
.modal-contact-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);
  border-radius:10px;margin-bottom:10px;color:var(--text)}
.modal-contact-row--static{cursor:default}
a.modal-contact-row:hover{border-color:var(--accent)}
.modal-contact-icon{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:8px;
  background:var(--surface);color:var(--accent)}
.modal-contact-icon svg{width:17px;height:17px}
.modal-contact-row small{display:block;font-size:11.5px;color:var(--muted);margin-bottom:2px}
.modal-contact-row b{font-size:14.5px;font-weight:600}
.modal-cta{width:100%;justify-content:center;margin-top:14px}
.modal-panel--form{max-width:480px}
.modal-panel--form .pick-form{background:none;border:none;padding:0;max-width:none}
.modal-panel--form [data-pick-request-success]{margin-bottom:18px}

@media (prefers-reduced-motion:reduce){
  .modal-backdrop,.modal-panel{transition:none}
}

/* ---------- catalog: mobile picker collapse, scrollable cats, filters drawer ---------- */
.filters-mobile-toggle{display:none}
.filters-mobile-count{background:var(--accent);color:#fff;border-radius:20px;min-width:18px;height:18px;padding:0 5px;
  font-size:11px;display:inline-flex;align-items:center;justify-content:center;font-family:'IBM Plex Mono',monospace}
.filters-backdrop{display:none}
.filters-mobile-head{display:none}

@media (max-width:820px){
  .vs-toggle-label{display:flex;align-items:center;justify-content:space-between;background:#fff;
    border:1px solid var(--line);border-radius:var(--r-md);padding:14px 16px;font-weight:600;font-size:14.5px;
    cursor:pointer;margin-bottom:12px}
  .vs-toggle-caret{width:18px;height:18px;transition:transform .2s;flex:none}
  .vs-toggle-input:checked + .vs-toggle-label .vs-toggle-caret{transform:rotate(180deg)}
  .vs-toggle-input ~ .selector{display:none}
  .vs-toggle-input:checked ~ .selector{display:block}
}

@media (max-width:1080px){
  .filters-mobile-toggle{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 16px;margin-bottom:16px;
    background:#fff;border:1px solid var(--line);border-radius:var(--r-md);font-weight:600;font-size:14px;cursor:pointer}
  .filters-mobile-toggle svg{width:17px;height:17px}

  .filters{position:fixed;left:0;right:0;bottom:0;top:auto;max-height:82vh;border-radius:16px 16px 0 0;
    box-shadow:0 -8px 30px rgba(11,18,32,.18);transform:translateY(105%);transition:transform .25s ease;
    z-index:101;overflow-y:auto;overscroll-behavior:contain;margin:0}
  .filters.is-open{transform:translateY(0)}
  .filters-mobile-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;
    position:sticky;top:-18px;background:var(--surface);padding-top:2px}
  .filters-mobile-close{width:32px;height:32px;display:grid;place-items:center;border:none;background:var(--line);
    border-radius:50%;color:var(--text);flex:none}

  .filters-backdrop.is-open{display:block;position:fixed;inset:0;background:rgba(11,18,32,.45);z-index:100}

  /* Кнопка прижата к низу шторки. Без этого до «Показать N» надо было пролистать
     весь список брендов — а число рядом с кнопкой затем и нужно, чтобы решать, не
     доходя до конца списка. Шапка шторки уже прилипает сверху тем же приёмом. */
  /* flex:none обязателен: шторка — колонка с ограниченной высотой, и кнопка,
     став её прямым ребёнком, сжималась до высоты текста. */
  .filter-apply{position:sticky;bottom:0;z-index:2;width:100%;flex:none;
    margin-top:10px;padding:0 16px;
    box-shadow:0 -10px 16px -8px rgba(11,18,32,.18)}
}

/* ---------- error pages ---------- */
/* Тупик 404/500 разворачиваем обратно в воронку: поиск, разделы, заявка. Цифра
   кода — «чертёжная» метка (моно + приглушённый цвет), как номера шагов в hero,
   а не главный герой страницы: пользователю нужен выход, а не код ошибки. */
.err-page{max-width:640px;margin:48px auto 72px}
.err-code{font-family:'IBM Plex Mono',monospace;font-size:13px;font-weight:600;letter-spacing:.18em;
  color:var(--accent-soft);margin:0 0 6px}
.err-page h1{font-size:32px;line-height:1.2;margin:0 0 14px;letter-spacing:-.02em}
.err-lede{color:var(--muted-2);font-size:16px;line-height:1.6;margin:0 0 26px}
.err-search{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line-strong);
  border-radius:var(--r-md);padding:8px 8px 8px 14px;box-shadow:var(--sh-1)}
.err-search svg{width:18px;height:18px;color:var(--muted);flex:none}
.err-search input{flex:1;border:none;outline:none;font:inherit;font-size:15px;background:none;min-width:0}
.err-search button{height:40px;padding:0 20px;border:none;border-radius:var(--r-sm);
  background:var(--accent);color:#fff;font-weight:600;font-size:14.5px}
.err-search button:hover{background:var(--accent-press)}
.err-cats{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:22px;font-size:14px;color:var(--muted-2)}
.err-cats a:hover{color:var(--accent)}
.err-actions{margin-top:34px;padding-top:26px;border-top:1px solid var(--line)}
.err-hint{margin:12px 0 0;font-size:14px;color:var(--muted)}
.err-hint a{color:var(--accent);font-weight:600}
@media (max-width:560px){
  .err-page{margin:28px auto 48px}
  .err-page h1{font-size:26px}
  .err-search{flex-wrap:wrap}
  .err-search input{width:100%}
  .err-search button{width:100%}
  .err-actions .btn-order{width:100%}
}

/* Сообщение об исправленном запросе — тонкая рамка, не алярм: это подсказка,
   а не ошибка пользователя. */
.search-note{margin:0 0 14px;padding:10px 14px;border:1px solid var(--line);border-left:3px solid var(--accent);
  border-radius:var(--r-sm);background:var(--surface);font-size:14px;color:var(--muted-2)}
.search-note b{color:var(--text);font-weight:600}
.empty-state-hint{max-width:52ch;margin-left:auto!important;margin-right:auto!important}

/* ---------- search suggest ---------- */
/* Выпадашка живёт внутри .search-form (она position:relative), ширину берёт от
   строки поиска — подсказка должна читаться как продолжение поля, не как модалка. */
.search-suggest{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:60;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
  box-shadow:var(--sh-3);overflow:hidden;max-height:70vh;overflow-y:auto;
  /* contain — колесо, докрутив список подсказок до низа, утаскивало страницу.
     scroll-behavior:auto — стрелками вверх/вниз подсветка должна попадать в
     нужный пункт мгновенно; плавная прокрутка страницы тут только мешает
     (`scrollIntoView` в search-suggest.js подчиняется этому свойству). */
  overscroll-behavior:contain;scroll-behavior:auto}
.sg-note,.sg-empty{margin:0;padding:10px 14px;font-size:12.5px;color:var(--muted);
  border-bottom:1px solid var(--line)}
.sg-empty{border-bottom:none}
.sg-row{display:flex;align-items:center;gap:10px;padding:9px 14px;border-bottom:1px solid var(--line);
  color:var(--text);font-size:14px}
.sg-row:last-child{border-bottom:none}
.sg-row:hover,.sg-row.is-active{background:var(--ground)}
.sg-row--cat{justify-content:space-between}
.sg-cat-name{font-weight:600}
.sg-tag{font-family:'IBM Plex Mono',monospace;font-size:10.5px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted)}
.sg-row--product img{width:40px;height:30px;object-fit:contain;flex:none;background:var(--ground);border-radius:4px}
.sg-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.sg-text b{font-weight:500;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sg-text small{font-size:11.5px;color:var(--muted);font-family:'IBM Plex Mono',monospace;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg-price{font-size:13.5px;font-weight:600;white-space:nowrap}


/* ---------- /glass: подбор автостекла и запись на установку ---------- */
/* шапка: слева подбор, справа фото сервиса и справочные карточки */
/* колонки растягиваются до общей высоты, лишнее добирает блок совета (flex:1) —
   иначе низ левой колонки не совпадает с низом правой */
.glass-head{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:40px;
  align-items:stretch;margin-bottom:32px}
.glass-head-copy{min-width:0;display:flex;flex-direction:column}
.glass-head-copy .glass-advice{flex:1}
/* плашка акции — по содержимому, иначе flex-колонка растянет её на всю ширину */
.glass-head-copy .glass-promo{align-self:flex-start}
.glass-head-copy .glass-pick{margin-bottom:0}
.glass-head-side{display:flex;flex-direction:column;gap:14px;min-width:0}
.glass-head-photo{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;
  border-radius:var(--r-lg);border:1px solid var(--line)}
.glass-head-photo.is-empty{display:grid;place-items:center;gap:8px;align-content:center;
  background:var(--surface);border-style:dashed;border-color:var(--line-strong);color:var(--muted)}
.glass-head-photo.is-empty svg{width:34px;height:34px;color:var(--line-strong)}
.glass-head-photo.is-empty span{font-family:'IBM Plex Mono',monospace;font-size:11px;
  letter-spacing:.14em;text-transform:uppercase}

.glass-h1{font-size:30px;line-height:1.15;margin:0 0 10px}
.glass-lede{color:var(--muted-2);font-size:16px;line-height:1.6;max-width:60ch;margin:0 0 20px}
.glass-promo{display:inline-flex;align-items:center;gap:9px;margin:0 0 26px;padding:10px 16px;
  background:rgba(224,82,42,.08);border:1px solid rgba(224,82,42,.28);border-radius:var(--r-md);
  color:var(--accent-warm);font-size:13.5px;font-weight:600}
.glass-promo svg{width:16px;height:16px;flex:none}

.glass-pick{margin-bottom:32px}
.glass-start{display:inline-flex;align-items:center;gap:12px;height:56px;padding:0 28px;border:none;
  border-radius:var(--r-md);background:var(--accent);color:#fff;font-size:16px;font-weight:600;
  box-shadow:var(--sh-2);transition:background .18s,transform .18s}
.glass-start:hover{background:var(--accent-press);transform:translateY(-1px)}
.glass-start svg{width:18px;height:18px}
.glass-chosen{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:14px 20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md)}
.glass-chosen-label{display:block;font-family:'IBM Plex Mono',monospace;font-size:10.5px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
.glass-chosen b{font-size:15.5px}
.glass-chosen-change{background:none;border:1px solid var(--line-strong);border-radius:var(--r-sm);
  padding:8px 16px;font-size:13.5px;color:var(--muted-2);transition:.18s}
.glass-chosen-change:hover{border-color:var(--accent);color:var(--accent)}

.glass-results,.glass-empty{padding:0}

/* совет по выбору: текст слева, телефон — крупно и отдельно, это и есть действие */
.glass-advice{margin:24px 0 0;padding:22px 26px;border-radius:var(--r-lg);
  background:rgba(14,90,125,.06);border:1px solid rgba(14,90,125,.18)}
.glass-advice h2{font-size:18px;margin:0 0 8px}
.glass-advice p{margin:0 0 6px;font-size:14.5px;line-height:1.6;color:var(--muted-2);max-width:62ch}
.glass-advice p:last-child{margin-bottom:0}
.glass-advice-phone{display:inline-block;margin-top:14px;font-size:26px;font-weight:700;
  white-space:nowrap;color:var(--accent);text-decoration:none;letter-spacing:.01em}
.glass-advice-phone:hover{color:var(--accent-press)}

.glass-facets{display:flex;flex-direction:column;gap:10px;margin-bottom:20px}
.glass-facet{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.glass-facet-name{display:inline-flex;align-items:center;gap:5px;flex:0 0 220px;font-size:13px;
  color:var(--muted);cursor:help}
.glass-facet-name svg{width:13px;height:13px;opacity:.6}
.glass-facet-chips{display:flex;gap:8px;flex-wrap:wrap}
.glass-chip{padding:7px 14px;border:1px solid var(--line-strong);border-radius:100px;background:var(--surface);
  font-size:13px;color:var(--muted-2);transition:.16s}
.glass-chip:hover{border-color:var(--accent-soft);color:var(--accent)}
.glass-chip.is-on{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}

.glass-count{font-size:13.5px;color:var(--muted);margin:0 0 14px}
.glass-count b{color:var(--text);font-size:15px}
/* раскладка та же, что у карточек каталога: фото сверху, тело снизу */
.glass-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
/* position:relative — под растянутую ссылку на товар (.card-link), как в каталоге.
   Фото и кнопка записи подняты над ней, иначе их клики уходили бы на карточку. */
.glass-card{position:relative;display:flex;flex-direction:column;min-width:0;text-align:left;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;
  transition:transform .16s,box-shadow .16s,border-color .16s}
.glass-card:hover{transform:translateY(-2px);box-shadow:var(--sh-2);border-color:var(--accent-soft)}
.glass-card[hidden]{display:none}
.glass-card-photo{display:block;width:100%;aspect-ratio:4/3;background:#fff;padding:0;position:relative;
  z-index:1;border:none;border-bottom:1px solid var(--line);overflow:hidden}
.glass-card-photo img{width:100%;height:100%;object-fit:contain;padding:10px;transition:transform .3s}
.glass-card:hover .glass-card-photo img{transform:scale(1.04)}
.glass-card-photo--empty{display:grid;place-items:center;background:var(--ground);
  font-size:12.5px;color:var(--muted)}
.glass-card-zoom{position:absolute;right:8px;bottom:8px;width:30px;height:30px;border-radius:var(--r-sm);
  display:grid;place-items:center;background:rgba(255,255,255,.92);border:1px solid var(--line);
  color:var(--muted-2);opacity:0;transition:opacity .16s,color .16s}
.glass-card-zoom svg{width:15px;height:15px}
.glass-card-photo:hover .glass-card-zoom,.glass-card-photo:focus-visible .glass-card-zoom{opacity:1;color:var(--accent)}
.glass-card-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;padding:12px}
.glass-card-name{font-size:13.5px;font-weight:600;line-height:1.35;overflow-wrap:break-word;display:-webkit-box;
  -webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.glass-card-badges{display:flex;flex-wrap:wrap;gap:5px}
.glass-badge{font-size:11px;padding:3px 8px;border-radius:100px;background:rgba(14,90,125,.08);
  color:var(--accent);max-width:100%;line-height:1.35}
.glass-badge--rest{background:none;border:1px dashed var(--line-strong);color:var(--muted)}
.glass-card-foot{margin-top:auto;display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.glass-card-price{font-size:16px;font-weight:700;white-space:nowrap}
.glass-card-cta{position:relative;z-index:1;font-size:11.5px;font-weight:600;color:var(--accent);white-space:nowrap;
  background:var(--surface);border:1px solid var(--accent-soft);border-radius:var(--r-sm);padding:6px 10px;transition:.16s}
.glass-card-cta:hover,.glass-card-cta:focus-visible{background:var(--accent);border-color:var(--accent);color:#fff}
.glass-nomatch{margin:20px 0 0;font-size:14px;color:var(--muted-2)}
.glass-all-link{margin:20px 0 0}
.glass-all-link a{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--accent)}
.glass-all-link a:hover{color:var(--accent-press)}
.glass-all-link svg{width:16px;height:16px}
.glass-link-btn{background:none;border:none;padding:0;color:var(--accent);font:inherit;
  text-decoration:underline;text-underline-offset:2px}

.glass-empty{max-width:640px;margin:8px 0 48px}
.glass-empty-code{font-family:'IBM Plex Mono',monospace;font-size:12.5px;font-weight:600;
  letter-spacing:.18em;text-transform:uppercase;color:var(--accent);margin-bottom:12px}
.glass-empty h2{font-size:28px;line-height:1.2;margin:0 0 12px}
.glass-empty p{color:var(--muted-2);font-size:15.5px;line-height:1.6;margin:0 0 24px}
.glass-empty-actions{display:flex;flex-wrap:wrap;gap:12px}

.glass-warranty{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:36px;
  align-items:center;margin:48px 0;padding:28px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-lg)}
.glass-warranty.has-no-photos{grid-template-columns:minmax(0,1fr);max-width:62ch}
.glass-warranty h2{font-size:22px;margin:0 0 12px}
.glass-warranty p{margin:0;color:var(--muted-2);font-size:14.5px;line-height:1.65}
.glass-warranty-photos{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.glass-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;
  border:1px solid var(--line);border-radius:var(--r-md)}
.glass-shot{margin:0}
.glass-shot img,.glass-shot svg{width:100%;height:96px;border-radius:var(--r-sm);object-fit:cover;display:block}
.glass-shot.is-empty svg{background:var(--ground);color:var(--line-strong);padding:26px;
  border:1px dashed var(--line-strong)}
.glass-shot figcaption{font-family:'IBM Plex Mono',monospace;font-size:10.5px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted);margin-top:6px;text-align:center}

.glass-info-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:18px 20px}
.glass-info-card h2{margin:0 0 8px;font-size:15px}
.glass-info-card p{margin:0;font-size:13.5px;color:var(--muted-2);line-height:1.6}
.glass-map-link{display:inline-flex;align-items:center;gap:7px;margin-top:12px;font-size:13.5px;
  font-weight:600;color:var(--accent)}
.glass-map-link svg{width:15px;height:15px}
.glass-map-link:hover{color:var(--accent-press)}

.glass-facts{list-style:none;margin:0 0 20px;padding:0;display:flex;flex-direction:column;gap:8px}
.glass-facts li{display:flex;align-items:flex-start;gap:9px;font-size:14px;color:var(--muted-2);line-height:1.4}
.glass-facts svg{width:16px;height:16px;flex:none;margin-top:2px;color:var(--accent)}

.glass-cta-repeat{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
  margin:0 0 48px;padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg)}
.glass-cta-repeat h2{margin:0 0 6px;font-size:20px}
.glass-cta-repeat p{margin:0;color:var(--muted-2);font-size:14.5px}
.glass-cta-repeat-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}

/* модалка мастера: одна на все шаги, содержимое подменяется */
.modal-panel--wizard{max-width:880px;padding:0;display:flex;flex-direction:column;max-height:88vh}
.gw-head{display:flex;align-items:center;gap:14px;padding:20px 24px 14px;border-bottom:1px solid var(--line)}
.gw-head h2{flex:1;font-size:19px;margin:0}
.gw-head .modal-close{position:static;flex:none}
.gw-back{display:inline-flex;align-items:center;gap:6px;background:none;border:1px solid var(--line-strong);
  border-radius:var(--r-sm);padding:7px 12px;font-size:13px;color:var(--muted-2);transition:.18s}
.gw-back:hover{border-color:var(--accent);color:var(--accent)}
.gw-back svg{width:14px;height:14px}
.gw-crumbs{margin:0;padding:10px 24px;font-size:12.5px;color:var(--accent);background:rgba(14,90,125,.05);
  border-bottom:1px solid var(--line)}
.gw-pane{display:none;flex-direction:column;min-height:0;padding:18px 24px 24px}
.gw-pane.is-active{display:flex}
.gw-scroll{overflow-y:auto;min-height:0;max-height:60vh;margin:0 -8px;padding:0 8px 16px}
.gw-search{width:100%;height:44px;border:1px solid var(--line-strong);border-radius:var(--r-md);
  padding:0 14px;font:inherit;font-size:14.5px;margin-bottom:16px;background:var(--surface)}
.gw-search:focus{border-color:var(--accent);outline:none}
.gw-none{padding:24px 4px;color:var(--muted);font-size:14px}
.gw-loading{margin:0;padding:0 24px 16px;font-size:13px;color:var(--muted)}

.gw-marks{display:grid;grid-template-columns:repeat(auto-fill,minmax(126px,1fr));gap:8px}
.gw-mark{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-md);transition:.16s}
.gw-mark:hover{border-color:var(--accent-soft);box-shadow:var(--sh-1);transform:translateY(-2px)}
/* Шаг «выбери марку» — сплошная сетка знаков: по ним и ищут глазами, подпись
   лишь подтверждает. 32px высоты хватало только на подпись. */
.gw-mark img{width:100%;height:50px;object-fit:contain}
.gw-mark-letter{width:40px;height:40px;border-radius:50%;background:var(--ground);color:var(--muted);
  display:grid;place-items:center;font-weight:700}
.gw-mark span{font-size:12px;text-align:center;line-height:1.25;color:var(--text)}

.gw-models{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:8px}
.gw-model{display:flex;align-items:center;min-height:54px;padding:13px 15px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
  font-size:14px;text-align:left;transition:.16s}
.gw-model:hover{border-color:var(--accent-soft);box-shadow:var(--sh-1);transform:translateY(-2px)}

.gw-gen{margin-bottom:22px}
.gw-gen h3{font-size:14.5px;margin:0 0 10px;display:flex;align-items:baseline;gap:10px}
.gw-gen h3 span{font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--muted);font-weight:400}
.gw-bodies{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,210px));justify-content:center;gap:10px}
.gw-body{padding:0;overflow:hidden;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-md);text-align:left;transition:.16s}
.gw-body:hover{border-color:var(--accent);box-shadow:var(--sh-2);transform:translateY(-2px)}
.gw-body img,.gw-body-blank{display:block;width:100%;height:112px;object-fit:contain;background:var(--ground);padding:6px}
.gw-body b{display:block;padding:9px 12px;font-size:13px;font-weight:600}

.gw-positions{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.gw-position{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);transition:.16s}
.gw-position:hover{border-color:var(--accent);box-shadow:var(--sh-2);transform:translateY(-2px)}
.gw-position b{font-size:15px}
.gw-position span{font-family:'IBM Plex Mono',monospace;font-size:12.5px;color:var(--muted)}

/* лайтбокс: тот же .modal-backdrop, но панель под фото, а не под форму */
.lightbox.is-open{background:rgba(11,18,32,.86)}
.lightbox-panel{position:relative;background:#fff;border-radius:var(--r-lg);padding:16px;
  max-width:min(920px,92vw);opacity:0;transform:scale(.97);transition:opacity .22s,transform .22s}
.lightbox.is-open .lightbox-panel{opacity:1;transform:scale(1)}
.lightbox-panel img{display:block;max-width:100%;max-height:78vh;margin:0 auto;object-fit:contain}
.lightbox-panel .modal-close{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm)}
.lightbox-caption{margin:12px 0 0;text-align:center;font-size:13px;color:var(--muted);line-height:1.4}

.glass-req-item{display:flex;align-items:center;gap:12px;padding:12px;margin-bottom:18px;
  background:var(--ground);border-radius:var(--r-md)}
.glass-req-item img{width:56px;height:56px;object-fit:contain;background:#fff;border-radius:var(--r-sm);flex:none}
.glass-req-item b{display:block;font-size:13px;font-weight:600;line-height:1.35}
.glass-req-item span{font-size:14px;font-weight:700;color:var(--accent)}

@media (max-width:900px){
  .glass-head{grid-template-columns:1fr;gap:24px}
  .glass-head-photo{aspect-ratio:16/9}
  .glass-warranty{grid-template-columns:1fr;gap:24px;padding:22px}
  .glass-warranty-photos{grid-template-columns:1fr}
}
@media (max-width:640px){
  main.wrap{padding-bottom:96px}
  .glass-h1{font-size:24px}
  .glass-start{width:100%;justify-content:center;height:52px;padding:0 20px;font-size:15px}
  .glass-facet{align-items:flex-start;flex-direction:column;gap:6px}
  .glass-facet-name{flex:0 0 auto}
  .glass-advice{grid-template-columns:minmax(0,1fr);gap:16px;padding:18px}
  .glass-advice-phone{font-size:24px}
  .glass-cta-repeat{flex-direction:column;align-items:stretch;text-align:center;padding:22px}
  .glass-cta-repeat-actions{justify-content:center}
  .glass-cards{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
  .glass-card-zoom{opacity:1}
  .glass-card-cta{font-size:11px;padding:5px 8px}
  .gw-head{padding:16px 16px 12px;gap:10px}
  .gw-head h2{font-size:16px}
  .gw-back span{display:none}
  .gw-crumbs{padding:8px 16px}
  .gw-pane{padding:14px 16px 18px}
  .gw-marks{grid-template-columns:repeat(auto-fill,minmax(88px,1fr))}
  .gw-bodies,.gw-models{grid-template-columns:1fr 1fr}
  .gw-positions{grid-template-columns:1fr}
}

/* ---------- /contacts: контакты + карта + продолжение маршрута ---------- */
.contacts-h1{font-size:28px;margin:0 0 22px}
/* Карточка не тянется под высоту карты: пустота внутри рамки читается как
   недоделка, снаружи — просто как воздух. */
.contacts-split{padding:0;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:24px;align-items:start}
/* Единственная заливка на странице: карта своей пестротой перетягивала внимание,
   и белая карточка рядом читалась как подпись к ней, а не как главное. Язык тот же,
   что у .cta-band — accent + #BCD4E0 на второстепенном, новой краски не заводим. */
.contacts-card{background:var(--accent);color:#fff;border-radius:var(--r-lg);padding:24px}
.contacts-line{padding:14px 0;border-top:1px solid rgba(255,255,255,.16)}
.contacts-line:first-child{padding-top:0;border-top:0}
.contacts-line small{display:block;font-family:'IBM Plex Mono',monospace;font-size:11.5px;font-weight:500;
  letter-spacing:.12em;text-transform:uppercase;color:#BCD4E0;margin-bottom:5px}
.contacts-line b{font-size:15px;font-weight:600;line-height:1.5}
.contacts-phone{display:inline-flex;align-items:center;gap:10px;font-size:26px;font-weight:700;letter-spacing:-.01em;color:#fff}
.contacts-phone svg{width:20px;height:20px;flex:none;color:#BCD4E0}
.contacts-phone:hover{color:#BCD4E0}
.contacts-card .product-actions{margin-top:18px;padding-top:18px;border-top-color:rgba(255,255,255,.16)}
.contacts-card .btn-order{background:#fff;color:var(--accent)}
.contacts-card .btn-order:hover{background:#EAF2F6}
.contacts-card .product-actions-hint{color:#BCD4E0}

.contacts-map{border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.contacts-map iframe{display:block;width:100%;height:380px;border:0}

.next-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
/* Плитки остаются светлыми — три заливки подряд после карточки превратили бы
   страницу в лоскут; цвет несёт только левая грань, она же метка «это раздел». */
.next-tile{display:flex;flex-direction:column;gap:6px;padding:20px;background:var(--surface);
  border:1px solid var(--line);border-left:3px solid var(--accent-soft);border-radius:var(--r-lg);
  transition:border-color .18s,box-shadow .18s}
.next-tile:hover{border-color:var(--accent);box-shadow:var(--sh-2)}
.next-tile:hover b{color:var(--accent)}
.next-tile b{font-size:16px;font-weight:600}
.next-tile span{font-size:13.5px;color:var(--muted-2);line-height:1.55}
.next-tile svg{width:16px;height:16px;margin-top:6px;color:var(--accent)}

/* ---------- страница доставки ---------- */
/* Тот же приём, что на контактах: одна заливка на странице — карточка со связью,
   остальное светлое. Новой краски не заводим, .contacts-card переиспользуется как есть. */
.delivery-h1{font-size:28px;margin:0 0 22px}
.delivery-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,360px);gap:40px;align-items:start}
.delivery-block+.delivery-block{margin-top:26px}
.delivery-block h2{font-size:19px;margin:0 0 8px}
.delivery-block p,.delivery-empty{margin:0;max-width:64ch;color:var(--muted-2);line-height:1.65;white-space:pre-line}
.delivery-aside{position:sticky;top:var(--stick-top);display:grid;gap:16px}
/* Подчёркивание, а не цвет: карточка залита accent, цветом ссылку внутри не отличить. */
.contacts-address-link{text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255,255,255,.4)}
.contacts-address-link:hover{text-decoration-color:#fff}
/* Рисунок — не фото склада, которого у нас нет: схема в цветах системы честнее
   стока и не обещает покупателю парк машин. */
.delivery-illustration{display:block;width:100%;height:auto;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-lg);padding:18px}

@media (max-width:900px){
  .contacts-split{grid-template-columns:1fr}
  .contacts-map iframe{height:320px}
  .next-grid{grid-template-columns:1fr}
  /* Липкость снимаем вместе с колонкой: в одну колонку карточка уехала бы вслед
     за прокруткой поверх текста условий. */
  .delivery-split{grid-template-columns:1fr;gap:28px}
  .delivery-aside{position:static}
  /* На узком экране рисунок — украшение перед главным: сжимаем, чтобы карточка
     с телефоном попадала на первый экран вместе с ним. */
  .delivery-illustration{max-width:360px}
}

/* ---------- флеш-сообщения корзины ---------- */
/* Стек в углу, а не полоса над контентом: «положили в корзину» приходит по клику
   из выдачи, и сдвигать под сообщение всю сетку — значит уводить из-под курсора
   соседние карточки. Сообщение уходит само по CSS-анимации: без JS оно тоже
   обязано исчезнуть, иначе навсегда закрывает угол экрана. */
.flash-stack{position:fixed;right:20px;bottom:20px;z-index:60;display:flex;flex-direction:column;
  gap:10px;width:min(360px,calc(100vw - 40px));pointer-events:none}
.flash{display:flex;align-items:flex-start;gap:11px;padding:14px 14px 14px 15px;pointer-events:auto;
  background:var(--surface);border:1px solid var(--line);border-left-width:3px;border-radius:var(--r-md);
  box-shadow:var(--sh-3);animation:flash-in .22s ease-out, flash-out .4s ease-in forwards}
.flash--ok{border-left-color:var(--ok);animation-delay:0s,6s}
.flash--ok>svg:first-child{color:var(--ok)}
/* Ошибка держится дольше: её читают, а не подтверждают взглядом. */
.flash--err{border-left-color:var(--danger);animation-delay:0s,12s}
.flash--err>svg:first-child{color:var(--danger)}
.flash>svg:first-child{width:19px;height:19px;flex:none;margin-top:1px}
.flash-body{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:13.5px;line-height:1.45}
.flash-body b{font-size:14px}
.flash-body span{color:var(--muted-2);overflow-wrap:anywhere}
.flash-link{margin-top:5px;color:var(--accent);font-weight:600;text-decoration:underline;
  text-underline-offset:3px}
.flash-close{width:24px;height:24px;margin:-3px -4px 0 auto;display:grid;place-items:center;flex:none;
  border:none;background:transparent;color:var(--muted);border-radius:var(--r-sm)}
.flash-close:hover{color:var(--text);background:var(--ground)}
.flash-close svg{width:14px;height:14px}
@keyframes flash-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes flash-out{to{opacity:0;transform:translateY(6px);visibility:hidden}}
@media (prefers-reduced-motion:reduce){
  .flash{animation-name:none,flash-out}
}
@media (max-width:600px){
  /* Снизу справа живёт кнопка звонка — на узком экране стек уходит вверх, к шапке. */
  .flash-stack{right:12px;left:12px;bottom:auto;top:12px;width:auto}
}

/* ---------- корзина, оформление, кабинет ---------- */
/* Кабинет — соседняя иконка к корзине и той же величины: это не главное действие
   шапки, а способ вернуться к своим заказам. Показывается только вошедшему. */
.hdr-account{display:flex;align-items:center;justify-content:center;flex:none;
  width:40px;height:40px;border-radius:var(--r-md);color:var(--text);transition:color .18s,background .18s}
.hdr-account:hover{color:var(--accent);background:var(--ground)}
.hdr-account svg{width:20px;height:20px}

.hdr-cart{position:relative;display:flex;align-items:center;justify-content:center;flex:none;
  width:40px;height:40px;border-radius:var(--r-md);color:var(--text);transition:color .18s,background .18s}
.hdr-cart:hover{color:var(--accent);background:var(--ground)}
.hdr-cart svg{width:20px;height:20px}
/* Счётчик — цифра на иконке: она отвечает на «а что у меня там», не заходя внутрь. */
.hdr-cart-count{position:absolute;top:1px;right:0;min-width:17px;height:17px;padding:0 4px;
  border-radius:9px;background:var(--accent-warm);color:#fff;font-size:11px;font-weight:700;line-height:17px;
  text-align:center;font-family:'IBM Plex Mono',monospace}

.cart-h1{font-size:28px;margin:0 0 22px}
/* Правая колонка шире прежних 320px: в ней теперь не только итог, но и контакты —
   форма оформления переехала сюда с отдельной страницы. */
.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:24px;align-items:start}

.cart-line{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:16px;align-items:center;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:14px;margin-bottom:12px}
.cart-line--muted{opacity:.72}
.cart-line-photo{display:block;height:90px;border-radius:var(--r-sm);overflow:hidden;background:var(--ground)}
.cart-line-photo img{width:100%;height:100%;object-fit:contain}
.cart-line-name{display:block;font-size:15px;font-weight:600;line-height:1.4;margin-top:2px}
.cart-line-name:hover{color:var(--accent)}
.cart-line-note{margin:6px 0 0;font-size:12.5px;color:var(--accent)}
.cart-line-warn{margin:6px 0 0;font-size:12.5px;color:var(--danger)}
.cart-line-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;text-align:right}
.cart-qty{display:flex;align-items:center;gap:6px}
/* Шаги количества показывает JS (public/js/cart-qty.js): без него на их месте
   остаётся поле и кнопка «Пересчитать», и корзина работает формой, как раньше. */
.qty-step{width:34px;height:38px;display:grid;place-items:center;flex:none;
  border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);
  color:var(--muted-2);font-size:17px;line-height:1;transition:.16s}
.qty-step:hover{border-color:var(--accent);color:var(--accent)}
.qty-input{width:64px;height:38px;border:1px solid var(--line-strong);border-radius:8px;padding:0 8px;
  font:inherit;font-family:'IBM Plex Mono',monospace;text-align:center;background:var(--surface)}
.link-button--quiet{color:var(--muted)}
.link-button--quiet:hover{color:var(--danger)}

.cart-summary{position:sticky;top:var(--stick-top);background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:20px;display:flex;flex-direction:column;gap:10px}
.cart-summary-title{font-size:17px;margin:0}
.cart-summary-line{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;color:var(--muted-2)}
.cart-summary-sub{font-size:12.5px;color:var(--accent);margin-top:-4px}
.cart-summary-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;
  padding-top:10px;border-top:1px solid var(--line);font-size:15px}
.cart-summary-row b{font-size:20px;font-family:'IBM Plex Mono',monospace}
.cart-summary-note{margin:0;font-size:12.5px;color:var(--muted);line-height:1.5}
.cart-summary-warn{margin:0;font-size:12.5px;color:var(--danger);line-height:1.5}
.cart-checkout{width:100%}
/* Оформить нечего, пока в корзине лежит недоступное: кнопка не притворяется рабочей. */
.cart-checkout.is-disabled{background:var(--line-strong);pointer-events:none}

.cart-empty{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:32px;max-width:56ch}
.cart-empty p{margin:0 0 18px;color:var(--muted-2);line-height:1.6}
.success-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}

/* Форма оформления живёт внутри сводки корзины — своя рамка и фон ей там не нужны:
   вторая рамка в рамке читается как ещё один блок, хотя это одна карточка заказа. */
.checkout-form{max-width:none;background:none;border:none;border-radius:0;padding:14px 0 0;
  margin-top:4px;border-top:1px solid var(--line)}
.label-hint{color:var(--muted);font-weight:400}
.install-toggle{display:flex;align-items:flex-start;gap:9px;margin-bottom:14px;font-size:13.5px;
  color:var(--muted-2);line-height:1.5;cursor:pointer}
.install-toggle input{margin-top:3px;flex:none;accent-color:var(--accent)}
.product-buy{display:flex;align-items:center;gap:12px}
.product-buy .btn-order{flex:1}
.product-buy-price{display:none}

.account-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px}
.account-order{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:18px;margin-bottom:12px}
.account-order-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.account-order-date{font-size:12.5px;color:var(--muted);margin-left:auto}
.account-order-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px;
  font-size:14px;color:var(--muted-2)}
.account-order-install{color:var(--accent);font-size:12.5px}
.account-order-total{margin-top:12px;padding-top:10px;border-top:1px solid var(--line);font-size:14px}

/* На телефоне форма покупки прилипает к низу экрана: без этого на 390px первый экран —
   одно фото, а «в корзину» лежит ниже сгиба.
   Прилипает сама форма, а не её копия: вторая кнопка «в корзину» — это либо вторая
   форма с тем же действием (разъедутся при первой правке), либо фиксированная полоса
   на JS. Ни того, ни другого ради одной кнопки.
   Цена решения честная: `sticky bottom` держит форму от верха страницы до её
   собственного места в потоке — то есть весь фото-заголовок-цена-характеристики-
   описание. Ниже (применимость, подбор авто) полоса отпускается. Если отчёты покажут,
   что решение принимают на «Подходит на», вернёмся сюда с фиксированной полосой.
   Подсказку про менеджера в липком состоянии прячем: в полосе на 100% ширины она
   съедает треть экрана, а тот же текст ждёт покупателя в корзине. */
@media (max-width:900px){
  .product-actions[data-cart-add]{position:sticky;bottom:0;z-index:20;
    margin-top:18px;padding:12px 0 max(12px,env(safe-area-inset-bottom));
    background:var(--ground);border-top:1px solid var(--line-strong)}
  .product-actions[data-cart-add] .product-actions-hint{display:none}
  /* Цена переезжает в полосу — в двух местах сразу её быть не должно. Скрываем
     только там, где полоса есть: у «под заказ» и «нет в наличии» формы покупки нет,
     и цена обязана остаться на своём месте. */
  .product-info:has(.product-buy) > .price{display:none}
  .product-buy-price{display:block;font-size:19px;font-weight:600;white-space:nowrap}
  /* Три элемента в 390px: цена не переносится, поле количества уже, кнопка забирает
     остаток и не ломает надпись на две строки. */
  .product-buy{gap:10px}
  .product-buy .qty-input{width:56px}
  .product-buy .btn-order{padding:0 14px;white-space:nowrap}
}

@media (max-width:900px){
  .cart-layout{grid-template-columns:1fr}
  .cart-summary{position:static}
  .cart-line{grid-template-columns:88px minmax(0,1fr);gap:12px}
  .cart-line-photo{height:66px}
  .cart-line-actions{grid-column:1 / -1;flex-direction:row;flex-wrap:wrap;align-items:center;
    justify-content:space-between;text-align:left}
}

.status-pill{display:inline-flex;align-items:center;padding:3px 10px;border-radius:20px;
  font-size:12px;font-weight:600}
.status-pill--new{background:var(--warn-bg);color:var(--warn)}
.status-pill--confirmed{background:rgba(14,90,125,.1);color:var(--accent)}
.status-pill--done{background:var(--ok-bg);color:var(--ok)}
.status-pill--cancelled{background:rgba(11,18,32,.07);color:var(--muted-2)}

/* ---------- Пальцем, а не мышью ---------- */
/* Замерено вживую на 390px: «В корзину» на карточке — 36px, строка бренда в фильтрах —
   22px, телефон в шапке (там он без подписи, одна иконка) — 16px. Промах по такой
   цели стоит покупателю возврата назад, а нам — заказа.
   Порог 44px — Apple HIG; WCAG 2.2 требует 24, но 24 это «можно попасть», а не
   «попадаешь не глядя». Правило под `pointer:coarse`, а не под ширину экрана:
   плотность интерфейса решает способ ввода, а не размер окна — на узком окне
   десктопа мышь никуда не делась.
   Хлебные крошки и ссылки внутри текста намеренно не трогаем: у ссылок в строке
   текста есть отдельное исключение в WCAG, а растянуть их — сломать саму строку. */
@media (pointer:coarse){
  .hdr-phone{min-width:44px;min-height:44px;justify-content:center}
  .card-action{height:44px}
  .active-chip{height:44px;padding:0 14px 0 16px}
  .filter-check{min-height:44px}
  .filter-check input{width:20px;height:20px}
  .cat-tree-all,.cat-tree-leaf,.cat-tree-item summary a,
  .cat-tree-children a,.cat-list-rest a{min-height:44px;display:flex;align-items:center}
  .hdr-cart,.catalog-btn,.filters-mobile-toggle,.brand,.link-all,
  .glass-advice-phone{min-height:44px}
  .hdr-cart{min-width:44px}
  .brand-search,.filter-apply,.sort-select{height:44px}
  .view-toggle button,.filters-mobile-close{width:44px;height:44px}
  .qty-step{width:44px;height:44px}
  .qty-input{height:44px}
  .link-button{min-height:44px;display:inline-flex;align-items:center}
  footer .f-link-btn,footer li a{min-height:44px;display:inline-flex;align-items:center}
}

/* Выросшие телефон и корзина перестали помещаться в первый ряд шапки, и «Каталог»
   уезжал на третью строку. Ужимаем зазор и кнопку, а не цели: телефон в шапке —
   единственный способ позвонить со страницы товара (плавающая кнопка там выключена,
   чтобы не лечь на полосу покупки). */
@media (pointer:coarse) and (max-width:820px){
  .hdr .wrap{gap:8px}
  .catalog-btn{padding:0 10px}
}
/* 360px — самый узкий экран, который проверяем перед деплоем (docs/TODO.md,
   «Регулярное»). Там даже ужатого ряда не хватает: отрезаем боковые поля шапки
   (только её, не всей страницы) и уменьшаем знак бренда. Логотип ужать дешевле,
   чем цель звонка или корзины: по нему промахиваются без последствий. */
@media (pointer:coarse) and (max-width:480px){
  .hdr .wrap{padding-left:14px;padding-right:14px}
  .brand{gap:7px}
  .brand-mark{width:28px;height:28px}
  .brand-name{font-size:17px}
}

/* Форма отслеживания живёт внутри пояснительной карточки — своя рамка и фон ей там
   не нужны, ровно как форме оформления в сводке корзины: рамка в рамке читается как
   второй блок, хотя это одна карточка. */
.track-form{background:none;border:none;border-radius:0;padding:14px 0 0;max-width:none;
  border-top:1px solid var(--line)}
.track-lede{margin:0 0 16px;color:var(--muted-2)}
/* «× 2» — одна единица смысла: на узком экране перенос отрывал число от знака. */
.account-order-items .mono{white-space:nowrap}

/* Вход в мастер подбора стекла — из раздела стёкол в каталоге. Не баннер: тон
   служебный, как у подсказок в фильтрах, потому что это подсказка «есть другой
   способ», а не второй призыв рядом с товаром. */
.glass-hint{display:flex;align-items:center;gap:12px;margin-bottom:16px;padding:12px 16px;
  background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--accent);
  border-radius:var(--r-md);font-size:14px;color:var(--muted-2);line-height:1.45;
  transition:border-color .18s,color .18s}
.glass-hint:hover{border-color:var(--accent);color:var(--text)}
.glass-hint b{color:var(--text);font-weight:600}
.glass-hint svg{width:22px;height:22px;flex:none;color:var(--accent)}
.glass-hint-arrow{width:16px;height:16px;margin-left:auto}

/* Бренд на карточке в выдаче — вход в «а что ещё у этого производителя». Тише цены
   и поднят над растяжкой ссылки на карточку, иначе клик по нему уводил бы на товар.
   В списочном виде прячем: там строка и так плотная, а бренд есть в карточке товара. */
.prod-brand{position:relative;z-index:1;font-size:12px;color:var(--muted);
  max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:color .18s}
.prod-brand:hover{color:var(--accent)}
.grid.is-list .prod-brand{display:none}
.success-phone{margin:18px 0 0;font-size:14px;color:var(--muted)}
.success-phone a{color:var(--accent);font-weight:600}
