@font-face {
  font-family: 'Noto Sans Georgian';
  src: url(fonts/ka.cc6f24921e.woff2) format('woff2');
  font-weight: 400 800; font-stretch: 62.5% 100%; font-display: swap;
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}
@font-face {
  font-family: 'Noto Sans Georgian';
  src: url(fonts/la.4acb9b8775.woff2) format('woff2');
  font-weight: 400 800; font-stretch: 62.5% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0d1016;
  --bg-2: #11151d;
  --panel: #151a23;
  --panel-2: #1b212c;
  --line: #252c39;
  --line-2: #333c4d;
  --text: #eef1f6;
  --muted: #9aa3b4;
  --dim: #6c7588;
  --red: #e3202f;
  --red-hi: #ff4654;
  --red-lo: #8f0d19;
  --steel: #8ec0e4;
  --wa: #25d366;
  --wa-ink: #032a12;
  --font: 'Noto Sans Georgian', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gut: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font: 400 1rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html.locked, html.locked body { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) var(--gut) 6px;
  max-width: 1440px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { width: 30px; height: 19px; fill: var(--red); }
.brand-word { font-weight: 800; font-stretch: 75%; letter-spacing: .14em; font-size: .95rem; }
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line);
}
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn svg circle { fill: var(--text); stroke: none; }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--red); color: #fff;
  font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center;
  font-variant-numeric: tabular-nums;
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-count.has { transform: scale(1); }
.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* Stage: headline + car */
.layout { max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.stage { padding-top: 14px; }
h1 { margin: 0; }
.h1-a {
  display: block;
  font-weight: 800; font-stretch: 68%;
  font-size: clamp(2.5rem, 12.5vw, 5.4rem); line-height: .94;
  letter-spacing: .005em;
}
.h1-b {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  font-weight: 600; font-size: clamp(1.08rem, 4.4vw, 1.45rem); line-height: 1.3;
}
.h1-b::before {
  content: ''; flex: none; width: 26px; height: 12px;
  background: linear-gradient(90deg, var(--red) 0 22%, transparent 22% 39%, var(--red) 39% 61%, transparent 61% 78%, var(--red) 78%);
  transform: skewX(-18deg);
}
.lede { margin: 14px 0 0; max-width: 34em; color: var(--muted); font-size: .97rem; }

.car { position: relative; margin: 10px calc(-1 * var(--gut)) 0; --k: 1; --paint: 1; touch-action: manipulation; overflow-x: clip; }
.car.focus { --paint: 0; }
.car::before {
  content: ''; position: absolute; inset: 8% 6% 4%; z-index: -1;
  background: radial-gradient(60% 55% at 50% 60%, rgba(227, 32, 47, .26), transparent 70%);
  transition: opacity .6s;
}
.car[data-mode="x"]::before { background: radial-gradient(60% 55% at 50% 60%, rgba(142, 192, 228, .16), transparent 70%); }
.car-svg { width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.paint-red { opacity: var(--paint, 1); transition: opacity .45s var(--ease); }
.art { transition: opacity .5s var(--ease); }
.refl { opacity: .55; }
.car[data-mode="x"] .art { opacity: .1; }
.car[data-mode="x"] .refl { opacity: .08; }
.ghost, .xr { opacity: 0; transition: opacity .5s var(--ease); }
.car[data-mode="x"] .ghost, .car[data-mode="x"] .xr { opacity: 1; }
.xp { fill: rgba(142, 192, 228, .07); stroke: var(--steel); stroke-width: 1.3; stroke-linejoin: round; }
.zs3 { stroke-width: calc(var(--k, 1) * 3px); }
.zs4 { stroke-width: calc(var(--k, 1) * 4px); }
.zs5 { stroke-width: calc(var(--k, 1) * 5px); }
.zs7 { stroke-width: calc(var(--k, 1) * 7px); }
.zd { stroke-dasharray: 7 6; }
.caliper { fill: #d61b2a; }
.drl { filter: drop-shadow(0 0 3px #bfe3ff); }
.tail { filter: drop-shadow(0 0 3px #ff1f35); }
.hz { fill: var(--red-hi); stroke: var(--red-hi); stroke-width: 0; opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.hz.on { opacity: .95; }
.hz.pv { opacity: .5; }
.hit path { fill: transparent; stroke: transparent; pointer-events: none; cursor: pointer; }
.hit .hs { fill: none; }
.car[data-mode="e"] .hit[data-m="e"] .hf, .car[data-mode="x"] .hit[data-m="x"] .hf { pointer-events: all; }
.car[data-mode="e"] .hit[data-m="e"] .hs, .car[data-mode="x"] .hit[data-m="x"] .hs { pointer-events: stroke; }
.scan, .scanline { opacity: 0; pointer-events: none; }
.car.scanning .scan { opacity: 1; }
.car.scanning .scanline { opacity: .9; }
.scanline { fill: var(--steel); filter: drop-shadow(0 0 6px var(--steel)); }

.car.intro .car-move { animation: drive 1.25s var(--ease) both; }
.car.intro .rim { transform-box: fill-box; transform-origin: 50% 50%; animation: spin 1.25s var(--ease) both; }
.car.intro .drl, .car.intro .tail { animation: lamp .5s 1s both; }
@keyframes drive { from { transform: translateX(-150px); opacity: 0; } 35% { opacity: 1; } to { transform: none; } }
@keyframes spin { from { transform: rotate(-400deg); } to { transform: none; } }
@keyframes lamp { from { opacity: 0; } to { opacity: 1; } }

.car-tip {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  padding: 5px 10px; border-radius: 8px;
  background: rgba(13, 16, 22, .92); border: 1px solid var(--line-2);
  font-size: .85rem; font-weight: 600; white-space: nowrap;
  opacity: 0; transition: opacity .15s;
}
.car-tip.show { opacity: 1; }

.car-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.car-hint { margin: 0; color: var(--muted); font-size: .88rem; }
.toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 6px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 600;
}
.toggle .t-l { color: var(--text); transition: color .2s; }
.toggle .t-r { color: var(--dim); transition: color .2s; }
.toggle[aria-checked="true"] .t-l { color: var(--dim); }
.toggle[aria-checked="true"] .t-r { color: var(--steel); }
.lever {
  position: relative; width: 46px; height: 24px; border-radius: 12px;
  background: linear-gradient(#0a0c10, #1b1f27); border: 1px solid #39414f;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6);
}
.knob {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #b9c1cc 45%, #5d6572);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .6);
  transition: transform .35s var(--ease);
}
.toggle[aria-checked="true"] .knob { transform: translateX(22px); }

/* Catalog */
.catalog { margin-top: 26px; }
.tools {
  position: sticky; top: 0; z-index: 6;
  margin: 0 calc(-1 * var(--gut)); padding: 10px var(--gut) 8px;
  background: rgba(13, 16, 22, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.tools.stuck { border-bottom-color: var(--line); }
.tools-row { display: flex; align-items: baseline; justify-content: space-between; }
.tools h2 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; font-stretch: 80%; }
.tools h2 span { color: var(--dim); font-weight: 500; font-size: .9rem; margin-left: 6px; }
.search {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--red); }
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 1rem; }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { display: none; }
.q-clear { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; }
.q-clear svg { width: 16px; height: 16px; stroke: var(--text); }

.chips {
  display: flex; gap: 8px; margin: 10px calc(-1 * var(--gut)) 0; padding: 0 var(--gut) 2px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gut), #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--gut), #000 calc(100% - 28px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; height: 36px; padding: 0 14px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  font-size: .88rem; font-weight: 600; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

.list { padding-bottom: 40px; min-height: 50vh; }
.note { margin: 14px 0 6px; color: var(--dim); font-size: .85rem; }
.cat { border-bottom: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 76px; }
.cat-h { margin: 0; }
.cat-btn {
  width: 100%; display: grid; grid-template-columns: 76px 1fr 24px; align-items: center; gap: 14px;
  padding: 14px 0; background: none; border: 0; text-align: left;
}
.cat-t b { display: block; font-size: 1.04rem; font-weight: 700; }
.cat-t small { color: var(--dim); font-size: .82rem; }
.chev { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.cat.open .chev { transform: rotate(180deg); }
.cat-body { display: none; padding-bottom: 8px; }
.cat.open .cat-body { display: block; animation: reveal .35s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }
.cat-title { display: flex; align-items: center; gap: 14px; margin: 16px 0 4px; }
.cat-title .loc { width: 92px; height: 30px; }
.cat-title b { font-size: 1.3rem; font-stretch: 85%; }
.cat-title small { display: block; color: var(--dim); font-size: .82rem; }
.grp-h {
  display: flex; align-items: baseline; gap: 8px; margin: 18px 0 2px;
  font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: .02em;
}
.grp-h span { color: var(--dim); font-weight: 500; }
.parts { list-style: none; margin: 0; padding: 0; }

.loc { width: 64px; height: 21px; flex: none; --k: 3.2; }
.lb-body { fill: #232a35; stroke: #4c5568; stroke-width: 1; vector-effect: non-scaling-stroke; }
.lb-glass { fill: #10141a; }
.lb-wheel { fill: #0e1116; stroke: #4c5568; stroke-width: 1; vector-effect: non-scaling-stroke; }
.lz { fill: var(--red-hi); stroke: var(--red-hi); stroke-width: 12px; stroke-linejoin: round; }

.part {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid rgba(37, 44, 57, .7);
}
.part:first-child { border-top: 0; }
.pn { margin: 0; font-size: .97rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.pe { margin: 1px 0 0; font-size: .78rem; color: var(--dim); line-height: 1.3; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opt {
  min-height: 32px; padding: 0 11px; border-radius: 9px;
  background: var(--panel); border: 1px solid var(--line-2); color: var(--muted);
  font-size: .8rem; font-weight: 600;
}
.opt[aria-checked="true"] { border-color: var(--red); color: #fff; background: rgba(227, 32, 47, .16); }
.opts.nudge { animation: nudge .45s; }
@keyframes nudge { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.ctl { align-self: start; padding-top: 2px; }
.add {
  width: 44px; height: 44px; border-radius: 13px; border: 0;
  background: var(--red); display: grid; place-items: center;
  box-shadow: 0 6px 18px -8px rgba(227, 32, 47, .8);
  transition: transform .15s;
}
.add:active { transform: scale(.92); }
.add svg, .step svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.stepper {
  display: inline-flex; align-items: center; height: 44px; border-radius: 13px;
  background: var(--panel-2); border: 1px solid var(--red);
}
.step { width: 38px; height: 42px; border: 0; background: none; display: grid; place-items: center; }
.qty { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.empty { padding: 28px 0; }
.empty p { margin: 0 0 12px; color: var(--muted); }
.empty b { color: var(--text); }
.custom {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 14px;
  background: var(--panel); border: 1px dashed var(--line-2); border-radius: 14px; text-align: left;
  font-size: .92rem;
}
.custom .add { width: 36px; height: 36px; flex: none; }
.res-h { margin: 20px 0 2px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.more { margin: 16px 0 0; color: var(--dim); font-size: .85rem; }

/* How it works */
.how { max-width: 1440px; margin: 0 auto; padding: 36px var(--gut) 20px; }
.how h2 { margin: 0 0 18px; font-size: 1.45rem; font-stretch: 80%; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; padding: 16px 16px 16px 60px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 16px;
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 800;
}
.steps b { display: block; font-size: 1rem; }
.steps span { color: var(--muted); font-size: .92rem; }
.mini-steps { display: none; }

.foot { border-top: 1px solid var(--line); margin-top: 24px; }
.foot-in { max-width: 1440px; margin: 0 auto; padding: 24px var(--gut) calc(160px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .88rem; }
.foot-in p { margin: 0 0 8px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.foot-brand .brand-mark { width: 24px; height: 15px; }
.foot a { color: var(--text); }
.legal { color: var(--dim); font-size: .78rem; max-width: 60em; }

/* Bottom basket bar */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none; animation: rise .4s var(--ease);
}
@keyframes rise { from { transform: translateY(120%); } }
.cartbar-btn {
  pointer-events: auto; width: 100%; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 10px 0 12px;
  border: 0; border-radius: 18px; color: #fff; text-align: left;
  background: linear-gradient(180deg, #ea2737, #b8111f);
  box-shadow: 0 16px 36px -14px rgba(227, 32, 47, .75), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.cb-count {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .22); font-weight: 800; font-variant-numeric: tabular-nums;
}
.cb-text { flex: 1; line-height: 1.2; }
.cb-text b { display: block; }
.cb-text small { opacity: .85; font-size: .8rem; }
.cb-go { padding: 9px 14px; border-radius: 11px; background: #fff; color: #9b0d19; font-weight: 700; font-size: .9rem; }

/* Basket sheet */
.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0; padding: 0; border: 0;
  width: 100%; max-width: 100%; height: auto; max-height: 94dvh;
  background: transparent; color: var(--text); overflow: visible;
}
.sheet::backdrop { background: rgba(3, 5, 9, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet[open] .sheet-in { animation: sheet-up .38s var(--ease); }
.sheet.closing .sheet-in { animation: sheet-down .26s ease-in forwards; }
.sheet[open]::backdrop { animation: fade .3s; }
.sheet.closing::backdrop { animation: fade .26s reverse forwards; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet-in {
  display: flex; flex-direction: column; max-height: 94dvh;
  background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
}
.sheet-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gut) 10px; }
.grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-2); }
.sheet-head h2 { margin: 0; font-size: 1.3rem; font-stretch: 85%; }
.sheet-head h2 span { color: var(--dim); font-size: .9rem; font-weight: 500; }
.x { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.x svg, .q-clear svg { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.x svg { width: 18px; height: 18px; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gut) 12px; }
.bag { list-style: none; margin: 0; padding: 0; }
.bag li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.bag .loc { width: 56px; height: 19px; }
.bag-name { margin: 0; font-weight: 600; font-size: .93rem; line-height: 1.3; overflow-wrap: anywhere; }
.bag-var { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }
.bag-ctl { display: flex; align-items: center; gap: 6px; }
.bag .stepper { height: 38px; }
.bag .step { width: 32px; height: 36px; }
.del { width: 36px; height: 38px; border: 0; border-radius: 10px; background: none; display: grid; place-items: center; }
.del svg { width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bag-tools { display: flex; justify-content: flex-end; padding: 8px 0 0; }
.link-btn { border: 0; background: none; color: var(--muted); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.link-btn.warn { color: var(--red-hi); }
.bag-empty { padding: 24px 0 8px; color: var(--muted); }
.bag-empty p { margin: 0 0 6px; }
.bag-empty b { color: var(--text); font-size: 1.05rem; }
.ghost-btn { margin-top: 10px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 600; }

.order { margin-top: 14px; }
.field { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.field legend, .field > label { display: block; padding: 0; margin: 0 0 8px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span {
  display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; align-items: center;
  min-height: 64px; padding: 10px 12px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.seg-opt svg { grid-row: span 2; width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seg-opt b { font-size: .95rem; line-height: 1.2; }
.seg-opt small { color: var(--dim); font-size: .76rem; line-height: 1.25; }
.seg-opt input:checked + span { border-color: var(--red); background: rgba(227, 32, 47, .12); }
.seg-opt input:checked + span svg { stroke: var(--red-hi); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--red-hi); outline-offset: 2px; }
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.day {
  min-height: 52px; padding: 6px 9px; border-radius: 12px; text-align: left;
  background: var(--panel); border: 1px solid var(--line); line-height: 1.2;
}
.day b { display: block; font-size: .9rem; }
.day small { color: var(--dim); font-size: .74rem; }
.day[aria-checked="true"] { border-color: var(--red); background: rgba(227, 32, 47, .12); }
.date-native { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.field input[type="text"], .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; outline: 0;
  background: var(--panel); border: 1px solid var(--line); font-size: 1rem; resize: vertical;
  transition: border-color .2s;
}
.field input[type="text"]:focus, .field textarea:focus { border-color: var(--red); }
.field.bad input, .field.bad textarea, .field.bad .day, .field.bad .seg-opt span { border-color: #ff6b6b; }
.err { margin: 6px 0 0; color: #ff8a8a; font-size: .82rem; min-height: 0; }
.err:empty { display: none; }
.sent { margin: 8px 0; padding: 14px; border-radius: 14px; background: rgba(37, 211, 102, .1); border: 1px solid rgba(37, 211, 102, .35); }
.sent p { margin: 0; font-size: .92rem; }

.sheet-foot {
  padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--bg-2);
}
.wa-title { margin: 0 0 8px; font-size: .9rem; font-weight: 700; }
.wa-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.wa {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0;
  height: 50px; padding: 0 10px; border-radius: 14px; background: var(--wa); color: var(--wa-ink);
  font-weight: 800; font-size: 1rem; text-decoration: none;
  box-shadow: 0 12px 28px -14px rgba(37, 211, 102, .8);
}
.wa svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.wa span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-foot .link-btn { margin-top: 4px; }
.wa-fab {
  position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 19;
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 12px;
  border-radius: 23px; background: var(--wa); color: var(--wa-ink);
  font-weight: 700; font-size: .88rem; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 26px -10px rgba(37, 211, 102, .7), 0 2px 10px rgba(0, 0, 0, .45);
  transition: bottom .35s var(--ease);
}
.wa-fab svg { width: 22px; height: 22px; fill: currentColor; }
body.has-cart .wa-fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
body.has-cart .toast { bottom: calc(146px + env(safe-area-inset-bottom)); }
.foot-note { margin: 2px 0 0; color: var(--dim); font-size: .76rem; }

.toast {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 60;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px;
  background: #f4f6fa; color: #10131a; font-size: .9rem; font-weight: 600;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.fly { position: fixed; z-index: 70; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 12px var(--red-hi); pointer-events: none; }

/* Larger screens */
@media (min-width: 700px) {
  :root { --gut: 28px; }
  .car { margin: 14px 0 0; }
  .catalog { max-width: 820px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .sheet { inset: 0 0 0 auto; width: 460px; height: 100dvh; max-height: none; }
  .sheet-in { height: 100%; max-height: none; border-radius: 0; border: 0; border-left: 1px solid var(--line); }
  .grab { display: none; }
  @keyframes sheet-up { from { transform: translateX(100%); } }
  @keyframes sheet-down { to { transform: translateX(100%); } }
  .toast { bottom: 100px; }
}
@media (min-width: 1100px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .stage { position: sticky; top: 0; padding-top: 28px; padding-bottom: 24px; }
  .catalog { margin-top: 0; max-width: none; padding-top: 18px; }
  .tools { position: static; margin: 0; padding: 12px 0 10px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .chips { margin: 10px 0 0; padding: 0 0 2px; gap: 6px; flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .chip { height: 32px; padding: 0 11px; font-size: .82rem; }
  .how { display: none; }
  .mini-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; margin: 28px 0 0; padding: 0; counter-reset: s; }
  .mini-steps li { counter-increment: s; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); font-size: .85rem; line-height: 1.35; }
  .mini-steps li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 8px; border-radius: 7px; background: var(--red); color: #fff; font-weight: 800; font-size: .8rem; }
  .mini-steps b { display: block; }
  .mini-steps span { color: var(--dim); }
  .h1-a { font-size: clamp(3.6rem, 5.4vw, 5.6rem); }
  .wa-fab, body.has-cart .wa-fab { left: 24px; bottom: 24px; }
  body.has-cart .toast { bottom: 100px; }
}
@media (hover: hover) {
  .chip:hover { color: var(--text); border-color: var(--line-2); }
  .opt:hover { color: var(--text); }
  .part:hover { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .02), transparent); }
  .cat-btn:hover .cat-t b { color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
