/* BMB Mirror — styles */
:root {
  --bg: #EDF1F3;
  --surface: #FFFFFF;
  --surface-2: #E3E9EC;
  --ink: #1A2228;
  --muted: #56636C;
  --line: #C6D0D6;
  --amber: #F0A10A;
  --amber-hover: #D88E00;
  --amber-ink: #2A1C00;
  --tint: #2C6386;
  --ok: #1E7A4E;
  --danger: #B3261E;
  --g1: #FBFDFE;
  --g2: #D5DEE3;
  --g3: #A9B7BF;
  --glass-edge: #8696A0;
  --shadow: 0 1px 2px rgba(26,34,40,.06), 0 8px 28px rgba(26,34,40,.08);
  --r-s: 6px;
  --r-m: 12px;
  --wrap: 1200px;
  --font: "Roboto Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11171B;
    --surface: #1A2228;
    --surface-2: #222C33;
    --ink: #E6ECEF;
    --muted: #98A6AE;
    --line: #2F3B43;
    --tint: #86B9DA;
    --ok: #5FC795;
    --danger: #F2867E;
    --g1: #56656E;
    --g2: #303B42;
    --g3: #1E262C;
    --glass-edge: #6E7F89;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11171B; --surface: #1A2228; --surface-2: #222C33; --ink: #E6ECEF; --muted: #98A6AE;
  --line: #2F3B43; --tint: #86B9DA; --ok: #5FC795; --danger: #F2867E;
  --g1: #56656E; --g2: #303B42; --g3: #1E262C; --glass-edge: #6E7F89;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--tint); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--amber-ink); padding: 8px 14px; z-index: 50; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  font-weight: 800;
  font-variation-settings: "wdth" 132, "opsz" 144;
  letter-spacing: -.025em;
  line-height: 1.02;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; font-variation-settings: "wdth" 125, "opsz" 72; }
h3 { font-size: 1.12rem; font-weight: 650; font-variation-settings: "wdth" 110; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.narrow { max-width: 40em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--r-s); border: 1px solid transparent;
  font-weight: 650; text-decoration: none; cursor: pointer;
  font-variation-settings: "wdth" 112;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: var(--amber-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--tint); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px 0; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 40px; height: 27px; }
.lm-glass { fill: var(--g2); stroke: var(--ink); stroke-width: 2; }
.lm-line { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 3 2.5; }
.logo-word { font-size: 1.3rem; font-variation-settings: "wdth" 140; font-weight: 400; letter-spacing: -.01em; }
.logo-word b { font-weight: 850; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--tint); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.lang button { background: none; border: 0; padding: 7px 11px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn circle { fill: var(--ink); stroke: none; }
.cart-count[hidden], .toast[hidden] { display: none; }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--amber); color: var(--amber-ink); font-size: .78rem; font-weight: 800; display: grid; place-items: center; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero-copy h1 { max-width: 11ch; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.hero-points li::before { content: ""; flex: none; width: 14px; height: 3px; background: var(--amber); transform: translateY(-4px); }

.glass { position: relative; isolation: isolate; filter: drop-shadow(0 18px 30px rgba(26,34,40,.16)); }
.glass-shape { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.glass-edge { stroke: var(--glass-edge); stroke-width: 2; }
.aspheric { fill: none; stroke: var(--glass-edge); stroke-width: 1.5; stroke-dasharray: 7 6; opacity: .8; }
.glass-shine { animation: shine 2.2s cubic-bezier(.3,.1,.2,1) .4s 1 both; }
@keyframes shine { from { transform: skewX(-18deg) translateX(0); } to { transform: skewX(-18deg) translateX(1100px); } }
@media (prefers-reduced-motion: reduce) { .glass-shine { animation: none; opacity: 0; } }
.finder { padding: 48px 13% 44px 44px; display: grid; gap: 14px; }
.finder-title { font-size: 1.35rem; margin: 0 0 4px; }
.field { display: grid; gap: 5px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend, .oe-label { font-size: .85rem; font-weight: 600; color: var(--ink); padding: 0; }
select, input[type="text"], input[type="search"], input[type="tel"], input[type="email"], textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--surface); color: var(--ink);
}
select:disabled { opacity: .55; }
textarea { min-height: 80px; resize: vertical; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); overflow: hidden; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 4px 6px; text-align: center; font-size: .82rem; font-weight: 600; line-height: 1.2; border-left: 1px solid var(--line); }
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: -3px; }
.oe { margin-top: 8px; padding-top: 16px; border-top: 1px dashed var(--glass-edge); display: grid; gap: 6px; }
.oe-row { display: flex; gap: 8px; }
.oe-row input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.hint { font-size: .82rem; color: var(--muted); margin: 0; }

/* Catalog */
.catalog { padding: 64px 0 80px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-head h2 { margin-bottom: .2em; }
.cat-head p { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-end; padding: 16px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.filter { display: grid; gap: 6px; }
.filter-label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.filter-sort { margin-left: auto; }
.filter-sort select { min-height: 38px; padding: 6px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: .9rem; font-weight: 550; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; cursor: pointer; border: 0; padding: 14px; width: 100%; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-img .side-ico { position: absolute; left: 10px; top: 10px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 1.02rem; font-weight: 650; margin: 0; font-variation-settings: "wdth" 104; }
.card-title button { all: unset; cursor: pointer; }
.card-title button:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-title button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.card-fit { font-size: .88rem; color: var(--muted); margin: 0; }
.card-oe { font-size: .82rem; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.price { font-size: 1.45rem; font-weight: 800; font-variation-settings: "wdth" 118; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); margin-top: 4px; font-variation-settings: "wdth" 100; }
.stock { font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stock.req::before { background: var(--muted); }
.add { min-height: 42px; padding: 0 14px; font-size: .9rem; }
.add.is-added { background: var(--ok); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .75rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: var(--surface-2); color: var(--ink); }
.tag.heat { background: color-mix(in srgb, var(--amber) 22%, transparent); }

.glass-ill { width: 82%; height: auto; overflow: visible; }
.glass-ill.big { width: min(100%, 380px); }
.ill-glass { filter: drop-shadow(0 3px 6px rgba(26,34,40,.18)); }
.ill-edge { fill: none; stroke: #6F808A; stroke-width: 1.6; }
.ill-asph { fill: none; stroke: #4F5F69; stroke-width: 1.3; stroke-dasharray: 4 3.5; }
.ill-heat { fill: none; stroke: var(--amber); stroke-width: 1.1; opacity: .55; stroke-linecap: round; }
.ill-shine { stroke: #fff; stroke-width: 14; opacity: .35; stroke-linecap: round; }
.line-ill { width: 64px; height: 52px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.line-ill .glass-ill { width: 52px; }
.pd-img .side-ico { position: absolute; left: 18px; top: 18px; width: 44px; height: 44px; }
.illus { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: .78rem; color: #6A7780; margin: 0; padding: 0 16px; }
.tag.col-b { background: #D6E6F2; color: #1F4B68; }
.tag.col-c { background: #E7ECEF; color: #33424B; }
.tag.col-e { background: #E2E8D4; color: #3D4A2A; }
.side-ico { width: 34px; height: 34px; }
.side-ico .car { fill: none; stroke: #8796A0; stroke-width: 1.6; }
.side-ico .m { fill: #C9D3D8; }
.side-ico .m.on { fill: var(--amber); }

.empty { text-align: center; padding: 40px 16px; max-width: 32em; margin: 0 auto; }
.more { display: flex; justify-content: center; margin-top: 32px; }

/* Types */
.types { padding: 88px 0; }
.types-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.type-fig { width: 100%; height: auto; margin-bottom: 16px; }
.tf-glass { fill: var(--g2); stroke: var(--glass-edge); stroke-width: 1.5; }
.tf-ray { stroke: var(--tint); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.tf-asph { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3.5; fill: none; }
.tf-heat { stroke: var(--amber); stroke-width: 2; fill: none; stroke-linecap: round; }
.type p { color: var(--muted); font-size: .97rem; }
.steps { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 32px; }
.steps h3 { font-size: 1.5rem; font-variation-settings: "wdth" 125; }
.steps ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: s; color: var(--muted); }
.steps li::before { content: counter(s); display: block; font-size: 2.4rem; font-weight: 800; font-variation-settings: "wdth" 140; color: var(--ink); line-height: 1; margin-bottom: 10px; }

/* Delivery */
.delivery { padding: 80px 0; background: var(--surface); border-top: 1px solid var(--line); }
.del-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 28px; }
.del p { color: var(--muted); font-size: .97rem; }
.flag { width: 30px; height: 20px; border: 1px solid var(--line); margin-bottom: 14px; }

/* Garages */
.garages { padding: 64px 0; background: var(--ink); color: var(--bg); }
.gar-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.gar-in p { color: color-mix(in srgb, var(--bg) 75%, transparent); max-width: 40em; margin: 0; }

/* FAQ */
.faq { padding: 88px 0; }
.narrow-wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 36px; }

/* Footer */
.foot { padding: 56px 0 32px; border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot h3 { font-size: .95rem; }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .95rem; }
.foot-list a { color: var(--ink); }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }

/* Dialogs */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(10,15,18,.55); }
.sheet { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border-radius: var(--r-m); box-shadow: var(--shadow); }
.sheet[open] { animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.sheet-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pd-img { background: #fff; display: grid; place-items: center; padding: 32px; position: relative; min-height: 320px; }
.pd-img img { max-height: 420px; object-fit: contain; }
.pd-info { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.pd-info h2 { font-size: 1.6rem; margin: 0; padding-right: 40px; }
.x-btn { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.3rem; line-height: 1; z-index: 2; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-size: .95rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fits { max-height: 150px; overflow: auto; margin: 0; padding: 0 0 0 18px; font-size: .92rem; }
.pd-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.pd-buy .price { font-size: 2rem; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-s); }
.qty button { width: 40px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; }
.qty input { width: 46px; min-height: 44px; border: 0; text-align: center; padding: 0; background: transparent; }
.note { font-size: .85rem; color: var(--muted); margin: 0; }

.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(480px, 100vw); }
.drawer[open] { animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer[open], .sheet[open] { animation: none; } }
.drawer-in { display: flex; flex-direction: column; height: 100%; }
.dr-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.dr-head h2 { font-size: 1.3rem; margin: 0; }
.dr-head .x-btn { position: static; }
.dr-body { flex: 1; overflow: auto; padding: 16px 24px; }
.dr-foot { border-top: 1px solid var(--line); padding: 16px 24px 24px; display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 64px; height: 52px; object-fit: contain; background: #fff; border-radius: 4px; border: 1px solid var(--line); }
.line h3 { font-size: .95rem; margin: 0 0 2px; }
.line p { margin: 0; font-size: .82rem; color: var(--muted); }
.line .qty input { width: 36px; min-height: 34px; }
.line .qty button { width: 32px; }
.line-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.line-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.sum-row { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.sum-row.total { font-size: 1.2rem; font-weight: 800; }
.free-left { font-size: .85rem; color: var(--muted); }
.co { display: grid; gap: 14px; }
.co .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co .err { color: var(--danger); font-size: .8rem; min-height: 0; }
.co [aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--amber); flex: none; }
.done { display: grid; gap: 12px; padding-top: 8px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent); display: grid; place-items: center; }
.done-mark svg { width: 28px; height: 28px; stroke: var(--ok); stroke-width: 2.5; fill: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--r-s); z-index: 100; font-weight: 550; box-shadow: var(--shadow); }

/* Responsive */
@media (max-width: 1020px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy h1 { max-width: 14ch; }
  .types-grid, .del-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .top-in { height: 60px; gap: 12px; }
  .logo-word { font-size: 1.12rem; }
  .logo-mark { width: 32px; height: 22px; }
  .hero { padding: 32px 0 48px; }
  .finder { padding: 48px 14% 36px 30px; }
  .seg { grid-template-columns: 1fr; }
  .seg span { border-left: 0; border-top: 1px solid var(--line); min-height: 40px; }
  .seg label:first-child span { border-top: 0; }
  .filter-sort { margin-left: 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-body { padding: 12px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .price { font-size: 1.25rem; }
  .types-grid, .del-grid, .steps ol { grid-template-columns: 1fr; gap: 24px; }
  .gar-in { flex-direction: column; align-items: flex-start; }
  .foot-in { grid-template-columns: 1fr; }
  .sheet { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; margin: 0; }
  .sheet-in { grid-template-columns: 1fr; }
  .pd-img { min-height: 220px; padding: 20px; }
  .pd-info { padding: 20px 16px 28px; }
  .co .row2 { grid-template-columns: 1fr; }
  .dr-head, .dr-body, .dr-foot { padding-left: 16px; padding-right: 16px; }
}

/* ===== v2: lively hero, perks, makes ===== */
:root {
  --night-1: #0E1820;
  --night-2: #1B2C38;
  --night-ink: #F2F6F8;
  --night-muted: #A9BAC5;
  --night-line: rgba(255,255,255,.14);
}
.hero {
  position: relative;
  isolation: isolate;
  background: radial-gradient(120% 90% at 75% 30%, var(--night-2) 0%, var(--night-1) 62%);
  color: var(--night-ink);
  padding: 72px 0 104px;
}
.hero .lead { color: var(--night-muted); }
.hero-copy h1 { color: var(--night-ink); text-wrap: balance; }
.hero-points li { color: var(--night-ink); }

.hero h1 { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero .lead { animation: rise .7s .08s cubic-bezier(.2,.7,.2,1) both; }
.hero-points { animation: rise .7s .16s cubic-bezier(.2,.7,.2,1) both; }
.glass { animation: rise .8s .1s cubic-bezier(.2,.7,.2,1) both; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)) drop-shadow(0 0 40px rgba(240,161,10,.12)); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .hero h1, .hero .lead, .hero-points, .glass { animation: none; } }
.glass .finder { color: #1A2228; }
.glass .finder select, .glass .finder input { background: #fff; color: #1A2228; border-color: #B7C3CA; }
.glass .finder .seg { background: #fff; border-color: #B7C3CA; }
.glass .finder .seg span { border-color: #B7C3CA; }
.glass .finder .seg input:checked + span { background: #1A2228; color: #fff; }
.glass .finder .field label, .glass .finder legend, .glass .finder .oe-label, .glass .finder-title { color: #1A2228; }
.glass .finder .hint { color: #4F5D66; }
.glass .finder .btn-ghost { color: #1A2228; border-color: #8C9AA3; background: rgba(255,255,255,.5); }
.glass .finder .btn-ghost:hover { border-color: #1A2228; }
.hero .glass-shape { --g1: #FBFDFE; --g2: #D3DCE1; --g3: #A3B1B9; --glass-edge: #6F808A; }
.glass:hover .glass-shine { animation: shine 1.6s cubic-bezier(.3,.1,.2,1) 1 both; }
.etched {
  position: absolute; left: 0; right: 0; bottom: -40px; margin: 0;
  text-align: center; font-size: .78rem; letter-spacing: .04em;
  color: var(--night-muted); font-style: italic; font-variation-settings: "wdth" 90;
}

/* perks */
.perks { background: var(--surface); border-bottom: 1px solid var(--line); }
.perks-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 26px; }
.perk { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.perk svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.perk svg .ok { stroke: var(--amber); stroke-width: 2.2; }
.perk b { display: block; font-weight: 700; font-size: .98rem; font-variation-settings: "wdth" 112; }
.perk span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.4; }

/* makes */
.makes { padding: 72px 0 56px; }
.makes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.makes-head h2, .makes-head p { margin: 0; }
.makes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.make {
  position: relative; overflow: hidden; text-align: left; cursor: pointer;
  display: grid; gap: 4px; padding: 18px 18px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.make::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.make:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.make:hover::after { transform: scaleX(1); }
.make-name { font-size: 1.15rem; font-weight: 800; font-variation-settings: "wdth" 130; letter-spacing: -.01em; }
.make-n { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.makes-more { margin-top: 16px; }

/* livelier cards */
.card { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.card-img { background: linear-gradient(160deg, #FFFFFF 0%, #EEF2F4 100%); }
.card .ill-shine { transition: transform .6s cubic-bezier(.3,.1,.2,1); }
.card:hover .ill-shine { transform: translateX(60px); }
.card .glass-ill { transition: transform .3s; }
.card:hover .glass-ill { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .card, .make, .card .glass-ill, .card .ill-shine { transition: none; } .card:hover, .make:hover { transform: none; } }

.garages { background: linear-gradient(120deg, var(--night-1), var(--night-2)); color: var(--night-ink); }
.gar-in p { color: var(--night-muted); }

@media (max-width: 1020px) {
  .perks-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero { padding: 36px 0 76px; }
  .perks-in { grid-template-columns: 1fr; gap: 16px; }
  .makes { padding: 48px 0 40px; }
  .makes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etched { bottom: -36px; font-size: .72rem; }
}

/* dark header to match the hero */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--night-1); }
.top { background: color-mix(in srgb, var(--night-1) 92%, transparent); border-bottom-color: var(--night-line); }
.top .logo, .top .nav a { color: var(--night-ink); }
.top .nav a:hover { color: var(--amber); }
.top .lm-glass { stroke: var(--night-ink); fill: #D3DCE1; }
.top .lang { border-color: var(--night-line); }
.top .lang button { color: var(--night-muted); }
.top .lang button[aria-pressed="true"] { background: var(--night-ink); color: var(--night-1); }
.top .cart-btn { background: transparent; border-color: var(--night-line); }
.top .cart-btn svg { stroke: var(--night-ink); }
.top .cart-btn circle { fill: var(--night-ink); }

/* ===== v3: photography, logos, tighter ===== */
.hero { background: var(--night-1); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: 30% 55%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,16,21,.94) 0%, rgba(10,16,21,.82) 38%, rgba(10,16,21,.45) 70%, rgba(10,16,21,.62) 100%),
    linear-gradient(0deg, rgba(10,16,21,.7) 0%, rgba(10,16,21,0) 30%);
}
.hero-copy h1 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); }

.makes-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.make { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 0; align-items: center; padding: 14px 16px; }
.make-logo { grid-row: span 2; width: 44px; height: 44px; object-fit: contain; }
.make-logo.fallback { display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-weight: 800; font-size: .8rem; font-variation-settings: "wdth" 120; }
.make-name { font-size: 1rem; line-height: 1.2; overflow-wrap: anywhere; }
.make-n { font-size: .8rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .make-logo:not(.fallback) { background: #fff; border-radius: 8px; padding: 4px; } }
:root[data-theme="dark"] .make-logo:not(.fallback) { background: #fff; border-radius: 8px; padding: 4px; }

.steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-rows: auto 1fr; column-gap: 48px; row-gap: 8px; align-items: start; }
.steps-photo { grid-row: span 2; margin: 0; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.steps-photo img { width: 100%; height: 100%; object-fit: cover; }
.steps ol { grid-template-columns: 1fr; gap: 20px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; }
.steps li::before { margin: 0; font-size: 2rem; }

.del-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: end; }
.del-photo { margin: 0; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 21 / 8; max-width: 100%; }
.del-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

.garages { position: relative; isolation: isolate; overflow: hidden; padding: 96px 0; }
.gar-bg { position: absolute; top: 0; right: 0; width: 46%; height: 100%; max-width: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.garages::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--night-1) 50%, rgba(14,24,32,.35) 100%); }

@media (max-width: 1020px) {
  .steps, .del-head { grid-template-columns: 1fr; }
  .steps-photo { grid-row: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .hero::before { background: linear-gradient(180deg, rgba(10,16,21,.9) 0%, rgba(10,16,21,.75) 50%, rgba(10,16,21,.9) 100%); }
  .gar-bg { width: 100%; opacity: .35; }
  .garages::before { background: linear-gradient(180deg, rgba(14,24,32,.85), rgba(14,24,32,.92)); }
  .make { grid-template-columns: 36px minmax(0, 1fr); padding: 12px; }
  .make-logo { width: 36px; height: 36px; }
}
#resTitle { display: flex; align-items: center; gap: 14px; }
.res-logo .make-logo { width: 52px; height: 52px; }

/* photoreal glass */
.ill-back { fill: #2A3238; filter: drop-shadow(0 4px 8px rgba(26,34,40,.25)); }
.ill-edge { stroke: #3B464D; stroke-width: 2.2; }
.ill-asph { stroke: rgba(255,255,255,.75); stroke-width: 1.2; }
.ill-shine { stroke: #fff; stroke-width: 22; opacity: .18; }
.ill-photo.convex { transform: scale(1.08); transform-origin: 100px 70px; }
.card:hover .ill-shine { transform: translateX(50px); }

/* lighter photos */
.hero-bg { filter: brightness(1.35) saturate(1.1); object-position: 40% 50%; }
.hero::before {
  background:
    linear-gradient(90deg, rgba(10,16,21,.86) 0%, rgba(10,16,21,.6) 42%, rgba(10,16,21,.25) 72%, rgba(10,16,21,.4) 100%),
    linear-gradient(0deg, rgba(10,16,21,.55) 0%, rgba(10,16,21,0) 35%);
}
.gar-bg { filter: brightness(1.3); width: 50%; }
.garages::before { background: linear-gradient(90deg, var(--night-1) 45%, rgba(14,24,32,.1) 100%); }

/* brand tiles: logo on top */
.makes-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.make { grid-template-columns: 1fr; grid-template-rows: auto; justify-items: start; row-gap: 2px; padding: 16px 16px 14px; }
.make-logo { grid-row: auto; width: 44px; height: 44px; margin-bottom: 10px; }
.make-name { font-size: 1.02rem; }
@media (max-width: 1020px) { .makes-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .makes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .make { padding: 12px 10px; }
  .make-logo { width: 34px; height: 34px; margin-bottom: 6px; }
  .make-name { font-size: .88rem; }
  .make-n { font-size: .74rem; }
  .gar-bg { width: 100%; }
}
@media (max-width: 720px) {
  .hero::before { background: linear-gradient(180deg, rgba(10,16,21,.82) 0%, rgba(10,16,21,.55) 45%, rgba(10,16,21,.85) 100%); }
  .gar-bg { opacity: .45; }
  .garages::before { background: linear-gradient(180deg, rgba(14,24,32,.8), rgba(14,24,32,.92)); }
}
.cat-tools { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.cat-tools .filter-sort { margin-left: 0; }
.cat-tools .filter-sort select { min-width: 220px; }
.filters { gap: 14px 32px; }
@media (max-width: 720px) { .cat-tools { width: 100%; justify-content: space-between; } .cat-tools .filter-sort select { min-width: 0; } }
/* cleaned product photos */
img.glass-ill.photo { width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
img.glass-ill.big.photo { width: 100%; height: auto; max-height: 420px; }
.line-ill img.glass-ill.photo { width: 100%; height: 100%; }
.card-img { overflow: hidden; }
.card-img img.glass-ill.photo { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.pd-img img.glass-ill.big.photo { max-height: 380px; width: auto; max-width: 100%; }
