/* Racing Wheels — подбор шин. Токены и язык — из Telegram Mini App (light primary, dark via prefers-color-scheme). */
:root {
  color-scheme: light dark;
  --bg: #eef0f4;
  --surface: #ffffff;
  --surface-2: #f4f5f8;
  --fill: rgba(15, 18, 28, 0.06);
  --text: #121214;
  --text-2: rgba(18, 18, 20, 0.74);
  --text-3: rgba(18, 18, 20, 0.62);
  --line: rgba(15, 15, 20, 0.09);
  --line-2: rgba(15, 15, 20, 0.16);
  --accent: #e11d37;          /* красный */
  --accent-2: #ff7a36;        /* оранжевый — только декор, не для текста */
  --accent-text: #c8102e;
  --accent-tint: rgba(225, 29, 55, 0.08);
  --grad: linear-gradient(135deg, #e11d37 0%, #d93a1c 100%);
  --ok: #1a7f37;
  --warn: #b45309;
  --bad: #c8102e;
  --wa: #11874a;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(15, 15, 20, 0.08);
  --shadow-sm: 0 4px 14px rgba(20, 20, 30, 0.08);
  --shadow: 0 14px 36px rgba(20, 20, 30, 0.12);
  --scrim: rgba(10, 10, 14, 0.42);
  --r: 22px;
  --r-sm: 16px;
  --r-xs: 10px;
  --gap: 12px;    /* между блоками выдачи */
  --sect: 24px;   /* между секциями страницы */
  --pad: 14px;    /* внутренний отступ карточек */
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --sheet-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --sab: env(safe-area-inset-bottom, 0px);
  --sat: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #101012;
    --surface: #161618;
    --surface-2: #1d1d21;
    --fill: rgba(255, 255, 255, 0.07);
    --text: #ffffff;
    --text-2: rgba(255, 255, 255, 0.84);
    --text-3: rgba(255, 255, 255, 0.64);
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.17);
    --accent-text: #ff8a6a;
    --accent-tint: rgba(255, 122, 54, 0.14);
    --ok: #7ed957;
    --warn: #ffc857;
    --bad: #ff6b7a;
    --wa: #17a35b;
    --glass: rgba(22, 22, 26, 0.78);
    --glass-line: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.38);
    --shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
    --scrim: rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme=dark] {
  --bg: #101012;
  --surface: #161618;
  --surface-2: #1d1d21;
  --fill: rgba(255, 255, 255, 0.07);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.84);
  --text-3: rgba(255, 255, 255, 0.64);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.17);
  --accent-text: #ff8a6a;
  --accent-tint: rgba(255, 122, 54, 0.14);
  --ok: #7ed957;
  --warn: #ffc857;
  --bad: #ff6b7a;
  --wa: #17a35b;
  --glass: rgba(22, 22, 26, 0.78);
  --glass-line: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.38);
  --shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
  --scrim: rgba(0, 0, 0, 0.6);
}
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
html.locked { overflow: hidden; }
body {
  font: 15px/1.45 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; text-align: left; touch-action: manipulation; }
svg { display: block; flex: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { max-width: 480px; margin: 0 auto; padding: calc(var(--sat) + 8px) 16px calc(150px + var(--sab)); min-height: 100dvh; }
@media (min-width: 520px) { .app { box-shadow: 0 0 0 1px var(--line); background: var(--bg); } html { background: color-mix(in srgb, var(--bg) 70%, #000 6%); } }

/* ---------- header ---------- */
.hdr { display: flex; align-items: center; gap: 12px; padding: 10px 2px 16px; }
.hdr > div { flex: 1; min-width: 0; }
.tbtn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); color: var(--text-2); box-shadow: 0 0 0 1px var(--line); }
.tbtn:active { background: var(--fill); }
.tbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hdr img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.hdr b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.hdr small { display: block; font-size: 13px; color: var(--text-3); font-weight: 500; margin-top: 2px; }

/* ---------- finder card ---------- */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); padding: var(--pad); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; margin-top: -9px; color: var(--text-3); pointer-events: none; }
.search input {
  width: 100%; height: 46px; border: 0; border-radius: 14px; background: var(--fill);
  padding: 0 14px 0 42px; font-size: 16px; font-weight: 500; -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus-visible { outline-offset: 0; }
.sugg { margin-top: 8px; border-radius: var(--r-sm); background: var(--surface-2); overflow: hidden; }
.sugg .row { border-radius: 0; }
.sugg .hint { padding: 12px 14px; color: var(--text-3); font-size: 14px; }

.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 14px 0; border-radius: 999px; background: var(--fill); }
.seg i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--grad); box-shadow: 0 4px 14px rgba(225, 29, 55, 0.28); transition: transform 0.45s var(--spring); }
.seg[data-i="1"] i { transform: translateX(100%); }
.seg button { position: relative; z-index: 1; min-height: 44px; text-align: center; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--text-3); transition: color 0.25s; }
.seg button[aria-selected="true"] { color: #fff; }
.seg button:active { transform: scale(0.98); }

.fields { display: grid; gap: 10px; }
.field {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 14px 8px 12px;
  border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.14s ease, background 0.2s;
}
.field:active:not(:disabled) { transform: scale(0.985); background: var(--fill); }
.field:disabled { opacity: 0.5; cursor: default; }
.field .lead { width: 44px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.field .lead.num { background: transparent; box-shadow: none; font-size: 13px; font-weight: 800; color: var(--text-3); letter-spacing: 0.04em; }
.field .lead img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.field .lead.wide img { padding: 0; object-fit: contain; }
.field .tx { flex: 1; min-width: 0; }
.field .lb { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: 0.02em; }
.field .vl { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field .vl.ph { font-weight: 500; color: var(--text-3); }
.field .chev { color: var(--text-3); }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sizes .field { flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 12px; min-height: 64px; justify-content: center; position: relative; }
.sizes .field .vl { font-size: 20px; width: 100%; font-variant-numeric: tabular-nums; }
.sizes .field .chev { position: absolute; right: 10px; top: 12px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin-top: 14px; padding: 0 20px;
  border-radius: 16px; background: var(--grad); color: #fff; font-weight: 700; font-size: 17px; text-align: center; text-decoration: none;
  box-shadow: 0 8px 22px rgba(225, 29, 55, 0.26); transition: transform 0.14s ease, opacity 0.2s;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; box-shadow: none; cursor: default; }
.btn.line { background: var(--fill); color: var(--text); box-shadow: none; }
.linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.linkbtn[hidden] { display: none; }
.center { text-align: center; }

/* ---------- results ---------- */
#results { margin-top: var(--sect); scroll-margin-top: 12px; }
.res { display: flex; flex-direction: column; gap: var(--gap); }
.rise { animation: rise 0.45s var(--spring) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.car { display: flex; align-items: center; gap: 14px; }
.car .pic { width: 132px; aspect-ratio: 3 / 1; flex: none; display: grid; place-items: center; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.car .pic img { width: 100%; height: 100%; object-fit: contain; }
.car .pic svg { width: 70%; color: #9aa0ac; }
.car .pic.sq { width: 84px; height: 84px; aspect-ratio: 1; border-radius: 16px; background: var(--surface-2); }
.car .pic.sq img { object-fit: cover; }
.car .pic.ill svg { width: 100%; height: 100%; color: var(--text-2); }
.ill .t { fill: currentColor; } .ill .bg { fill: var(--surface-2); } .ill .gv { stroke: var(--surface-2); }
.ill .sw { stroke: var(--surface-2); opacity: 0.45; } .ill .sp { stroke: currentColor; }
.car .pic.ill { background: var(--accent-tint); }
.car .pic.ill .bg, .car .pic.ill .gv, .car .pic.ill .sw { fill-opacity: 1; }
.car .pic.ill .bg { fill: var(--surface); } .car .pic.ill .gv, .car .pic.ill .sw { stroke: var(--surface); }
.car .pic.fb, .th.fb, .lg.fb, .lg.ic { background: var(--surface-2); }
.car .pic.fb svg, .th.fb svg { color: var(--text-3); }
.wh { fill: var(--surface-2); }
.lg.ic { color: var(--text-2); } .lg.fb em { color: var(--text-2); }
.car h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.car p { color: var(--text-3); font-size: 13.5px; margin-top: 3px; font-weight: 500; }
.h3 { font-size: 13px; font-weight: 700; color: var(--text-3); letter-spacing: 0.02em; margin: 14px 2px 8px; }
.card > .h3:first-child { margin-top: 2px; }
.res > .h3 { margin: var(--gap) 2px -4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--fill); font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.chip small { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.grp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: var(--gap) 2px -4px; }
.res > .grp-h:first-child { margin-top: 0; }
.grp-h h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.grp-h small { font-size: 13px; color: var(--text-3); font-weight: 600; }
.note { padding: 12px var(--pad); border-radius: var(--r-sm); background: var(--accent-tint); color: var(--text-2); font-size: 14px; }
.tire { padding: var(--pad); border-radius: var(--r-sm); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); cursor: pointer; transition: box-shadow 0.2s, transform 0.14s; }
.tire:active:not(:has(.tq:active, .tp:active, .bi-btn:active)) { transform: scale(0.99); }
.tire.on { box-shadow: 0 0 0 2px var(--accent), var(--shadow-sm); }
.tire-m { display: grid; grid-template-columns: 24px 72px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.tire .ck { width: 24px; height: 24px; padding: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); background: transparent center / 16px no-repeat; transition: background-color 0.2s, box-shadow 0.2s; position: relative; }
.tire .ck::after { content: ""; position: absolute; inset: -12px; }
.tire.on .ck { background-color: var(--accent); box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E"); }
.tire .tt { min-width: 0; }
.tire b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.tire .mt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 5px; font-size: 13px; color: var(--text-3); font-weight: 500; }
.tire .pr { text-align: right; white-space: nowrap; }
.tire .pr strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tire .pr small { font-size: 12px; color: var(--text-3); font-weight: 600; }
.br { display: flex; align-items: center; gap: 2px; margin-top: 2px; font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.bi-btn { position: relative; flex: none; width: 20px; height: 20px; margin-left: 4px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--text-3); font-size: 12px; font-weight: 700; font-style: italic; font-family: Georgia, serif; line-height: 1; text-align: center; }
.bi-btn::after { content: ""; position: absolute; inset: -12px; }
/* количество на карточке: раскрывается при выборе */
.tq { display: grid; grid-template-rows: 0fr; visibility: hidden; cursor: default; transition: grid-template-rows 0.3s var(--spring), visibility 0s 0.3s; }
.tire.on .tq { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.3s var(--spring), visibility 0s; }
.tq-in { min-height: 0; overflow: hidden; }
.tq-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.tq-s { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tq-f { font-size: 13px; color: var(--text-3); font-weight: 600; }
.seg2 { display: inline-flex; flex: none; padding: 3px; border-radius: 999px; background: var(--fill); }
.seg2 button { min-width: 64px; min-height: 40px; padding: 0 12px; text-align: center; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--text-3); transition: background 0.2s, color 0.2s; }
.seg2 button:active { transform: scale(0.97); }
.seg2 button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tp { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); padding: 0; color: var(--text-3); cursor: zoom-in; }
.tp.ph { cursor: inherit; }
.tp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp svg { width: 44px; height: 44px; }
.stale { font-size: 13px; color: var(--text-3); font-weight: 500; padding: 0 2px; margin-bottom: -4px; }
.stk { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.stk-l { font-size: 12px; font-weight: 500; color: var(--text-3); }
.stk-r { display: inline-flex; align-items: center; gap: 7px; }
.tread { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.tread i { width: 10px; height: 14px; border-radius: 2px; background: var(--text); transform: skewX(-14deg); }
.tread i.worn { height: 4px; background: var(--line-2); }
.tread i.nu { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); height: 6px; }
.stk.nil { color: var(--text-3); font-weight: 500; }
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0, 0, 0, 0.92); opacity: 0; transition: opacity 0.25s ease, background 0.2s; touch-action: none; }
.lightbox.open { opacity: 1; }
.lightbox figure { margin: 0; max-width: 100%; display: grid; gap: 10px; justify-items: center; padding: 56px 12px calc(24px + var(--sab)); pointer-events: none; }
.lightbox img { max-width: 100%; max-height: 78vh; max-height: 78dvh; object-fit: contain; border-radius: 14px; transition: transform 0.25s var(--spring); pointer-events: auto; }
.lightbox figcaption { color: rgba(255, 255, 255, 0.84); font-size: 14px; font-weight: 600; text-align: center; }
.lightbox-x { position: absolute; top: calc(var(--sat) + 8px); right: 8px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.16); }
.manual { padding: 16px var(--pad); border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.manual b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.manual p { color: var(--text-2); margin-top: 6px; font-size: 14.5px; }
.manual .btn { margin-top: 14px; }
.code { text-align: center; color: var(--text-3); font-size: 13px; margin-top: 4px; }
.code b { color: var(--text); letter-spacing: 0.06em; }

/* ---------- footer ---------- */
.foot { margin-top: var(--sect); padding: 0 4px; color: var(--text-3); font-size: 13px; display: grid; gap: 2px; }
.foot p { display: flex; align-items: center; gap: 8px; }
.foot .attr { display: block; font-size: 11px; line-height: 1.4; color: var(--text-3); opacity: 0.85; }

/* ---------- sticky CTA ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + var(--sab)); background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); border-top: 1px solid var(--glass-line); }
.bar-in { max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bar-sum { flex: 1; min-width: 0; font-size: 13px; color: var(--text-3); line-height: 1.3; font-weight: 500; }
.bar-sum b { color: var(--text); font-weight: 700; }
.bar-sum span { display: block; }
.wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 16px; background: var(--wa); color: #fff; font-weight: 700; font-size: 15.5px; text-decoration: none; white-space: nowrap; transition: transform 0.14s; }
.wa:active { transform: scale(0.97); }
/* есть выбранные шины: сводка сверху, кнопка на всю ширину */
.bar.has-sel .bar-in { flex-direction: column; align-items: stretch; gap: 8px; }
.bar.has-sel .bar-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.bar.has-sel .bar-sum b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.bar.has-sel .bar-sum .code-s { font-size: 12px; }
.bar.has-sel .wa { min-height: 54px; font-size: 17px; font-weight: 800; border-radius: 16px; box-shadow: 0 8px 22px rgba(17, 135, 74, 0.34); }
.wa.pulse { animation: wa-pulse 1.4s var(--spring) 0.15s 2; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(17, 135, 74, 0.55), 0 8px 22px rgba(17, 135, 74, 0.34); transform: scale(1); }
  40% { transform: scale(1.025); }
  100% { box-shadow: 0 0 0 16px rgba(17, 135, 74, 0), 0 8px 22px rgba(17, 135, 74, 0.34); transform: scale(1); }
}

/* ---------- bottom sheet ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 50; }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 0.35s ease; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 480px; max-height: 85vh; max-height: 85dvh;
  display: flex; flex-direction: column; background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(100%); transition: transform 0.5s var(--sheet-ease); will-change: transform; outline: 0; padding-bottom: var(--sab);
}
.sheet-root.open .scrim { opacity: 1; }
.sheet-root.open .sheet { transform: translateY(0); }
.sheet.drag { transition: none; }
.sh-head { flex: none; padding: 8px 16px 10px; touch-action: none; }
.grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 8px; }
.sh-row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.sh-row h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.x { width: 44px; height: 44px; margin-right: -8px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); }
.x span { width: 32px; height: 32px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; }
.sh-search { margin-top: 4px; }
.sh-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 16px 16px; }
.pop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 6px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px 8px; min-height: 84px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; }
.tile:active, .row:active { background: var(--fill); }
.tile .lg { width: 40px; height: 40px; }
.lg { display: grid; place-items: center; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--line); flex: none; }
.lg img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.lg em { font-style: normal; font-weight: 800; font-size: 12px; color: #555; }
.sec { position: sticky; top: 0; z-index: 1; margin: 0 -16px; padding: 14px 16px 6px; font-size: 12.5px; font-weight: 700; color: var(--text-3); letter-spacing: 0.04em; background: var(--surface); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 6px 4px; border-radius: 12px; }
.row + .row { box-shadow: 0 -1px 0 var(--line); }
.row .lg { width: 36px; height: 36px; }
.row .th { width: 72px; height: 32px; flex: none; display: grid; place-items: center; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.row .th img { width: 100%; height: 100%; object-fit: contain; }
.row .th svg { width: 60%; color: #9aa0ac; }
.row .n { flex: 1; min-width: 0; font-weight: 600; font-size: 16px; }
.row .n small { display: block; font-size: 13px; font-weight: 500; color: var(--text-3); }
.row .ck { color: var(--accent-text); }
.row.sel .n { color: var(--accent-text); font-weight: 700; }
.row.big { min-height: 52px; } .row.big .n { font-size: 18px; font-variant-numeric: tabular-nums; }
.empty { padding: 24px 8px; text-align: center; color: var(--text-3); }
.srcs { list-style: none; display: grid; gap: 12px; padding: 4px 0 8px; }
.srcs a { color: var(--accent-text); font-weight: 600; }
.srcs small { display: block; color: var(--text-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .sheet { transform: none; opacity: 0; transition: opacity 0.2s !important; }
  .sheet-root.open .sheet { opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) { .bar { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .card, .tire, .field { box-shadow: 0 0 0 1.5px var(--line-2); } }
@media (max-width: 359px) { .pop { grid-template-columns: repeat(3, 1fr); } .car .pic { width: 104px; } }
.field .lead.num svg { width: 26px; height: auto; color: var(--text-3); }
.field .lead.num svg circle { fill: none; }

/* ---------- контакты / карта ---------- */
.contact { margin-top: var(--sect); padding: 0; overflow: hidden; scroll-margin-top: 12px; }
.cmap { position: relative; display: block; aspect-ratio: 2 / 1; background: var(--surface-2); }
.cmap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmap-c { position: absolute; right: 8px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); color: #333; font-size: 11px; font-weight: 600; }
.cbody { padding: var(--pad); }
.cbody b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.cbody p { color: var(--text-2); margin-top: 2px; }
.cbody p.ci { display: flex; align-items: center; gap: 8px; }
.cbody p.ci svg { color: var(--text-3); }
.cbtns { display: grid; gap: 10px; margin-top: 12px; }
.cbtns .btn { margin-top: 0; font-size: 16px; }
.btn.line { color: var(--text); }
@media (max-width: 359px) { .tire { padding: 12px; } .tire .pr strong { font-size: 16px; } .tire-m { grid-template-columns: 24px 60px minmax(0, 1fr) auto; } .tp { width: 60px; height: 60px; } .car .pic.sq { width: 72px; height: 72px; } }

/* ---------- бренд (лист) ---------- */
.bi { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; padding: 4px 0 8px; }
.bi dt { color: var(--text-3); font-size: 13px; font-weight: 600; padding-top: 2px; }
.bi dd { font-weight: 700; font-size: 16px; }
.bt { color: var(--text-2); font-size: 15px; line-height: 1.5; padding-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--sect); padding: 16px var(--pad) 6px; }
.faq h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; padding: 0 2px 6px; }
.faq-i + .faq-i { border-top: 1px solid var(--line); }
.faq-i h3 { font: inherit; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 10px 2px; font-size: 15.5px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.faq-q:active { opacity: 0.7; }
.faq-c { color: var(--text-3); transition: transform 0.3s var(--spring); }
.faq-i.open .faq-c { transform: rotate(90deg); }
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.3s var(--spring), visibility 0s 0.3s; }
.faq-i.open .faq-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.3s var(--spring), visibility 0s; }
.faq-ai { min-height: 0; overflow: hidden; }
.faq-ai p a.flink { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; display: inline-block; line-height: 2.4; margin: -0.45em 0; }
.faq-ai p { color: var(--text-2); font-size: 14.5px; line-height: 1.5; padding: 0 2px 14px; white-space: pre-line; }
