/* P16 BOX 7 pneuservis – Sports-broadcast HUD
   Tourney (display) + Rajdhani (text) + Doto (board digits only) */

@property --brc {
  syntax: '<color>';
  inherits: true;
  initial-value: oklch(0.38 0.015 250);
}

:root {
  color-scheme: dark;
  --asphalt: oklch(0.2 0.015 250);
  --asphalt-2: oklch(0.26 0.015 250);
  --asphalt-0: oklch(0.17 0.015 250);
  --bg: var(--asphalt);
  --fg: oklch(0.96 0 0);
  --muted: oklch(0.7 0.01 250);
  --cyan: oklch(0.82 0.14 200);
  --accent: var(--cyan);
  --accent-fg: oklch(0.15 0.02 250);
  --line: oklch(0.38 0.015 250);
  --busy: oklch(0.31 0.012 250);
  --err: oklch(0.78 0.14 25);
  --section-y: clamp(3.5rem, 2.5rem + 3vw, 6rem);
  --gut: max(16px, 4vw);
  --wrap: 1360px;

  --f-display: 'Tourney', 'Rajdhani', system-ui, sans-serif;
  --f-text: 'Rajdhani', system-ui, sans-serif;
  --f-board: 'Doto', ui-monospace, monospace;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --display-1: clamp(1.75rem, 1.1rem + 2.8vw, 3.75rem);
  --display-2: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
  --display-3: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  --flap: clamp(3rem, 2rem + 4vw, 6rem);
  --label: 0.8125rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html.motion { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 500 var(--step-0)/1.5 var(--f-text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--cyan); color: var(--accent-fg); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }

/* ---------- type ---------- */
.display-1, .display-2, .display-3 { font-family: var(--f-display); text-transform: uppercase; text-wrap: balance; }
.display-1 { font-size: var(--display-1); font-weight: 800; font-stretch: 110%; line-height: 1.05; letter-spacing: 0.01em; max-width: 26ch; }
.display-2 { font-size: var(--display-2); font-weight: 700; font-stretch: 100%; line-height: 1.08; }
.display-3 { font-size: var(--display-3); font-weight: 700; font-stretch: 100%; line-height: 1.15; }
.label, .tag, .hud, .board__label, thead th, .field label, .tl__title { font: 600 var(--label)/1.2 var(--f-text); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- corner brackets (HUD panels) ---------- */
.br { position: relative; transition: --brc 120ms linear; }
.br::after {
  content: ""; position: absolute; inset: -5px; pointer-events: none; z-index: 2;
  --s: 12px; --t: 2px;
  background:
    linear-gradient(var(--brc) 0 0) top left / var(--s) var(--t),
    linear-gradient(var(--brc) 0 0) top left / var(--t) var(--s),
    linear-gradient(var(--brc) 0 0) top right / var(--s) var(--t),
    linear-gradient(var(--brc) 0 0) top right / var(--t) var(--s),
    linear-gradient(var(--brc) 0 0) bottom left / var(--s) var(--t),
    linear-gradient(var(--brc) 0 0) bottom left / var(--t) var(--s),
    linear-gradient(var(--brc) 0 0) bottom right / var(--s) var(--t),
    linear-gradient(var(--brc) 0 0) bottom right / var(--t) var(--s);
  background-repeat: no-repeat;
}
.br:hover, .br:focus-within, .br.is-active { --brc: var(--cyan); }

.panel { position: relative; isolation: isolate; background: var(--asphalt-2); padding: clamp(20px, 2.4vw, 32px); }
.hud { background: var(--asphalt-2); color: var(--fg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 1px solid var(--cyan);
  background: var(--cyan); color: var(--accent-fg); cursor: pointer;
  font: 600 1rem/1 var(--f-text); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
  transition: background-color 120ms linear, color 120ms linear;
}
.btn:hover { background: oklch(0.88 0.12 200); }
.btn .ic { transition: transform 160ms var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { background: var(--asphalt-2); border-color: var(--fg); }
.btn--wide { width: 100%; min-height: 56px; }
.link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-color: var(--cyan); }

/* ---------- score bug ---------- */
.bug { position: fixed; top: 16px; left: max(16px, 2vw); z-index: 50; }
.bug__brand { display: flex; height: 64px; min-width: 240px; background: var(--asphalt-2); text-decoration: none; border-bottom: 2px solid var(--line); }
.bug__mark { width: 64px; flex: none; display: grid; place-items: center; background: var(--cyan); color: var(--accent-fg); font: 800 2rem/1 var(--f-display); font-stretch: 110%; }
.bug__txt { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 18px 0 14px; }
.bug__name { font: 700 1.125rem/1 var(--f-display); letter-spacing: 0.04em; }
.bug__status { font: 600 var(--label)/1.1 var(--f-text); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bug__status b { color: var(--fg); font-weight: 600; }
.bug__status .dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: var(--fg); vertical-align: 1px; }
.bug__status .dot.off { background: transparent; outline: 1px solid var(--muted); outline-offset: -1px; }

/* ---------- menu ---------- */
.menu-wrap { position: fixed; top: 16px; right: max(16px, 2vw); z-index: 50; }
.menu-btn { min-height: 48px; min-width: 88px; padding: 0 18px; border: 1px solid var(--line); cursor: pointer; }
.menu-btn[aria-expanded="true"] { border-color: var(--cyan); }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, 100vw - 32px);
  background: var(--asphalt-2); border-top: 2px solid var(--cyan);
  visibility: hidden; clip-path: inset(0 0 0 100%);
  transition: clip-path 320ms var(--ease), visibility 0s linear 320ms;
}
.menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path 320ms var(--ease), visibility 0s; }
.menu__list { padding: 8px 0; }
.menu__list a { display: flex; align-items: baseline; gap: 16px; min-height: 52px; padding: 12px 24px; text-decoration: none; font: 700 1.375rem/1.1 var(--f-display); text-transform: uppercase; }
.menu__list a:hover { background: var(--asphalt); }
.menu__n { font: 600 var(--label)/1 var(--f-text); color: var(--muted); letter-spacing: 0.08em; }
html:not(.js) .menu-btn { display: none; }

/* ---------- media + missing image ---------- */
.media { position: relative; overflow: hidden; background: var(--asphalt-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing { background: repeating-linear-gradient(135deg, oklch(0.82 0.14 200 / 0.4) 0 2px, transparent 2px 24px), var(--asphalt-2); }
.media.is-missing::after { content: "BEZ SIGNÁLU"; position: absolute; inset: 0; display: grid; place-items: center; font: 600 0.875rem/1 var(--f-text); letter-spacing: 0.24em; color: var(--fg); }

/* ---------- 1. hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: max(640px, 100svh);
  display: grid; grid-template-columns: minmax(0, 72%) minmax(0, 1fr); align-items: end; column-gap: 24px;
  padding: 120px max(var(--gut), calc((100% - var(--wrap)) / 2)) clamp(24px, 5vh, 56px);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { object-position: 50% 40%; }
.hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--asphalt) 0%, oklch(0.2 0.015 250 / 0.55) 38%, oklch(0.2 0.015 250 / 0) 85%); }
.hero__sweep { position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--cyan); z-index: 1; opacity: 0; pointer-events: none; }
.hero__l3 { display: grid; justify-items: stretch; width: fit-content; max-width: 100%; }
.l3 { position: relative; isolation: isolate; max-width: 100%; }
.l3__bg { position: absolute; inset: 0; z-index: -1; background: var(--asphalt-2); transform-origin: left center; }
.l3__cap { position: absolute; left: 0; right: 0; top: -8px; height: 8px; background: var(--cyan); transform-origin: left center; }
.l3--main { margin-top: 8px; }
.l3--main .l3__text { padding: 20px 32px 26px; }
.l3--sub .l3__bg { background: var(--asphalt-0); }
.l3--sub .l3__text { padding: 16px 32px; }
.l3__tag { font: 600 var(--label)/1 var(--f-text); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; }
.h1__b { display: block; margin-top: 0.3em; font-size: 0.5em; font-weight: 700; font-stretch: 100%; line-height: 1.15; color: oklch(0.86 0.005 250); letter-spacing: 0.02em; }
.l3__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.l3__lead { max-width: 46ch; font-size: 1.125rem; line-height: 1.4; }
.l3__cta { display: flex; align-items: center; gap: 20px; }
.hero__hud { justify-self: end; display: grid; grid-template-columns: auto auto; gap: 8px 28px; padding: 16px 20px; margin-bottom: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero__hud .k { color: var(--muted); }

/* ---------- sections ---------- */
.sec { padding-block: var(--section-y); }
.sec__head { display: grid; justify-items: start; gap: 14px; margin-bottom: clamp(28px, 3.5vw, 48px); max-width: 64ch; }
.sec__lead { color: var(--muted); font-size: 1.125rem; max-width: 56ch; }
.tag { position: relative; isolation: isolate; display: inline-flex; align-items: stretch; background: var(--asphalt-2); }
.tag b { background: var(--fg); color: var(--asphalt); padding: 7px 9px; font-weight: 600; }
.tag span { padding: 7px 14px 7px 12px; }

/* ---------- 2. queue board ---------- */
.q__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.q__left { display: grid; gap: 20px; }
@media (min-width: 900px) and (min-height: 760px) { .q__left { position: sticky; top: 96px; } }
.board { padding-block: 8px; }
.board__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label val" "note val"; column-gap: 16px; align-items: center; padding-block: 18px; }
.board__row + .board__row { border-top: 1px solid var(--line); }
.board__label { grid-area: label; align-self: end; color: var(--muted); }
.board__note { grid-area: note; align-self: start; color: var(--muted); font-size: 0.9375rem; margin-top: 4px; }
.board__row.is-set .board__label { color: var(--fg); }
.board__val { grid-area: val; display: flex; align-items: flex-end; gap: 10px; }
.board__unit { font: 600 1.25rem/1 var(--f-text); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 0.3em; min-width: 2.2em; }

.flaps { display: flex; gap: 6px; perspective: 600px; font: 700 var(--flap)/1 var(--f-board); font-variation-settings: "ROND" 50; }
.flap { position: relative; width: 0.74em; height: 1.08em; perspective: 600px; }
.flap > span {
  position: absolute; left: 0; right: 0; height: 50%; overflow: hidden;
  background: var(--asphalt); -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.flap > .t, .flap > .ft { top: 0; transform-origin: 50% 100%; }
.flap > .b, .flap > .fb { bottom: 0; transform-origin: 50% 0; background: var(--asphalt-0); }
.flap > .ft { z-index: 2; }
.flap > .fb { z-index: 2; transform: rotateX(90deg); }
.flap i { position: absolute; left: 0; right: 0; height: 200%; display: grid; place-items: center; font-style: normal; line-height: 1; }
.flap > .t i, .flap > .ft i { top: 0; }
.flap > .b i, .flap > .fb i { top: -100%; }
.flap i { transform: translateY(0.045em); }
.flap i.is-dash { transform: translateY(-0.14em); }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--asphalt-2); z-index: 3; }
.board__row.is-set .flap i { color: var(--cyan); }
.board__row.is-dim .flap i { color: var(--muted); }

.q__status { font-size: 1.125rem; line-height: 1.45; min-height: 3em; }
.q__status strong { color: var(--fg); font-weight: 600; }
.q__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tl__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.tl__legend { display: flex; gap: 14px; font: 600 var(--label)/1 var(--f-text); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tl__legend li { display: flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--line); background: var(--asphalt-2); }
.lg--busy { background: var(--busy); border-color: var(--busy); }
.lg--you { background: var(--cyan); border-color: var(--cyan); }
.lg--season { width: 3px; height: 16px; border: 0; background: var(--cyan); margin-right: 10px; vertical-align: -3px; }
.tl__scroll { position: relative; }
.tl__grid { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr); gap: 4px; }
.tl__grid [role="row"], .tl__grid [role="gridcell"] { display: contents; }
.tl__h, .tl__time { display: flex; align-items: center; font: 600 var(--label)/1 var(--f-text); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.tl__h { min-height: 24px; }
.tl__time.is-now { color: var(--fg); }
.tl__cell {
  position: relative; height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 12px; border: 1px solid var(--line); background: var(--asphalt-2); color: var(--fg); cursor: pointer;
  font: 600 0.9375rem/1 var(--f-text); font-variant-numeric: tabular-nums;
  transition: background-color 120ms linear, border-color 120ms linear;
}
.tl__cell small { font-size: var(--label); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tl__cell:hover { border-color: var(--fg); }
.tl__cell.is-busy { background: var(--busy); border-color: var(--busy); color: var(--muted); cursor: not-allowed; }
.tl__cell.is-past { background: transparent; border-color: oklch(0.3 0.012 250); color: oklch(0.55 0.01 250); cursor: default; }
.tl__cell.is-past small, .tl__cell.is-busy small { color: inherit; }
.tl__cell[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--accent-fg); }
.tl__cell[aria-pressed="true"] small { color: var(--accent-fg); }
.tl__grid [role="row"].is-past .tl__cell { height: 12px; padding: 0; border-color: transparent; background: oklch(0.24 0.012 250); }
.tl__grid [role="row"].is-past .tl__cell > * { display: none; }
.tl__grid [role="row"].is-past .tl__time { font-size: 0.6875rem; height: 12px; color: oklch(0.55 0.01 250); }
.tl__grid [role="row"].is-past .tl__time.is-half { visibility: hidden; }
.tl__cell.is-shake { animation: shake 200ms linear; }
@keyframes shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
.tl__now { position: absolute; left: 52px; right: 0; top: 0; height: 2px; background: var(--cyan); pointer-events: none; z-index: 3; display: none; }
.tl__now.is-on { display: block; }
.tl__now::before { content: ""; position: absolute; left: -8px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--cyan); border-right: 0; }
.tl__tip { position: absolute; left: 0; top: 0; z-index: 4; padding: 6px 10px; background: var(--fg); color: var(--asphalt); font: 600 var(--label)/1 var(--f-text); text-transform: uppercase; letter-spacing: 0.06em; pointer-events: none; opacity: 0; transition: opacity 120ms linear; white-space: nowrap; }
.tl__tip.is-on { opacity: 1; }
.tl__help { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; }
.tl__demo { margin-top: 6px; font: 600 var(--label)/1.35 var(--f-text); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tl__nojs { grid-column: 1 / -1; color: var(--muted); }

/* ---------- 3. price ---------- */
.price { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.price .sec__head { margin-bottom: 0; }
.price__key { color: var(--muted); font-size: 0.9375rem; }
.price__t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price__t th, .price__t td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.price__t thead th, .price__t thead th.num { color: var(--muted); padding-top: 0; font-size: var(--label); font-weight: 600; }
.price__t tbody th { font-weight: 600; font-size: 1.0625rem; }
.price__t .num { text-align: right; white-space: nowrap; font-weight: 600; font-size: 1.1875rem; }
.price__t .num small { font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.price__t .c-dur { color: var(--muted); white-space: nowrap; }
.price__t tr.is-season th { box-shadow: inset 3px 0 0 var(--cyan); padding-left: 16px; }
.price__t tbody tr:last-child > * { border-bottom: 0; }
.dur-m { display: none; }
.price__fine { margin-top: 18px; color: var(--muted); font-size: 0.9375rem; max-width: 70ch; }

/* ---------- 4. pit stop ---------- */
.sectors { display: flex; gap: 4px; margin-bottom: 20px; }
.sectors__seg { transform-origin: left center; background: var(--asphalt-2); border-top: 2px solid var(--fg); padding: 8px 10px; font: 600 var(--label)/1 var(--f-text); letter-spacing: 0.08em; }
.sectors__seg b { font-weight: 600; }
.s1 { flex: 3; } .s2 { flex: 5; } .s3 { flex: 17; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { display: grid; align-content: start; gap: 12px; }
.step__n { font: 800 2.5rem/1 var(--f-display); font-stretch: 110%; color: var(--muted); }
.step__t { display: flex; align-items: center; gap: 8px; font: 600 1.25rem/1 var(--f-text); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.step__t .ic { color: var(--muted); }
.step p:last-child { color: var(--muted); }

/* ---------- 5. storage ---------- */
.store { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.store__main { grid-row: span 2; padding: 0; display: grid; grid-template-rows: auto 1fr; }
.store__media { aspect-ratio: 16 / 9; }
.store__body { padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 14px; align-content: start; }
.store__side { display: flex; flex-direction: column; gap: 12px; }
.store__side .store__price { margin-top: auto; padding-top: 8px; }
.store__side p:not([class]) { color: var(--muted); }
.store__k { font: 600 var(--label)/1 var(--f-text); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.store__price { color: var(--muted); }
.num-big { font: 700 1.75rem/1 var(--f-display); color: var(--fg); margin-right: 6px; }
.ticks { display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks .ic { transform: translateY(3px); color: var(--muted); }

/* ---------- 6. faq ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.faq details { padding: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 24px; cursor: pointer; list-style: none; font: 700 var(--display-3)/1.2 var(--f-display); text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform 160ms var(--ease); color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--fg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); max-width: 60ch; }

/* ---------- 7. contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.contact__head { margin-bottom: 0; }
.facts { display: grid; gap: 16px; margin-top: 12px; }
.facts dt { display: flex; align-items: center; gap: 8px; font: 600 var(--label)/1 var(--f-text); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.facts dd { font-size: 1.125rem; font-weight: 600; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field:nth-child(-n+3), .field--check, .form .btn { grid-column: 1 / -1; }
.field label { color: var(--fg); }
.opt { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.field input:not([type="checkbox"]), .field select {
  width: 100%; min-height: 48px; padding: 0 14px; background: var(--asphalt); border: 1px solid var(--line); border-radius: 0;
  font-weight: 500; font-size: 1.0625rem;
}
.field input::placeholder { color: oklch(0.6 0.01 250); }
.field input:focus-visible, .field select:focus-visible { border-color: var(--cyan); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--err); }
.hint { color: var(--muted); font-size: 0.9375rem; }
.err { color: var(--err); font-size: 0.9375rem; font-weight: 600; }
.field--check { grid-template-columns: 24px 1fr; column-gap: 12px; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--cyan); }
.field--check label { text-transform: none; letter-spacing: 0; font: 500 1rem/1.4 var(--f-text); color: var(--muted); }
.field--check .err { grid-column: 2; }
.ok { display: flex; gap: 14px; align-items: flex-start; font-size: 1.25rem; line-height: 1.4; }
.ok .ic { width: 28px; height: 28px; padding: 4px; background: var(--cyan); color: var(--accent-fg); stroke-width: 3; }
.ok:focus { outline: none; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 40px 48px; color: var(--muted); font-size: 0.9375rem; }
.foot__in { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; }
.foot__name { color: var(--fg); font-weight: 600; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 20px; align-content: start; }
.foot__links a { display: inline-flex; min-height: 44px; align-items: center; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; text-decoration: none; }
.foot__links a:hover { color: var(--fg); }
.foot__demo { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); }
.foot__demo strong { color: var(--fg); }

/* ---------- motion start states (only with html.motion) ---------- */
.wbg { position: absolute; inset: 0; z-index: -1; background: var(--asphalt-2); transform-origin: left center; }
.wlead { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--cyan); z-index: 3; opacity: 0; pointer-events: none; }
html.motion [data-wipe].has-wbg { background: transparent; }
html.motion [data-wipe]:not(.is-in) > :not(.wbg):not(.wlead) { opacity: 0; }
html.motion [data-wipe]:not(.is-in) > .wbg { transform: scaleX(0); }
html.motion [data-wipe].is-in > :not(.wlead) { opacity: 1 !important; }
html.motion [data-wipe].is-in > .wbg { transform: none !important; }
html.motion .sectors.is-in .sectors__seg { transform: none !important; }

html.motion .hero:not(.is-in) .hero__media { clip-path: polygon(0% 0%, 0% 0%, -30% 100%, -30% 100%); }
html.motion.is-safari .hero:not(.is-in) .hero__media { clip-path: none; opacity: 0; }
html.motion .hero:not(.is-in) :is(.l3__bg, .l3__cap) { transform: scaleX(0); }
html.motion .hero:not(.is-in) :is(.l3__text, .hero__hud) { opacity: 0; }
html.motion body:not(.is-live) :is(.bug, .menu-wrap) { opacity: 0; }
html.motion .hero.is-in :is(.hero__media, .l3__text, .hero__hud) { opacity: 1 !important; clip-path: none !important; }
html.motion .hero.is-in :is(.l3__bg, .l3__cap) { transform: none !important; }
html.motion .sectors:not(.is-in) .sectors__seg { transform: scaleX(0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .hero__l3 { max-width: 86%; }
  .hero__hud { justify-self: start; }
}

@media (max-width: 899px) {
  html { scroll-padding-top: 80px; }
  .q__grid { grid-template-columns: minmax(0, 1fr); }
  .q__left { display: contents; }
  .board { order: 1; }
  .q__status { order: 2; min-height: 0; }
  .tl { order: 3; }
  .q__actions {
    order: 4; position: sticky; bottom: 0; z-index: 6;
    margin-inline: calc(-1 * var(--gut)); padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom));
    background: var(--asphalt); border-top: 1px solid var(--line);
  }
  .q__actions .btn { flex: 1 1 auto; min-height: 56px; }
  #take-number.btn--ghost { display: none; }
  .tl__scroll { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 10px; margin-inline: calc(-1 * clamp(20px, 2.4vw, 32px)); padding-inline: clamp(20px, 2.4vw, 32px); scroll-padding-inline: 72px; }
  .tl__grid { grid-template-columns: none; grid-template-rows: 22px 44px 44px; grid-auto-flow: column; grid-auto-columns: 56px; width: max-content; }
  .tl__h { position: sticky; left: 0; z-index: 4; background: var(--asphalt-2); min-height: 0; min-width: 52px; padding-right: 6px; box-shadow: -40px 0 0 var(--asphalt-2), 4px 0 0 var(--asphalt-2); }
  .tl__time { justify-content: center; }
  .tl__cell { height: 44px; justify-content: center; padding: 0; scroll-snap-align: start; }
  .tl__cell small { display: none; }
  .tl__grid { grid-auto-columns: auto; }
  .tl__cell { width: 56px; }
  .tl__grid [role="row"].is-past .tl__cell { width: 14px; height: 44px; }
  .tl__grid [role="row"].is-past .tl__time { visibility: hidden; height: auto; }
  .tl__now { left: 0; right: auto; top: 22px; bottom: 10px; width: 2px; height: auto; }
  .tl__now::before { left: -4px; top: -10px; border: 5px solid transparent; border-top: 7px solid var(--cyan); border-bottom: 0; }
  .board__row { grid-template-columns: minmax(0, 1fr) auto; padding-block: 14px; }
  .price { grid-template-columns: minmax(0, 1fr); }
  .store { grid-template-columns: minmax(0, 1fr); }
  .store__main { grid-row: auto; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .bug { top: 12px; left: 12px; }
  .bug__brand { height: 56px; min-width: 200px; }
  .bug__mark { width: 56px; font-size: 1.75rem; }
  .bug__txt { padding: 0 14px 0 12px; }
  .bug__name { font-size: 1rem; }
  .bug__status { font-size: 0.75rem; }
  .menu-wrap { top: 12px; right: 12px; }
  .menu-btn { min-height: 56px; min-width: 72px; padding: 0 14px; }
  .hero { display: block; min-height: 0; padding: 0 0 24px; }
  .hero__media, .hero__sweep { position: relative; inset: auto; height: 60svh; min-height: 340px; max-height: 560px; }
  .hero__sweep { position: absolute; top: 0; left: 0; width: 3px; }
  .hero__media img { object-position: 36% 50%; }
  .hero__l3 { max-width: none; margin-top: -64px; position: relative; }
  .l3, .l3--main, .l3--sub { width: 100%; }
  .l3--main .l3__text { padding: 18px var(--gut) 20px; }
  .l3--sub .l3__text { padding: 16px var(--gut) 18px; }
  .l3__cta { width: 100%; }
  .l3__cta .btn { flex: 1; min-height: 52px; }
  .display-1 { max-width: none; }
  .hero__hud { margin: 16px var(--gut) 0; justify-content: start; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 599px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .price__panel { padding-inline: 16px; }
  .price__t th, .price__t td { padding: 12px 6px; }
  .price__t .c-dur { display: none; }
  .dur-m { display: block; font-size: 0.875rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
  .price__t .num { font-size: 1.0625rem; }
  .flaps { font-size: 3rem; gap: 4px; }
  .board__unit { font-size: 1rem; min-width: 1.8em; }
  .board__note { font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .menu, .menu.is-open { transition: none; }
  .btn .ic, .faq summary .ic { transition: none; }
}
