/* =====================================================================
 * CARVIC — стили прототипа
 * Брендбук ожидается от маркетолога: цвета/шрифты/размеры вынесены
 * в CSS-переменные ниже — меняйте их здесь.
 * ===================================================================== */
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/Montserrat-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  /* Брендбук: цвета в одном месте */
  --c-carbon: #08070A;
  --c-signal: #D92D27;
  --c-graphite: #121215;
  --c-steel: #2A2A30;
  --c-smoke: #9A9AA3;
  --c-paper: #F4F3EF;
  --c-red-light: #F0524B;
  --c-deep-red: #B8231E;
  --c-black: var(--c-carbon);
  --c-dark: var(--c-graphite);
  --c-dark-2: #1a1a1f;
  --c-dark-3: var(--c-steel);
  --c-line-dark: var(--c-steel);
  --c-accent: var(--c-signal);
  --c-accent-2: var(--c-signal);
  --c-accent-dark: var(--c-deep-red);
  --c-white: var(--c-paper);
  --c-bg: var(--c-carbon);
  --c-card: var(--c-graphite);
  --c-text: var(--c-paper);
  --c-muted: var(--c-smoke);
  --c-border: var(--c-steel);
  --c-ok: #1f9d55;
  --c-warn: #c77700;
  --font-brand: "Manrope", "Montserrat", "Arial Black", sans-serif;
  --font-body: "Onest", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --banner-h: 81px;
  --sidebar-w: 190px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: none;
  --h1: clamp(40px, 11vw, 88px);
  --h2: clamp(32px, 7vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
.main, .work, .page, .scheme { max-width: 100%; min-width: 0; }
.home-title { margin: 12px 12px 0; font-size: 28px; }
.scheme svg { overflow: hidden; max-width: 100%; }
body { font-family: var(--font-body); color: var(--c-text); background: var(--c-bg); font-size: 16px; font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, .home-title { font-family: var(--font-brand); font-weight: 700; font-size: 32px; line-height: 1.19; letter-spacing: 0; text-transform: none; margin: 0 0 16px; }
h2 { font-family: var(--font-brand); font-weight: 800; font-size: var(--h2); line-height: 1.07; letter-spacing: -0.02em; }
h3 { font-family: var(--font-brand); font-weight: 700; font-size: 32px; line-height: 38px; }
.mono { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0; font-weight: 500; }
.sku-tag, .vin-card .vin-code { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.16em; font-weight: 500; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--c-muted); }
[hidden] { display: none !important; }

/* ===================== БАННЕР ===================== */
.banner {
  position: fixed; inset: 0 0 auto 0; height: var(--banner-h); z-index: 50;
  background: var(--c-carbon); color: var(--c-paper); overflow: visible;
  border-bottom: 3px solid var(--c-signal);
  display: flex; align-items: center; gap: 12px; padding: 0 12px 0 8px;
}
.banner__swoosh, .banner__parts { display: none; }
.logo { position: static; text-decoration: none; display: inline-flex; align-items: center; line-height: 0; z-index: 2; flex: 0 0 auto; margin: 0 16px; }
.logo .logo__full { display: block; width: 144px; height: auto; min-width: 120px; }
.logo .logo__mark { display: none; width: 96px; height: auto; min-width: 64px; }
.logo--sm { margin: 0 0 16px; }
.logo--sm img { display: block; width: 160px; min-width: 120px; height: auto; }

.banner__center { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; flex: 1 1 auto; overflow: visible; min-width: 0; }
.site-nav a { color: var(--c-paper); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.pin { width: 8px; height: 8px; border-radius: 50%; background: var(--c-signal); display: inline-block; }
.site-nav a:hover { color: var(--c-red-light); }
.banner > a.btn { flex: 0 0 auto; padding: 0 16px; }
.quick-icons { display: none; }
.qi { width: 48px; height: 48px; border: 2px solid #f2f2f2; border-radius: 9px; display: grid; place-items: center; color: #fff; transition: .15s; background: rgba(0,0,0,.35); }
.qi svg { width: 34px; height: 34px; }
.qi:hover, .qi.on { border-color: var(--c-accent); color: var(--c-accent); transform: translateY(-1px); }
.qi:hover svg [fill^="var"] { fill: #fff; }

.vin-search { position: relative; margin-top: 0; }
.vin-search input {
  width: 100%; height: 40px; border-radius: 8px; border: 1px solid #3a3c43;
  background: linear-gradient(#1e1f24, #141519); color: #fff; padding: 0 44px 0 12px;
  font-size: 16px; font-weight: 500; outline: none; box-shadow: inset 0 2px 6px rgba(0,0,0,.6);
  letter-spacing: 0;
}
.vin-search input::placeholder { color: #cfd1d6; font-weight: 500; letter-spacing: 0; }
.vin-search input:focus { border-color: var(--c-accent); }
.vin-search button { position: absolute; right: 4px; top: 0; width: 40px; height: 40px; border: 0; background: none; color: var(--c-accent); cursor: pointer; border-radius: 50%; }
.vin-search button svg { width: 26px; height: 26px; }
.vin-search button:hover { background: rgba(225,6,0,.12); }
.vin-hint { position: absolute; left: 22px; top: 52px; font-size: 11px; color: #c9cbd1; white-space: nowrap; }
.vin-hint.err { color: #ff6b63; }

.banner__right { position: static; display: flex; align-items: center; gap: 8px; z-index: 3; margin-left: auto; flex: 0 0 auto; }
.banner__phone { display: inline-flex; align-items: center; gap: 0; background: transparent; padding: 0; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--c-paper); white-space: nowrap; flex: 0 0 auto; }
.banner__phone-icon { display: none; width: 22px; height: 22px; }
.banner__phone b { font-size: 16px; font-weight: 800; color: var(--c-paper); }
.cart-btn { position: relative; width: 44px; height: 44px; flex: 0 0 44px; border: 0; background: rgba(0,0,0,.45); border-radius: 8px; color: #fff; cursor: pointer; }
.cart-btn svg { width: 28px; height: 28px; }
.cart-btn:hover { color: var(--c-accent); }
.cart-count { position: absolute; top: -4px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--c-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.cart-count.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.4); } }
.burger { display: none; }

/* ===================== САЙДБАР ===================== */
.sidebar {
  position: fixed; top: var(--banner-h); left: 0; bottom: 0; width: var(--sidebar-w); z-index: 40;
  background: linear-gradient(180deg, #121317, #0d0e11); color: #e6e7ea; overflow-y: auto; padding: 14px 14px 24px;
  scrollbar-width: thin; scrollbar-color: #333 transparent;
}
.sb-block { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #24262c; }
.sb-block:last-child { border-bottom: 0; }
.sel { display: block; margin-bottom: 10px; position: relative; }
.sel select {
  width: 100%; height: 34px; appearance: none; -webkit-appearance: none; border-radius: 5px;
  background: #1a1b20 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e6e7ea' stroke-width='2' fill='none'/%3E%3C/svg%3E") right 10px center / 11px no-repeat;
  border: 1px solid #3a3c43; color: #e6e7ea; padding: 0 28px 0 10px; font-size: 13px; cursor: pointer;
}
.sel select:disabled { opacity: .5; cursor: not-allowed; }
.sel select:focus { outline: none; border-color: var(--c-accent); }
.sel--sm select { height: 30px; font-size: 12px; }
.sb-label { display: block; font-size: 11px; color: #9a9ca3; margin: 8px 0 4px; }
.sb-title { font-family: var(--font-brand); font-size: 14px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.sb-reset { width: 100%; background: none; border: 1px dashed #4a4c53; color: #c9cbd1; border-radius: 5px; padding: 5px; font-size: 12px; cursor: pointer; }
.sb-reset:hover { border-color: var(--c-accent); color: #fff; }
.checks label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #cfd1d6; padding: 3px 0; cursor: pointer; }
.checks input { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; border: 1px solid #55575e; border-radius: 3px; background: #1a1b20; flex: 0 0 auto; margin: 0; cursor: pointer; position: relative; }
.checks input:checked { background: var(--c-accent); border-color: var(--c-accent); }
.checks input:checked::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks label:hover { color: #fff; }
.checks .cnt { margin-left: auto; color: #6d7078; font-size: 11px; }
.checks--scroll { max-height: 210px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.seg { display: flex; background: #1a1b20; border: 1px solid #3a3c43; border-radius: 6px; padding: 2px; }
.seg button { flex: 1; border: 0; background: none; color: #cfd1d6; padding: 5px 4px; font-size: 12px; border-radius: 4px; cursor: pointer; font-weight: 600; }
.seg button.on { background: var(--c-accent-2); color: #fff; }
.sb-nav a { display: block; text-decoration: none; color: #cfd1d6; font-size: 12.5px; padding: 4px 0 4px 8px; border-left: 2px solid transparent; }
.sb-nav a:hover { color: #fff; }
.sb-nav a.on { color: #fff; border-left-color: var(--c-accent); }
.sb-overlay { display: none; }

/* ===================== ОСНОВНАЯ ОБЛАСТЬ ===================== */
.main { margin-left: var(--sidebar-w); padding-top: var(--banner-h); min-height: 100vh; background: var(--c-carbon); color: var(--c-paper); display: flex; flex-direction: column; outline: none; }
#view { padding: 14px 18px 28px; flex: 1; }
.card { background: var(--c-graphite); border: 1px solid var(--c-steel); border-radius: 12px; box-shadow: none; padding: 24px; color: var(--c-paper); }
.card h2, .page h1 { font-family: var(--font-brand); }
.card__title { font-family: var(--font-brand); font-size: 17px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.card__title small { font-weight: 500; font-size: 12px; color: var(--c-muted); font-family: var(--font-body); }
.work { display: grid; grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.crumbs { font-size: 12px; color: var(--c-muted); margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-accent); }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #f1f2f4; border: 1px solid var(--c-border); border-radius: 14px; padding: 3px 10px; font-size: 12px; }
.chip button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--c-muted); font-size: 13px; }
.chip--car { background: #fff1f0; border-color: #f5c2bf; color: #8b0a06; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

/* ---- Схема автомобиля ---- */
.scheme { position: relative; }
.scheme svg { width: 100%; height: auto; display: block; }
.scheme .car-line { fill: #fff; stroke: #1b1c20; stroke-width: 2.2; stroke-linejoin: round; }
.scheme .car-thin { fill: none; stroke: #1b1c20; stroke-width: 1.4; }
.scheme .glass { fill: #eef1f5; stroke: #1b1c20; stroke-width: 1.8; }
.scheme .tyre { fill: #1b1c20; }
.scheme .rim { fill: #d9dce1; stroke: #1b1c20; stroke-width: 1.5; }
.scheme .spring { fill: none; stroke: var(--c-accent); stroke-width: 3.4; stroke-linecap: round; }
.hs { cursor: pointer; }
.hs .lead { stroke: var(--c-accent); stroke-width: 1.6; fill: none; }
.hs .dot { fill: #fff; stroke: var(--c-accent); stroke-width: 3; transition: .15s; }
.hs .pt { fill: var(--c-accent); }
.hs .pulse { fill: var(--c-accent); opacity: .0; transform-box: fill-box; transform-origin: center; }
.hs:hover .pulse, .hs.on .pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { opacity: .45; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }
.hs .lbl { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; fill: #33353b; paint-order: stroke; stroke: #fff; stroke-width: 4px; transition: .15s; }
.hs:hover .lbl, .hs.on .lbl { fill: var(--c-accent); }
.hs:hover .dot, .hs.on .dot { fill: var(--c-accent); }
.hs:focus { outline: none; }
.hs:focus-visible .dot { stroke-width: 5; }
.scheme-help { font-size: 12px; color: var(--c-muted); margin-top: 6px; }
.scheme-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.scheme-cats button { border: 1px solid var(--c-border); background: #fff; border-radius: 14px; padding: 4px 11px; font-size: 12px; cursor: pointer; }
.scheme-cats button.on, .scheme-cats button:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ---- Результаты ---- */
.results { display: flex; flex-direction: column; }
.res-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.res-tools { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--c-muted); }
.res-tools select { border: 1px solid var(--c-border); border-radius: 5px; padding: 3px 6px; font-size: 12px; background: #fff; }
.res-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-border); }
.res-item { display: grid; grid-template-columns: 62px minmax(0,1fr) auto auto; gap: 8px 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--c-border); }
.thumb { width: 62px; height: 56px; display: grid; place-items: center; background: #fff; border-radius: 6px; }
.thumb svg { width: 52px; height: 52px; }
.res-name { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.res-name a { text-decoration: none; }
.res-name a:hover { color: var(--c-accent); }
.res-sub { color: var(--c-accent-2); font-size: 12px; margin-top: 2px; }
.res-sub span { color: var(--c-muted); }
.feed-cats-wrap { position: relative; margin: 0 0 8px; }
.feed-cats { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; overflow-x: auto; padding-bottom: 2px; }
.feed-cat, .feed-cats-wrap summary { flex: 0 0 auto; display: inline-flex; align-items: center; border: 1px solid var(--c-border); background: #fff; color: var(--c-text); border-radius: 999px; padding: 4px 10px; font-size: 12px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.feed-cat.on { background: var(--c-black); color: #fff; border-color: var(--c-black); }
.feed-cats__more { display: block; margin: 0 0 6px; }
.feed-cats__panel { position: static; width: 100%; max-width: 720px; max-height: min(50vh, 420px); overflow: auto; margin: 6px 0 0; padding: 8px; background: #fff; border: 1px solid var(--c-border); border-radius: 8px; }
.feed-cats__panel input { width: 100%; margin: 0 0 8px; }
a.feed-cat-type { display: inline-block; margin: 8px 0 4px; font-size: 13px; font-weight: 700; color: var(--c-text); text-decoration: none; }
a.feed-cat-type.on, .feed-group { color: var(--c-accent-2); }
.feed-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; font-size: 15px; }
.feed-clear { display: inline-flex; align-items: center; border: 1px solid var(--c-border); border-radius: 999px; padding: 4px 10px; text-decoration: none; font-size: 13px; }
.feed-cat-group:first-child a.feed-cat-type { margin-top: 0; }
.feed-cat-items { display: flex; flex-wrap: wrap; gap: 6px; }
.feed-card { border: 1px solid var(--c-steel); border-radius: 12px; padding: 16px; margin: 0 0 16px; background: var(--c-graphite); min-width: 0; }
.feed-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.feed-card h3 { margin: 0 0 8px; font-family: var(--font-brand); font-weight: 700; font-size: 24px; line-height: 1.2; text-transform: none; }
.feed-card h3 a { text-decoration: none; }
.feed-meta { margin: 0 0 8px; color: var(--c-smoke); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feed-card .price { font-size: 28px; line-height: 1.1; }
.feed-card .res-stock { margin: 8px 0; }
.feed-card .btn { white-space: normal; max-width: 100%; height: 52px; border-radius: 8px; }
.feed-hit { padding: 12px 0; border-bottom: 1px solid var(--c-steel); }
.feed-buy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.feed-qty { width: 72px; height: 52px; border-radius: 8px; border: 1px solid var(--c-steel); background: var(--c-graphite); color: var(--c-paper); padding: 0 8px; }
.status-badge { display: inline-flex; align-items: center; border-radius: 8px; padding: 4px 10px; font-size: 14px; font-weight: 500; }
.status-badge--ok { color: #b6f0c8; background: #14301c; }
.status-badge--wait { color: #ffe3a3; background: #3a2e10; }
.feed-bind { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.feed-bind input, .feed-bind select { min-width: 0; }
.res-stock { font-size: 10.5px; color: var(--c-muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 3px 4px; }
.res-item > .res-stock { grid-column: 2 / -1; margin-top: -6px; }
.res-stock span { white-space: nowrap; background: #f4f5f7; border-radius: 3px; padding: 0 5px; }
.res-stock b { font-weight: 600; }
.res-stock .z { color: #b3b6bd; }
.res-stock .y { color: var(--c-ok); }
.price { font-family: var(--font-brand); font-weight: 800; font-size: 17px; white-space: nowrap; text-align: right; }
.price small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10.5px; color: var(--c-muted); }
.price.loading { color: #c4c6cb; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; background: var(--c-signal); color: var(--c-paper); height: 52px; padding: 0 24px; font-size: 16px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: .15s; }
.btn:hover { background: var(--c-deep-red); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--ghost, .btn--dark { background: transparent; color: var(--c-paper); border: 1px solid var(--c-steel); }
.btn--ghost:hover, .btn--dark:hover { background: var(--c-steel); color: var(--c-paper); }
.btn--dark { background: var(--c-black); }
.btn--dark:hover { background: #2a2c33; }
.btn--lg { padding: 12px 20px; font-size: 14.5px; }
.btn.added { background: var(--c-ok); }
.empty { padding: 26px 8px; text-align: center; color: var(--c-muted); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.pager button { min-width: 32px; height: 30px; border: 1px solid var(--c-border); background: #fff; border-radius: 4px; cursor: pointer; }
.pager button.on { background: var(--c-black); color: #fff; border-color: var(--c-black); }
.demo-note { font-size: 11px; color: var(--c-muted); margin-top: 10px; }
.demo-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; background: #fff4d6; color: #8a5a00; border: 1px solid #f1d58a; border-radius: 3px; padding: 1px 5px; vertical-align: middle; }

/* ---- VIN ---- */
.vin-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; background: linear-gradient(90deg, #0f1013, #23252b); color: #fff; border: 0; }
.vin-card .vin-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; letter-spacing: 2px; color: #fff; }
.vin-card dl { display: grid; grid-template-columns: repeat(4, auto); gap: 2px 22px; margin: 0; }
.vin-card dt { font-size: 11px; color: #9a9ca3; }
.vin-card dd { margin: 0; font-weight: 700; }
.vin-card .icon-car { width: 64px; height: 64px; }

/* ---- Страницы ---- */
.page { max-width: 1060px; }
.page h1 { font-size: 32px; line-height: 38px; margin: 8px 0 16px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.page h1 em { color: var(--c-accent); font-style: normal; }
.page h2 { font-family: var(--font-brand); font-size: 32px; line-height: 38px; margin: 24px 0 16px; font-weight: 700; }
.brand-home h2 { font-size: var(--h2); line-height: 1.07; font-weight: 800; text-transform: uppercase; }
.page p { max-width: 760px; }
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; padding: 18px 10px 14px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; transition: .15s; text-align: center; }
.cat-tile svg { width: 64px; height: 64px; }
.cat-tile b { font-size: 13.5px; }
.cat-tile span { font-size: 12px; color: var(--c-muted); }
.cat-tile:hover { border-color: var(--c-accent); box-shadow: 0 6px 18px rgba(225,6,0,.12); transform: translateY(-2px); }
.store { display: flex; flex-direction: column; gap: 6px; }
.store h3 { margin: 0; font-family: var(--font-brand); font-size: 16px; }
.store .num { width: 30px; height: 30px; border-radius: 50%; background: var(--c-accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.store .row { display: flex; gap: 8px; font-size: 13px; }
.store .row span:first-child { color: var(--c-muted); min-width: 70px; }
.store .actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.req { width: 100%; border-collapse: collapse; background: #fff; }
.req td { border-bottom: 1px solid var(--c-border); padding: 9px 12px; vertical-align: top; }
.req td:first-child { color: var(--c-muted); width: 34%; }
.req tr:hover td { background: #fafafa; }
.copy { border: 0; background: none; color: var(--c-muted); cursor: pointer; font-size: 12px; }
.copy:hover { color: var(--c-accent); }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature i { flex: 0 0 34px; height: 34px; border-radius: 8px; background: var(--c-black); color: var(--c-accent); display: grid; place-items: center; font-style: normal; font-weight: 900; }
.feature b { display: block; margin-bottom: 2px; }
.hero-strip { background: var(--c-black) ; color: #fff; border-radius: var(--radius-lg); padding: 22px 24px; position: relative; overflow: hidden; }
.hero-strip::after { content: ""; position: absolute; right: -40px; top: -30px; width: 280px; height: 200px; background: radial-gradient(closest-side, rgba(225,6,0,.55), transparent); }
.hero-strip h1 { margin: 0 0 6px; color: #fff; }
.hero-strip p { margin: 0; color: #d0d1d5; position: relative; z-index: 1; }

/* ---- Формы ---- */
.form { display: grid; gap: 12px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 12px; color: var(--c-muted); margin-bottom: 4px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--c-steel); border-radius: 8px; padding: 12px 16px; background: var(--c-carbon); color: var(--c-paper); outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(225,6,0,.1); }
.field.invalid input { border-color: var(--c-accent); }
.field .err { color: var(--c-accent); font-size: 11.5px; margin-top: 3px; display: none; }
.field.invalid .err { display: block; }
.seg-light { display: inline-flex; border: 1px solid var(--c-border); border-radius: 8px; padding: 3px; background: #f4f5f7; }
.seg-light button { border: 0; background: none; padding: 8px 16px; border-radius: 6px; font-weight: 600; cursor: pointer; color: var(--c-muted); }
.seg-light button.on { background: var(--c-black); color: #fff; }
.success { text-align: center; padding: 34px 20px; }
.success .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--c-ok); color: #fff; display: grid; place-items: center; font-size: 34px; margin: 0 auto 14px; }

/* ---- Корзина ---- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12px; color: var(--c-muted); font-weight: 600; padding: 8px; border-bottom: 2px solid var(--c-border); }
.cart-table td { padding: 10px 8px; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.cart-table select { border: 1px solid var(--c-border); border-radius: 5px; padding: 5px 6px; font-size: 12px; max-width: 200px; background: #fff; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-border); border-radius: 6px; overflow: hidden; }
.qty button { width: 28px; height: 30px; border: 0; background: #f4f5f7; cursor: pointer; font-size: 16px; }
.qty button:hover { background: #e9eaee; }
.qty input { width: 40px; height: 30px; border: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rm { border: 0; background: none; color: var(--c-muted); cursor: pointer; font-size: 16px; }
.rm:hover { color: var(--c-accent); }
.total-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.total { font-family: var(--font-brand); font-size: 22px; font-weight: 800; }
.stock-warn { font-size: 11px; color: var(--c-warn); display: block; margin-top: 2px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 16px; align-items: start; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--c-border); }

.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: .2s; z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 100; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.25); }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--c-black); color: #fff; }
.drawer__head h3 { margin: 0; font-family: var(--font-brand); }
.icon-btn { border: 0; background: none; color: inherit; font-size: 18px; cursor: pointer; }
.drawer__body { flex: 1; overflow-y: auto; padding: 6px 18px; }
.drawer__foot { padding: 14px 18px; border-top: 1px solid var(--c-border); }
.d-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--c-border); align-items: center; }
.d-item .thumb { width: 48px; height: 44px; }
.d-item .thumb svg { width: 40px; height: 40px; }
.d-item .n { font-size: 13px; font-weight: 600; line-height: 1.25; }
.d-item .m { font-size: 11.5px; color: var(--c-muted); }
.d-item .r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--c-black); color: #fff; padding: 10px 18px; border-radius: 8px; border-left: 4px solid var(--c-accent); opacity: 0; pointer-events: none; transition: .25s; z-index: 200; font-size: 13.5px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Подвал ---- */
.footer { background: var(--c-black); color: #cfd1d6; padding: 26px 22px 16px; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 20px; }
.footer h4 { color: #fff; margin: 0 0 8px; font-family: var(--font-brand); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.footer a { display: block; text-decoration: none; font-size: 13px; padding: 2px 0; color: #cfd1d6; }
.footer a:hover { color: var(--c-accent); }
.footer .muted { color: #8b8e96; font-size: 12px; }
.footer__phone { font-size: 18px !important; font-weight: 800; color: #fff !important; }
.footer__bottom { margin-top: 18px; padding-top: 12px; border-top: 1px solid #23252b; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 16px; flex: 1 1 100%; }
.footer__legal a, .footer__bottom a { display: inline; }

/* ===================== АДАПТИВ ===================== */
@media (max-width: 1180px) {
  .banner__parts { width: 420px; opacity: .85; }
  .banner__phone-text { display: none; }
  .banner__phone-icon { display: block; }
  .banner__phone { width: 44px; height: 44px; justify-content: center; }
  .grid-5 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 1020px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .banner__parts { opacity: .45; }
  .grid-4, .grid-5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
html { overflow-x: clip; }
@media (max-width: 860px) {
  :root { --banner-h: 72px; }
  .burger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: static; z-index: 4; background: none; border: 0; padding: 6px; cursor: pointer; min-width: 44px; min-height: 44px; flex: 0 0 auto; }
  .qty button { width: 44px; height: 44px; }
  .burger span { width: 22px; height: 2px; background: #fff; }
  .logo { position: static; }
  .logo__word { font-size: 28px; }
  .logo__sub { font-size: 9px; letter-spacing: 3px; margin-top: 4px; }
  .banner__center { position: absolute; width: 1px; height: 1px; max-width: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
  .quick-icons { display: none; }
  .vin-search { margin-top: 0; }
  .vin-search input { height: 44px; font-size: 16px; }
  .vin-search button { top: 2px; }
  .vin-hint { display: none; }
  .banner__phone-text { display: none; }
  .banner__phone-icon { display: block; }
  .banner__phone { width: 44px; height: 44px; justify-content: center; }
  .banner__parts { width: 300px; opacity: .35; }
  .sidebar { transform: translateX(-100%); transition: transform .25s; width: 250px; }
  body.sb-open .sidebar { transform: none; }
  body.sb-open .sb-overlay { display: block; position: fixed; inset: var(--banner-h) 0 0 0; background: rgba(0,0,0,.4); z-index: 35; }
  .main { margin-left: 0; }
  #view { padding: 12px; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .form .two { grid-template-columns: 1fr; }
  .res-item { grid-template-columns: 52px minmax(0,1fr) auto; }
  .res-item .btn { grid-column: 2 / 4; justify-self: end; }
  .res-item > .res-stock { grid-column: 1 / -1; margin-top: 0; }
  .vin-card dl { grid-template-columns: repeat(2, auto); }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; padding: 8px 0; border-bottom: 1px solid var(--c-border); }
  .cart-table td { border: 0; padding: 4px; }
}
@media (max-width: 768px) {
  .stores { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr 1fr; }
  .stores { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
}

/* ---- Покупатель / контрагент ---- */
.buyer { font-size: 12px; color: #cfd1d6; background: #1a1b20; border: 1px solid #3a3c43; border-radius: 6px; padding: 8px; }
.buyer b { display: block; color: #fff; font-size: 12.5px; line-height: 1.25; }
.buyer .pt { color: #ff6b63; font-size: 11px; }
.buyer a, .buyer button { color: #fff; font-size: 11.5px; background: none; border: 0; padding: 0; margin-top: 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.src { display: inline-block; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 3px; background: #eef0f3; color: var(--c-muted); }
.src.individual { background: #e7f6ee; color: var(--c-ok); }
.src.wholesale { background: #fff1f0; color: var(--c-accent-dark); }

/* ---- Админка ---- */
.admin-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--c-border); margin-bottom: 14px; flex-wrap: wrap; }
.admin-tabs button { border: 0; background: none; padding: 9px 14px; font-weight: 600; cursor: pointer; color: var(--c-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.admin-tabs button.on { color: var(--c-text); border-bottom-color: var(--c-accent); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.tbl th { text-align: left; font-size: 11.5px; color: var(--c-muted); padding: 8px; border-bottom: 2px solid var(--c-border); white-space: nowrap; }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.tbl tr:hover td { background: #fafafa; }
.tbl input.pin { width: 92px; border: 1px solid var(--c-border); border-radius: 4px; padding: 5px 6px; text-align: right; }
.tbl input.pin.dirty { border-color: var(--c-warn); background: #fffaf0; }
.tbl input.pin.saved { border-color: var(--c-ok); background: #f0fbf5; }
.tbl .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.admin-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.admin-bar input, .admin-bar select { border: 1px solid var(--c-border); border-radius: 6px; padding: 7px 10px; background: #fff; }
.warn-box { background: #fff8e6; border: 1px solid #f1d58a; color: #6b4a00; border-radius: 6px; padding: 8px 12px; font-size: 12.5px; margin-bottom: 12px; }
body.cookie-open { padding-bottom: 128px; }
#optReg { margin-bottom: 8px; }
.cookie-note { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 40; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px; background: #1a1b20; color: #fff; border-radius: 8px; max-width: calc(100% - 16px); box-sizing: border-box; }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; font-size: 13px; }
.cookie-note a { color: #fff; }
.legal-doc { white-space: pre-wrap; font-size: 14px; line-height: 1.45; }
.page-copy { max-width: 46rem; }
.page-copy h2 { font-size: 18px; margin: 1.25rem 0 .4rem; }
.page-copy h3 { font-size: 16px; margin: 1rem 0 .35rem; }
.page-copy p { margin: 0 0 .75rem; line-height: 1.5; }
.page-copy ul, .page-copy ol { margin: 0 0 .75rem; padding-left: 1.25rem; }
.page-copy li { margin: .25rem 0; line-height: 1.45; }
.page-copy mark.page-gap { background: #ffe08a; color: inherit; padding: 0 .15em; }
#feedCatNav a { display: block; padding: 4px 0; color: inherit; text-decoration: none; }
.ask-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.ask-row a { font-size: 13px; }
.receipt { margin: 6px 0; font-weight: 600; }
#stockFilter { color: #1c1d22; }
#stockPoint {
  background: #fff; color: #1c1d22; border: 1px solid #c5c7ce; border-radius: 6px;
  padding: 7px 10px; min-height: 36px; width: auto; min-width: 180px;
}
#stockFilter .check { display: flex; flex-direction: row; align-items: center; gap: 8px; padding-left: 0; }
#stockFilter .check input { position: static; width: 16px; height: 16px; flex: 0 0 auto; margin: 0; }
@media (max-width: 720px) {
  #stockFilter, .ask-row { display: flex; flex-direction: column; align-items: stretch; }
  #stockFilter .check { flex-direction: row; align-items: center; justify-content: flex-start; }
  #stockFilter .check input { width: 16px; height: 16px; }
}
#feedCatNav a:hover { color: var(--c-accent); }
@media (max-width: 720px) {
  .page-copy { font-size: 15px; }
  .page-copy h1 { font-size: 22px; }
}
.legal-gaps { margin: 8px 0 0; padding-left: 18px; max-height: 180px; overflow: auto; font-size: 12px; }
.check { display: block; position: relative; margin: 8px 0; padding-left: 26px; line-height: 1.4; }
.check input { position: absolute; left: 0; top: 3px; margin: 0; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: 6px; }
@media (max-width: 860px) {
  html, body { overflow-x: hidden; }
  .tbl-wrap, .card { max-width: 100%; }
  .cart-table td:first-child { display: none; }
}

/* Под заказ: бренд, срок, цена. Без складов и названий поставщика. */
.partner-panel { border-top: 3px solid var(--c-accent); margin: 14px 0; }
.partner-banner { margin-top: 0; }
.src.order { background: #fff4d6; color: #8a5a00; }
.partner-list { margin-top: 8px; }
.partner-row { display: grid; grid-template-columns: minmax(0,1.6fr) 90px minmax(120px,.6fr) auto; gap: 8px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.partner-row .brand { font-weight: 700; }
.partner-row .mono, .partner-brands .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.partner-row .price { text-align: right; }
.partner-row[data-relation="cross"] .partner-id { padding-left: 8px; border-left: 2px solid var(--c-border); }
.partner-brands { list-style: none; padding: 0; margin: 8px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.partner-brands li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rossko-form .field { min-width: 180px; }
.cart-group { background: #fff7f2; border: 1px solid #f0d2c2; border-radius: 10px; padding: 12px; margin: 0 0 12px; }
.cart-group header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cart-fulfill { display: grid; gap: 6px; margin-bottom: 8px; }
.cart-fulfill .off { color: var(--c-muted); }
.cart-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 8px 0; border-top: 1px solid #f0d2c2; }
.cart-line input { width: 100%; }
.cart-line__side { text-align: right; }
.board { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.board li { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.account-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.account-nav a { text-decoration: none; border: 1px solid var(--c-border); border-radius: 6px; padding: 6px 10px; background: #fff; }
.pay-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; }
.pay-list label { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--c-border); border-radius: 8px; padding: 10px; background: #fff; }
.pay-list label.off { background: #f6f7f9; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-cards, .line-cards, .ledger-cards { display: none; }
.order-card, .line-card { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--c-border); border-radius: 8px; padding: 10px 12px; background: #fff; color: inherit; text-decoration: none; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pager { display: flex; gap: 8px; margin-top: 12px; }
.group-order { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; }
@media (max-width: 720px) {
  .account-grid { grid-template-columns: 1fr; }
  .pay-list label { font-size: 14px; }
  .desk-table { display: none; }
  .order-cards, .line-cards, .ledger-cards { display: flex; flex-direction: column; gap: 8px; }
  .admin-bar { display: grid; grid-template-columns: minmax(0, 1fr); }
  .admin-bar label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .admin-bar input, .admin-bar select, .admin-bar button, .order-actions .btn, .group-order { width: 100%; max-width: 100%; min-width: 0; }
  .cart-line { grid-template-columns: minmax(0, 1fr); }
  .cart-line__side { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; text-align: left; }
  .cart-group .qty button, .order-actions .btn, .group-order, .account-nav a { min-height: 44px; }
  .cart-group .qty button { width: 44px; }
  .page, .card, .cart-group { max-width: 100%; }
}
.vin-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 14px; align-items: start; }
.oem-tree { position: sticky; top: 160px; max-height: calc(100vh - 180px); overflow: auto; padding-right: 4px; }
.oem-tree a { display: block; color: inherit; text-decoration: none; padding: 7px 8px; border-radius: 6px; }
.oem-tree a:hover, .oem-tree a.on { background: #fff1f0; color: var(--c-accent-dark); }
.oem-group { font-weight: 700; }
.oem-sub { margin: 0 0 8px 12px; }
.oem-sub a { font-size: 13px; }
.diagram-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.diagram-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; border: 1px solid var(--c-border); border-radius: 8px; padding: 8px; background: #fff; color: inherit; }
.diagram-card svg { width: 100%; height: 120px; }
.diagram-card b { font-size: 14px; }
.diagram-card span { color: var(--c-muted); font-size: 12px; }
.diagram-stage { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(240px,.7fr); gap: 12px; align-items: start; }
.diagram-svg { width: 100%; height: auto; background: #fff; }
.diagram-svg .pos circle { fill: #fff; stroke: var(--c-accent); stroke-width: 2; }
.diagram-svg .pos text { fill: var(--c-text); font-size: 12px; font-weight: 700; }
.diagram-svg .pos.on circle { fill: var(--c-accent); }
.diagram-svg .pos.on text { fill: #fff; }
.parts-table tr.on td { background: #fff1f0; }
.diagram-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
#partDetail:focus { outline: 2px solid var(--c-accent); outline-offset: 2px; }
@media (max-width: 860px) {
  .vin-layout, .diagram-stage { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .partner-row { grid-template-columns: minmax(0,1fr) auto; }
  .partner-row .when { grid-column: 1; }
  .partner-row .price { grid-column: 2; text-align: right; }
}
.brand-home { display: grid; gap: 48px; max-width: 1280px; margin: 0 auto; width: 100%; padding: 24px 0 48px; }
.brand-hero { display: grid; gap: 24px; padding: 32px 0 16px; }
.brand-home h1 { font-size: var(--h1); line-height: 0.98; letter-spacing: -0.025em; text-transform: uppercase; font-weight: 800; margin: 0; padding-left: 0; border-left: 0; }
.brand-home h1 span { display: block; }
.h1-red { color: var(--c-signal); }
.brand-hero { grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr); align-items: center; }
.hero-slot { min-height: 320px; border-radius: 12px; background: var(--c-graphite); }
.perk-line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--c-steel); border-bottom: 1px solid var(--c-steel); padding: 24px 0; }
.perk-line b, .perk-line span { display: block; }
.perk-line span { color: var(--c-smoke); margin-top: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.eyebrow--red { color: var(--c-signal); }
.tile { position: relative; min-height: 220px; }
.tile-ph { display: block; height: 120px; border-radius: 8px; background: #1a1a1f; }
.tile-arrow { color: var(--c-signal); margin-top: auto; }
.ask-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.sto-banner { background: var(--c-signal); color: #fff; border-radius: 12px; padding: 48px; }
.sto-banner h2, .sto-banner p { color: #fff; }
.btn--light { background: #fff; color: var(--c-carbon); }
.btn--light:hover { background: var(--c-paper); color: var(--c-carbon); }
.pavilion { font-family: var(--font-brand); font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.store-card--soon { border-style: dashed; margin-top: 16px; max-width: 360px; }
.vacancy { display: flex; justify-content: space-between; gap: 16px; align-items: center; border: 1px solid var(--c-steel); border-radius: 12px; padding: 16px 24px; }
.role-plate { min-height: 120px; }
.footer { border-bottom: 6px solid var(--c-signal); }
body.is-sheet .sidebar { transform: translateX(-100%); }
body.is-sheet .main { margin-left: 0; }
.sheet { max-width: 960px; }
.sheet-layout { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 24px; align-items: start; }
.sheet-ph { background: var(--c-graphite); border: 1px solid var(--c-steel); border-radius: 12px; min-height: 240px; }
.sheet-price { font-size: 40px; line-height: 1; text-align: left; }
.eyebrow { font-family: var(--font-brand); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-smoke); font-size: 14px; margin: 0; }
.brand-lead { font-size: 20px; line-height: 1.5; max-width: 720px; margin: 0; }
.home-search { display: flex; gap: 8px; align-items: center; position: relative; }
.suggest { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); background: var(--c-graphite); color: var(--c-paper); border: 1px solid var(--c-steel); border-radius: 8px; overflow: auto; max-height: 320px; }
.suggest button { display: flex; flex-wrap: wrap; gap: 6px 10px; width: 100%; text-align: left; background: transparent; color: var(--c-paper); border: 0; border-bottom: 1px solid var(--c-steel); padding: 10px 12px; cursor: pointer; }
.suggest button.on, .suggest button:hover { background: var(--c-steel); }
.suggest small { color: var(--c-smoke); margin-left: auto; }
.home-search input, .home-search .btn { height: 52px; min-height: 52px; flex: none; }
.home-search input { flex: 1 1 auto; min-width: 0; border-radius: 8px; border: 1px solid var(--c-steel); background: var(--c-graphite); color: var(--c-paper); padding: 0 16px; font-size: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-row a { color: var(--c-paper); border: 1px solid var(--c-steel); border-radius: 8px; padding: 8px 12px; text-decoration: none; }
.perk-grid, .tile-grid, .blog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.perk, .tile, .blog-card, .store-card { display: flex; flex-direction: column; gap: 16px; background: var(--c-graphite); border: 1px solid var(--c-steel); border-radius: 12px; padding: 24px; color: inherit; text-decoration: none; }
.blog-card small { text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; }
.blog-card b { display: block; font-family: var(--font-brand); font-weight: 700; font-size: 24px; line-height: 1.25; }
.blog-card .blog-more { display: block; margin-top: auto; color: var(--c-red-light); }
.tile small, .blog-card small, .perk span { display: block; color: var(--c-smoke); margin-top: 0; font-size: 16px; line-height: 1.5; }
body.is-home .sidebar { transform: translateX(-100%); }
body.is-home .main { margin-left: 0; }
body.is-home.sb-open .sidebar { transform: none; }
body.is-home .banner__center { display: none; }
.section-link { color: var(--c-red-light); }
.stock-ok { color: var(--c-ok); }
.stock-wait { color: var(--c-warn); }
.check input { margin-right: 8px; }
@media (max-width: 900px) {
  .brand-hero, .ask-split, .store-grid, .perk-line { grid-template-columns: 1fr; }
  .hero-slot { display: none; }
  .logo .logo__full { display: none; }
  .logo .logo__mark { display: block; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .perk-grid, .tile-grid, .blog-grid, .footer__cols { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
  .vin-search input { width: 100%; min-width: 0; }
}
@media (max-width: 720px) {
  :root { --banner-h: 136px; }
  .banner { flex-wrap: wrap; align-content: center; height: var(--banner-h); }
  .banner > a.btn { display: inline-flex; flex: 1 0 100%; order: 10; height: 52px; border-radius: 8px; }
  .sheet-layout { grid-template-columns: 1fr; }
  .perk-grid, .tile-grid, .blog-grid { grid-template-columns: 1fr; }
  .home-search { flex-direction: column; align-items: stretch; }
  .home-search input, .home-search .btn { width: 100%; height: 52px; min-height: 52px; flex: none; }
}

/* =====================================================================
 * СВЕТЛАЯ ТЕМА (2026-11): чисто и по делу, в духе rossko.ru.
 * Всё новое — здесь, ниже старых правил. Чтобы вернуть тёмную тему,
 * удалите этот блок целиком.
 * ===================================================================== */
:root {
  --c-bg: #FFFFFF;
  --c-surface: #F4F4F5;
  --c-graphite: #F4F4F5;
  --c-steel: #E4E4E7;
  --c-smoke: #5B5B63;
  --c-text: #111113;
  --c-muted: #5B5B63;
  --c-border: #E4E4E7;
  --c-field-border: #D4D4D8;
  --c-card: #FFFFFF;
  --c-field: #FFFFFF;
  --c-sidebar: #FAFAFA;
  --c-sub: #3F3F46;
  --c-placeholder: #71717A;
  --c-check: #A1A1AA;
  --c-inverse: #111113;
  --c-inverse-hover: #2A2A2E;
  --c-inverse-text: #FFFFFF;
  --c-shadow: rgba(17,17,19,.12);
  color-scheme: light;
  --c-red-text: #C41F24;
  --wrap: 1200px;
  --banner-h: 113px;
}
body { background: var(--c-bg); color: var(--c-text); }
.main { background: var(--c-bg); color: var(--c-text); }
.card, .feed-card { background: var(--c-card); color: var(--c-text); border: 1px solid var(--c-border); }
a.section-link, .section-link { color: var(--c-red-text); }

/* ---- Кнопки и поля ---- */
.btn { color: #fff; border-radius: 10px; font-weight: 600; }
.btn--ghost { background: var(--c-card); color: var(--c-text); border: 1px solid var(--c-field-border); }
.btn--ghost:hover { background: var(--c-surface); color: var(--c-text); }
.btn--dark { background: var(--c-inverse); color: var(--c-inverse-text); border: 0; }
.btn--dark:hover { background: var(--c-inverse-hover); color: var(--c-inverse-text); }
/* белая кнопка на красной карточке — одинаковая в обеих темах */
.btn--light { background: #fff; color: #111113; }
.btn--light:hover { background: #F4F4F5; color: #111113; }
.field label { color: var(--c-text); }
.field input, .field textarea, .field select { background: var(--c-field); color: var(--c-text); border: 1px solid var(--c-field-border); border-radius: 10px; }
.feed-qty { background: var(--c-field); color: var(--c-text); border-color: var(--c-field-border); }
.status-badge--ok { color: #14532D; background: #DCFCE7; }
.status-badge--wait { color: #713F12; background: #FEF3C7; }
.chip-row a { color: var(--c-text); border-color: var(--c-border); }
.suggest { background: var(--c-card); color: var(--c-text); border-color: var(--c-border); box-shadow: 0 12px 32px var(--c-shadow); }
.suggest button { position: static; width: 100%; height: auto; border-radius: 0; color: var(--c-text); border-bottom-color: var(--c-border); }
.suggest button.on, .suggest button:hover { background: var(--c-surface); }
.suggest small { color: var(--c-muted); }

/* ---- Шапка ---- */
.banner { display: block; height: var(--banner-h); padding: 0; background: var(--c-bg); color: var(--c-text); border-bottom: 1px solid var(--c-border); }
.topbar { background: var(--c-surface); height: 40px; font-size: 13px; }
.topbar__in, .banner__row { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; }
.topbar__in { height: 40px; justify-content: space-between; gap: 24px; }
.site-nav { flex: 0 1 auto; gap: 6px 20px; }
.site-nav a { color: var(--c-muted); font-size: 13px; font-weight: 500; }
.site-nav a:hover, .topbar__login:hover { color: var(--c-text); }
.site-nav .site-nav__city { color: var(--c-text); font-weight: 600; }
.site-nav__city svg { width: 14px; height: 14px; color: var(--c-signal); }
.topbar__login { color: var(--c-muted); text-decoration: none; white-space: nowrap; }
.banner__row { height: 72px; gap: 20px; }
.logo { margin: 0; }
.logo .logo__full { display: block; width: 132px; min-width: 0; }
.catalog-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 10px; background: var(--c-signal); color: #fff; font-weight: 600; text-decoration: none; flex: 0 0 auto; transition: background .15s; }
.catalog-btn:hover { background: var(--c-deep-red); }
.catalog-btn svg { width: 18px; height: 18px; }
.vin-search { flex: 1 1 auto; min-width: 0; display: flex; height: 48px; border: 2px solid var(--c-signal); border-radius: 10px; background: var(--c-field); }
.vin-search input { flex: 1 1 auto; min-width: 0; width: auto; height: 100%; border: 0; border-radius: 8px 0 0 8px; background: var(--c-field); color: var(--c-text); padding: 0 16px; font-size: 15px; box-shadow: none; }
.vin-search input::placeholder { color: var(--c-placeholder); }
/* только кнопка «Найти»: подсказки .suggest тоже лежат внутри #vinForm */
.vin-search > button { position: static; width: auto; height: 100%; padding: 0 22px; border-radius: 0 6px 6px 0; background: var(--c-signal); color: #fff; font-weight: 600; }
.vin-search > button:hover { background: var(--c-deep-red); }
.vin-hint { display: none; }
.vin-hint.err { display: block; left: 16px; top: calc(100% + 6px); padding: 4px 8px; border-radius: 6px; background: var(--c-card); border: 1px solid var(--c-border); color: var(--c-red-text); font-size: 12px; }
.banner__right { margin-left: 0; gap: 16px; }
.banner__contact { display: flex; flex-direction: column; line-height: 1.25; }
.banner__phone { display: inline; width: auto; height: auto; color: var(--c-text); font-weight: 700; font-size: 17px; text-decoration: none; }
.banner__call { font-size: 13px; color: var(--c-red-text); }
.banner__phone-icon { display: none; }
.cart-btn { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 10px; background: var(--c-surface); color: var(--c-text); display: grid; place-items: center; }
.cart-btn svg { width: 24px; height: 24px; }
.burger span { background: var(--c-text); }

/* ---- Левая панель (внутренние страницы) ---- */
.sidebar { background: var(--c-sidebar); color: var(--c-text); border-right: 1px solid var(--c-border); scrollbar-color: var(--c-field-border) transparent; }
.sb-block { border-bottom-color: var(--c-border); }
.sel select { background-color: var(--c-field); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B5B63' stroke-width='2' fill='none'/%3E%3C/svg%3E"); border-color: var(--c-field-border); color: var(--c-text); }
.sb-label { color: var(--c-muted); }
.sb-title { color: var(--c-text); }
.sb-reset { border-color: var(--c-field-border); color: var(--c-muted); }
.sb-reset:hover { color: var(--c-text); }
.checks label { color: var(--c-sub); }
.checks label:hover { color: var(--c-text); }
.checks input { background: var(--c-field); border-color: var(--c-check); }
.checks .cnt { color: var(--c-placeholder); }
.seg { background: var(--c-field); border-color: var(--c-field-border); }
.seg button { color: var(--c-sub); }
.sb-nav a { color: var(--c-sub); }
.sb-nav a:hover, .sb-nav a.on { color: var(--c-text); }
.buyer { background: var(--c-card); border-color: var(--c-border); color: var(--c-sub); }
.buyer b, .buyer a, .buyer button { color: var(--c-text); }
.buyer .pt { color: var(--c-red-text); }

/* ---- Подвал ---- */
.footer { border-bottom: 0; padding: 40px max(24px, calc((100% - var(--wrap)) / 2 + 24px)) 20px; }
.footer h4 { text-transform: none; letter-spacing: 0; font-size: 14px; }
/* место под плашку cookie — внутри тёмного футера, а не белой полосой под ним */
body.cookie-open { padding-bottom: 0; }
body.cookie-open .footer { padding-bottom: 148px; }

/* ---- Главная ---- */
body.is-home #view { padding: 0; }
.brand-home { display: flex; flex-direction: column; gap: 48px; max-width: var(--wrap); margin: 0 auto; padding: 24px 24px 64px; }
.brand-home h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.01em; text-transform: none; font-weight: 800; margin: 0; }
.brand-home h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; text-transform: none; font-weight: 800; margin: 0; }
.brand-home p { max-width: none; }
.hico { flex: none; color: var(--c-signal); }

.home-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 16px; }
.home-hero__main { background: var(--c-surface); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.home-hero .brand-lead { font-size: 17px; color: var(--c-muted); max-width: 540px; }
.home-search { display: flex; gap: 8px; max-width: 620px; margin-top: 8px; }
.home-search input { flex: 1 1 auto; min-width: 0; height: 52px; border: 1px solid var(--c-field-border); border-radius: 10px; background: var(--c-field); color: var(--c-text); padding: 0 16px; font-size: 16px; letter-spacing: .02em; }
.home-search input:focus { outline: 2px solid var(--c-signal); outline-offset: -1px; }
.home-search .btn { height: 52px; flex: none; }
.home-hero__note { margin: 0; font-size: 13px; color: var(--c-muted); }
.home-hero__note a { color: var(--c-text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.home-hero__sto { background: var(--c-signal); color: #fff; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.home-hero__sto h2 { color: #fff; font-size: 28px; margin: 0 0 12px; }
.home-hero__sto p { margin: 0; }
.home-hero__sto .btn { align-self: flex-start; height: 48px; }

.home-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 32px; margin-top: -16px; }
.home-perk { display: flex; gap: 12px; align-items: flex-start; }
.home-perk b { display: block; font-weight: 600; }
.home-perk span { display: block; font-size: 13px; color: var(--c-muted); }

.home-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.home-sec__head a { color: var(--c-red-text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.home-sec__head a:hover { color: var(--c-text); }

.home-tiles, .home-stores, .home-posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-tile { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 12px; background: var(--c-surface); color: var(--c-text); text-decoration: none; font-weight: 600; font-size: 16px; transition: background .15s; }
.home-tile:hover, .home-post:hover { background: var(--c-border); }

.home-stores .store-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: 12px; padding: 20px; gap: 6px; }
.home-stores .store-card h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.home-stores .store-card p { margin: 0; font-size: 14px; }
.home-stores .store-card--soon { border-style: dashed; margin: 0; max-width: none; }
.store-card__map { font-size: 14px; color: var(--c-red-text); margin-top: 6px; }

.home-ask { background: var(--c-surface); border-radius: 16px; padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 40px; align-items: start; }
.home-ask__text h2 { margin-bottom: 8px; }
.home-ask__text p { margin: 0; color: var(--c-muted); }
.home-ask__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-ask__form .field label { font-size: 13px; }
.home-ask__form .field input { height: 48px; padding: 0 14px; }
.home-ask__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.home-ask__foot .check { margin: 0; font-size: 13px; color: var(--c-muted); }
.home-ask__foot .check a { color: var(--c-red-text); }
.home-ask__foot .btn { height: 48px; }
#homeInquiryResult { grid-column: 1 / -1; }
#homeInquiryResult:empty { display: none; }

.home-post { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 12px; background: var(--c-surface); color: var(--c-text); text-decoration: none; transition: background .15s; }
.home-post small { font-size: 13px; color: var(--c-muted); }
.home-post b { font-size: 16px; line-height: 1.35; font-weight: 600; }

/* ---- Адаптив светлой темы ---- */
@media (max-width: 1180px) {
  .banner__phone { width: auto; height: auto; }
}
@media (max-width: 1020px) {
  .banner__contact { display: none; }
  .banner__phone-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--c-surface); color: var(--c-text); }
  .banner__phone-icon svg { width: 22px; height: 22px; }
  .home-hero, .home-ask { grid-template-columns: minmax(0, 1fr); }
  .home-perks, .home-tiles, .home-stores, .home-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --banner-h: 73px; }
  .topbar { display: none; }
  .burger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: none; border: 0; padding: 6px; cursor: pointer; min-width: 44px; min-height: 44px; flex: 0 0 auto; }
  .burger span { width: 22px; height: 2px; }
  .logo .logo__full { display: block; }
  .catalog-btn span { display: none; }
  .catalog-btn { padding: 0 14px; }
  .banner__row { gap: 12px; padding: 0 16px; }
}
@media (max-width: 720px) {
  :root { --banner-h: 125px; }
  .banner { height: var(--banner-h); flex-wrap: nowrap; }
  .banner__row { flex-wrap: wrap; height: auto; padding: 10px 12px; gap: 10px 8px; }
  .logo { margin-right: auto; }
  .logo .logo__full { width: 108px; }
  .vin-search { order: 10; flex: 1 0 100%; }
  .brand-home { padding: 16px 16px 48px; gap: 36px; }
  .home-hero__main, .home-hero__sto, .home-ask { padding: 24px; }
  .brand-home h1 { font-size: 36px; }
  .brand-home h2 { font-size: 24px; }
  .home-search { flex-direction: column; }
  .home-search .btn { width: 100%; }
  .home-perks { margin-top: -8px; }
  .home-stores, .home-posts, .home-ask__form { grid-template-columns: minmax(0, 1fr); }
  .home-ask__foot .btn { width: 100%; }
}
@media (max-width: 520px) {
  .home-perks { grid-template-columns: minmax(0, 1fr); }
  .home-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; font-size: 14px; line-height: 1.3; }
  .home-tile .hico { width: 36px; height: 36px; }
}
.drawer { box-shadow: none; }
body.drawer-open .drawer { box-shadow: -10px 0 30px rgba(0,0,0,.18); }
.card h2:not(.card__title) { font-size: 24px; line-height: 1.25; letter-spacing: 0; }

/* =====================================================================
 * ТЁМНАЯ ТЕМА (переключатель в шапке): html[data-theme="dark"].
 * Только значения переменных светлой темы + немногие точечные правки.
 * Выбор хранится в localStorage (carvic_theme), см. js/theme.js.
 * ===================================================================== */
html[data-theme="dark"] {
  --c-bg: #0F0F12;
  --c-surface: #1A1A1F;
  --c-graphite: #1A1A1F;
  --c-steel: #2A2A30;
  --c-smoke: #A1A1AA;
  --c-text: #F4F4F5;
  --c-muted: #A1A1AA;
  --c-border: #2A2A30;
  --c-field-border: #3A3A42;
  --c-card: #16161A;
  --c-field: #111115;
  --c-sidebar: #121215;
  --c-sub: #D4D4D8;
  --c-placeholder: #8B8B94;
  --c-check: #52525B;
  --c-inverse: #F4F4F5;
  --c-inverse-hover: #FFFFFF;
  --c-inverse-text: #111113;
  --c-shadow: rgba(0,0,0,.5);
  --c-red-text: #FF6B66;
  color-scheme: dark;
}
html[data-theme="dark"] .logo__full--light { display: none !important; }
html:not([data-theme="dark"]) .logo__full--dark { display: none !important; }
html[data-theme="dark"] .footer { border-top: 1px solid var(--c-border); }
html[data-theme="dark"] .status-badge--ok { color: #86EFAC; background: rgba(34,197,94,.16); }
html[data-theme="dark"] .status-badge--wait { color: #FCD34D; background: rgba(234,179,8,.16); }
html[data-theme="dark"] .sel select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A1A1AA' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .warn-box { background: rgba(234,179,8,.12); border-color: rgba(234,179,8,.35); color: #FDE68A; }

/* старые правила с зашитыми светлыми цветами (каталог, шторка корзины, реквизиты) */
html[data-theme="dark"] .drawer { background: var(--c-card); color: var(--c-text); }
html[data-theme="dark"] .drawer__head { border-bottom: 1px solid var(--c-border); }
html[data-theme="dark"] #stockFilter { color: var(--c-text); }
html[data-theme="dark"] #stockFilter select { background-color: var(--c-field); color: var(--c-text); border-color: var(--c-field-border); }
html[data-theme="dark"] #stockFilter input[type="checkbox"] { accent-color: var(--c-signal); }
html[data-theme="dark"] .feed-cat, html[data-theme="dark"] .feed-cats-wrap summary { background: var(--c-card); color: var(--c-text); }
html[data-theme="dark"] .feed-cat.on { background: var(--c-inverse); color: var(--c-inverse-text); border-color: var(--c-inverse); }
html[data-theme="dark"] .feed-cats__panel { background: var(--c-card); }
html[data-theme="dark"] .res-stock span { background: var(--c-surface); }
html[data-theme="dark"] .res-stock .z { color: #8B8B94; }
html[data-theme="dark"] .req { background: var(--c-card); }
html[data-theme="dark"] .req tr:hover td { background: var(--c-surface); }

/* ---- Переключатель темы: солнце / луна ---- */
.topbar__right { display: flex; align-items: center; gap: 16px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-card); color: var(--c-muted); cursor: pointer; flex: none; }
.theme-toggle__opt { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle:hover { color: var(--c-text); }
.theme-toggle:focus-visible { outline: 2px solid var(--c-signal); outline-offset: 2px; }
/* «капля»: красный кружок перетекает между солнцем и луной — передний край
 * уходит первым, задний догоняет (разные задержки у left/right), иконки плавно меняют цвет */
.theme-toggle { position: relative; }
.theme-toggle::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 2px; right: calc(50% + 1px); border-radius: 999px; background: var(--c-signal);
  transition: left .3s cubic-bezier(.5, 0, .2, 1), right .3s cubic-bezier(.5, 0, .2, 1) .12s; }
html[data-theme="dark"] .theme-toggle::before { left: calc(50% + 1px); right: 2px;
  transition: right .3s cubic-bezier(.5, 0, .2, 1), left .3s cubic-bezier(.5, 0, .2, 1) .12s; }
.theme-toggle__opt { position: relative; z-index: 1; transition: color .15s ease; } /* уходящая иконка темнеет сразу */
.theme-toggle__opt svg { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
html:not([data-theme="dark"]) .theme-toggle__opt--light,
html[data-theme="dark"] .theme-toggle__opt--dark { color: #fff; transition: color .2s ease .17s; } /* белеет, когда кружок доехал */
html:not([data-theme="dark"]) .theme-toggle__opt--light svg { transform: rotate(90deg); }      /* солнце проворачивается */
html[data-theme="dark"] .theme-toggle__opt--dark svg { transform: rotate(-20deg) scale(1.05); } /* луна покачивается */
@media (prefers-reduced-motion: reduce) {
  .theme-toggle::before, .theme-toggle__opt, .theme-toggle__opt svg { transition: none !important; }
}
.sb-theme { display: none; }
@media (max-width: 900px) {
  .sb-theme { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .sb-theme .sb-title { margin: 0; }
  .sb-theme .theme-toggle__opt { width: 32px; height: 32px; }
  .sb-theme .theme-toggle svg { width: 18px; height: 18px; }
}

/* =====================================================================
 * ВСПЛЫВАЮЩЕЕ ОКНО ДЛЯ ФОРМ (#/inquiry открывается поверх страницы)
 * Цвета — через переменные темы, работает и в светлой, и в тёмной.
 * ===================================================================== */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(9,9,11,.55); animation: modal-fade .15s ease-out; }
.modal__box { position: relative; width: min(640px, 100%); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; background: var(--c-card); color: var(--c-text); border: 1px solid var(--c-border); border-radius: 16px; box-shadow: 0 24px 64px rgba(0,0,0,.28); padding: 28px 32px 32px; animation: modal-in .18s ease-out; }
.modal__box:focus { outline: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--c-muted); cursor: pointer; }
.modal__close:hover { background: var(--c-surface); color: var(--c-text); }
.modal__close:focus-visible { outline: 2px solid var(--c-signal); outline-offset: 2px; }
.modal__close svg { width: 22px; height: 22px; }
.modal__title { font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 48px 6px 0; }
.modal__body > div > .muted { margin: 0 0 18px; font-size: 14px; color: var(--c-muted); }
.inq-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.inq-form .field--wide, .inq-form .check, .inq-form .muted, .inq-form .btn { grid-column: 1 / -1; }
.inq-form .field label { font-size: 13px; }
.inq-form .field input, .inq-form .field select { height: 46px; padding: 0 14px; }
.inq-form .field textarea { padding: 12px 14px; resize: vertical; }
.inq-form .check { margin: 2px 0 0; font-size: 13px; color: var(--c-muted); }
.inq-form .check a, .inq-form .muted a { color: var(--c-red-text); }
.inq-form .muted { margin: 0; font-size: 13px; }
.inq-form .btn { justify-self: start; height: 48px; padding: 0 28px; }
.inq-done { display: grid; gap: 14px; justify-items: start; }
.inq-done__title { margin: 0; font-family: var(--font-brand); font-weight: 800; font-size: 20px; }
@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .modal__backdrop, .modal__box { animation: none; } }
@media (max-width: 720px) {
  /* на телефоне — лист снизу во всю ширину */
  .modal { padding: 0; align-items: flex-end; }
  .modal__box { width: 100%; max-height: calc(100dvh - 24px); border-radius: 16px 16px 0 0; border-width: 1px 0 0; padding: 22px 16px calc(24px + env(safe-area-inset-bottom)); }
  .modal__close { top: 10px; right: 8px; }
  .modal__title { font-size: 22px; }
  .inq-form { grid-template-columns: minmax(0, 1fr); }
  .inq-form .btn { width: 100%; justify-self: stretch; }
}

/* =====================================================================
 * РАСКЛАДКА СТРАНИЦ (2026-11)
 * .layout — контейнер по линии логотипа (--wrap). Слева панель каталога,
 * но только на страницах подбора (body.has-filters: каталог, поиск, VIN).
 * Подвал вынесен из <main> и идёт после контейнера во всю ширину.
 * Верхняя строка шапки уезжает вверх при прокрутке (body.topbar-hidden).
 * ===================================================================== */
:root { --hdr: var(--banner-h); }
.layout { padding-top: var(--banner-h); min-height: 100vh; display: flex; flex-direction: column; }
.layout > .main { margin-left: 0; padding-top: 0; min-height: 0; flex: 1 0 auto; }
.callback-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.callback-cta p { margin: 0; }
.modal__lead { margin: 0 0 18px; font-size: 14px; color: var(--c-muted); }

@media (min-width: 901px) {
  .banner { transition: transform .25s ease; }
  body.topbar-hidden { --hdr: calc(var(--banner-h) - 40px); }
  body.topbar-hidden .banner { transform: translateY(-40px); }

  .layout { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; align-items: start; align-content: start;
    width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
  .layout > .main { min-height: calc(100vh - var(--banner-h)); }
  #view { padding: 20px 0 56px; }
  body.is-home #view { padding: 0; }
  .layout .brand-home { padding-left: 0; padding-right: 0; }

  .layout > .sidebar { display: none; }
  body.has-filters .layout { grid-template-columns: 240px minmax(0, 1fr); }
  body.has-filters .layout > .sidebar {
    display: block; position: sticky; top: calc(var(--hdr) + 20px); left: auto; bottom: auto; z-index: auto;
    width: auto; transform: none; margin-top: 20px; max-height: calc(100vh - var(--hdr) - 40px);
    border: 1px solid var(--c-border); border-radius: 12px; padding: 16px; transition: top .25s ease;
  }
  /* в колонке каталога — только фильтры и «Покупатель»: разделы есть в шапке и в кабинете */
  body.has-filters .layout > .sidebar .sb-nav { display: none; }
  body.has-filters .layout > .sidebar .sb-block:nth-last-child(2) { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .banner, body.has-filters .layout > .sidebar { transition: none; }
}

/* =====================================================================
 * ШАПКА: ИКОНКИ «ВОЙТИ / ПРОФИЛЬ» И «КОРЗИНА» (иконка над подписью)
 * ===================================================================== */
.hdr-btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: auto; min-width: 60px; height: 52px; flex: 0 0 auto; padding: 0 6px; border: 0; border-radius: 10px;
  background: transparent; color: var(--c-text); cursor: pointer; font: 500 12px/1 var(--font-body); }
.hdr-btn svg { width: 24px; height: 24px; flex: none; }
.hdr-btn:hover, .hdr-btn[aria-expanded="true"] { color: var(--c-signal); }
.hdr-btn:focus-visible { outline: 2px solid var(--c-signal); outline-offset: 2px; }
.hdr-btn__label { white-space: nowrap; }
.hdr-btn .cart-count { top: 0; right: calc(50% - 22px); }
.banner__right { gap: 8px; }

.profile { position: relative; flex: 0 0 auto; }
.profile-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 220px; padding: 8px;
  background: var(--c-card); color: var(--c-text); border: 1px solid var(--c-border); border-radius: 12px; box-shadow: 0 12px 32px var(--c-shadow); }
.profile-menu[hidden] { display: none; }
.profile-menu__name { margin: 4px 12px 8px; font-size: 13px; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-menu a, .profile-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--c-text); font: 500 14px/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.profile-menu a:hover, .profile-menu button:hover, .profile-menu a:focus-visible, .profile-menu button:focus-visible { background: var(--c-surface); outline: none; }
.profile-menu hr { border: 0; border-top: 1px solid var(--c-border); margin: 6px 4px; }
.profile-menu .profile-menu__out { color: var(--c-red-text); }

/* окно входа: форма кабинета без рамки карточки */
.modal .card { background: none; border: 0; padding: 0; box-shadow: none; }
.modal #accForm .btn--lg { height: 48px; }
.signin-alt { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--c-border); font-size: 14px; color: var(--c-muted); }
.signin-alt a { color: var(--c-red-text); font-weight: 600; }

/* «Заявка принята» — зелёная галочка */
.inq-done__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #22A55A; color: #fff; }
.inq-done__icon svg { width: 28px; height: 28px; }

/* без подписей — плитки-иконки там, где места мало */
@media (max-width: 900px) {
  .hdr-btn { min-width: 0; width: 44px; height: 44px; padding: 0; gap: 0; background: var(--c-surface); }
  .hdr-btn__label { display: none; }
  .hdr-btn .cart-count { top: -4px; right: -6px; }
}
@media (max-width: 720px) {
  .banner__right { gap: 6px; }
  .hdr-btn, .banner__phone-icon, .catalog-btn { width: 42px; height: 42px; }
  .catalog-btn { padding: 0; justify-content: center; }
  .logo .logo__full { width: 100px; }
  .profile-menu { position: fixed; top: calc(var(--banner-h) - 6px); left: 12px; right: 12px; min-width: 0; }
}
@media (max-width: 380px) {
  .banner__row { column-gap: 6px; }
  .banner__right { gap: 4px; }
  .hdr-btn, .banner__phone-icon, .catalog-btn { width: 40px; height: 40px; }
  .logo .logo__full { width: 88px; }
}

/* окно регистрации */
.signin-alt p { margin: 0; }
.signin-alt p + p { margin-top: 8px; }
.reg-err { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 8px; background: rgba(217,45,39,.08); color: var(--c-red-text); font-size: 14px; }
.reg-err[hidden] { display: none; }
.inq-form .check + .check { margin-top: -4px; }

/* =====================================================================
 * ГЕОГРАФИЯ ПРИСУТСТВИЯ (страница «Торговые точки»), js/russia-map.js
 * ===================================================================== */
.geo__title { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; margin: 28px 0 14px; }
.geo { background: var(--c-card); border: 1px solid var(--c-border); border-radius: 16px; padding: 16px 16px 8px; }
.geo__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.geo__legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--c-muted); }
.geo__legend span { display: inline-flex; align-items: center; gap: 8px; }
.geo__dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.geo__dot--open { background: var(--c-signal); box-shadow: 0 0 0 3px rgba(217,45,39,.2); }
.geo__dot--soon { background: var(--c-card); border: 2px solid #9A9AA3; }
.geo__zoom { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--c-surface); }
.geo__zoom button { border: 0; background: none; color: var(--c-muted); font: 600 13px/1 var(--font-body); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.geo__zoom button[aria-pressed="true"] { background: var(--c-card); color: var(--c-text); box-shadow: 0 1px 3px var(--c-shadow); }
.geo__zoom button:focus-visible { outline: 2px solid var(--c-signal); outline-offset: 1px; }

.geo__map { position: relative; width: 100%; aspect-ratio: 1000 / 560; }
.geo__svg, .geo__leaders { position: absolute; inset: 0; width: 100%; height: 100%; }
.geo__land { fill: var(--c-surface); stroke: var(--c-field-border); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.geo__leaders { pointer-events: none; overflow: visible; }
.geo__leaders line { stroke: var(--c-muted); stroke-width: 1; }
.geo__leaders circle { fill: var(--c-muted); }

.geo__pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 2; }
.geo__pin[hidden] { display: none; }
.geo__pin::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; transition: transform .15s; }
.geo__pin--open { z-index: 3; }
.geo__pin--open::before { background: var(--c-signal); box-shadow: 0 0 0 3px rgba(217,45,39,.22); }
.geo__pin--open::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--c-signal); animation: geo-pulse 2.4s ease-out infinite; }
.geo__pin--soon::before { background: var(--c-card); border: 2px solid #9A9AA3; box-sizing: border-box; }
.geo__pin:hover::before, .geo__pin.is-active::before, .geo__pin:focus-visible::before { transform: scale(1.35); }
.geo__pin:focus-visible { outline: 2px solid var(--c-signal); outline-offset: 0; border-radius: 50%; }
.geo__name { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 600 12px/1 var(--font-body); color: var(--c-text);
  text-shadow: 0 0 3px var(--c-card), 0 0 3px var(--c-card), 0 0 3px var(--c-card); pointer-events: none; display: none; }
.geo__pin--soon .geo__name { color: var(--c-muted); font-weight: 500; }
.geo__pin--labeled .geo__name { display: block; }
@keyframes geo-pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .geo__pin--open::after { animation: none; display: none; } }

.geo__pop { position: absolute; z-index: 5; width: max-content; max-width: min(300px, calc(100% - 16px)); padding: 14px 16px; border-radius: 12px;
  background: var(--c-card); color: var(--c-text); border: 1px solid var(--c-border); box-shadow: 0 12px 32px var(--c-shadow); font-size: 13px; line-height: 1.4; }
.geo__pop[hidden] { display: none; }
.geo__pop p { margin: 0; }
.geo__pop-title { font: 800 16px/1.2 var(--font-brand); }
.geo__pop-sub { color: var(--c-muted); margin-top: 2px !important; }
.geo__pop-soon { display: inline-block; margin-top: 6px !important; padding: 3px 8px; border-radius: 999px; background: var(--c-surface); color: var(--c-muted); font-weight: 600; font-size: 12px; }
.geo__store { display: grid; gap: 1px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--c-border); }
.geo__store a, .geo__pop-foot a { color: var(--c-red-text); font-weight: 600; }
.geo__pop-foot { margin-top: 10px !important; }

@media (max-width: 720px) {
  .geo { padding: 12px 10px 6px; border-radius: 12px; }
  .geo__title { font-size: 20px; margin: 22px 0 10px; }
  .geo__legend { gap: 12px; font-size: 12px; }
}
.geo__near { fill: var(--c-card); stroke: var(--c-field-border); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 4 3; opacity: 0; transition: opacity .3s; }
.geo--zoomed .geo__near { opacity: 1; }
.geo__pin--lbl-left .geo__name { left: auto; right: 20px; }
.geo__pin--lbl-below .geo__name { left: 50%; top: 24px; transform: translateX(-50%); }
.reg-sub { grid-column: 1 / -1; margin: 8px 0 -4px; padding-top: 14px; border-top: 1px solid var(--c-border); font: 700 15px/1.3 var(--font-brand); }
.reg-sub span { font: 400 13px/1.4 var(--font-body); color: var(--c-muted); }
#regGarageRow[hidden] { display: none; }

/* =====================================================================
 * КАРТОЧКИ МАГАЗИНОВ: фото павильона, значок «открыть в 2ГИС»
 * ===================================================================== */
.store-photo { position: relative; aspect-ratio: 16 / 10; margin: -24px -24px 14px; overflow: hidden; border-radius: 12px 12px 0 0; background: var(--c-surface); }
.store-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.store-photo.is-empty::after { content: ""; position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; opacity: .35;
  background: var(--c-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9.5 4.5 4h15L21 9.5'/%3E%3Cpath d='M3 9.5a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0'/%3E%3Cpath d='M4.5 12v8h15v-8'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9.5 4.5 4h15L21 9.5'/%3E%3Cpath d='M3 9.5a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0'/%3E%3Cpath d='M4.5 12v8h15v-8'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E") center / contain no-repeat; }
.store__head { display: flex; gap: 10px; align-items: center; }
.store .actions { align-items: center; }

.gis-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 10px;
  border: 1px solid var(--c-field-border); background: var(--c-card); color: var(--c-text); --gis-dot: var(--c-card); transition: color .15s, border-color .15s; }
.gis-btn svg { width: 24px; height: 24px; }
.gis-btn:hover, .gis-btn:focus-visible { color: var(--c-signal); border-color: var(--c-signal); }
.gis-btn:focus-visible { outline: 2px solid var(--c-signal); outline-offset: 2px; }
.gis-btn--sm { width: 30px; height: 30px; border-radius: 8px; }
.gis-btn--sm svg { width: 18px; height: 18px; }

/* главная: фото сверху, значок в углу */
.home-stores .store-card { position: relative; padding: 0; overflow: hidden; gap: 0; }
.store-photo--sm { margin: 0; border-radius: 0; aspect-ratio: 16 / 9; }
.store-card__body { display: grid; gap: 6px; padding: 16px 20px 20px; }
.home-stores .store-card .gis-btn--corner { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; }
.home-stores .store-card .gis-btn--corner svg { width: 20px; height: 20px; }
.home-stores .store-card:has(.gis-btn--corner) .store-card__body { padding-right: 60px; }

/* попап карты */
.geo__store-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.geo__pop .gis-btn { color: var(--c-text); }
.geo__pop .gis-btn:hover, .geo__pop .gis-btn:focus-visible { color: var(--c-signal); }
/* фото павильонов — вертикальные кадры с вывеской вверху: держим вывеску в кадре */
.store-photo img { object-position: 50% 15%; }

/* =====================================================================
 * ПРОМОБАННЕРЫ КАТАЛОГА (js/promos.js) — карусель над товарами
 * ===================================================================== */
.promo { position: relative; overflow: hidden; border-radius: 16px; margin: 4px 0 20px; touch-action: pan-y; }
.promo__track { display: flex; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.promo__slide { position: relative; flex: 0 0 100%; min-height: 240px; display: flex; align-items: center; padding: 36px 56px 44px; overflow: hidden; }
.promo__slide--red { background: linear-gradient(110deg, #D92D27 0%, #B8231E 70%, #8F1915 100%); color: #fff; }
.promo__slide--dark { background: linear-gradient(110deg, #18181B 0%, #232328 60%, #2D1213 100%); color: #fff; }
.promo__slide--light { background: linear-gradient(110deg, #F4F4F5 0%, #ECECEF 100%); color: #111113; }
html[data-theme="dark"] .promo__slide--light { background: linear-gradient(110deg, #1F1F24 0%, #26262C 100%); color: #F4F4F5; }
.promo__body { position: relative; z-index: 1; max-width: 62%; }
.promo__title { margin: 0; font: 800 34px/1.12 var(--font-brand); letter-spacing: -0.01em; }
.promo__text { margin: 12px 0 0; font-size: 17px; line-height: 1.4; opacity: .9; }
.promo__cta { display: inline-flex; align-items: center; height: 46px; margin-top: 22px; padding: 0 22px; border-radius: 10px; font-weight: 600; text-decoration: none; background: #fff; color: #111113; }
.promo__slide--light .promo__cta { background: var(--c-signal); color: #fff; }
.promo__cta:hover { filter: brightness(.94); }
.promo__cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.promo__slide--light .promo__cta:focus-visible { outline-color: var(--c-signal); }
.promo__art { position: absolute; right: 7%; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.1); box-shadow: 0 0 0 28px rgba(255,255,255,.05), 0 0 0 56px rgba(255,255,255,.03); }
.promo__art .hico { color: currentColor; opacity: .95; }
.promo__slide--light .promo__art { background: rgba(217,45,39,.08); box-shadow: 0 0 0 28px rgba(217,45,39,.04), 0 0 0 56px rgba(217,45,39,.02); }
.promo__slide--light .promo__art .hico { color: var(--c-signal); }
.promo__slide--image { padding: 0; min-height: 0; aspect-ratio: 4 / 1; }
.promo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo__slide--image .promo__body { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* текст — для экранных дикторов */
.promo__slide--image .promo__cta { position: absolute; inset: 0; width: auto; height: auto; margin: 0; opacity: 0; clip: auto; } /* вся картинка — ссылка */
.promo__label { position: absolute; top: 10px; right: 12px; z-index: 2; font-size: 11px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.28); color: rgba(255,255,255,.85); }
.promo__nav { position: absolute; top: 50%; z-index: 2; width: 36px; height: 36px; margin-top: -18px; display: grid; place-items: center; border: 0; border-radius: 8px;
  background: rgba(255,255,255,.22); color: #fff; cursor: pointer; backdrop-filter: blur(4px); transition: background .15s; }
.promo__nav:hover { background: rgba(255,255,255,.36); }
.promo__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.promo__nav svg { width: 20px; height: 20px; }
.promo__nav--prev { left: 10px; } .promo__nav--next { right: 10px; }
.promo__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.promo__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .2s, background .2s; }
.promo__dots button[aria-current="true"] { width: 22px; background: #fff; }
.promo:has(.promo__slide--light[aria-hidden="false"]) .promo__dots button { background: rgba(17,17,19,.25); }
.promo:has(.promo__slide--light[aria-hidden="false"]) .promo__dots button[aria-current="true"] { background: var(--c-signal); }
.promo:has(.promo__slide--light[aria-hidden="false"]) .promo__nav { background: rgba(17,17,19,.08); color: #111113; }
html[data-theme="dark"] .promo:has(.promo__slide--light[aria-hidden="false"]) .promo__nav { background: rgba(255,255,255,.12); color: #fff; }
@media (prefers-reduced-motion: reduce) { .promo__track { transition: none; } }
@media (max-width: 720px) {
  .promo { border-radius: 12px; margin-bottom: 14px; }
  .promo__slide { min-height: 0; padding: 22px 20px 38px; }
  .promo__body { max-width: none; }
  .promo__title { font-size: 22px; }
  .promo__text { font-size: 14px; margin-top: 8px; }
  .promo__cta { height: 40px; margin-top: 14px; padding: 0 16px; font-size: 14px; }
  .promo__art { display: none; }
  .promo__nav { display: none; } /* на телефоне — свайп и точки */
  .promo__slide--image { aspect-ratio: 2 / 1; }
}
/* режим просмотра без сервера */
.preview-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.preview-note { margin-bottom: 14px; }
.price--ask { font-size: 15px; font-weight: 600; color: var(--c-muted); white-space: nowrap; }

/* контакты под картой на главной */
.geo-contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.geo-contacts__item { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 12px; background: var(--c-surface); }
.geo-contacts__ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--c-card); color: var(--c-signal); }
.geo-contacts__ic svg { width: 22px; height: 22px; }
.geo-contacts__item > div { display: grid; gap: 3px; min-width: 0; font-size: 13px; }
.geo-contacts__label { color: var(--c-muted); font-size: 12px; }
.geo-contacts__main { font: 700 16px/1.3 var(--font-brand); color: var(--c-text); text-decoration: none; overflow-wrap: anywhere; }
a.geo-contacts__main:hover { color: var(--c-signal); }
.geo-contacts__item a:not(.geo-contacts__main) { color: var(--c-red-text); font-weight: 600; text-decoration: none; }
.geo-contacts__item a:not(.geo-contacts__main):hover { text-decoration: underline; }
@media (max-width: 1020px) { .geo-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .geo-contacts { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
 * КАРТОЧКА ТОВАРА (режим просмотра) — #/part/<sku>
 * ===================================================================== */
.pp .crumbs { margin-bottom: 12px; }
.pp-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.pp-media { position: sticky; top: calc(var(--hdr, var(--banner-h)) + 20px); }
.pp-media__img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; background: var(--c-surface); border: 1px solid var(--c-border); }
.pp-media__img svg { width: 55%; height: 55%; color: var(--c-text); opacity: .85; }
.pp-media__note { margin: 8px 0 0; font-size: 12px; color: var(--c-muted); text-align: center; }
.pp-title { margin: 0 0 12px; font: 800 30px/1.15 var(--font-brand); letter-spacing: -0.01em; }
.pp-ids { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.pp-brand { padding: 6px 12px; border-radius: 999px; background: var(--c-text); color: var(--c-bg); font: 700 13px/1 var(--font-body); }
.pp-id { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: 999px; border: 1px solid var(--c-border); font-size: 13px; }
.pp-id small { color: var(--c-muted); }
.pp-id b { font-weight: 600; letter-spacing: .04em; }
.pp-copy { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--c-muted); cursor: pointer; }
.pp-copy:hover, .pp-copy:focus-visible { background: var(--c-surface); color: var(--c-signal); outline: none; }
.pp-copy svg { width: 15px; height: 15px; }
.pp-buy { padding: 22px; border-radius: 16px; background: var(--c-surface); }
.pp-price { font: 800 28px/1.1 var(--font-brand); color: var(--c-text); }
.pp-buy__note { margin: 8px 0 16px; font-size: 14px; color: var(--c-muted); }
.pp-buy__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-buy__actions .btn { height: 48px; display: inline-flex; align-items: center; padding: 0 22px; }
.pp-buy__phone { margin: 14px 0 0; font-size: 14px; color: var(--c-muted); }
.pp-buy__phone a { color: var(--c-text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.pp-perks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.pp-perks li { display: flex; gap: 10px; align-items: flex-start; }
.pp-perks a { color: var(--c-red-text); font-weight: 600; }
.pp-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pp-sec { padding: 22px; border-radius: 16px; border: 1px solid var(--c-border); background: var(--c-card); }
.pp-sec h2, .pp-similar h2 { margin: 0 0 14px; font: 800 20px/1.2 var(--font-brand); letter-spacing: 0; }
.pp-specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; font-size: 14px; }
.pp-specs dt { color: var(--c-muted); }
.pp-specs dd { margin: 0; }
.pp-specs a { color: var(--c-red-text); }
.pp-makes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.pp-makes span { padding: 5px 10px; border-radius: 8px; background: var(--c-surface); font-size: 13px; font-weight: 600; }
.pp-vin { color: var(--c-red-text); font-weight: 600; text-decoration: none; }
.pp-similar { margin-top: 28px; }
.pp-similar__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pp-mini { display: grid; gap: 4px; padding: 14px; border-radius: 12px; border: 1px solid var(--c-border); background: var(--c-card); color: var(--c-text); text-decoration: none; transition: border-color .15s; }
.pp-mini:hover { border-color: var(--c-signal); }
.pp-mini__img { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 6px; border-radius: 8px; background: var(--c-surface); }
.pp-mini__img svg { width: 48%; height: 60%; opacity: .8; }
.pp-mini b { font-size: 14px; line-height: 1.3; }
.pp-mini small { color: var(--c-muted); font-size: 12px; }
.pp-mini__price { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--c-muted); }
@media (max-width: 900px) {
  .pp-top, .pp-sections { grid-template-columns: minmax(0, 1fr); }
  .pp-media { position: static; max-width: 420px; }
  .pp-similar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .pp-title { font-size: 24px; }
  .pp-buy__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* =====================================================================
 * ЗАСТАВКА ПРИ ПЕРВОМ ВХОДЕ: прорисовка иконки вывески (js/splash.js)
 * одним цветом темы (светлая — чёрный, тёмная — белый): рамка → контур детали → заливка → уход
 * ===================================================================== */
.splash { display: none; }
html.splash-on body { overflow: hidden; }
html.splash-on .splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--c-bg); }
.splash__stage { width: min(75px, 19vw); aspect-ratio: 1; }
.splash__icon { display: block; width: 100%; height: 100%; overflow: visible; }
.splash__frame { fill: none; stroke: var(--c-text); stroke-width: 16.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: sp-draw .7s cubic-bezier(.65, 0, .35, 1) .05s forwards; }
.splash__glyph { fill: var(--c-text); fill-opacity: 0; stroke: var(--c-text); stroke-width: 2.6; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: sp-draw .75s ease-in-out forwards, sp-fill .35s ease-out 1.05s forwards; }
.splash.is-out { animation: sp-out .45s ease-in forwards; }
.splash.is-out .splash__icon { animation: sp-pop .45s ease-in forwards; }
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
@keyframes sp-fill { to { fill-opacity: 1; stroke-width: 0; } }
@keyframes sp-pop { to { transform: scale(.86); } }
@keyframes sp-out { to { opacity: 0; visibility: hidden; } }

/* =====================================================================
 * ПЛАВНАЯ СМЕНА ТЕМЫ: класс html.theme-anim ставится на 0,5 с при переключении
 * (переключатель со своей «каплей» не трогаем)
 * ===================================================================== */
html.theme-anim body,
html.theme-anim body *:not(.theme-toggle):not(.theme-toggle__opt):not(.theme-toggle__opt *),
html.theme-anim body *:not(.theme-toggle)::before,
html.theme-anim body *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease, stroke .45s ease, box-shadow .45s ease, outline-color .45s ease !important;
}

/* =====================================================================
 * ГЛАВНАЯ: первый экран — поиск по VIN + бонусы (гость) / широкий поиск (вошёл)
 * ===================================================================== */
.home-bonus { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 32px; border-radius: 16px; background: var(--c-surface); }
.home-bonus__text { position: relative; z-index: 1; max-width: 78%; }
.home-bonus__text h2 { margin: 0 0 6px; font-size: 26px; }
.home-bonus__text p { margin: 0; font-size: 15px; color: var(--c-muted); }
.home-bonus__form { position: relative; z-index: 1; display: flex; gap: 8px; }
.home-bonus__form input { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--c-field-border); border-radius: 10px; background: var(--c-field); color: var(--c-text); font-size: 16px; }
.home-bonus__form input:focus { outline: 2px solid var(--c-signal); outline-offset: -1px; }
.home-bonus__form input.is-bad { border-color: var(--c-signal); animation: hb-shake .35s; }
.home-bonus__form .btn { flex: none; height: 52px; padding: 0 20px; }
.home-bonus__alt { position: relative; z-index: 1; margin: 0; font-size: 13px; color: var(--c-muted); }
.home-bonus__alt a { color: var(--c-red-text); font-weight: 600; }
.home-bonus__art { position: absolute; right: -14px; top: -10px; width: 130px; height: 130px; opacity: .9; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(0,0,0,.12)); }
html[data-theme="dark"] .home-bonus__art { opacity: .18; }
@keyframes hb-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* вошедший покупатель: бонусный блок не нужен — поиск по VIN во всю ширину */
.home-hero--wide { grid-template-columns: minmax(0, 1fr); }
.home-hero--wide .home-hero__main { padding: 44px 48px; }
.home-hero--wide .brand-lead { max-width: 720px; }
.home-hero--wide .home-search { max-width: 860px; }
.home-hero--wide .home-search input { height: 58px; font-size: 18px; }
.home-hero--wide .home-search .btn { height: 58px; padding: 0 28px; }
@media (max-width: 720px) {
  .home-bonus { padding: 24px; }
  .home-bonus__text { max-width: 85%; }
  .home-bonus__text h2 { font-size: 22px; }
  .home-bonus__form { flex-direction: column; }
  .home-bonus__form .btn { width: 100%; }
  .home-bonus__art { width: 96px; height: 96px; }
  .home-hero--wide .home-hero__main { padding: 24px; }
  .home-hero--wide .home-search input, .home-hero--wide .home-search .btn { height: 52px; font-size: 16px; }
}
@media (min-width: 1021px) {
  .home-hero:not(.home-hero--wide) { grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr); }
}
@media (min-width: 1021px) and (max-width: 1240px) {
  .home-bonus__form { flex-direction: column; }
  .home-bonus__form .btn { width: 100%; }
}

/* =====================================================================
 * ПОДВАЛ: ровная сетка — 4 равные колонки, верх на одной линии,
 * документы — по той же сетке, внизу копирайт слева / примечание справа
 * ===================================================================== */
.footer { --fcol-gap: 32px; }
.footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--fcol-gap); align-items: start; }
.footer__cols > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.footer__cols h4 { margin: 0 0 4px; height: 36px; display: flex; align-items: center; font-size: 15px; line-height: 1.2; }
.footer__logo { display: flex; align-items: center; height: 36px; margin: 0 0 4px; padding: 0 !important; line-height: 0; }
.footer__logo img { display: block; height: 36px; width: auto; }
.footer__cols a, .footer__cols p, .footer__cols span { margin: 0; padding: 0; font-size: 14px; line-height: 1.4; }
.footer__cols .muted { font-size: 13px; }
.footer__phone { font-size: 20px !important; line-height: 1.2 !important; }
.footer__bottom { display: grid; gap: 18px; margin-top: 28px; padding-top: 20px; }
.footer__legal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px var(--fcol-gap); flex: none; }
.footer__legal a { display: block; font-size: 13px; line-height: 1.4; }
.footer__copy { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid #23252b; font-size: 12px; }
@media (max-width: 1020px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .footer__legal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .footer { --fcol-gap: 16px; }
  .footer__cols > div:first-child { grid-column: 1 / -1; }
  .footer__copy { flex-direction: column; }
}
.footer__cols .footer__logo { margin-bottom: 4px; }      /* общее margin:0 ссылок обнуляло отступ под логотипом */
.footer__bottom { justify-content: stretch; grid-template-columns: minmax(0, 1fr); } /* старое space-between сжимало сетку документов */

/* =====================================================================
 * ДЕМО-КАБИНЕТ (только режим просмотра): меню слева, содержимое справа
 * ===================================================================== */
.cab-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.cab-nav { position: sticky; top: calc(var(--hdr, var(--banner-h)) + 20px); display: grid; gap: 2px; padding: 12px; border-radius: 16px; background: var(--c-card); border: 1px solid var(--c-border); }
.cab-nav__name { margin: 4px 10px 10px; font: 700 15px/1.3 var(--font-brand); }
.cab-nav a, .cab-nav__out { display: block; width: 100%; text-align: left; padding: 11px 12px; border: 0; border-radius: 10px; background: none; color: var(--c-text); font: 600 15px/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.cab-nav a:hover, .cab-nav__out:hover { background: var(--c-surface); }
.cab-nav a[aria-current="page"] { background: var(--c-surface); }
.cab-nav hr { border: 0; border-top: 1px solid var(--c-border); margin: 6px 8px; }
.cab-nav__out { color: var(--c-red-text); }
.cab-main { min-width: 0; padding: 28px; border-radius: 16px; background: var(--c-card); border: 1px solid var(--c-border); }
.cab-main h1 { margin: 0 0 20px; font-size: 26px; }
.cab-h2 { margin: 24px 0 10px; font: 800 18px/1.2 var(--font-brand); }
.cab-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; max-width: 640px; }
.cab-form .field input { height: 46px; padding: 0 14px; }
.cab-form .field input:disabled { opacity: .6; cursor: not-allowed; }
.cab-form .btn { grid-column: 1 / -1; justify-self: start; height: 46px; padding: 0 24px; }
.cab-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.cab-tile { display: grid; gap: 4px; padding: 16px; border-radius: 12px; background: var(--c-surface); color: var(--c-text); text-decoration: none; }
.cab-tile:hover { outline: 1px solid var(--c-signal); }
.cab-tile small { color: var(--c-muted); }
.cab-tile b { font: 800 26px/1.1 var(--font-brand); }
.cab-tile span { font-size: 13px; color: var(--c-muted); }
.cab-order { padding: 18px; border-radius: 12px; border: 1px solid var(--c-border); margin-bottom: 12px; }
.cab-order__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cab-order p { margin: 4px 0 8px; font-size: 13px; }
.cab-order ul { margin: 0 0 12px; padding-left: 18px; font-size: 14px; }
.cab-order__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cab-order__foot b { font: 800 20px/1 var(--font-brand); }
.cab-badge { padding: 4px 10px; border-radius: 999px; background: var(--c-surface); color: var(--c-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.cab-badge--ok { background: rgba(34,165,90,.14); color: #15803D; }
html[data-theme="dark"] .cab-badge--ok { color: #86EFAC; }
.cab-bonus { display: grid; gap: 8px; padding: 24px; border-radius: 16px; background: linear-gradient(110deg, #D92D27, #8F1915); color: #fff; max-width: 520px; }
.cab-bonus small { opacity: .85; }
.cab-bonus b { font: 800 34px/1.1 var(--font-brand); }
.cab-bonus span { font-size: 14px; opacity: .9; }
.cab-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.cab-hist li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.cab-hist b { font-weight: 600; color: var(--c-muted); }
.cab-car { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px; border-radius: 12px; border: 1px solid var(--c-border); margin-bottom: 12px; }
.cab-car p { margin: 4px 0 0; font-size: 13px; }
.cab-car__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cab-add { height: 44px; padding: 0 18px; }
.cab-empty { display: grid; gap: 12px; justify-items: start; }
@media (max-width: 900px) {
  .cab-grid { grid-template-columns: minmax(0, 1fr); }
  .cab-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
  .cab-nav__name, .cab-nav hr { display: none; }
  .cab-nav a, .cab-nav__out { width: auto; padding: 9px 12px; font-size: 14px; }
  .cab-main { padding: 20px; }
  .cab-form, .cab-tiles { grid-template-columns: minmax(0, 1fr); }
}
.page.cab { max-width: none; } /* кабинет — по линии шапки, без старого ограничения 1060 px */

/* «Скоро открытие» на карточках магазинов */
.card.store, .home-stores .store-card { position: relative; }
.soon-badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 10px; border-radius: 999px; background: var(--c-signal); color: #fff; font: 700 12px/1 var(--font-body); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.store--soon .num { background: var(--c-muted); }
.geo__store-head .geo__pop-soon { margin: 0 !important; }
@media (min-width: 1021px) { .home-stores { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* 6 магазинов — ровно 3 × 2 */

/* плашки фильтров: цвета темы (раньше зашитый светлый фон без цвета текста — в тёмной теме текст пропадал) */
.chip { gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--c-surface); border-color: var(--c-border); color: var(--c-text); font-size: 13px; font-weight: 600; }
.chip button { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--c-muted); font-size: 12px; line-height: 1; }
.chip button:hover, .chip button:focus-visible { background: var(--c-border); color: var(--c-text); outline: none; }
.chip--car { background: rgba(217,45,39,.1); border-color: rgba(217,45,39,.35); color: var(--c-red-text); }
.chips { gap: 8px; margin-bottom: 14px; }

/* =====================================================================
 * ГОСНОМЕР в блоке бонусов: поле в виде российского номерного знака
 * (белый в обеих темах, как настоящий; регион отдельно, с RUS и флагом)
 * ===================================================================== */
.plate { flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; height: 56px; border: 2.5px solid #111113; border-radius: 9px; background: #fff; color: #111113; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.plate:focus-within { outline: 2px solid var(--c-signal); outline-offset: 2px; }
.plate.is-bad { border-color: var(--c-signal); animation: hb-shake .35s; }
.plate input { border: 0; outline: 0; background: transparent; color: #111113; font: 700 24px/1 var(--font-mono); text-transform: uppercase; text-align: center; padding: 0; min-width: 0; }
.plate input::placeholder { color: #B4B4BB; font-weight: 600; }
.plate__main { flex: 1 1 auto; width: 100%; letter-spacing: .08em; }
.plate__side { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 2.5px solid #111113; }
.plate__region { width: 100%; height: 30px; font-size: 20px !important; letter-spacing: .04em; }
.plate__rus { display: inline-flex; align-items: center; gap: 3px; font: 700 9px/1 var(--font-body); letter-spacing: .06em; color: #111113; }
.plate__flag { display: inline-block; width: 13px; height: 8px; border: 1px solid #c9c9cf; background: linear-gradient(#fff 0 33.3%, #1C57C9 33.3% 66.6%, #D52B1E 66.6%); }
.home-bonus__form .btn { height: 56px; }
.reg-found { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(34,165,90,.12); font-size: 14px; }
.reg-found .hico { color: #22A55A; flex: none; margin-top: 1px; }
@media (max-width: 1240px) and (min-width: 1021px) { .plate { flex: none; } }
.plate input, .plate input:focus { outline: none !important; box-shadow: none !important; border: 0 !important; } /* одна рамка — у всей таблички */
.plate input { font-family: var(--font-brand); font-weight: 800; } /* в моно «О» похожа на ноль */

/* =====================================================================
 * ФИРМЕННЫЕ ПЛАШКИ В СТИЛЕ ПОЛИГРАФИИ (макет Frame 90):
 * плотный чёрный, белый заголовок, меловой эскиз запчастей справа,
 * сплошная красная полоса снизу. Без цветовых градиентов.
 * ===================================================================== */
.hero-strip { position: relative; overflow: hidden; isolation: isolate; min-height: 176px; padding: 36px 40px 44px; border-radius: 16px; background: #0B0B0D; color: #fff; }
.hero-strip::before { content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 58%;
  background: url("../img/brand/sketch-parts.jpg") 70% 42% / cover no-repeat; opacity: .75;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%); mask-image: linear-gradient(to right, transparent 0, #000 38%); } /* маска — только чтобы эскиз мягко уходил в чёрный */
.hero-strip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: 6px; background: var(--c-signal); } /* было красное свечение */
.hero-strip h1 { position: relative; margin: 0 0 10px; color: #fff; font: 800 38px/1.1 var(--font-brand); letter-spacing: -0.01em; max-width: 62%; }
.hero-strip h1 em { font-style: normal; color: var(--c-signal); }
.hero-strip p { position: relative; max-width: 56%; margin: 0; color: #D4D4D8; font-size: 16px; line-height: 1.5; }
html[data-theme="dark"] .hero-strip { border: 1px solid var(--c-border); }
@media (max-width: 720px) {
  .hero-strip { min-height: 0; padding: 24px 20px 30px; }
  .hero-strip::before { width: 100%; opacity: .28; -webkit-mask-image: none; mask-image: none; }
  .hero-strip h1 { font-size: 28px; max-width: none; }
  .hero-strip p { max-width: none; font-size: 15px; }
}

/* промобаннеры — сплошной цвет вместо переливов; на тёмном — тот же эскиз */
.promo__slide--red { background: #D92D27; }
.promo__slide--dark { background: #0B0B0D; isolation: isolate; }
.promo__slide--dark::before { content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 55%;
  background: url("../img/brand/sketch-parts.jpg") 60% 45% / cover no-repeat; opacity: .7;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40%); mask-image: linear-gradient(to right, transparent 0, #000 40%); }
.promo__slide--dark .promo__art { display: none; } /* значок вместо эскиза не нужен */
.promo__slide--dark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--c-signal); }
.promo__slide--light { background: var(--c-surface); }
html[data-theme="dark"] .promo__slide--light { background: #1F1F24; }
@media (max-width: 720px) { .promo__slide--dark::before { width: 100%; opacity: .25; -webkit-mask-image: none; mask-image: none; } }

/* карта бонусов в кабинете — сплошной красный */
.cab-bonus { background: #D92D27; }

/* =====================================================================
 * «О КОМПАНИИ»: миссия, достоинства, инфографика планов на 2027
 * ===================================================================== */
.page.about { max-width: none; }
.hero-strip .about-mission { color: #fff; font: 700 20px/1.4 var(--font-brand); max-width: 58%; margin-bottom: 8px; }
.about-sec { margin-top: 32px; }
.about-h2 { margin: 0 0 16px; font: 800 26px/1.2 var(--font-brand); letter-spacing: -0.01em; }
.about-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.about-perk { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 14px; background: var(--c-surface); }
.about-perk .hico { color: var(--c-signal); flex: none; }
.about-perk b { display: block; font: 700 16px/1.3 var(--font-brand); margin-bottom: 4px; }
.about-perk span { display: block; font-size: 14px; line-height: 1.45; color: var(--c-muted); }

.about-plans { position: relative; overflow: hidden; isolation: isolate; margin-top: 32px; padding: 36px 40px 46px; border-radius: 16px; background: #0B0B0D; color: #fff; }
.about-plans::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url("../img/brand/sketch-parts.jpg") 50% 50% / cover no-repeat; opacity: .16; }
.about-plans::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--c-signal); }
html[data-theme="dark"] .about-plans { border: 1px solid var(--c-border); }
.about-plans__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.about-plans__year { margin: 0; font: 800 15px/1 var(--font-brand); color: #fff; background: var(--c-signal); padding: 6px 10px; border-radius: 6px; }
.about-plans__head h2 { margin: 0; font: 800 30px/1.15 var(--font-brand); color: #fff; }
.about-plans__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ab-plan { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(11,11,13,.72); }
.ab-plan__num { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.ab-plan__num b { font: 800 60px/1 var(--font-brand); color: var(--c-signal); letter-spacing: -0.02em; }
.ab-plan__num span { font: 700 16px/1.3 var(--font-brand); color: #fff; }
.ab-plan__num--icon .hico { color: var(--c-signal); flex: none; }
.ab-pict { display: grid; grid-template-columns: repeat(5, 26px); gap: 8px 10px; color: #fff; }
.ab-pict--20 { grid-template-columns: repeat(10, 22px); gap: 8px 6px; }
.ab-pict__i { display: grid; place-items: center; opacity: .9; }
.ab-pict--20 .ab-pict__i .hico { width: 20px; height: 20px; }
.ab-growth { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.ab-growth__title { margin: 0 0 12px; font: 700 15px/1 var(--font-brand); color: #fff; }
.ab-cells { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-cell { display: inline-block; width: 30px; height: 30px; border-radius: 6px; flex: none; }
.ab-cell--open { background: var(--c-signal); }
.ab-cell--soon { background: transparent; border: 2px solid var(--c-signal); }
.ab-cell--plan { background: transparent; border: 2px dashed rgba(255,255,255,.55); }
.ab-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 14px; font-size: 14px; color: #D4D4D8; }
.ab-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ab-legend .ab-cell { width: 14px; height: 14px; border-radius: 3px; }
.ab-legend a { margin-left: auto; color: #fff; font-weight: 600; text-decoration: none; }
.ab-legend a:hover { color: var(--c-signal); }
.about-text { margin-top: 24px; }
@media (max-width: 1020px) {
  .about-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-plans__grid { grid-template-columns: minmax(0, 1fr); }
  .hero-strip .about-mission { max-width: none; }
}
@media (max-width: 720px) {
  .about-plans { padding: 24px 18px 32px; }
  .about-plans__head h2 { font-size: 24px; }
  .ab-plan__num b { font-size: 48px; }
  .ab-pict--20 { grid-template-columns: repeat(10, 20px); gap: 6px 4px; }
  .ab-cell { width: 22px; height: 22px; }
  .ab-legend a { margin-left: 0; }
  .hero-strip .about-mission { font-size: 17px; }
}
@media (max-width: 520px) { .about-perks { grid-template-columns: minmax(0, 1fr); } }
.ab-pict .hico { color: #fff; } /* пиктограммы белые, акцент — красные цифры */

/* =====================================================================
 * БЛОГ: карточки статей и страница статьи
 * ===================================================================== */
.page.blog, .page.blog-post { max-width: none; }
.blog-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 20px; }
.blog-card2 { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 14px; background: var(--c-card); border: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; transition: border-color .15s, transform .15s; }
.blog-card2:hover { border-color: var(--c-signal); transform: translateY(-2px); }
.blog-card2__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #0B0B0D; margin-bottom: 6px; }
.blog-card2__icon .hico { color: #fff; }
.blog-card2 small { color: var(--c-red-text); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.blog-card2 b { font: 800 19px/1.25 var(--font-brand); }
.blog-card2__lead { font-size: 14px; line-height: 1.5; color: var(--c-muted); flex: 1; }
.blog-card2__more { font-weight: 700; color: var(--c-red-text); margin-top: 4px; }

.post-hero { min-height: 0; }
.post-hero h1 { max-width: 64%; font-size: 36px; }
.post-hero__tag { margin: 0 0 10px !important; color: #fff !important; font: 700 13px/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.post { max-width: 760px; margin: 28px 0 0; font-size: 17px; line-height: 1.7; color: var(--c-text); }
.post__lead { font-size: 20px; line-height: 1.55; font-weight: 500; margin: 0 0 26px; }
.post h2 { margin: 34px 0 10px; font: 800 24px/1.25 var(--font-brand); letter-spacing: -0.01em; }
.post p { margin: 0 0 14px; }
.post ul, .post ol { margin: 0 0 16px; padding-left: 22px; }
.post li { margin-bottom: 8px; }
.post li::marker { color: var(--c-signal); font-weight: 700; }
.post-cta { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin: 36px 0 0; padding: 24px; border-radius: 14px; background: var(--c-surface); border-left: 6px solid var(--c-signal); }
.post-cta b { display: block; font: 800 19px/1.3 var(--font-brand); margin-bottom: 4px; }
.post-cta span { font-size: 15px; color: var(--c-muted); line-height: 1.5; }
.post-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.post-cta__actions .btn { height: 48px; display: inline-flex; align-items: center; padding: 0 20px; }
.post-more { margin-top: 44px; }
.post-more h2 { margin: 0; font: 800 24px/1.2 var(--font-brand); }
@media (max-width: 720px) {
  .post-hero h1 { max-width: none; font-size: 26px; }
  .post { font-size: 16px; }
  .post__lead { font-size: 18px; }
  .post h2 { font-size: 21px; }
  .post-cta__actions, .post-cta__actions .btn { width: 100%; justify-content: center; }
}

/* фото команды */
.about-team__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.about-team__head a { color: var(--c-red-text); font-weight: 600; text-decoration: none; }
.team-photo { margin: 0; overflow: hidden; border-radius: 16px; background: var(--c-surface); aspect-ratio: 3 / 2; }
.team-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-team__cap { margin: 12px 0 0; font-size: 15px; color: var(--c-muted); max-width: 760px; }
#teamPage .team-photo { margin: 8px 0 16px; }
@media (min-width: 1021px) { .about-team .team-photo { aspect-ratio: 16 / 8; } .about-team .team-photo img { object-position: 50% 38%; } }

/* =====================================================================
 * ЭСКИЗЫ НА ФОНЕ ПЛАШЕК: приглушены до ~8 % и растворяются к тексту
 * (полностью прозрачны со стороны заголовка, без цветовых переливов)
 * ===================================================================== */
.hero-strip::before { width: 70%; opacity: .08;
  -webkit-mask-image: linear-gradient(to left, #000 0, #000 30%, transparent 100%); mask-image: linear-gradient(to left, #000 0, #000 30%, transparent 100%); }
html[data-theme="dark"] .hero-strip::before { opacity: .1; }
.promo__slide--dark::before { width: 70%; opacity: .08;
  -webkit-mask-image: linear-gradient(to left, #000 0, #000 30%, transparent 100%); mask-image: linear-gradient(to left, #000 0, #000 30%, transparent 100%); }
.about-plans::before { opacity: .08; -webkit-mask-image: linear-gradient(to left, #000 0, transparent 85%); mask-image: linear-gradient(to left, #000 0, transparent 85%); }
@media (max-width: 720px) {
  .hero-strip::before, .promo__slide--dark::before { width: 100%; opacity: .06; -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); }
}

/* =====================================================================
 * ФОТО МАГАЗИНОВ И КОМАНДЫ
 * ===================================================================== */
figure { margin: 0; }
.team-photo img { object-position: 50% 45%; }
@media (min-width: 1021px) { .about-team .team-photo { aspect-ratio: 16 / 7; } .about-team .team-photo img { object-position: 50% 40%; } }

/* «О компании»: текст с фото логотипа на куртке */
.about-text--photo { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; align-items: center; padding: 0; overflow: hidden; }
.about-text--photo > div { padding: 24px 24px 24px 0; }
.about-text__img { height: 100%; min-height: 220px; }
.about-text__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }

/* «Команда»: галерея */
.team-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 12px; margin: 8px 0 20px; }
.tg { position: relative; overflow: hidden; border-radius: 14px; background: var(--c-surface); }
.tg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tg--wide { grid-column: span 2; grid-row: span 2; }
.tg--tall { grid-row: span 2; }
.tg--tall img { object-position: 50% 35%; }
.tg--wide2 { grid-column: span 1; }
.tg figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(11,11,13,.78); color: #fff; font-size: 13px; font-weight: 600; }

/* главная, «Не нашли деталь?» */
.home-ask__img { overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10; margin-bottom: 18px; background: var(--c-border); }
.home-ask__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 35%; }

/* «Контакты», обратный звонок */
.callback-cta--photo { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.callback-cta__img { overflow: hidden; border-radius: 10px; aspect-ratio: 3 / 2; }
.callback-cta__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }

/* «Оптовым покупателям», «Как начать работу» */
.opt-start { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.opt-start__img { overflow: hidden; border-radius: 12px; min-height: 300px; }
.opt-start__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.opt-start__body { align-self: center; }

@media (max-width: 1020px) {
  .team-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .tg--wide { grid-column: span 2; }
}
@media (max-width: 720px) {
  .about-text--photo { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .about-text--photo > div { padding: 18px; }
  .about-text__img { min-height: 0; aspect-ratio: 16 / 9; }
  .team-gallery { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 220px; }
  .tg--wide, .tg--tall { grid-column: auto; grid-row: auto; }
  .tg--tall { grid-row: span 2; }
  .callback-cta--photo { grid-template-columns: minmax(0, 1fr); }
  .callback-cta__img { aspect-ratio: 16 / 9; }
  .opt-start { grid-template-columns: minmax(0, 1fr); }
  .opt-start__img { min-height: 0; aspect-ratio: 4 / 3; }
}

/* «О компании»: миссия — главный заголовок; формулировка команды */
.hero-strip h1.about-mission { font: 700 30px/1.25 var(--font-brand); max-width: 62%; margin: 0 0 10px; }
.about-team__lead { margin: 14px 0 0; font: 700 20px/1.35 var(--font-brand); color: var(--c-text); max-width: 760px; }
#teamPage .about-team__lead, .page > .about-team__lead { margin: -4px 0 16px; }
.about-team .about-team__lead + .about-team__cap { margin-top: 6px; }
@media (min-width: 1021px) { .about-team .team-photo img { object-position: 50% 62%; } }
@media (max-width: 1020px) { .hero-strip h1.about-mission { max-width: none; } }
@media (max-width: 720px) { .hero-strip h1.about-mission { font-size: 21px; } .about-team__lead { font-size: 17px; } }

/* =====================================================================
 * АКЦИИ СЕТИ: большой слайдер на главной (.promo--deals) и страницы #/promo
 * ===================================================================== */
.promo--deals { margin: 0 0 24px; }
.promo--deals .promo__slide { min-height: 360px; padding: 48px 72px 56px; }
.promo--deals .promo__body { max-width: 52%; }
.promo--deals .promo__title { font-size: 44px; line-height: 1.08; }
.promo--deals .promo__text { font-size: 19px; }
.deal-slide__tag { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.promo__slide--red .promo__cta { color: #B8231E; }
.promo__slide--dark .promo__cta { background: var(--c-signal); color: #fff; }

/* лестница скидки — столбики растут вправо */
.deal-ladder { position: absolute; right: 64px; top: 44px; bottom: 52px; width: 40%; display: flex; align-items: flex-end; gap: 10px; }
.deal-ladder__step { flex: 1; height: var(--h); display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 12px 4px 10px; border-radius: 10px 10px 4px 4px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); }
.deal-ladder__step:last-child { background: #fff; color: #B8231E; border-color: #fff; }
.deal-ladder__step b { font: 800 26px/1 var(--font-brand); }
.deal-ladder__step:last-child b { font-size: 34px; }
.deal-ladder__step span { font-size: 13px; font-weight: 600; opacity: .9; white-space: nowrap; }

/* «Честная цена» — крупная цифра */
.deal-big { position: absolute; right: 9%; top: 50%; transform: translateY(-50%); text-align: center; color: #fff; }
.deal-big b { display: block; font: 800 150px/1 var(--font-brand); letter-spacing: -0.04em; color: var(--c-signal); }
.deal-big span { display: block; margin-top: 4px; font: 700 26px/1 var(--font-brand); letter-spacing: .02em; }

@media (max-width: 1020px) {
  .promo--deals .promo__slide { padding: 40px 48px 52px; }
  .promo--deals .promo__title { font-size: 34px; }
  .deal-ladder { right: 40px; width: 42%; }
  .deal-big b { font-size: 110px; }
}
@media (max-width: 720px) {
  .promo--deals .promo__slide { flex-direction: column; align-items: stretch; min-height: 0; padding: 26px 20px 46px; }
  .promo--deals .promo__body { max-width: none; }
  .promo--deals .promo__title { font-size: 27px; }
  .promo--deals .promo__text { font-size: 16px; }
  .promo--deals .promo__nav { display: none; }
  .deal-ladder { position: static; width: auto; height: 140px; margin-top: 22px; gap: 6px; order: 2; }
  .deal-ladder__step { padding: 8px 2px 6px; }
  .deal-ladder__step b { font-size: 17px; } .deal-ladder__step:last-child b { font-size: 21px; }
  .deal-ladder__step span { font-size: 11px; }
  .deal-big { position: static; transform: none; margin-top: 18px; text-align: left; display: flex; align-items: baseline; gap: 12px; order: 2; }
  .deal-big b { font-size: 76px; }
  .deal-big span { font-size: 19px; }
  .promo--deals .promo__cta { order: 3; }
}

/* страницы акций */
.deal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.deal-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 180px; padding: 22px; border-radius: 14px; text-decoration: none; color: #fff; overflow: hidden; }
.deal-card--red { background: #D92D27; } .deal-card--dark { background: #0B0B0D; border-bottom: 5px solid var(--c-signal); }
.deal-card__badge { font: 800 40px/1 var(--font-brand); margin-bottom: 8px; }
.deal-card--dark .deal-card__badge { color: var(--c-signal); }
.deal-card b { font: 700 20px/1.2 var(--font-brand); }
.deal-card > span:not(.deal-card__badge) { opacity: .88; font-size: 15px; }
.deal-card__more { margin-top: auto; padding-top: 10px; font-weight: 700; opacity: 1 !important; }
.deal-card:hover { filter: brightness(1.06); }
.deal-sec { margin: 28px 0 0; }
.deal-sec h2 { margin: 0 0 14px; }
.deal-table { max-width: 560px; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; background: var(--c-card); }
.deal-table__row { display: grid; grid-template-columns: 1fr 160px; padding: 12px 18px; border-top: 1px solid var(--c-border); }
.deal-table__row:first-child { border-top: 0; }
.deal-table__row--head { background: var(--c-surface); font-size: 13px; font-weight: 700; color: var(--c-muted); }
.deal-table__row b { color: var(--c-red-text, var(--c-signal)); font-size: 18px; }
.deal-table__row:last-child b { font-size: 22px; }
.deal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.deal-grid h3 { margin-top: 0; }
.deal-terms { margin: 22px 0 0; max-width: 820px; color: var(--c-muted); }
.deal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 720px) { .deal-grid { grid-template-columns: minmax(0, 1fr); } .deal-table__row { grid-template-columns: 1fr 110px; } }
.deal-grid .card h3 { margin: 0 0 10px; font: 700 20px/1.25 var(--font-brand); }
.deal-grid .card p { margin: 0; }
.deals-page .hero-strip { margin-bottom: 20px; }

/* слайд с фото комплекта */
.promo--deals .deal-slide--photo { min-height: 420px; }
.deal-slide--photo::before { display: none; }
.deal-slide--photo .promo__body { max-width: 50%; }
.deal-photo { position: absolute; right: 56px; bottom: 0; height: 100%; width: auto; max-width: 48%; object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
.deal-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.deal-steps li { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.deal-steps li:last-child { background: var(--c-signal); border-color: var(--c-signal); }
.deal-steps b { font: 800 20px/1 var(--font-brand); }
.deal-steps li:not(:last-child) b { color: #fff; }
.deal-steps span { margin-top: 4px; font-size: 12px; opacity: .8; white-space: nowrap; }
.promo__slide--red .deal-big b { color: #fff; }
.promo__slide--red .deal-big span { color: rgba(255,255,255,.9); }

/* страница акции: фото в шапке */
.deal-hero--photo { min-height: 340px; padding-right: 42%; }
.deal-hero--photo::before { display: none; }
.deal-hero__img { position: absolute; right: 24px; bottom: 0; height: 100%; width: auto; max-width: 42%; object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }

@media (max-width: 1020px) { .deal-photo { right: 0; max-width: 46%; } }
@media (max-width: 720px) {
  .promo--deals .deal-slide--photo { min-height: 0; padding-top: 0; }
  .deal-slide--photo .promo__body { max-width: none; }
  .deal-photo { position: static; order: -1; align-self: center; width: auto; max-width: 100%; height: 260px; margin: 0 -20px 4px;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
  .deal-steps li { min-width: 0; flex: 1; padding: 7px 4px; }
  .deal-steps b { font-size: 16px; } .deal-steps span { font-size: 10px; }
  .deal-hero--photo { padding-right: 24px; min-height: 0; }
  .deal-hero__img { position: static; display: block; max-width: 100%; height: 240px; margin: 14px auto -24px; -webkit-mask-image: none; mask-image: none; }
}
.deal-photo, .deal-hero__img { right: 0; }
.deal-hero--photo { padding-right: 40%; }
@media (max-width: 720px) { .deal-hero--photo { padding-right: 24px; } }

/* Мессенджеры и 2ГИС */
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.soc { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--soc); transition: transform .15s, filter .15s; }
.soc svg { width: 24px; height: 24px; }
a.soc:hover { transform: translateY(-2px); filter: brightness(1.08); }
a.soc:focus-visible { outline: 3px solid var(--soc); outline-offset: 2px; }
.soc--empty { opacity: .35; filter: grayscale(.4); cursor: help; }
.socials--sm { margin-top: 10px; gap: 6px; }
.socials--sm .soc { width: 32px; height: 32px; border-radius: 9px; }
.socials--sm .soc svg { width: 19px; height: 19px; }
.socials--footer { margin-top: 14px; }

/* Мессенджеры и 2ГИС */
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.soc { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--soc); transition: transform .15s, filter .15s; }
.soc svg { width: 24px; height: 24px; }
a.soc:hover { transform: translateY(-2px); filter: brightness(1.08); }
a.soc:focus-visible { outline: 3px solid var(--soc); outline-offset: 2px; }
.soc--empty { opacity: .35; filter: grayscale(.4); cursor: help; }
.socials--sm { margin-top: 10px; gap: 6px; }
.socials--sm .soc { width: 32px; height: 32px; border-radius: 9px; }
.socials--sm .soc svg { width: 19px; height: 19px; }
.socials--footer { margin-top: 14px; }
.soc-title { margin: 18px 0 8px; font-weight: 700; }

/* Значки соцсетей в фирменном стиле: монохром, при наведении — красная плашка */
.soc { position: relative; width: 42px; height: 42px; border-radius: 10px; background: var(--c-card); border: 1px solid var(--c-border); color: var(--c-text); overflow: hidden;
  transition: background .15s, color .15s, border-color .15s, transform .15s; filter: none; }
.soc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c-signal); }
.soc svg { width: 22px; height: 22px; }
a.soc:hover { background: var(--c-signal); border-color: var(--c-signal); color: #fff; transform: translateY(-2px); filter: none; }
a.soc:hover::after { background: #0B0B0D; }
a.soc:focus-visible { outline: 3px solid var(--c-signal); outline-offset: 2px; }
.soc--empty { opacity: .4; filter: none; }
.socials--sm .soc { width: 34px; height: 34px; border-radius: 8px; }
.socials--sm .soc svg { width: 18px; height: 18px; }
.socials--sm .soc::after { height: 2px; }
.geo-contacts .soc { background: var(--c-card); }
.footer .soc { background: #17171A; border-color: #2A2A2F; color: #fff; }
.footer a.soc:hover { background: var(--c-signal); border-color: var(--c-signal); }
.geo-contacts a.soc:not(:hover) { color: var(--c-text); }
/* официальные значки: одним цветом в покое, в фирменных цветах при наведении */
.soc__mono { width: 20px; height: 20px; }
.soc--drom .soc__mono { width: 30px; height: 18px; }
.soc__color { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .15s; }
a.soc--has-color:hover { background: transparent; border-color: transparent; }
a.soc--has-color:hover .soc__color { opacity: 1; }
a.soc--has-color:hover::after { opacity: 0; }
.socials--sm .soc__mono { width: 16px; height: 16px; }
.socials--sm .soc--drom .soc__mono { width: 26px; height: 16px; }
.footer .socials a.soc, .footer .socials span.soc { display: inline-grid; place-items: center; padding: 0; line-height: 0; font-size: 0; }
.footer a.soc--has-color:hover { background: transparent; border-color: transparent; }
.promo--deals .deal-slide--photo .promo__title { font-size: 56px; }
.deal-slide__sub { margin: 10px 0 0; font: 700 26px/1.2 var(--font-brand); }
.deal-slide__sub + .promo__text { font-size: 15px; opacity: .75; max-width: 440px; }
@media (max-width: 1020px) { .promo--deals .deal-slide--photo .promo__title { font-size: 42px; } .deal-slide__sub { font-size: 22px; } }
@media (max-width: 720px) { .promo--deals .deal-slide--photo .promo__title { font-size: 32px; } .deal-slide__sub { font-size: 19px; } .deal-slide__sub + .promo__text { font-size: 13px; } }
@media (min-width: 721px) { .promo--deals .deal-slide--photo .promo__title { white-space: nowrap; } .deal-slide--photo .promo__body { max-width: 56%; } }
.soc--drom .soc__mono { width: 28px; height: 16px; }
.socials--sm .soc--drom .soc__mono { width: 24px; height: 14px; }
a.soc--drom:hover { background: transparent; }
.soc--drom .soc__color { border-radius: 50%; }

/* Фото комплекта: слайд в чистый чёрный, как фон снимка; мягкий переход слева и сверху */
.promo--deals .deal-slide--photo { background: #000; }
.deal-photo, .deal-hero__img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 22%, #000 55%), linear-gradient(to bottom, transparent 0, #000 18%);
  mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 22%, #000 55%), linear-gradient(to bottom, transparent 0, #000 18%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.deal-hero--photo { background: #000; }
@media (max-width: 720px) {
  .deal-photo { -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent); mask-image: linear-gradient(to bottom, #000 65%, transparent); -webkit-mask-composite: source-over; mask-composite: add; }
  .deal-hero__img { -webkit-mask-image: none; mask-image: none; }
}

/* Стрелки карусели: тёмные круглые, при наведении — фирменный красный */
.promo__nav { width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(11,11,13,.72); color: #fff;
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: background .15s, border-color .15s, transform .15s; }
.promo__nav:hover { background: var(--c-signal); border-color: var(--c-signal); }
.promo__nav:active { transform: scale(.94); }
.promo__nav--prev { left: 14px; } .promo__nav--next { right: 14px; }
.promo__slide--red ~ .promo__nav:hover, .promo:has(.promo__slide--red[aria-hidden="false"]) .promo__nav:hover { background: #0B0B0D; border-color: #0B0B0D; }
.promo:has(.promo__slide--light[aria-hidden="false"]) .promo__nav { background: #fff; color: #111113; border-color: var(--c-border); }
.promo:has(.promo__slide--light[aria-hidden="false"]) .promo__nav:hover { background: var(--c-signal); color: #fff; border-color: var(--c-signal); }
@media (min-width: 721px) and (max-width: 1020px) { .promo--deals .promo__slide { padding-left: 76px; } }
/* рука официанта остаётся целиком: растворяется только узкая полоса у левого края снимка */
.deal-photo, .deal-hero__img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%), linear-gradient(to bottom, transparent 0, #000 14%);
  mask-image: linear-gradient(to right, transparent 0, #000 12%), linear-gradient(to bottom, transparent 0, #000 14%); }
@media (max-width: 720px) {
  .deal-photo { -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent); mask-image: linear-gradient(to bottom, #000 65%, transparent); }
  .deal-hero__img { -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 721px) and (max-width: 1020px) { .deal-steps { gap: 6px; } .deal-steps li { min-width: 52px; padding: 8px 6px; } .deal-steps b { font-size: 17px; } }

/* Видео с официантом (широкие экраны); на узких — статичное фото */
.deal-video { display: none; }
@media (min-width: 1021px) {
  .deal-slide--photo .deal-photo--novideo { display: none; }
  .deal-video { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%); mask-image: linear-gradient(to right, transparent 0, #000 14%); }
  .deal-video video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; background: #000; }
  .promo--deals .deal-slide--photo .promo__title { font-size: 50px; }
  .deal-slide--photo .promo__body { max-width: 50%; }
}

/* =====================================================================
 * ЗАСТАВКА — «люкс»: медленная прорисовка на длинных кривых, мягкая заливка,
 * красная черта раскрывается из центра, логотип проявляется из лёгкого размытия,
 * уход — подъём с растворением, сайт под ней проявляется.
 * ===================================================================== */
html.splash-on .splash { background: var(--c-bg); }
.splash__stage { width: auto; aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; will-change: transform, opacity, filter; }
.splash__icon { width: 84px; height: 84px; }
.splash__frame { stroke-width: 14; animation: sp-draw 1.05s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
.splash__glyph { stroke-width: 2.2; animation: sp-draw 1s cubic-bezier(.45, 0, .2, 1) forwards, sp-fill-lux .7s cubic-bezier(.22, 1, .36, 1) 1.35s forwards; }
@keyframes sp-fill-lux { to { fill-opacity: 1; stroke-opacity: 0; } }
.splash__line { display: block; width: 72px; height: 2px; margin: 22px 0 18px; border-radius: 2px; background: var(--c-signal);
  transform: scaleX(0); animation: sp-line .8s cubic-bezier(.22, 1, .36, 1) 1.45s forwards; }
@keyframes sp-line { to { transform: scaleX(1); } }
.splash__logo { position: relative; display: block; width: 132px; height: 40px; opacity: 0; filter: blur(8px); transform: translateY(8px);
  animation: sp-logo .9s cubic-bezier(.22, 1, .36, 1) 1.6s forwards; }
.splash__logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash__logo--dark { display: none; }
html[data-theme="dark"] .splash__logo--light { display: none; }
html[data-theme="dark"] .splash__logo--dark { display: block; }
@keyframes sp-logo { to { opacity: 1; filter: blur(0); transform: none; } }
/* уход */
.splash.is-out { animation: sp-out-lux 1s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
.splash.is-out .splash__icon { animation: none; }
.splash.is-out .splash__stage { animation: sp-stage-out .8s cubic-bezier(.55, 0, .45, 1) forwards; }
@keyframes sp-stage-out { to { opacity: 0; transform: translateY(-14px) scale(.985); filter: blur(6px); } }
@keyframes sp-out-lux { 0% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
/* сайт проявляется под заставкой */
html.splash-reveal #view { animation: sp-reveal 1.1s cubic-bezier(.22, 1, .36, 1) .25s both; }
html.splash-reveal .banner, html.splash-reveal .sidebar { animation: sp-fade 1s cubic-bezier(.22, 1, .36, 1) .15s both; }
@keyframes sp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Вертикальное видео с официантом: на всех ширинах, фото — только запасное */
.deal-video { display: block; position: absolute; top: 0; bottom: 0; right: 4%; width: auto; aspect-ratio: 720 / 984;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%), linear-gradient(to bottom, transparent 0, #000 10%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%), linear-gradient(to bottom, transparent 0, #000 10%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.deal-video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.deal-slide--photo .deal-photo--novideo { display: none; }
.promo--deals .deal-slide--photo { min-height: 460px; }
.deal-slide--photo .promo__body { max-width: 58%; }
.promo--deals .deal-slide--photo .promo__title { font-size: 56px; }
.deal-slide--photo .deal-slide__sub { max-width: 520px; font-size: 26px; line-height: 1.25; }
.deal-slide--photo .promo__cta { margin-top: 28px; }
@media (max-width: 1020px) {
  .promo--deals .deal-slide--photo { min-height: 420px; }
  .deal-video { right: 0; }
  .promo--deals .deal-slide--photo .promo__title { font-size: 40px; }
  .deal-slide--photo .deal-slide__sub { font-size: 21px; max-width: 360px; }
}
@media (max-width: 720px) {
  .promo--deals .deal-slide--photo { min-height: 0; }
  .deal-video { position: relative; order: -1; right: auto; align-self: center; height: 380px; margin: 0 -20px 6px;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
  .deal-slide--photo .promo__body { max-width: none; }
  .promo--deals .deal-slide--photo .promo__title { font-size: 32px; }
  .deal-slide--photo .deal-slide__sub { font-size: 18px; }
}
/* края ролика растворяются со всех сторон — без вертикальных «срезов» красной волны */
.deal-video {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
@media (max-width: 720px) {
  .deal-video {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, #000 72%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, #000 72%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
}

/* =====================================================================
 * ЗАСТАВКА: логотип CARVIC, буква за буквой (заменяет иконку и черту)
 * ===================================================================== */
.splash__icon, .splash__line, .splash__logo { display: none !important; }
.splash__logo-svg { display: block; width: min(300px, 70vw); height: auto; overflow: visible; }
.splash__logo-svg .sl-big { fill: var(--c-text); fill-opacity: 0; stroke: var(--c-text); stroke-width: 2.4; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: sl-draw 1.1s cubic-bezier(.45, 0, .2, 1) forwards, sl-fill .8s cubic-bezier(.22, 1, .36, 1) forwards; }
.splash__logo-svg .sl-red { fill: var(--c-signal); stroke: var(--c-signal); }
.splash__logo-svg .sl-small { fill: var(--c-text); opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(14px);
  animation: sl-up .7s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes sl-draw { to { stroke-dashoffset: 0; } }
@keyframes sl-fill { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes sl-up { to { opacity: 1; transform: none; } }
/* официант крупнее и без затемнения справа: ролик прижат к правому краю слайда, растворяется только левый край */
@media (min-width: 721px) {
  .promo--deals .deal-slide--photo { min-height: 540px; }
  .deal-video { right: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to bottom, transparent 0, #000 8%);
    mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to bottom, transparent 0, #000 8%);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
}
@media (min-width: 721px) and (max-width: 1020px) { .promo--deals .deal-slide--photo { min-height: 480px; } }
@media (min-width: 721px) and (max-width: 1020px) { .deal-slide--photo .promo__body { max-width: 50%; } .promo--deals .deal-slide--photo .promo__title { font-size: 34px; white-space: normal; } .deal-slide--photo .deal-slide__sub { font-size: 19px; } }
.deal-big__icons { display: flex !important; justify-content: center; gap: 12px; margin-top: 18px !important; }
.deal-big__icons img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.deal-big__icons img[src$="drom.svg"] { border-radius: 50%; }
@media (max-width: 720px) { .deal-big { flex-wrap: wrap; } .deal-big__icons { margin: 0 0 0 auto !important; } .deal-big__icons img { width: 36px; height: 36px; } }
.deal-big__icons img { box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 6px 16px rgba(0,0,0,.2); }
@media (max-width: 720px) {
  .deal-big__icons { flex-basis: 100%; justify-content: flex-start; margin: 14px 0 0 !important; }
  .promo--deals .promo__slide:not(.deal-slide--photo) { justify-content: center; }
}
/* официант ближе к тексту: ролик крупнее (выше слайда, низ уходит за край), правый край — по краю слайда */
@media (min-width: 1021px) {
  .deal-video { top: 0; bottom: auto; height: 114%; }
}

/* Юридические документы: размеченный текст вместо «сырого» markdown */
.legal-doc--md { white-space: normal; font-size: 15px; line-height: 1.6; }
.legal-doc--md h2 { margin: 0 0 6px; font-size: 24px; }
.legal-doc--md h3 { margin: 28px 0 8px; font-size: 19px; }
.legal-doc--md h4, .legal-doc--md h5 { margin: 20px 0 6px; font-size: 16px; }
.legal-doc--md p { margin: 0 0 12px; }
.legal-doc--md ul, .legal-doc--md ol { margin: 0 0 12px; padding-left: 22px; }
.legal-doc--md li { margin: 3px 0; }
.legal-doc--md blockquote { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--c-signal); background: var(--c-surface); border-radius: 0 10px 10px 0; font-size: 13px; color: var(--c-muted); }
.legal-doc--md a { word-break: break-word; }
.md-table { overflow-x: auto; margin: 0 0 16px; }
.md-table table { border-collapse: collapse; width: 100%; font-size: 13px; }
.md-table th, .md-table td { border: 1px solid var(--c-border); padding: 8px 10px; text-align: left; vertical-align: top; }
.md-table th { background: var(--c-surface); }

/* Телефон: карточки по три в ряд («Контакты», «Оптовикам») — в одну колонку, без обрезки справа */
@media (max-width: 520px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
#view .grid-3 > .card > h3 { font-size: 20px; line-height: 1.25; }

/* =====================================================================
 * ТЕЛЕФОН: меню под бургером — только разделы (как в подвале), без фильтров каталога;
 * переключатель темы — в шапке, виден всегда
 * ===================================================================== */
.sb-mnav, .hdr-theme { display: none; }
@media (max-width: 900px) {
  .sidebar > .sb-block { display: none !important; }
  .sb-mnav { display: flex; flex-direction: column; padding: 8px 8px 24px; }
  .sb-mnav h3 { margin: 22px 0 10px; font: 700 20px/1.2 var(--font-brand); color: var(--c-text); }
  .sb-mnav h3:first-child { margin-top: 6px; }
  .sb-mnav h3 + a { margin-top: 2px; }
  .sb-mnav h3:not(:first-child) { margin-top: 40px; }
  .sb-mnav a { padding: 9px 0; font-size: 19px; color: var(--c-muted); text-decoration: none; }
  .sb-mnav a:hover, .sb-mnav a:focus-visible { color: var(--c-text); }
  .sb-mnav a.on { color: var(--c-signal); }

  .hdr-theme { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px;
    background: var(--c-surface); color: var(--c-text); cursor: pointer; overflow: hidden; flex: none; }
  .hdr-theme svg { position: absolute; width: 21px; height: 21px; transition: transform .55s cubic-bezier(.3, 1.3, .5, 1), opacity .3s ease; }
  .hdr-theme__moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
  html[data-theme="dark"] .hdr-theme__sun { opacity: 0; transform: rotate(90deg) scale(.4); }
  html[data-theme="dark"] .hdr-theme__moon { opacity: 1; transform: none; color: #fff; }
  .hdr-theme:focus-visible { outline: 2px solid var(--c-signal); outline-offset: 2px; }
}
@media (max-width: 720px) {
  .hdr-btn, .banner__phone-icon, .catalog-btn, .hdr-theme { width: 38px; height: 38px; }
  .banner__right { gap: 5px; }
  .burger { min-width: 36px; width: 36px; padding: 4px; }
}
@media (max-width: 380px) {
  .hdr-btn, .banner__phone-icon, .catalog-btn, .hdr-theme { width: 35px; height: 35px; }
  .banner__right { gap: 4px; }
  .hdr-theme svg { width: 19px; height: 19px; }
}
@media (prefers-reduced-motion: reduce) { .hdr-theme svg { transition: none; } }

/* =====================================================================
 * СЛАЙДЕР АКЦИЙ — вдвое ниже (2026-11-25): ~270 px на компьютере, официант справа во всю высоту
 * ===================================================================== */
.promo.promo--deals .promo__slide, .promo.promo--deals .deal-slide--photo { min-height: 270px; padding: 28px 72px 34px; }
.promo.promo--deals .promo__title, .promo.promo--deals .deal-slide--photo .promo__title { font-size: 38px; line-height: 1.08; }
.promo.promo--deals .deal-slide__sub { margin-top: 8px; font-size: 19px; max-width: 460px; }
.promo.promo--deals .promo__text { margin-top: 8px; font-size: 15px; }
.promo.promo--deals .promo__cta { height: 42px; margin-top: 16px; }
.promo.promo--deals .deal-video { top: 0; bottom: 0; height: 100%; right: 0; }
.promo.promo--deals .deal-big b { font-size: 92px; }
.promo.promo--deals .deal-big span { font-size: 20px; }
.promo.promo--deals .deal-big__icons { margin-top: 10px !important; }
.promo.promo--deals .deal-big__icons img { width: 38px; height: 38px; }
.promo.promo--deals .promo__dots { bottom: 10px; }
@media (min-width: 721px) and (max-width: 1020px) {
  .promo.promo--deals .promo__slide, .promo.promo--deals .deal-slide--photo { min-height: 240px; padding: 24px 40px 30px 72px; }
  .promo.promo--deals .promo__title, .promo.promo--deals .deal-slide--photo .promo__title { font-size: 30px; white-space: normal; }
  .promo.promo--deals .deal-slide__sub { font-size: 17px; max-width: 340px; }
  .promo.promo--deals .deal-big b { font-size: 72px; }
}
/* телефон: текст слева, официант справа — тоже вдвое ниже прежнего */
@media (max-width: 720px) {
  .promo.promo--deals .promo__slide, .promo.promo--deals .deal-slide--photo { min-height: 220px; padding: 20px 18px 30px; justify-content: center; }
  .promo.promo--deals .deal-slide--photo .promo__body { max-width: 62%; position: relative; z-index: 1; }
  .promo.promo--deals .deal-video { position: absolute; order: 0; margin: 0; top: 0; bottom: 0; right: 0; height: 100%; width: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%); mask-image: linear-gradient(to right, transparent 0, #000 30%); }
  .promo.promo--deals .promo__title, .promo.promo--deals .deal-slide--photo .promo__title { font-size: 22px; white-space: normal; }
  .promo.promo--deals .deal-slide__sub { font-size: 14px; line-height: 1.3; }
  .promo.promo--deals .promo__text { font-size: 13px; }
  .promo.promo--deals .promo__cta { height: 36px; padding: 0 14px; font-size: 14px; margin-top: 12px; }
  .promo.promo--deals .promo__slide:not(.deal-slide--photo) .promo__body { max-width: 64%; }
  .promo.promo--deals .deal-big { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: block; margin: 0; text-align: center; }
  .promo.promo--deals .deal-big b { font-size: 50px; }
  .promo.promo--deals .deal-big span { font-size: 14px; }
  .promo.promo--deals .deal-big__icons { justify-content: center; margin: 6px 0 0 !important; gap: 6px; }
  .promo.promo--deals .deal-big__icons img { width: 26px; height: 26px; }
}
/* стрелки слайдера — внизу по краям точек, чтобы не закрывать официанта и цифры */
.promo.promo--deals .promo__nav { top: auto; bottom: 4px; margin-top: 0; width: 30px; height: 30px; box-shadow: none; }
.promo.promo--deals .promo__nav svg { width: 16px; height: 16px; }
.promo.promo--deals .promo__nav--prev { left: calc(50% - 64px); }
.promo.promo--deals .promo__nav--next { right: calc(50% - 64px); }
@media (min-width: 721px) { .promo.promo--deals .promo__slide, .promo.promo--deals .deal-slide--photo { padding-left: 56px; } }
@media (max-width: 720px) {
  .promo.promo--deals .deal-video { transform: translateX(14%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 42%); mask-image: linear-gradient(to right, transparent 0, #000 42%); }
  .promo.promo--deals .deal-slide--photo .promo__body { text-shadow: 0 1px 10px rgba(0,0,0,.85); }
}

/* СЛАЙДЕР АКЦИЙ — чуть выше (2026-11-25, 2): официант с подносом — главная фигура.
 * Ролик крупнее слайда: сверху и снизу срезаны пустые поля (чёрный фон, дым), лицо и поднос целиком. */
.promo.promo--deals .promo__slide, .promo.promo--deals .deal-slide--photo { min-height: 380px; padding: 36px 56px 44px; }
.promo.promo--deals .promo__title, .promo.promo--deals .deal-slide--photo .promo__title { font-size: 46px; }
.promo.promo--deals .deal-slide__sub { font-size: 21px; max-width: 500px; }
.promo.promo--deals .promo__cta { height: 46px; margin-top: 22px; }
.promo.promo--deals .deal-video { top: -14%; bottom: auto; height: 128%; right: 2%; }
.promo.promo--deals .deal-big b { font-size: 120px; }
.promo.promo--deals .deal-big span { font-size: 24px; }
.promo.promo--deals .deal-big__icons img { width: 44px; height: 44px; }
@media (min-width: 721px) and (max-width: 1020px) {
  .promo.promo--deals .promo__slide, .promo.promo--deals .deal-slide--photo { min-height: 330px; padding: 30px 32px 40px; }
  .promo.promo--deals .deal-slide--photo .promo__body { max-width: 52%; }
  .promo.promo--deals .promo__title, .promo.promo--deals .deal-slide--photo .promo__title { font-size: 32px; }
  .promo.promo--deals .deal-slide__sub { font-size: 18px; }
  .promo.promo--deals .deal-video { right: 0; }
  .promo.promo--deals .deal-big b { font-size: 84px; }
}
@media (max-width: 720px) {
  .promo.promo--deals .promo__slide, .promo.promo--deals .deal-slide--photo { min-height: 300px; padding: 22px 18px 34px; }
  .promo.promo--deals .deal-slide--photo .promo__body { max-width: 56%; }
  .promo.promo--deals .deal-video { top: -12%; height: 124%; transform: translateX(10%); }
  .promo.promo--deals .promo__title, .promo.promo--deals .deal-slide--photo .promo__title { font-size: 24px; }
  .promo.promo--deals .deal-slide__sub { font-size: 14px; }
  .promo.promo--deals .promo__cta { height: 38px; margin-top: 14px; }
  .promo.promo--deals .deal-big b { font-size: 56px; }
}
.promo.promo--deals .deal-video { right: 0; }
@media (max-width: 380px) { .promo.promo--deals .deal-slide--photo .promo__title { font-size: 21px; } .promo.promo--deals .deal-slide--photo .promo__body { max-width: 58%; } }

/* =====================================================================
 * Слайд «Ваш комплект, сэр!»: официант левее от края, под текстом — красные акценты и летающие детали
 * ===================================================================== */
.promo.promo--deals .deal-slide--photo { background: radial-gradient(60% 90% at 78% 55%, rgba(217,45,39,.28), transparent 70%), #000; }
.promo.promo--deals .deal-slide--photo .promo__body { position: relative; z-index: 2; }
.promo.promo--deals .deal-video { right: 7%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%);
  mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 90%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.deal-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.deal-deco__glow { position: absolute; left: -6%; bottom: -40%; width: 60%; height: 90%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(217,45,39,.42), rgba(217,45,39,.12) 55%, transparent); filter: blur(6px); }
.deal-deco__line { position: absolute; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--c-signal) 40%, transparent);
  transform: rotate(-14deg); opacity: .7; }
.deal-deco__line--1 { left: 4%; bottom: 22%; width: 34%; animation: deal-line 5.5s ease-in-out infinite; }
.deal-deco__line--2 { left: 18%; bottom: 13%; width: 26%; opacity: .45; animation: deal-line 7s ease-in-out -2s infinite; }
@keyframes deal-line { 0%, 100% { transform: rotate(-14deg) translateX(0); } 50% { transform: rotate(-14deg) translateX(18px); } }
.deal-part { position: absolute; fill: var(--c-signal); filter: drop-shadow(0 8px 18px rgba(217,45,39,.35)); }
.deal-part--1 { left: 31%; bottom: 9%; width: 92px; height: 92px; animation: deal-float 7s ease-in-out infinite; }
.deal-part--2 { left: 46%; bottom: 30%; width: 34px; height: 74px; --r: 18deg; animation: deal-float 8.5s ease-in-out -3s infinite; opacity: .9; }
.deal-part--3 { left: 55%; bottom: 8%; width: 24px; height: 68px; --r: -24deg; animation: deal-float 6.5s ease-in-out -1.5s infinite; opacity: .75; }
@keyframes deal-float {
  0%, 100% { transform: translateY(0) rotate(var(--r, -10deg)); }
  50% { transform: translateY(-12px) rotate(calc(var(--r, -10deg) + 10deg)); }
}
@media (min-width: 721px) and (max-width: 1020px) {
  .promo.promo--deals .deal-video { right: 3%; }
  .deal-part--1 { left: 30%; width: 70px; height: 70px; }
  .deal-part--2 { left: 44%; } .deal-part--3 { display: none; }
}
@media (max-width: 720px) {
  .promo.promo--deals .deal-video { right: 0; }
  .deal-deco__glow { width: 90%; bottom: -55%; }
  .deal-part--1 { left: auto; right: 58%; bottom: -14px; width: 64px; height: 64px; opacity: .55; }
  .deal-part--2, .deal-part--3, .deal-deco__line--2 { display: none; }
  .deal-deco__line--1 { bottom: 12%; width: 50%; }
}
@media (prefers-reduced-motion: reduce) { .deal-part, .deal-deco__line { animation: none; } }

/* Летающие детали — фото с подноса, застыли в полёте (без анимации), распределены по слайду */
.deal-part { display: none; }
.deal-deco__line { animation: none !important; }
.deal-fly { position: absolute; height: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)) drop-shadow(0 0 22px rgba(217,45,39,.18)); }
.deal-fly--caliper { left: 41%; top: 6%; width: 128px; transform: rotate(-16deg); }
.deal-fly--plugs { left: 22%; bottom: 9%; width: 140px; transform: rotate(24deg); }
.deal-fly--bearing { left: 47%; bottom: 13%; width: 64px; transform: rotate(-12deg); filter: blur(.5px) drop-shadow(0 10px 14px rgba(0,0,0,.55)); }
@media (min-width: 721px) and (max-width: 1020px) {
  .deal-fly--caliper { left: 39%; top: 5%; width: 100px; }
  .deal-fly--plugs { left: 24%; width: 110px; }
  .deal-fly--bearing { display: none; }
}
@media (max-width: 720px) {
  .deal-fly--caliper, .deal-fly--bearing { display: none; }
  .deal-fly--plugs { left: auto; right: 54%; bottom: 4%; width: 96px; opacity: .9; }
}

/* Слайд «Ваш комплект, сэр!» (2026-11-25, 3): без летающих деталей; больше воздуха в тексте */
.deal-fly { display: none !important; }
.promo.promo--deals .promo__body { max-width: 520px; }
.promo.promo--deals .promo__title, .promo.promo--deals .deal-slide--photo .promo__title { line-height: 1.1; }
.promo.promo--deals .deal-slide__sub { margin-top: 18px; line-height: 1.4; max-width: 440px; }
.promo.promo--deals .promo__text { margin-top: 16px; line-height: 1.5; }
.promo.promo--deals .promo__cta { margin-top: 32px; }
@media (min-width: 721px) {
  .promo.promo--deals .promo__slide, .promo.promo--deals .deal-slide--photo { padding-left: 72px; }
}
@media (min-width: 721px) and (max-width: 1020px) {
  .promo.promo--deals .promo__slide, .promo.promo--deals .deal-slide--photo { padding-left: 48px; }
  .promo.promo--deals .deal-slide__sub { margin-top: 14px; max-width: 320px; }
  .promo.promo--deals .promo__cta { margin-top: 24px; }
}
@media (max-width: 720px) {
  .promo.promo--deals .deal-slide__sub { margin-top: 10px; }
  .promo.promo--deals .promo__text { margin-top: 10px; }
  .promo.promo--deals .promo__cta { margin-top: 18px; }
}
