/* =====================================================================
   Гараж 24 — стили. Цвета и шрифты задаются токенами в :root.
   Характер: бетон, асфальт и жёлтая дорожная разметка. Рубленая сетка:
   плиты встык, зазор 6 px, без линий, теней и градиентов.
   ===================================================================== */
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin.woff2") format("woff2"); font-weight: 200 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-ext.woff2") format("woff2"); font-weight: 200 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-cyrillic.woff2") format("woff2"); font-weight: 200 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-latin.woff2") format("woff2"); font-weight: 100 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-latin-ext.woff2") format("woff2"); font-weight: 100 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-cyrillic.woff2") format("woff2"); font-weight: 100 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --ground: #d2d2cd;       /* бетон */
  --panel: #e8e8e4;        /* светлая плита */
  --plate: #dfe0db;        /* подложка рисунков */
  --slab: #c2c2bc;         /* тёмная плита */
  --ink: #16181a;
  --muted: #34383c;
  --asphalt: #16181b;
  --asphalt-2: #24272b;
  --asphalt-3: #33373c;
  --on-asphalt: #ecece8;
  --on-asphalt-muted: #aaaeb3;
  --road: #f6c60c;         /* дорожная разметка */
  --road-press: #dcae00;

  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --s1: 0.8125rem;                                           /* 13 */
  --s2: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);            /* 16–17 */
  --s3: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);             /* 20–24 */
  --s4: clamp(2.25rem, 1.3rem + 3.2vw, 3.75rem);             /* 36–60 */
  --s5: clamp(3.2rem, 16vw, 7.5rem);                         /* 51–120 */

  --m: clamp(16px, 2.2vw, 32px);   /* поля страницы */
  --gap: 6px;                      /* зазор рубленой сетки */
  --sec: clamp(72px, 9vw, 150px);  /* расстояние между секциями */
  --hh: 68px;                      /* высота шапки */
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 16px); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--s2)/1.55 var(--font-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.on-dark :focus-visible, .dark :focus-visible { outline-color: var(--road); }
::selection { background: var(--road); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--road); color: var(--ink); padding: 12px 16px; font-weight: 600; }
.skip:focus { left: 8px; }
.num, .tn { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- типографика ---------- */
.d, h1, h2, .wordmark { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.98; }
h1, h2 { font-size: var(--s4); text-wrap: balance; }
h3 { font-size: var(--s3); font-weight: 600; line-height: 1.2; }
.lead { font-size: var(--s3); line-height: 1.4; font-weight: 400; max-width: 34em; }
.small { font-size: var(--s1); line-height: 1.45; }
.muted { color: var(--muted); }

/* ---------- каркас ---------- */
.m { padding-inline: var(--m); }
.wrap { max-width: 1760px; margin-inline: auto; }
main { display: block; position: relative; }
.sec { margin-top: var(--sec); }
.sec--tight { margin-top: clamp(48px, 6vw, 96px); }
main > section:last-child { margin-bottom: var(--sec); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 44px); }
.sec-head h2 { max-width: 14em; }
.sec-head .btn { flex: none; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 0; background: var(--road); color: var(--ink); font-weight: 600; font-size: var(--s2); line-height: 1.1; text-decoration: none; text-align: center; transition: transform .18s var(--ease), background-color .18s var(--ease); }
.btn:hover { background: var(--road-press); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--k { background: var(--asphalt); color: var(--on-asphalt); }
.btn--k:hover { background: var(--asphalt-3); }
.btn--p { background: var(--panel); color: var(--ink); }
.btn--p:hover { background: #f1f1ee; }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: var(--s3); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; font-weight: 600; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--slab); color: var(--muted); cursor: not-allowed; transform: none; }
.on-dark .btn--p { background: var(--asphalt-3); color: var(--on-asphalt); }
.on-dark .btn--p:hover { background: #41464c; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: inherit; transition: background-color .15s var(--ease), transform .15s var(--ease); font-weight: 600; text-decoration: none; }
.icon-btn:hover { background: var(--panel); }
.icon-btn:active { transform: translateY(1px); }
.ico { flex: none; }
.cnt { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; background: var(--asphalt); color: var(--road); font-size: var(--s1); font-weight: 700; line-height: 1; }
.cnt[hidden] { display: none; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--ground); }
.hdr-in { display: flex; align-items: center; gap: 6px; min-height: var(--hh); }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: clamp(8px, 2vw, 32px); text-decoration: none; min-height: 44px; }
.logo b { display: inline-grid; place-items: center; height: 36px; padding: 0 9px; background: var(--road); color: var(--ink); font: 700 1.35rem/1 var(--font-display); letter-spacing: 0; }
.logo span { font: 700 1.5rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 500; transition: background-color .15s var(--ease); }
.nav a:hover { background: var(--panel); }
.nav a[aria-current="page"] { background: var(--panel); font-weight: 600; }
.hsearch { display: flex; align-items: center; background: var(--panel); height: 44px; margin-right: 4px; }
.hsearch input { width: clamp(140px, 14vw, 220px); height: 44px; padding: 0 0 0 14px; border: 0; background: transparent; outline: 0; }
.hsearch:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.hsearch button { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; }
.mycar-btn { background: var(--asphalt); color: var(--on-asphalt); max-width: 230px; }
.mycar-btn:hover { background: var(--asphalt-3); }
.mycar-btn .ico { color: var(--road); }
.mycar-btn small { display: block; font-size: var(--s1); font-weight: 500; color: var(--on-asphalt-muted); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.mycar-btn .t { text-align: left; line-height: 1.15; }
.menu-btn { display: none; }
.mpanel { display: none; }

/* ---------- плиты-бейджи ---------- */
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; background: var(--asphalt); color: var(--on-asphalt); font-size: var(--s1); font-weight: 600; line-height: 1; }
.tag--y { background: var(--road); color: var(--ink); }
.tag--p { background: var(--panel); color: var(--ink); }
.fit { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px 0 8px; font-size: var(--s1); font-weight: 600; line-height: 1.1; }
.fit--yes { background: var(--asphalt); color: var(--on-asphalt); }
.fit--yes .ico { color: var(--road); }
.fit--no { background: var(--slab); color: var(--muted); }
.fit--no .ico { color: var(--muted); }

/* ---------- карточка товара ---------- */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--panel); min-width: 0; transition: transform .2s var(--ease), background-color .2s var(--ease); }
.card:hover { background: #f0f0ed; transform: translateY(-3px); }
.card-art { position: relative; aspect-ratio: 8 / 7; background: var(--plate); overflow: hidden; }
.card-art .art { width: 100%; height: 100%; transition: transform .4s var(--ease); }
.card:hover .card-art .art { transform: scale(1.04); }
.card-flags { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 2; }
.card-fit { position: absolute; left: 8px; bottom: 8px; z-index: 2; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.card-brand { font-size: var(--s2); color: var(--muted); font-weight: 600; line-height: 1.3; }
.card-title { font-size: var(--s2); font-weight: 600; line-height: 1.3; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-art-link { display: block; width: 100%; height: 100%; }
.card-params { font-size: var(--s2); color: var(--muted); line-height: 1.4; }
.card-foot { margin-top: auto; padding-top: 12px; display: grid; gap: 10px; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price { font-size: var(--s3); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.price-old { font-size: var(--s1); color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stock { margin-left: auto; font-size: var(--s2); font-weight: 500; color: var(--muted); white-space: nowrap; }
.stock--out { color: var(--ink); font-weight: 600; }


/* ---------- шапка страницы (для внутренних) ---------- */
.page-head { padding-block: clamp(28px, 4vw, 56px) clamp(20px, 2.4vw, 32px); }
.crumbs { font-size: var(--s2); color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 14px; }
.crumbs a { text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.crumbs a:hover { text-decoration: underline; }
.page-head h1 { max-width: 16em; font-size: clamp(2.4rem, 11vw, 7.5rem); }
.pd-info h1, .page-head.pd-head h1 { font-size: var(--s4); }
.pd-info .stock { margin: 0; white-space: normal; }
.page-head .lead { margin-top: 14px; color: var(--muted); }

/* ---------- чипы / поля ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; width: 100%; height: 100%; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--panel); font-weight: 500; transition: background-color .15s var(--ease), transform .15s var(--ease); white-space: nowrap; }
.chip:hover span { background: #f1f1ee; }
.chip input:checked + span { background: var(--asphalt); color: var(--on-asphalt); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.chip input:disabled + span { opacity: .5; cursor: not-allowed; }
.chip input:active + span { transform: translateY(1px); }
.chip small { font-size: var(--s1); font-weight: 500; opacity: .7; }
.field { display: grid; gap: 6px; }
.field > label, .field > .lab { font-size: var(--s1); font-weight: 600; }
.input, .select { width: 100%; min-height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 0; background: var(--panel); outline: 0; font-size: var(--s2); }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2316181a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:focus, .select:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: #b3261e; background-color: #f4e4e1; }
.err { color: #9c1f17; font-size: var(--s1); font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 10px 0 0; accent-color: var(--asphalt); }
.check span { padding-block: 10px; }
.qty { display: inline-flex; align-items: stretch; background: var(--panel); height: 48px; }
.qty button { width: 48px; border: 0; background: transparent; display: grid; place-items: center; transition: background-color .15s var(--ease); }
.qty button:hover { background: #f1f1ee; }
.qty button:disabled { opacity: .4; cursor: not-allowed; }
.qty output, .qty input { min-width: 44px; text-align: center; display: grid; place-items: center; font-weight: 600; font-variant-numeric: tabular-nums; border: 0; background: transparent; width: 52px; font-size: var(--s2); outline: 0; }

/* ---------- плита «подбор» (главный экран) ---------- */
.hero { position: relative; overflow: hidden; background: var(--ground); }
.hero-copy { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; padding-top: clamp(20px, 3vw, 44px); }
.hero h1 { max-width: 12.5em; }
.hero-copy .lead { color: var(--muted); font-size: var(--s2); max-width: 30em; }
.sw { position: relative; height: 620px; margin-top: clamp(20px, 2.4vw, 36px); color: var(--on-asphalt); }
.sw-wheel { position: absolute; left: 50%; top: 0; width: var(--D); height: var(--D); margin-left: calc(var(--D) / -2); }
.sw-wheel svg { width: 100%; height: 100%; animation: roll 260s linear infinite; }
@keyframes roll { to { transform: rotate(360deg); } }
.sw { --D: max(2100px, 150vw); }
.sw-in { position: relative; z-index: 2; max-width: 1060px; margin-inline: auto; padding: 138px var(--m) 0; text-align: center; }
.sw-tabs { display: inline-flex; gap: 4px; margin-bottom: 26px; }
.sw-tabs button { min-height: 44px; padding: 0 22px; border: 0; background: transparent; color: var(--on-asphalt-muted); font-weight: 600; font-size: var(--s2); position: relative; transition: color .15s var(--ease); }
.sw-tabs button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 5px; background: var(--road); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.sw-tabs button:hover { color: var(--on-asphalt); }
.sw-tabs button[aria-selected="true"] { color: var(--on-asphalt); }
.sw-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.sw-tabs button:focus-visible { outline-color: var(--road); }
.mk-row { display: flex; align-items: flex-start; justify-content: center; gap: .04em; font: 600 var(--s5)/1 var(--font-display); color: #d8d9d4; letter-spacing: -.01em; }
.mk { display: inline-flex; flex-direction: column; align-items: center; position: relative; }
.mk select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; text-align: center; text-align-last: center; padding: 0 .06em; margin: 0; min-height: 44px; cursor: pointer; width: calc(var(--n, 3) * .52em + .16em); outline: 0; transition: background-color .15s var(--ease), color .15s var(--ease); line-height: 1.04; }
.mk select option { font: 500 16px var(--font-text); color: var(--ink); background: var(--panel); }
.mk:hover select { background: var(--asphalt-2); }
.mk select:focus-visible { outline: 4px solid var(--road); outline-offset: 0; }
.mk::after { content: ""; width: .15em; height: .09em; margin-top: .02em; background: var(--road); clip-path: polygon(0 0, 100% 0, 50% 100%); pointer-events: none; }
.mk small { order: 3; margin-top: 10px; font: 500 var(--s1)/1.2 var(--font-text); color: var(--on-asphalt-muted); letter-spacing: 0; text-align: center; max-width: 9em; }
.mk-sep { color: var(--road); padding-inline: .02em; }
.mk-r { padding-top: 0; }
.sw-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 22px; }
.sw-ctl .chips { justify-content: center; }
.sw .chip span { background: var(--asphalt-2); color: var(--on-asphalt); }
.sw .chip:hover span { background: var(--asphalt-3); }
.sw .chip input:checked + span { background: var(--road); color: var(--ink); }
.sw .chip input:focus-visible + span { outline-color: var(--road); }
.sw-go { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.sw-note { font-size: var(--s1); color: var(--on-asphalt-muted); }
.sw-panel[hidden] { display: none; }

/* ---------- плитки категорий ---------- */
.cats { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cat { --plate: var(--panel); position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; padding: 20px; background: var(--panel); text-decoration: none; overflow: hidden; transition: background-color .2s var(--ease); }
.cat:hover { background: #f1f1ee; }
.cat:nth-child(1) { grid-column: span 6; grid-row: span 2; background: var(--slab); --plate: var(--slab); min-height: 560px; }
.cat:nth-child(1):hover { background: #cbcbc5; }
.cat:nth-child(2) { grid-column: span 3; }
.cat:nth-child(3) { grid-column: span 3; background: var(--road); --plate: var(--road); }
.cat:nth-child(3):hover { background: var(--road-press); }
.cat:nth-child(4) { grid-column: span 3; }
.cat:nth-child(5) { grid-column: span 3; }
.cat:nth-child(6) { grid-column: 1 / -1; min-height: 240px; }
.cat h3 { font: 600 var(--s3)/1.1 var(--font-display); text-transform: uppercase; position: relative; z-index: 2; }
.cat:nth-child(1) h3 { font-size: var(--s4); }
.cat p { font-size: var(--s1); margin-top: 6px; position: relative; z-index: 2; max-width: 16em; }
.cat-art { position: absolute; right: -2%; bottom: -6%; width: 64%; aspect-ratio: 1; transition: transform .5s var(--ease); }
.cat:nth-child(1) .cat-art { width: 70%; right: 3%; bottom: -3%; }
.cat:nth-child(6) .cat-art { width: 26%; right: 4%; bottom: -26%; }
.cat:hover .cat-art { transform: scale(1.05) rotate(-2deg); }
.cat-art .art { width: 100%; height: 100%; }
.cat .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; position: relative; z-index: 2; }

/* ---------- «Моё авто» на главной ---------- */
.mycar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); min-height: 640px; }
.mycar-stage { position: relative; background: var(--plate); display: grid; place-items: center; padding: 40px; min-height: 420px; overflow: hidden; }
.mycar-stage .art { width: 100%; }
#stageArt { width: min(100%, 540px); }
.mycar-stage .fit { position: absolute; left: 20px; top: 20px; font-size: var(--s2); min-height: 44px; padding-inline: 16px; }
.mycar-stage .swap { position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.mycar-text { background: var(--panel); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(24px, 3vw, 48px); }
.mycar-text h2 { max-width: 11em; }
.mycar-text p { max-width: 32em; }
.mycar-steps { display: grid; gap: 12px; padding-left: 1.4em; list-style: decimal; max-width: 32em; }
.mycar-steps li { padding-left: 6px; }
.mycar-steps li::marker { font-weight: 700; }
.mycar-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }

/* ---------- акции-образцы ---------- */
.deals { display: grid; gap: var(--gap); grid-template-columns: 1.3fr 1fr 1fr; }
.deal { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 400px; padding: clamp(20px, 2.4vw, 32px); background: var(--panel); text-decoration: none; overflow: hidden; transition: background-color .2s var(--ease); }
.deal:hover { background: #f1f1ee; }
.deal--y { background: var(--road); }
.deal--y:hover { background: var(--road-press); }
.deal--k { background: var(--asphalt); color: var(--on-asphalt); }
.deal--k:hover { background: var(--asphalt-2); }
.deal .big { font: 700 var(--s5)/.88 var(--font-display); letter-spacing: -.02em; }
.deal h3 { font: 600 var(--s3)/1.15 var(--font-display); text-transform: uppercase; max-width: 14em; }
.deal p { max-width: 22em; position: relative; z-index: 2; }
.deal .art-slot { position: absolute; right: -6%; top: -6%; width: 44%; z-index: 0; transition: transform .5s var(--ease); }
.deal:hover .art-slot { transform: scale(1.05); }
.deal > *:not(.art-slot) { position: relative; z-index: 1; }
.deal--y { --plate: var(--road); }
.deal--k { --plate: var(--asphalt); }
.sample-note { font-size: var(--s2); color: var(--muted); margin-top: 16px; }

/* ---------- прайс монтажа (меню с выносками) ---------- */
.menu-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); }
.menu-side { background: var(--asphalt); color: var(--on-asphalt); padding: clamp(24px, 3vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.menu-side p { color: var(--on-asphalt-muted); max-width: 26em; }
.menu-side .truck { display: flex; gap: 14px; align-items: center; color: var(--road); }
.menu-sheet { background: var(--panel); padding: clamp(24px, 3vw, 48px); display: grid; gap: 32px; align-content: start; }
.menu-sheet h3 { font: 600 var(--s3)/1.1 var(--font-display); text-transform: uppercase; margin-bottom: 12px; }
.leader { display: flex; align-items: baseline; gap: 10px; padding-block: 8px; }
.leader .nm { font-weight: 500; }
.leader .dots { flex: 1; min-width: 20px; align-self: flex-end; height: 0; margin-bottom: .45em; border-bottom: 4px dotted var(--slab); }
.leader .vl { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.leader-note { font-size: var(--s1); color: var(--muted); max-width: 34em; margin-top: -4px; }

/* ---------- отзывы ---------- */
.rev { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); }
.rev-main { background: var(--panel); padding: clamp(24px, 3.4vw, 56px); display: grid; gap: 22px; align-content: start; }
.rev-main .opening { font-size: var(--s3); font-weight: 600; line-height: 1.3; max-width: 26em; }
.rev-main p { max-width: 36em; }
.rev-who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-weight: 600; margin-top: 8px; }
.rev-side { display: grid; gap: var(--gap); }
.rev-card { background: var(--slab); padding: clamp(20px, 2.4vw, 36px); display: grid; gap: 12px; align-content: start; }
.rev-card p { font-weight: 500; }

/* ---------- вопросы-ответы (читаемый текст) ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 32px var(--m); }
.faq h2 { position: sticky; top: calc(var(--hh) + 24px); align-self: start; }
.faq-text { columns: 2; column-gap: 56px; }
.faq-text p { break-inside: avoid; margin-bottom: 20px; max-width: 38em; }
.faq-text b { font-weight: 600; }

/* ---------- подвал-«занавес» ---------- */
.foot { position: relative; background: var(--asphalt); color: var(--on-asphalt); overflow: hidden; }
.foot-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 32px var(--m); padding-top: clamp(40px, 6vw, 88px); }
.foot h2 { font-size: clamp(2.4rem, 5vw, 5rem); line-height: .95; max-width: 11em; }
.foot-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.foot-links { display: grid; gap: 2px; align-content: start; }
.foot-links a { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-weight: 500; transition: color .15s var(--ease), transform .15s var(--ease); }
.foot-links a:hover { color: var(--road); transform: translateX(4px); }
.foot-links .ico { color: var(--road); }
.foot-links p { color: var(--on-asphalt-muted); font-size: var(--s2); margin-top: 10px; }
.foot-legal { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: clamp(28px, 4vw, 64px); font-size: var(--s2); color: var(--on-asphalt-muted); }
.foot-legal a { text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.foot-legal a:hover { color: var(--on-asphalt); text-decoration: underline; }
.wordmark { position: relative; z-index: 1; display: block; white-space: nowrap; font-weight: 700; font-size: 23vw; line-height: .8; letter-spacing: -.02em; color: var(--road); margin: 0 0 -.2em var(--m); user-select: none; }

/* внутренний (простой) подвал */
.foot--simple .foot-in { padding-top: clamp(32px, 4vw, 56px); }
.foot--simple h2 { font-size: var(--s4); }
.foot--simple .wordmark { font-size: 21vw; margin-top: 12px; }

/* ---------- каталог ---------- */
.cat-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.cat-layout .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1700px) { .cat-layout .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.filters .chip span, .sheet-body .chip span { background: var(--plate); }
.filters .chip:hover span, .sheet-body .chip:hover span { background: #e9eae5; }
.filters .chip input:checked + span, .sheet-body .chip input:checked + span { background: var(--asphalt); }
.filters .btn--p, .sheet-body .btn--p { background: var(--slab); }
.filters .btn--p:hover, .sheet-body .btn--p:hover { background: #b7b7b1; }
.filters { position: sticky; top: calc(var(--hh) + 10px); background: var(--panel); padding: 20px; display: grid; gap: 22px; max-height: calc(100svh - var(--hh) - 20px); overflow: auto; }
.fgroup { display: grid; gap: 10px; }
.fgroup h3 { font: 600 var(--s2)/1.2 var(--font-text); }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.price-inputs .input { min-height: 44px; font-variant-numeric: tabular-nums; }
.fcar { display: grid; gap: 8px; padding: 12px; background: var(--plate); }
.fcar p { font-size: var(--s2); color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; background: var(--panel); margin-bottom: var(--gap); }
.toolbar .found { font-weight: 600; margin-right: auto; }
.toolbar .select, .toolbar .input { min-height: 44px; width: auto; }
.toolbar .tsearch { min-width: 220px; flex: 1 1 220px; max-width: 320px; }
.catbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--gap); }
.catbar .chip span { background: var(--panel); }
.act { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--gap); }
.act:empty { display: none; }
.act button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px 0 12px; border: 0; background: var(--road); font-weight: 600; font-size: var(--s1); transition: background-color .15s var(--ease); }
.act button:hover { background: var(--road-press); }
.empty { background: var(--panel); padding: clamp(32px, 6vw, 80px); display: grid; gap: 18px; justify-items: start; grid-column: 1 / -1; }
.empty .big { font: 600 var(--s4)/1 var(--font-display); text-transform: uppercase; max-width: 12em; }
.filt-open { display: none; }
.sheet { position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; padding: 0; border: 0; background: var(--ground); color: var(--ink); }
.sheet::backdrop { background: rgba(22, 24, 27, .6); }
.sheet-in { display: flex; flex-direction: column; height: 100%; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; padding: 8px var(--m); min-height: 64px; background: var(--asphalt); color: var(--on-asphalt); }
.sheet-body { flex: 1; overflow: auto; padding: var(--m); display: grid; gap: 22px; align-content: start; }
.sheet-bottom { padding: 12px var(--m); background: var(--panel); display: grid; grid-template-columns: 1fr 2fr; gap: 6px; }

/* ---------- карточка товара (страница) ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; }
.gal { display: grid; gap: var(--gap); }
.gal-main { position: relative; background: var(--plate); aspect-ratio: 1; max-height: 720px; width: 100%; display: grid; place-items: center; overflow: hidden; }
.gal-main .art { width: 100%; height: 100%; }
.gal-main figcaption:empty { display: none; }
.gal-main figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--asphalt); color: var(--on-asphalt); padding: 6px 12px; font-size: var(--s1); font-weight: 600; }
.gal-main .card-flags { left: 16px; top: 16px; }
.gal-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.gal-thumbs button { position: relative; background: var(--plate); border: 0; padding: 0; aspect-ratio: 1.3; overflow: hidden; transition: background-color .15s var(--ease); }
.gal-thumbs button:hover { background: #e8e9e4; }
.gal-thumbs button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--road); }
.gal-thumbs .art { width: 100%; height: 100%; }
.pd-info { position: sticky; top: calc(var(--hh) + 10px); background: var(--panel); padding: clamp(20px, 2.4vw, 36px); display: grid; gap: 18px; }
.pd-info h1 { font-size: var(--s4); line-height: 1; }
.pd-brand { font-weight: 600; color: var(--muted); }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.pd-price .price { font: 600 var(--s4)/1 var(--font-text); letter-spacing: -.02em; }
.pd-fit { display: grid; gap: 4px; padding: 14px 16px; background: var(--plate); }
.pd-fit--yes { background: var(--asphalt); color: var(--on-asphalt); }
.pd-fit--yes .ico { color: var(--road); }
.pd-fit--no { background: var(--slab); }
.pd-fit b { display: inline-flex; align-items: center; gap: 8px; }
.pd-fit p { font-size: var(--s1); opacity: .85; }
.pd-fit .btn { justify-self: start; margin-top: 6px; }
.pd-buy { display: grid; grid-template-columns: auto 1fr; gap: var(--gap); }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: start; padding: 12px 14px; background: var(--plate); cursor: pointer; transition: background-color .15s var(--ease); }
.opt:hover { background: #e8e9e4; }
.opt input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--asphalt); }
.opt b { font-weight: 600; }
.opt .price-add { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt small { grid-column: 2 / -1; color: var(--muted); font-size: var(--s1); }
.pd-contact { font-size: var(--s1); color: var(--muted); }
.pd-contact a { font-weight: 600; color: var(--ink); }
.tabs { margin-top: var(--gap); background: var(--panel); }
.tablist { display: flex; flex-wrap: wrap; gap: 0; background: var(--slab); }
.tablist button { min-height: 52px; padding: 0 clamp(16px, 2.4vw, 32px); border: 0; background: transparent; font-weight: 600; position: relative; transition: background-color .15s var(--ease); }
.tablist button:hover { background: #cbcbc5; }
.tablist button[aria-selected="true"] { background: var(--panel); }
.tablist button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--road); }
.tabpanel { padding: clamp(20px, 3vw, 44px); display: grid; gap: 16px; }
.tabpanel[hidden] { display: none; }
.tabpanel p { max-width: 44em; }
.spec { width: 100%; max-width: 760px; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 12px 16px; vertical-align: top; }
.spec tr:nth-child(odd) { background: var(--plate); }
.spec th { font-weight: 500; color: var(--muted); width: 46%; }
.spec td { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.dl-list { display: grid; gap: 12px; max-width: 44em; }
.dl-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.dl-list .ico { color: var(--ink); margin-top: 2px; }

/* ---------- подбор шин ---------- */
.tyres-stage { background: var(--ground); }
.read { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); }
.read-fig { background: var(--asphalt); color: var(--on-asphalt); padding: clamp(20px, 3vw, 48px); display: grid; gap: 20px; align-content: center; }
.read-fig svg { width: 100%; height: auto; }
.read-list { background: var(--panel); padding: clamp(20px, 3vw, 44px); display: grid; gap: 14px; align-content: start; }
.read-list li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: baseline; }
.read-list b { font: 600 var(--s3)/1 var(--font-display); }
.where { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: var(--gap); }
.where div { background: var(--panel); padding: 20px; display: grid; gap: 8px; align-content: start; }
.where h3 { font-size: var(--s2); }
.res-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: var(--panel); padding: 12px 16px; margin-bottom: var(--gap); }
.res-bar .found { font-weight: 600; margin-right: auto; }

/* ---------- корзина ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap); align-items: start; }
.lines { display: grid; gap: var(--gap); }
.line { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 8px 20px; background: var(--panel); padding: 14px; align-items: center; }
.line-art { background: var(--plate); aspect-ratio: 1; }
.line-art .art { width: 100%; height: 100%; }
.line-main { display: grid; gap: 6px; min-width: 0; }
.line-main a { font-weight: 600; text-decoration: none; }
.line-main a:hover { text-decoration: underline; }
.line-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: var(--s1); font-weight: 500; }
.line-opt input { width: 22px; height: 22px; accent-color: var(--asphalt); }
.line-side { display: grid; gap: 8px; justify-items: end; text-align: right; }
.line-sum { font-weight: 600; font-size: var(--s3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rm { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; background: transparent; font-size: var(--s1); font-weight: 600; color: var(--muted); transition: background-color .15s var(--ease), color .15s var(--ease); }
.rm:hover { background: var(--slab); color: var(--ink); }
.sum { position: sticky; top: calc(var(--hh) + 10px); background: var(--asphalt); color: var(--on-asphalt); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 18px; }
.sum h2, .sum h3 { font: 600 var(--s3)/1.1 var(--font-display); text-transform: uppercase; }
.sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sum-row span:first-child { color: var(--on-asphalt-muted); }
.sum-row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 14px; background: none; }
.sum-total span:last-child { font: 600 var(--s4)/1 var(--font-text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.promo { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.promo .input { background: var(--asphalt-2); border-color: var(--asphalt-3); color: var(--on-asphalt); }
.promo .input:focus { outline-color: var(--road); }
.promo-msg { font-size: var(--s1); min-height: 1.2em; }
.promo-msg.ok { color: var(--road); font-weight: 600; }
.promo-msg.bad { color: #ff9b8f; font-weight: 600; }
.road-prog { display: grid; gap: 10px; }
.road-prog p { font-size: var(--s1); color: var(--on-asphalt-muted); }
.road-prog p b { color: var(--on-asphalt); font-weight: 600; }
.road { position: relative; height: 22px; background: var(--asphalt-2); overflow: hidden; }
.road i { position: absolute; left: 0; top: 7px; height: 8px; width: var(--p, 0%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='8'%3E%3Crect width='18' height='8' fill='%23f6c60c'/%3E%3C/svg%3E") repeat-x; transition: width .5s var(--ease); }
.cart-empty { background: var(--panel); padding: clamp(32px, 6vw, 96px); display: grid; gap: 18px; justify-items: start; }
.cart-empty .art { width: min(260px, 60%); }

/* ---------- оформление ---------- */
.co-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap); align-items: start; }
.co-form { display: grid; gap: var(--gap); }
.co-block { background: var(--panel); padding: clamp(20px, 2.6vw, 36px); display: grid; gap: 16px; }
.co-block h2 { font: 600 var(--s3)/1.1 var(--font-display); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opts { display: grid; gap: 6px; }
.radio { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 2px 14px; align-items: start; padding: 14px 16px; background: var(--plate); cursor: pointer; transition: background-color .15s var(--ease); }
.radio:hover { background: #e8e9e4; }
.radio input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--asphalt); }
.radio b { font-weight: 600; }
.radio .pr { font-weight: 600; white-space: nowrap; }
.radio small { grid-column: 2 / -1; color: var(--muted); font-size: var(--s1); }
.radio:has(input:checked) { background: var(--asphalt); color: var(--on-asphalt); }
.radio:has(input:checked) small { color: var(--on-asphalt-muted); }
.radio:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.slots { display: grid; gap: 14px; }
.slots[hidden] { display: none; }
.slot-days, .slot-times { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { position: relative; display: inline-flex; }
.slot input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot span { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; min-height: 52px; padding: 4px 12px; background: var(--plate); font-weight: 600; line-height: 1.15; transition: background-color .15s var(--ease); }
.slot span small { font-weight: 500; color: var(--muted); font-size: var(--s1); }
.slot:hover span { background: #e8e9e4; }
.slot input:checked + span { background: var(--road); color: var(--ink); }
.slot input:checked + span small { color: var(--ink); }
.slot input:disabled + span { background: var(--slab); color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.slot input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.co-sum .mini { display: grid; gap: 10px; }
.mini li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.mini .line-art { width: 52px; }
.mini span:nth-child(2) { font-size: var(--s1); line-height: 1.3; }
.mini span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--s1); }
.success { background: var(--panel); padding: clamp(28px, 5vw, 80px); display: grid; gap: 22px; justify-items: start; }
.success .ordno { font: 700 var(--s5)/.9 var(--font-display); letter-spacing: -.01em; background: var(--road); padding: .06em .16em .02em; }
.success ul { display: grid; gap: 8px; max-width: 40em; }
.success li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.success .ico { margin-top: 3px; }
.demo-note { background: var(--plate); padding: 12px 16px; font-size: var(--s1); max-width: 46em; }

/* ---------- ящик корзины и «Моё авто» ---------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; left: auto; margin: 0; width: min(440px, 100%); max-width: none; height: 100%; max-height: none; padding: 0; border: 0; background: var(--ground); color: var(--ink); }
.drawer::backdrop { background: rgba(22, 24, 27, .55); }
.drawer[open] { animation: slide-in .28s var(--ease); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-in { display: flex; flex-direction: column; height: 100%; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 8px 0 20px; background: var(--asphalt); color: var(--on-asphalt); }
.drawer-top h2 { font: 600 var(--s3)/1 var(--font-display); }
.drawer-body { flex: 1; overflow: auto; padding: var(--gap); display: grid; gap: var(--gap); align-content: start; }
.drawer-bottom { display: grid; gap: 10px; padding: 16px 20px 20px; background: var(--panel); }
.drawer-bottom:empty { display: none; }
.drawer-bottom .sum-row span:first-child, .drawer-bottom .road-prog p { color: var(--muted); }
.drawer-bottom .road-prog p b { color: var(--ink); }
.drawer-bottom .road { background: var(--asphalt); }
.dline { display: grid; grid-template-columns: 76px 1fr; gap: 6px 14px; background: var(--panel); padding: 10px; }
.dline .line-art { aspect-ratio: 1; }
.dline-main { display: grid; gap: 4px; min-width: 0; font-size: var(--s1); }
.dline-main a { font-weight: 600; font-size: var(--s2); line-height: 1.25; text-decoration: none; }
.dline-bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dline .qty { height: 44px; }
.dline .qty button { width: 44px; }
.dline .qty input { width: 40px; }
.dline-fit { font-size: var(--s1); color: var(--muted); display: flex; align-items: center; gap: 8px; min-height: 36px; }
.dline-fit input { width: 20px; height: 20px; accent-color: var(--asphalt); }
.d-empty { padding: 28px 20px; background: var(--panel); display: grid; gap: 14px; justify-items: start; }
.cardlg { position: fixed; inset: 0; margin: auto; width: min(640px, calc(100% - 24px)); max-width: none; max-height: calc(100svh - 24px); height: fit-content; padding: 0; border: 0; background: var(--ground); color: var(--ink); overflow: auto; }
.cardlg::backdrop { background: rgba(22, 24, 27, .6); }
.cardlg-in { display: grid; }
.cardlg-top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 8px 0 24px; background: var(--asphalt); color: var(--on-asphalt); }
.cardlg-top h2 { font: 600 var(--s3)/1 var(--font-display); }
.cardlg-body { padding: var(--gap); display: grid; gap: var(--gap); }
.cardlg-body .co-block { padding: 20px; }
.size-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cardlg-bot { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); padding: 0 var(--gap) var(--gap); }
.hint { font-size: var(--s2); color: var(--muted); }

/* ---------- уведомление ---------- */
.toast { position: fixed; left: 50%; bottom: 18px; z-index: 90; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px); padding: 8px 8px 8px 18px; background: var(--asphalt); color: var(--on-asphalt); font-weight: 500; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.toast.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast .ico { color: var(--road); }
.toast a, .toast button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--road); color: var(--ink); font-weight: 600; text-decoration: none; border: 0; }

/* ---------- 404 ---------- */
.nf { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap); min-height: 70svh; }
.nf-l { background: var(--panel); padding: clamp(24px, 4vw, 64px); display: grid; gap: 22px; align-content: center; justify-items: start; }
.nf-l .big { font: 700 clamp(7rem, 22vw, 18rem)/.8 var(--font-display); letter-spacing: -.02em; }
.nf-r { --plate: var(--road); overflow: hidden; background: var(--road); display: grid; place-items: center; padding: 32px; }
.nf-r .art { width: min(380px, 100%); animation: roll 48s linear infinite; }

/* ---------- появление ---------- */
.js .rv { opacity: 0; transform: translateY(26px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity .6s var(--ease) var(--d, 0s), transform .6s var(--ease) var(--d, 0s); }
.js .hero .rv { opacity: 0; transform: translateY(18px); animation: rise .7s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* ---------- адаптив ---------- */
@media (max-width: 1280px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav a { padding: 0 9px; }
  .hsearch { display: none; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr-in { gap: 2px; }
  .mycar-btn { margin-left: auto; }
  .mpanel { position: fixed; left: 0; right: 0; top: var(--hh); bottom: 0; z-index: 49; background: var(--ground); overflow: auto; padding: 12px var(--m) 32px; display: none; }
  .mpanel.on { display: block; }
  .mpanel form { display: flex; background: var(--panel); margin-bottom: 8px; }
  .mpanel form input { flex: 1; min-height: 52px; padding: 0 16px; border: 0; background: transparent; outline: 0; font-size: var(--s2); }
  .mpanel form button { width: 52px; border: 0; background: transparent; display: grid; place-items: center; }
  .mpanel a.ml { display: flex; align-items: center; min-height: 56px; padding: 0 16px; margin-bottom: 4px; background: var(--panel); font: 600 var(--s3) var(--font-display); text-transform: uppercase; text-decoration: none; }
  .cat-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filt-open { display: inline-flex; }
  .pd, .cart-layout, .co-layout, .read, .menu-wrap, .rev, .mycar, .nf { grid-template-columns: 1fr; }
  .pd-info, .sum { position: static; }
  .gal-main { aspect-ratio: 4 / 3; max-height: none; }
  .deals { grid-template-columns: 1fr 1fr; }
  .deal:first-child { grid-column: 1 / -1; }
  .faq { grid-template-columns: 1fr; }
  .faq h2 { position: static; }
  .cats { grid-template-columns: repeat(6, 1fr); }
  .cat:nth-child(n) { grid-column: span 3; min-height: 280px; grid-row: auto; }
  .cat:nth-child(1) { grid-column: span 6; min-height: 380px; }
  .cat:nth-child(6) { grid-column: span 6; min-height: 240px; }
  .hero-copy { grid-template-columns: 1fr; }
  .mycar-stage { order: 2; }
}
@media (max-width: 760px) {
  :root { --hh: 60px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-body { padding: 10px 10px 12px; }
  .card-foot .stock { display: none; }
  .card .btn { min-height: 46px; padding: 0 10px; }
  .logo span { font-size: 1.3rem; }
  .mycar-btn small { display: none; }
  .mycar-btn { padding: 0 10px; }
  .mycar-btn .t span.l { display: none; }
  .sw { height: 640px; --D: max(160vw, 700px); }
  .sw-in { padding-top: 70px; }
  .sw-tabs { margin-bottom: 14px; }
  .sw-tabs button { padding: 0 14px; }
  .mk small { max-width: 6em; font-size: var(--s1); }
  .sw-ctl { gap: 8px; }
  .sw-go { flex-direction: column; gap: 10px; }
  .sw-go .btn { width: 100%; }
  .deals { grid-template-columns: 1fr; }
  .deal { min-height: 300px; }
  .faq-text { columns: 1; }
  .foot-in { grid-template-columns: 1fr; }
  .wordmark { font-size: 31vw; margin-top: 8px; }
  .row2, .size-row, .where { grid-template-columns: 1fr; }
  .size-row { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: 1fr 1fr; }
  .cat:nth-child(n) { grid-column: span 1; min-height: 220px; padding: 14px; }
  .cat:nth-child(1), .cat:nth-child(6) { grid-column: span 2; }
  .cat:nth-child(1) { min-height: 320px; }
  .cat-art { width: 70%; }
  .line { grid-template-columns: 84px minmax(0, 1fr); }
  .line-side { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; justify-items: stretch; align-items: center; text-align: left; }
  .line-sum { text-align: right; }
  .read-list li { grid-template-columns: 72px 1fr; }
  .toolbar .tsearch { max-width: none; }
  .mycar-actions { grid-template-columns: 1fr; }
  .pd-buy { grid-template-columns: 1fr; }
  .tablist button { flex: 1 1 auto; padding: 0 12px; }
  .nf-l .big { font-size: 7.5rem; }
}
@media (max-width: 400px) {
  .logo b { height: 32px; font-size: 1.15rem; }
  .logo span { font-size: 1.15rem; }
  .mycar-btn .t { display: none; }
}

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sw-wheel svg, .nf-r .art { animation: none; }
  .js .rv, .js .hero .rv { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* ---------- маркировка (подбор шин) ---------- */
.segs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px var(--gap); }
.seg { display: grid; gap: 14px; align-content: start; }
.seg b { display: block; font: 600 clamp(3.4rem, 8vw, 7rem)/.9 var(--font-display); color: #d8d9d4; }
.seg b::after { content: ""; display: block; height: 8px; margin-top: 12px; background: var(--road); }
.seg span { color: var(--on-asphalt-muted); font-size: var(--s2); max-width: 12em; }
.sw--solo { height: 560px; }
.sw--solo .sw-in { padding-top: 116px; }
@media (max-width: 1100px) { .segs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .segs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sw--solo { height: 600px; } .sw--solo .sw-in { padding-top: 64px; } }

.js .wordmark.rv { transform: translateY(40%); }
.js .wordmark.rv.in { transform: none; }
.more-row { margin-top: var(--gap); }
.foot .lead { color: var(--on-asphalt-muted); font-size: var(--s2); max-width: 28em; }

.cardlg .chip span, .co-block .chip span { background: var(--plate); }
.cardlg .chip:hover span, .co-block .chip:hover span { background: #e9eae5; }
.cardlg .chip input:checked + span, .co-block .chip input:checked + span { background: var(--asphalt); }
.promo-msg { margin-top: 8px; }
@media (max-width: 1100px) {
  .mycar-stage .swap { position: static; margin-top: 16px; width: 100%; }
}
@media (max-width: 760px) {
  .cat h3 { font-size: 1.125rem; }
  .cat:nth-child(1) h3 { font-size: var(--s4); }
  .cat:nth-child(6) .cat-art { width: 46%; right: 4%; bottom: -10%; }
}

.card-title a { display: flex; align-items: center; min-height: 44px; }
.crumbs a { min-height: 44px; }
.foot-legal a { min-height: 44px; }
.line-main > a, .dline-main > a { display: flex; align-items: center; min-height: 44px; }
.qty input { height: 48px; }
.dline .qty input { height: 44px; }
.dline-fit { min-height: 44px; }

.msel { display: none; }
@media (max-width: 760px) {
  .msel { display: grid; gap: 6px; margin-bottom: var(--gap); }
  .msel .select[hidden] { display: none; }
  #catBar, #subBar { display: none; }
  .card .fl { display: none; }
}
.small { font-size: var(--s2); line-height: 1.45; }
.perks { display: grid; gap: 18px; }
.perks li { display: grid; gap: 4px; }
.perks b { font: 600 var(--s3)/1.15 var(--font-display); text-transform: uppercase; color: var(--on-asphalt); }
.perks span { color: var(--on-asphalt-muted); max-width: 26em; }
.menu-side .truck .ico { color: var(--road); flex: none; }

/* WebKit: проценты высоты внутри блоков с aspect-ratio ненадёжны, поэтому рисунки позиционируются абсолютно */
.card-art, .gal-main, .gal-thumbs button, .line-art, .cat-art { position: relative; }
.cat-art { position: absolute; }
.card-art-link { position: absolute; inset: 0; width: auto; height: auto; }
.card-art .art, .gal-thumbs .art, .line-art .art, .cat-art .art { position: absolute; inset: 0; width: 100%; height: 100%; }
#galArt { position: absolute; inset: 0; }
.gal-main .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.line-art .art { width: 100%; height: 100%; }
.crumbs { align-items: center; }
.menu-side > div:first-child { gap: 40px !important; }
@media (min-width: 1101px) and (max-width: 1280px) { .cat-layout .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cat-layout .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .line .rm-t { display: none; } .line .rm { min-width: 44px; justify-content: center; } }

/* ---------- фотографии товаров ---------- */
img.art { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-art img.art, .gal-thumbs img.art, .line-art img.art, .cat-art img.art, .gal-main img.art { position: absolute; inset: 0; }
img.ph-l { mix-blend-mode: multiply; }
.spec-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.scheme { background: var(--plate); padding: 12px; display: grid; gap: 8px; }
.scheme + .scheme { grid-column: 2; }
.scheme figcaption { font-size: var(--s2); font-weight: 600; }
.spec-wrap .spec { grid-row: span 3; }
@media (max-width: 1100px) { .spec-wrap { grid-template-columns: 1fr; } .scheme + .scheme { grid-column: auto; } .spec-wrap .spec { grid-row: auto; } }
.cat { padding-bottom: 0; }
.cat-art { left: 0; right: 0; bottom: 0; top: auto; width: auto !important; height: 58%; aspect-ratio: auto; overflow: hidden; }
.cat:nth-child(1) .cat-art { height: 64%; }
.cat:nth-child(6) .cat-art { left: auto; top: 0; width: 42% !important; height: 100%; }
.cat:hover .cat-art { transform: none; }
.cat:hover .cat-art img { transform: scale(1.04); }
.cat-art img { transition: transform .5s var(--ease); }
.deal .art-slot { right: 0; top: 0; bottom: 0; width: 42%; }
.deal .art-slot img { position: absolute; inset: 0; }
.nf-r img.art { position: static; animation: none; width: min(420px, 100%); height: auto; aspect-ratio: 1; }
.mycar-stage img.art { position: static; width: 100%; height: auto; aspect-ratio: 1; }
.mycar-stage { place-items: center; }

/* ---------- страница «Фото и лицензии» ---------- */
.credits { display: grid; gap: var(--gap); }
.credit { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; background: var(--panel); padding: 14px; align-items: start; }
.credit .line-art { width: 160px; }
.credit dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 28px; margin: 0; }
.credit dt { font-size: var(--s1); color: var(--muted); font-weight: 600; }
.credit dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) { .credit { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; } .credit .line-art { width: 96px; } }

.seasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.season { background: var(--panel); display: grid; align-content: start; }
.season img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.season div { padding: 16px 18px 20px; display: grid; gap: 8px; }
@media (max-width: 760px) { .seasons { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .gal-main { aspect-ratio: 16 / 10; } }
#nfHits { margin-bottom: var(--sec); }
