/* Margon Auto SPA, one-page site. The studio starts dark, the hex ceiling lights up and the
   walls turn warm light grey. Graphite ink, Margon brass only for actions and
   the service highlight on the car. One family: Schibsted Grotesk. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/schibsted/sg-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/schibsted/sg-latin.woff2") format("woff2");
  font-weight: 400 900;
  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 {
  --wall: #ece9e3;      /* the studio walls; also the WebGL background (scene.js WALL) */
  --paper: #f5f3ef;     /* panels that sit in front of the car */
  --ink: #23201c;       /* 13.4:1 on wall */
  --ink-2: #5e5952;     /* 5.7:1 on wall */
  --line: #cfcac1;      /* hairlines only */
  --ctrl: #8a847a;      /* control borders, 3.1:1 on wall */
  --brass: #c39a55;     /* from the logo; ink on brass 6.2:1 */
  --brass-ink: #86601f; /* brass as text, 4.7:1 on wall */
  --night: #0b0a09;     /* the studio before the lights */
  --err: #a3261b;
  --f: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  --gut: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--wall); scroll-padding-top: var(--nav-h); }
body { font: 400 1.0625rem/1.55 var(--f); color: var(--ink); font-kerning: normal; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a, button, label { -webkit-tap-highlight-color: rgba(35, 32, 28, 0.08); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h2 { font-weight: 750; font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.wrap { width: min(1320px, 100% - 2 * var(--gut)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--ink); color: var(--wall); }
.skip:focus { top: 12px; }

.curtain { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; background: var(--wall); transition: opacity 0.7s var(--ease), visibility 0.7s; }
.curtain img { width: clamp(140px, 18vw, 200px); }
.gl-ready .curtain, .no-gl .curtain { opacity: 0; visibility: hidden; }

/* ---------- fixed stage: cyclorama and canvas ---------- */
.stage { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: 0; background: var(--wall); }
.stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; }
.no-gl .stage { display: none; }

.annos { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.anno { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; opacity: 0; will-change: transform; }
.anno i { flex: none; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px rgba(195, 154, 85, 0.25); }
.anno b { padding: 6px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); font-size: 0.86rem; font-weight: 650; white-space: nowrap; transform: translateY(-6px); }
.anno.flip { flex-direction: row-reverse; }
.anno.flip i { margin: -6px -6px 0 0; }
.anno.done i { background: transparent; border: 2px solid var(--brass); box-shadow: none; }
.anno.done b { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--brass-ink); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); background: var(--wall); box-shadow: 0 1px 0 var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav-logo img { width: 92px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a, .nav-phone { text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav-links a:hover, .nav-phone:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.nav-phone { font-variant-numeric: tabular-nums; }
.nav-social { display: flex; margin-inline: -8px; }
.nav-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 3px; }
.nav-social svg { width: 22px; height: 22px; fill: currentColor; }
.nav-social svg.ig { fill: none; stroke: currentColor; stroke-width: 1.9; }
.nav-social svg.ig .dot { fill: currentColor; stroke: none; }
.nav-social a:hover { color: var(--brass-ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 3px; font-weight: 650; font-size: 1rem; text-decoration: none; transition: background-color 0.2s, transform 0.2s var(--ease); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: #b48a45; }
.btn-brass:active { transform: translateY(1px); }
.btn-line { border: 1px solid var(--ctrl); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm, .nav-cta { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- hero: copy to the left of the car ---------- */
.hero, .story { position: relative; z-index: 1; pointer-events: none; }
.hero a, .hero button, .story .ui { pointer-events: auto; }
.hero { min-height: 100svh; display: flex; padding: calc(var(--nav-h) + clamp(28px, 7vh, 80px)) 0 clamp(28px, 5vh, 56px); }
.hero-inner { display: flex; flex-direction: column; gap: 26px; }
.hero-inner > * { max-width: min(40vw, 34rem); }
.display { font-weight: 800; font-size: clamp(2.8rem, 5.4vw, 5.6rem); line-height: 0.94; letter-spacing: -0.04em; text-wrap: balance; }
.lead { font-size: clamp(1.06rem, 1.25vw, 1.2rem); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.call { text-decoration: none; color: var(--ink-2); }
.call b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.latest { display: grid; gap: 4px; margin-top: auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); text-decoration: none; transition: border-color 0.2s; }
.latest:hover { border-color: var(--ctrl); }
.latest[hidden] { display: none; }
.latest-k { font-size: 0.88rem; color: var(--ink-2); }
.latest-car { font-weight: 750; font-size: 1.2rem; letter-spacing: -0.01em; }
.latest-what { font-size: 0.95rem; color: var(--ink-2); }
.hero-inner > .facts { max-width: none; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; list-style: none; font-size: 0.92rem; color: var(--ink-2); }
.facts li + li::before { content: ""; display: inline-block; width: 1px; height: 0.9em; margin: 0 12px; vertical-align: -0.1em; background: var(--line); }
.facts a { text-underline-offset: 3px; text-decoration-color: var(--line); }
.hero-fallback { display: none; }
.no-gl .hero-fallback { display: block; position: absolute; inset: var(--nav-h) 0 0 42%; z-index: -1; overflow: hidden; }
.no-gl .hero-fallback img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }

/* ---------- studio story: polishing pass ---------- */
.story-pin { position: sticky; top: 0; height: 100svh; display: flex; }
.polish { height: 420vh; }
.polish-wrap { display: flex; align-items: center; padding-top: var(--nav-h); }
.phases { display: grid; width: min(420px, 100%); }
.phase { grid-area: 1 / 1; display: grid; gap: 14px; align-content: start; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 18px 40px -28px rgba(35, 32, 28, 0.45); }
.phase h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
.phase p { color: var(--ink-2); }
.phase-price { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--brass-ink) !important; }
.no-gl .polish { display: none; }

/* ---------- configurator ---------- */
.cfg { height: 150vh; }
.cfg-wrap { position: relative; display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 20px 48px; padding: calc(var(--nav-h) + 24px) 0 32px; }
.cfg-side { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 22px; min-height: 0; padding: 26px 26px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 18px 40px -28px rgba(35, 32, 28, 0.45); }
.cfg-head { display: grid; gap: 10px; }
.cfg-head h2 { font-size: clamp(2rem, 3.1vw, 2.85rem); }
.cfg-head p { color: var(--ink-2); }
.cfg-list { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.cfg-btn { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 11px 0 11px 20px; border-top: 1px solid var(--line); text-align: left; color: var(--ink-2); font-weight: 500; transition: color 0.2s; }
.cfg-btn::before { content: ""; position: absolute; left: 2px; top: calc(50% - 4px); width: 8px; height: 8px; background: var(--brass); transform: scale(0); transition: transform 0.35s var(--ease); }
.cfg-btn:hover { color: var(--ink); }
.cfg-btn[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.cfg-btn[aria-pressed="true"]::before { transform: scale(1); }
.cfg-btn .p { font-size: 0.95rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.cfg-btn[aria-pressed="true"] .p { color: var(--brass-ink); font-weight: 650; }
.cfg-card { grid-column: 2; grid-row: 2; justify-self: end; display: grid; gap: 14px; width: min(440px, 100%); padding: 24px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 18px 40px -28px rgba(35, 32, 28, 0.45); }
.cfg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cfg-top h3 { font-weight: 750; font-size: 1.4rem; line-height: 1.15; letter-spacing: -0.015em; }
.cfg-top .price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brass-ink); white-space: nowrap; }
.cfg-card .desc { color: var(--ink-2); font-size: 0.98rem; }
.cfg-card .note { font-size: 0.95rem; }
.cfg-card .btn { justify-self: start; }
.pkg { display: grid; border: 1px solid var(--ctrl); border-radius: 3px; }
.pkg button { min-height: 44px; padding: 8px 14px; text-align: left; font-size: 0.96rem; font-weight: 550; color: var(--ink-2); }
.pkg button + button { border-top: 1px solid var(--ctrl); }
.pkg button:hover { color: var(--ink); }
.pkg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 36px; height: 36px; border-radius: 50%; background: var(--c); border: 1px solid var(--ctrl); transition: transform 0.2s var(--ease); }
.sw:hover { transform: scale(1.08); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.cfg-hint { position: absolute; right: 0; top: calc(var(--nav-h) + 26px); padding: 6px 10px; background: var(--paper); border-radius: 3px; font-size: 0.9rem; color: var(--ink-2); }
.no-gl .cfg { height: auto; }
.no-gl .story-pin { position: relative; height: auto; }
.no-gl .cfg-card { grid-row: 1; align-self: start; }
.no-gl .cfg-hint { display: none; }

/* ---------- the rest of the page sits on paper over the stage ---------- */
.sheetpage { position: relative; z-index: 2; background: var(--wall); }
.sec { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head p { font-size: 1.1rem; color: var(--ink-2); }

/* Realizacje: a work log, newest first */
.filters { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 8px; }
.filters[hidden] { display: none; }
.filters button { min-height: 44px; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; }
.filters button[hidden] { display: none; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--brass); }
.filters .count { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.log { list-style: none; padding: 0; }
.entry { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.entry[hidden] { display: none; }
.entry-date { padding-top: 6px; font-size: 0.95rem; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.entry-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 0.75fr); gap: 20px 48px; min-width: 0; }
.entry h3 { font-weight: 750; font-size: clamp(1.5rem, 2.3vw, 2rem); letter-spacing: -0.025em; }
.entry-title { margin-top: 6px; color: var(--ink-2); }
.entry-done { display: grid; gap: 8px; padding: 0; list-style: none; align-content: start; }
.entry-done li { position: relative; padding-left: 20px; }
.entry-done li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--brass); }
/* Desktop: every photo of the post in one row. Each takes a flex share equal to its aspect
   ratio (--a, set by app.js), so all come out the same height, whole and uncropped. */
.entry-photos { grid-column: 1 / -1; display: flex; gap: 8px; }
.entry-photos button { flex: var(--a, 0.75) 1 0; min-width: 0; border-radius: 2px; overflow: hidden; background: var(--line); }
.entry-photos img { width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.entry-photos button:hover img { transform: scale(1.03); }
.entry-link { grid-column: 1 / -1; justify-self: start; font-size: 0.95rem; color: var(--ink-2); text-underline-offset: 4px; }
.log-empty { color: var(--ink-2); }
.log:not(:empty) ~ .log-empty { display: none; } /* ~: the "Pokaż więcej" button sits in between */
.log-more { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); }

/* Inspection lamp: a black paint panel, before and after, under a moving lamp */
.lamp { position: relative; width: 100%; aspect-ratio: 16 / 8; max-height: 72vh; border-radius: 3px; overflow: hidden; background: var(--night); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lamp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: none; }
.lamp-tag { position: absolute; top: 14px; z-index: 2; padding: 7px 11px; border-radius: 3px; background: var(--paper); color: var(--ink); font-size: 0.92rem; font-weight: 650; pointer-events: none; }
.lamp-tag .long { font-weight: 400; color: var(--ink-2); }
.lamp-tag--l { left: 14px; }
.lamp-tag--r { right: 14px; }
.lamp-split { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 3; width: 48px; transform: translateX(-50%); touch-action: none; cursor: ew-resize; }
.lamp-split::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--brass); }
.lamp-knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--brass); }
.lamp-split:focus-visible .lamp-knob { outline: 2px solid var(--paper); outline-offset: 4px; }
.lamp-knob .i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.lamp-hint { position: absolute; z-index: 2; left: 14px; bottom: 14px; max-width: 40%; font-size: 0.88rem; color: #a7a198; pointer-events: none; }
.lamp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 22px; }
.lamp-foot p { max-width: 46rem; color: var(--ink-2); }
.lamp-foot b { color: var(--ink); font-weight: 650; }
.lamp-note { margin-top: 10px; font-size: 0.86rem; color: var(--ink-2); }

/* Paint layers: what protects the paint, and with which product */
.layers { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.stack-scene { position: sticky; top: calc(var(--nav-h) + 24px); height: min(560px, calc(100svh - var(--nav-h) - 48px)); perspective: 1800px; display: grid; place-items: center; }
.stack-scene::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 10%; height: 34px; border-radius: 50%; background: rgba(35, 32, 28, 0.16); filter: blur(14px); z-index: -1; }
.stack { --gap: 7px; position: relative; width: clamp(190px, 24vw, 320px); aspect-ratio: 1; transform-style: preserve-3d; transform: translateY(12%) rotateX(58deg) rotateZ(-42deg); }
.stack.open { --gap: clamp(28px, 4vw, 56px); }
.layer { position: absolute; inset: 0; border-radius: 3px; transform: translateZ(calc(var(--i) * var(--gap))); transition: transform 0.9s var(--ease), opacity 0.35s, box-shadow 0.35s; box-shadow: inset 0 0 0 1px rgba(35, 32, 28, 0.18); }
.layer.hot { transform: translateZ(calc(var(--i) * var(--gap) + 22px)); box-shadow: inset 0 0 0 2px var(--brass); }
.stack.has-hot .layer:not(.hot) { opacity: 0.35; }
.layer span { position: absolute; left: 10px; bottom: 9px; font-size: 0.8rem; font-weight: 650; color: var(--paper); opacity: 0; transition: opacity 0.3s; }
.layer.hot span { opacity: 1; }
.l0 { background: repeating-linear-gradient(90deg, rgba(245, 243, 239, 0.06) 0 1px, transparent 1px 3px), #67666a; }
.l1 { background: #8d8679; }
.l2 { background: radial-gradient(rgba(245, 243, 239, 0.18) 0.6px, transparent 1.2px) 0 0 / 6px 6px, #9e1c25; }
.l3 { background: rgba(245, 243, 239, 0.42); box-shadow: inset 0 0 0 1px rgba(35, 32, 28, 0.28); }
.l3 span, .l5 span { color: var(--ink); }
.l4 { background: rgba(195, 154, 85, 0.5); }
.l4 span { color: var(--ink); }
.l5 { background: rgba(245, 243, 239, 0.28); box-shadow: inset 0 0 0 1.5px rgba(35, 32, 28, 0.4); }
.layer-list { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lay { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; width: 100%; padding: 18px 0; text-align: left; border-bottom: 1px solid var(--line); }
.lay strong { font-weight: 750; font-size: 1.2rem; letter-spacing: -0.01em; transition: color 0.2s; }
.lay .brand { font-weight: 500; color: var(--ink-2); }
.lay em { font-style: normal; font-size: 0.92rem; font-weight: 650; color: var(--brass-ink); white-space: nowrap; padding-top: 3px; }
.lay .d { grid-column: 1 / -1; color: var(--ink-2); max-width: 40rem; }
.lay:hover strong, .lay.hot strong { color: var(--brass-ink); }
.footnote { margin-top: 12px; font-size: 0.86rem; color: var(--ink-2); }
.mat-note { max-width: 46rem; margin-top: 28px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 32px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding: 22px 0 26px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); font-weight: 800; font-size: 2.4rem; line-height: 1; letter-spacing: -0.04em; color: var(--brass-ink); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--ink-2); }

/* Prices */
.price-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.pgroup h3 { padding-bottom: 10px; font-size: 1.2rem; }
.prow { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.prow b { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-foot { margin-top: 36px; color: var(--ink-2); }
.price-foot a { color: var(--ink); font-weight: 650; text-underline-offset: 4px; }

/* Voucher */
.bon { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 40px 72px; align-items: center; }
.bon h2 + p { margin: 14px 0 22px; font-size: 1.1rem; color: var(--ink-2); max-width: 34rem; }
.voucher { display: grid; gap: 6px; aspect-ratio: 1.6; max-width: 480px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 24px 50px -34px rgba(35, 32, 28, 0.55); align-content: space-between; }
.voucher img { width: 90px; }
.v-val { font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; }
.v-sub { color: var(--ink-2); }
.v-foot { font-size: 0.85rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; }
.bon-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.bon-opts button, .chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ctrl); border-radius: 3px; font-weight: 550; font-size: 0.96rem; }
.bon-opts button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Contact and quote form */
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr); gap: 0 64px; }
.contact .sec-head { grid-column: 1 / -1; }
.form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-content: start; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 0; border: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field legend, .legend { font-weight: 650; font-size: 0.95rem; }
.field legend { margin-bottom: 10px; }
.req { color: var(--brass-ink); }
.form input:not([type="checkbox"]):not([type="file"]), .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--ctrl); border-radius: 3px; background: var(--paper); color: var(--ink); font: inherit; }
.form textarea { min-height: 120px; resize: vertical; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
.form [aria-invalid="true"] { border-color: var(--err) !important; }
.err { font-size: 0.9rem; color: var(--err); }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px dashed var(--ctrl); border-radius: 3px; cursor: pointer; }
.drop:hover { border-color: var(--ink); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.drop small { display: block; color: var(--ink-2); }
.need-photo { font-size: 0.95rem; color: var(--brass-ink); }
.field:has(.need-photo:not([hidden])) .drop { border-color: var(--brass-ink); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 0.95rem !important; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-actions small { color: var(--ink-2); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-fail a { color: inherit; font-weight: 650; }
.form.sending [type="submit"] { opacity: 0.6; pointer-events: none; }
.consent a { text-underline-offset: 3px; }
.form-done { display: none; grid-column: 1 / -1; gap: 12px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; }
.form.done > :not(.form-done) { display: none; }
.form.done .form-done { display: grid; }
.form-done .btn { justify-self: start; }
.ccard { display: grid; gap: 18px; align-content: start; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.c-name { font-weight: 750; font-size: 1.3rem; }
.c-big { font-weight: 750; font-size: 1.5rem; font-variant-numeric: tabular-nums; text-decoration: none; }
.ccard a:not(.btn):not(.c-big) { text-underline-offset: 3px; }
.hours { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.hours caption { text-align: left; font-weight: 650; padding-bottom: 6px; }
.hours th, .hours td { padding: 8px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { font-weight: 700; }

/* Map: our own drawing from OpenStreetMap data (tooling/tools/build-map.mjs); nothing from
   Google loads until the visitor taps it */
.map { position: relative; grid-column: 1 / -1; margin-top: 48px; aspect-ratio: 16 / 7; min-height: 300px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #e9e5de; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.map-open img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-open .btn { position: absolute; left: 16px; bottom: 16px; }
.map-open:hover .btn { background: #b48a45; }
.map-open:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.map-credit { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; min-height: 24px; padding: 0 8px; border-top-left-radius: 3px; background: rgb(245 243 239 / 0.9); font-size: 0.75rem; color: var(--ink-2); text-underline-offset: 2px; }
.map-note { grid-column: 1 / -1; margin-top: 10px; font-size: 0.88rem; color: var(--ink-2); }
.map-note a { text-underline-offset: 3px; }

/* Reviews */
.rev-links { display: flex; flex-wrap: wrap; gap: 12px; }

.foot { border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 12px; padding: 44px 0 96px; color: var(--ink-2); font-size: 0.95rem; }
.foot-in img { width: 86px; }
.credit { font-size: 0.85rem; }

/* Text pages: privacy policy, 404 */
.legal { --nav-h: 72px; }
.legal .nav-in { flex-wrap: nowrap; }
.legal .nav-cta { margin-left: auto; margin-block: 0; }
.legal-body { max-width: 46rem; padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(64px, 8vw, 104px); display: grid; gap: 16px; }
.legal-body h1 { font-weight: 750; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.04; letter-spacing: -0.035em; }
.legal-body h2 { margin-top: 24px; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.2; }
.legal-lead { font-size: 1.15rem; color: var(--ink-2); }
.legal-body ul { display: grid; gap: 10px; padding-left: 1.2em; }
.legal-body a:not(.btn) { text-underline-offset: 3px; }
.legal-back { margin-top: 24px; }
.legal .foot-in { padding-bottom: 44px; }

/* Mobile call bar */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--wall); box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform 0.35s var(--ease); }
.mbar a { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--ctrl); border-radius: 3px; font-weight: 650; text-decoration: none; }
.mbar .mbar-cta { background: var(--brass); border-color: var(--brass); }

/* Lightbox */
.lightbox { width: min(1100px, calc(100% - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: 4px; background: var(--paper); color: var(--ink); }
.lightbox::backdrop { background: rgba(20, 18, 16, 0.84); }
.lightbox img { width: 100%; max-height: calc(100svh - 110px); object-fit: contain; background: var(--night); }
.lb-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.lb-bar p { flex: 1; min-width: 0; }
.lb-bar p span { color: var(--ink-2); }
.lb-btn { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--ctrl); border-radius: 3px; font-size: 0.92rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lb-btn:hover { border-color: var(--ink); }
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Pieces that exist only for phones (built by app.js / scene.js), hidden on wide screens */
.quick, .cfg-back, .cfg-tel, .cfg-btn .s, .pg-min { display: none; }
.cfg-act { display: flex; flex-wrap: wrap; gap: 10px; }
.log-show { margin-top: 24px; }
.log-show[hidden] { display: none; }
.pg-btn { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 16px; text-align: left; font-weight: inherit; cursor: default; }

/* ---------- phones: "studio in the hand" ----------
   Every 3D chapter has the same anatomy: the car in a free band at the top, one paper panel
   docked at the bottom under the thumb. scene.js measures that band and frames the car into it.
   Below the 3D every section is capped to about one screen. */
@media (max-width: 900px) {
  /* Header: row A (logo, phone) slides away after the first scroll; row B (the four section
     links and the Facebook / Instagram icons) always stays. --nav-vis is what is left visible. */
  :root { --nav-a: 48px; --nav-h: 93px; --nav-vis: 93px; }
  html { scroll-padding-top: 52px; }
  html.nav-min { --nav-vis: 45px; }
  .nav { transition: transform 0.3s var(--ease); }
  html.nav-min .nav { transform: translateY(calc(-1 * var(--nav-a))); }
  /* keyboard focus anywhere in the bar brings the hidden row back (WCAG 2.4.11); a tap on a
     link focuses it too, but not :focus-visible, so the bar stays slim for fingers */
  html.nav-min .nav:has(:focus-visible) { transform: none; }
  .nav-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: var(--nav-a) 45px; gap: 0; align-items: center; }
  .nav-logo { grid-area: 1 / 1; justify-self: start; }
  .nav-logo img { width: 68px; }
  .nav-phone { grid-area: 1 / 2; display: grid; place-items: center; min-height: 44px; font-weight: 650; }
  .nav-links { grid-area: 2 / 1; align-self: stretch; margin: 0; gap: 0; justify-content: space-between; padding-right: 4px; border-top: 1px solid var(--line); }
  .nav-social { grid-area: 2 / 2; align-self: stretch; align-items: center; margin: 0 -10px 0 0; border-top: 1px solid var(--line); }
  .nav-links a { flex: 1 1 auto; display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; font-size: clamp(0.82rem, 3.7vw, 0.95rem); font-weight: 600; }
  .nav-links a:first-child { place-items: center start; }
  #nav .nav-cta { display: none; } /* the main page: the phone number and the call bar stand in; legal pages and 404 keep theirs */

  /* Call bar: from the end of the intro, out of the way in the configurator (the sheet has
     the same two actions), over the form and while typing. */
  .mbar { display: grid; }
  .lit .mbar, .no-gl .mbar { transform: none; }
  html.in-cfg .mbar, html.in-form .mbar, html.typing .mbar { transform: translateY(110%); }

  /* Hero: car in the band at the top, the copy under it, all inside one screen */
  .hero { padding: var(--nav-h) 0 calc(76px + env(safe-area-inset-bottom)); }
  .hero-inner { margin-top: auto; gap: 14px; }
  .hero-inner > * { max-width: none; }
  .display { font-size: clamp(2.3rem, 10.5vw, 3.6rem); }
  .lead { font-size: 1.04rem; }
  .lead-2, .hero-cta, .facts li:not(:first-child), .latest-what { display: none; }
  .facts a { display: inline-flex; align-items: center; min-height: 44px; }
  .latest { display: flex; align-items: baseline; gap: 8px; min-height: 48px; padding: 12px 14px; margin-top: 0; white-space: nowrap; overflow: hidden; }
  .latest-car { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 1.02rem; }
  .no-gl .hero-fallback { inset: var(--nav-h) 0 auto 0; height: 44svh; }

  /* Polishing pass: two pinned screens, captions docked above the call bar */
  .polish { height: 260vh; height: 260lvh; }
  .polish .story-pin { align-items: flex-end; }
  .polish-wrap { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .annos { display: none; } /* three labels collide on a small car; the caption says the same */
  .phase { gap: 6px; padding: 14px 16px 16px; }
  .phase h2 { font-size: 1.35rem; }
  .phase p { font-size: 0.98rem; }
  .phases { position: relative; }
  .phases::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brass); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

  /* Configurator: heading, the car, then every service as a tile under the thumb. A tap slides
     the service's sheet up over the tiles; "Wszystkie usługi" slides it away. */
  .cfg { height: 150vh; height: 150lvh; }
  .cfg-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 0; padding: calc(var(--nav-vis) + 10px) 0 0; }
  .cfg-side { display: contents; }
  .cfg-head { grid-row: 1; justify-self: start; gap: 2px; padding: 0; }
  .cfg-head h2 { font-size: 1.3rem; }
  .cfg-head p { font-size: 0.92rem; }
  .cfg-hint { display: none; }
  .cfg-list { grid-row: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; margin-inline: calc(-1 * var(--gut)); padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); border-radius: 8px 8px 0 0; background: var(--paper); box-shadow: 0 -14px 30px -24px rgba(35, 32, 28, 0.5); }
  .cfg-btn { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 1px; min-height: 52px; padding: 6px 12px; border: 1px solid var(--ctrl); border-radius: 3px; background: var(--wall); text-align: left; }
  .cfg-btn::before, .cfg-btn .n { display: none; }
  .cfg-btn .s { display: block; font-weight: 650; font-size: 0.92rem; line-height: 1.2; color: var(--ink); }
  .cfg-btn .p { font-size: 0.82rem; }
  .cfg-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .cfg-btn[aria-pressed="true"] .s, .cfg-btn[aria-pressed="true"] .p { color: var(--paper); }
  .cfg-card { position: absolute; grid-area: auto; left: calc(-1 * var(--gut)); right: calc(-1 * var(--gut)); bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 10px; width: auto; max-height: calc(100% - var(--nav-vis) - 56px); overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--gut) calc(12px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); border-radius: 8px 8px 0 0; background: var(--paper); box-shadow: 0 -14px 30px -24px rgba(35, 32, 28, 0.5); transform: translateY(105%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0s linear 0.35s; }
  .cfg-card:not(.open) { pointer-events: none; } /* a tile tapped while the sheet slides away is a tap on the tile */
  .cfg-card.open { transform: none; visibility: visible; transition: transform 0.35s var(--ease); }
  .cfg-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; min-height: 44px; margin-left: -6px; padding: 0 10px 0 2px; font-weight: 650; font-size: 0.95rem; color: var(--ink-2); }
  .cfg-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
  .cfg-top { align-items: baseline; }
  .cfg-top h3 { flex: 1; font-size: 1.15rem; }
  .cfg-top h3:focus { outline: none; }
  .cfg-card .desc { font-size: 0.95rem; }
  .pkg + .note { min-height: 2.9em; } /* the longest package note: a shorter one does not move the buttons */
  .pkg { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .pkg button { flex: 1 1 auto; border: 1px solid var(--ctrl); border-radius: 3px; text-align: center; }
  .pkg button + button { border-top: 1px solid var(--ctrl); }
  .swatches { flex-wrap: wrap; justify-content: space-between; gap: 6px; }
  .sw { width: 44px; height: 44px; }
  .cfg-act { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: auto; }
  .cfg-act .btn { justify-self: stretch; min-height: 48px; padding: 0 12px; }
  .cfg-tel { display: inline-flex; }
  /* no 3D: tiles and the card one under the other, the card always open */
  .no-gl .cfg-wrap { grid-template-rows: auto auto auto; }
  .no-gl .cfg-list { grid-row: 2; }
  .no-gl .cfg-card { position: static; grid-row: 3; max-height: none; transform: none; visibility: visible; pointer-events: auto; border-radius: 0; box-shadow: none; }
  .no-gl .cfg-back { display: none; }

  /* Sections below the 3D */
  .sec { padding: 48px 0; }
  .sec-head { margin-bottom: 24px; }
  .sec-head p { font-size: 1rem; }

  .filters { flex-wrap: nowrap; gap: 0 20px; overflow-x: auto; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; white-space: nowrap; }
  .entry { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; }
  .entry-main { display: contents; }
  .entry-photos { order: -1; margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .entry-photos::-webkit-scrollbar { display: none; }
  .entry-photos button { flex: none; scroll-snap-align: start; }
  .entry-photos img { width: auto; height: 280px; }
  .entry-date { order: 1; padding: 0; font-size: 0.9rem; }
  .entry h3 { font-size: 1.35rem; }
  .entry-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.95rem; }
  .entry-done { order: 2; display: flex; flex-wrap: wrap; gap: 0 6px; }
  .entry-done li { padding: 0; }
  .entry-done li::before { content: none; }
  .entry-done li:not(:last-child)::after { content: ","; }
  .entry-link { order: 3; display: inline-flex; align-items: center; min-height: 44px; }
  .log-show { width: 100%; }

  .lamp { aspect-ratio: 1; max-height: none; width: auto; margin-inline: calc(-1 * var(--gut)); border-radius: 0; }
  .lamp .long { display: none; }
  .lamp-hint { max-width: 70%; }
  .lamp-foot { display: grid; gap: 14px; margin-top: 16px; }
  .lamp-foot .btn { width: 100%; min-height: 48px; }

  /* Paint layers: the stack stays in view under the nav, the list is an accordion */
  .layers { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stack-scene { position: sticky; top: calc(var(--nav-vis) + 4px); z-index: 1; height: 200px; background: var(--wall); box-shadow: 0 1px 0 var(--line); }
  .stack-scene::after { bottom: 6%; }
  .stack { width: 150px; }
  .stack.open { --gap: 26px; }
  .layers > div:last-child { padding-top: 24px; }
  .lay { min-height: 56px; padding: 14px 0; }
  .lay strong { font-size: 1.08rem; }
  .lay .d { display: none; }
  .lay.hot .d { display: block; }
  .mat-note { padding: 16px; }

  /* Process: a compact numbered timeline */
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 2.2rem minmax(0, 1fr); gap: 4px 12px; padding: 14px 0 16px; }
  .steps li::before { grid-row: 1 / span 2; font-size: 1.3rem; line-height: 1.2; }
  .steps p { font-size: 0.98rem; }

  /* Prices: one group open at a time, each closed one shows its lowest price */
  .price-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .price-cols.acc { border-bottom: 1px solid var(--line); }
  .price-cols.acc .pgroup h3 { padding: 0; border-top: 1px solid var(--line); }
  .price-cols.acc .pg-btn { min-height: 56px; padding: 12px 0; cursor: pointer; }
  .price-cols.acc .pg-min { display: inline; margin-left: auto; font-size: 0.95rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--brass-ink); }
  .price-cols.acc .pg-btn::after { content: ""; flex: none; align-self: center; width: 9px; height: 9px; margin: 0 4px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-3px) rotate(45deg); transition: transform 0.3s var(--ease); }
  .price-cols.acc .pgroup.open .pg-btn::after { transform: translateY(2px) rotate(-135deg); }
  .price-cols.acc .pgroup.open .pg-min { display: none; }
  .price-cols.acc .pgroup:not(.open) .prow { display: none; }
  .price-cols.acc .pgroup.open { padding-bottom: 12px; }
  .price-foot { margin-top: 20px; }
  .price-foot a { display: flex; justify-content: center; align-items: center; min-height: 52px; margin-top: 12px; border: 1px solid var(--ctrl); border-radius: 3px; text-decoration: none; }

  .bon { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bon > div:last-child { order: -1; }
  .voucher { width: 100%; }
  .bon-opts { margin-bottom: 18px; }
  .bon .btn { width: 100%; }

  #opinie .sec-head { margin-bottom: 16px; }
  .rev-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .rev-links .btn { padding: 0 10px; }

  .contact { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact .sec-head { margin-bottom: 0; }
  .quick { display: grid; gap: 8px; }
  .quick .btn { min-height: 56px; font-size: 1.05rem; }
  .quick .today { color: var(--ink-2); font-size: 0.95rem; text-align: center; }
  .form { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .form input:not([type="checkbox"]):not([type="file"]), .form select, .form textarea { font-size: 1.0625rem; }
  .form textarea { min-height: 96px; }
  .form-actions .btn { width: 100%; min-height: 56px; }
  .ccard { gap: 14px; padding: 20px; }
  .map { aspect-ratio: auto; height: 200px; min-height: 0; margin-top: 0; }
  .map-open .btn { left: 10px; bottom: 10px; min-height: 44px; padding: 0 16px; }
  .map-credit { top: 0; bottom: auto; border-radius: 0 0 0 3px; }
  .map:has(iframe) { height: 320px; }

  .lb-bar { flex-wrap: wrap; }
  .lb-bar p { flex: 1 0 100%; }
  .lb-fb { flex: 1; }
}

/* very short phone screens: the hero keeps the headline, the latest job and the reviews link */
@media (max-width: 900px) and (max-height: 620px) {
  .hero .lead { display: none; }
}
/* short phone screens: the configurator heading drops its second line, the car keeps the room */
@media (max-width: 900px) and (max-height: 700px) {
  .cfg-head p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

/* gross price with its net equivalent underneath */
.prow b small { display: block; font-size: .78em; font-weight: 450; color: var(--ink-2); text-align: right; }
