/* =========================================================
   Tuning Express — оформление сайта
   Цвета и шрифты — в :root (позже будут меняться из админки)
   ========================================================= */
:root {
  --bg: #05070a; --bg2: #0b1015; --card: #10161d; --line: #1f2c38;
  --text: #eaf2f7; --muted: #a3b4c3;
  --acc: #39ff88; --acc2: #22d3ee; --on-acc: #03140a; --red: #ff2a3c;
  --glow: 0 0 18px rgba(57,255,136,.45);
  --font: 'Exo 2', system-ui, sans-serif;
}

/* ---------- БАЗА ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0; color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55;
  background-color: var(--bg);
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.018) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.018) 75%),
    linear-gradient(45deg, rgba(255,255,255,.018) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.018) 75%);
  background-size: 8px 8px; background-position: 0 0, 4px 4px;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc); }
img, svg { display: block; max-width: 100%; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--acc2); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--acc); color: var(--on-acc); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 8px; color: var(--on-acc); }
h1, h2, h3, .h3 { font-family: var(--font); font-weight: 900; font-style: italic; letter-spacing: .01em; line-height: 1.12; margin: 0; }
.section { padding: 40px 0; }
.icon { width: 22px; height: 22px; flex: none; }

.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: clamp(22px, 5vw, 32px); text-transform: uppercase; }
.section-title::before { content: ""; width: 26px; height: 8px; background: var(--acc); transform: skewX(-30deg); box-shadow: var(--glow); flex: none; }
.section-title::after { content: "»»"; color: var(--acc); opacity: .5; font-size: .8em; letter-spacing: -.1em; }

/* ---------- КНОПКИ ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border: 0; cursor: pointer; text-align: center;
  background: var(--acc); color: var(--on-acc); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .05em;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: transform .15s, filter .15s;
}
.btn:hover { color: var(--on-acc); filter: brightness(1.12) drop-shadow(0 0 10px var(--acc)); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--acc); }
.btn--ghost:hover { color: var(--acc); }
.btn--big { min-height: 54px; font-size: 17px; flex: 1; }
.btn--wide { width: 100%; }
.btn.is-added { background: var(--acc2); }

/* ---------- ВЕРХНЯЯ ПОЛОСА ---------- */
.topbar { background: #000; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; }
.topbar nav { display: none; gap: 20px; }
.topbar .tb-phone { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.topbar .tb-msg { display: flex; gap: 6px; }
.topbar .tb-msg a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 20px; font-size: 13px; }

/* ---------- ШАПКА ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(5,7,10,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--acc), transparent); opacity: .6; }
.header .wrap { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; border-radius: 8px; flex: none; }
.icon-btn:hover { background: var(--card); color: var(--acc); }
.badge-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--acc); color: var(--on-acc); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.badge-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.4); } }

.logo { display: inline-flex; align-items: center; gap: 8px; font-style: italic; font-weight: 900; line-height: .9; white-space: nowrap; }
.logo:hover { color: var(--text); }
.logo .tacho { display: flex; gap: 3px; align-items: flex-end; height: 26px; }
.logo .tacho i { width: 5px; background: var(--muted); transform: skewX(-20deg); }
.logo .tacho i:nth-child(1) { height: 9px; } .logo .tacho i:nth-child(2) { height: 15px; } .logo .tacho i:nth-child(3) { height: 21px; }
.logo .tacho i:nth-child(4) { height: 26px; background: var(--red); box-shadow: 0 0 10px var(--red); }
.logo .t1 { display: block; font-size: 12px; letter-spacing: .28em; color: var(--muted); }
.logo .t2 { display: block; font-size: 25px; letter-spacing: .02em; color: var(--acc); text-shadow: var(--glow); }

.header .actions { margin-left: auto; display: flex; gap: 2px; }
.search { display: flex; flex: 1; }
.search input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; }
.search input::placeholder { color: var(--muted); }
.search button { width: 54px; border: 0; background: var(--acc); color: var(--on-acc); border-radius: 0 8px 8px 0; cursor: pointer; display: grid; place-items: center; }
.header > .wrap > .search { display: none; }
.search-mobile { padding: 0 0 12px; }

.catnav { display: none; background: var(--bg2); border-bottom: 1px solid var(--line); }
.catnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav a { display: block; padding: 12px 12px; font-weight: 700; font-style: italic; font-size: 14px; text-transform: uppercase; white-space: nowrap; letter-spacing: .03em; }
.catnav li:first-child a { background: var(--acc); color: var(--on-acc); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding: 12px 22px; }
.hot { color: var(--red) !important; }

.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.open { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.drawer .panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: var(--bg2); padding: 16px; overflow-y: auto; border-right: 2px solid var(--acc); }
.drawer .panel-head { display: flex; justify-content: space-between; align-items: center; }
.drawer .panel h3 { font-size: 14px; color: var(--muted); text-transform: uppercase; margin: 20px 0 8px; }
.drawer .panel > a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }

/* ---------- «ХЛЕБНЫЕ КРОШКИ» И ЗАГОЛОВОК ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 14px 0 6px; font-size: 13px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "›"; margin: 0 8px; color: var(--acc); }
.crumbs a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--text); }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 6px 0 18px; }
.page-head h1 { font-size: clamp(26px, 6vw, 40px); text-transform: uppercase; }
.page-head .count { color: var(--muted); }
.page-head .count b { color: var(--acc); }

/* ---------- ГЛАВНЫЙ БАННЕР ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 50% at 70% 35%, rgba(34,211,238,.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 10%, rgba(57,255,136,.10), transparent 70%),
    linear-gradient(180deg, #03060a 0%, #071019 55%, #04070a 100%); }
.hero .wrap { position: relative; z-index: 2; display: grid; gap: 4px; padding-top: 28px; }
.hero .kicker { display: inline-block; justify-self: start; padding: 4px 14px; font-size: 13px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .12em; color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.hero h1 { font-size: clamp(34px, 9.5vw, 72px); text-transform: uppercase; margin-top: 10px; text-shadow: 0 2px 0 #000, 0 0 30px rgba(34,211,238,.25); }
.hero h1 em { font-style: inherit; color: var(--acc); text-shadow: 0 0 22px rgba(57,255,136,.6); }
.hero p { color: #c3d1dc; font-size: 17px; max-width: 540px; margin: 10px 0 14px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }

.scene { position: relative; z-index: 1; height: 280px; margin-top: 18px; }
.city { position: absolute; left: 0; right: 0; bottom: 92px; width: 100%; height: 190px; }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(180deg, #0a1118 0%, #05080b 100%); border-top: 1px solid #1a2733; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 58px; height: 4px; background: repeating-linear-gradient(90deg, rgba(234,242,247,.55) 0 60px, transparent 60px 130px); animation: lane .5s linear infinite; }
.road::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 60% at 55% 0%, rgba(57,255,136,.18), transparent 70%), radial-gradient(ellipse 25% 50% at 85% 0%, rgba(34,211,238,.15), transparent 70%); }
@keyframes lane { from { background-position: 0 0; } to { background-position: -130px 0; } }
.speedlines { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(-8deg, transparent 0 46px, rgba(34,211,238,.25) 46px 47px, transparent 47px 110px);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 60%, transparent);
  animation: streak 1.2s linear infinite; }
@keyframes streak { from { background-position: 0 0; } to { background-position: -440px 0; } }
.car { position: absolute; left: 50%; bottom: 22px; width: min(640px, 112%); transform: translateX(-50%); animation: idle 2.4s ease-in-out infinite; }
@keyframes idle { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(1.5px); } }
.car .spin { transform-box: fill-box; transform-origin: center; animation: spin .45s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hud { position: absolute; top: 0; right: 0; display: flex; align-items: flex-end; gap: 10px; }
.gauge { width: 118px; height: 118px; }
.gauge .needle { transform-origin: 60px 60px; animation: rev 3.2s ease-in-out infinite; }
@keyframes rev { 0% { transform: rotate(-120deg); } 45% { transform: rotate(95deg); } 55% { transform: rotate(80deg); } 100% { transform: rotate(-120deg); } }
.nitro { font-size: 11px; font-weight: 800; font-style: italic; letter-spacing: .15em; color: var(--acc2); padding-bottom: 10px; }
.nitro .bar { display: flex; gap: 3px; margin-top: 4px; }
.nitro .bar i { width: 9px; height: 16px; background: var(--acc2); transform: skewX(-20deg); box-shadow: 0 0 8px var(--acc2); animation: nos 3.2s steps(1) infinite; }
.nitro .bar i:nth-child(n+5) { opacity: .25; box-shadow: none; }
@keyframes nos { 50% { opacity: .25; box-shadow: none; } }

/* ---------- ГАРАЖ ---------- */
.garage { position: relative; z-index: 3; margin-top: -10px; }
.garage .box { position: relative; background: linear-gradient(180deg, #111a22, var(--card)); border: 1px solid var(--line); padding: 18px 16px 20px; box-shadow: 0 20px 40px rgba(0,0,0,.45);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.garage .box::before { content: ""; position: absolute; left: 0; top: 0; width: 160px; height: 3px; background: var(--acc); box-shadow: var(--glow); }
.garage h2 { font-size: 21px; text-transform: uppercase; margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
.garage .hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.garage form { display: grid; gap: 10px; }
.field label { display: block; font-size: 12px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.field .num { color: var(--acc); margin-right: 6px; }
.field select, .sort select { width: 100%; height: 50px; padding: 0 40px 0 14px; appearance: none; -webkit-appearance: none; background: #070b0f; border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--acc) 50%), linear-gradient(135deg, var(--acc) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.field select:disabled { opacity: .5; cursor: not-allowed; }
.field select:not(:disabled):hover, .sort select:hover { border-color: var(--acc); }
.garage .btn { width: 100%; height: 52px; }

/* ---------- КАТЕГОРИИ (главная) ---------- */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 124px; padding: 14px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, transform .2s;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.cat::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--acc); box-shadow: var(--glow); transition: width .25s; }
.cat:hover { border-color: var(--acc); color: var(--text); transform: translateY(-2px); }
.cat:hover::after { width: 100%; }
.cat svg { width: 46px; height: 46px; color: var(--acc); filter: drop-shadow(0 0 6px rgba(57,255,136,.4)); }
.cat b { font-size: 15px; font-style: italic; line-height: 1.25; }
.cat small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; font-style: normal; }

/* ---------- ПЛИТКИ (модели, подкатегории) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 22px; }
.tile { position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); font-size: 14px; line-height: 1.25;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); transition: border-color .2s; }
.tile:hover { border-color: var(--acc); color: var(--text); }
.tile svg { width: 34px; height: 24px; color: var(--acc); flex: none; }
.tile b { font-style: italic; flex: 1; }
.tile small { color: var(--on-acc); background: var(--acc); font-weight: 800; font-size: 12px; padding: 1px 7px; border-radius: 10px; }
.tiles--big .tile { min-height: 72px; font-size: 16px; }
.tiles--big .tile svg { width: 42px; height: 42px; }

/* ---------- ВКЛАДКИ ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.tab { flex: none; min-height: 46px; padding: 0 22px; border: 0; cursor: pointer; background: var(--card); color: var(--muted); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .05em;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--acc); color: var(--on-acc); }
.more-link { text-align: center; margin: 22px 0 0; }

/* ---------- КАРТОЧКИ ТОВАРОВ ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.products--row { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.products--row .card { scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 0 24px rgba(57,255,136,.18); }
.card .pic { position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: radial-gradient(ellipse at 50% 80%, rgba(57,255,136,.10), transparent 60%), linear-gradient(135deg, #0a1016, var(--card)); border-bottom: 1px solid var(--line); }
.card .pic-link { position: absolute; inset: 0; display: grid; place-items: center; }
.card .pic-link svg { width: 46%; height: auto; color: var(--muted); }
.card .pic img { width: 100%; height: 100%; object-fit: contain; }
.labels { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; z-index: 2; pointer-events: none; }
.lbl { font-size: 11px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px 3px 8px; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.lbl--new { background: var(--acc2); color: #001417; }
.lbl--sale { background: var(--red); color: #fff; }
.lbl--top { background: var(--acc); color: var(--on-acc); }
.lbl--free { background: #fff; color: #111; font-size: 10px; white-space: nowrap; }
.fav { position: absolute; top: 4px; right: 4px; z-index: 2; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.fav:hover { color: #ff4d6d; }
.fav[aria-pressed="true"] { color: #ff4d6d; }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.card .info { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 12px; flex: 1; }
.card .sku { font-size: 12px; color: var(--muted); }
.card .name { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .fit { font-size: 13px; color: var(--muted); }
.stock { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; box-shadow: 0 0 6px currentColor; }
.stock--in { color: #4ade80; } .stock--low { color: #fbbf24; } .stock--way { color: #7dd3fc; } .stock--order { color: #c4b5fd; }
.price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: 21px; font-style: italic; font-weight: 900; color: var(--acc); text-shadow: 0 0 12px rgba(57,255,136,.35); white-space: nowrap; }
.price s { color: var(--muted); font-size: 14px; white-space: nowrap; }
.card .btn { width: 100%; min-height: 44px; padding: 0 10px; font-size: 14px; }

/* ---------- МАРКИ, КУЗОВА, ПРЕИМУЩЕСТВА ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--card); border: 1px solid var(--line); font-weight: 800; font-style: italic; transition: border-color .2s; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.chip:hover { border-color: var(--acc); }
.chip small { color: var(--muted); font-weight: 400; font-style: normal; margin-left: 6px; }
.chip--more { background: transparent; box-shadow: inset 0 0 0 2px var(--acc); color: var(--acc); }
.bodies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.body-type { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-style: italic; }
.body-type:hover { border-color: var(--acc); }
.body-type svg { width: 56px; height: 28px; color: var(--acc); flex: none; }
.perks { display: grid; gap: 10px; }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--card); border-left: 3px solid var(--acc); }
.perk svg { width: 34px; height: 34px; color: var(--acc); flex: none; }
.perk b { display: block; margin-bottom: 2px; font-style: italic; }
.perk span { color: var(--muted); font-size: 14px; }
.seo { color: var(--muted); max-width: 900px; }
.seo h2 { color: var(--text); font-size: 22px; margin-bottom: 12px; }
.seo p { margin: 0 0 12px; }

/* ---------- КАТАЛОГ: ФИЛЬТРЫ ---------- */
.listing { display: block; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters-btn { min-height: 50px; padding: 0 18px; flex: none; }
.filters-btn .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.sort { flex: 1; max-width: 300px; margin-left: auto; }

.filters { position: fixed; z-index: 110; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column;
  background: var(--bg2); border-top: 3px solid var(--acc); box-shadow: 0 -20px 40px rgba(0,0,0,.6);
  transform: translateY(105%); transition: transform .25s ease; visibility: hidden; }
.filters.open { transform: none; visibility: visible; }
.filters-shade { position: fixed; inset: 0; z-index: 105; background: rgba(0,0,0,.6); display: none; }
.filters.open + .filters-shade { display: block; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); font-size: 18px; font-style: italic; text-transform: uppercase; }
.filters-body { overflow-y: auto; padding: 4px 16px 16px; flex: 1; }
.filters-foot { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.filters-foot .btn { flex: 1; padding: 0 12px; }
.facet { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.facet legend { padding: 0; margin-bottom: 8px; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.facet--scroll { max-height: 280px; overflow-y: auto; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 15px; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex: none; border: 2px solid var(--line); background: #070b0f; border-radius: 3px; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--acc); border-color: var(--acc); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--on-acc); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check:hover input { border-color: var(--acc); }
.check span { flex: 1; }
.check small { color: var(--muted); font-size: 12px; }
.subs { padding-left: 32px; }
.subs .check { min-height: 36px; font-size: 14px; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range label { flex: 1; }
.price-range input, .input input { width: 100%; height: 46px; padding: 0 12px; background: #070b0f; border: 1px solid var(--line); border-radius: 4px; }
.price-range input:focus, .input input:focus { border-color: var(--acc); outline: none; box-shadow: 0 0 0 2px rgba(57,255,136,.25); }

.empty { padding: 40px 16px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); }
.more-wrap { text-align: center; margin: 22px 0 8px; }
.more-wrap .btn { min-width: 240px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px 0; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-weight: 700; }
.pagination a:hover { border-color: var(--acc); }
.pagination [aria-current] { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }

/* ---------- СТРАНИЦА ТОВАРА ---------- */
.pp { display: grid; gap: 20px; margin-bottom: 30px; }
.gallery { position: relative; min-width: 0; }
.gallery .labels { top: 12px; left: 12px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--card); border: 1px solid var(--line); }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; aspect-ratio: 1 / 1; max-height: 520px; display: grid; place-items: center; position: relative;
  background: radial-gradient(ellipse at 50% 75%, rgba(57,255,136,.12), transparent 60%), linear-gradient(135deg, #0a1016, var(--card)); cursor: zoom-in; }
.slide svg { width: 50%; color: var(--muted); }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.slide figcaption { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--muted); }
.zoom-btn { position: absolute; right: 8px; top: 8px; background: rgba(0,0,0,.5); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.thumb { flex: none; width: 70px; height: 70px; padding: 8px; background: var(--card); border: 2px solid var(--line); cursor: pointer; }
.thumb svg { width: 100%; height: 100%; color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[aria-current="true"] { border-color: var(--acc); }

.buybox { min-width: 0; }
.buybox h1 { font-size: clamp(22px, 5.5vw, 32px); }
.buybox .for-car { display: block; color: var(--acc2); font-size: .62em; margin-top: 6px; }
.buybox .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 12px 0; font-size: 14px; color: var(--muted); }
.buybox .meta b { color: var(--text); }

.fitcheck { margin: 12px 0 16px; font-size: 14px; }
.fitcheck > * { display: none; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); background: var(--card); }
.fitcheck[data-state="none"] .fc-none, .fitcheck[data-state="yes"] .fc-yes, .fitcheck[data-state="no"] .fc-no { display: flex; }
.fitcheck .fc-none { color: var(--muted); border-style: dashed; }
.fitcheck .fc-none:hover { color: var(--acc); border-color: var(--acc); }
.fitcheck .fc-yes { color: #4ade80; border-color: #1f6b3d; background: rgba(74,222,128,.08); }
.fitcheck .fc-no { color: #fbbf24; border-color: #6b551f; background: rgba(251,191,36,.08); }
.fitcheck .fc-no a { text-decoration: underline; }

.variants { border: 0; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.variants legend { font-size: 13px; font-weight: 800; font-style: italic; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.variant input { position: absolute; opacity: 0; }
.variant span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--line); background: var(--card); cursor: pointer; font-weight: 700; }
.variant input:checked + span { border-color: var(--acc); color: var(--acc); box-shadow: var(--glow); }
.variant input:focus-visible + span { outline: 3px solid var(--acc2); }

.pp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
.pp-price b { font-size: 36px; font-style: italic; font-weight: 900; color: var(--acc); text-shadow: 0 0 16px rgba(57,255,136,.4); }
.pp-price s { color: var(--muted); font-size: 18px; }
.free-note { display: flex; gap: 8px; align-items: center; color: var(--acc2); font-size: 14px; margin: 0 0 12px; }
.buy-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px; }
.qty { display: flex; border: 1px solid var(--line); background: #070b0f; flex: none; }
.qty button { width: 40px; border: 0; background: none; cursor: pointer; font-size: 22px; color: var(--acc); }
.qty button:hover { background: var(--card); }
.qty input { width: 44px; border: 0; background: none; text-align: center; font-weight: 800; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fav--box { position: static; width: 54px; height: auto; border: 1px solid var(--line); background: var(--card); flex: none; }
.ask { display: inline-flex; gap: 8px; align-items: center; margin: 12px 0 0; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.mini-delivery { list-style: none; padding: 14px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.mini-delivery li { display: flex; gap: 10px; align-items: flex-start; }
.mini-delivery .icon { color: var(--acc); }

.ptabs { margin: 10px 0 10px; }
.ptab-panel { background: var(--card); border: 1px solid var(--line); padding: 18px 16px; }
.prose { color: #cdd8e1; max-width: 900px; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--acc); }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 600; width: 42%; }
.specs a { color: var(--acc); }
.h3 { font-size: 18px; margin-bottom: 12px; }
.fitlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fitlist li { display: flex; gap: 10px; align-items: center; }
.fitlist .icon { color: var(--acc); }
.fitlist a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- ОКНА (1 клик, звонок, фото) ---------- */
.dialog { width: min(92vw, 440px); padding: 0; border: 1px solid var(--line); border-top: 3px solid var(--acc); background: var(--bg2); color: var(--text); box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.dialog::backdrop, .lightbox::backdrop { background: rgba(0,0,0,.72); }
.lead-form { position: relative; padding: 22px 18px 20px; }
.lead-form h2 { font-size: 22px; text-transform: uppercase; padding-right: 40px; }
.lead-form p { color: var(--muted); font-size: 14px; margin: 10px 0 14px; }
.dialog-x { position: absolute; top: 8px; right: 8px; }
.lead-fields { display: grid; gap: 12px; }
.input span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- салют и подяка после заказа ---------- */
.fireworks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 400; pointer-events: none; }
.celebrate { position: fixed; inset: 0; z-index: 390; display: grid; place-items: center; padding: 16px; background: rgba(2,4,7,.72); }
.celebrate[hidden] { display: none; }
.celebrate-box { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px 22px 22px; text-align: center;
  background: var(--card); border: 2px solid var(--acc); border-radius: 12px; box-shadow: 0 0 40px rgba(57,255,136,.25), 0 20px 50px rgba(0,0,0,.6); }
.celebrate-box h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.25; font-style: italic; }
.celebrate-box p { margin: 0 0 10px; font-size: 17px; line-height: 1.5; }
.celebrate-num { color: var(--muted); }
.celebrate-num b { color: var(--acc); }
.celebrate-btns { display: grid; gap: 10px; margin-top: 18px; }
.celebrate-btns .btn { min-height: 52px; width: 100%; font-size: 16px; }
@media (min-width: 600px) { .celebrate-btns { grid-template-columns: 1fr 1fr; } }

/* ---------- рейтинг и отзывы ---------- */
.stars { --p: calc(var(--r, 0) / 5 * 100%); display: inline-block; font-size: 18px; letter-spacing: 1px; line-height: 1; white-space: nowrap;
  background: linear-gradient(90deg, #ffc21a var(--p), #3a4654 var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-mini { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rating-mini .stars { font-size: 14px; }
.rating-line { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 4px; color: var(--acc2); font-size: 14px; text-decoration: none; }
.rating-line:hover span { text-decoration: underline; }
.rating-big { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; font-size: 18px; }
.rating-big .stars { font-size: 26px; }
.rating-big b { font-size: 26px; font-style: italic; }
.rating-big span { color: var(--muted); font-size: 15px; }
.reviews-layout { display: grid; gap: 22px; align-items: start; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.review { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.review-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; }
.review-head time { color: var(--muted); font-size: 13px; margin-left: auto; }
.review p { margin: 8px 0 0; white-space: pre-line; }
.verified { color: var(--acc); font-size: 12px; font-weight: 700; }
.review-reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--acc2); background: #0b1218; font-size: 14px; color: var(--muted); }
.review-reply b { color: var(--text); }
.review-list--row { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.review-list--row .review { scroll-snap-align: start; }
.review-form { display: grid; gap: 12px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.review-form h3 { margin: 0; font-size: 18px; text-transform: uppercase; font-style: italic; }
.star-input { border: 0; padding: 0; margin: 0; min-width: 0; }
.star-input legend { padding: 0; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 34px; line-height: 1; color: #3a4654; cursor: pointer; padding: 2px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #ffc21a; }
.star-input input:focus-visible + label { outline: 3px solid var(--acc2); outline-offset: 2px; }
.ship-note { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.ship-note .icon { color: var(--acc); flex: none; }
.ship-note b { color: var(--text); }
@media (min-width: 900px) {
  .reviews-layout { grid-template-columns: 1fr 380px; }
  .review-list--row { grid-auto-columns: calc(33.3% - 7px); }
}
.consent { font-size: 13px; align-items: flex-start; min-height: 0; }
.consent span { padding-top: 2px; }
.consent a { color: var(--acc); text-decoration: underline; }
.dlg-product { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--card); border: 1px solid var(--line); color: var(--text) !important; }
.dlg-product svg { width: 48px; height: 48px; color: var(--acc); flex: none; }
.dlg-product b { color: var(--acc); }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.92); }
.lb-body { width: 100%; height: 100%; display: grid; place-items: center; padding: 50px 16px; }
.lb-body svg { width: min(80vw, 70vh); color: var(--muted); }
.lb-body img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- ЗАГЛУШКИ ---------- */
.stub { padding: 30px 0 60px; color: var(--muted); }
.stub--404 { text-align: center; }
.big404 { font-size: 96px; font-weight: 900; font-style: italic; color: var(--acc); text-shadow: var(--glow); margin: 20px 0 0; line-height: 1; }
.stub--404 h1 { color: var(--text); margin: 10px 0; }

/* ---------- ПОДВАЛ ---------- */
.footer { background: #000; border-top: 3px solid var(--acc); padding: 36px 0 90px; margin-top: 30px; color: var(--muted); font-size: 15px; }
.footer .cols { display: grid; gap: 28px; }
.footer h3 { color: var(--text); font-size: 15px; text-transform: uppercase; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer ul a { display: inline-block; padding: 6px 0; }
.footer .fop { font-size: 14px; line-height: 1.6; margin: 0; }
.footer .copy { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; font-size: 13px; }

/* ---------- КНОПКА СВЯЗИ, COOKIE, СООБЩЕНИЯ ---------- */
.contact-fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.contact-fab .main { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; box-shadow: var(--glow), 0 8px 20px rgba(0,0,0,.4); }
.contact-fab .list { display: none; flex-direction: column; gap: 8px; align-items: flex-end; }
.contact-fab.open .list { display: flex; }
.contact-fab .list a, .contact-fab .list button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.call-fab { position: fixed; right: 22px; bottom: 90px; z-index: 59; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: var(--acc2); color: #03141a; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.45); animation: ring 2.4s infinite; }
.call-fab .icon { width: 24px; height: 24px; animation: wiggle 2.4s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.55), 0 6px 16px rgba(0,0,0,.45); } 70% { box-shadow: 0 0 0 16px rgba(34,211,238,0), 0 6px 16px rgba(0,0,0,.45); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0), 0 6px 16px rgba(0,0,0,.45); } }
@keyframes wiggle { 0%, 60%, 100% { transform: rotate(0); } 64% { transform: rotate(-14deg); } 70% { transform: rotate(14deg); } 76% { transform: rotate(-10deg); } 82% { transform: rotate(8deg); } }
.contact-fab.open ~ .call-fab { display: none; }
.call-nudge { position: fixed; right: 16px; bottom: 150px; z-index: 61; width: min(300px, calc(100vw - 32px)); padding: 14px 14px 12px; background: var(--card); border: 1px solid var(--acc2); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.55); }
.call-nudge p { margin: 0 26px 10px 0; font-size: 14px; }
.call-nudge .btn { width: 100%; min-height: 40px; font-size: 14px; }
.call-nudge [data-nudge-close] { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; }
@media (prefers-reduced-motion: reduce) { .call-fab, .call-fab .icon { animation: none; } }
.cookie { position: fixed; left: 16px; right: 92px; bottom: 16px; z-index: 55; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--acc); padding: 14px; font-size: 14px; display: none; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.cookie.show { display: block; }
.cookie p { margin: 0 0 10px; color: var(--muted); }
.cookie p a { color: var(--acc); }
.cookie .row { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .btn { min-height: 40px; padding: 0 18px; font-size: 13px; }
.toast { position: fixed; left: 50%; top: 80px; transform: translate(-50%, -20px); z-index: 300; background: var(--acc); color: var(--on-acc); font-weight: 800; font-style: italic; padding: 12px 22px; opacity: 0; pointer-events: none; transition: .25s; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- ПЛАНШЕТ ---------- */
@media (min-width: 640px) {
  .scene { height: 330px; }
  .gauge { width: 140px; height: 140px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .products--row { grid-template-columns: none; grid-auto-columns: 31%; }
  .bodies { grid-template-columns: repeat(4, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .garage form { grid-template-columns: repeat(2, 1fr); }
  .garage .btn { grid-column: 1 / -1; }
  .footer .cols { grid-template-columns: repeat(2, 1fr); }
  .card .name { font-size: 15px; }
  .lead-form { padding: 26px 26px 24px; }
}
/* ---------- КОМПЬЮТЕР ---------- */
@media (min-width: 960px) {
  html { scroll-padding-top: 130px; }
  .topbar nav { display: flex; }
  .header > .wrap > .search { display: flex; max-width: 520px; margin: 0 24px; }
  .search-mobile, .burger { display: none !important; }
  .catnav { display: block; }
  .hero .wrap { padding-top: 44px; }
  .hero .copy { max-width: 620px; }
  .hero h1 { font-size: clamp(44px, 5vw, 70px); }
  .scene { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 420px; margin: 0; }
  .hero { min-height: 560px; }
  .car { left: 66%; width: 680px; bottom: 26px; }
  .hud { top: 0; right: max(16px, calc((100vw - 1240px) / 2 + 16px)); }
  .gauge { width: 160px; height: 160px; }
  .garage { margin-top: -8px; }
  .garage .box { padding: 22px 24px 24px; }
  .garage form { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
  .garage .btn { grid-column: auto; width: auto; padding: 0 30px; }
  .cats { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .products { grid-template-columns: repeat(4, 1fr); }
  .products--row { grid-template-columns: none; grid-auto-columns: calc(25% - 11px); }
  .perks { grid-template-columns: repeat(4, 1fr); }
  .footer .cols { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; }
  .cookie { right: auto; max-width: 440px; }

  /* каталог: фильтры слева */
  .listing { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
  .filters { position: sticky; top: 130px; z-index: 1; max-height: calc(100vh - 150px); transform: none; visibility: visible; transition: none;
    border: 1px solid var(--line); border-top: 3px solid var(--acc); box-shadow: none; background: var(--card); }
  .filters-head .icon-btn, .filters-foot .btn:last-child, .filters-shade, .filters-btn { display: none !important; }
  .filters-foot .btn { flex: 1; }
  .products--listing { grid-template-columns: repeat(3, 1fr); }

  /* товар: фото слева, покупка справа */
  .pp { grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
  .gallery { position: sticky; top: 130px; }
  .ptab-panel { padding: 24px 26px; }
}
@media (min-width: 1200px) {
  .products--listing { grid-template-columns: repeat(4, 1fr); }
}
/* =========================================================
   КОРЗИНА, ОФОРМЛЕНИЕ, ИНФО-СТРАНИЦЫ
   ========================================================= */
.muted { color: var(--muted); }
.is-invalid { border-color: var(--red) !important; box-shadow: 0 0 0 2px rgba(255,42,60,.3) !important; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

.cart-empty { padding: 30px 18px; background: var(--card); border: 1px dashed var(--line); color: var(--muted); }
.cart-empty p { margin: 0 0 16px; }
.cart-layout { display: grid; gap: 18px; align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "pic info del" "pic qty sum"; gap: 8px 12px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); }
.cart-item.is-off { opacity: .6; }
.ci-pic { grid-area: pic; width: 64px; height: 64px; display: grid; place-items: center; background: #0a1016; border: 1px solid var(--line); align-self: start; }
.ci-pic svg { width: 70%; color: var(--muted); }
.ci-info { grid-area: info; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci-name { font-weight: 700; line-height: 1.3; }
.ci-var, .ci-price { font-size: 13px; color: var(--muted); }
.ci-warn { font-size: 13px; color: #fbbf24; }
.cart-item .qty { grid-area: qty; justify-self: start; height: 42px; }
.ci-sum { grid-area: sum; font-size: 18px; font-style: italic; color: var(--acc); white-space: nowrap; }
.ci-del { grid-area: del; align-self: start; color: var(--muted); }
.cart-total, .co-summary { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--acc); padding: 18px 16px; display: grid; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.sum-row b { color: var(--text); }
.sum-row--total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 18px; color: var(--text); }
.sum-row--total b { font-size: 26px; font-style: italic; color: var(--acc); text-shadow: 0 0 12px rgba(57,255,136,.35); }

.checkout { display: grid; gap: 18px; align-items: start; }
.co-step { background: var(--card); border: 1px solid var(--line); padding: 18px 16px; margin-bottom: 12px; }
.co-step h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; text-transform: uppercase; margin-bottom: 14px; }
.co-num { display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--acc); color: var(--on-acc); font-size: 16px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.co-grid { display: grid; gap: 12px; }
.co-delivery { margin-top: 14px; }
.input select, .input textarea { width: 100%; padding: 10px 12px; background: #070b0f; border: 1px solid var(--line); border-radius: 4px; }
.input select { height: 46px; margin-top: 8px; }
.input textarea { resize: vertical; min-height: 80px; }
.input select:focus, .input textarea:focus { border-color: var(--acc); outline: none; box-shadow: 0 0 0 2px rgba(57,255,136,.25); }
.input label span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.options { display: grid; gap: 8px; }
.option { position: relative; display: flex; cursor: pointer; }
.option input { position: absolute; opacity: 0; }
.option > span { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 44px; border: 2px solid var(--line); background: #070b0f; font-weight: 700; position: relative; }
.option > span::before { content: ""; position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; border: 2px solid var(--muted); border-radius: 50%; }
.option input:checked + span { border-color: var(--acc); }
.option input:checked + span::before { border-color: var(--acc); background: radial-gradient(circle, var(--acc) 45%, transparent 50%); }
.option input:focus-visible + span { outline: 3px solid var(--acc2); }
.option small { font-weight: 400; font-size: 13px; color: var(--muted); }
.option--off { cursor: not-allowed; opacity: .5; }
.co-note { color: #fbbf24; font-size: 14px; margin: 12px 0 0; }
.combo { position: relative; }
.combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none; max-height: 280px; overflow-y: auto; background: var(--bg2); border: 1px solid var(--acc); box-shadow: 0 12px 30px rgba(0,0,0,.6); }
.combo-list li { padding: 10px 12px; cursor: pointer; }
.combo-list li:hover, .combo-list li:focus { background: var(--card); color: var(--acc); outline: none; }
.combo-list small { color: var(--muted); }
.co-summary-head { display: flex; justify-content: space-between; align-items: baseline; }
.co-summary-head h2 { font-size: 18px; text-transform: uppercase; }
.co-summary-head a { color: var(--acc); font-size: 14px; text-decoration: underline; }
.co-items { list-style: none; margin: 0; padding: 0 0 6px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.co-items li { display: flex; justify-content: space-between; gap: 10px; }
.co-items small { color: var(--muted); }
.co-items b { white-space: nowrap; }
.co-offer { font-size: 13px; color: var(--muted); margin: 0; }
.co-offer a { color: var(--acc); text-decoration: underline; }
.co-error { color: #ff8a95; font-size: 14px; margin: 0; }
.co-error a { color: var(--text); font-weight: 700; }

.thanks { max-width: 620px; margin: 40px auto 20px; text-align: center; padding: 30px 18px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--acc); }
.thanks-icon { width: 64px; height: 64px; margin: 0 auto 12px; color: var(--acc); filter: drop-shadow(0 0 10px rgba(57,255,136,.5)); }
.thanks h1 { font-size: clamp(24px, 6vw, 34px); text-transform: uppercase; margin-bottom: 12px; }
.thanks p { color: var(--muted); }
.thanks-num b { color: var(--acc); font-size: 22px; font-style: italic; }

.prose--page { max-width: 860px; padding-bottom: 20px; }
.prose--page h2 { font-size: 20px; color: var(--text); margin: 24px 0 10px; text-transform: uppercase; }
.prose--page ol { padding-left: 20px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--acc); color: var(--text) !important; }
.contact-card b { font-style: italic; text-transform: uppercase; font-size: 13px; color: var(--muted); }
a.contact-card:hover { border-color: var(--acc); }
.sitemap-cols { display: grid; gap: 24px; padding-bottom: 20px; }
.sitemap-cols ul { list-style: none; padding: 0; margin: 0 0 18px; }
.sitemap-cols ul ul { padding-left: 16px; margin: 4px 0 8px; font-size: 14px; color: var(--muted); }
.sitemap-cols a { display: inline-block; padding: 4px 0; }
.search--page { max-width: 640px; margin-bottom: 18px; }
.map-box { max-width: 860px; margin: 10px 0 30px; display: grid; gap: 12px; justify-items: start; }
.map-box h2 { font-size: 20px; text-transform: uppercase; }
.map-addr { margin: 0; font-weight: 700; }
.map-box p { margin: 0; }
.map-frame { width: 100%; aspect-ratio: 16 / 9; min-height: 240px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 16px;
  background: radial-gradient(ellipse at 50% 60%, rgba(57,255,136,.08), transparent 60%), repeating-linear-gradient(45deg, #0b1118 0 12px, #0d141c 12px 24px); border: 1px solid var(--line); }
.map-frame small { color: var(--muted); }
.map-frame.is-on { padding: 0; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

@media (min-width: 640px) {
  .co-grid { grid-template-columns: 1fr 1fr; }
  .input--wide { grid-column: 1 / -1; }
  .cart-item { grid-template-columns: 80px 1fr auto auto 44px; grid-template-areas: "pic info qty sum del"; }
  .ci-pic { width: 80px; height: 80px; align-self: center; }
  .ci-del { align-self: center; }
  .sitemap-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .cart-layout, .checkout { grid-template-columns: 1fr 360px; gap: 24px; }
  .cart-total, .co-summary { position: sticky; top: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
