/* ============================================================
   AUTODIL — світла тема маркетплейсу
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eef1f5;
  --line: #e6e9ee;
  --line-2: #d8dde5;
  --line-3: #b9c1cd;

  --txt: #14161a;
  --txt-2: #4d5665;
  --txt-3: #6f7889;

  --accent: #0e93dd;
  --accent-2: #0a78b8;
  --accent-soft: rgba(14, 147, 221, .08);
  --accent-line: rgba(14, 147, 221, .28);
  --red: #e01b24;
  --brand: #12a3e8;
  --blue: #1a56db;
  --ok: #0f9d58;
  --warn: #b45309;
  --bad: #d92d20;

  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px;
  --s9: 56px; --s10: 72px;

  --sh-1: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-2: 0 4px 14px -6px rgba(16, 24, 40, .16);
  --sh-3: 0 18px 40px -18px rgba(16, 24, 40, .3);
  --sh-4: 0 32px 64px -24px rgba(16, 24, 40, .35);

  --ease: cubic-bezier(.22, .8, .3, 1);
  --t: .16s var(--ease);
}

/* ── Темна тема ── */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1116;
  --bg-2: #0f151c;
  --surface: #131a22;
  --surface-2: #172029;
  --surface-3: #1d2732;
  --line: #25303c;
  --line-2: #33404f;
  --line-3: #4b5a6b;
  --txt: #e9eef4;
  --txt-2: #a8b6c6;
  --txt-3: #7d8b9b;
  --accent: #3aabec;
  --accent-2: #2b93cf;
  --accent-soft: rgba(58, 171, 236, .14);
  --accent-line: rgba(58, 171, 236, .34);
  --red: #ff6b6b;
  --brand: #3aabec;
  --blue: #6f9dff;
  --ok: #35c48f;
  --warn: #e3a33f;
  --bad: #f4736a;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .45);
  --sh-2: 0 4px 16px -6px rgba(0, 0, 0, .62);
  --sh-3: 0 18px 44px -18px rgba(0, 0, 0, .72);
  --sh-4: 0 32px 70px -24px rgba(0, 0, 0, .82);
}

/* Перемикач теми */
.theme-toggle {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  color: var(--txt-2); padding: 0; line-height: 0;
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-line); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .tt-sun { display: none; }
html[data-theme="dark"] .theme-toggle .tt-moon { display: none; }
html[data-theme="dark"] .theme-toggle .tt-sun { display: block; }

/* вимкнена кнопка (напр. «Позначити як видане» до друку) */
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; flex-shrink: 0; }

::selection { background: rgba(14, 147, 221, .18); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f2f4f7; }
::-webkit-scrollbar-thumb { background: #ccd3dd; border-radius: 6px; border: 2px solid #f2f4f7; }
::-webkit-scrollbar-thumb:hover { background: #b3bcc9; }

/* ============================================================
   primitives
   ============================================================ */

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--s5); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--txt);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--t), border-color var(--t), transform var(--t), color var(--t), box-shadow var(--t);
}
.btn:hover { background: var(--surface-2); border-color: var(--line-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(14, 147, 221, .45);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.btn-soft { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.btn-soft:hover { background: rgba(14, 147, 221, .14); border-color: var(--accent); }

.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--txt-2); }
.btn-ghost:hover { color: var(--txt); background: var(--surface-2); }

.btn-lg { height: 46px; padding: 0 22px; font-size: 14px; border-radius: var(--r-md); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--r-xs);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--txt-2);
  transition: var(--t);
}
.icon-btn:hover { color: var(--txt); background: var(--surface-2); border-color: var(--line-2); }
.icon-btn svg { width: 15px; height: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--txt-3);
}
.input, .select {
  height: 42px;
  width: 100%;
  padding: 0 13px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--txt);
  font-size: 13.5px;
  outline: 0;
  transition: border-color var(--t), box-shadow var(--t);
}
.input::placeholder { color: #9aa3b1; }
.input:hover, .select:hover { border-color: var(--line-3); }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 147, 221, .12); }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f7889' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 15px;
  cursor: pointer;
}
.select:disabled { opacity: .55; cursor: not-allowed; background-color: var(--surface-2); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge.hit { background: #e7f7ee; color: #0b7a45; }
.badge.sale { background: #fde8e8; color: #c2131b; }
.badge.new { background: #e8effd; color: #1a56db; }
.badge.soft { background: var(--surface-3); color: var(--txt-2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--txt-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--t);
}
.chip:hover { border-color: var(--line-3); color: var(--txt); }
.chip.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.chip .x { width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); }
.chip .x:hover { background: var(--accent); color: #fff; }
.chip .x svg { width: 8px; height: 8px; }

.rating { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--txt-3); }
.rating svg { width: 12px; height: 12px; color: #f5a524; }
.rating b { color: var(--txt); font-weight: 700; }

.av {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.av-sm { width: 26px; height: 26px; border-radius: 7px; font-size: 11px; }

.sep { height: 1px; background: var(--line); border: 0; margin: 0; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.hidden { display: none !important; }

/* ============================================================
   topbar + header + catnav
   ============================================================ */

.topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--txt-3);
}
.topbar-in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--s5);
  height: 34px;
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.tb-city {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--txt-2);
  background: none;
  border: 0;
  padding: 0;
}
.tb-city svg { width: 13px; height: 13px; color: var(--accent); }
.tb-city:hover { color: var(--accent); }
.tb-links { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.tb-links a:hover { color: var(--accent); }
.tb-links .lang { font-weight: 700; color: var(--txt-2); }
.tb-links .lang:hover { color: var(--accent); }
.tb-sep { width: 1px; height: 12px; background: var(--line-2); }

.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px -6px rgba(16, 24, 40, .2);
}
.hdr-in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--s5);
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--s5);
}

.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-img { height: 38px; width: auto; display: block; }
.brand-word {
  display: inline-flex;
  align-items: baseline;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1;
  color: var(--brand);
  font-style: italic;
}
.bw-i { position: relative; }
.bw-i::before {
  content: "";
  position: absolute;
  top: -.08em; left: 50%;
  transform: translateX(-50%);
  width: .22em; height: .22em;
  background: var(--red);
  border-radius: 50%;
}
.bw-plus { font-style: normal; margin-left: .04em; }
.logo-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--txt-3);
  letter-spacing: .02em;
  line-height: 1.2;
  max-width: 96px;
}

.srch {
  flex: 1;
  min-width: 0;
  max-width: 620px;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 4px 0 13px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  transition: var(--t);
}
.srch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 147, 221, .1); }
.srch-ico { width: 16px; height: 16px; color: var(--txt-3); }
.srch input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  font-size: 13.5px;
}
.srch input::placeholder { color: #9aa3b1; }
.srch input::-webkit-search-cancel-button { display: none; }
.srch-btn {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  transition: background var(--t);
}
.srch-btn:hover { background: var(--accent-2); }
.srch-btn-ico { display: none; }

/* ── Історія VIN-підборів (кнопка між «Знайти» і «Мій гараж») ── */
.vin-hist { position: relative; display: inline-flex; flex-shrink: 0; margin-left: 8px; }
.vin-hist-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--accent-soft, #eef4ff);
  color: var(--txt-2); font-size: 12.5px; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: var(--t);
}
.vin-hist-btn svg { width: 18px; height: 18px; }
.vin-hist-btn:hover { color: var(--accent); border-color: var(--accent); }
.vin-hist-btn[aria-expanded="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.vin-hist-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  width: min(360px, 90vw); max-height: 64vh; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 22px 56px rgba(15, 23, 42, .28);
  display: flex; flex-direction: column;
  animation: vhp-in .14s ease;
}
@keyframes vhp-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.vhp-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--accent-soft, #eef4ff), transparent);
}
.vhp-h-title { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--txt); }
.vhp-h-title svg { width: 16px; height: 16px; color: var(--accent); }
.vhp-clear {
  border: 0; background: none; color: var(--txt-3); font-size: 11.5px; font-weight: 600;
  cursor: pointer; padding: 4px 7px; border-radius: 6px; transition: var(--t);
}
.vhp-clear:hover { color: var(--accent); background: rgba(14,147,221,.12); }
.vhp-list { overflow-y: auto; padding: 6px; }
.vhp-empty { padding: 26px 16px; text-align: center; color: var(--txt-3); font-size: 12.5px; line-height: 1.45; }
.vhp-item {
  display: block; width: 100%; text-align: left; padding: 10px 12px;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  transition: var(--t); margin-bottom: 2px; position: relative;
}
.vhp-item:last-child { margin-bottom: 0; }
.vhp-item:hover { background: var(--accent-soft, #eef4ff); }
.vhp-item::before {
  content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px;
  border-radius: 3px; background: var(--accent); opacity: 0; transition: var(--t);
}
.vhp-item:hover::before { opacity: 1; }
.vhp-item .vhp-vin { display: block; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .3px; word-break: break-all; line-height: 1.3; }
.vhp-item .vhp-label { display: block; font-size: 13px; color: var(--txt); font-weight: 600; margin-top: 3px; line-height: 1.3; }
.vhp-item .vhp-meta { display: block; font-size: 11.5px; color: var(--txt-2); margin-top: 2px; line-height: 1.3; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; }
.nav-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 54px;
  height: 46px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--txt-2);
  font-size: 10.5px;
  font-weight: 500;
  transition: var(--t);
  flex-shrink: 0;
}
.nav-btn svg { width: 19px; height: 19px; }
.nav-btn:hover { color: var(--accent); background: var(--accent-soft); }
.nav-btn.has-vehicle { color: var(--accent); }
.nav-btn .dot-badge {
  position: absolute;
  top: 4px; right: 8px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  border: 2px solid var(--surface);
}
#vehicle-label { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.catnav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 64px;
  z-index: 55;
}
.catnav-in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--s5);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.catnav-in::-webkit-scrollbar { display: none; }
.catnav a, .catnav button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 11px;
  border: 0;
  background: none;
  color: var(--txt-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--t);
}
.catnav a:hover, .catnav button:hover { color: var(--accent); border-bottom-color: var(--accent-line); }
.catnav .all {
  color: var(--accent);
  font-weight: 700;
  margin-left: auto;
  border-bottom-color: transparent;
}
.catnav .all:hover { border-bottom-color: var(--accent); }

/* ============================================================
   home blocks
   ============================================================ */

.app { position: relative; z-index: 1; min-height: 60vh; }

.block { padding: var(--s7) 0 0; }
.block.alt { background: var(--bg-2); padding: var(--s7) 0; margin-top: var(--s7); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.blk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s4);
}
.blk-head h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.blk-head p { font-size: 12px; color: var(--txt-3); margin-top: 2px; }
.blk-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.blk-link svg { width: 14px; height: 14px; }
.blk-link:hover { color: var(--accent-2); }

/* promo */
.promo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.promo {
  position: relative;
  min-height: 186px;
  border-radius: var(--r-lg);
  padding: 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t), box-shadow var(--t);
}
.promo:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.promo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%);
}
.promo.red { background: linear-gradient(150deg, #ef2a33, #9d0c14); }
.promo.dark { background: linear-gradient(150deg, #2b3240, #0d1117); }
.promo.blue { background: linear-gradient(150deg, #2f6bff, #0b2f96); }
.promo.amber { background: linear-gradient(150deg, #f7a21b, #b45309); }
.promo .tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 4px;
  padding: 3px 7px;
  margin-bottom: auto;
}
.promo b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 4px; }
.promo span { font-size: 11.5px; opacity: .82; line-height: 1.35; }
.promo .go {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
}
.promo .go svg { width: 13px; height: 13px; }

/* number search */
.numsearch {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--sh-1);
}
.numsearch h3 { font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.numsearch p { font-size: 12px; color: var(--txt-3); margin-bottom: 14px; }
.numsearch-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 10px; align-items: end; }

/* steps */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.step {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.step:nth-child(2n) { border-right: 0; }
.step:nth-last-child(-n+2) { border-bottom: 0; }
.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 11.5px;
  font-weight: 800;
  flex-shrink: 0;
}
.step b { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.step span { font-size: 11.5px; color: var(--txt-3); line-height: 1.45; }

/* features */
.feat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 9px;
  padding: 18px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: var(--t);
}
.feat:hover { border-color: var(--accent-line); box-shadow: var(--sh-2); }
.feat .ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.feat .ico svg { width: 19px; height: 19px; }
.feat b { font-size: 12px; font-weight: 700; line-height: 1.3; }

/* category strip */
.catstrip { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.catstrip a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
  transition: var(--t);
}
.catstrip a:hover { border-color: var(--accent-line); box-shadow: var(--sh-2); transform: translateY(-2px); }
.catstrip .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--txt-2);
  transition: var(--t);
}
.catstrip .ico svg { width: 19px; height: 19px; }
.catstrip a:hover .ico { background: var(--accent-soft); color: var(--accent); }
.catstrip b { font-size: 11.5px; font-weight: 600; line-height: 1.25; }

/* body part tiles */
.bodytiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bodytile {
  position: relative;
  background-size: 320%;
  background-repeat: no-repeat;
  background-color: #e9edf3;
  height: 168px;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: #fff;
  isolation: isolate;
  transition: transform var(--t), box-shadow var(--t);
}
.bodytile:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.bodytile::before { display: none; }

.bodytile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 20, .05) 0%, rgba(10, 14, 20, .35) 45%, rgba(10, 14, 20, .82) 100%);
}
.bodytile .bi {
  position: absolute;
  top: 50%; right: 18px;
  transform: translateY(-58%);
  width: 76px; height: 76px;
  opacity: .45;
  color: #fff;
}
.bodytile .bi svg { width: 76px; height: 76px; stroke-width: 1; }
.bodytile b { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.bodytile small { display: block; font-size: 10.5px; opacity: .75; margin-top: 1px; }

/* brands */
.brandgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.brandcard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: var(--t);
}
.brandcard:hover { border-color: var(--accent-line); box-shadow: var(--sh-2); }
.brandcard .bm {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 800;
  color: var(--txt-2);
  flex-shrink: 0;
}
.brandcard b { display: block; font-size: 13px; font-weight: 700; }
.brandcard span { font-size: 11px; color: var(--txt-3); }

.brandtable {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}
.brandtable a {
  font-size: 12.5px;
  color: var(--txt-2);
  padding: 3px 0;
  border-bottom: 1px solid transparent;
}
.brandtable a:hover { color: var(--accent); }
/* повний список марок (487) — обмежуємо висоту, щоб не розтягувати головну */
#home-brands {
  max-height: 440px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#home-brands::-webkit-scrollbar { width: 8px; }
#home-brands::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
#home-brands .cc-load { grid-column: 1 / -1; }

/* product strip on home */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 10px;
}
.pgrid.list { grid-template-columns: 1fr; gap: 8px; }

/* ============================================================
   product card
   ============================================================ */

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.pcard:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--sh-2); }
.pcard:focus-within { border-color: var(--accent-line); }

.pc-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(72% 72% at 50% 42%, #f7f9fc 0%, #eef1f6 60%, #e7ebf2 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--tint, none);
  transform: scaleX(var(--flip, 1));
  transition: transform .35s var(--ease);
}
/* великі/списочні картки — показуємо деталь цілком, без обрізання */
.pcard--wide .pc-media img,
.pgrid.list .pc-media img { object-fit: contain; }
.pcard:hover .pc-media img { transform: scaleX(var(--flip, 1)) scale(1.05); }

/* ── ВОДЯНИЙ ЗНАК на всі фото товарів (ІНТЕР+) ── */
.pc-media {
  isolation: isolate;
}
.pc-media::after {
  content: "ІНТЕР+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 28px/1 Manrope, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: rgba(255, 255, 255, 0.35);
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 24px,
    rgba(255, 255, 255, 0.08) 24px,
    rgba(255, 255, 255, 0.08) 48px
  );
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* при наведенні — водяний знак стає трохи менш хиливим, фото чітше */
.pcard:hover .pc-media::after {
  color: rgba(255, 255, 255, 0.25);
}
/* великі картки (список) — менший шрифт водяного знака */
.pcard--wide .pc-media::after,
.pgrid.list .pc-media::after {
  font-size: 20px;
}
/* детальна сторінка товару — великий водяний знак по центру фото */
.pp .gal-main::after {
  content: "ІНТЕР+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 800 42px/1 Manrope, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: rgba(255, 255, 255, 0.3);
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 32px,
    rgba(255, 255, 255, 0.06) 32px,
    rgba(255, 255, 255, 0.06) 64px
  );
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pp .gal-main { position: relative; isolation: isolate; }

.pc-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; max-width: calc(100% - 46px); }
.pc-fav {
  position: absolute;
  top: 7px; right: 7px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  color: var(--txt-3);
  opacity: 0;
  transition: var(--t);
}
.pc-fav svg { width: 14px; height: 14px; }
.pcard:hover .pc-fav, .pc-fav.on { opacity: 1; }
.pc-fav:hover { color: var(--accent); border-color: var(--accent-line); }
.pc-fav.on { color: var(--accent); }

.pc-body { display: flex; flex-direction: column; flex: 1; padding: 11px 12px 12px; min-width: 0; }
.pc-brand { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-3); margin-bottom: 4px; }
.pc-name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--txt);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}
.pc-sku {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10px;
  color: var(--txt-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}
.pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 9px; }
.pc-stock { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--ok); font-weight: 600; }
.st-dot { width: 5px; height: 5px; border-radius: 50%; }
.st-dot.ok { background: var(--ok); }
.st-dot.low { background: #f5a524; }
.st-dot.out { background: var(--bad); }

.pc-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); }
.pc-price { display: flex; flex-direction: column; }
.pc-price .now { font-size: 16px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pc-price .now s { font-size: 10.5px; font-weight: 500; color: var(--txt-3); margin-left: 4px; }
.pc-price .cur { font-size: 10px; color: var(--txt-3); }
.pc-buy {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 7px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  transition: var(--t);
}
.pc-buy svg { width: 14px; height: 14px; }
.pc-buy:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.pgrid.list .pcard { flex-direction: row; }
.pgrid.list .pc-media { width: 150px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); flex-shrink: 0; }
.pgrid.list .pc-body { padding: 12px 14px; }
.pgrid.list .pc-name { min-height: 0; -webkit-line-clamp: 1; font-size: 13.5px; }

/* ============================================================
   company card
   ============================================================ */

.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.ccard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: var(--t);
}
.ccard:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--sh-2); }
.cc-top { display: flex; align-items: flex-start; gap: 10px; }
.cc-name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.cc-name svg { width: 13px; height: 13px; color: var(--blue); }
.cc-sub { font-size: 11px; color: var(--txt-3); margin-top: 1px; }
.cc-stats { display: flex; gap: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.cc-stats div { display: flex; flex-direction: column; }
.cc-stats b { font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cc-stats span { font-size: 10px; color: var(--txt-3); }
.cc-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.cc-tag { font-size: 10px; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--txt-2); }

/* ============================================================
   catalog
   ============================================================ */

.page { padding: var(--s5) 0 var(--s8); }
.page-head { margin-bottom: var(--s4); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--txt-3); margin-bottom: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 11px; height: 11px; opacity: .5; }
.crumbs span { color: var(--txt-2); }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.page-sub { font-size: 12.5px; color: var(--txt-3); margin-top: 3px; }

/* «Ваше авто» — запам'ятований автомобіль (розпізнаний за VIN тощо) */
.mycar {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  padding: 8px 10px 8px 12px; border: 1px solid var(--accent-line, var(--line));
  background: var(--accent-soft, var(--bg-2)); border-radius: 10px;
  font-size: 12.5px; color: var(--txt-2);
}
.mycar-l { display: inline-flex; align-items: center; gap: 7px; }
.mycar-l b { color: var(--txt); }
.mycar-hint { color: var(--txt-3); }
.mycar-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border: 0; border-radius: 6px; cursor: pointer;
  background: transparent; color: var(--txt-3); transition: background .15s, color .15s;
}
.mycar-x:hover { background: var(--surface-3); color: var(--txt); }
.mycar-x svg { width: 14px; height: 14px; }

.cat-layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.cat-layout--full { grid-template-columns: minmax(0, 1fr); }

/* ── сітка категорій (огляд каталогу) ── */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.cg-block {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0 0 6px; overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.cg-block:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.cg-hd {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 14px; margin: 0 0 4px;
  border-bottom: 1px solid var(--line);
}
.cg-hd svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.cg-hd b { font-size: 14px; font-weight: 800; letter-spacing: -.01em; color: var(--txt); }
.cg-n { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--txt-3); font-variant-numeric: tabular-nums; }
.cg-rows { display: flex; flex-direction: column; }
.cg-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px; font-size: 12.5px; color: var(--txt-2);
  border-bottom: 1px dashed var(--line);
}
.cg-row:last-child { border-bottom: 0; }
.cg-img {
  width: 34px; height: 34px; flex-shrink: 0; object-fit: contain;
  border-radius: 6px; background: #f4f6f9; border: 1px solid var(--line);
}
.cg-img--e { display: grid; place-items: center; color: var(--txt-3); }
.cg-img--e svg { width: 16px; height: 16px; }
.cg-rname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-rn { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--txt-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
@media (max-width: 1020px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cat-grid { grid-template-columns: 1fr; } }

.filters { position: sticky; top: 122px; display: flex; flex-direction: column; gap: 8px; }
.filters-toggle { display: none; }
.fblock { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.fblock-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 13px 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--txt-3);
}
.fblock-hd button { background: none; border: 0; color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.fblock-hd button:hover { text-decoration: underline; }
.fblock-bd { padding: 0 9px 10px; display: flex; flex-direction: column; gap: 1px; }

/* Пілюля вибраного авто у фільтрах */
.car-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 12.5px; font-weight: 700;
  color: var(--txt);
}
.car-pill svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

.fcat {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  border: 0;
  background: none;
  color: var(--txt-2);
  font-size: 12.5px;
  text-align: left;
  width: 100%;
  transition: var(--t);
}
.fcat svg { width: 15px; height: 15px; color: var(--txt-3); }
.fcat .n { margin-left: auto; font-size: 10.5px; color: var(--txt-3); font-variant-numeric: tabular-nums; }
.fcat:hover { background: var(--surface-2); color: var(--txt); }
.fcat.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.fcat.on svg { color: var(--accent); }
.fcat.on .n { color: var(--accent); }

.check {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 4px;
  font-size: 12.5px;
  color: var(--txt-2);
  cursor: pointer;
  user-select: none;
  border-radius: 5px;
}
.check:hover { color: var(--txt); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  width: 15px; height: 15px;
  border-radius: 4px;
  border: 1px solid var(--line-3);
  background: var(--surface);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: var(--t);
}
.check .box svg { width: 9px; height: 9px; opacity: 0; color: #fff; }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box svg { opacity: 1; }
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check .n { margin-left: auto; font-size: 10.5px; color: var(--txt-3); }

.range { display: flex; flex-direction: column; gap: 8px; padding: 4px 4px 2px; }
.range-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--txt-3); }
.range-top b { color: var(--txt); font-variant-numeric: tabular-nums; }
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) var(--p, 100%), #e3e7ee var(--p, 100%));
  outline: 0;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  cursor: grab;
  box-shadow: 0 1px 4px rgba(16, 24, 40, .3);
}
input[type=range]::-webkit-slider-thumb:active { cursor: grabbing; }

.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .count { font-size: 12.5px; color: var(--txt-3); margin-right: auto; }
.toolbar .count b { color: var(--txt); font-weight: 700; }
.view-toggle { display: flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: var(--surface); }
.view-toggle button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: transparent; color: var(--txt-3); }
.view-toggle button svg { width: 14px; height: 14px; }
.view-toggle button.on { background: var(--surface-3); color: var(--txt); }

.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }



/* ============================================================
   search results — list view
   ============================================================ */

.sr-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sr-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: var(--t);
}
.sr-row:hover { border-color: var(--accent-line); box-shadow: var(--sh-1); }
.sr-img { width: 48px; height: 48px; border-radius: 7px; background: radial-gradient(70% 70% at 50% 45%, #f7f9fc, #e9edf4); display: grid; place-items: center; overflow: hidden; }
.sr-img img { width: 80%; height: 80%; object-fit: contain; }
.sr-body { min-width: 0; }
/* ім'я товару як посилання на сторінку (решта картки додає в кошик) */
a.pc-name, a.sr-name { display: block; text-decoration: none; color: var(--txt); }
a.pc-name:hover, a.sr-name:hover { color: var(--accent); }
.pcard { cursor: pointer; }
.sr-row { cursor: pointer; }

.sr-name { font-size: 12.5px; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.sr-sku { font-size: 10.5px; color: var(--txt-3); }
.sr-oe { font-size: 10px; color: var(--txt-3); margin-top: 2px; }
.sr-price { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-stock { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.sr-stock.yes { color: #0f9d58; background: #e7f7ee; }
.sr-stock.no { color: #d92d20; background: #fde8e8; }
.sr-add { justify-self: end; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border-radius: 6px; }
.sr-add svg { width: 12px; height: 12px; }

@media (max-width: 900px) {
  .sr-list { grid-template-columns: 1fr; }
}

/* ============================================================
   product page
   ============================================================ */

.pp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.gallery { position: sticky; top: 122px; }
.gal-main {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: radial-gradient(70% 70% at 50% 40%, #f9fbfd 0%, #eef1f6 60%, #e6eaf1 100%);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gal-main img { width: 100%; height: 100%; object-fit: contain; filter: var(--tint, none); transform: scaleX(var(--flip, 1)); }
.gal-main .zoom-hint {
  position: absolute;
  bottom: 10px; right: 10px;
  font-size: 10.5px;
  color: var(--txt-3);
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 7px;
}

.pp-brand { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }
.pp-title { font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.16; margin-bottom: 9px; }
.pp-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--txt-3); margin-bottom: var(--s4); }
.pp-sub .mono { color: var(--txt-2); }

.buybox { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 18px; margin-bottom: var(--s4); box-shadow: var(--sh-1); }
.bb-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bb-price .now { font-size: 30px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.bb-price .old { font-size: 13px; color: var(--txt-3); text-decoration: line-through; }
.bb-price .save { font-size: 10.5px; font-weight: 800; color: #c2131b; background: #fde8e8; border-radius: 4px; padding: 2px 6px; }

.bb-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--txt-2); padding: 8px 0; }
.bb-row + .bb-row { border-top: 1px solid var(--line); }
.bb-row svg { width: 14px; height: 14px; color: var(--txt-3); }
.bb-row b { color: var(--txt); font-weight: 600; }

.bb-actions { display: flex; gap: 8px; margin-top: 14px; }
.qty { display: flex; align-items: center; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.qty button { width: 36px; height: 100%; border: 0; background: transparent; color: var(--txt-2); display: grid; place-items: center; }
.qty button:hover { background: var(--surface-2); color: var(--txt); }
.qty button svg { width: 12px; height: 12px; }
.qty input { width: 38px; height: 100%; border: 0; background: transparent; outline: 0; text-align: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

.seller-box { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--s4); background: var(--surface); }
.seller-row { display: flex; align-items: center; gap: 9px; padding: 10px 12px; font-size: 12.5px; border-bottom: 1px solid var(--line); transition: var(--t); }
.seller-row:last-child { border-bottom: 0; }
.seller-row:hover { background: var(--surface-2); }
.seller-row .nm { font-weight: 600; }
.seller-row .ct { font-size: 10.5px; color: var(--txt-3); }
.seller-row .pr { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: var(--s4); overflow-x: auto; }
.tab {
  padding: 10px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--txt-3);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--t);
}
.tab:hover { color: var(--txt-2); }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }

.spec-table { display: flex; flex-direction: column; }
.spec-row { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row span { color: var(--txt-3); }
.spec-row b { font-weight: 600; text-align: right; }

/* --- галерея товару: мініатюри --- */
.gal-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gal-count {
  margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--muted, #6b7280);
  letter-spacing: .02em;
}
.gal-thumb {
  width: 64px; height: 64px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--surface); display: grid; place-items: center; transition: border-color .15s, box-shadow .15s;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gal-thumb:hover { border-color: var(--accent-line); }
.gal-thumb.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

/* --- сумісність з автомобілями (реальні дані API) --- */
.pdc { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 16px 18px; margin: 18px 0; }
.pdc-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 12px; }
.pdc-head .ico, .pdc-head svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.pdc-head b { font-size: 13.5px; }
.pdc-n { margin-left: auto; font-size: 11.5px; color: var(--txt-3); }
.pdc-brands { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pdc-brand {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px; background: var(--accent-soft);
  border: 1px solid var(--accent-line); color: var(--accent);
}
.pdc-list { display: grid; gap: 10px; }
.pdc-model { border-top: 1px dashed var(--line); padding-top: 10px; }
.pdc-model:first-child { border-top: 0; padding-top: 0; }
.pdc-model > b { font-size: 12.5px; display: block; margin-bottom: 6px; }
.pdc-eng { display: flex; flex-wrap: wrap; gap: 5px; }
.pdc-eng-tag {
  font-size: 11px; padding: 3px 8px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--txt-2);
}
.pdc-eng-more, .pdc-more { font-size: 11px; color: var(--txt-3); align-self: center; }
.pdc-more { margin-top: 10px; }
/* згортання/розгортання блоку «Сумісність з автомобілями» */
.pdc-head { cursor: pointer; user-select: none; }
.pdc-x {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-3); color: var(--txt-2);
  border: 0; cursor: pointer; flex: none; padding: 0;
  transition: var(--t);
}
.pdc-x:hover { background: var(--accent); color: #fff; }
.pdc-x svg { width: 10px; height: 10px; transition: transform .2s ease; }
.pdc.is-collapsed .pdc-body { display: none; }
.pdc.is-collapsed .pdc-x svg { transform: rotate(45deg); }

.more-wrap { display: flex; justify-content: center; margin-top: 26px; }

/* --- каталог авто (API): марка → модель → двигун --- */
.cc-load { padding: 26px 8px; text-align: center; font-size: 12.5px; color: var(--txt-3); }
.cc-count { font-size: 12.5px; color: var(--txt-3); margin-bottom: 10px; }
.cc-count b { color: var(--txt); }
.cc-spin {
  display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid var(--line-2); border-top-color: var(--accent);
  border-radius: 50%; animation: cc-spin .7s linear infinite;
}
@keyframes cc-spin { to { transform: rotate(360deg); } }
.cc-search { margin-bottom: 12px; }
.cc-brands { display: flex; flex-wrap: wrap; gap: 6px; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
.cc-brand {
  font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--txt-1);
  transition: border-color .15s, background .15s;
}
.cc-brand:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.cc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cc-head b { font-size: 14px; }
.cc-head .muted { font-size: 11.5px; color: var(--txt-3); margin-left: auto; }
.cc-models { display: grid; gap: 6px; max-height: 54vh; overflow-y: auto; padding-right: 4px; }
.cc-model {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--txt-1);
}
.cc-model:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.cc-model b { font-size: 12.5px; }
.cc-model span { font-size: 11px; color: var(--txt-3); flex: none; }
.cc-engines { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
@media (max-width: 560px) { .cc-engines { grid-template-columns: 1fr; } }
.cc-engine {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--txt-2);
  transition: border-color .15s ease, background .15s ease;
}
.cc-engine:hover { border-color: var(--accent-line); }
.cc-engine.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.ce-name { font-size: 12.5px; font-weight: 700; color: var(--txt); line-height: 1.3; }
.cc-engine.on .ce-name { color: var(--accent); }
.ce-specs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ce-cell { display: inline-flex; align-items: baseline; gap: 3px; font-size: 12px; color: var(--txt-2); }
.ce-cell b { font-size: 13px; font-weight: 800; color: var(--txt); }
.ce-cell i { font-style: normal; font-size: 10px; color: var(--txt-3); }
.ce-fuel { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ok); background: #e8f6ee; border-radius: 5px; padding: 1px 6px; }
.ce-tags { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.ce-drive {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: #7a4bd0; background: #f1ebfb; border-radius: 5px; padding: 1px 6px;
}
.ce-years { font-size: 11px; color: var(--txt-3); }
/* чіпи категорій над товарами (коли вибране авто) */
.ccat-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; margin: 0 0 4px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.ccat-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--txt-2); font-size: 12.5px; font-weight: 600;
  white-space: nowrap; transition: border-color .15s, background .15s, color .15s;
}
.ccat-chip:hover { border-color: var(--accent-line); }
.ccat-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ccat-chip .n { font-size: 11px; font-weight: 700; color: var(--txt-3); }
.ccat-chip.on .n { color: var(--accent); }

/* фільтри палива / приводу у виборі двигуна */
.cc-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.cc-filter {
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--txt-2);
  transition: border-color .15s, background .15s, color .15s;
}
.cc-filter:hover { border-color: var(--accent-line); }
.cc-filter.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.cc-foot { margin-top: 6px; }

/* --- VIN: вибір моделі --- */
.vin-cands { display: grid; gap: 8px; }
.vin-cand {
  display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer;
  padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--txt-1); transition: border-color .15s, background .15s;
}
.vin-cand:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.vin-cand b { font-size: 13px; }
.vin-cand span { font-size: 11.5px; color: var(--txt-3); }
.vin-decoded { margin: 0 20px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; color: var(--txt-1); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.vin-decoded b { font-weight: 800; }

/* --- OEM-коди під ціною --- */
.bb-oe { margin: 10px 0 12px; }
.bb-oe-h { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--txt-3); margin-bottom: 6px; }
.bb-oe-h .muted { font-weight: 500; letter-spacing: 0; text-transform: none; }
.bb-oe-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.oe-tag {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 11px; padding: 4px 8px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--txt-2);
}
.oe-tag b { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--txt-1); letter-spacing: .02em; }
.oe-tag i { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--txt-3); }
.oe-tag.oem { background: var(--accent-soft); border-color: var(--accent-line); }
.oe-tag.oem i { color: var(--accent); }
.oe-details { margin-top: 7px; }
.oe-details > summary {
  cursor: pointer; list-style: none; font-size: 11px; color: var(--accent); font-weight: 600; width: fit-content;
}
.oe-details > summary::-webkit-details-marker { display: none; }
.oe-details > summary::before { content: '+'; margin-right: 3px; }
.oe-details[open] > summary::before { content: '−'; }
.oe-details .bb-oe-tags { margin-top: 7px; }
.bb-oe-empty { font-size: 11.5px; color: var(--txt-3); }

/* --- мінімальне замовлення --- */
.min-order-warn {
  display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--warn-line, #f0c36d);
  background: var(--warn-soft, #fdf6e8); font-size: 12px; color: var(--txt-2);
}
.min-order-warn svg { width: 16px; height: 16px; color: var(--warn, #c80); flex: none; margin-top: 1px; }
.min-order-warn b { color: var(--txt-1); }
.mow-sub { margin-top: 2px; font-size: 11.5px; }

/* --- замовлення: розгорнутий список товарів --- */
.odet { margin: 0; }
.odet > summary {
  cursor: pointer; font-size: 11.5px; color: var(--accent); font-weight: 600;
  list-style: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border: 1px solid var(--accent-line); border-radius: 6px;
  background: var(--accent-soft); width: fit-content;
}
.odet > summary::-webkit-details-marker { display: none; }
.odet > summary::before { content: '▸'; font-size: 9px; transition: transform .15s; }
.odet[open] > summary::before { transform: rotate(90deg); }
.odet-in { margin-top: 7px; display: grid; gap: 3px; max-width: 340px; }
.oi { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--txt-2); }
.oi-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oi-q { color: var(--accent); font-weight: 700; flex: none; }

/* --- адмінка: націнка + завантаження API --- */
.admin-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.admin-form .field { min-width: 140px; }
.admin-api { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 16px; }
.admin-api-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.admin-api-status { margin-top: 10px; font-size: 12px; color: var(--txt-2); }
.admin-api-status b { color: var(--accent); }

.fit-list { display: flex; flex-wrap: wrap; gap: 5px; }
.fit-tag { font-size: 11.5px; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--txt-2); }
.fit-tag.cur { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 600; }

.review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.review-hd b { font-size: 12.5px; }
.review-hd span { font-size: 11px; color: var(--txt-3); }
.review p { font-size: 12.5px; color: var(--txt-2); line-height: 1.55; }

/* ============================================================
   company page
   ============================================================ */

.cp-head {
  display: flex; align-items: flex-start; gap: var(--s4);
  padding: var(--s5);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: var(--s5);
  flex-wrap: wrap;
  box-shadow: var(--sh-1);
}
.cp-head .av { width: 60px; height: 60px; border-radius: 13px; font-size: 20px; }
.cp-id { flex: 1; min-width: 220px; }
.cp-id h1 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cp-id h1 svg { width: 17px; height: 17px; color: var(--blue); }
.cp-meta { display: flex; gap: 13px; flex-wrap: wrap; font-size: 11.5px; color: var(--txt-3); margin-top: 6px; }
.cp-meta span { display: inline-flex; align-items: center; gap: 4px; }
.cp-meta svg { width: 12px; height: 12px; }
.cp-kpi { display: flex; gap: var(--s5); flex-wrap: wrap; }
.cp-kpi div { display: flex; flex-direction: column; }
.cp-kpi b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cp-kpi span { font-size: 10px; color: var(--txt-3); }

/* ============================================================
   account
   ============================================================ */

.acc-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.acc-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 122px; }
.acc-nav button {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px;
  border-radius: 7px;
  border: 0;
  background: none;
  color: var(--txt-2);
  font-size: 12.5px;
  text-align: left;
  transition: var(--t);
}
.acc-nav button svg { width: 15px; height: 15px; color: var(--txt-3); }
.acc-nav button:hover { background: var(--surface-2); color: var(--txt); }
.acc-nav button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.acc-nav button.on svg { color: var(--accent); }

.panel { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 18px; }
.panel + .panel { margin-top: 10px; }
.panel h3 { font-size: 14.5px; font-weight: 800; margin-bottom: 3px; }
.panel .hint { font-size: 11.5px; color: var(--txt-3); margin-bottom: 14px; }

.order-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.order-row:last-child { border-bottom: 0; }
.order-row .id { font-family: ui-monospace, Consolas, monospace; color: var(--txt-2); }
.order-row .st { margin-left: auto; }
/* Блок «Доставка / Оплата / Примітка» у списках замовлень */
.order-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 5px; font-size: 11.5px; color: var(--txt-2); }
.order-meta span { display: inline-flex; align-items: center; gap: 4px; }
.order-meta svg { width: 13px; height: 13px; color: var(--gold); }
.at-meta { font-size: 11.5px; line-height: 1.5; color: var(--txt-2); }
.at-meta b { color: var(--txt-1); }
.at-note { color: var(--txt-3); font-style: italic; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Примітка у чеку */
.rc-meta { margin: 4px 0; font-size: 11px; color: var(--txt-2); display: flex; flex-direction: column; gap: 2px; }
.rc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.rc-meta svg { width: 12px; height: 12px; }

/* ============================================================
   modal / drawer / toast
   ============================================================ */

.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(16, 24, 40, .45); animation: fade .18s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal-root { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 18px; pointer-events: none; }
.modal-root.open { display: flex; }

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-4);
  pointer-events: auto;
  animation: pop .2s var(--ease);
}
.modal.wide { max-width: 700px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }

.modal-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 0; }
.modal-hd h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.modal-hd p { font-size: 11.5px; color: var(--txt-3); margin-top: 2px; }
.modal-bd { padding: 16px 20px 18px; }
.modal-ft { padding: 0 20px 20px; display: flex; gap: 8px; }

/* drawer removed — cart is now a full-screen page (see .cart-*) */

/* cqty reused by the cart item controls */
.cqty { display: flex; align-items: center; height: 26px; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.cqty button { width: 24px; height: 100%; border: 0; background: transparent; color: var(--txt-2); display: grid; place-items: center; }
.cqty button:hover { background: var(--surface-2); color: var(--txt); }
.cqty button svg { width: 9px; height: 9px; }
.cqty span { min-width: 24px; text-align: center; font-size: 11.5px; font-variant-numeric: tabular-nums; }

.sum { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--txt-3); margin-bottom: 5px; }
.sum.total { font-size: 16px; color: var(--txt); font-weight: 800; margin: 10px 0 12px; }
.sum.total b { font-variant-numeric: tabular-nums; }

.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 7px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  background: #14161a;
  color: #fff;
  font-size: 12.5px;
  box-shadow: var(--sh-3);
  animation: pop .2s var(--ease);
}
.toast svg { width: 14px; height: 14px; color: #4ade80; }
.toast.warn svg { color: #fbbf24; }
.toast.out { animation: fade .18s reverse forwards; }

/* ============================================================
   footer
   ============================================================ */

.ftr { position: relative; z-index: 1; margin-top: var(--s8); border-top: 1px solid var(--line); background: var(--bg-2); }
.ftr-in { max-width: 1320px; margin: 0 auto; padding: var(--s7) var(--s5) var(--s6); display: grid; grid-template-columns: 1fr 2fr; gap: var(--s7); }
.ftr-brand p { font-size: 11.5px; color: var(--txt-3); line-height: 1.6; margin: 10px 0 12px; max-width: 300px; }
.ftr-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--txt-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 7px; background: var(--surface); }
.mini-badge svg { width: 11px; height: 11px; color: var(--txt-3); }
.ftr-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.ftr-cols h4 { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--txt-3); margin-bottom: 9px; font-weight: 800; }
.ftr-cols a { display: block; font-size: 12px; color: var(--txt-2); padding: 3px 0; }
.ftr-cols a:hover { color: var(--accent); }
.ftr-bot {
  max-width: 1320px; margin: 0 auto;
  padding: 12px var(--s5) 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 10.5px; color: var(--txt-3);
}
#ftr-build { opacity: .75; }
#ftr-build b { font-weight: 700; color: var(--txt-3); }

/* ============================================================
   misc
   ============================================================ */

.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--txt-3); background: var(--surface-2); }
.empty svg { width: 34px; height: 34px; margin: 0 auto 10px; opacity: .35; }
.empty b { display: block; font-size: 14px; color: var(--txt-2); margin-bottom: 4px; }
.empty p { font-size: 12px; }
.empty .btn { margin-top: 14px; }
/* стан «сервер пошуку недоступний» — не плутати з «нічого не знайдено» */
.empty--err { border-color: var(--warn-line, #e8b54a); background: var(--warn-bg, #fff8ec); color: var(--txt-2); }
.empty--err svg { opacity: 1; color: #d98b00; }
.empty--load .spin { display: block; width: 30px; height: 30px; margin: 0 auto 12px; border: 3px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   B2B partners block (home + account)
   ============================================================ */

.b2b {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s6);
  align-items: center;
  background: linear-gradient(135deg, #0d6fb8 0%, #0e93dd 55%, #1aa3e8 100%);
  border-radius: var(--r-xl);
  padding: var(--s7) var(--s6);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.b2b::before, .b2b::after { content: ""; position: absolute; border-radius: 50%; }
.b2b::before { right: -50px; top: -70px; width: 260px; height: 260px; background: rgba(255, 255, 255, .10); }
.b2b::after { right: 70px; bottom: -90px; width: 220px; height: 220px; background: rgba(255, 255, 255, .08); }
.b2b-l { position: relative; z-index: 1; }
.b2b-l .hero-tag { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.b2b-l .hero-tag svg { color: #fff; }
.b2b-l h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 8px; max-width: 460px; line-height: 1.2; }
.b2b-l p { font-size: 13px; opacity: .92; max-width: 480px; margin-bottom: 14px; }
.b2b-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; }
.b2b-list li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; }
.b2b-list svg { width: 17px; height: 17px; flex-shrink: 0; color: #fff; background: rgba(255, 255, 255, .2); border-radius: 50%; padding: 3px; box-sizing: border-box; }
.b2b-l .hero-cta .btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.b2b-l .hero-cta .btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.b2b-r { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.b2b-card {
  background: rgba(255, 255, 255, .97);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  text-align: center;
  color: var(--txt);
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 12px 28px -14px rgba(8, 30, 50, .5);
}
.b2b-card span { font-size: 11.5px; font-weight: 600; color: var(--txt-2); }
.b2b-card b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--accent-2); line-height: 1.1; }
.b2b-card small { font-size: 10.5px; color: var(--txt-3); }
.b2b-acc { border-color: var(--accent-line); background: var(--accent-soft); }

/* topbar B2B discount badge */
.tb-b2b {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-2);
  font-size: 11px; font-weight: 800;
  white-space: nowrap;
}
.tb-b2b svg { width: 12px; height: 12px; }

/* ============================================================
   catalog — results strip + sort
   ============================================================ */

.res-strip {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  padding: 10px 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.res-strip .rs-ico {
  width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
}
.res-strip .rs-ico svg { width: 15px; height: 15px; }
.res-strip b { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.res-strip .rs-n {
  margin-left: auto; font-size: 12px; font-weight: 600;
  color: var(--txt-2); background: var(--surface);
  border: 1px solid var(--line-2);
  padding: 3px 10px; border-radius: 100px;
}
.tb-sort { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; }
.tb-sort .tb-label { font-size: 11.5px; color: var(--txt-3); font-weight: 600; }

/* ============================================================
   product card — wide variant (catalog)
   ============================================================ */

/* «Широкі» картки (вид за замовчуванням): фото 150px + текст. Колонка має бути
   достатньо широкою, інакше «В наявності / Переглянути опис» розповзались. */
.pgrid.wide { grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 12px; }
@media (max-width: 1180px) { .pgrid.wide { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); } }
@media (max-width: 720px) { .pgrid.wide { grid-template-columns: 1fr; } }
.pc-disc {
  display: inline-block; margin-top: 3px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .04em;
  color: var(--ok); background: #e7f7ee; padding: 1px 6px; border-radius: 4px;
}
/* другий рядок бейджа — до якої суми діє знижка */
.pc-disc i {
  display: block; font-style: normal; font-size: 8.5px;
  font-weight: 700; letter-spacing: 0; opacity: .8; margin-top: 1px;
}
.pcard--wide { flex-direction: row; align-items: stretch; }
.pcard--wide .pc-media {
  width: 150px; aspect-ratio: 1 / 1;
  border-bottom: 0; border-right: 1px solid var(--line);
  flex-shrink: 0;
}
.pcard--wide .pc-body { padding: 14px 15px; gap: 0; flex: 1; }
.pcard--wide .pc-name { font-size: 14px; -webkit-line-clamp: 2; min-height: 0; margin-bottom: 10px; }
.pcard--wide .pc-row { display: flex; align-items: center; gap: 10px; }
.pcard--wide .pc-row--stock { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.pcard--wide .pc-stock { font-size: 12px; color: var(--ok); font-weight: 600; }
.pcard--wide .pc-stock .st-dot { width: 6px; height: 6px; }
.pcard--wide .pc-div { width: 1px; height: 14px; background: var(--line-2); }
.pcard--wide .pc-desc {
  font-size: 11.5px; color: var(--accent); font-weight: 600; cursor: pointer;
  border-bottom: 1px dashed transparent;
}
.pcard--wide .pc-desc:hover { border-bottom-color: var(--accent); }
.pcard--wide .pc-row--buy { padding-top: 11px; align-items: center; }
.pcard--wide .pc-price .now { font-size: 18px; }
.pcard--wide .pc-price .pc-disc { display: block; margin-top: 3px; }
.pcard--wide .pc-buy { width: 40px; height: 40px; border-radius: var(--r-md); }
.pcard--wide .pc-buy svg { width: 17px; height: 17px; }
.pcard--wide .pc-found { margin-top: 11px; font-size: 11px; color: var(--txt-3); }
.pcard--wide .pc-found b { color: var(--txt-2); }

/* ============================================================
   product page — B2B banner
   ============================================================ */

.bb-b2b {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 10px 0 2px;
  font-size: 12px; font-weight: 700; color: var(--ok);
  background: #e7f7ee; border: 1px solid #bfe9cf;
  padding: 6px 10px; border-radius: var(--r-sm);
}
.bb-b2b svg { width: 14px; height: 14px; }

/* ============================================================
   cart — full-screen page
   ============================================================ */

.cart-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: var(--s5);
}
.cs {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.cs-n {
  width: 28px; height: 28px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px; font-weight: 800;
  border: 1px solid var(--accent-line);
}
.cs b { display: block; font-size: 13px; font-weight: 700; line-height: 1.2; }
.cs span { font-size: 11px; color: var(--txt-3); }

.cart-top { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s4); }
.cart-oem { margin-top: 14px; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.cart-oem #cart-oem-status { white-space: nowrap; }
.cart-dd {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 16px;
  border: 1px solid var(--line-2);
  background: var(--surface); border-radius: var(--r-sm);
  font-size: 15px; font-weight: 800; color: var(--txt);
}
.cart-dd svg { width: 16px; height: 16px; color: var(--txt-3); }
.cart-n { font-size: 12.5px; color: var(--txt-2); font-weight: 600; }

.cart-empty {
  text-align: center; padding: 72px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg); background: var(--surface-2);
}
.cart-empty b { display: block; font-size: 18px; color: var(--txt); margin-bottom: 6px; }
.cart-empty p { font-size: 13px; color: var(--txt-3); margin-bottom: 18px; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s5); align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 10px; }
.ci {
  display: grid; grid-template-columns: 84px 1fr auto;
  gap: 14px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); align-items: center;
}
.ci-img {
  width: 84px; height: 84px; border-radius: 10px;
  background: radial-gradient(70% 70% at 50% 45%, #f7f9fc, #e9edf4);
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
}
.ci-img img { width: 82%; height: 82%; object-fit: contain; }
.ci-info { min-width: 0; }
.ci-brand { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-3); margin-bottom: 3px; }
.ci-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.ci-meta { font-size: 11px; color: var(--txt-3); font-family: ui-monospace, Consolas, monospace; margin-bottom: 5px; }
.ci-stock { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; }
.ci-ctl { display: flex; align-items: center; gap: 14px; }
.ci-price { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-end; }
.ci-price s { font-size: 10px; font-weight: 500; color: var(--txt-3); }
.ci-sum { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 82px; text-align: right; }
.ci .rm {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--txt-3);
  display: grid; place-items: center;
}
.ci .rm:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.ci .rm svg { width: 14px; height: 14px; }

.cart-sum {
  position: sticky; top: 122px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px;
  box-shadow: var(--sh-1);
}
.cart-sum .sum { font-size: 13px; color: var(--txt-2); margin-bottom: 6px; }
.cart-sum .b2b-sum { color: var(--ok); font-weight: 700; }
.cart-sum .sum.total b { font-size: 19px; }

/* ============================================================
   responsive — new blocks
   ============================================================ */

@media (max-width: 860px) {
  .b2b { grid-template-columns: 1fr; padding: var(--s6) var(--s5); }
  .b2b-r { max-width: 380px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-sum { position: static; }
}

@media (max-width: 640px) {
  .cart-steps { grid-template-columns: 1fr; }
  .ci { grid-template-columns: 64px 1fr; }
  .ci-img { width: 64px; height: 64px; }
  .ci-ctl { grid-column: 1 / -1; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
}

@media (max-width: 420px) {
  .pcard--wide .pc-media { width: 108px; }
  .b2b-r { grid-template-columns: 1fr; }
  .b2b-card b { font-size: 26px; }
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1180px) {
  .promo-row { grid-template-columns: repeat(2, 1fr); }
  .catstrip { grid-template-columns: repeat(5, 1fr); }
  .feat-row { grid-template-columns: repeat(3, 1fr); }
  .bodytiles { grid-template-columns: repeat(2, 1fr); }
  .brandgrid { grid-template-columns: repeat(3, 1fr); }
  .cat-layout { grid-template-columns: 232px minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  .pp { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
  .gal-main { max-width: 480px; }
  .ftr-in { grid-template-columns: 1fr; gap: var(--s5); }
  .acc-grid { grid-template-columns: 1fr; }
  .acc-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 3px; }
  .numsearch-row { grid-template-columns: 1fr 1fr; }
  .numsearch-row .btn { grid-column: 1 / -1; }
  .brandtable { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-btn span:not(#vehicle-label):not(.av) { display: none; }
  .nav-user .av { display: grid; }
  .nav-btn { min-width: 44px; }
  #vehicle-label { display: none; }
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: flex; flex-direction: column; }
  .filters-toggle { display: inline-flex; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; }
  .step:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .catstrip { grid-template-columns: repeat(4, 1fr); }
  .brandgrid { grid-template-columns: repeat(2, 1fr); }
  .cp-head { flex-direction: column; }
}

@media (max-width: 768px) {
  .topbar-in { display: flex; justify-content: center; height: 30px; padding: 0 var(--s3); gap: 8px; }
  .tb-city, .tb-note, .tb-sep, .tb-links .lang { display: none; }
  .tb-links { margin-left: 0; gap: 0; }
  .tb-links a[href^="tel"] { font-weight: 700; color: var(--accent); font-size: 12px; }
  .hdr-in { height: 58px; gap: 8px; padding: 0 var(--s3); }
  .logo-txt { display: none; }
  .srch { padding-left: 9px; height: 38px; }
  .srch-btn { display: none; }
  .nav a[href="#/companies"] { display: none; }
  .catnav { top: 58px; }
  .catnav-in { padding: 0 var(--s3); }
  .wrap { padding: 0 var(--s3); }
  .promo-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .promo { min-height: 140px; padding: 12px; }
  .promo b { font-size: 14px; }
  .promo span { font-size: 10.5px; }
  .feat-row { grid-template-columns: repeat(2, 1fr); }
  .bodytiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bodytile { height: 130px; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .pc-body { padding: 9px; }
  .pc-name { font-size: 11.5px; min-height: 31px; }
  .pc-price .now { font-size: 14px; }
  .modal-root { padding: 10px; align-items: flex-end; }
  .modal { max-height: 92vh; }
  .ftr-cols { grid-template-columns: repeat(2, 1fr); }
  .page-title { font-size: 22px; }
  .pp-title { font-size: 22px; }
  .bb-price .now { font-size: 26px; }
  body { padding-bottom: 62px; }
  .toasts { bottom: 74px; }

  /* Шапка на телефоні: меню (.nav) ховаємо — воно продубльоване внизу в .mbnav.
     Пошук на всю ширину, кнопка VIN — лише іконкою, кнопка пошуку — іконкою. */
  .nav { display: none; }
  .logo-img { height: 32px; }
  .hdr-in { gap: 7px; }
  .srch { max-width: none; padding-left: 10px; }
  .srch-btn { padding: 0 10px; min-width: 38px; }
  .srch-btn span { display: none; }
  .srch-btn-ico { display: block; width: 17px; height: 17px; }
  .vin-hist { margin-left: 4px; }
  .vin-hist-btn span { display: none; }
  .vin-hist-btn { padding: 0 10px; height: 38px; }
  .catnav { top: 58px; }
}

@media (max-width: 420px) {
  .catstrip { grid-template-columns: repeat(3, 1fr); }
  .brandtable { grid-template-columns: repeat(2, 1fr); }
  .numsearch-row { grid-template-columns: 1fr; }
  .promo b { font-size: 13px; }
}

/* ============================================================
   hero
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/layout.jpg");
  background-size: cover;
  background-position: 78% 45%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, #fff 34%, rgba(255, 255, 255, .92) 48%, rgba(255, 255, 255, .35) 68%, rgba(255, 255, 255, .05) 100%);
}
.hero-in {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 46px var(--s5) 50px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.hero-tag svg { width: 12px; height: 12px; }
.hero h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
  margin-bottom: 12px;
  max-width: 520px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 14px;
  color: var(--txt-2);
  max-width: 440px;
  margin-bottom: 22px;
}
.hero-cta { display: flex; gap: 9px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 10.5px; color: var(--txt-3); }

.hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: center; }
.hero-van { display: grid; place-items: center; }
.hero-van img { width: 100%; max-width: 720px; border-radius: var(--r-lg); object-fit: cover; }
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* На телефоні бус більше не зникає: він іде у ФОН героя (див. mobile
     refinements нижче — .hero-bg отримує van.png другим шаром). */
  .hero-van { display: none; }
}

/* ============================================================
   product photo (fragment of layout image)
   ============================================================ */

.ph {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-color: #f2f4f8;
  transition: transform .45s var(--ease), filter .3s var(--ease);
  will-change: transform;
}
.pc-media .ph { transform: scale(1.001); }
.pcard:hover .pc-media .ph { transform: scale(1.06); }
.gal-main .ph { position: absolute; inset: 0; }

/* ============================================================
   warehouses
   ============================================================ */

.sb-head {
  padding: 10px 12px;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--txt-3);
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.wh-ico {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.wh-ico svg { width: 13px; height: 13px; }
.wh-qty {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.wh-qty.ok { background: #e7f7ee; color: #0b7a45; }
.wh-qty.out { background: #f2f4f7; color: var(--txt-3); }

/* наявність по складах (деталь товару) */
.sb-head--wh { display: flex; align-items: center; gap: 6px; }
.sb-wh-loading { color: var(--accent); font-weight: 700; letter-spacing: 0; text-transform: none; font-size: 9px; }
.wh-list { padding: 4px 0 8px; }
.wh-list--loading { padding: 8px 12px 12px; font-size: 12px; color: var(--txt-3); }
.wh-row { display: flex; align-items: center; gap: 9px; padding: 6px 12px; font-size: 12.5px; }
.wh-row .wh-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.wh-row .wh-dot.ok { background: var(--ok); }
.wh-row .wh-dot.out { background: var(--bad); }
.wh-row .wh-name { flex: 1; }
.wh-row .wh-q { font-weight: 800; font-variant-numeric: tabular-nums; }
.wh-row--ok .wh-q { color: var(--ok); }
.wh-row--out .wh-name, .wh-row--out .wh-q { color: var(--txt-3); font-weight: 600; }

/* аналоги / заміна (деталь товару) */
.analogs { margin-top: 44px; }
.analogs .an-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.analogs .an-sub { font-size: 12.5px; color: var(--txt-3); margin-top: 3px; }
.analogs .an-note { font-size: 11.5px; color: var(--txt-2); background: #fff8e1; border: 1px solid #f0e2b6; border-radius: var(--r-sm); padding: 8px 12px; margin: 12px 0; }
.an-table th { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--txt-3); }
.an-table td { vertical-align: middle; }
.an-photo { width: 54px; height: 54px; border: 1px solid var(--line); border-radius: var(--r-sm); display: grid; place-items: center; overflow: hidden; background: var(--surface); }
.an-photo img { width: 100%; height: 100%; object-fit: contain; }
.an-photo svg { width: 20px; height: 20px; color: var(--txt-3); }
.an-name { display: block; font-weight: 600; font-size: 13px; color: var(--txt); line-height: 1.3; }
.an-name:hover { color: var(--accent); }
.an-code { font-size: 11px; color: var(--txt-3); margin-top: 2px; }
.an-add { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; }
.an-add svg { width: 15px; height: 15px; }
.an-yes { color: var(--ok); font-weight: 700; font-size: 12.5px; }
.an-no { color: var(--txt-3); font-size: 12px; }
.an-disc { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--ok); background: #e8f6ee; border-radius: 6px; padding: 1px 6px; }
.an-details { margin-top: 10px; }
.an-details > summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--accent); padding: 6px 2px; user-select: none; }
.an-details > summary:hover { text-decoration: underline; }
.an-details .atable-wrap { margin-top: 8px; }

/* ============================================================
   admin
   ============================================================ */

.admin-gate {
  max-width: 340px;
  margin: 60px auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  box-shadow: var(--sh-2);
}
.ag-ico {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin: 0 auto 12px;
}
.ag-ico svg { width: 22px; height: 22px; }
.admin-gate h1 { font-size: 18px; font-weight: 800; margin-bottom: 3px; }
.admin-gate p { font-size: 12px; color: var(--txt-3); margin-bottom: 16px; }
.ag-err { color: var(--red); font-size: 12px; margin-top: 8px; }
.ag-hint { color: var(--txt-3); font-size: 10.5px; margin-top: 14px; }

.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.admin-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.admin-kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.admin-kpi-card span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--txt-3); font-weight: 700; }
.admin-kpi-card b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.admin-kpi-card small { font-size: 10.5px; color: var(--txt-3); }

.admin-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-toolbar h3 { margin: 0; }
.admin-toolbar .input { max-width: 280px; margin-left: auto; height: 36px; }

.atable-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.atable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.atable th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--txt-3);
  font-weight: 800;
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.atable td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.atable tr.is-hidden { opacity: .5; }
.at-name { font-weight: 600; }
.at-sub { font-size: 10.5px; color: var(--txt-3); }
.at-input {
  width: 84px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  outline: 0;
}
.at-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.muted { color: var(--txt-3); font-weight: 500; }

.wh-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 8px; background: var(--surface-2); }
.wh-head { display: flex; align-items: center; gap: 10px; }
.wh-head b { font-size: 13px; }
.wh-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 11px; color: var(--txt-3); }
.wh-meta b { color: var(--txt); }

/* ============================================================
   animations
   ============================================================ */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }

@keyframes floatIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pcard { animation: floatIn .35s var(--ease) both; }
.pcard:nth-child(2n) { animation-delay: .03s; }
.pcard:nth-child(3n) { animation-delay: .06s; }
.pcard:nth-child(4n) { animation-delay: .09s; }
.pcard:nth-child(5n) { animation-delay: .12s; }

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(14, 147, 221, .35); }
  70% { box-shadow: 0 0 0 10px rgba(14, 147, 221, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 147, 221, 0); }
}
.pc-buy:hover { animation: pulseRing 1.2s var(--ease); }

.tb-note { color: var(--txt-3); }

/* ============================================================
   mobile refinements
   ============================================================ */

@media (max-width: 768px) {
  .logo-sub { display: none; }
  .brand-word { font-size: 21px; }
  .nav-btn { min-width: 38px; padding: 0 5px; }
  .hero {
    /* Бус — на фоні героя, за текстом. Раніше на телефоні .hero-van просто
       ховався (display:none) і герой лишався без машини.
       Тепер машина по центру з невеликими симетричними полями з боків (90% ширини),
       щоб вона читалась як «по центру», а не припёрта до краю. */
    background-image: url("../img/van.png"), linear-gradient(180deg, #fff 0%, #f5f8fc 60%, #eaf0f7 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: center bottom, 0 0;
    background-size: 90% auto, 100% 100%;
    background-color: #fff;
  }
  .hero::after {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, .99) 0%,
      rgba(255, 255, 255, .98) 34%,
      rgba(255, 255, 255, .94) 52%,
      rgba(255, 255, 255, .40) 74%,
      rgba(255, 255, 255, .04) 92%,
      rgba(255, 255, 255, 0) 100%);
  }
  .hero-in { padding: 22px 16px 236px; }
  .hero h1 { font-size: 27px; max-width: none; }
  .hero p { font-size: 12.5px; }
  .hero-cta .btn { flex: 1; }
  .hero-stats { gap: 18px; margin-top: 18px; }
  .hero-stats b { font-size: 16px; }
  .atable-wrap { margin: 0 -14px; padding: 0 14px; }
  .at-input { width: 64px; }
}

.hero .btn-ghost { background: var(--surface); }
.hero .btn-ghost:hover { background: var(--surface-2); }

/* ============================================================
   mobile bottom navigation
   ============================================================ */

.mbnav { display: none; }

.mbnav-item {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 5px 2px;
  border: 0;
  background: none;
  color: var(--txt-3);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mbnav-item svg { width: 22px; height: 22px; }
.mbnav-item:active { color: var(--accent); }
.mbnav-item.active { color: var(--accent); }
.mbnav-ico { position: relative; display: grid; place-items: center; }
.mbnav-badge {
  position: absolute;
  top: -7px; right: -9px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border: 2px solid #fff;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .mbnav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line);
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
  }
}

/* hero CTAs stack vertically on very small screens */
@media (max-width: 560px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; flex: none; }
}

/* search result rows reflow into a tidy card on phones */
@media (max-width: 480px) {
  .sr-list { grid-template-columns: 1fr; }
  .sr-row {
    grid-template-columns: 46px 1fr auto;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "img body  price"
      "img body  stock"
      "img body  add";
    gap: 4px 10px;
    padding: 10px 12px;
    align-items: center;
  }
  .sr-img { grid-area: img; width: 44px; height: 44px; align-self: start; }
  .sr-img img { width: 82%; }
  .sr-body { grid-area: body; }
  .sr-price { grid-area: price; justify-self: end; }
  .sr-stock { grid-area: stock; justify-self: end; margin-top: 1px; }
  .sr-add { grid-area: add; justify-self: end; align-self: center; width: 30px; height: 30px; }
}

/* guarantee two product columns even on narrow phones */
@media (max-width: 420px) {
  .catstrip { grid-template-columns: repeat(3, 1fr); }
  .brandtable { grid-template-columns: repeat(2, 1fr); }
  .numsearch-row { grid-template-columns: 1fr; }
  .promo b { font-size: 13px; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 8px; }
}

/* ============================================================
   Логотип у hero + збільшення фото товару (лайтбокс)
   ============================================================ */
.hero-logo { display: inline-flex; align-items: center; margin-bottom: 16px; }
.hero-logo img { height: 46px; width: auto; display: block; }
@media (max-width: 720px) { .hero-logo img { height: 38px; } }

/* кнопка «збільшити» на картці товару */
.pc-media .pc-img { cursor: zoom-in; }
.pc-zoom {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  color: var(--txt-2);
  opacity: 0;
  transition: var(--t);
  cursor: zoom-in;
  z-index: 2;
}
.pc-zoom svg { width: 15px; height: 15px; }
.pcard:hover .pc-zoom { opacity: 1; }
.pc-zoom:hover { color: var(--accent); border-color: var(--accent-line); }
@media (hover: none), (max-width: 860px) { .pc-zoom { opacity: 1; } }

/* лайтбокс */
#modals.zoom-open { background: rgba(8, 12, 20, .84); }
#modals.zoom-open .modal {
  background: transparent;
  box-shadow: none;
  max-width: 94vw;
  max-height: none;
  overflow: visible;
}
#modals.zoom-open .modal-x {
  background: rgba(255, 255, 255, .95);
  border-radius: 50%;
  top: 6px; right: 6px;
}
.zoom-modal { display: grid; place-items: center; padding: 8px; }
.zoom-modal img {
  max-width: 92vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  cursor: zoom-out;
}
.gal-main img { cursor: zoom-in; }

/* ---------- карта магазину (низ головної) ---------- */
.map-card {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.map-frame { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map-info { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.map-row { display: flex; gap: 11px; align-items: flex-start; font-size: 12.5px; color: var(--txt-2); line-height: 1.45; }
.map-row svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.map-row b { display: block; color: var(--txt); font-weight: 800; font-size: 13.5px; margin-bottom: 2px; }
.map-info .btn { margin-top: auto; }
@media (max-width: 860px) {
  .map-card { grid-template-columns: 1fr; }
  .map-frame { min-height: 300px; }
  .map-info { padding: 18px; }
}

/* ============================================================
   Друк товарного чека (референс: ЧЕК Passat B5.5.docx)
   ============================================================ */
.receipt {
  width: 100%;
  max-width: 78mm;
  margin: 0 auto;
  padding: 16px 18px;
  box-sizing: border-box;
  background: #fff;
  color: #111;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: ui-monospace, "SF Mono", Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
}
.receipt .rc-head { text-align: center; }
.receipt .rc-shop { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #555; }
.receipt .rc-shop-big { font-size: 26px; font-weight: 800; letter-spacing: .02em; line-height: 1.05; margin: 2px 0; }
.receipt .rc-legal { font-size: 12px; font-weight: 700; }
.receipt .rc-addr { font-size: 11px; color: #333; margin-top: 3px; }
.receipt .rc-ipn { font-size: 11px; color: #333; }
.receipt .rc-check { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 13px; }
.receipt .rc-check b { font-size: 15px; letter-spacing: .08em; }
.receipt .rc-datetime { display: flex; justify-content: space-between; font-size: 11px; color: #333; margin-top: 2px; }
.receipt .rc-sep { border-top: 1px dashed #999; margin: 9px 0; }
.receipt .rc-client { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 11px; color: #333; margin: 0 0 4px; }
.receipt .rc-items { }
.receipt .rc-item { padding: 3px 0; }
.receipt .rc-item-top { display: flex; gap: 6px; font-size: 12px; }
.receipt .rc-idx { flex-shrink: 0; font-weight: 700; }
.receipt .rc-detail { flex: 1; }
.receipt .rc-item-bot { display: flex; justify-content: space-between; font-size: 11px; color: #333; padding-left: 17px; margin-top: 1px; }
.receipt .rc-price { font-weight: 700; color: #111; font-variant-numeric: tabular-nums; }
.receipt .rc-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 800; padding: 2px 0; }
.receipt .rc-total b { font-size: 18px; font-variant-numeric: tabular-nums; }
.receipt .rc-thanks { text-align: center; margin-top: 12px; font-size: 12px; font-weight: 700; }
.receipt-actions { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.receipt-actions .btn svg { width: 14px; height: 14px; }

/* ── Видаткова накладна (друк для видачі товару) ── */
.issue-page { padding-top: 14px; }
.issue-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.issue-bar-t { display: grid; gap: 2px; }
.issue-bar-t b { font-size: 16px; letter-spacing: -.01em; }
.issue-bar-t span { font-size: 12.5px; color: var(--txt-3); }
.issue-bar-a { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.issue-sheet {
  background: #fff; color: #000;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 28px 32px; max-width: 820px; margin: 0 auto;
  box-shadow: var(--sh-2);
}
.issue { font-family: "Times New Roman", Times, Georgia, serif; font-size: 12px; line-height: 1.45; color: #000; }
.iss-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 14px; }
.iss-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.iss-barcode { width: 210px; height: 40px; flex: none; }
.iss-party { display: flex; gap: 8px; margin-bottom: 9px; }
.iss-lbl { flex: 0 0 92px; font-weight: 700; }
.iss-val { flex: 1; min-width: 0; }
.iss-table { width: 100%; border-collapse: collapse; margin: 14px 0 0; font-size: 11.5px; }
.iss-table th, .iss-table td { border: 1px solid #000; padding: 4px 6px; vertical-align: top; }
.iss-table th { background: #f1f1f1; font-weight: 700; text-align: center; }
.iss-table .c { text-align: center; }
.iss-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.iss-totals { margin-left: auto; border-collapse: collapse; margin-top: 8px; font-size: 12px; }
.iss-totals td { padding: 2px 6px; }
.iss-totals td:first-child { text-align: right; font-weight: 700; }
.iss-totals td:last-child { text-align: right; min-width: 110px; font-variant-numeric: tabular-nums; }
.iss-totals .iss-grand td { border-top: 1px solid #000; font-weight: 700; }
.iss-sum { margin-top: 14px; }
.iss-words { margin-top: 2px; }
.iss-sign { display: flex; gap: 56px; margin-top: 44px; }
.iss-sign > div { flex: 1; display: flex; align-items: flex-end; gap: 8px; }
.iss-sign span { font-weight: 700; white-space: nowrap; }
.iss-sign i { flex: 1; border-bottom: 1px solid #000; height: 14px; }
@media (max-width: 720px) {
  .issue-sheet { padding: 16px; }
  .iss-top { flex-direction: column; }
  .iss-barcode { width: 100%; height: 34px; }
  .iss-party { flex-direction: column; gap: 2px; }
  .iss-lbl { flex: none; }
  .iss-sign { flex-direction: column; gap: 26px; margin-top: 28px; }
}

/* Друк: на аркуші виводимо лише чек */
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff !important; }
  body.no-scroll { overflow: visible !important; }
  /* шапка/підвал займають місце навіть при visibility:hidden — прибираємо зовсім,
     інакше документ «переїжджає» на другу сторінку */
  .topbar, .hdr, .catnav, .ftr, .mbn, .mnav, .toast, .scrim { display: none !important; }
  body * { visibility: hidden; }
  #receipt-print, #receipt-print *, #issue-print, #issue-print * { visibility: visible; }
  #scrim { display: none !important; }
  .modal-x, .receipt-actions, .issue-bar, .print-none { display: none !important; }
  #modals.modal-root { position: static !important; display: block !important; padding: 0 !important; background: #fff !important; }
  #modals .modal { position: static !important; max-width: none !important; width: auto !important; max-height: none !important; box-shadow: none !important; border: 0 !important; background: #fff !important; transform: none !important; animation: none !important; opacity: 1 !important; overflow: visible !important; }
  #receipt-print { position: static; width: 80mm; max-width: 80mm; margin: 0; padding: 0; border: 0; box-shadow: none; }
  /* накладна: чистий аркуш A4 без «картки», завжди десктопна розкладка */
  .issue-page, .issue-page .wrap, .page { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .issue-sheet {
    position: static !important; border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important; background: #fff !important; padding: 0 !important;
    max-width: none !important; margin: 0 !important;
  }
  #issue-print { position: static; width: auto; page-break-inside: avoid; }
  .issue { font-size: 11px; }
  .iss-top { flex-direction: row !important; align-items: flex-start !important; }
  .iss-barcode { width: 200px !important; height: 38px !important; }
  .iss-party { flex-direction: row !important; gap: 8px !important; }
  .iss-lbl { flex: 0 0 92px !important; }
  .iss-sign { flex-direction: row !important; gap: 56px !important; margin-top: 30px !important; }
  .print-none { display: none !important; }
}

/* ── Інфо-сторінки: Довідка / Доставка й оплата / Повернення ── */
.info-page { max-width: 860px; margin: 0 auto; padding: 28px 0 12px; }
.info-title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 6px; }
.info-lede { font-size: 15px; color: var(--txt-2); line-height: 1.6; margin-bottom: 26px; }
.info-sec { padding: 22px 0; border-top: 1px solid var(--line); }
.info-sec:first-of-type { border-top: 0; }
.info-sec h2 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
.info-sec p { font-size: 14.5px; color: var(--txt-2); line-height: 1.65; margin: 0 0 8px; }
.info-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.info-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--txt-2); line-height: 1.6; }
.info-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.info-list li b { color: var(--txt); }
.info-contact { display: flex; gap: 14px; align-items: center; margin-top: 30px; padding: 18px 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.info-contact .ic-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; }
.info-contact .ic-ico svg { width: 18px; height: 18px; }
.info-contact b { font-size: 15px; }
.info-contact .ic-sub { font-size: 13px; color: var(--txt-2); margin-top: 2px; }
.info-contact a { color: var(--accent); font-weight: 700; }

/* ── Фото авто (VIN / каталог) ── */
.page-head.has-photo { display: flex; gap: 22px; align-items: flex-start; justify-content: space-between; }
.page-head.has-photo .ph-main { flex: 1 1 auto; min-width: 0; }
.car-photo { margin: 0; flex: 0 0 300px; max-width: 300px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.car-photo img { display: block; width: 100%; height: 180px; object-fit: cover; }
.car-photo figcaption { font-size: 11px; color: var(--txt-3); padding: 6px 10px; text-align: center; }
.ph-engine { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 13px; color: var(--txt-2); flex-wrap: wrap; }
.ph-engine svg { width: 15px; height: 15px; color: var(--accent); }
.ph-engine b { color: var(--txt); }
.ph-code { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 700; letter-spacing: .02em; }
.car-thumb { display: block; width: 100%; height: 96px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; border: 1px solid var(--line); }
.car-code { margin-top: 8px; font-size: 12px; color: var(--txt-2); }
.car-code b { color: var(--txt); letter-spacing: .02em; }
@media (max-width: 720px) {
  .page-head.has-photo { display: block; }
  .car-photo { max-width: 100%; flex-basis: auto; margin-top: 14px; }
  .car-photo img { height: 200px; }
}

/* ── Каталог авто: пошук марки + явний скрол (щоб було видно, що список повний) ── */
.cc-found { font-size: 12px; color: var(--txt-3); min-height: 16px; margin: 6px 0 4px; }
.cc-brands { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.cc-brands::-webkit-scrollbar { width: 8px; }
.cc-brands::-webkit-scrollbar-track { background: transparent; }
.cc-brands::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.cc-brands::-webkit-scrollbar-thumb:hover { background: var(--txt-3); }
.cc-brands::after { content: ""; display: block; height: 1px; }
.cc-models { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.cc-models::-webkit-scrollbar { width: 8px; }
.cc-models::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* ── «Всі марки» на головній: кнопка «Показати всі» ── */
#home-brands.is-expanded { max-height: none; }
.brandtable-more { text-align: center; margin-top: 14px; }

/* ── Заглушка фото авто (коли фото не знайдено) ── */
.car-photo--empty .cp-empty {
  height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--txt-3);
  background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px);
}
.cp-empty svg { width: 42px; height: 42px; opacity: .45; }
.cp-empty span { font-size: 12.5px; font-weight: 600; color: var(--txt-2); text-align: center; padding: 0 12px; }
.car-thumb--empty { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--txt-3); }
.car-thumb--empty svg { width: 28px; height: 28px; opacity: .5; }

/* ── Плакат: комп’ютерна діагностика двигуна ── */
.diag {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center;
  padding: 38px; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(720px 340px at 100% 0%, var(--accent-soft), transparent 62%),
    radial-gradient(620px 320px at 0% 100%, rgba(18,163,232,.07), transparent 60%),
    linear-gradient(135deg, var(--surface), var(--surface-2));
  box-shadow: var(--sh-2);
}
.diag::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent 78%);
  mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent 78%);
}
.diag-l, .diag-r { position: relative; z-index: 1; }
.diag-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 7px 13px; border-radius: 999px;
}
.diag-tag svg { width: 14px; height: 14px; }
.diag h2 { font-size: 30px; line-height: 1.12; letter-spacing: -.025em; margin: 16px 0 10px; color: var(--txt); }
.diag p { color: var(--txt-2); font-size: 14.5px; line-height: 1.6; margin: 0 0 18px; max-width: 54ch; }
.diag-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.diag-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--txt-2); line-height: 1.45; }
.diag-list li svg { width: 17px; height: 17px; flex: none; color: var(--ok); margin-top: 1px; }

.diag-r { display: grid; gap: 14px; justify-items: stretch; }
.diag-photo {
  margin: 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: #0b1016;
  box-shadow: 0 24px 60px -22px rgba(8, 14, 22, .55);
}
.diag-photo img { display: block; width: 100%; height: auto; }
.diag-photo figcaption { font-size: 11.5px; color: var(--txt-3); padding: 8px 12px; text-align: center; background: var(--surface); border-top: 1px solid var(--line); }
.diag-badge {
  display: inline-flex; align-items: center; gap: 9px; justify-self: start;
  font-size: 12.5px; font-weight: 800; color: var(--txt);
  background: var(--surface); border: 1px solid var(--line);
  padding: 10px 14px; border-radius: 12px; box-shadow: var(--sh-1);
}
.diag-badge svg { width: 17px; height: 17px; color: var(--accent); }

/* Фото профілю в автарці (замість ініціалів) */
.av-photo { padding: 0; overflow: hidden; }
.av-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* Блок «фото профілю» в кабінеті */
.pf-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pf-av {
  width: 88px; height: 88px; flex: none; border-radius: 22px; overflow: hidden;
  border: 2px solid var(--accent-line); background: var(--surface-2);
  display: grid; place-items: center; font-weight: 800; font-size: 26px; color: #fff;
}
.pf-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-meta { display: grid; gap: 3px; min-width: 0; }
.pf-meta b { font-size: 17px; color: var(--txt); letter-spacing: -.01em; }
.pf-meta span { font-size: 12.5px; color: var(--txt-3); }
.pf-meta .pf-role {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; margin-top: 2px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.pf-hint { font-size: 11.5px; color: var(--txt-3); margin: 6px 0 0; }

/* Панель співробітника: пошук клієнтів */
.stf-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.stf-search .field { flex: 1 1 260px; margin: 0; }
.stf-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 4px; }
.stf-chip {
  font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--txt-2);
  transition: background .15s, border-color .15s, color .15s;
}
.stf-chip:hover { border-color: var(--accent-line); color: var(--txt); }
.stf-chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.stf-client { display: flex; align-items: center; gap: 12px; }
.stf-client .av { width: 38px; height: 38px; border-radius: 10px; font-size: 12px; }
.stf-empty { text-align: center; padding: 34px 16px; color: var(--txt-3); font-size: 13px; }
.stf-orders { display: grid; gap: 8px; margin-top: 12px; }
.stf-order {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
}
.stf-order .oid { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--txt-3); }
.stf-order b { font-size: 13.5px; }
.stf-order .odate { font-size: 11.5px; color: var(--txt-3); margin-left: auto; }

@media (max-width: 860px) {
  .diag { grid-template-columns: 1fr; padding: 24px; gap: 22px; }
  .diag h2 { font-size: 23px; }
}

/* ── Темна тема: точкові правки світлих градієнтів і напівпрозорих поверхонь ── */
html[data-theme="dark"] .pc-media {
  background: radial-gradient(72% 72% at 50% 42%, #1b242e 0%, #151d25 60%, #111820 100%);
}
html[data-theme="dark"] .gal-main {
  background: radial-gradient(70% 70% at 50% 40%, #1b242e 0%, #151d25 60%, #111820 100%);
}
html[data-theme="dark"] .pc-fav { background: rgba(19, 26, 34, .92); }
html[data-theme="dark"] .gal-main .zoom-hint { background: rgba(19, 26, 34, .9); }
html[data-theme="dark"] .pc-media img { mix-blend-mode: normal; }
html[data-theme="dark"] .brandcard .bm,
html[data-theme="dark"] .hero-van { filter: none; }
/* логотип має темні літери — на темному фоні підсвічуємо */
html[data-theme="dark"] .logo-img { filter: brightness(0) invert(1) contrast(1.05); }
html[data-theme="dark"] .ftr .logo-img { filter: brightness(0) invert(1); }
/* дрібні елементи, що були білими */
html[data-theme="dark"] .pc-zoom,
html[data-theme="dark"] .pdc-close { background: rgba(19, 26, 34, .92); }
/* герой: світлий градієнт-завіса над фото → темна */
html[data-theme="dark"] .hero::after {
  background: linear-gradient(90deg,
    var(--bg) 0%, var(--bg) 32%,
    rgba(12, 17, 22, .93) 48%,
    rgba(12, 17, 22, .55) 70%,
    rgba(12, 17, 22, .18) 100%);
}
html[data-theme="dark"] .hero-bg { opacity: .55; }
/* картки на синьому B2B-блоці */
html[data-theme="dark"] .b2b-card { background: rgba(19, 26, 34, .97); }
html[data-theme="dark"] .b2b-card b { color: #7fd0ff; }

/* ── Підтвердження замовлення (модалка після оформлення) ── */
.ok-hero {
  width: 56px; height: 56px; margin: 2px auto 14px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--ok);
}
.ok-hero svg { width: 26px; height: 26px; }
.ok-lead { font-size: 14px; line-height: 1.55; color: var(--txt-2); text-align: center; margin: 0 0 16px; }
.ok-lead b { color: var(--txt); }
.ok-box {
  display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.ok-box > b { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--txt); }
.ok-box > b svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.ok-box span { font-size: 13px; color: var(--txt-2); }
.ok-box a { color: var(--accent); font-weight: 800; text-decoration: none; }
.ok-box a:hover { text-decoration: underline; }
.ok-box .mono { font-family: ui-monospace, Consolas, monospace; color: var(--txt); }
.ok-hint { font-size: 11.5px; color: var(--txt-3); margin: 12px 0 0; text-align: center; }
.modal-ft { flex-wrap: wrap; }

/* ── Панель співробітника: вкладки та форма товару ── */
.stf-tabs { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.stf-tab {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--txt-2);
  transition: background .15s, border-color .15s, color .15s;
}
.stf-tab svg { width: 16px; height: 16px; }
.stf-tab:hover { border-color: var(--accent-line); color: var(--txt); }
.stf-tab.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

.stfp-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.stfp-form .field { margin: 0; }
.stfp-submit { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .stfp-form { grid-template-columns: 1fr 1fr; }
}

/* ── Рахунок / документи замовлення ── */
.iss-note { margin: 14px 0 0; font-size: 10.5px; line-height: 1.5; color: #333; }
.ord-docs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ord-docs .btn { font-size: 11.5px; padding: 5px 9px; }
.ord-docs .btn svg { width: 13px; height: 13px; }

/* ── Попередження «сайт без сервера» (статичний хостинг) ── */
.srv-warn {
  position: relative; z-index: 90;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 46px 12px 18px;
  background: #7a2e12; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px; line-height: 1.5;
}
.srv-warn-in { display: grid; gap: 4px; max-width: 1100px; }
.srv-warn b { font-size: 13.5px; }
.srv-warn span { color: rgba(255, 255, 255, .88); }
.srv-warn-hint { font-size: 12.5px; }
.srv-warn-hint b { font-size: 12.5px; color: #fff; }
.srv-warn #srv-warn-x {
  position: absolute; top: 8px; right: 10px;
  color: #fff; border-color: rgba(255, 255, 255, .3);
  width: 26px; height: 26px; padding: 0; font-size: 18px; line-height: 1;
}
.srv-warn #srv-warn-x:hover { background: rgba(255, 255, 255, .16); }
/* мʼякший варіант — каталог зі статичної копії */
.srv-warn.is-soft { background: #6b4a12; }

/* ── Показати/сховати пароль ── */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--txt-3); cursor: pointer; border-radius: 8px;
}
.pw-eye:hover { color: var(--txt); background: var(--surface-2); }
.pw-eye svg { width: 18px; height: 18px; }

/* ── Оформлення замовлення: отримання + оплата ── */
.ck-sec { margin-bottom: 16px; }
.ck-lbl { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--txt-3); margin-bottom: 8px; }
.ck-opt {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.ck-opt:hover { border-color: var(--accent-line); }
.ck-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ck-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ck-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent); flex: 0 0 34px; }
.ck-ic svg { width: 18px; height: 18px; }
.ck-tx { display: grid; gap: 1px; min-width: 0; }
.ck-tx b { font-size: 13.5px; }
.ck-tx span { font-size: 12px; color: var(--txt-3); }
.ck-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .ck-row { grid-template-columns: 1fr; } }
.ck-ft { display: flex; align-items: center; gap: 16px; }
.ck-total { display: grid; gap: 2px; margin-right: auto; }
.ck-total span { font-size: 11.5px; color: var(--txt-3); }
.ck-total b { font-size: 19px; }

/* ── «Зберегти авто в гараж» ── */
.mycar-save {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px;
  font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--surface); color: var(--txt-2); cursor: pointer;
  vertical-align: middle;
}
.mycar-save svg { width: 13px; height: 13px; }
.mycar-save:hover { border-color: var(--accent-line); color: var(--txt); }
.mycar-save.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

/* ── Легкий водяний знак на фото (без навантаження на сервер) ── */
.sr-img, .ci-img, .gal-main { position: relative; }
.sr-img::after, .ci-img::after, .gal-main::after {
  content: 'ІНТЕР+';
  position: absolute; right: 7px; bottom: 5px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .09em;
  color: rgba(255, 255, 255, .62);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  pointer-events: none; user-select: none;
}
/* кнопка підтвердження завжди видима при скролі */
.ck-ft { position: sticky; bottom: -1px; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 20px 16px; }

/* ── Редагування складу замовлення (адмінка) ── */
.oe-lines { display: grid; gap: 6px; margin-bottom: 8px; }
.oe-line { display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); font-size: 12.5px; }
.oe-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oe-q { color: var(--txt-3); font-weight: 700; }
.oe-p { font-weight: 800; white-space: nowrap; }
.oe-add { position: relative; }
.oe-add-res { display: grid; gap: 4px; margin-top: 6px; }
.oe-res { text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); font-size: 12.5px; cursor: pointer; }
.oe-res:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.oe-res i { color: var(--accent); font-style: normal; font-weight: 800; float: right; }

/* ===================== Водяний знак «ІНТЕР+» ===================== */
.site-wm {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='120'><text x='110' y='64' transform='rotate(-28 110 60)' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='22' font-weight='700' fill='%239aa0a6' fill-opacity='0.55'>ІНТЕР+</text></svg>");
  background-size: 220px 120px;
}
[data-theme="dark"] .site-wm {
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='120'><text x='110' y='64' transform='rotate(-28 110 60)' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='22' font-weight='700' fill='%23c7ccd1' fill-opacity='0.55'>ІНТЕР+</text></svg>");
}

/* водяний знак на фото товару */
.pc-media { position: relative; overflow: hidden; }
.pc-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='90'><text x='80' y='48' transform='rotate(-28 80 45)' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='18' font-weight='700' fill='%239aa0a6' fill-opacity='0.5'>ІНТЕР+</text></svg>");
  background-size: 160px 90px;
}

/* водяний знак на збільшеному фото (лайтбокс) */
.zoom-modal { position: relative; }
.zoom-modal::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='120'><text x='110' y='64' transform='rotate(-28 110 60)' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='22' font-weight='700' fill='%239aa0a6' fill-opacity='0.5'>ІНТЕР+</text></svg>");
  background-size: 220px 120px;
}

/* водяний знак на друкованих документах (чек / накладна / рахунок) */
.doc { position: relative; overflow: hidden; }
.doc::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; z-index: 5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='120'><text x='110' y='64' transform='rotate(-28 110 60)' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-size='22' font-weight='700' fill='%23999' fill-opacity='0.5'>ІНТЕР+</text></svg>");
  background-size: 220px 120px;
}

/* ===================== Прогрес лояльності ===================== */
.loyal-progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.loyal-bar {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  transition: width .45s ease;
}
[data-theme="dark"] .loyal-bar { background: linear-gradient(90deg, #15803d, #22c55e); }

/* ===================== Перемикач (water-mark switch) ===================== */
.wm-switch { position: relative; display: inline-block; width: 42px; height: 24px; vertical-align: middle; }
.wm-switch input { opacity: 0; width: 0; height: 0; }
.wm-slider { position: absolute; cursor: pointer; inset: 0; background: var(--line); border-radius: 99px; transition: .2s; }
.wm-slider:before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.wm-switch input:checked + .wm-slider { background: var(--accent); }
.wm-switch input:checked + .wm-slider:before { transform: translateX(18px); }

/* ── QR-код товару (локальна генерація, лого в центрі) ── */
.pp-qr-btn { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pp-qr-btn svg { width: 17px; height: 17px; }
.pp-qr-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.pp-qr-panel {
  display: none; align-items: center; gap: 16px; margin-top: 12px;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2, var(--surface));
  animation: qrIn .18s ease-out;
}
.pp-qr-panel[data-open="1"] { display: flex; }
@keyframes qrIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pp-qr-canvas { position: relative; flex: 0 0 auto; width: 150px; height: 150px; border-radius: 10px; overflow: hidden; background: #fff; }
.pp-qr-canvas canvas { display: block; width: 150px !important; height: 150px !important; }
.pp-qr-load { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11.5px; color: var(--txt-3); background: #fff; }
.pp-qr-canvas[data-ready="1"] .pp-qr-load { display: none; }
.pp-qr-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pp-qr-info b { font-size: 13.5px; }
.pp-qr-info .hint { font-size: 11.5px; color: var(--txt-3); line-height: 1.45; }
.pp-qr-info .btn { align-self: flex-start; margin-top: 2px; display: inline-flex; align-items: center; gap: 6px; }
.pp-qr-info .btn svg { width: 14px; height: 14px; }
@media (max-width: 560px) {
  .pp-qr-panel { flex-direction: column; align-items: flex-start; }
  .pp-qr-canvas, .pp-qr-canvas canvas { width: 130px !important; height: 130px !important; }
  .bb-actions { flex-wrap: wrap; }
  .pp-qr-btn { flex: 1 1 auto; justify-content: center; }
}

/* ============ ПІДПИСКИ ============ */
.subs-banner {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 24px; align-items: center;
  padding: 28px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 65%);
}
@media (max-width: 860px) { .subs-banner { grid-template-columns: 1fr; gap: 18px; padding: 20px; } }
.subs-banner h2 { font-size: clamp(20px, 2.4vw, 28px); margin: 10px 0 8px; letter-spacing: -.02em; }
.subs-banner p { color: var(--txt-2); font-size: 14px; max-width: 56ch; }
.subs-banner-plans { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 18px; }
.subs-mini {
  display: flex; flex-direction: column; gap: 2px; min-width: 96px;
  padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.subs-mini b { font-size: 18px; color: var(--accent); line-height: 1; }
.subs-mini span { font-size: 11.5px; font-weight: 700; color: var(--txt); }
.subs-mini i { font-style: normal; font-size: 11px; color: var(--txt-3); }
.subs-banner-r { display: grid; gap: 10px; }
.subs-save {
  padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.subs-save span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--txt-3); }
.subs-save b { font-size: 17px; color: var(--txt); }
.subs-save small { font-size: 11px; color: var(--txt-3); }

.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; } }
.plan-card {
  position: relative; padding: 22px 20px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface); display: flex; flex-direction: column; gap: 8px;
}
.plan-card--hot { border-color: var(--accent-line); box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.plan-card--on { border-color: var(--ok); }
.plan-tag {
  position: absolute; top: -10px; left: 20px; font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px;
  background: var(--accent); color: #fff;
}
.plan-name { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--txt-3); }
.plan-price { font-size: 30px; font-weight: 800; color: var(--txt); letter-spacing: -.02em; }
.plan-price small { font-size: 13px; font-weight: 600; color: var(--txt-3); margin-left: 4px; }
.plan-disc { font-size: 15px; font-weight: 800; color: var(--ok); }
.plan-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.plan-list li { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; color: var(--txt-2); }
.plan-list li svg { flex: 0 0 auto; color: var(--ok); margin-top: 2px; }
.plan-note { font-size: 11.5px; color: var(--txt-3); margin: 6px 0 12px; }
.plan-card .btn { margin-top: auto; }
.plan-current {
  display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px 16px;
  border-radius: 12px; background: var(--ok-soft, #e8f6ee); color: var(--txt); font-size: 13px;
}
.plans-faq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
@media (max-width: 900px) { .plans-faq { grid-template-columns: 1fr; } }
.plans-faq .pf-item { padding: 16px; border-radius: 14px; background: var(--surface-2, var(--surface)); border: 1px solid var(--line); }
.plans-faq .pf-item b { display: block; margin-bottom: 6px; font-size: 13px; }
.plans-faq .pf-item p { font-size: 12.5px; color: var(--txt-2); }
.subs-active {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 12px; background: var(--ok-soft, #e8f6ee); border: 1px solid var(--line);
}
.subs-active-l { display: flex; flex-direction: column; gap: 2px; }
.subs-active-l b { font-size: 15px; }
.subs-active-l span { font-size: 12px; color: var(--txt-2); }
.subs-active-r { font-size: 12px; font-weight: 700; color: var(--ok); }

/* ---- оплата підписки ---- */
.pay-sum { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2, var(--surface)); border: 1px solid var(--line); margin-bottom: 12px; }
.pay-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--txt-2); }
.pay-row b { color: var(--txt); }
.pay-total { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; font-size: 14px; }
.pay-total b { font-size: 18px; color: var(--accent); }
.pay-user { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--txt-2); margin-bottom: 12px; }
.pay-user svg { color: var(--ok); }
.pay-card { display: grid; gap: 10px; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-status { margin-top: 12px; font-size: 12.5px; min-height: 18px; }
.pay-status.err { color: #e0533d; font-weight: 600; }
.pay-status.ok { color: var(--ok); background: var(--ok-soft, #e8f6ee); padding: 12px 14px; border-radius: 12px; line-height: 1.55; }
.pay-note { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--txt-3); margin-top: 10px; }

/* підказка «з підпискою дешевше» на сторінці товару */
.bb-sub {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 10px 0; padding: 10px 12px; border-radius: 12px;
  background: var(--accent-soft); border: 1px dashed var(--accent-line);
  color: var(--txt); font-size: 12.5px; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.bb-sub:hover { border-color: var(--accent); }
.bb-sub svg { color: var(--accent); flex: 0 0 auto; }
.bb-sub b { font-size: 14px; color: var(--accent); }
.bb-sub small { flex-basis: 100%; font-size: 11px; color: var(--txt-3); }

/* прогрес завантаження каталогу */
.sync-line { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; vertical-align: middle; }
.sync-bar { display: inline-block; width: 90px; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.sync-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
.sync-txt { font-size: 11.5px; color: var(--txt-3); }

/* фото моделі у вікні вибору двигуна */
.cc-carphoto { margin: 4px 0 12px; }
.cc-carphoto img {
  display: block; width: 100%; max-height: 210px; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2, var(--surface));
}
.cc-carphoto-cap { display: block; margin-top: 5px; font-size: 11px; color: var(--txt-3); }

/* ціна «з підпискою» на сторінці товару */
.bb-sub-h { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--txt-2); }
.bb-sub-h svg { color: var(--accent); flex: 0 0 auto; }
.bb-sub-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.bb-sub-p {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 5px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--accent-line);
}
.bb-sub-p i { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--accent); }
.bb-sub-p b { font-size: 14px; color: var(--txt); }

/* ============================================================
   VIN loader — прогрес розпізнавання (переживає закриття модалки)
   ============================================================ */
.vin-loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  place-items: center;
  background: rgba(12, 18, 28, .42);
  backdrop-filter: blur(2px);
}
.vin-loader.on { display: grid; }
.vin-loader .vl-box {
  min-width: 280px;
  max-width: 86vw;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px 28px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(9, 16, 28, .22);
  text-align: center;
}
.vin-loader .vl-box .spin {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
  border: 3px solid var(--line-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.vin-loader b { font-size: 15px; font-weight: 800; color: var(--txt); }
.vin-loader p { margin: 0; font-size: 12.5px; color: var(--txt-3); min-height: 16px; }
