/* АВТОМАКС TIR — стилі сайту */
:root {
  --bg: #f2f3f5;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --ink: #12161c;
  --ink-2: #3b4450;
  --muted: #6b7480;
  --line: #e3e6ea;
  --line-2: #d3d8de;
  --brand: #ff7a00;
  --brand-600: #e86c00;
  --brand-50: #fff3e6;
  --dark: #12171e;
  --dark-2: #1b222c;
  --dark-3: #28313d;
  --ok: #138a43;
  --ok-50: #e8f6ee;
  --warn: #b25e00;
  --warn-50: #fff4e0;
  --info: #1f5fbf;
  --info-50: #eaf1fc;
  --danger: #c0281b;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 22, 30, .06), 0 6px 18px rgba(16, 22, 30, .06);
  --shadow-lg: 0 18px 50px rgba(16, 22, 30, .18);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Oswald', 'Manrope', 'Arial Narrow', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--info); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: .04em; }
:focus-visible { outline: 3px solid rgba(255, 122, 0, .45); outline-offset: 2px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 10px 16px; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #1a0f00; }
.btn-primary:hover { background: var(--brand-600); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-3); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-added { background: var(--ok-50); color: var(--ok); border-color: #bfe3cc; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-sm { padding: 7px 11px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; color: inherit; }
.icon-btn:hover { background: rgba(127, 127, 127, .12); }
.mini-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 7px; padding: 3px 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.mini-btn .ic { width: 14px; height: 14px; }

/* ---------- Верхня смуга і шапка ---------- */
.topbar { background: var(--dark); color: #b8c0ca; font-size: 13px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar-mid { display: inline-flex; align-items: center; gap: 7px; }
.topbar-mid .ic { width: 17px; height: 17px; color: var(--brand); }
.topbar-phones { display: flex; gap: 16px; }
.topbar a { color: #e8ecf0; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--brand); }
.open-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.open-status i { width: 8px; height: 8px; border-radius: 50%; background: #8a939e; }
.open-status.is-open i { background: #2ecc71; box-shadow: 0 0 0 4px rgba(46, 204, 113, .18); }
.open-status.is-open { color: #9be7b9; }
.header { position: sticky; top: 0; z-index: 40; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.menu-btn { display: none; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { display: block; width: 40px; height: 40px; color: var(--brand); flex: none; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text b { display: block; font-family: var(--display); font-size: 23px; font-weight: 700; letter-spacing: .02em; line-height: 1; }
.logo-text em { font-style: normal; color: var(--brand); }
.logo-text small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 700; margin-top: 4px; }
.hsearch { position: relative; flex: 1; display: flex; min-width: 0; }
.hsearch input { flex: 1; min-width: 0; height: 48px; border: 2px solid var(--dark); border-right: 0; border-radius: 11px 0 0 11px; padding: 0 16px; background: var(--surface); outline: none; font-size: 15px; }
.hsearch input:focus { border-color: var(--brand); }
.hsearch input:focus + button { border-color: var(--brand); }
.hsearch > button { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border: 2px solid var(--dark); border-radius: 0 11px 11px 0; background: var(--dark); color: #fff; font-weight: 700; }
.hsearch > button:hover { background: var(--dark-3); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.suggest a:hover, .suggest a.active { background: var(--surface-2); }
.s-media { width: 44px; height: 44px; flex: none; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.s-media img { width: 100%; height: 100%; object-fit: cover; }
.s-media .ph { height: 100%; }
.s-media .ph span { display: none; }
.s-media .ph .ic { width: 22px; height: 22px; }
.s-main { flex: 1; min-width: 0; }
.s-main b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-main small { color: var(--muted); font-size: 12px; }
.s-price { font-weight: 800; white-space: nowrap; }
.suggest .s-all { justify-content: center; font-weight: 700; color: var(--info); border: 0; }
.s-all .ic { width: 16px; height: 16px; }
.s-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.hphone { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.hphone > .ic { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); }
.hphone b { display: block; font-size: 15px; }
.hphone small { display: block; color: var(--muted); font-size: 12px; }
.hacc { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 11px; color: var(--ink); text-decoration: none; font-weight: 700; flex: none; max-width: 160px; }
.hacc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hacc:hover { border-color: var(--ink-2); }
.hcart { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 11px; background: var(--brand); color: #1a0f00; text-decoration: none; font-weight: 800; flex: none; }
.hcart:hover { background: var(--brand-600); }
.badge { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--dark); color: #fff; font-size: 12px; font-weight: 800; font-style: normal; }
.mainnav { border-top: 1px solid var(--line); }
.mainnav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mainnav a { display: inline-flex; align-items: center; gap: 7px; padding: 12px 14px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
.mainnav a .ic { width: 17px; height: 17px; }
.mainnav a:first-child { background: var(--dark); color: #fff; border-radius: 9px 9px 0 0; margin-top: 6px; padding-top: 9px; border-bottom: 0; }
.mainnav a:hover { color: var(--brand-600); }
.mainnav a:first-child:hover { color: #fff; background: var(--dark-3); }
.mainnav a.active:not(:first-child) { border-color: var(--brand); color: var(--ink); }

/* ---------- Мобільне меню ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; background: rgba(10, 14, 20, .55); }
.drawer-panel { width: min(340px, 88vw); height: 100%; overflow-y: auto; background: var(--surface); padding: 14px 16px 28px; animation: slideIn .2s ease-out; }
@keyframes slideIn { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-nav a, .drawer-groups a, .drawer-contacts a { display: flex; align-items: center; gap: 10px; padding: 11px 6px; color: var(--ink); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
.drawer-nav a.active { color: var(--brand-600); }
.drawer-groups { margin-top: 16px; }
.drawer-groups small { display: block; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; font-size: 11px; margin-bottom: 4px; }
.drawer-groups a { font-weight: 600; }
.drawer-contacts { margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--dark); }
.drawer-contacts a { color: #fff; border-color: rgba(255, 255, 255, .1); }
.drawer-contacts .open-status { margin-bottom: 4px; color: #c9d0d8; }
.drawer-contacts .open-status.is-open { color: #9be7b9; }

/* ---------- Нижня панель (телефон) ---------- */
.mbar { display: none; }

/* ---------- Загальні блоки ---------- */
.page { padding-top: 22px; padding-bottom: 60px; }
.page-title { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: .01em; margin: 6px 0 18px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand-600); }
.crumbs .ic { width: 13px; height: 13px; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: .01em; }
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--brand-600); }
.eyebrow::before { content: ''; width: 22px; height: 3px; background: var(--brand); border-radius: 2px; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 11.5px; font-weight: 700; }
.tag-oe { background: var(--info-50); border-color: #cfe0f8; color: var(--info); }
.pbrand { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.notice { display: flex; gap: 11px; padding: 13px 15px; border-radius: 11px; font-size: 14px; line-height: 1.5; margin: 14px 0; }
.notice .ic { margin-top: 1px; }
.notice-info { background: var(--info-50); color: #1d3b66; }
.notice-info .ic { color: var(--info); }
.notice-warn { background: var(--warn-50); color: #6b3a00; }
.notice-warn .ic { color: var(--warn); }
.notice-ok { background: var(--ok-50); color: #0f5a2d; }
.notice-ok .ic { color: var(--ok); }
.hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.empty { grid-column: 1 / -1; text-align: center; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 44px 22px; }
.empty > .ic { width: 44px; height: 44px; color: var(--brand); margin: 0 auto 10px; }
.empty h3 { font-size: 20px; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Стан наявності ---------- */
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.stock i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.stock-ok { color: var(--ok); } .stock-ok i { background: var(--ok); }
.stock-warn { color: var(--warn); } .stock-warn i { background: #f0a000; }
.stock-muted { color: var(--muted); } .stock-muted i { background: #aab2bb; }
.stock-danger { color: var(--danger); } .stock-danger i { background: var(--danger); }
.pcard.is-out .pcard-media { opacity: .55; filter: grayscale(.6); }
.btn:disabled:not(.btn-primary) { cursor: not-allowed; }

/* ---------- Заглушка фото ---------- */
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; color: #8d97a3;
  background: repeating-linear-gradient(135deg, #eef0f3 0 14px, #e8ebef 14px 28px); }
.ph .ic { width: 46px; height: 46px; color: #9aa4b0; stroke-width: 1.4; }
.ph span { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.ph-lg .ic { width: 90px; height: 90px; }

/* ---------- Картка товару ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.more-wrap { grid-column: 1 / -1; display: flex; justify-content: center; padding: 8px 0 4px; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s; min-width: 0; }
.pcard:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-2px); }
.pcard-media, .citem-media, .suggest .s-media { color: inherit; text-decoration: none; }
.pcard-media { display: block; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pcard-body { display: flex; flex-direction: column; gap: 7px; padding: 14px 15px 15px; flex: 1; }
.pcard-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard-title { font-size: 16px; font-weight: 800; line-height: 1.3; }
.pcard-title a { color: var(--ink); text-decoration: none; }
.pcard-title a:hover { color: var(--brand-600); }
.pcard-code { font-size: 13px; color: var(--muted); }
.pcard-code b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.pcard-match { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; padding: 6px 8px; border-radius: 7px; background: var(--ok-50); color: #0f5a2d; }
.pcard-match .ic { width: 15px; height: 15px; margin-top: 2px; color: var(--ok); }
.pcard-match b { font-family: var(--mono); }
.pcard-fit { font-size: 12.5px; color: var(--ink-2); }
.pcard-foot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.pcard-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: .01em; line-height: 1.1; }

/* ---------- Головна ---------- */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(900px 400px at 85% 10%, rgba(255, 122, 0, .22), transparent 60%),
  repeating-linear-gradient(-45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--brand) 0 18px, var(--dark) 18px 36px); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; padding: 64px 20px 72px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.02; letter-spacing: .005em; text-transform: uppercase; margin: 14px 0 16px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { color: #c4ccd5; font-size: 17px; max-width: 600px; margin: 0 0 26px; }
.hero-search { display: flex; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); max-width: 640px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 14px; font-size: 16px; color: var(--ink); background: transparent; }
.hero-search .btn { padding: 14px 22px; }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: #9aa4b0; }
.hero-chips button { border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #e8ecf0; border-radius: 20px; padding: 5px 11px; font-size: 13px; font-family: var(--mono); }
.hero-chips button:hover { border-color: var(--brand); color: #fff; }
.hero-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 24px; backdrop-filter: blur(6px); }
.hero-card h2 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 10px 0 8px; }
.hero-card p { color: #c4ccd5; font-size: 14px; margin: 0 0 18px; }
.hero-card .vin-demo { font-family: var(--mono); letter-spacing: .12em; font-size: 15px; padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px dashed rgba(255, 255, 255, .25); color: #fff; margin-bottom: 14px; overflow-wrap: anywhere; }
.hero-card .vin-demo span { color: var(--brand); }
.trust { position: relative; z-index: 1; margin-top: -1px; background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 12px; align-items: center; padding: 20px 18px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item > .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); }
.trust-item b { display: block; font-size: 14.5px; }
.trust-item span { display: block; font-size: 12.5px; color: var(--muted); }
.gtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gtile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 40px 18px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.gtile:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.gtile .ic-group { grid-row: 1 / 3; width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--dark); color: var(--brand); }
.gtile b { font-size: 15px; }
.gtile small { color: var(--muted); font-size: 12.5px; }
.gtile > .ic:last-child { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: '0' counter(step); font-family: var(--display); font-size: 44px; font-weight: 700; color: var(--brand); line-height: 1; display: block; margin-bottom: 10px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 10px; }
.panel h3 .ic { width: 26px; height: 26px; color: var(--brand-600); }
.panel p, .panel li { color: var(--ink-2); font-size: 14.5px; }
.panel ul { padding-left: 18px; margin: 10px 0 0; }
.panel li { margin: 5px 0; }
.timeline { display: flex; gap: 0; margin: 16px 0 6px; }
.timeline div { flex: 1; position: relative; padding: 18px 10px 0 0; font-size: 13px; color: var(--ink-2); }
.timeline div::before { content: ''; position: absolute; top: 4px; left: 0; right: 0; height: 3px; background: var(--line-2); }
.timeline div::after { content: ''; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); }
.timeline b { display: block; color: var(--ink); }
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; border-radius: 20px; background: var(--dark); color: #fff; }
.cta::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255, 122, 0, .15); }
.cta h2 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; }
.cta p { color: #c4ccd5; margin: 0; max-width: 560px; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---------- Каталог ---------- */
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.catalog-head .page-title { margin: 0; }
.catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.filters { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.filters-head, .filters-backdrop { display: none; }
.fblock { padding: 14px 6px 6px; border-top: 1px solid var(--line); margin-top: 10px; }
.fblock > b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.fblock .input { margin-bottom: 8px; }
.radio-line { display: flex; align-items: center; gap: 9px; padding: 5px 2px; font-size: 14px; cursor: pointer; }
.radio-line input { accent-color: var(--brand); width: 17px; height: 17px; }
.gnav-all, .gnav-g, .gnav-c { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; text-align: left; border-radius: 9px; color: var(--ink); }
.gnav-all { padding: 11px 10px; font-weight: 800; background: var(--surface-2); margin-bottom: 4px; justify-content: space-between; }
.gnav-all.active { background: var(--dark); color: #fff; }
.gnav-all span, .gnav-g em, .gnav-c em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 1px 7px; }
.gnav-all.active span { background: rgba(255, 255, 255, .15); color: #fff; }
.gnav-g { padding: 9px 10px; font-weight: 700; font-size: 14px; }
.gnav-g span { flex: 1; }
.gnav-g .ic-group { width: 20px; height: 20px; color: var(--ink-2); }
.gnav-g > .ic:last-child { width: 15px; height: 15px; color: var(--muted); transition: transform .15s; }
.gnav-g:hover, .gnav-item.open .gnav-g { background: var(--surface-2); }
.gnav-item.open .gnav-g > .ic:last-child { transform: rotate(90deg); }
.gnav-item.open .gnav-g .ic-group { color: var(--brand-600); }
.gnav-cats { padding: 3px 0 8px 30px; }
.gnav-c { padding: 7px 10px; font-size: 13.5px; color: var(--ink-2); justify-content: space-between; }
.gnav-c:hover { color: var(--ink); background: var(--surface-2); }
.gnav-c.active { color: var(--brand-600); font-weight: 800; background: var(--brand-50); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.tsearch { position: relative; flex: 1; min-width: 0; }
.tsearch .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tsearch .input { padding-left: 42px; height: 46px; }
.toolbar select { width: auto; height: 46px; }
.filters-btn { display: none; position: relative; height: 46px; }
.filters-btn .badge { background: var(--brand); color: #1a0f00; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips:not(:empty) { margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 20px; padding: 5px 9px 5px 12px; font-size: 13px; font-weight: 600; }
.chip .ic { width: 14px; height: 14px; color: var(--muted); }
.chip:hover { border-color: var(--ink-2); }
.chip-reset { border-style: dashed; color: var(--muted); padding-right: 12px; }
.count { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.vin-strip { display: flex; align-items: center; gap: 18px; justify-content: space-between; margin-top: 24px; padding: 20px 22px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid #ffd9b0; }
.vin-strip b { display: block; font-size: 16px; }
.vin-strip span { color: var(--ink-2); font-size: 14px; }

/* ---------- Форми ---------- */
.input { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 122, 0, .15); }
textarea.input { resize: vertical; min-height: 84px; }
select.input { appearance: none; padding-right: 36px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7480' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 13px center; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full, .fgrid .full { grid-column: 1 / -1; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field > span i { color: var(--danger); font-style: normal; }
.field .err { font-size: 12.5px; color: var(--danger); font-style: normal; }
.field.invalid .input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(192, 40, 27, .12); }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice > span { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 15px; border: 2px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s; }
.choice > span .ic { grid-row: 1 / 3; width: 30px; height: 30px; color: var(--muted); }
.choice small { color: var(--muted); font-size: 12.5px; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-50); }
.choice input:checked + span .ic { color: var(--brand-600); }
.choice input:focus-visible + span { outline: 3px solid rgba(255, 122, 0, .45); outline-offset: 2px; }
/* Поле з підказками (населений пункт, відділення Нової пошти) */
.ac { position: relative; }
.ac-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; max-height: 290px; overflow-y: auto; margin: 0; padding: 4px 0; list-style: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-lg); }
.ac-list li { padding: 9px 13px; cursor: pointer; font-size: 14px; line-height: 1.35; }
.ac-list li:hover, .ac-list li.active { background: var(--brand-50); }
.ac-list li.ac-empty { cursor: default; color: var(--muted); background: none; }
.input:disabled { background: var(--surface-2); cursor: not-allowed; }
.np-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.np-lists-col { grid-template-columns: 1fr; }
@media (max-width: 640px) { .np-lists { grid-template-columns: 1fr; } }
/* Способи оплати */
.pay-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pay-list .err { grid-column: 1 / -1; }
.pay-opt { position: relative; cursor: pointer; }
.pay-opt[hidden] { display: none; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt > span { display: grid; gap: 3px; height: 100%; padding: 13px 14px 13px 42px; border: 2px solid var(--line); border-radius: 12px; position: relative; transition: border-color .15s, background .15s; }
.pay-opt > span::before { content: ''; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border: 2px solid var(--line-2); border-radius: 50%; background: var(--surface); }
.pay-opt small { color: var(--muted); font-size: 12.5px; }
.pay-opt input:checked + span { border-color: var(--brand); background: var(--brand-50); }
.pay-opt input:checked + span::before { border-color: var(--brand); box-shadow: inset 0 0 0 3px var(--surface); background: var(--brand); }
.pay-opt input:focus-visible + span { outline: 3px solid rgba(255, 122, 0, .45); outline-offset: 2px; }
@media (max-width: 640px) { .pay-list { grid-template-columns: 1fr; } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); overflow: hidden; }
.qty button { width: 42px; height: 48px; border: 0; background: transparent; display: grid; place-items: center; }
.qty button:hover { background: var(--surface-2); }
.qty .ic { width: 16px; height: 16px; }
.qty input { width: 48px; height: 48px; border: 0; text-align: center; font-weight: 800; outline: none; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 34px; height: 38px; }
.qty-sm input { width: 38px; height: 38px; }

/* ---------- Товар ---------- */
.ptop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gallery-main { aspect-ratio: 1 / 1; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { width: 72px; height: 72px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.thumb.active { border-color: var(--brand); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pinfo-meta { display: flex; gap: 10px; align-items: center; }
.pinfo h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.01em; margin: 10px 0 10px; }
.pcodes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--muted); }
.pcodes b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.pbuy { margin-top: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pprice { font-family: var(--display); font-size: 40px; font-weight: 600; line-height: 1; margin-bottom: 8px; }
.pbuy-row { display: flex; gap: 10px; margin: 16px 0 10px; }
.pbuy-row .btn { flex: 1; }
.pcall { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.pcall .ic { width: 17px; height: 17px; color: var(--brand-600); }
.pcall:hover b { color: var(--brand-600); }
.pperks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.pperks li { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.pperks li:last-child { border-bottom: 0; }
.pperks .ic { width: 24px; height: 24px; color: var(--brand-600); margin-top: 2px; }
.pperks b { display: block; font-size: 14px; }
.pperks span { display: block; font-size: 13px; color: var(--muted); }
.psections { position: sticky; top: 124px; z-index: 5; display: flex; gap: 4px; overflow-x: auto; margin: 32px 0 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; scrollbar-width: none; }
.psections a { padding: 8px 14px; border-radius: 8px; color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.psections a:hover { background: var(--surface-2); color: var(--ink); }
.pblock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 16px; scroll-margin-top: 190px; }
.pblock > h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin-bottom: 14px; }
.pblock > p.muted { margin: -6px 0 14px; font-size: 14px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.specs div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.pdesc { color: var(--ink-2); margin: 16px 0 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); padding: 10px 14px; white-space: nowrap; }
.table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table td:first-child { white-space: nowrap; }
.code { font-family: var(--mono); font-weight: 600; color: var(--info); text-decoration: none; border-bottom: 1px dashed currentColor; }
.code:hover { color: var(--brand-600); }
.sources { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Кошик ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.checkout .pblock:first-child { margin-top: 0; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--dark); color: #fff; font-size: 14px; font-weight: 800; }
.citem { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.citem:first-child { border-top: 0; padding-top: 0; }
.citem-media { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.citem-media img { width: 100%; height: 100%; object-fit: cover; }
.citem-media .ph span { display: none; }
.citem-media .ph .ic { width: 30px; height: 30px; }
.citem-main a { color: var(--ink); text-decoration: none; }
.citem-main a:hover b { color: var(--brand-600); }
.citem-main b { display: block; font-size: 15px; }
.citem-main small { display: block; color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.citem-sum { text-align: right; font-weight: 800; white-space: nowrap; }
.citem-sum small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.citem-del { color: var(--muted); }
.citem-del:hover { color: var(--danger); }
.pickup-card { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--dark); color: #fff; }
.pickup-card .ic { width: 26px; height: 26px; color: var(--brand); }
.pickup-card b { display: block; }
.pickup-card span { font-size: 13px; color: #c4ccd5; }
.pickup-card a { color: var(--brand); }
.pickup-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.pickup-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.pickup-list li .stock { grid-row: 1 / 3; align-self: center; }
.pickup-list small { color: var(--muted); }
.summary { position: sticky; top: 140px; }
.summary-in { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.summary h2 { font-size: 19px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; color: var(--ink-2); }
.sum-row b { text-align: right; font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 18px; margin-top: 6px; border-top: 1px solid var(--line); }
.sum-total b { font-family: var(--display); font-size: 30px; font-weight: 600; }
.recent { display: grid; gap: 8px; }
.recent-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.recent-row small { display: block; color: var(--muted); font-size: 12.5px; }
.done { max-width: 720px; margin: 10px auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px 28px; }
.done-icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; }
.done-icon .ic { width: 36px; height: 36px; }
.done-icon.ok { background: var(--ok-50); color: var(--ok); }
.done-icon.wait { background: var(--brand-50); color: var(--brand-600); }
.done h1 { font-family: var(--display); font-size: 34px; font-weight: 600; }
.done-id { font-size: 16px; margin: 8px 0; }
.done-id b { font-family: var(--mono); background: var(--surface-2); padding: 3px 8px; border-radius: 6px; }
.done-lead { color: var(--ink-2); }
.done .notice { text-align: left; }
.send-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0; }
.order-text { text-align: left; margin: 8px 0 0; }
.order-text summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.order-text pre { white-space: pre-wrap; font: 13px/1.6 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 10px 0 0; }
.done-summary { text-align: left; margin-top: 22px; padding: 18px 20px; border-radius: 12px; background: var(--surface-2); }
.done-summary h3 { font-size: 16px; margin-bottom: 6px; }
.done-summary ol { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.done-summary li { margin: 5px 0; }

/* ---------- Інформаційні сторінки ---------- */
.page-hero { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--brand) 0 14px, var(--dark) 14px 28px); }
.page-hero .container { position: relative; padding-top: 40px; padding-bottom: 46px; }
.page-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.5vw, 48px); margin: 10px 0 8px; }
.page-hero p { color: #c4ccd5; max-width: 640px; margin: 0; font-size: 16px; }
.page-hero .crumbs a, .page-hero .crumbs { color: #9aa4b0; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.ccard > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); margin-bottom: 12px; }
.ccard h3 { font-size: 17px; margin-bottom: 8px; }
.ccard p { margin: 0 0 4px; color: var(--ink-2); font-size: 14.5px; }
.ccard a { color: var(--ink); font-weight: 700; text-decoration: none; }
.ccard a:hover { color: var(--brand-600); }
.phone-list a { display: block; font-size: 17px; padding: 3px 0; }
.hours { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; }
.hours tr.today td { color: var(--brand-600); font-weight: 800; }
.hours tr.today td:first-child::after { content: ' · сьогодні'; font-weight: 600; font-size: 12px; }
.vin-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; scroll-margin-top: 140px; }
.vin-box h2 { font-family: var(--display); font-weight: 600; font-size: 30px; margin: 8px 0 10px; }
.vin-box ul { padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.vin-box li { margin: 6px 0; }
.vin-field { position: relative; }
.vin-field .input { font-family: var(--mono); letter-spacing: .14em; font-size: 17px; text-transform: uppercase; padding-right: 70px; }
.vin-count { position: absolute; right: 12px; bottom: 12px; font-size: 12px; font-weight: 700; color: var(--muted); font-family: var(--mono); }
.vin-count.ok { color: var(--ok); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--brand-600); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); font-size: 14.5px; }
.prose p { color: var(--ink-2); font-size: 15.5px; max-width: 760px; }

/* ---------- Підвал ---------- */
.footer { background: var(--dark); color: #aab3bd; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-top: 46px; padding-bottom: 30px; }
.footer .logo { display: inline-flex; color: #fff; padding: 0; }
.footer .logo-mark, .drawer-contacts .logo-mark { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.footer .logo-text small { color: #8b95a0; }
.footer-brand p { font-size: 14px; max-width: 320px; margin-top: 16px; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.footer a { display: block; color: #d4dae0; text-decoration: none; font-size: 14px; padding: 3px 0; }
.footer a:hover { color: var(--brand); }
.footer p { font-size: 14px; margin: 10px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.footer-bottom a { display: inline; color: #8b95a0; font-size: 13px; }

/* ---------- Сповіщення ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px); padding: 13px 16px 13px 18px; border-radius: 12px; background: var(--dark); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; transform: translate(-50%, 150%); opacity: 0; transition: transform .25s, opacity .25s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast a { color: var(--brand); font-weight: 800; text-decoration: none; white-space: nowrap; }

/* ================= Адаптивність ================= */
@media (max-width: 1180px) {
  .catalog .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .hphone span { display: none; }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .topbar-mid { display: none; }
  .hero-in { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 56px; }
  .trust-in { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; z-index: 120; width: min(360px, 90vw); max-height: none; border-radius: 0; transform: translateX(-105%); transition: transform .22s ease-out; box-shadow: var(--shadow-lg); padding: 14px; }
  .filters.open { transform: none; }
  .filters.open + .filters-backdrop { display: block; }
  .filters-backdrop { display: none; position: fixed; inset: 0; z-index: 110; background: rgba(10, 14, 20, .5); }
  .filters-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; font-size: 18px; }
  .filters-apply { display: block !important; margin-top: 16px; }
  .filters-btn { display: inline-flex; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptop { grid-template-columns: 1fr; }
  .gallery-main { aspect-ratio: 4 / 3; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cards-3, .steps { grid-template-columns: 1fr 1fr; }
  .vin-box { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { padding-bottom: 66px; }
  .topbar-phones a:not(:first-child) { display: none; }
  .header-in { flex-wrap: wrap; gap: 8px 10px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .menu-btn { display: inline-grid; margin-left: -8px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-text b { font-size: 20px; }
  .logo-text small { font-size: 9px; }
  .hphone { margin-left: auto; }
  .hphone > .ic { width: 42px; height: 42px; }
  .hcart { display: none; }
  .hacc { width: 42px; height: 42px; padding: 0; justify-content: center; border: 0; background: var(--surface-2); border-radius: 50%; }
  .hacc span { display: none; }
  .hphone { margin-left: auto; }
  .hphone + .hacc { margin-left: 0; }
  .hsearch { order: 10; flex-basis: 100%; }
  body[data-page="catalog"] .hsearch { display: none; }
  .hsearch input { height: 44px; font-size: 16px; }
  .hsearch > button { height: 44px; padding: 0 14px; }
  .hsearch > button span { display: none; }
  .mainnav { display: none; }
  .mbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(16, 22, 30, .07); }
  .mbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 700; }
  .mbar a.active { color: var(--ink); }
  .mbar a.active .ic { color: var(--brand-600); }
  .mbar .ic { width: 22px; height: 22px; }
  .mbar .badge { position: absolute; top: -2px; left: calc(50% + 4px); min-width: 18px; height: 18px; font-size: 11px; background: var(--brand); color: #1a0f00; }
  .mbar-call { color: var(--ok) !important; }
  .toast { bottom: 82px; }
  .psections { top: 112px; }
  .pblock { scroll-margin-top: 170px; padding: 18px; }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .split, .cards-3, .steps { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 130px 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .citem { grid-template-columns: 60px minmax(0, 1fr) auto; grid-template-areas: 'm t d' 'm q s'; row-gap: 10px; }
  .citem-media { grid-area: m; width: 60px; height: 60px; }
  .citem-main { grid-area: t; }
  .citem .qty { grid-area: q; justify-self: start; }
  .citem-sum { grid-area: s; }
  .citem-del { grid-area: d; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid, .grid-4, .catalog .grid { grid-template-columns: 1fr; }
  .gtiles { grid-template-columns: 1fr; }
  .trust-in { grid-template-columns: 1fr; }
  .trust-item { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 14px 4px; }
  .hero-search { flex-direction: column; gap: 6px; }
  .hero-search input { height: 46px; }
  .hero h1 { font-size: 36px; }
  .fgrid, .choice-row { grid-template-columns: 1fr; }
  .pbuy-row { flex-wrap: wrap; }
  .pbuy-row .btn { flex-basis: 100%; }
  .pbuy-row .qty { flex: 1; justify-content: space-between; }
  .pprice { font-size: 34px; }
  .gallery-main { aspect-ratio: 16 / 10; }
  .topbar-phones { display: none; }
  .header-in { gap: 8px 6px; }
  .logo-text small { display: none; }
  .toolbar { flex-wrap: wrap; }
  .tsearch { flex-basis: 100%; }
  .toolbar select, .filters-btn { flex: 1; }
  .vin-strip { flex-direction: column; align-items: flex-start; }
  .vin-box { padding: 20px; }
  .send-actions .btn { width: 100%; }
  .done { padding: 28px 18px; }
  .catalog-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Анімації та скелетони ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.grid > .pcard, .gtiles > .gtile, .olist > * { animation: rise .45s cubic-bezier(.2, .7, .3, 1) both; }
.grid > :nth-child(2), .gtiles > :nth-child(2) { animation-delay: .05s; }
.grid > :nth-child(3), .gtiles > :nth-child(3) { animation-delay: .1s; }
.grid > :nth-child(4), .gtiles > :nth-child(4) { animation-delay: .15s; }
.grid > :nth-child(5), .gtiles > :nth-child(5) { animation-delay: .2s; }
.grid > :nth-child(6), .gtiles > :nth-child(6) { animation-delay: .25s; }
.grid > :nth-child(n+7), .gtiles > :nth-child(n+7) { animation-delay: .3s; }
.sk { background: linear-gradient(90deg, #eceef1 0%, #f6f7f9 50%, #eceef1 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 8px; }
.pcard.skeleton { pointer-events: none; }
.pcard.skeleton .pcard-media { border-radius: 0; }
.pcard.skeleton .sk-line { height: 12px; margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Ілюстрація, бренди, швидке замовлення ---------- */
.hero-truck { position: absolute; right: -40px; bottom: 8px; width: min(760px, 70%); color: var(--brand); opacity: .15; pointer-events: none; }
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); text-decoration: none; transition: border-color .15s, color .15s; }
.brand-chip small { font-family: var(--font); font-size: 12px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.brand-chip:hover { border-color: var(--brand); color: var(--brand-600); }
.quick { margin-top: 12px; border: 1px dashed var(--line-2); border-radius: 12px; }
.quick summary { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-2); list-style: none; }
.quick summary::-webkit-details-marker { display: none; }
.quick summary .ic { width: 17px; height: 17px; color: var(--brand-600); }
.quick[open] summary { border-bottom: 1px dashed var(--line-2); }
.quick form { padding: 12px 14px 14px; }
.quick .hint { margin: 0 0 10px; }
.quick-row { display: flex; gap: 8px; }
.quick-row .input { flex: 1; min-width: 0; }
.pshare { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; border: 0; background: none; color: var(--ink-2); font-weight: 700; font-size: 13px; }
.pshare .ic { width: 16px; height: 16px; }
.pshare:hover { color: var(--brand-600); }
@media (max-width: 560px) { .quick-row { flex-direction: column; } .hero-truck { width: 120%; right: -30%; } }

/* ---------- Кабінет ---------- */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.auth-grid .pblock { margin-top: 0; }
.link-btn { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--info); font-weight: 700; font-size: 14px; }
.acc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.acc-head .page-title { margin-bottom: 4px; }
.acc-head p { margin: 0; }
.acc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.status { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-info { background: var(--info-50); color: var(--info); }
.status-ok { background: var(--ok-50); color: var(--ok); }
.status-warn { background: var(--warn-50); color: var(--warn); }
.status-muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.status-danger { background: #fdecea; color: var(--danger); }
.role { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.role-owner { background: var(--brand-50); border-color: #ffd9b0; color: var(--brand-600); }
.role-manager { background: var(--info-50); border-color: #cfe0f8; color: var(--info); }
.olist { display: grid; gap: 10px; }
.orow { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); font-size: 14px; }
.orow-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.orow small { color: var(--muted); }
.orow ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); }
.orow-total { font-weight: 800; text-align: right; margin-top: 4px; }
@media (max-width: 760px) { .auth-grid, .acc-grid { grid-template-columns: 1fr; } }

/* ---------- Адмінка ---------- */
.ptabs { display: flex; gap: 4px; overflow-x: auto; padding: 5px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; scrollbar-width: none; }
.ptabs button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 0; border-radius: 8px; background: transparent; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.ptabs button:hover { background: var(--surface-2); }
.ptabs button.active { background: var(--dark); color: #fff; }
.ptabs em { font-style: normal; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #1a0f00; font-size: 12px; }
.ocard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.ocard summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 13px 16px; cursor: pointer; list-style: none; }
.ocard summary::-webkit-details-marker { display: none; }
.ocard summary > b:last-child { margin-left: auto; }
.ocard[open] summary { border-bottom: 1px solid var(--line); }
.ocard-body { padding: 14px 16px 16px; font-size: 14px; }
.ocard-body p { margin: 0 0 8px; }
.ocard-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.ocard .table td { padding: 8px 10px; }
@media (max-width: 760px) { .ocard-cols { grid-template-columns: 1fr; } }
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.admin-bar .tsearch { min-width: 220px; }
.admin-table td { vertical-align: middle; }
.admin-table select.input { min-width: 240px; }
.sup-cell { font-size: 12.5px; line-height: 1.5; white-space: nowrap; }
.sup-line i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.sup-line i.in_stock { background: var(--ok); } .sup-line i.ask { background: #f0a000; } .sup-line i.out { background: var(--danger); }
.sup-line.best { color: var(--brand-600); font-weight: 700; }
.price-src { color: var(--brand-600); white-space: nowrap; }
.staff-price { margin: 8px 0; font-size: 14px; }
.sup-box { background: var(--brand-50); border: 1px solid #ffd9b0 !important; border-radius: 12px; padding: 14px !important; }
.sup-box legend { background: var(--brand-50); padding: 0 6px; border-radius: 6px; }
.sup-rows { display: grid; gap: 8px; margin-top: 12px; }
.sup-row { display: grid; grid-template-columns: 80px 1.3fr 1fr .6fr auto; gap: 8px; align-items: center; }
.sup-row .check-line { white-space: nowrap; font-size: 13px; }
.input-xs { display: inline-block; width: 70px; padding: 4px 8px; }
.sup-preview { margin: 12px 0 0; font-size: 14px; }
@media (max-width: 760px) { .sup-row { grid-template-columns: 1fr 1fr; } .sup-row > b { grid-column: 1 / -1; } }
.admin-table .thumb-sm { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.admin-table .thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.admin-table .thumb-sm .ph span { display: none; }
.admin-table .thumb-sm .ph .ic { width: 22px; height: 22px; }
.admin-table td.actions { white-space: nowrap; text-align: right; }
dialog.editor { width: min(900px, calc(100% - 24px)); max-height: calc(100vh - 24px); border: 0; border-radius: 18px; padding: 0; box-shadow: var(--shadow-lg); }
dialog.editor::backdrop { background: rgba(10, 14, 20, .6); }
.editor-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.editor-head h2 { font-size: 20px; }
.editor-body { padding: 20px 22px; }
.editor-foot { position: sticky; bottom: 0; display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 22px; background: var(--surface); border-top: 1px solid var(--line); }
.editor-foot .danger { margin-left: auto; color: var(--danger); border-color: #f0c2bd; }
.editor fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.editor legend { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.rows { display: grid; gap: 8px; }
.row-line { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr 1fr auto; gap: 8px; }
.row-line.cross { grid-template-columns: 1fr 1.5fr auto; }
.row-line .icon-btn { width: 40px; height: 44px; color: var(--muted); }
.row-line .icon-btn:hover { color: var(--danger); }
.photos { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-item { position: relative; width: 104px; height: 104px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; }
.photo-item button .ic { width: 14px; height: 14px; }
.photo-item .main-flag { position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 5px; background: var(--brand); color: #1a0f00; }
.photo-add { width: 104px; height: 104px; border: 2px dashed var(--line-2); border-radius: 10px; display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.photo-add:hover { border-color: var(--brand); color: var(--brand-600); }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check-line input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
@media (max-width: 760px) {
  .row-line, .row-line.cross { grid-template-columns: 1fr 1fr; }
  .row-line .icon-btn { justify-self: end; }
  .admin-table .hide-sm { display: none; }
}

/* ---------- Чат з менеджером ---------- */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 26px; background: var(--dark); color: #fff; font-weight: 800; box-shadow: var(--shadow-lg); }
.chat-fab .ic { width: 22px; height: 22px; color: var(--brand); }
.chat-fab:hover { background: var(--dark-3); }
.chat-fab:focus-visible { outline: 3px solid rgba(255, 122, 0, .55); outline-offset: 3px; }
.chatw.is-open .chat-fab { display: none; }
.chat-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--brand); color: #1a0f00; font-size: 12px; line-height: 22px; text-align: center; }
.chat-panel { position: fixed; right: 20px; bottom: 20px; z-index: 96; display: flex; flex-direction: column; width: 380px; height: min(620px, calc(100vh - 40px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 12px 12px 18px; background: var(--dark); color: #fff; }
.chat-head b { display: block; font-size: 16px; }
.chat-head small { display: block; color: #b9c1cc; font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.chat-head .icon-btn { color: #fff; background: transparent; border: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; flex: none; }
.chat-head .icon-btn:hover { background: var(--dark-3); }
.chat-head .icon-btn .ic { width: 20px; height: 20px; }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-start { padding: 14px 16px 16px; overflow-y: auto; display: grid; gap: 10px; }
.chat-start .field span { font-size: 13px; }
.chat-hello { margin: 0; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; font-size: 14px; color: var(--ink-2); }
.chat-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-topics .chip { padding: 5px 11px; cursor: pointer; font-size: 12.5px; }
.chat-topics .chip:hover { border-color: var(--brand); }
.chat-topics > span { width: 100%; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.chat-topics .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #1a0f00; }
.topic-tag { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.topic-vin { background: var(--info-50); color: var(--info); border-color: #c9dbf6; }
.topic-product { background: var(--ok-50); color: var(--ok); border-color: #c4e8d2; }
.topic-order { background: var(--brand-50); color: var(--brand-600); border-color: #ffd9b0; }
.topic-status { background: var(--warn-50); color: var(--warn); border-color: #f5dcae; }
.achat-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.achat-filters .input { width: auto; }
.achat-filters input.input { flex: 1 1 200px; }
.achat-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.achat-topics .chip { cursor: pointer; padding: 5px 11px; }
.achat-topics .chip[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.achat-topics .chip b { margin-left: 4px; color: var(--brand-600); }
.achat-topics .chip[aria-pressed="true"] b { color: var(--brand); }
.chat-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.chat-err { margin: 0; color: var(--danger); font-size: 13px; font-weight: 600; }
.chat-body > .chat-err { padding: 0 14px 10px; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.chat-day { margin: 4px 0; text-align: center; font-size: 12px; color: var(--muted); }
.msg { max-width: 82%; padding: 8px 12px 6px; border-radius: 14px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.msg p { margin: 0; }
.msg small { display: block; font-size: 11.5px; font-weight: 800; color: var(--brand-600); }
.msg time { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 2px; }
.msg-me { align-self: flex-end; background: var(--brand-50); border: 1px solid #ffd9b0; border-bottom-right-radius: 4px; }
.msg-staff { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-compose textarea { resize: none; min-height: 44px; max-height: 140px; padding: 10px 12px; }
.chat-compose .btn { flex: none; height: 44px; }
@media (max-width: 760px) {
  .chat-fab { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); height: 48px; padding: 0 14px; }
  .chat-fab span { display: none; }
  .chat-panel { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; z-index: 120; }
  .chat-compose textarea, .chat-start .input { font-size: 16px; }
}
@media print { .chatw { display: none; } }

/* Чат у панелі керування */
.achat { display: grid; grid-template-columns: 320px 1fr; gap: 16px; min-height: 560px; }
.achat-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-y: auto; max-height: 70vh; }
.achat-item { display: grid; gap: 2px; width: 100%; text-align: left; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; }
.achat-item:hover { background: var(--surface-2); }
.achat-item.active { background: var(--brand-50); }
.achat-item .row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.achat-item small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.achat-item em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #1a0f00; font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center; }
.achat-item.closed b { color: var(--muted); }
.achat-room { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-height: 70vh; min-height: 480px; }
.achat-room .chat-log { min-height: 260px; }
.achat-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.achat-top b { font-size: 16px; }
.achat-top .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.achat-room .msg-me { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; border-bottom-right-radius: 14px; }
.achat-room .msg-staff { align-self: flex-end; background: var(--brand-50); border-color: #ffd9b0; border-bottom-right-radius: 4px; border-bottom-left-radius: 14px; }
.achat-empty { margin: auto; padding: 30px; text-align: center; color: var(--muted); }
@media (max-width: 860px) { .achat { grid-template-columns: 1fr; } .achat-list { max-height: 260px; } }

/* Юридичні сторінки: оферта, повернення, конфіденційність */
.legal .pblock { max-width: 860px; }
.legal .pblock p, .legal .pblock li { line-height: 1.65; color: var(--ink-2); }
.legal .pblock ol, .legal .pblock ul { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.legal .cards-3 { margin-bottom: 8px; }
.legal .ccard h3 { font-size: 22px; }
mark.todo { background: #ffe58a; color: #5a4300; padding: 0 5px; border-radius: 4px; font-weight: 700; }
.consent { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }

/* Сповіщення в Telegram (панель керування) */
.nsteps { margin: 14px 0; padding-left: 22px; display: grid; gap: 12px; }
.nsteps li { padding-left: 4px; }
.nswitches { display: grid; gap: 8px; }
.nswitch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.nswitch input { width: 18px; height: 18px; accent-color: var(--brand); }
.notice-ok { background: var(--ok-50); color: var(--ok); }
#tabBody .err { color: var(--danger); font-weight: 600; }

/* ---------- Фото: банер, марки, категорії, верхні смуги сторінок ---------- */
.hero-has-photo::before { display: none; }
.hero-photo { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(18, 23, 30, .96) 0%, rgba(18, 23, 30, .82) 34%, rgba(18, 23, 30, .2) 62%, rgba(18, 23, 30, 0) 100%),
  url(../img/photos/hero-home.jpg) 85% 60% / cover no-repeat; }
.hero-has-photo .hero-card { background: rgba(18, 23, 30, .5); backdrop-filter: blur(3px); }
@media (max-width: 960px) {
  .hero-photo { background: linear-gradient(180deg, rgba(18, 23, 30, .45) 0%, rgba(18, 23, 30, .82) 38%, rgba(18, 23, 30, .96) 70%), url(../img/photos/hero-home.jpg) 72% 0 / auto 420px no-repeat, var(--dark); }
}
.page-hero-photo { background: linear-gradient(90deg, rgba(18, 23, 30, .92) 0%, rgba(18, 23, 30, .6) 50%, rgba(18, 23, 30, .15) 100%), var(--photo) center / cover no-repeat, var(--dark); }
@media (max-width: 760px) { .page-hero-photo { background: linear-gradient(180deg, rgba(18, 23, 30, .55), rgba(18, 23, 30, .9)), var(--photo) center / cover no-repeat, var(--dark); } }
.page-hero-photo .container { padding-top: 56px; padding-bottom: 64px; }

.makes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.make { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--dark); color: #fff; text-decoration: none; }
.make img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.make::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12, 16, 22, .88) 100%); }
.make span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: grid; gap: 1px; }
.make b { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: .01em; }
.make small { color: #d2d8df; font-size: 13px; }
.make:hover img { transform: scale(1.05); }
.make:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.gtile-photo { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding: 0 40px 16px 0; overflow: hidden; }
.gtile-photo img { width: calc(100% + 40px); height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 12px; transition: transform .35s; }
.gtile-photo b, .gtile-photo small { padding-left: 16px; }
.gtile-photo > .ic:last-child { top: auto; bottom: 22px; transform: none; }
.gtile-photo:hover img { transform: scale(1.04); }
@media (max-width: 1100px) { .makes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .make b { font-size: 20px; }
  .gtiles .gtile-photo { grid-template-columns: 96px 1fr; grid-template-rows: auto auto; padding: 0 36px 0 0; column-gap: 12px; }
  .gtile-photo img { grid-row: 1 / 3; width: 96px; height: 72px; aspect-ratio: auto; margin: 0; }
  .gtile-photo b { align-self: end; padding: 0; } .gtile-photo small { align-self: start; padding: 0; }
  .gtile-photo > .ic:last-child { top: 50%; bottom: auto; transform: translateY(-50%); }
}
.ph-hero-about { --photo: url(../img/photos/hero-about.jpg); }
.ph-hero-delivery { --photo: url(../img/photos/hero-delivery.jpg); }
.ph-hero-contacts { --photo: url(../img/photos/hero-contacts.jpg); }
