/* ==========================================================================
   Osobní přeprava Fráňa — brand-split design system
   Colours are taken verbatim from OP_logomanual.pdf (p09):
     indigo    RGB 20/51/68   #143344   (hlavní barevnost)
     off-white RGB 254/246/242 #FEF6F2  (doplňková barva)
   Everything else is derived. No unrelated accent hues.
   ========================================================================== */

:root {
  /* --- manual colours --- */
  --indigo: #143344;
  --ivory: #FEF6F2;

  /* ---- Chrome: a supporting material, never a third brand colour ---- */
  --chrome-dark: #596168;
  --chrome-mid: #AEB7BD;
  --chrome-light: #F5F7F8;
  --chrome-reflection: linear-gradient(90deg,
    #596168 0%, #AEB7BD 28%, #F5F7F8 48%, #8B959C 70%, #41494F 100%);
  --chrome-rule: linear-gradient(90deg,
    rgba(89,97,104,0) 0%, var(--chrome-mid) 22%, var(--chrome-light) 50%,
    var(--chrome-mid) 78%, rgba(89,97,104,0) 100%);
  --ink: #0B1115;

  /* --- derived surfaces --- */
  --indigo-deep: #0D222E;      /* deeper panel */
  --indigo-raised: #1B4053;    /* elevated dark surface */
  --indigo-line: rgba(254, 246, 242, 0.16);
  --indigo-soft: rgba(254, 246, 242, 0.72);   /* muted text on dark  ~7.9:1 */
  --ivory-muted: #F6EAE3;      /* alternating light surface */
  --ivory-line: rgba(20, 51, 68, 0.14);

  /* ---- Semantic layer. Any dark context (and the whole BUS branch) simply
     re-declares these, so every component below follows automatically. ---- */
  --bg: var(--ivory);
  --fg: var(--indigo);
  --surface: #ffffff;
  --surface-2: var(--ivory-muted);
  /* LATENT BUG, deliberately NOT fixed — see note below.
     This is self-referential, so `--line` is cyclic and computes to the
     guaranteed-invalid value. Every `border: 1px solid var(--line)` shorthand on
     a light surface is therefore invalid at computed-value time and falls all the
     way back to `border-style: none` — i.e. AUTO renders with NO hairline on
     .rows/.row/.prices/.price/.faq/.veh/.form/.notice/.svcnav__list/.svcrow/
     .rev__card/.branch/.hdr__burger/.proof and ~8 more. body.t-bus redeclares
     --line with a real value, so BUS is unaffected.
     Changing this to var(--ivory-line) adds hairlines across ~20 components on
     the VISUALLY APPROVED AUTO branch. That is a design decision for the owner,
     not a silent CSS fix, so the approved rendering is preserved here. */
  --line: var(--line);
  --muted: rgba(20, 51, 68, 0.74);
  --field-bg: #ffffff;
  --field-line: rgba(20, 51, 68, 0.26);
  --cta-bg: var(--indigo);
  --cta-fg: var(--ivory);
  --ink-soft: #3D5462;         /* muted text on ivory ~7.1:1 */

  /* --- type --- */
  /* Manrope carries the whole site: 400 body / 500 nav, labels, controls /
     600 headings and primary buttons. Raleway 700 is the brand-manual display
     face and appears ONLY on the portal's AUTO/BUS titles and the branch
     transition — never on the AUTO/BUS pages themselves. */
  --font-primary: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-primary);
  --font-body: var(--font-primary);
  --sans: var(--font-primary);
  --font-brand: "Raleway", "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* --- rhythm --- */
  --shell: 1360px;
  --gut: clamp(20px, 5vw, 64px);
  /* --sp-5 and --shadow-card are referenced but deliberately NOT declared.
     Declaring --sp-5 (20px) would simultaneously add spacing to .crumbs, the
     request-form grid, .form__note, .svcrow, .fare, .veh__go, .gal and .rev__by;
     declaring --shadow-card would add a drop shadow to the service-navigator
     preview and the active review card. Both would restyle the visually approved
     AUTO branch, which is out of scope here. Fix the call sites individually,
     with the owner looking at it. Done so far (owner-approved, 2026-11-23):
     .crumbs and .gal now use --sp-4. */
  --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-6: 24px;
  --sp-8: 32px; --sp-12: 48px; --sp-16: 64px; --sp-24: 96px; --sp-32: 128px;
  --r-sm: 12px; --r-md: 16px; --r-lg: 20px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-primary);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  /* deliberately NO overflow-x:hidden — layout must fit honestly at 320px */
}
/* bold elements use a shipped weight — we ship 400/500/600 only */
b, strong { font-weight: 600; }

img, video, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 6.2vw, 5.1rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 600; letter-spacing: -0.012em; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.lede { font-size: clamp(1.05rem, 1.45vw, 1.28rem); line-height: 1.55; max-width: 62ch; text-wrap: pretty; }
.measure { max-width: 66ch; }
.muted { color: var(--muted); }
/* One canonical list of dark contexts. `.deep` and `.mnav__panel` were missing
   from every on-dark rule below; both are solid dark surfaces. */
.on-dark .muted, .dark .muted, .deep .muted, .hero .muted, .band .muted,
.gw .muted, .mnav__panel .muted { color: var(--indigo-soft); }

/* eyebrow — small, sentence-cased, never a tiny spaced HUD label */
.eyebrow {
  font-family: var(--font-primary); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 var(--sp-4);
}
.on-dark .eyebrow, .dark .eyebrow, .deep .eyebrow, .hero .eyebrow, .band .eyebrow,
.gw .eyebrow, .mnav__panel .eyebrow { color: rgba(254,246,242,.82); }

/* --- layout --- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 9vw, 132px); }
/* One rule gives every dark surface — and the entire BUS branch — its own
   deliberately tuned borders, muted text, raised surfaces and form fields. */
.dark, .deep, .hero, .band, .ftr, .gw, body.t-bus {
  --surface: var(--indigo-raised);
  --surface-2: #17394B;
  --line: var(--indigo-line);
  --muted: var(--indigo-soft);
  --field-bg: rgba(254, 246, 242, 0.06);
  --field-line: rgba(254, 246, 242, 0.30);
  --cta-bg: var(--ivory);
  --cta-fg: var(--indigo);
}
body.t-bus { --bg: var(--indigo-deep); --fg: var(--ivory); }
/* BUS reads as layered depth, never one uninterrupted flat blue: plain sections
   sit on the deep base, .tinted lifts, .dark lifts a little further. */
body.t-bus .section { background: var(--indigo-deep); }
body.t-bus .section.tinted { background: #122E3E; }
body.t-bus .section.dark { background: #16394B; }
body.t-bus .section + .section { border-top: 1px solid rgba(174, 183, 189, 0.14); }
/* AUTO: two dark sections in a row (About's reviews band, then the closing CTA)
   would read as one block with a hole in it; the same hairline BUS uses */
body.t-auto .section.dark + .section.dark { border-top: 1px solid rgba(174, 183, 189, 0.14); }
body.t-auto { --bg: var(--ivory); --fg: var(--indigo); }

.dark { background: var(--indigo); color: var(--ivory); }
.dark h1, .dark h2, .dark h3, .deep h1, .deep h2, .deep h3 { color: var(--ivory); }
.deep { background: var(--indigo-deep); color: var(--ivory); }
.tinted { background: var(--surface-2); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.dark .rule { background: var(--indigo-line); }

/* --- skip link --- */
/* Parked by transform, not by a fixed negative top: at 200% zoom the label
   wraps to ~79px and a -60px top left its bottom edge showing over the header. */
.skip {
  position: absolute; left: 12px; top: 0; z-index: 200;
  transform: translateY(-110%);
  background: var(--indigo); color: var(--ivory);
  padding: 12px 18px; border-radius: var(--r-sm); font-weight: 600;
  transition: transform 160ms var(--ease);
}
.skip:focus { transform: translateY(12px); }

:focus-visible { outline: 3px solid #2E86C7; outline-offset: 3px; border-radius: 4px; }
/* Same omission the .btn--ghost rules had: keying only on dark CONTAINERS misses a
   plain `.section` that is dark purely because of body.t-bus — e.g. the whole
   /bus/poptavka/ form, where the blue ring measured 2.81:1 against rgb(27,64,83).
   List every dark context the token block already recognises, plus the theme. */
.dark :focus-visible, .deep :focus-visible, .gw :focus-visible, .hero :focus-visible,
.band :focus-visible, .ftr :focus-visible, .mnav__panel :focus-visible,
body.t-bus :focus-visible { outline-color: var(--ivory); }

/* ==========================================================================
   Buttons — confident rectangles with moderate radii, never pills
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-family: var(--font-primary); font-weight: 600; font-size: 0.98rem;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--cta-bg); color: var(--cta-fg); }
.btn--primary:hover { background: var(--indigo-raised); }
.btn--onDark { background: var(--ivory); color: var(--indigo); }
.btn--onDark:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--indigo); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--indigo); }
/* `.deep` was missing here: cta_block() renders section.deep on every BUS page,
   so the closing "Zavolat …" ghost computed indigo-on-#0D222E = 1.23:1.
   `.mnav__panel` had the same hole — indigo-on-indigo = 1.00:1 on BOTH branches. */
.dark .btn--ghost, .deep .btn--ghost, .gw .btn--ghost, .hero .btn--ghost,
.band .btn--ghost, .mnav__panel .btn--ghost { color: var(--ivory); border-color: rgba(254,246,242,.42); }
.dark .btn--ghost:hover, .deep .btn--ghost:hover, .gw .btn--ghost:hover, .hero .btn--ghost:hover,
.band .btn--ghost:hover, .mnav__panel .btn--ghost:hover { border-color: var(--ivory); background: rgba(254,246,242,.10); }
/* The rules above are keyed on specific dark CONTAINERS, which silently misses any
   ghost button sitting in a plain `.section` on a BUS page — e.g. both buttons in
   the /bus/poptavka/ form ("Raději zavolám" and the error panel's "Zavolat"), which
   measured 1.20:1 and 1.25:1. BUS is dark everywhere, so key it on the THEME too. */
body.t-bus .btn--ghost { color: var(--ivory); border-color: rgba(254,246,242,.42); }
body.t-bus .btn--ghost:hover { border-color: var(--ivory); background: rgba(254,246,242,.10); }
.btn--lg { min-height: 58px; padding: 16px 32px; font-size: 1.04rem; }

/* arrow link */
.arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  min-height: 44px; padding-block: 8px; }   /* WCAG 2.2 target size */
.arrow span { transition: transform var(--dur) var(--ease); }
.arrow:hover span { transform: translateX(4px); }
/* two links side by side with a "·" between them: on phones they stack, so the
   dot is never left hanging at the end of a line */
@media (max-width: 599px) {
  .links .links__sep { display: none; }
  .links .arrow { display: flex; width: fit-content; }
}

/* ==========================================================================
   Header
   ========================================================================== */
/* The header is sticky, so a jump to #spec-h / #gal-h / #dal-h lands the target
   UNDER it — the heading is scrolled to y=0, which the header already occupies.
   Anchorable elements reserve the header's height plus breathing room. Scoped to
   headings and sectioning elements; focusable controls get their own, smaller
   clearance in the rule below. */
:is(h1, h2, h3, h4, section, main)[id] {
  /* literal, not var(--sp-5): that token is deliberately undeclared (see
     the rhythm block), and one unresolved var voids the whole calc(). */
  scroll-margin-top: calc(var(--hdr-h) + 20px);
}
/* Keyboard focus clears the header too. The browser scrolls a focused control
   just into view, and walking BACK with Shift+Tab put form fields and links at
   y=0, under the header (enquiry forms, contact, pricing: desktop and phones).
   The clearance sits on what can take focus in the page body and footer, NOT
   on the root as scroll-padding: root padding also covers the sticky header's
   own controls, so focusing one while scrolled (the burger getting focus back
   when the menu closes, a header link) "revealed" it by jumping the page up
   400-500px. Pages with the sticky header only (the gateway has none).
   8px = the focus ring (3px outline at a 3px offset) clear of the header's
   1px keyline, plus rounding. */
body:is(.t-auto, .t-bus) :is(main, .ftr) :is(a[href], button, input, select, textarea, summary, iframe, [contenteditable], [tabindex]) {
  scroll-margin-top: calc(var(--hdr-h) + 8px);
}

.hdr {
  position: sticky; top: 0; z-index: 90;
  background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 0 rgba(174, 183, 189, 0.22);
}
/* The dark header's keyline is drawn inside the header (inset shadow) rather
   than as a border, so it adds no height: the light header's border resolves
   to none, and a real 1px border here made every BUS page start 1px lower. */
.hdr--dark { background: var(--indigo); border-bottom-width: 0; color: var(--ivory);
  box-shadow: inset 0 -1px 0 var(--indigo-line), 0 1px 0 0 rgba(174, 183, 189, 0.22); }
.hdr__in { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); min-height: 76px; }
.hdr__logo { flex: 0 0 auto; display: inline-flex; align-items: center;
  min-height: 44px; padding: 6px 0; }   /* WCAG 2.2 target size */
.hdr__logo img { height: 38px; width: auto; }
.hdr__nav { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 24px); margin-left: auto; }
.hdr__nav a { font-size: 0.96rem; font-weight: 500; text-decoration: none; padding: 12px 2px;
  white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.hdr__nav a:hover { text-decoration: underline; }
.hdr__nav a[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -2px 0 currentColor; }
.hdr__tel { font-weight: 600; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px; }
.hdr__cta { min-height: 44px; padding: 10px 20px; }

/* branch switch — two real links */
.branch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-sm); gap: 2px; }
.hdr--dark .branch { border-color: var(--indigo-line); }
.branch a {
  padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: 9px; font-family: var(--font-primary); font-weight: 600;
  font-size: 0.9rem; text-decoration: none; letter-spacing: 0.02em;
}
.branch a[aria-current="true"] { background: var(--cta-bg); color: var(--cta-fg); }
.hdr--dark .branch a[aria-current="true"] { background: var(--chrome-light); color: var(--indigo); }

.hdr__burger {
  display: none; margin-left: auto;
  flex: 0 0 46px; width: 46px; min-width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm);
  color: inherit; cursor: pointer;
}
.hdr--dark .hdr__burger { border-color: var(--indigo-line); }

@media (max-width: 1080px) {
  .hdr__nav, .hdr__tel, .hdr__cta { display: none; }
  .hdr__burger { display: inline-flex; }
  .hdr__in { min-height: 66px; }
  .hdr__logo img { height: 32px; }
}

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 120; display: none; }
.mnav[open], .mnav.is-open { display: block; }
.mnav__scrim { position: absolute; inset: 0; background: rgba(11, 17, 21, 0.55); }
.mnav__panel {
  position: absolute; inset: 0 0 0 auto; width: min(420px, 92vw);
  background: var(--indigo); color: var(--ivory);
  padding: var(--sp-8) var(--sp-6) calc(var(--sp-8) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--sp-6); overflow-y: auto;
}
.mnav__panel a { text-decoration: none; }
.mnav__links { display: flex; flex-direction: column; }
.mnav__links a {
  font-family: var(--font-primary); font-weight: 600; font-size: 1.25rem;
  padding: 14px 0; border-bottom: 1px solid var(--indigo-line);
}
/* flex: 0 0 auto: the panel is a scrolling flex column, and on screens shorter
   than its content (iPhone SE, landscape, zoom) the button was shrunk to 46x26 */
.mnav__close {
  flex: 0 0 auto;
  align-self: flex-end; width: 46px; height: 46px; display: inline-flex;
  align-items: center; justify-content: center; background: transparent;
  border: 1px solid var(--indigo-line); border-radius: var(--r-sm); color: inherit; cursor: pointer;
}

/* sticky mobile actions */
.sticky-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; gap: 10px; padding: 10px var(--sp-4) calc(10px + env(safe-area-inset-bottom));
  /* opaque: the bar can sit over the hero's own buttons on a small phone, and
     at 96% their labels showed through it */
  background: rgb(20, 51, 68); border-top: 1px solid var(--indigo-line);
}
.sticky-actions .btn { flex: 1; min-height: 48px; }
/* phones at 200-300% zoom: the bar's and the hero's buttons shrink (and the
   bound phone number may wrap) rather than run off-screen */
@media (max-width: 259px) {
  .sticky-actions .btn { min-width: 0; padding-inline: 8px; font-size: .86rem; }
  .hero__ctas .btn { max-width: 100%; padding-inline: 12px; font-size: .86rem;
    overflow-wrap: anywhere; }
  /* the menu's call button carries a non-breaking phone number: give it room */
  .mnav__panel { padding-inline: 12px; }
  .mnav__panel .btn { padding-inline: 8px; font-size: .82rem; }
}
/* The bar's real height is 10 + 55 + 10 ≈ 76px (the 48px minimum is outgrown
   by the label's padding and line-height) plus the safe-area inset.
   Owner, 2026-11-24: on phones the two actions never disappear. app.js shows
   the bar whenever the opening hero's own buttons are not fully on screen and
   no longer retires it for the footer, forms or other buttons, so the page end
   reserves the bar's height (.has-sticky-bar, below). Phones held sideways
   (wider than 768px, under 500px tall, touch) get the bar too: their hero
   buttons sit below the first screen. */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  /* Hidden by DEFAULT and promoted by app.js (.is-on). Inverted from the old
     `.is-off` model so the bar cannot flash over the facts strip on first paint,
     and so a page whose script fails shows no bar rather than one parked over
     its content. See the state model in app.js — visibility is a pure function
     of scroll position, not accumulated observer state. */
  /* visibility (delayed until the slide-out ends) keeps the parked bar's links
     out of the tab order and the accessibility tree */
  .sticky-actions { display: flex; transform: translateY(110%); visibility: hidden;
    transition: transform .28s var(--ease), visibility 0s linear .28s; }
  .sticky-actions.is-on { transform: translateY(0); visibility: visible;
    transition: transform .28s var(--ease), visibility 0s; }
  /* The bar stays over the page end, so the footer (not the body: a body
     padding showed as a cream strip under the footer on AUTO) grows by the
     bar's height and its last links scroll clear of it. The scroll padding
     keeps a focused control or an anchor target above the bar. Set by app.js
     only on pages that show the bar (not the enquiry forms). */
  .has-sticky-bar .ftr { padding-bottom: calc(var(--sp-12) + 80px + env(safe-area-inset-bottom)); }
  /* 76.4px bar + room for the focus ring (3px at a 3px offset) and the
     browser's rounding (82px measured too tight). The top clearance (focused
     controls out from under the sticky header, e.g. footer links on a short
     sideways phone) is the focusables' scroll-margin in the header block: a
     top inset here also made the page jump when the burger took focus back. */
  html.has-sticky-bar { scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .sticky-actions, .sticky-actions.is-on { transition: none; } }

/* ==========================================================================
   Gateway — One brand. Two journeys.
   ========================================================================== */
.gw {
  background: #0A1620; color: var(--ivory);
  height: 100svh; min-height: 560px; display: flex; flex-direction: column;
  overflow: hidden;                      /* the whole gateway is one viewport */
}

/* ---- header: light, translucent, connected to the photography ---- */
.gw__top {
  position: relative; z-index: 6;
  flex: 0 0 auto; min-height: 78px; padding: 0 clamp(20px, 3vw, 40px);
  display: flex; align-items: center; gap: var(--sp-6);
  background: var(--indigo-deep);
  box-shadow: inset 0 -1px 0 0 rgba(174, 183, 189, 0.28);   /* chrome keyline */
}
.gw__top img { height: 30px; width: auto; }
.gw__utils { margin-left: auto; display: flex; align-items: center; gap: var(--sp-6); flex: 0 0 auto; }
.gw__utils a, .gw__utils summary {
  font-weight: 500; font-size: 0.92rem; text-decoration: none; white-space: nowrap;
  color: rgba(254,246,242,.92);
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
}
.gw__utils a:hover, .gw__utils summary:hover { color: #fff; }
/* the gateway logo is a link home — WCAG 2.2 target size */
.gw__logo { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; min-height: 44px; }
.lbl-icon, .lbl-short { display: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Portal hero — ONE approved photograph, two destinations.

   The frame is the delivered master (1914x822, 2.32847:1) and it is never
   re-graded, re-cropped or recomposed. Everything that has to line up with it
   — the two vehicle hit areas, the divider, the two selection cards — is
   therefore expressed in percent OF THE MASTER, never of the viewport.

   `.portal__stage` is that master frame: it keeps the exact aspect ratio and is
   centred inside the clipped `.portal__frame`, so cropping happens by overflow
   instead of by `object-fit`. That is the whole trick — with `object-fit: cover`
   the picture slides inside its box and no percentage can follow it, whereas
   here the box IS the picture and every percentage stays exact at any size.

   `.portal__picks` is a second box with identical geometry that lives outside
   the clip, so on narrow screens the two cards can leave the picture and stack
   underneath it without touching any of the numbers above.
   ========================================================================== */
.portal { --nav-h: 78px; }
.portal {
  --frame-h: calc(100svh - var(--nav-h));
  /* The stage may never grow past this or the crop starts eating the vehicles:
     at 135% the visible band is 13.0%–87.0% of the master, and the bodywork
     spans 18.7%–84.8%. Beyond the cap the picture letterboxes instead. (128%
     until 2026-11-25: it left 18–30px bars on common laptops and 127px at
     1024x768; 135% is the value the tablet block already used.) */
  --stage-w: min(max(100%, calc(var(--frame-h) * 2.32847)), 135%);
  position: relative; flex: 1 1 auto; height: var(--frame-h); min-height: 260px;
  background: #0A1620; isolation: isolate;
  /* the stage and the congruent picks box are both wider than the viewport by
     design — this is what keeps them from producing a horizontal scrollbar */
  overflow: hidden;
}
.portal__frame { position: absolute; inset: 0; overflow: hidden; }
.portal__stage, .portal__picks {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: var(--stage-w); aspect-ratio: 1914 / 822;
}
/* the cards size themselves against the PICTURE, not the window */
.portal__picks { z-index: 4; pointer-events: none; container-type: inline-size; }
.portal__stage picture { display: block; }
.portal__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}

/* ---- the two vehicles as light ------------------------------------------
   Each layer is a pixel-identical copy of the same <picture> — same srcset,
   same sizes, same box, same object-fit — masked to one vehicle by a real
   feathered alpha mask taken from the photograph itself. At rest the layer is
   filter-free, so it composites to exactly the pixels underneath and there is
   nothing to see; on hover only its `filter` changes. A mask rather than a
   polygon because a polygon edge crossing the asphalt would read as an outline
   the moment the layer above it got brighter. */
.portal__veh {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  transition: filter 260ms var(--ease);
}
.portal__veh--auto {
  -webkit-mask-image: url("/assets/img/portal-mask-auto.png");
  mask-image: url("/assets/img/portal-mask-auto.png");
}
.portal__veh--bus {
  -webkit-mask-image: url("/assets/img/portal-mask-bus.png");
  mask-image: url("/assets/img/portal-mask-bus.png");
}
/* hover / keyboard focus, from either control of the pair: the chosen vehicle
   lifts (brighter with harder reflections), the other settles back a little.
   No movement, no scale, no outline. */
.portal:has(.portal__go--auto:hover, .portal__go--auto:focus-visible) .portal__veh--auto,
.portal:has(.portal__go--bus:hover, .portal__go--bus:focus-visible) .portal__veh--bus {
  filter: brightness(1.13) contrast(1.06) saturate(1.04);
}
.portal:has(.portal__go--auto:hover, .portal__go--auto:focus-visible) .portal__veh--bus,
.portal:has(.portal__go--bus:hover, .portal__go--bus:focus-visible) .portal__veh--auto {
  filter: brightness(0.9) saturate(0.95);
}

/* ---- the hit areas: the vehicles themselves, nothing else ---------------
   `clip-path` clips hit-testing as well as paint, so the asphalt, the sky, the
   building and the divider are all inert. Percentages resolve against the
   stage, which is the master frame, so the polygons sit on the bodywork at
   every size. Traced from the photograph (GrabCut) and dilated 7px so the edge
   of a wing mirror is still reachable. */
.portal__hit {
  position: absolute; z-index: 3;
  text-decoration: none; color: transparent; font-size: 0;
  -webkit-tap-highlight-color: transparent;
}
/* the box is each vehicle's own bounding box in the master frame, the polygon
   its silhouette inside that box */
.portal__hit--auto {
  left: 18.70%; top: 45.99%; width: 27.22%; height: 33.94%;
  clip-path: polygon(99.6% 33.0%, 91.0% 11.1%, 84.7% 2.5%, 61.2% 0.0%, 42.4% 2.5%,
    29.0% 17.6%, 25.0% 18.6%, 23.3% 26.2%, 9.4% 33.7%, 3.1% 41.2%, 0.0% 57.3%, 0.0% 83.9%,
    11.1% 100.0%, 70.3% 100.0%, 74.1% 93.5%, 89.6% 82.4%, 98.1% 80.3%, 100.0% 67.4%);
}
.portal__hit--bus {
  left: 58.99%; top: 30.17%; width: 25.75%; height: 50.61%;
  clip-path: polygon(97.0% 19.0%, 89.5% 12.3%, 89.0% 8.7%, 76.5% 0.0%, 30.6% 2.9%,
    23.3% 12.0%, 14.8% 30.1%, 9.7% 31.0%, 8.7% 41.6%, 3.7% 48.5%, 0.0% 67.3%, 1.4% 88.2%,
    11.5% 99.8%, 73.6% 100.0%, 88.5% 88.0%, 94.5% 86.5%, 97.4% 62.7%, 100.0% 58.6%);
}
/* an outline would be clipped away with the rest of the box, so keyboard focus
   is shown on the card that shares the destination (see .portal__pick) */
.portal__hit:focus { outline: none; }

/* ---- divider: through the real gap, 46.0%–59.0% of the master ---------- */
.portal__split {
  position: absolute; top: 0; bottom: 0; left: 52.4%; z-index: 2;
  width: 1px; margin-left: -0.5px; pointer-events: none;
  background: linear-gradient(180deg, rgba(238, 242, 244, 0) 0%,
    rgba(238, 242, 244, 0.34) 16%, rgba(238, 242, 244, 0.5) 50%,
    rgba(238, 242, 244, 0.26) 84%, rgba(238, 242, 244, 0) 100%);
}
.portal__or {
  position: absolute; top: 52%; left: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(8, 18, 26, 0.78);
  border: 1px solid rgba(238, 242, 244, 0.26);
  font-family: var(--font-primary); font-style: normal;
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(254, 246, 242, 0.92); white-space: nowrap;
}

/* ---- the two selection cards ------------------------------------------- */
.portal__pick {
  /* `translate`, not `transform`: the intro and transition timelines animate
     the cards' transform, and a translateX(-50%) here would be overwritten. */
  position: absolute; translate: -50% 0; pointer-events: auto;
  display: inline-flex; align-items: center; justify-content: space-between;
  width: clamp(292px, 17cqw, 320px);
  min-height: clamp(68px, 4.1cqw, 76px);
  gap: clamp(10px, 1cqw, 18px);
  padding: 8px clamp(12px, 0.8cqw, 14px) 8px clamp(18px, 1.2cqw, 22px);
  border-radius: clamp(8px, 0.55cqw, 12px);
  background: rgba(13, 25, 34, 0.86);
  border: 1px solid rgba(238, 242, 244, 0.28);
  box-shadow: 0 6px 22px rgba(3, 10, 16, 0.24);
  text-decoration: none; color: var(--ivory);
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease),
              color 240ms var(--ease);
}
/* centred on each vehicle, sitting clear above it: the S-Class roof starts at
   46.0% of the frame and the Sprinter's at 30.2%, so the cards stop at 42% and
   25% and never touch a roof, a window or a mirror. */
.portal__pick--auto { left: 33%; bottom: 58%; }
.portal__pick--bus { left: 71.5%; bottom: 75%; }
.portal__pick-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.portal__pick-h {
  /* the brand-manual display face — real Raleway 700, never a faux weight */
  font-family: var(--font-brand); font-weight: 700; line-height: 1;
  font-size: clamp(1.1rem, 1.15vw, 1.35rem); letter-spacing: 0.05em;
  text-transform: uppercase; color: inherit;
}
.portal__pick-p {
  font-family: var(--font-primary);
  font-size: clamp(11px, 0.68cqw, 12.5px); line-height: 1.3; font-weight: 400;
  letter-spacing: 0.005em; color: rgba(254, 246, 242, 0.78);
  /* NOT nowrap: the card is a fixed clamp(292px, 17cqw, 320px) and the arrow
     takes 48px of it, so "Minibusy a autobusy · 9 a více cestujících" ran past
     the edge and was clipped from 1024px up. Wrapping keeps the whole label
     readable and survives a longer translation; the card is anchored by
     `bottom`, so the extra line grows upward, away from the vehicle. */
  text-wrap: balance;
}
/* the mobile cards' vehicle cutout — not part of the desktop composition */
.portal__pick-veh { display: none; }
.portal__pick-go {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: clamp(44px, 2.4cqw, 48px); height: clamp(44px, 2.4cqw, 48px);
  border-radius: 50%; background: var(--ivory); color: var(--indigo);
  transition: background-color 240ms var(--ease), color 240ms var(--ease);
}
.portal__pick-go svg { width: 42%; height: 42%; }

/* active state — dark card to light card, driven by EITHER control of the pair */
.portal:has(.portal__go--auto:hover, .portal__go--auto:focus-visible) .portal__pick--auto,
.portal:has(.portal__go--bus:hover, .portal__go--bus:focus-visible) .portal__pick--bus {
  background: var(--ivory); border-color: var(--ivory); color: var(--indigo);
}
.portal:has(.portal__go--auto:hover, .portal__go--auto:focus-visible) .portal__pick--auto .portal__pick-p,
.portal:has(.portal__go--bus:hover, .portal__go--bus:focus-visible) .portal__pick--bus .portal__pick-p {
  color: rgba(20, 51, 68, 0.74);
}
.portal:has(.portal__go--auto:hover, .portal__go--auto:focus-visible) .portal__pick--auto .portal__pick-go,
.portal:has(.portal__go--bus:hover, .portal__go--bus:focus-visible) .portal__pick--bus .portal__pick-go {
  background: var(--indigo); color: var(--ivory);
}
/* keyboard focus is always visible, including when the focused element is the
   clipped vehicle link — the ring lands on its card */
.portal__pick:focus-visible,
.portal:has(.portal__hit--auto:focus-visible) .portal__pick--auto,
.portal:has(.portal__hit--bus:focus-visible) .portal__pick--bus {
  outline: 2px solid #EEF2F4; outline-offset: 3px;
}

/* ---- decision copy: heading + support line -----------------------------
   One document heading serves both layouts: on desktop it is visually hidden
   (the two cards over the photograph ARE the message), on mobile it is the
   composed centrepiece between the photograph and the cards. */
.portal__ask {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0;
}
/* mobile-only quiet help strip under the cards */
.portal__help { display: none; }
/* mobile-only combined header help action; the extra specificity outranks
   the generic `.gw__utils a { display: inline-flex }` */
.gwpick--help, .gwpick--portal { display: none; }

@media (prefers-reduced-motion: reduce) {
  .portal__veh, .portal__pick, .portal__pick-go { transition-duration: 1ms; }
}

/* ---- tablet (700–899): the desktop composition, letterboxed ------------ */
@media (max-width: 899px) {
  .gw { height: auto; min-height: 100svh; overflow: visible; }
  .wide-only { display: none; }
  /* .portal__picks needs no override: it is still `width: var(--stage-w)` with
     the master's aspect ratio, so it stays congruent with the stage. */
  .portal { --stage-w: 135%; }
  .portal__or { font-size: 0.52rem; padding: 5px 10px; letter-spacing: 0.16em; }
}
/* phone landscape (700–899 wide, ≤500 tall): the fixed 135% stage is far wider
   than the short frame needs, which pushed the BUS card above the frame where
   the clip and the header hid its heading. Cover the frame without the cap
   (no letterbox) and seat the BUS card a little lower. */
@media (max-width: 899px) and (max-height: 500px) {
  .portal { --stage-w: max(100%, calc(var(--frame-h) * 2.32847)); }
  /* the narrower stage brings the two card centres closer: keep the BUS centre
     at least 300px right of the AUTO centre so the cards never touch (~700-740px) */
  .portal__pick--bus { bottom: 72%; left: max(71.5%, calc(33% + 300px)); }
}

/* ==========================================================================
   Mobile portal (<700px) — a composed page, not a scaled-down desktop.
   Natural document flow: header, photograph, decision heading, AUTO card,
   BUS card, help strip. The photograph is context; the cards ARE the
   navigation, so the invisible vehicle links, the divider and the hover
   layers all leave the mobile DOM presentation entirely.
   Portrait tablets (700–1199, owner 2026-11-25) use it too: the desktop
   overlay letterboxed the photo there, with half the screen empty navy.
   ========================================================================== */
@media (max-width: 699px), (min-width: 700px) and (max-width: 1199px) and (orientation: portrait) {
  /* at least one screen tall, so a tall portrait screen ends in navy, never
     in the ivory page background */
  .gw { min-height: 100svh; }
  .portal {
    height: auto; min-height: 0; display: block; flex: 1 1 auto;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
  /* photograph: full width, ~1.59:1, both vehicles kept.
     stage 146.7% of the viewport => 68.2% of the master visible; nudged 1%
     right so the window sits at 16.9%–85.1% against bodywork at 18.7–84.8%. */
  .portal__frame {
    position: relative; inset: auto; overflow: hidden;
    aspect-ratio: 100 / 63;
  }
  .portal { --stage-w: 146.7%; }
  .portal__stage { transform: translate(calc(-50% - 1%), -50%); }
  .portal__veh, .portal__split, .portal__hit { display: none; }

  /* decision block */
  .portal__ask {
    position: static; width: auto; height: auto; margin: 0; padding: 0;
    overflow: visible; clip: auto; clip-path: none;
    margin-top: clamp(40px, 12vw, 56px);
    padding-inline: clamp(20px, 6vw, 32px);
    text-align: center;
  }
  .portal__ask h1 {
    font-family: var(--font-primary); font-weight: 600;
    font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.08;
    letter-spacing: -0.02em; color: #fff;
  }
  .portal__ask p {
    margin: 10px auto 0; max-width: 34ch;
    font-size: clamp(0.95rem, 4vw, 1.05rem); line-height: 1.5;
    color: rgba(254, 246, 242, 0.66);
  }

  /* the two premium cards */
  .portal__picks {
    position: static; transform: none; width: auto; height: auto; aspect-ratio: auto;
    display: flex; flex-direction: column; gap: clamp(14px, 4vw, 20px);
    margin-top: clamp(28px, 8vw, 36px);
    padding-inline: clamp(20px, 5.5vw, 24px);
  }
  .portal__pick, .portal__pick--auto, .portal__pick--bus {
    left: auto; bottom: auto;
  }
  .portal__pick {
    position: relative; translate: none; width: 100%; overflow: hidden;
    display: block; min-height: clamp(160px, 46vw, 188px);
    padding: clamp(16px, 5vw, 22px) clamp(16px, 5vw, 22px) 18px;
    border-radius: clamp(16px, 4.6vw, 20px);
    background: linear-gradient(150deg, #17394C 0%, #0E2530 58%, #0B1D27 100%);
    border: 1px solid rgba(238, 242, 244, 0.24);
    box-shadow: 0 10px 28px rgba(3, 10, 16, 0.32);
  }
  .portal__pick-txt { position: relative; z-index: 2; }
  .portal__pick-h {
    font-size: clamp(2rem, 10vw, 2.75rem); letter-spacing: 0.04em;
  }
  .portal__pick-p {
    margin-top: 8px; white-space: normal;
    font-size: clamp(0.95rem, 4vw, 1.05rem); line-height: 1.4;
    color: rgba(254, 246, 242, 0.74);
  }
  /* vehicle type, then the passenger count on its own line: no line ends in
     the separator dot. The text column stops where the vehicle starts (its
     own width below), so the copy never runs onto the bodywork. */
  .portal__pick-p .pick-sep { display: none; }
  .portal__pick-p .pick-c { display: block; }
  .portal__pick--auto .portal__pick-txt { padding-right: calc(clamp(150px, 48vw, 210px) + 4px); }
  .portal__pick--bus .portal__pick-txt { padding-right: calc(clamp(108px, 32vw, 140px) + 16px); }
  /* the vehicle: a real presence on the right, never over the copy */
  .portal__pick-veh {
    display: block; position: absolute; z-index: 1; pointer-events: none;
  }
  .portal__pick-veh img { width: 100%; height: auto; display: block; }
  /* sized so the copy column and the bodywork never meet, 320px included:
     the desc box ends ~150-170px from the left, the vehicle starts after it */
  .portal__pick--auto .portal__pick-veh {
    width: clamp(150px, 48vw, 210px); right: 0; bottom: 8px;
  }
  /* the Sprinter is tall: at this size its roof stays below the arrow
     (arrow ends 60px from the card top), so the van never sits under it */
  .portal__pick--bus .portal__pick-veh {
    width: clamp(108px, 32vw, 140px); right: 8px; bottom: 2px;
  }
  /* the tightest phones: the S-Class slides right and bleeds off the card
     edge (as in the approved reference) so its bonnet clears the copy */
  @media (max-width: 374px) {
    .portal__pick--auto .portal__pick-veh { right: -34px; bottom: 3px; }
    .portal__pick--auto .portal__pick-txt { padding-right: 120px; }
  }
  /* the arrow sits in the card's empty top-right corner: at the bottom right
     it covered the S-Class's front wheel and the Sprinter's front */
  .portal__pick-go {
    position: absolute; z-index: 3; right: 14px; top: 14px;
    width: 46px; height: 46px;
  }
  /* the desktop light flip fights the photographic card — on mobile the
     active state is a brighter frame instead */
  .portal:has(.portal__go--auto:hover, .portal__go--auto:focus-visible) .portal__pick--auto,
  .portal:has(.portal__go--bus:hover, .portal__go--bus:focus-visible) .portal__pick--bus {
    background: linear-gradient(150deg, #1B4053 0%, #102936 58%, #0C1F29 100%);
    border-color: rgba(254, 246, 242, 0.55); color: var(--ivory);
  }
  .portal:has(.portal__go--auto:hover, .portal__go--auto:focus-visible) .portal__pick--auto .portal__pick-p,
  .portal:has(.portal__go--bus:hover, .portal__go--bus:focus-visible) .portal__pick--bus .portal__pick-p {
    color: rgba(254, 246, 242, 0.86);
  }
  /* the pressed state is the transition timeline's 80ms dip — a CSS :active
     transform here would distort the surface measurement at tap time */
  .portal__pick:active { border-color: rgba(254, 246, 242, 0.65); }

  /* help strip */
  .portal__help {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 44px; margin: clamp(36px, 10vw, 48px) clamp(20px, 5.5vw, 24px) 0;
    color: rgba(254, 246, 242, 0.68); text-decoration: none;
    font-size: 0.95rem; line-height: 1.35; text-align: center;
  }
  .portal__help:hover, .portal__help:focus-visible { color: var(--ivory); }
  .portal__help:focus-visible { outline: 2px solid #EEF2F4; outline-offset: 3px; border-radius: 6px; }
  .portal__help svg { flex: 0 0 auto; opacity: 0.75; }
  .portal__help::before, .portal__help::after {
    content: ""; flex: 0 1 56px; height: 1px;
    background: linear-gradient(90deg, rgba(174,183,189,0), rgba(174,183,189,.42), rgba(174,183,189,0));
  }
  @media (max-width: 379px) {
    .portal__help::before, .portal__help::after { display: none; }
  }
}
@media (max-width: 560px) {
  .gw__top { gap: var(--sp-4); padding-inline: 20px; min-height: 68px; }
  .gw__top img { height: 26px; }
  .gw__utils { gap: var(--sp-3); }
  .gw__utils a { font-size: 0.86rem; }
}
@media (max-width: 400px) {
  .gw__top { gap: 10px; }
  .gw__top img { height: 24px; }
  .gw__utils { gap: 8px; }
  .gw__tel { width: 44px; min-width: 44px; flex: 0 0 44px; padding: 0; }
  .gw__tel .lbl-long { display: none; }
  .gw__tel .lbl-icon { display: block; }
  .gw__cta { padding: 0 12px; font-size: 0.88rem; }
  .gw__cta .lbl-long { display: none; }
  .gw__cta .lbl-short { display: inline; }
  .hdr__in { gap: 8px; min-height: 60px; }
  .hdr__logo { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  .hdr__logo img { height: 26px; }
  .branch { flex: 0 0 auto; padding: 2px; }
  .branch a { padding: 10px 10px; font-size: 0.8rem; }
  .shell { padding-inline: 20px; }
}

/* portrait tablets on the stacked gateway: the page grows with its content
   (900–1199 would otherwise keep the one-screen, overflow-hidden desktop box)
   and the decision column keeps a phone-like measure, centred */
@media (min-width: 700px) and (max-width: 1199px) and (orientation: portrait) {
  .gw { height: auto; min-height: 100svh; overflow: visible; }
  .portal__ask, .portal__picks, .portal__help { max-width: 560px; margin-inline: auto; }
}

/* ---- mobile portal header (<700px) -------------------------------------
   One combined help action — circular phone glyph + label, a single link —
   replaces the separate tel/CTA pair. Placed after the 560/400 header blocks
   so its measurements win at every mobile width. Portrait tablets share it
   with the stacked gateway (see "Mobile portal"). */
@media (max-width: 699px), (min-width: 700px) and (max-width: 1199px) and (orientation: portrait) {
  .gw__top { min-height: 80px; padding-inline: clamp(18px, 5vw, 22px); }
  .gw__utils a.gw__tel, .gwpick--cta { display: none; }
  .gwpick--help { display: block; margin-left: auto; }
  .gwpick--portal { display: block; }
  .gw__utils .gw__help {
    display: inline-flex; align-items: center; gap: 12px;
    margin-left: auto; min-height: 44px;
    color: rgba(254, 246, 242, 0.94); text-decoration: none;
    font-size: 0.95rem; font-weight: 500; white-space: nowrap;
  }
  .gw__help:hover, .gw__help:focus-visible { color: #fff; }
  .gw__help:focus-visible { outline: 2px solid #EEF2F4; outline-offset: 3px; border-radius: 8px; }
  .gw__help-ic {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--ivory); color: var(--indigo);
  }
}

/* ==========================================================================
   Portal → branch transition (src/portal-transition.js)

   The exit surface starts as an exact copy of the selected card's rectangle
   and expands with a uniform transform scale until it covers the viewport —
   width/height are written ONCE at creation, never animated. The branch
   identifier lives on its own fixed layer so the type is never distorted by
   the surface's scale.
   ========================================================================== */
html.pt-lock { overflow: hidden; }
html.pt-lock body { overflow: hidden; }
.pt-surface {
  position: fixed; left: 0; top: 0; z-index: 640;
  transform-origin: 0 0; pointer-events: none;
  background: var(--ivory);
}
.pt-surface--bus { background: var(--indigo-deep); }
.pt-id {
  position: fixed; inset: 0; z-index: 641; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--indigo);
}
.pt-id--bus { color: var(--ivory); }
.pt-id-h {
  font-family: var(--font-brand); font-weight: 700; line-height: 1;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem); letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pt-id-p {
  font-family: var(--font-primary); font-weight: 500;
  font-size: clamp(0.72rem, 1vw, 0.82rem); letter-spacing: 0.22em;
  text-transform: uppercase; opacity: 0.72;
}
.pt-arrow {
  position: fixed; z-index: 642; pointer-events: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--ivory); color: var(--indigo);
}
.pt-arrow svg { width: 42%; height: 42%; }
.pt-arrow--bus { background: var(--indigo); color: var(--ivory); }

/* ---- destination side: /auto/ and /bus/ --------------------------------
   A tiny synchronous <head> script adds .pt-in (+ .pt-in-bus) when the visit
   arrives mid-transition, so the branch surface is already painted at first
   frame — no white flash, no wrong theme. .pt-go then releases it: the cover
   fades and the header + hero settle up over ~300ms. The classes are removed
   afterwards, which returns every property to the stylesheet's normal state. */
html.pt-in::before {
  content: ""; position: fixed; inset: 0; z-index: 700; pointer-events: none;
  background: var(--ivory); opacity: 1;
  transition: opacity 300ms var(--ease);
}
html.pt-in-bus::before { background: var(--indigo-deep); }
html.pt-in .hdr__in, html.pt-in .hero__body {
  transform: translateY(12px); opacity: 0;
}
html.pt-in.pt-go::before { opacity: 0; }
html.pt-in.pt-go .hdr__in, html.pt-in.pt-go .hero__body {
  transform: none; opacity: 1;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}

/* ---- logo composition intro (first visit per session only) ----
   The official negative export ships on its own indigo plate, so the intro
   surface uses exactly that indigo: the plate is invisible and the logo is
   never recoloured, cropped or redrawn. Chrome is only a passing reflection. */
.gw__intro {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: #143344; align-items: center; justify-content: center;
}
.gw__intro.is-on { display: flex; }
.gw__intro-mark { position: relative; width: clamp(190px, 21vw, 280px); overflow: hidden; }
.gw__intro-half { display: block; overflow: hidden; }
.gw__intro-half img { width: 100%; height: auto; display: block; }
.gw__intro-half--t { height: 50%; }
.gw__intro-half--b { height: 50%; }
.gw__intro-half--b img { margin-top: -100%; }
.gw__intro-sweep {
  position: absolute; top: -12%; bottom: -12%; width: 32%;
  background: linear-gradient(90deg, transparent, rgba(245,247,248,.9), transparent);
  transform: translateX(-220%); pointer-events: none;
}
.gw__intro-seam {
  position: absolute; left: 50%; top: 50%; width: 2px; height: 0;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, var(--chrome-mid), var(--chrome-light), var(--chrome-mid));
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

.grid { display: grid; gap: var(--sp-6); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--fleet { margin-top: 44px; gap: var(--sp-8); }
@media (max-width: 719px) { .grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 899px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .grid--3 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }
.split__media { margin: 0; border-radius: var(--r-md); overflow: hidden; }
.split__media img { width: 100%; height: auto; display: block; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.86rem; color: var(--muted); margin-bottom: var(--sp-4); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
/* separator leads the next crumb, so a wrapped crumb starts its own line with
   "/" instead of leaving the slash hanging at the end of the line above */
.crumbs > :not(:first-child)::before { content: "/"; margin-right: 8px; opacity: 0.55; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); counter-reset: st; }
.steps > div { counter-increment: st; position: relative; padding-top: 42px; }
.steps > div::before {
  content: counter(st, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-primary); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.14em; color: var(--muted);
}
.steps > div::after { content: ""; position: absolute; top: 22px; left: 0; width: 26px; height: 1px; background: var(--chrome-rule); }
.steps h3 { font-size: 1.12rem; font-weight: 600; }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; gap: var(--sp-6); } }

.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6) var(--sp-8); }
.proof > div {
  display: flex; flex-direction: column; gap: 5px;
  padding-left: 16px; border-left: 1px solid var(--line);
}
.proof strong { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.proof span { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 899px) { .proof { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 519px) { .proof { grid-template-columns: 1fr; gap: var(--sp-4); } }  /* was --sp-5: undeclared, so the gap collapsed to 0 */

/* ==========================================================================
   Editorial hero (branch/landing pages)
   ========================================================================== */
.hero { position: relative; isolation: isolate; background: var(--indigo-deep); color: var(--ivory); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(94deg, rgba(7,20,29,.88) 0%, rgba(9,26,36,.60) 30%,
              rgba(13,34,46,.16) 56%, rgba(13,34,46,0) 74%),
              linear-gradient(0deg, rgba(7,20,29,.58) 0%, rgba(13,34,46,0) 32%);
  /* poster-style shading instead of a heavier blanket over the vehicles */
}
.hero__in { position: relative; padding-block: clamp(72px, 12vw, 160px); }
/* precise chrome keyline where the photograph hands over to the page */
.hero::after, .band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, rgba(115,125,132,0) 0%, rgba(238,242,244,.55) 22%,
              rgba(255,255,255,.75) 50%, rgba(238,242,244,.55) 78%, rgba(115,125,132,0) 100%);
}
.hero__body { max-width: 44rem; text-shadow: 0 1px 2px rgba(3,10,16,.5), 0 2px 26px rgba(3,10,16,.4); }
.hero h1 { color: var(--ivory); }
.hero .lede { margin-top: 20px; max-width: 38rem; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--sp-8); }
/* a label that wraps (long CTA on a 320-360px phone) stays centred like the rest */
.hero__ctas .btn { text-align: center; }
/* The filled primary button on the homepage and subpage heroes is light: the
   copy's legibility shadow inherited from .hero__body only blurs its dark label.
   Headline, description and the outlined call button keep theirs. */
:is(.hero--auto, .hero--bus, .hero--page) .hero__ctas .btn--onDark { text-shadow: none; }

/* full-bleed photographic band */
.band { position: relative; isolation: isolate; overflow: hidden; color: var(--ivory); background: var(--indigo-deep); }
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.band__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(94deg, rgba(7,20,29,.86) 0%, rgba(9,26,36,.54) 34%, rgba(13,34,46,0) 70%);
}
/* geometry (min-height, padding, measure, object-position) lives in ONE place —
   see "Business band — art-directed by ASPECT RATIO" at the end of this file */
.band__in { position: relative; }
.band__body { text-shadow: 0 1px 2px rgba(3,10,16,.5), 0 2px 26px rgba(3,10,16,.4); }
.band h2 { color: var(--ivory); }

/* ==========================================================================
   Service list — a luxury editorial index, not a spec table.
   Every cell is placed explicitly; nothing relies on grid auto-placement.
   ========================================================================== */
.rows { border-top: 1px solid var(--line); margin-top: 40px; }
.row {
  display: grid;
  grid-template-columns: 44px minmax(210px, 0.34fr) minmax(0, 1fr) 44px;
  align-items: center;
  column-gap: var(--sp-6);
  min-height: 96px; padding-block: 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background-color .22s var(--ease);
}
.row__n {
  grid-column: 1; grid-row: 1;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.row__h {
  grid-column: 2; grid-row: 1;
  font-family: var(--font-primary); font-weight: 600;
  font-size: clamp(1.25rem, 1.5vw, 1.375rem); letter-spacing: -0.015em;
  line-height: 1.25;
}
.row__p {
  grid-column: 3; grid-row: 1;
  font-weight: 400; font-size: 1.0625rem; line-height: 1.55;
  max-width: 64ch; color: var(--muted);
}
.row__go {
  grid-column: 4; grid-row: 1;
  justify-self: end; font-size: 1.05rem; color: var(--muted);
  transition: transform .22s var(--ease), color .22s var(--ease);
}
a.row:hover { background: rgba(174, 183, 189, 0.09); }
a.row:hover .row__go { transform: translateX(5px); color: inherit; }
/* focus rings inherit the global :focus-visible colour (blue on light, ivory
   on dark) — the old chrome-mid override measured 1.73:1 on ivory surfaces */
a.row:focus-visible { outline-width: 3px; outline-offset: -3px; }

@media (max-width: 719px) {
  /* number + title + arrow on one line, description beneath, aligned to title */
  .row {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    row-gap: 6px; column-gap: var(--sp-4);
    min-height: 44px; padding-block: 20px;
  }
  .row__n { grid-column: 1; grid-row: 1; }
  .row__h { grid-column: 2; grid-row: 1; font-size: 1.16rem; }
  .row__go { grid-column: 3; grid-row: 1; }
  .row__p { grid-column: 2 / 4; grid-row: 2; font-size: 1rem; max-width: none; }
}

/* ==========================================================================
   Vehicle cards
   ========================================================================== */
.veh { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.veh { display: flex; flex-direction: column; }
/* one ratio for every vehicle: reserves the box before the lazy image arrives,
   so a card is never an empty coloured rectangle */
.veh__img { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface-2); }
.veh__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.veh:hover .veh__img img { transform: scale(1.03); }
.veh__body { padding: var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.veh__facts { margin-top: auto; padding-top: 16px; }
.veh__cap { font-family: var(--font-primary); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.veh__h { margin-top: 8px; font-size: 1.16rem; font-weight: 600; letter-spacing: -0.015em; }
.veh__meta { margin-top: 10px; font-size: 0.94rem; color: var(--muted); }
.veh__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; }
.veh__facts li { font-size: 0.84rem; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
/* AUTO (owner 2026-11-25): the chips are outlined like BUS. On AUTO the cyclic
   --line voided the border shorthand, so the chip text sat 11px in from the
   card's title edge as loose labels; a scoped token gives them their outline. */
body.t-auto .veh__facts { --line: var(--ivory-line); }
/* cards in a row end level: the link sits at the foot of each, as in the carousels */
.grid--fleet > .veh--link { display: flex; flex-direction: column; }
.grid--fleet > .veh--link .veh__go { margin-top: auto; padding-top: 16px; }
/* /auto/vozovy-park/ has three cars in two columns. From 1024px the third takes
   the whole row, photograph in the left column and text in the right, so the
   photograph keeps the size of the two above, its text starts on the column of
   the text above, and the row has no hole. Narrower, the text would outgrow a
   3:2 photograph, so the card stays a card and centres. */
@media (min-width: 719.02px) and (max-width: 1023.98px) {
  .grid--fleet-odd > .veh:last-child { grid-column: 1 / -1; justify-self: center;
    width: calc((100% - var(--sp-8)) / 2); }
}
@media (min-width: 1024px) {
  .grid--fleet-odd > .veh:last-child { grid-column: 1 / -1; display: grid;
    grid-template-columns: calc((100% - var(--sp-8)) / 2) 1fr; }
  /* 3:2 reserves the box before the lazy photograph arrives; stretch still lets
     the photograph follow the text if the text is ever the taller of the two */
  .grid--fleet-odd > .veh:last-child .veh__media { aspect-ratio: 3 / 2; align-self: stretch; }
  .grid--fleet-odd > .veh:last-child .veh__img,
  .grid--fleet-odd > .veh:last-child .veh__media img { height: 100%; aspect-ratio: auto; }
  .grid--fleet-odd > .veh:last-child .veh__body { justify-content: center;
    padding-left: calc(var(--sp-8) + var(--sp-6)); }
  .grid--fleet-odd > .veh:last-child .veh__go { margin-top: 0; }
}

/* ==========================================================================
   Prices
   ========================================================================== */
.prices { border-top: 1px solid var(--line); }
.price {
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-6); align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.price__r { font-size: 1.02rem; }
.price__v { font-family: var(--font-primary); font-weight: 600; white-space: nowrap; }
.note { font-size: 0.9rem; color: var(--muted); margin-top: var(--sp-6); line-height: 1.6; }

details.faq { border-bottom: 1px solid var(--line); }
details.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px;
  min-height: 44px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; color: var(--muted); }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { padding-bottom: 18px; color: var(--muted); max-width: 58ch; }

/* ==========================================================================
   Reviews carousel
   ========================================================================== */
.rev__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-8); flex-wrap: wrap; margin-bottom: var(--sp-8); }
.rev__nav { display: flex; gap: 10px; }
.rev__btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-content: center;
  background: transparent; border: 1px solid var(--line); color: inherit; cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.rev__btn:hover:not(:disabled) { border-color: var(--chrome-mid); }
.rev__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.rev__vp {
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 6px;
}
.rev__vp::-webkit-scrollbar { display: none; }
.rev__vp.is-grab { scroll-behavior: auto; scroll-snap-type: none; cursor: grabbing; }
.rev__vp:focus-visible { outline-width: 3px; outline-offset: 3px; }
.rev__track { display: flex; gap: var(--sp-6); align-items: stretch; }
/* without a trailing spacer the viewport cannot scroll far enough for the last
   card to reach the snap position, so the final review is never selectable */
.rev__track::after { content: ""; flex: 0 0 calc(28% - var(--sp-6)); }
.rev__card {
  flex: 0 0 calc((100% - 2 * var(--sp-6)) / 3); scroll-snap-align: start;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(22px, 2.4vw, 32px); background: var(--surface);
}

.rev__q { margin-top: 14px; flex: 1; font-size: 1.02rem; line-height: 1.55; }
.rev__by { margin-top: var(--sp-6); display: flex; flex-direction: column; gap: 3px; }
.rev__by strong { font-weight: 600; }
.rev__by span { font-size: 0.88rem; color: var(--muted); }
.rev__dots { display: flex; gap: 8px; margin-top: var(--sp-6); }
.rev__dots i { height: 3px; flex: 1; max-width: 56px; background: var(--line); border-radius: 3px; transition: background-color .25s var(--ease); }
.rev__dots i.on { background: var(--chrome-mid); }
@media (max-width: 1023px) { .rev__card { flex-basis: calc((100% - var(--sp-6)) / 2); } }
@media (max-width: 639px) { .rev__card { flex-basis: 86%; } }

/* ==========================================================================
   Request form
   ========================================================================== */
/* The form owns its hairline. On AUTO the global --line is cyclic (see the
   token block) and resolves to nothing, so the card border and the rule
   between the two field groups would silently disappear; --form-line is a
   real value scoped to the form, so fixing it here restyles nothing else. */
.form { --form-line: var(--ivory-line);
  border: 1px solid var(--form-line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 44px); background: var(--surface); }
body.t-bus .form { --form-line: rgba(254, 246, 242, 0.18); }
/* 24px between columns AND between rows. This used to read
   `gap: var(--sp-6) var(--sp-5)` — --sp-5 is deliberately undeclared, so the
   whole declaration was invalid and the fields sat with no gap at all. Local
   fix only: declaring --sp-5 globally would move eight other components. */
.fgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6) var(--sp-6); }
@media (max-width: 639px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
.f { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.f--wide { grid-column: 1 / -1; }
.f label { font-size: 0.88rem; font-weight: 600; }
.f input, .f select, .f textarea {
  font: inherit; font-size: 1rem; color: inherit; width: 100%;
  padding: 12px 14px; min-height: 48px;
  background: var(--field-bg); border: 1px solid var(--field-line); border-radius: var(--r-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.f textarea { min-height: 108px; resize: vertical; }
/* Chrome-mid measured 2.04:1 on the white field — below the 3:1 WCAG 1.4.11
   floor. Indigo is the brand ink, passes at >9:1, and the soft spread ring keeps
   the field from looking outlined in error-red territory. */
.f input:focus, .f select:focus, .f textarea:focus {
  /* transparent, not none: forced-colors mode drops the box-shadow ring and
     paints this outline in the system colour instead */
  outline: 2px solid transparent; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(20, 51, 68, 0.30);
}
/* On the dark BUS form the same rule would vanish; ivory ring instead. */
/* The BUS form is a dark surface, but native controls default to the light
   colour scheme: Chrome painted placeholders #757575 (about 2:1 on the field)
   and a black calendar icon on the date field. Declaring the dark scheme on
   the BUS fields alone gives the date/time control, its picker icon and the
   select popups their dark-theme rendering; the placeholder gets an explicit
   ivory tint (about 5:1 on the field). AUTO keeps the browser defaults. */
body.t-bus .f input, body.t-bus .f select, body.t-bus .f textarea { color-scheme: dark; }
body.t-bus .f input::placeholder, body.t-bus .f textarea::placeholder {
  color: rgba(254, 246, 242, 0.7); opacity: 1;
}
body.t-bus .f input::-webkit-calendar-picker-indicator { opacity: .9; cursor: pointer; }
body.t-bus .f input:focus, body.t-bus .f select:focus, body.t-bus .f textarea:focus {
  border-color: var(--ivory);
  box-shadow: 0 0 0 3px rgba(254, 246, 242, 0.55);
}
.f__err { font-size: 0.84rem; color: #C2504F; display: none; }
body.t-bus .f__err { color: #FFA9A2; }
/* the departure picker's inner time field has its own error state */
.f.bad input:not(.dt__tin), .f.bad select, .f.bad textarea { border-color: #C2504F; }
.f.bad .f__err { display: block; }
.form__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: var(--sp-8); }
/* literal 20px: var(--sp-5) is undeclared and voided this margin */
.form__note { font-size: 0.88rem; color: var(--muted); margin-top: 20px; line-height: 1.6; }

.notice { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-6); margin-top: var(--sp-6); }
.notice--info { background: rgba(174, 183, 189, 0.10); }
.notice--ok { border-color: rgba(60, 150, 110, 0.5); background: rgba(60, 150, 110, 0.10); }
.notice--err { border-color: rgba(194, 80, 79, 0.5); background: rgba(194, 80, 79, 0.09); }
.notice p { margin-top: 6px; color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
/* the bottom padding carries the home-indicator inset (0 on desktop) */
.ftr { background: var(--indigo); color: var(--ivory);
  padding-block: clamp(48px, 7vw, 96px) calc(var(--sp-12) + env(safe-area-inset-bottom)); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-8); }
@media (max-width: 899px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr img { height: 38px; width: auto; }
.ftr h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo-soft); margin-bottom: var(--sp-4); }
.ftr ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0; }
/* WCAG 2.2 target size: footer links are real navigation, not inline text.
   Block with even padding (27px line + 2 x 8.5px = 44px), not a centred
   inline-flex box: a link that wraps then starts its first line at the same
   offset as its one-line neighbours and keeps the same gap to the next link,
   and its text is ordinary inline content (<wbr>, .nowrap work in it). */
.ftr ul a { display: block; padding-block: 8.5px; min-height: 44px; }
/* the plain-text address line keeps the same rhythm as the links above it */
.ftr__addr { padding-block: 8.5px; }
.ftr a { color: var(--ivory); text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__meta {
  margin-top: var(--sp-12); padding-top: var(--sp-6); border-top: 1px solid var(--indigo-line);
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  font-size: 0.86rem; color: var(--indigo-soft);
}

/* ==========================================================================
   Route-transition cover (gateway selection)
   ========================================================================== */
.gw__cover { position: fixed; inset: 0; z-index: 220; opacity: 0; visibility: hidden; pointer-events: none; }
.gw__trace {
  position: fixed; top: 0; bottom: 0; width: 2px; z-index: 221;
  opacity: 0; visibility: hidden; pointer-events: none;
  background: linear-gradient(180deg, rgba(89,97,104,.3), var(--chrome-light) 50%, rgba(89,97,104,.3));
  box-shadow: 0 0 20px rgba(245, 247, 248, 0.5);
}

/* ---- branch switch: chrome seam wipe (AUTO <-> BUS) ---- */
.branch-wipe {
  position: fixed; inset: 0; z-index: 240; pointer-events: none;
  background: var(--ivory);
  transform: translateX(-100%); will-change: transform;
  transition: transform 520ms cubic-bezier(.65,0,.35,1);
}
.branch-wipe--bus { background: var(--indigo-deep); transform: translateX(100%); }
.branch-wipe.is-on { transform: translateX(0); }
.branch-wipe i {
  position: absolute; top: 0; bottom: 0; right: 0; width: 2px;
  background: linear-gradient(180deg, rgba(89,97,104,.4), var(--chrome-light) 50%, rgba(89,97,104,.4));
  box-shadow: 0 0 18px rgba(245,247,248,.55);
}
.branch-wipe--bus i { right: auto; left: 0; }
@media (prefers-reduced-motion: reduce) { .branch-wipe { display: none; } }

/* ---- shared page rhythm (AUTO + BUS): one left edge, one spacing scale ---- */
.shell > .eyebrow { margin-bottom: 10px; }
.shell > h2 + .lede, .shell > h2 + .muted { margin-top: 14px; }
/* long paragraphs stay readable instead of spanning the whole shell */
.section .lede, .section > .shell > p { max-width: 62ch; }
.section .lede--wide { max-width: none; }
/* Sections that need a narrower measure keep the page's left edge: the shell
   stays full width and only its children are constrained. Replaces per-section
   inline max-width, which centred the block and broke the alignment. */
@media (max-width: 1023px) { .section { padding-block: clamp(48px, 7vw, 88px); } }
@media (max-width: 719px) { .section { padding-block: clamp(52px, 9vw, 64px); } }


/* ==========================================================================
   Service navigator — editorial 38/62 split; the photo preview swaps on
   hover OR focus. Nothing essential is hover-only: every row is a link and
   carries its own thumbnail on mobile.
   ========================================================================== */
.svcnav { display: grid; grid-template-columns: minmax(300px, 38fr) minmax(0, 62fr);
  gap: clamp(32px, 5vw, 76px); align-items: start; }
.svcnav__aside { position: sticky; top: 104px; }
.svcnav__intro { margin-top: 16px; max-width: 34ch; }
.svcnav__preview {
  display: block; position: relative; margin-top: clamp(24px, 3vw, 36px);
  aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-2); box-shadow: var(--shadow-card);
}
.svcnav__shot { position: absolute; inset: 0; opacity: 0; transition: opacity .42s var(--ease); }
.svcnav__shot.is-on { opacity: 1; }
.svcnav__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svcnav__all { margin-top: 24px; }

.svcnav__list { border-top: 1px solid var(--line); }
.svcrow {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center;
  gap: 0 var(--sp-5); padding: clamp(22px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: background-color .22s var(--ease), padding-inline .26s var(--ease);
}
.svcrow__n { font-size: 0.78rem; font-weight: 500; letter-spacing: .1em;
  color: var(--muted); align-self: start; padding-top: 4px; }
.svcrow__main { min-width: 0; }
.svcrow__h { display: block; font-size: clamp(1.2rem, 1.55vw, 1.42rem);
  font-weight: 600; letter-spacing: -.015em; }
.svcrow__p { display: block; margin-top: 8px; max-width: 62ch; font-size: 1rem;
  line-height: 1.55; color: var(--muted); }
.svcrow__go { justify-self: end; font-size: 1.15rem; color: var(--muted);
  transition: transform .24s var(--ease), color .24s var(--ease); }
.svcrow__thumb { display: none; }
.svcrow:hover, .svcrow:focus-visible, .svcrow.is-on {
  background: var(--svc-active, rgba(22, 142, 237, .07)); padding-inline: 16px; }
.svcrow:hover .svcrow__go, .svcrow:focus-visible .svcrow__go,
.svcrow.is-on .svcrow__go { transform: translateX(5px); color: var(--fg); }
.svcrow:focus-visible { outline-width: 3px; outline-offset: -3px; }
body.t-bus .svcrow { --svc-active: rgba(174, 183, 189, .12); }

@media (max-width: 899px) {
  .svcnav { grid-template-columns: 1fr; gap: var(--sp-8); }
  .svcnav__aside { position: static; }
  .svcnav__preview { display: none; }        /* each row carries its own photo */
  .svcnav__list { border-top: 0; }
  .svcrow {
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    grid-template-areas: "n main go" "thumb thumb thumb";
    padding: 20px 0 24px; gap: 14px var(--sp-4);
  }
  .svcrow__n { grid-area: n; }
  .svcrow__main { grid-area: main; }
  .svcrow__go { grid-area: go; }
  .svcrow__thumb { grid-area: thumb; display: block; border-radius: var(--r-sm); overflow: hidden; }
  .svcrow__thumb img { width: 100%; aspect-ratio: var(--svc-ratio, 16 / 9); object-fit: cover; display: block;
    object-position: var(--svc-pos, 50% 50%); }
  .svcrow:hover, .svcrow.is-on { padding-inline: 0; background: transparent; }
}

/* ==========================================================================
   Journey — a real route line with numbered nodes
   ========================================================================== */
.journey { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0;
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8);
  /* one beat per hop: node lights, its segment draws, the next node lights */
  --j-node: .34s; --j-seg: .46s; --j-step: .5s;
}
.jstep { position: relative; padding-right: var(--sp-4); }

/* the segment LEAVES this step and stops at the next node, so the last step
   owns none and the connector cannot overshoot */
.jstep__seg {
  position: absolute; top: 21px; height: 1px; left: 42px;
  right: calc(var(--sp-8) * -1 - var(--sp-4));
  overflow: hidden; background: var(--line);
}
.jstep__seg i {
  position: absolute; inset: 0; display: block; background: var(--j-line);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--j-seg) linear;
  transition-delay: calc(var(--j-i) * var(--j-step) + var(--j-node));
}
.journey.is-drawn .jstep__seg i { transform: scaleX(1); }

.jstep__node { display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--line);
  position: relative; z-index: 1;
  transition: border-color var(--j-node) var(--ease), background var(--j-node) var(--ease);
  transition-delay: calc(var(--j-i) * var(--j-step));
}
.jstep__node i { font-style: normal; font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; color: var(--muted);
  transition: color var(--j-node) var(--ease);
  transition-delay: calc(var(--j-i) * var(--j-step));
}
.journey.is-drawn .jstep__node { border-color: var(--j-line); }
.journey.is-drawn .jstep__node i { color: var(--j-line); }

.jstep__b { display: block; margin-top: var(--sp-6); }
.jstep__h { display: block; font-size: clamp(1.08rem, 1.35vw, 1.25rem);
  font-weight: 600; letter-spacing: -.012em; }
.jstep__p { display: block; margin-top: 10px; color: var(--muted); line-height: 1.6; max-width: 34ch; }
body.t-auto .journey { --j-line: #168eed; }
body.t-bus .journey { --j-line: #4FB3FF; }
body.t-bus .jstep__node { border-color: rgba(174, 183, 189, .4); }

@media (max-width: 767px) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .jstep { display: grid; grid-template-columns: 42px minmax(0, 1fr);
    gap: 0 var(--sp-4); padding: 0 0 var(--sp-8); }
  .jstep__b { margin-top: 6px; }
  /* vertical hop: from under this node down to the next one, and no further */
  .jstep__seg { top: 42px; bottom: 0; left: 21px; right: auto; width: 1px; height: auto; }
  .jstep__seg i { transform: scaleY(0); transform-origin: center top;
    transition-property: transform; }
  .journey.is-drawn .jstep__seg i { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  /* completed, readable state immediately — every node lit, every segment drawn */
  .journey { --j-node: 0s; --j-seg: 0s; --j-step: 0s; }
  .jstep__node, .jstep__node i, .jstep__seg i { transition: none; }
  .jstep__seg i { transform: scaleX(1); }
  .journey .jstep__node { border-color: var(--j-line); }
  .journey .jstep__node i { color: var(--j-line); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .jstep__seg i { transform: scaleY(1); }
}

/* ==========================================================================
   Fare board — inset panel, copy left, structured routes right
   ========================================================================== */
.fareboard {
  display: grid; grid-template-columns: minmax(280px, 36fr) minmax(0, 64fr);
  gap: clamp(28px, 4vw, 64px);
  background: var(--fb-bg); color: var(--fb-fg);
  border-radius: var(--r-lg); padding: clamp(28px, 4vw, 60px);
}
body.t-auto .fareboard { --fb-bg: #143344; --fb-fg: var(--ivory); }
body.t-bus .fareboard { --fb-bg: #16394B; --fb-fg: var(--ivory);
  box-shadow: inset 0 0 0 1px rgba(174, 183, 189, .18); }
.fareboard h2 { color: var(--fb-fg); }
.fareboard .eyebrow { color: rgba(254, 246, 242, .72); }
.fareboard__intro { margin-top: 16px; color: rgba(254, 246, 242, .86); max-width: 32ch; }
.fareboard__cta { margin-top: var(--sp-6); }
.fareboard__cta .btn { background: var(--ivory); color: var(--indigo); border-color: var(--ivory); }
.fareboard__cta .btn:hover { background: #fff; }
.fares { list-style: none; margin: 0; padding: 0; }
.fare { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-5);
  align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(254, 246, 242, .16); }
.fare:first-child { padding-top: 0; }
.fare__route { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--fb-fg); }
.fare__route b { font-weight: 500; min-width: 0; }
.fare__route b:first-child { white-space: nowrap; }
/* the trailing label may be a phrase ("jednodenní i vícedenní"), so let it wrap
   instead of running into the value column */
.fare__route b:last-child { white-space: normal; color: rgba(254, 246, 242, .72); font-size: .94rem; }
.fare__route i { flex: 1 1 auto; min-width: 18px; height: 1px;
  background: linear-gradient(90deg, rgba(174, 183, 189, .5), rgba(174, 183, 189, .18)); }
.fare__v { font-weight: 600; white-space: nowrap; color: var(--fb-fg); justify-self: end; padding-left: var(--sp-4); }
.fare__note { margin-top: var(--sp-6); border-bottom: 0; }
.fare__note summary { cursor: pointer; list-style: none; min-height: 44px;
  display: flex; align-items: center; font-size: .92rem; font-weight: 500;
  color: rgba(254, 246, 242, .86); }
.fare__note summary::-webkit-details-marker { display: none; }
.fare__note summary::after { content: "+"; margin-left: 10px; font-size: 1.1rem; }
.fare__note[open] summary::after { content: "\2212"; }
.fare__note p { color: rgba(254, 246, 242, .78); font-size: .9rem;
  line-height: 1.65; padding-bottom: 8px; }
/* BUS board up to 1279px: the descriptor always takes its own line, so the
   rows of one board share one layout (it used to drop only when it didn't fit) */
@media (max-width: 1279px) {
  .fareboard--bus .fare__route { flex-wrap: wrap; row-gap: 4px; }
  .fareboard--bus .fare__route i { display: none; }
  .fareboard--bus .fare__route b:last-child { flex-basis: 100%; }
}
@media (max-width: 899px) {
  .fare__route { flex-wrap: wrap; }
  .fare__route i { display: none; }
}
@media (max-width: 899px) {
  .fareboard { grid-template-columns: 1fr; }
}
/* below 600px the value goes under its route: side by side, the nowrap
   route title ran underneath 'Individuální kalkulace' / 'Individual quote' */
@media (max-width: 599px) {
  .fare { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .fare__v { justify-self: start; padding-left: 0; }
  .fare__route b:first-child { white-space: normal; }
}


/* ==========================================================================
   Fleet card as a single link + verified gallery + lightbox
   ========================================================================== */
.veh--link { display: block; text-decoration: none; color: inherit; }
.veh--link:focus-visible { outline-width: 3px; outline-offset: 3px; }
.veh__media { display: block; position: relative; overflow: hidden; }
.veh__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
  transition: transform .5s var(--ease); }
.veh--link:hover .veh__media img, .veh--link:focus-visible .veh__media img { transform: scale(1.03); }
.veh__cap, .veh__meta, .veh__go { display: block; }
.veh__go { margin-top: var(--sp-5); font-weight: 600; font-size: .95rem;
  color: var(--accent-link, #0f5f9e); }
body.t-bus .veh__go { --accent-link: #7FC4FF; }
.veh--link:hover .veh__go span, .veh--link:focus-visible .veh__go span {
  display: inline-block; transform: translateX(4px); transition: transform .2s var(--ease); }

.gal { list-style: none; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.gal__i { margin: 0; }
/* a one-photo gallery (the Neoplan) is not a lone third-width thumbnail in an
   empty row: two thirds from 900px, the full width below */
.gal__i:only-child { grid-column: span 2; }
.gal__t { display: block; border-radius: var(--r-md); overflow: hidden; position: relative; }
/* a landscape master fills the 3:2 cell exactly; a portrait one is aimed per
   photograph (galleries.py THUMB_POS), and the lightbox shows all of it */
.gal__t img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
  object-position: var(--gal-pos, 50% 50%); transition: transform .45s var(--ease); }
.gal__t:hover img, .gal__t:focus-visible img { transform: scale(1.04); }
.gal__t:focus-visible { outline-width: 3px; outline-offset: 3px; }
@media (max-width: 899px) { .gal { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); } }

/* lightbox — created by app.js only when JS runs; without JS the thumb link
   simply opens the full image */
.lbx { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center;
  background: rgba(5, 12, 18, .93); padding: clamp(16px, 4vw, 56px); }
.lbx[hidden] { display: none; }
/* Leave room for long captions on narrow and landscape phones. */
.lbx__img { max-width: 100%; max-height: 78vh;
  max-height: min(78vh, calc(100vh - 2 * clamp(16px, 4vw, 56px) - 5.75rem));
  max-height: min(78dvh, calc(100dvh - 2 * clamp(16px, 4vw, 56px) - 5.75rem));
  object-fit: contain; display: block; border-radius: var(--r-sm); }
.lbx__img, .lbx__cap { margin-inline: auto; }
.lbx__cap { margin-top: 14px; color: rgba(254, 246, 242, .84); font-size: .92rem;
  text-align: center; max-width: 60ch; text-wrap: pretty; }
.lbx__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 12, 18, .55); border: 1px solid rgba(254, 246, 242, .34);
  color: var(--ivory); cursor: pointer; font-size: 1.3rem;
}
.lbx__btn:hover { background: rgba(5, 12, 18, .78); }
.lbx__btn:focus-visible { outline: 2px solid var(--chrome-light); outline-offset: 2px; }
.lbx__prev { left: clamp(10px, 2vw, 28px); }
.lbx__next { right: clamp(10px, 2vw, 28px); }
.lbx__close { position: absolute; top: clamp(10px, 2vw, 24px); right: clamp(10px, 2vw, 24px);
  transform: none; }
@media (max-width: 599px) {
  .lbx__btn { width: 48px; height: 48px; }
  .lbx__prev { left: 8px; } .lbx__next { right: 8px; }
}


/* ==========================================================================
   Reviews — featured testimonial. The active review is dominant; the next one
   peeks beside it so the carousel reads as continuous. Manual controls only.
   ========================================================================== */
/* --star is a graphic (role="img"), so WCAG 1.4.11 asks for 3:1 against the
   card. #C8A24A only reached 2.41:1 on white; #B08A2E reaches 3.23:1 and stays
   recognisably gold. On the indigo card #D9B25C already reaches 6.1:1.
   --quote is the oversized decorative glyph and is deliberately lighter. */
.reviews { --star: #B08A2E; --quote: #C8A24A; --rev-surface: #ffffff; --rev-fg: var(--indigo); }
body.t-bus .reviews, .reviews.dark { --star: #D9B25C; --quote: #D9B25C; --rev-surface: #17394B; --rev-fg: var(--ivory); }

.rev__head { display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-8); flex-wrap: wrap; margin-bottom: clamp(28px, 3vw, 44px); }
.rev__ctrl { display: flex; align-items: center; gap: var(--sp-6); }
.rev__pos { font-size: .82rem; letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
/* --fg is NOT redeclared by the `.dark` token block, so inside
   section.dark.reviews on a t-auto page var(--fg) stayed indigo and the counter
   rendered indigo-on-indigo (1.00:1, live on /o-nas/). --rev-fg is the block's
   own foreground and is already correct on all four surfaces. */
.rev__pos b { font-weight: 600; color: var(--rev-fg); }
.rev__nav { display: flex; gap: 10px; }

.rev__vp { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 8px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
.rev__vp::-webkit-scrollbar { display: none; }
.rev__vp:focus-visible { outline-width: 3px; outline-offset: 4px; border-radius: var(--r-md); }
.rev__track { display: flex; gap: var(--sp-6); align-items: stretch; }
/* without a trailing spacer the viewport cannot scroll far enough for the last
   card to reach the snap position, so the final review is never selectable */
.rev__track::after { content: ""; flex: 0 0 calc(28% - var(--sp-6)); }

/* one dominant card, the next one peeking */
.rev__card {
  flex: 0 0 min(72%, 720px); scroll-snap-align: start; position: relative;
  display: flex; flex-direction: column;
  background: var(--rev-surface); color: var(--rev-fg);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(28px, 3.4vw, 52px);
  opacity: .5; transition: opacity .4s var(--ease), box-shadow .4s var(--ease);
}
.rev__card.is-active { opacity: 1; box-shadow: var(--shadow-card); }
.rev__mark { position: absolute; top: clamp(6px, 1vw, 14px); right: clamp(18px, 2.4vw, 34px);
  font-size: clamp(88px, 11vw, 150px); line-height: 1; color: var(--quote);
  opacity: .16; pointer-events: none; user-select: none; }
.rev__stars { color: var(--star); letter-spacing: 3px; font-size: .92rem; }
.rev__q { margin: clamp(18px, 2vw, 26px) 0 0; flex: 1;
  font-size: clamp(1.22rem, 1.9vw, 1.75rem); font-weight: 500;
  line-height: 1.42; letter-spacing: -.015em; max-width: 30ch; }
.rev__q::before { content: "\201E"; } .rev__q::after { content: "\201C"; }
.rev__by { display: flex; flex-direction: column; gap: 4px; margin-top: clamp(24px, 3vw, 38px);
  padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.rev__by b { font-weight: 600; }
.rev__by span { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.rev__by .rev__src { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }

.rev__foot { display: flex; align-items: center; justify-content: flex-end;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: var(--sp-6); border-top: 1px solid var(--line); }

@media (max-width: 899px) { .rev__card { flex-basis: min(84%, 560px); }
  .rev__track::after { flex-basis: calc(16% - var(--sp-6)); } }
@media (max-width: 599px) {
  .rev__card { flex-basis: 88%; opacity: 1; }   /* no dimmed peek on small screens */
  .rev__track::after { flex-basis: 4px; }
  .rev__head { margin-bottom: var(--sp-6); }
  .rev__ctrl { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .rev__vp { scroll-behavior: auto; }
  .rev__card { transition: none; }
}

/* ==========================================================================
   Hero video layer — decorative background over the poster photograph
   ========================================================================== */
/* One object-position for both layers so the subject cannot shift when the
   video fades in over the photograph. */
.hero__media img, .hero__vid { object-position: var(--hero-pos, 50% 50%); }
.hero__vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity .42s var(--ease);
  pointer-events: none;   /* the hero's links stay clickable through it */
}
.hero__vid.is-on { opacity: 1; }
@media (max-width: 767px) {
  .hero__media img, .hero__vid {
    object-position: var(--hero-pos-m, var(--hero-pos, 50% 50%));
  }
}
@media (prefers-reduced-motion: reduce) {
  /* app.js never fetches the loop in this mode; this also covers a cached one
     and guarantees the photograph is what gets shown. */
  .hero__vid { display: none; }
}

/* The loop's road surface is brighter on the right than the still it replaced,
   so a hero carrying video gets a little more reach in the mid-band. Still a
   local gradient: fully transparent by 80%, so the vehicle is never blanketed.
   Heroes without a loop keep the approved scrim untouched. */
.hero:has(.hero__vid) .hero__scrim {
  background: linear-gradient(94deg, rgba(7,20,29,.90) 0%, rgba(9,26,36,.68) 34%,
              rgba(13,34,46,.26) 60%, rgba(13,34,46,0) 80%),
              linear-gradient(0deg, rgba(7,20,29,.58) 0%, rgba(13,34,46,0) 32%);
}

/* ==========================================================================
   Video hero: fill the first screen, proof strip docked at its base
   ========================================================================== */
/* The hero's height was content-driven and landed at ~707px whatever the
   viewport, so on a 2400px display it became a 3.4:1 letterbox band and the
   2.10:1 loop was cropped ~38% vertically. Floor the height by viewport WIDTH
   so it only grows on wide screens — at 1440 the hero is already 2.04:1 and
   must not change — and cap it at the first screen so the docked strip lands
   on the fold rather than below it. */
:root { --hdr-h: 76px; }
@media (max-width: 1279px) { :root { --hdr-h: 66px; } }
@media (max-width: 599px)  { :root { --hdr-h: 60px; } }

.hero:has(.hero__vid) {
  display: flex; flex-direction: column;
  min-height: min(calc(100svh - var(--hdr-h)), 47vw);
}
/* the copy centres in whatever height the hero ends up with */
.hero:has(.hero__vid) .hero__in { flex: 1 1 auto; display: flex; align-items: center; }
.hero:has(.hero__vid) .hero__in > .hero__body { width: 100%; }

/* First screen = header + video hero + facts strip, in normal flow.
   --facts-h must track .factstrip's real rendered height, so its padding below
   is set to land on it. */
/* 122px is the strip's REAL rendered height on both branches (34px padding-block
   + 54px of content). The old 120px left the strip 2px past the fold at every
   desktop size. The extra 2px on top absorbs the 1px the BUS header carries over
   AUTO's: BUS redeclares --line so its header hairline paints, while on AUTO the
   cyclic --line makes the same border invalid and it collapses to 0. */
:root { --facts-h: 124px; }
/* Below ~1280px the four columns get narrow enough that BUS's longer sublines
   ("vlastní vozy se známou historií") wrap to a second line and its strip grows
   to 143px while AUTO's stays 122px. Budget for the taller of the two so BOTH
   branches keep the same hero height AND both strips land on the fold; AUTO
   simply gets a little more air. The facts copy itself is unchanged. */
@media (max-width: 1279px) { :root { --facts-h: 148px; } }

@media (min-width: 900px) {
  /* The opening composition is header + hero + facts strip, so the hero takes
     exactly what is left and no more. `min-height` was not enough: the copy
     column is taller than the formula at common desktop sizes, so the hero grew
     past it and pushed the strip off-screen (measured at 1440x900: hero 786px
     against a 704px budget, strip bottom at 984px on a 900px viewport). Setting
     `height` makes the budget binding in both directions. */
  .hero:has(.hero__vid) {
    /* The base rule above caps at `min(100svh - --hdr-h, 47vw)`, which leaves no
       room for the strip: at 1920x1080 that is 47vw = 902px against an 884px
       budget, and min-height beats height, so the strip landed at 1100px on a
       1080px screen. Neutralise it here and let the budget below be the only
       height authority at desktop. */
    min-height: 0;
    height: max(460px, calc(100svh - var(--hdr-h) - var(--facts-h)));
  }
  /* ...and the copy spacing has to shrink with the available height, or the
     content simply overflows the box we just fixed. Tied to svh rather than vw
     because it is vertical room that is scarce: a 1366x768 laptop needs far
     tighter padding than a 1920x1080 desktop of the same width class. */
  .hero:has(.hero__vid) .hero__in { padding-block: clamp(24px, 5.4svh, 108px); }
}

/* Facts strip — solid AUTO ivory, indigo text, never over the film. */
.factstrip {
  background: var(--surface-2);   /* same warm ivory as .tinted */
  color: var(--fg);
  border-top: 1px solid rgba(20, 51, 68, .10);
  padding-block: 34px;
}
.factstrip .proof > div { border-left: 1px solid rgba(20, 51, 68, .14); }
.factstrip .proof span { color: rgba(20, 51, 68, .68); }

/* BUS: the same component as a DARK surface. The three rules above hardcode
   AUTO indigo, which on t-bus is an indigo hairline and near-black subtext on a
   dark panel — invisible. One restrained tonal lift off --indigo-deep (#0D222E),
   using the tone .section.tinted already occupies, ivory headings, ivory-dimmed
   sublines and chrome hairlines at low alpha. No gradient, no glow, no third hue.
   Colour only: the box metrics (padding-block, border count, type sizes) are
   deliberately untouched so the strip renders at the SAME height on both
   branches and --facts-h above stays a valid stand-in for either one. */
body.t-bus .factstrip {
  background: #122E3E;                                /* == body.t-bus .section.tinted */
  color: var(--ivory);
  border-top: 1px solid rgba(174, 183, 189, .14);     /* == body.t-bus .section + .section */
}
body.t-bus .factstrip .proof > div { border-left: 1px solid rgba(174, 183, 189, .20); }
body.t-bus .factstrip .proof strong { color: var(--ivory); }              /* 13.3:1 */
body.t-bus .factstrip .proof span { color: rgba(254, 246, 242, .72); }    /*  7.5:1 */

@media (max-width: 899px) {
  .factstrip { padding-block: var(--sp-6); }
  /* 2x2 rather than four stacked rows, and it holds down to 320px */
  .factstrip .proof { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-6); }
  /* "Až 200 / cestujících", "Cena potvrzená / předem": balanced lines */
  .factstrip .proof strong { text-wrap: balance; }
}

/* ==========================================================================
   Composition polish — hero copy and video safe zone
   --------------------------------------------------------------------------
   The shared desktop content axis is `.shell` (--shell + --gut). The hero copy,
   the first facts-strip rule and the band copy all resolve to it already; these
   rules only change measure, never the axis.
   ========================================================================== */
@media (min-width: 900px) {
  /* narrower measure: column -9%, headline ~536px, paragraph ~448px */
  .hero__body { max-width: 40rem; }
  /* 608px is the narrowest that still breaks "Klid začíná ještě / před cestou."
     into the intended two lines at the approved type scale — below 600px it goes
     to three. Preserving the two-line headline outranks a narrower measure. */
  .hero h1 { max-width: 38rem; }
  .hero .lede { max-width: 28rem; }
  /* sit the group a touch above true centre — optically centred, not mathematically */
  .hero:has(.hero__vid) .hero__in > .hero__body { margin-bottom: 48px; }
}
/* 700–899: the same 608px measure for the four homepage (video) heroes only, so
   the AUTO headline wraps like BUS and the AUTO/BUS switch no longer moves the
   hero and the facts strip by ~50px. Subpage heroes keep their wider measure. */
@media (min-width: 700px) and (max-width: 899px) {
  .hero:has(.hero__vid) h1 { max-width: 38rem; }
}
/* phone landscape and other short screens: the ~100px top padding put the
   buttons below a 390px fold, and the sticky call bar is off from 768px.
   Compact the homepage hero so heading, lede and buttons fit the first screen. */
@media (min-width: 700px) and (max-height: 500px) {
  .hero:has(.hero__vid) { height: auto; min-height: calc(100svh - var(--hdr-h)); }
  .hero:has(.hero__vid) .hero__in { padding-block: 20px; }
  .hero:has(.hero__vid) h1 { font-size: clamp(1.9rem, 9svh, 2.6rem); }
  .hero:has(.hero__vid) .hero__ctas { margin-top: 20px; }
  /* the >=900 optical lift would make the auto-height heroes differ by line count */
  .hero:has(.hero__vid) .hero__in > .hero__body { margin-bottom: 0; }
}

/* ==========================================================================
   Business band — art direction by ASPECT RATIO, not by width
   --------------------------------------------------------------------------
   .band__media uses object-fit:cover on ONE master, so only the axis that has
   slack can be panned. At 2560x1080 the box is 3.20:1 against a 2.40:1 image:
   cover scales on WIDTH, the horizontal slack is exactly zero and no value of
   object-position X can move the car out from under the copy. At 320x568 the
   box is 0.76:1, cover scales on HEIGHT and Y is inert instead. So the frame is
   fixed with four real crops behind <picture media=…> and four matching SECTION
   geometries here. These breakpoints MUST stay identical to band_buckets() in
   build.py — 4/5, 7/5, 2/1 — or the box aspect and the crop stop agreeing.

   ONE variable system. Everything the composition needs is a variable on .band,
   every bucket sets only variables, and there is exactly one declaration of each
   geometric property — no second .band rule can silently kill an earlier one,
   which is what the four superseded width-query blocks used to do.
     --feat-h            min-height, i.e. what the box aspect actually is
     --feat-x/--feat-y   object-position for the crop this bucket receives
     --feat-copy-align   align-items for the copy column
     --feat-copy-y       extra top offset for the copy (portrait only)
     --feat-gutter       floor that keeps the copy off the band's edges
     --feat-copy-w       copy measure; h2 and .lede derive from it
     --feat-lede-w       optional narrower .lede measure (BUS band only);
                         falls back to --feat-copy-w
   Deliberately NO --feat-scale: cover already fills the box, so a transform
   could only zoom IN — cutting the car or the water — and would additionally
   promote the image to its own compositing layer for nothing.
   ========================================================================== */
.band {
  /* B3 wide (7/5 … 2/1) is the APPROVED 1440x900 composition, so it is the base
     case: 42vw -> 604.8px, a 2.381:1 box against the 2.40:1 master. */
  --feat-h: clamp(560px, 42vw, 800px);
  --feat-x: 50%;
  --feat-y: 50%;
  --feat-copy-align: center;
  --feat-copy-y: 0px;
  --feat-gutter: clamp(48px, 5vw, 72px);
  --feat-copy-w: 26rem;

  min-height: var(--feat-h);
  display: flex;
  align-items: var(--feat-copy-align);
}
.band__media img { object-position: var(--feat-x) var(--feat-y); }
.band__in {
  width: 100%;
  /* max() keeps a real floor under the copy even when the copy outgrows
     --feat-h. In the centred buckets --feat-copy-y is 0, so both sides resolve
     to --feat-gutter: symmetric padding, positionally inert under
     align-items:center, and at 1440x900 it is literally the approved 72px/72px. */
  padding-block: max(var(--feat-copy-y), var(--feat-gutter)) var(--feat-gutter);
}
.band__body { max-width: var(--feat-copy-w); }
.band h2    { max-width: calc(var(--feat-copy-w) - 3rem); }   /* B3 -> 23rem */
.band .lede { max-width: var(--feat-lede-w, var(--feat-copy-w)); } /* B3 -> 26rem */

/* B2 compact (4/5 … 7/5) — tablets and short laptops; 57vw lands the box near
   1.7:1, which is the shape the -mid crop is cut to. */
@media (min-aspect-ratio: 4/5) and (max-aspect-ratio: 7/5) {
  .band { --feat-h: clamp(520px, 57vw, 640px); --feat-copy-w: 24rem; }
}
/* B4 ultrawide (>= 2/1) — 34vw instead of 42vw, so 2560x1080 is a 2.94:1 box
   for the -ultra crop rather than the 3.20:1 letterbox it used to be. */
@media (min-aspect-ratio: 2/1) {
  .band { --feat-h: clamp(680px, 34vw, 1000px); --feat-copy-w: 24rem; }
}
/* BUS band (black Sprinter VIP, bus-sprinter-scene*). The copy sits ON the
   photograph (owner, 2026-11-25): each crop is the photo grown to the left
   from its own edge (media.py extend()), so the copy has the building and the
   road behind it, out of focus, and the whole van stays on the right.
   - Outside portrait the crop is anchored at 75%, so a box narrower than the
     crop (1121x800, 1180x820, iPad landscape) loses backdrop, not the van's rear.
   - The scrim follows the copy column, not the band's width: an even shade
     to the column's right edge (--shell + --gut + --feat-copy-w, so the same
     at 1024 and at 2560), then gone within 16vw, before most of the van. The
     lede measured >= 5.3:1 against the 95th-percentile background of its line
     boxes, CZ and EN, 15 viewports from 320 to 2560px, text shadow off
     (2026-11-25). */
body.t-bus .band {
  --feat-x: 75%;
  /* The lede sits at bonnet height, so its measure is capped to end at least
     24px left of the van's front bumper. B3 at the 560px floor (box narrower
     than the 2.38:1 crop, anchored 75%) puts the bumper at 0.75W - 400px and
     the copy starts at --gut (<= 5vw), hence 70vw - 424px. From 1200px wide
     it resolves to the full --feat-copy-w, so 1440x900 is unchanged. */
  --feat-lede-w: min(var(--feat-copy-w), calc(70vw - 424px));
}
body.t-bus .band__scrim {
  --copy-end: calc(max((100% - var(--shell)) / 2, 0px) + var(--gut) + var(--feat-copy-w));
  background: linear-gradient(90deg, rgba(7,20,29,.74) 0, rgba(7,20,29,.62) var(--copy-end),
              rgba(13,34,46,0) calc(var(--copy-end) + 16vw));
}
/* B2 for the BUS band: the 420px floor (520px shared) keeps the box at the
   -mid crop's 1.75:1 down to ~740px wide, so a 801-911px window does not crop
   the backdrop away and slide the van under the copy. The bumper is then at 40.5%
   of the width: lede <= 35.5vw - 24px (iPad landscape: 3 lines instead of 2). */
@media (min-aspect-ratio: 4/5) and (max-aspect-ratio: 7/5) {
  body.t-bus .band {
    --feat-h: clamp(420px, 57vw, 640px);
    --feat-lede-w: min(var(--feat-copy-w), calc(35.5vw - 24px));
  }
}
/* Phones held sideways (500px tall or less, wider than 7/5): the 560/680px
   floors of B3/B4 made a 1.1-1.4:1 box for a 2.1-2.4:1 crop, so cover cut the
   van's rear and pushed it under the copy. The BUS band takes its content
   height here with a narrower copy column, and the -short crop (van small,
   backdrop around it) is anchored right. Matches band_buckets()' first bucket. */
@media (max-height: 500px) and (min-aspect-ratio: 7/5) {
  body.t-bus .band {
    --feat-h: 0px; --feat-gutter: 32px; --feat-copy-w: 19rem; --feat-lede-w: var(--feat-copy-w);
    --feat-x: 100%; --feat-y: 50%;
  }
}
/* B1 portrait (<= 4/5) — copy at the top, the -tall crop carries the vehicle
   below it. Declared LAST on purpose: at exactly 4/5 this query and B2's both
   match, and <picture> is first-match-wins, so it hands over the -tall crop
   there — the tall geometry has to win here too or the box and the crop
   disagree at that one ratio. Do not reorder. */
@media (max-aspect-ratio: 4/5) {
  .band {
    --feat-h: clamp(460px, 132vw, 640px);
    --feat-copy-align: flex-start;
    --feat-copy-y: clamp(40px, 9vw, 64px);
    --feat-gutter: clamp(24px, 5vw, 40px);
    --feat-copy-w: 34rem;
  }
  /* BUS band (black Sprinter VIP, bus-sprinter-scene-tall): the crop is the
     photo grown upwards (building and tree, out of focus) and the van sits
     bottom right, so it is anchored there — a portrait tablet box (1.2-1.6:1)
     shows the crop's lower half, with the copy on the backdrop and the van
     whole below it. On phones the band is taller than the shared B1 floor
     (560px from 150vw), so long copy (EN at 320px) ends above the van and the
     van fills ~80-90% of the width instead of a corner.
     The scrim runs top-down in px, because the copy is top-aligned at a fixed
     inset: the lede ends by ~330px everywhere (EN at 320 is the longest), so
     the shade holds to 340px and is gone by 460px. The van's roof (285-400px
     down, by width) takes a little of it; the black paint barely shows it. */
  body.t-bus .band {
    --feat-h: clamp(560px, 150vw, 640px); --feat-x: 100%; --feat-y: 100%;
    --feat-lede-w: var(--feat-copy-w);   /* copy above the van: full measure */
  }
  body.t-bus .band__scrim {
    background: linear-gradient(180deg, rgba(7,20,29,.74) 0, rgba(7,20,29,.62) 340px, rgba(13,34,46,0) 460px);
  }
}


/* ==========================================================================
   SHARED SUBPAGE SYSTEM — appended block. Every rule below is additive:
   nothing above this line is modified or reordered.
   Components: page_hero() .hero--page/.hero--tall · benefit_split() .benefit
   + .checks · situations() .sits · spec_rows() .specs · price_table() .ptable
   · map_embed() .mapblk  (generators live in build.py)
   ========================================================================== */

/* ---- narrowing a section without losing the shared left axis -------------
   A max-width on the .shell itself centres the block and breaks the one left
   edge every section shares. The shell stays full width; only its children are
   constrained, and --measure-w lets a page tune the measure inline
   (style="--measure-w:820px") instead of reaching for max-width again.
   `.shell.measure` never did anything — `.shell`'s own max-width outranks
   `.measure` — so it is redirected onto the same mechanism here. */
.shell--measure { --measure-w: 900px; }
.shell--measure > * { max-width: var(--measure-w); }

/* Photo heroes on AUTO and BUS subpages. Standard pages share their
   minimum height and breadcrumb inset. More room at ultrawide sizes keeps
   vehicles in frame, and the minimum lets the text grow at high zoom. */
.hero--page {
  --page-hero-h: 600px;
  --page-hero-top: clamp(40px, 5.6vw, 96px);
  --photo-band: min(46vw, 430px);
  --scrim-depth: 57%;
  background: #0d222e;
  display: flex;
  align-items: flex-start;
  min-height: max(var(--page-hero-h), 26vw);
}
@media (min-width: 360px)  { .hero--page { --page-hero-h: 560px; } }
@media (min-width: 480px)  { .hero--page { --page-hero-h: 520px; } }
@media (min-width: 1024px) { .hero--page { --page-hero-h: 560px; } }
@media (min-width: 1280px) { .hero--page { --page-hero-h: 620px; } }
@media (min-width: 1680px) { .hero--page { --page-hero-h: 720px; } }
.hero--page > .hero__in { flex: 1 1 auto; min-width: 0; }
.hero--page .hero__in { padding-block: var(--page-hero-top) 48px; }
.hero--page .hero__body { max-width: 42rem; }
.hero--page h1 { font-size: clamp(2.05rem, 4.4vw, 3.6rem); }
.hero--page .crumbs { margin-bottom: var(--sp-4); }
.hero--page .eyebrow { margin-bottom: 12px; }
@media (min-width: 600px) { .hero--page .lede { max-width: 28rem; } }

/* Fade the colour behind the text and into the same continuous photograph. */
@media (min-width: 768px) {
  .hero--page .hero__scrim {
    --copy-x: calc(max((100vw - var(--shell)) / 2, 0px) + var(--gut));
    background: linear-gradient(90deg, rgba(7, 20, 29, .48) 0,
      rgba(7, 20, 29, .70) var(--copy-x),
      rgba(7, 20, 29, .67) calc(var(--copy-x) + 432px),
      rgba(7, 20, 29, .24) calc(var(--copy-x) + 590px),
      transparent calc(var(--copy-x) + 745px));
    mask-image: linear-gradient(#000 var(--scrim-depth), rgba(0, 0, 0, .38) 90%, transparent);
  }
}
.hero--page .hero__ctas .btn--ghost {
  background: rgba(7, 20, 29, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero--page .hero__ctas .btn--ghost:hover { background: rgba(7, 20, 29, .90); }

/* Service and vehicle details allow longer headings and more room for the photo. */
.hero--page.hero--tall {
  --scrim-depth: 72%;
  align-items: safe center;
  min-height: max(clamp(400px, 52vw, 640px), 39vw);
}
/* Small enough that every tall hero stays at its min-height on desktop, so all
   service and vehicle details share one height at each width (599/624/640/655/
   749/998px at 1152/1200/1280-1600/1680/1920/2560) instead of growing with the
   line count of the headline and lede (688-795px at 1366-1440 before). */
.hero--page.hero--tall .hero__in { padding-block: clamp(48px, 4.4vw, 96px); }
.hero--page.hero--tall h1 { font-size: clamp(2.3rem, 5.2vw, 4.3rem); }
/* narrow phones: at 2.3rem the English service headlines took four lines with
   single words stranded ("A wedding / day without / transport / worries") */
@media (max-width: 374px) { .hero--page.hero--tall h1 { font-size: 2.05rem; } }
@media (min-width: 1024px) { .hero--page.hero--tall .crumbs { color: rgba(254, 246, 242, .84); } }

/* Use the width for the subject when a full-height crop would cut its sides. */
@media (max-width: 1151.98px) {
  .hero--page .hero__media {
    inset: auto 0 0;
    height: var(--photo-band);
    mask-image: linear-gradient(transparent, #000 36px);
  }
  .hero--page.hero--tall .hero__in {
    padding-block: clamp(44px, 6vw, 80px) calc(var(--photo-band) + 28px);
  }
  .hero--page.hero--photo-deep { --photo-band: min(62vw, 430px); }
}
/* Service details on a landscape tablet (1000–1151): the stacked band put the
   vehicles below the first screen (heroes 812–925px tall). Use the full-bleed
   desktop composition with the desktop padding instead. Vehicle details
   (.hero--photo-deep) keep their band. */
@media (min-width: 1000px) and (max-width: 1151.98px) and (orientation: landscape) {
  .hero--page.hero--tall:not(.hero--photo-deep) .hero__media { inset: 0; height: auto; mask-image: none; }
  .hero--page.hero--tall:not(.hero--photo-deep) .hero__in { padding-block: clamp(48px, 4.4vw, 96px); }
  /* --hero-pos-l (pos_l): an optional focus for this full-bleed frame, where the
     copy covers more of the picture than on desktop (companies, schools) */
  .hero--page.hero--tall:not(.hero--photo-deep) .hero__media img {
    object-position: var(--hero-pos-l, var(--hero-pos-t, var(--hero-pos, 50% 50%))); }
}
@media (min-width: 768px) and (max-width: 1151.98px) {
  .hero--page .hero__media img { object-position: var(--hero-pos-t, var(--hero-pos, 50% 50%)); }
}
@media (min-width: 2200px) {
  .hero--page .hero__media img { object-position: var(--hero-pos-w, var(--hero-pos, 50% 50%)); }
}
@media (max-width: 767px) {
  .hero--page .hero__scrim { background: linear-gradient(rgba(7, 20, 29, .46), transparent 82%); }
  /* The homepage heroes too (2026-11-24): their call button carried the whole
     number, so the two buttons wrapped onto two rows and the bottom bar could
     cut the first one. On one row a button can never straddle the 76px bar at
     load: if the row is not wholly on screen it is wholly behind the bar. */
  :is(.hero--page, .hero--auto, .hero--bus) .hero__ctas .btn { padding-inline: 16px; }
  :is(.hero--page, .hero--auto, .hero--bus) .hero__ctas .btn__num { display: none; }
}

/* ==========================================================================
   benefit_split() — copy left, a real checked list right
   The old right column was a chip row (.veh__facts, 0.84rem pills) which read
   as decoration and left the section looking empty. This is a list: 1rem type,
   hairline separators, one optional supporting line per item.
   ========================================================================== */
.benefit {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.benefit__copy .lede { margin-top: 18px; }
.benefit__label { margin-bottom: 0; }

.checks { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.check {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px;
  align-items: start; padding: 15px 0; border-bottom: 1px solid var(--line);
}
/* currentColor, not --fg: a .dark section on an AUTO page keeps --fg indigo,
   which would paint the tick dark-on-dark. */
.check__i { display: grid; place-content: center; width: 22px; height: 22px; margin-top: 2px; color: currentColor; opacity: .6; }
.check__i svg { display: block; }
.check__t { display: block; font-size: 1rem; font-weight: 500; line-height: 1.45; }
.check__d { display: block; margin-top: 4px; font-size: .93rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 899px) {
  .benefit { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); }
}

/* ==========================================================================
   situations() — four narrow editorial modules, hairline-separated.
   Not cards: no radius, no shadow, no fill. The container carries the top
   rule, each module a leading hairline; the nth-child sets are re-declared at
   each breakpoint so no stale divider survives a column change.
   ========================================================================== */
.sits {
  list-style: none; margin: clamp(28px, 3.4vw, 44px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
}
/* Each module anchors itself: number, then a short drawn rule, then the text.
   The previous version hung one shared hairline over the whole row, which on
   the tinted surface read as floating text rather than four modules. */
.sit { max-width: 30ch; padding-block: 6px 8px; }
.sit__n {
  display: block; font-style: normal; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums;
}
.sit__n::after {
  content: ""; display: block; width: 28px; height: 1px; margin-top: 12px;
  background: linear-gradient(90deg, var(--chrome-mid), rgba(174, 183, 189, 0));
}
.sit__t { display: block; margin-top: 14px; font-size: 1.14rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.32; }
.sit__p { display: block; margin-top: 10px; font-size: .96rem; color: var(--muted); line-height: 1.55; }

@media (max-width: 1039px) {
  .sits { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sp-8); }
}
@media (max-width: 639px) {
  .sits { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .sit { border-top: 1px solid var(--line); padding-block: 20px 24px; max-width: none; }
  .sit:first-child { border-top: 0; padding-top: 0; }
  .sit__n::after { display: none; }   /* the shared top rules carry the rhythm */
}

/* ==========================================================================
   spec_rows() — specification rows for vehicle pages. A <dl>, so the
   label/value pairing is real; hairlines carry the rhythm.
   ========================================================================== */
.specs { margin: clamp(20px, 2.4vw, 32px) 0 0; border-top: 1px solid var(--line); }
.specs__row {
  display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr);
  gap: var(--sp-6); align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.spec__k { font-size: .93rem; font-weight: 500; color: var(--muted); }
.spec__v { margin: 0; font-size: 1.02rem; font-weight: 500; }   /* <dd> default indent removed */
@media (max-width: 599px) {
  .specs__row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; }
}

.section.bus-pricing, .section.auto-pricing { padding-block: clamp(48px, 7vw, 98px); }
.bus-pricing > .shell > .benefit { align-items: stretch; }
.bus-pricing__factors { display: flex; flex-direction: column; }
.bus-pricing__factors .specs { display: grid; flex: 1; }
.bus-pricing__factors .specs__row { grid-template-columns: minmax(0, 1fr); gap: 4px; align-content: center; }
.bus-pricing__factors .spec__k { color: inherit; font-size: 1rem; font-weight: 600; }
.bus-pricing__factors .spec__v { color: var(--muted); font-weight: 400; }
.bus-pricing__actions, .auto-pricing__actions {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  margin-top: auto; padding-top: clamp(20px, 2.4vw, 28px);
}
.bus-pricing__phone, .auto-pricing__phone { display: inline-flex; align-items: center; min-height: 44px; }
.bus-pricing > .shell > .bus-pricing__auto {
  max-width: none; margin-top: clamp(22px, 3vw, 40px);
  padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted);
}
.bus-pricing__auto .arrow { margin-inline-start: 5px; }

/* AUTO route comparison and quote */
.auto-pricing__layout {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.auto-pricing__rates, .auto-pricing__rates .ptable { display: flex; flex: 1; flex-direction: column; }
.auto-pricing__rates table { flex: 1; }
.auto-pricing__actions .btn, .bus-pricing__actions .btn { text-align: center; text-wrap: balance; }
/* "Poptat přesnou / cenu": balanced, and on one line for AUTO at 320 */
@media (max-width: 359px) {
  .auto-pricing__actions .btn, .bus-pricing__actions .btn { padding-inline: 20px; }
}
.auto-pricing__links {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 24px;
  margin-top: clamp(22px, 3vw, 38px); padding-top: 8px; border-top: 1px solid var(--ivory-line);
  color: var(--muted);
}
.auto-pricing__links a { min-height: 44px; color: var(--fg); }
.auto-pricing__details { --line: var(--ivory-line); }
.auto-pricing__details .specs { margin-block: 0 12px; }
.auto-pricing__wedding-note { margin-top: 12px; }
.auto-pricing__wedding-link { margin-top: 20px; }

@media (max-width: 899px) {
  .auto-pricing__layout { grid-template-columns: minmax(0, 1fr); }
}

.ptable { margin: clamp(14px, 2vw, 24px) 0 0; }
.ptable table { width: 100%; border-collapse: collapse; }
.ptable caption { text-align: start; padding-bottom: 14px; color: var(--muted); font-size: .93rem; }
.ptable th, .ptable td { padding: 14px 12px; text-align: start; vertical-align: middle; }
.ptable thead th { font-size: .95rem; font-weight: 600; background: rgba(20, 51, 68, .055); }
.ptable thead small { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.ptable tbody tr { border-bottom: 1px solid var(--ivory-line); }
.ptable__r { font-weight: 500; }
.ptable .ptable__pc { text-align: end; font-variant-numeric: tabular-nums; }
.ptable tbody .ptable__pc { font-weight: 600; white-space: nowrap; }
@media (max-width: 599px) {
  .ptable th, .ptable td { padding: 11px 7px; font-size: .9rem; }
  .ptable__r { overflow-wrap: anywhere; }
  .ptable thead small { font-size: .75rem; }
}
/* Under 375px `anywhere` let the vehicle column shrink below its longest word
   ("Mercedes-B|enz", "Mercedes-Ben|z"). Keep whole words there and win the room
   from the cell padding; the wrapper scrolls as a last resort, never the page. */
@media (max-width: 374px) {
  .ptable__r { overflow-wrap: normal; }
  .ptable { overflow-x: auto; }
}
@media (max-width: 359px) {
  .ptable th, .ptable td { padding-inline: 4px; }
}
@media (min-width: 300px) and (max-width: 319px) {
  .ptable th, .ptable td { padding-inline: 3px; font-size: .84rem; }
}

/* ==========================================================================
   map_embed() — responsive Google map and direct link.
   ========================================================================== */
.mapblk { margin: clamp(12px, 1.5vw, 20px) 0 0; }
/* width: 100% — without it the 4:3 ratio turned min-height: 190px into a 253px
   minimum width, which overran the card at 320px and widened the page at zoom */
.mapblk__frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  min-height: 190px; max-height: 460px;
  border: 1px solid var(--kline, var(--line)); border-radius: var(--r-md); background: var(--surface);
}
.mapblk__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 719px) { .mapblk__frame { aspect-ratio: 4 / 3; } }


/* ==========================================================================
   BUS HERO — theme only. NO geometry.
   --------------------------------------------------------------------------
   AUTO and BUS share ONE film and ONE framing. An earlier revision gave BUS its
   own `--bh-*` system (min-height, object-position pan, scale, top-anchored copy
   and per-aspect buckets) to work around a tightly cropped Sprinter edit. That
   edit was rejected, so the whole system is gone: `.hero--bus` must NOT declare
   min-height, object-position, align-items or padding-block, or the two branches
   silently drift apart again.

   In particular BUS now inherits
     .hero:has(.hero__vid) { min-height: max(460px, 100svh - --hdr-h - --facts-h) }
   which is what keeps the facts strip inside the first screen. The old BUS value
   subtracted only 24px instead of --facts-h, which is exactly why the BUS facts
   strip fell below the fold.

   What legitimately stays branch-specific: copy, surfaces, and the scrim colour.
   ========================================================================== */

/* The headline is two <span> sentences with a real word space between them —
   `<span>Celá skupina.</span> <span class="h1-second">Jedna klidná cesta.</span>`.
   Desktop promotes the second to a block so it starts its own line, because left
   to wrap it stranded "Jedna" alone on a short middle line between two long ones.
   The font SIZE must stay AUTO's: a smaller BUS headline made the BUS hero 52px
   shorter than AUTO's at 1440x900, and the two heroes have to be identical. So
   the second line is fitted by WIDENING the measure instead — at AUTO's 81.6px
   cap "Jedna klidná cesta." needs ~725px, hence 46rem. Typography only; no
   geometry, no height. */
/* The headline is two <span> sentences separated by a real word space. Inline by
   default, so a phone wraps them naturally and the space is always present in the
   rendered text. Desktop promotes the second to a block so it starts its own line.
   No pseudo-element supplies spacing or punctuation — that space is real markup,
   which is why the sentences can never render as "skupina.Jedna". */
/* Very narrow phones only (<340px): at 320px the h1 computes to 37.6px and
   "Jedna klidná cesta." needs 342px against a 280px column, so it broke into a
   ragged third line. 30px is the SMALLEST size at which the sentence fits
   (37.6 × 280/342 = 30.8): the second span goes block + nowrap so the headline
   renders as exactly the two intended lines. Same spans, same real space in the
   markup — the accessible text is untouched. 360px and up never match this
   query and keep their approved appearance. */
@media (max-width: 339px) {
  .hero--bus .hero h1, .hero.hero--bus h1 { font-size: 30px; }
  .hero--bus h1 .h1-second { display: block; white-space: nowrap; }
}
@media (min-width: 900px) {
  .hero--bus h1 .h1-second { display: block; }
  /* The h1 cap alone is not enough: `.hero__body` is 40rem (640px), and a parent
     max-width wins, so "Jedna klidná cesta." (~725px at the 81.6px cap) still
     wrapped and the headline fell back to three lines. Widen both. Copy stays on
     the same .shell axis — only the measure changes, never the origin. */
  .hero--bus .hero__body { max-width: 46rem; }
  .hero--bus h1 { max-width: 46rem; }
}
/* AUTO homepage headline (2026-11-25): the same two-line treatment as BUS,
   "Klid začíná ještě / před cestou." and "Calm starts / before the journey."
   (real spans, real space). EN broke into three lines on every desktop, with
   the buttons almost on the hero's bottom edge at 1366x768, and CZ fitted one
   line at 700–743px, a hero ~46px shorter than the other three there.
   Phones held sideways (700–899 wide, 500 tall or less) keep one line, as BUS
   does there: two lines pushed the AUTO buttons under the bar. */
@media (min-width: 700px) and (min-height: 501px), (min-width: 900px) {
  .hero--auto h1 .h1-second { display: block; }
}
@media (min-width: 900px) {
  .hero--auto .hero__body, .hero--auto h1 { max-width: 46rem; }
}
.hero--bus .eyebrow { color: var(--ivory); }

/* Restrained left-weighted readability scrim, in the BUS indigo rather than
   AUTO's. Strong enough to hold ivory copy on the left, fading out before the
   middle so the film's road, terminal, water and architecture stay visible. */
.hero--bus .hero__scrim,
.hero--bus:has(.hero__vid) .hero__scrim {
  background:
    linear-gradient(90deg,
      rgba(10, 26, 34, .78) 0%,
      rgba(11, 29, 39, .62) 26%,
      rgba(13, 34, 46, .30) 48%,
      rgba(13, 34, 46, .06) 68%,
      rgba(13, 34, 46, 0) 100%);
}

/* ==========================================================================
   MOBILE HOMEPAGE HERO (<700px) — wide film panel, copy below it
   --------------------------------------------------------------------------
   A portrait viewport cannot show a 2.10:1 frame AND use that film as a tall
   `cover` background: one of the two has to give. Above 700px the approved
   desktop composition is untouched — copy over a full-bleed cover crop. Below
   700px the hero stops being a background at all and becomes normal flow:

       header -> wide film panel -> branch copy block -> facts strip

   The panel is an exact-ratio box, so `cover` inside it crops nothing and there
   are no letterbox bars; the surrounding surface is the branch's own, and the
   copy sits on it rather than floating over a narrow crop. Poster and video
   share that one box, so they cannot disagree and nothing shifts on load.
   Scoped to the homepage heroes only (`.hero` carrying a loop) — subpage
   `.hero--page` and the portal are untouched.
   ========================================================================== */
@media (max-width: 699px) {
  .hero:has(.hero__vid) {
    display: block;
    height: auto;
    min-height: 0;
    color: inherit;
    background: var(--bg);
  }
  /* the film: out of the absolute layer, into the document */
  .hero:has(.hero__vid) .hero__media {
    position: relative;         /* the box; the poster sizes it, the video overlays it */
    width: 100%;
    aspect-ratio: 1920 / 914;   /* == the 962x458 mobile derivative, same frame */
    overflow: hidden;
  }
  .hero:has(.hero__vid) .hero__media picture,
  .hero:has(.hero__vid) .hero__media img {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;          /* exact-ratio box => no actual crop */
    object-position: 50% 50%;
  }
  /* The video stays ABSOLUTE over the poster — identical geometry, so there is
     nothing to shift when it fades in. Deliberately no `display` here: setting
     it would out-specify the reduced-motion `.hero__vid { display: none }` and
     leave an empty media layer for those users. */
  .hero:has(.hero__vid) .hero__vid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
  }
  /* the scrim only exists to protect copy laid OVER the film; there is no
     overlap here, and leaving it would just grey the picture */
  .hero:has(.hero__vid) .hero__scrim { display: none; }

  .hero:has(.hero__vid) .hero__in {
    position: static;
    display: block;
    padding-block: clamp(24px, 6vw, 36px) clamp(28px, 7vw, 40px);
  }
  .hero:has(.hero__vid) .hero__in > .hero__body { margin-bottom: 0; max-width: none; }
  .hero:has(.hero__vid) h1 { max-width: none; }
  .hero:has(.hero__vid) .lede { max-width: 34rem; }

  /* The copy no longer sits over film, so the shadow that made it legible there
     is just dirt on a flat surface. Both branches. */
  .hero:has(.hero__vid) .hero__body { text-shadow: none; }

  /* AUTO: the copy block returns to the branch's own ivory surface. `.hero` is
     in the dark-context token block, which redeclares --muted to --indigo-soft
     (a LIGHT value) and --cta-* to an ivory button — both invisible on ivory.
     Redeclare the tokens rather than patching each rule, so anything inside the
     block that reads them lands on the light-surface value too. */
  body.t-auto .hero:has(.hero__vid) {
    background: var(--bg);
    color: var(--fg);
    --muted: rgba(20, 51, 68, .74);
    --line: var(--ivory-line);
    --cta-bg: var(--indigo);
    --cta-fg: var(--ivory);
  }
  body.t-auto .hero:has(.hero__vid) h1 { color: var(--indigo); }
  body.t-auto .hero:has(.hero__vid) .eyebrow { color: rgba(20, 51, 68, .72); }
  body.t-auto .hero:has(.hero__vid) .lede { color: rgba(20, 51, 68, .78); }
  /* the hero's primary CTA is .btn--onDark — an ivory fill, which vanishes here.
     Flip it to the solid indigo button AUTO uses everywhere else on ivory. */
  body.t-auto .hero:has(.hero__vid) .btn--onDark {
    background: var(--indigo); color: var(--ivory);
  }
  body.t-auto .hero:has(.hero__vid) .btn--onDark:hover { background: #1b4053; }
  body.t-auto .hero:has(.hero__vid) .btn--ghost {
    color: var(--indigo); border-color: rgba(20, 51, 68, .34);
  }
  body.t-auto .hero:has(.hero__vid) .btn--ghost:hover {
    border-color: var(--indigo); background: rgba(20, 51, 68, .06);
  }
  /* BUS keeps Deep Indigo with ivory type — its normal world, so its inherited
     dark-context tokens are already correct. */
  body.t-bus .hero:has(.hero__vid) { background: var(--indigo-deep); color: var(--ivory); }
}

/* ==========================================================================
   Carousel — one component for fleet, related vehicles and reviews
   --------------------------------------------------------------------------
   Item width is derived from --car-per so EXACTLY that many complete items are
   visible; a partial neighbour is arithmetically impossible. Paging is index-
   based and clamped in app.js, so the final page is always full.
   ========================================================================== */
.car { --car-gap: var(--sp-6); --car-n: var(--car-per, 3); position: relative; }
.car__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-6); margin-bottom: clamp(24px, 3vw, 40px);
}
.car__nav { display: flex; gap: 10px; flex: 0 0 auto; }
.car__btn {
  width: 46px; height: 46px; min-width: 46px; min-height: 46px;
  display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--fg);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
}
.car__btn:hover:not(:disabled) { background: rgba(20, 51, 68, .06); border-color: rgba(20, 51, 68, .3); }
.car__btn:disabled { opacity: .32; cursor: default; }
.car--dark .car__btn, body.t-bus .car__btn { border-color: rgba(174, 183, 189, .38); color: var(--ivory); }
.car--dark .car__btn:hover:not(:disabled),
body.t-bus .car__btn:hover:not(:disabled) { background: rgba(254, 246, 242, .10); border-color: rgba(254, 246, 242, .55); }

/* the viewport clips; without JS it stays a native scroller so nothing is lost */
.car__vp { overflow: hidden; overflow-x: auto; scrollbar-width: none; }
.car__vp::-webkit-scrollbar { display: none; }
.car[data-car-ready] .car__vp { overflow-x: hidden; }
.car__track {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--car-gap);
  transform: translate3d(0, 0, 0);
  transition: transform .52s var(--ease);
}
.car__cell {
  flex: 0 0 calc((100% - (var(--car-n) - 1) * var(--car-gap)) / var(--car-n));
  min-width: 0; display: flex;
}
.car__cell > * { width: 100%; }
@media (max-width: 1023px) { .car { --car-n: var(--car-per-tab, 2); } }
@media (max-width: 719px)  { .car { --car-n: var(--car-per-mob, 1); } }
@media (prefers-reduced-motion: reduce) { .car__track { transition: none; } }

/* cards inside a carousel stretch to a common height so bottoms align */
.car__cell > .veh { display: flex; flex-direction: column; height: 100%; }
.car__cell > .veh .veh__body { display: flex; flex-direction: column; flex: 1 1 auto; }
.car__cell > .veh .veh__go { margin-top: auto; padding-top: 16px; }

/* ==========================================================================
   Reviews on the shared carousel — exactly one complete review, no neighbour
   --------------------------------------------------------------------------
   The old block sized .rev__card as a flex basis with a peeking sibling at 50%
   opacity and a trailing spacer. On per=1 the cell already IS the viewport, so
   those rules are neutralised here rather than deleted above — the earlier
   block still serves nothing else, and overriding keeps this change reversible.
   ========================================================================== */
.car--rev .rev__card {
  margin: 0;                          /* a <figure>: no browser 40px side margin */
  flex: 1 1 auto; width: 100%; opacity: 1;
  max-width: 78ch;                    /* testimonial measure, not shell width */
  box-shadow: var(--shadow-card);
}
.car--rev .car__track::after { content: none; }        /* no peek spacer */
.car--rev .car__vp { scroll-snap-type: none; }
/* the tallest real review at this breakpoint reserves the height, so stepping
   through them cannot move the page under the reader */
.car--rev .car__track { align-items: stretch; }
.car--rev .car__cell { align-items: stretch; }
.car--rev .rev__q { min-height: 0; }
.car--rev .rev__q a {
  color: inherit;
  text-decoration: none;
}
.car--rev .rev__q a:hover { cursor: pointer; }
/* below 600px the quote spans the whole card, so the big decorative mark in
   its top corner would sit on the first line; the quote keeps its own „ “ */
@media (max-width: 599px) { .car--rev .rev__mark { display: none; } }
.car--rev .car__head { align-items: flex-end; }
.car--rev .rev__pos { margin-top: 12px; }
.car--rev .rev__foot { margin-top: clamp(24px, 3vw, 40px); }
@media (max-width: 719px) {
  .car--rev .car__head { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .car--rev .car__nav { width: 100%; justify-content: flex-start; }
}

/* ==========================================================================
   Vehicle specification sheet
   --------------------------------------------------------------------------
   Was: an asymmetric sheet whose left column ended in a SECOND gallery
   photograph. The gallery section follows immediately below, so that photo
   restated the next screen and pushed the panel far enough down that the two
   columns no longer read as one block. Now a compact editorial pair — copy,
   display capacity and the actions on the left, the parameters in a tonal
   inset panel on the right, both top-aligned on the shared content axis.
   Structure is shared; only colour comes from the branch theme.
   ========================================================================== */
.spec {
  display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: clamp(32px, 4.5vw, 64px); align-items: start;
}
.spec__lead { min-width: 0; }
/* the H2 + lede gap `.shell > h2 + .lede` gives elsewhere; nested here, so it
   never reached this lede and it sat on the heading */
.spec__lead .lede { margin-top: 14px; }
.spec__cap {
  margin-top: clamp(24px, 3vw, 36px); padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
/* prominent, but it is a figure in a paragraph — not a display heading. The
   ceiling keeps "19 cestujících + řidič" on two lines instead of five. */
.spec__cap b {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 600;
  letter-spacing: -.022em; line-height: 1.06; color: var(--fg);
}
.spec__cap span { font-size: .88rem; color: var(--muted); letter-spacing: .02em; }
.spec__cta { margin-top: clamp(20px, 2.4vw, 28px); }
.spec__gal { margin-top: var(--sp-4); }

/* the inset panel is the tonal anchor that stops the section reading as
   text floating on an empty field */
.spec__panel {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 34px);
}
.spec__panel-h { margin-bottom: 20px; }
.spec__panel .specs { margin: 0; border-top: 0; }
.spec__panel .specs__row { padding: 13px 0; }
.spec__panel .specs__row:first-child { padding-top: 0; }
.spec__panel .specs__row:last-child { padding-bottom: 0; border-bottom: 0; }

body.t-bus .spec__panel { background: #17394B; border-color: rgba(174, 183, 189, .22); }

@media (max-width: 1023px) {
  /* intro first, then the panel — the reading order the markup already has */
  .spec { grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 4vw, 40px); }
}
@media (max-width: 719px) {
  .spec__panel { padding: var(--sp-6); }
  .spec__cap b { font-size: clamp(1.7rem, 8vw, 2.1rem); }
  .spec__cta .btn { width: 100%; justify-content: center; }
}

.car__nav:only-child { margin-left: auto; }

/* ==========================================================================
   Bilingual site, branch-specific enquiry forms (2026-10)
   --------------------------------------------------------------------------
   CZ/EN switch · enquiry form groups · BUS capacity message · single-row
   "Čím vás povezeme" carousel. Everything below is additive: it styles new
   markup or scopes a fix to one component, and changes no approved token.
   ========================================================================== */

/* ---- CZ/EN switch -------------------------------------------------------
   The same segmented control as the AUTO/BUS switch (.branch) — same frame,
   same active fill — so the header gains a control, not a new style. Flags are
   inline SVG with a hairline so the white of both flags reads on ivory. */
.lang { display: inline-flex; flex: 0 0 auto; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: var(--r-sm); }
.hdr--dark .lang, .gw .lang, .mnav__panel .lang { border-color: var(--indigo-line); }
.lang__a, .gw__utils a.lang__a {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; min-width: 44px; padding: 0 11px; border-radius: 9px;
  font-family: var(--font-primary); font-weight: 600; font-size: .86rem; letter-spacing: .03em;
  text-decoration: none; white-space: nowrap; color: inherit;
}
.lang__a:hover { background: rgba(20, 51, 68, .06); }
.hdr--dark .lang__a:hover, .gw .lang__a:hover, .mnav__panel .lang__a:hover { background: rgba(254, 246, 242, .10); }
.lang__a[aria-current="true"] { background: var(--cta-bg); color: var(--cta-fg); }
.hdr--dark .lang__a[aria-current="true"], .gw .lang__a[aria-current="true"],
.mnav__panel .lang__a[aria-current="true"] { background: var(--chrome-light); color: var(--indigo); }
.flag { width: 20px; height: 14px; flex: 0 0 20px; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(11, 17, 21, .2); }
.lang__name { font-weight: 500; letter-spacing: 0; }

/* mobile menu: the full switch, both languages named */
.lang--menu { display: flex; width: 100%; }
.lang--menu .lang__a { flex: 1 1 0; min-height: 48px; font-size: .95rem; gap: 9px; }
/* under 320px (fold cover screens, 200% zoom) flag + code only, like the header
   switch: the names no longer fit their halves and ran over the other flag */
@media (max-width: 319.98px) { .lang--menu .lang__name { display: none; } }
/* Both menu switches sit on the indigo panel on AUTO pages too. The full border
   shorthand is needed: on AUTO the cyclic --line leaves border-style at none, so
   a border-color override alone never draws the frame. --ivory is the active
   fill the BUS menu already resolves to, so BUS renders exactly as before. */
.mnav__panel .branch, .mnav__panel .lang { border: 1px solid var(--indigo-line); }
.mnav__panel .branch a[aria-current="true"] { background: var(--ivory); color: var(--indigo); }

/* gateway: desktop + tablet in the top bar; a narrow phone has no room beside
   the help action, so there the switch sits under the help strip instead.
   From 430px up the bar holds logo · help · the other language; below that the
   approved one-line mobile header (logo · help) is left exactly as it was. */
.lang--portal { display: none; }
@media (max-width: 699px) {
  .gw__lang { padding: 2px; }
  .gw__lang .lang__a[aria-current="true"] { display: none; }
  .gw__utils .gw__lang .lang__a { padding: 0 8px; gap: 6px; font-size: .8rem; }
}
@media (max-width: 429px) {
  .gw__utils .gw__lang { display: none; }
  .lang--portal { display: flex; width: max-content; margin: var(--sp-4) auto 0; }
  .lang--portal .lang__a { color: rgba(254, 246, 242, 0.86); }
}

/* ---- header breakpoints -------------------------------------------------
   Desktop order is logo · AUTO/BUS · navigation · phone · CTA · CZ/EN. The
   extra control needs room (measured: 1244px of items against a 1232px shell
   at 1440 with the old 28px gaps), so the desktop bar gives up width in steps
   and only collapses to the burger where it always did, at 1080px:
     * always: item gap tops out at 20px (was 28px), nav gap at 22px (was 24px),
       and the CTA never wraps — the longest bar, English BUS, keeps >=13px
       spare at 1360px and above;
     * 1081–1359px: the phone shows as a handset icon (the number stays its
       accessible name) — the one item that can give up width without losing
       its function;
     * 1081–1279px: the logo at its tablet size (32px), a 10px nav gap and a
       tighter CZ/EN.
   At 1080px and below (burger, unchanged) the bar keeps logo · AUTO/BUS ·
   CZ/EN · burger; under 600px only the OTHER language shows (one tap to
   switch), and under 375px the switch lives in the menu. The heights and the
   400px reductions stay exactly as they were: nothing here redeclares them. */
.hdr__in { gap: clamp(12px, 1.4vw, 20px); }
.hdr__nav { gap: clamp(10px, 1.6vw, 22px); }
.hdr__cta { white-space: nowrap; }
.hdr__tel { gap: 8px; }
.hdr__tel-ic { display: none; }
@media (min-width: 1081px) and (max-width: 1359px) {
  .hdr__tel { justify-content: center; flex: 0 0 44px; width: 44px; border-radius: 50%; }
  .hdr__tel-ic { display: block; }
  .hdr__tel-n { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
}
@media (min-width: 1081px) and (max-width: 1279px) {
  /* the full bar is 76px tall here (the 66px value belonged to the burger
     bar); the hero budget has to subtract what is really there */
  :root { --hdr-h: 76px; }
  .hdr__logo img { height: 32px; }
  .hdr__nav { gap: 10px; }
  .hdr__cta { padding-inline: 16px; }
  .hdr__lang .lang__a { padding: 0 8px; gap: 6px; }
}
@media (min-width: 1081px) and (max-width: 1199px) {
  .hdr .branch a { padding-inline: 10px; }
  .hdr__nav { gap: 8px; }
  .hdr__cta { padding-inline: 14px; }
  .hdr__lang .lang__a { padding: 0 6px; }
}
@media (max-width: 1080px) {
  .hdr__burger { margin-left: 0; }
  .hdr__lang { margin-left: auto; }
}
/* Tablets and phone landscape (768–1080px): the sticky call bar retires at
   768px, so the burger bar keeps the handset from the 1081–1359px bar
   (DESIGN.md §8: logo, branch switch, call action, menu). The number stays
   its accessible name. */
@media (min-width: 768px) and (max-width: 1080px) {
  .hdr__tel { display: inline-flex; justify-content: center; flex: 0 0 44px; width: 44px;
    border-radius: 50%; margin-left: auto; }
  .hdr__tel-ic { display: block; }
  .hdr__tel-n { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .hdr__lang { margin-left: 0; }
}
@media (max-width: 599px) {
  .hdr__lang .lang__a[aria-current="true"] { display: none; }
}
/* the compact bar: the reductions the 400px block applies, from 480px, so
   logo · AUTO/BUS · EN · burger fit without touching (height untouched) */
@media (max-width: 480px) {
  .hdr__in { gap: 8px; }
  .hdr__logo { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  .hdr__logo img { height: 26px; }
  .hdr .branch { flex: 0 0 auto; padding: 2px; }
  .hdr .branch a { padding: 10px 10px; font-size: 0.8rem; }
  .hdr__lang { padding: 2px; }
  .hdr__lang .lang__a { padding: 0 7px; gap: 5px; font-size: .8rem; }
}
/* below 375px the bar holds logo · AUTO/BUS · burger only; the language
   switch is the first control inside the menu (and in the footer) */
@media (max-width: 374px) {
  .hdr__lang { display: none; }
  .hdr__burger { margin-left: auto; }
}

/* ---- enquiry form: two clearly separated groups --------------------------
   Journey, then contact — real fieldsets. 24px between columns and rows, 8px
   label to control, 48px controls, a restrained rule between the groups. */
.form__head { margin-bottom: var(--sp-8); }
.form__head .eyebrow { margin-bottom: var(--sp-2); }
/* Enquiry pages (/poptavka/, /bus/poptavka/): the form is the page (owner,
   2026-11-25: no photograph). A short title block sits straight under the
   header, so the card starts on the first screen: about 300px down at
   1440x900 and 330px on a 390px phone. */
.enq { padding-top: clamp(24px, 4vw, 56px); }
.enq__head { margin-bottom: clamp(20px, 2.6vw, 32px); }
.enq__head h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.12; }
.enq__head .lede { margin-top: 12px; }
.form__title { font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.2; }
.form__who { margin-top: var(--sp-3); font-size: .95rem; color: var(--muted); line-height: 1.55;
  overflow-wrap: anywhere; }
.form__who a { color: var(--fg); font-weight: 600; text-underline-offset: 3px; }
.form [data-ctx-note] { margin: 0 0 var(--sp-8); }
.form__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.form__group + .form__group { margin-top: var(--sp-8); padding-top: var(--sp-8);
  border-top: 1px solid var(--form-line); }
/* Floated, the legend stops being a "rendered legend" that the browser seats
   ON the fieldset's top border (which cut the rule between the groups in two);
   it becomes ordinary content, while still naming the group for assistive
   technology. The hint below clears it. */
.form__legend { float: left; width: 100%; padding: 0; font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  font-weight: 600; letter-spacing: -.012em; line-height: 1.3; }
.form__num { display: inline-grid; place-items: center; width: 30px; height: 30px;
  margin-right: 12px; border-radius: 50%; border: 1px solid var(--form-line);
  font-size: .85rem; font-weight: 600; vertical-align: 1px; }
.form__hint { clear: both; margin: 0; padding: var(--sp-2) 0 var(--sp-6); font-size: .95rem; color: var(--muted); line-height: 1.55; }
.nowrap { white-space: nowrap; }
.f label { line-height: 1.35; }
.f__hint { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.f__hint a { color: var(--fg); font-weight: 600; }
.f.bad .f__hint { display: none; }          /* the error takes its place */
.form__actions .btn--ghost { white-space: nowrap; }
.form__actions .btn { text-align: center; }
@media (max-width: 639px) {
  /* 16px stops iOS zooming into a focused field */
  .f input, .f select, .f textarea { font-size: 16px; }
  .form__actions .btn { width: 100%; }
  .form__actions .btn--ghost { white-space: normal; }
}

/* ---- "Čím vás povezeme": one row, arrows, swipe -------------------------- */
.car__pos { margin: 0 6px 0 0; align-self: center; font-size: .82rem; letter-spacing: .12em;
  color: var(--muted); white-space: nowrap; }
.car__pos b { font-weight: 600; color: var(--fg); }
.car__nav[hidden], .car__btn[hidden], .car__pos[hidden] { display: none; }
.car[data-car-ready] .car__vp { touch-action: pan-y pinch-zoom; }
/* without the script the arrows cannot work, so a row that only exists as a
   carousel shows none — and gets back a visible scrollbar so the cards past
   the edge are visibly reachable */
.car--peek:not([data-car-ready]) .car__nav,
.car--sides:not([data-car-ready]) .car__btn { display: none; }
.car--peek:not([data-car-ready]) .car__vp,
.car--sides:not([data-car-ready]) .car__vp { scrollbar-width: thin; padding-bottom: 12px; }
.car--peek:not([data-car-ready]) .car__vp::-webkit-scrollbar,
.car--sides:not([data-car-ready]) .car__vp::-webkit-scrollbar { display: block; height: 8px; }
.car--peek:not([data-car-ready]) .car__vp::-webkit-scrollbar-thumb,
.car--sides:not([data-car-ready]) .car__vp::-webkit-scrollbar-thumb { background: rgba(127, 140, 148, .5); border-radius: 4px; }
@media (max-width: 719px) {
  /* about one card at a time; the next one shows at the edge as the cue that
     the row continues (app.js clamps the last card flush right) */
  .car--peek .car__cell { flex-basis: calc(100% - 48px); }
  .car--peek .car__head { flex-wrap: wrap; row-gap: var(--sp-4); }
}

/* ---- vehicle rows: Previous at the far left, Next at the far right --------
   `.car--sides` (build.carousel sides=True): the two buttons are the outer
   columns of one grid, the card row is the middle one, so the buttons centre
   on the cards, never overlap a photo, text or link, and the row stays centred
   between them. No strip of controls above the cards. Reviews (`.car--rev`)
   and the vehicle gallery keep their own navigation. */
.car--sides { --car-side: clamp(12px, 1.6vw, 22px); }
.car__stage {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "prev vp next"; align-items: center; column-gap: var(--car-side);
}
.car__stage > .car__vp { grid-area: vp; }
.car__stage > .car__btn--prev { grid-area: prev; }
.car__stage > .car__btn--next { grid-area: next; }
/* nothing to page through (app.js hides both buttons): no empty side columns */
.car--sides.is-static .car__stage { column-gap: 0; }
/* the heading row carries no controls now; without a heading the row simply
   keeps its distance from the copy above */
.car--sides > .car__stage:first-child, .car--sides > .car__vp:first-child { margin-top: clamp(24px, 3vw, 40px); }
.car--sides .car__head > .car__pos { align-self: flex-end; margin: 0 0 6px; }
/* standing beside the cards, each arrow reads as a button of its own: on
   AUTO's light surface it gets a visible ring and a white face (BUS already
   draws its ring on the dark surface) */
body.t-auto .car--sides .car__btn { border-color: rgba(20, 51, 68, .24); background: #fff; }
body.t-auto .car--sides .car__btn:hover:not(:disabled) { border-color: rgba(20, 51, 68, .5); background: #fff; }
/* the two side columns cost ~130px of row width: below 1200px show two
   cards rather than three narrow ones */
@media (max-width: 1199px) { .car--sides { --car-n: var(--car-per-tab, 2); } }
@media (max-width: 719px)  { .car--sides { --car-n: var(--car-per-mob, 1); } }
/* where the page margin is wide enough to hold a button, the buttons sit in
   it and the cards keep the full content width, aligned with the heading */
@media (min-width: 1520px) {
  .car--sides .car__stage { margin-inline: calc(-46px - var(--car-side)); }
  .car--sides.is-static .car__stage { margin-inline: 0; }
}
/* a phone: side buttons would squeeze the single card, so the same two
   buttons move directly under the row — Previous left, Next right */
@media (max-width: 719px) {
  .car__stage {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "vp vp vp" "prev . next";
    column-gap: 0; row-gap: var(--sp-4);
  }
}

/* English sublines in the facts strip are longer than the Czech ones and wrap
   to a second line between 900 and 1023px; budget the real height there so
   the strip still lands on the first screen */
@media (min-width: 900px) and (max-width: 1023px) {
  :root:lang(en) { --facts-h: 172px; }
}

/* ---- small additions ----------------------------------------------------- */
/* English labels can be shorter than the Czech ones ("Fleet" is 39px): keep the
   44px target width that the Czech words always met by length alone */
.ftr ul a, .hdr__nav a { min-width: 44px; }
.hdr__nav a { justify-content: center; }
:lang(en) .rev__q::before { content: "\201C"; }
:lang(en) .rev__q::after { content: "\201D"; }
/* Contact and billing sit beside the address and map. */
.kgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch;
  gap: clamp(24px, 3.6vw, 56px); margin-top: clamp(28px, 3.4vw, 44px); }
.kblock { display: flex; flex-direction: column; min-width: 0;
  padding: clamp(24px, 3vw, 40px); border-radius: var(--r-md);
  background: #fff; border: 1px solid rgba(20, 51, 68, .10); --kline: rgba(20, 51, 68, .12); }
body.t-bus .kblock { background: #17394B; border-color: rgba(174, 183, 189, .22); --kline: rgba(254, 246, 242, .16); }
.kblock__h { font-size: clamp(1.3rem, 1.9vw, 1.6rem); }
.kblock__lead { margin-top: 8px; color: var(--muted); line-height: 1.55; text-wrap: pretty; }
.kblock__body { margin: clamp(20px, 2.4vw, 28px) 0 clamp(24px, 3vw, 32px);
  padding-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid var(--kline); }
.kblock__k { margin: 0; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); }
.kblock__body > * + .kblock__k { margin-top: clamp(16px, 2vw, 22px); }
.kblock__tel, .kblock__mail { margin: 2px 0 0; }
.kblock__tel a, .kblock__mail a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.kblock__tel a { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; font-variant-numeric: tabular-nums; }
.kblock__tel a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.kblock__mail a { font-size: 1.08rem; font-weight: 500; overflow-wrap: anywhere;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.kblock__act { margin-top: clamp(20px, 2.4vw, 28px); }
.kblock__addr { margin-top: 6px; font-style: normal; font-size: 1.06rem; line-height: 1.6; overflow-wrap: anywhere; }
.kblock__addr strong { font-weight: 600; }
.kblock__billing {
  padding-top: 18px; border-top: 1px solid var(--kline);
  margin-bottom: clamp(20px, 2.4vw, 28px);
}
.kblock__billing h4 { font-size: 1.08rem; }
.kblock__ids { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 6px clamp(16px, 2vw, 24px);
  margin: 12px 0 0; }
.kblock__ids > div { display: contents; }
.kblock__ids dt { font-size: .93rem; color: var(--muted); }
.kblock__ids dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
/* the foot sits at the bottom of the panel, under a hairline */
.kblock__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--kline);
  font-size: .95rem; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
/* inline, not the .arrow flex box: when the link wraps, the arrow follows its
   last word (bound by &nbsp;) instead of floating at the panel's right edge.
   The vertical padding keeps the >=24px target; it does not move the lines. */
.kblock__foot .arrow { display: inline; padding-block: 10px; }
/* inline, not inline-block: Chrome breaks before an atomic inline even after
   &nbsp;, so the arrow could still drop to a line of its own. The hover nudge
   uses relative positioning, which inline boxes honour (transforms do not). */
.kblock__foot .arrow span { position: relative; left: 0; transition: left var(--dur) var(--ease); }
.kblock__foot .arrow:hover span { transform: none; left: 4px; }
.kblock__note { margin-top: 12px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.kblock--firma .kblock__body { margin-bottom: 0; }
@media (min-width: 720px) {
  .kblock--firma .kblock__body, .kblock--firma .mapblk { display: flex; flex: 1; flex-direction: column; }
  .kblock--firma .mapblk__frame { flex: 1 0 auto; }
}
@media (max-width: 719px) {
  .kgrid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
}
/* ---- gateway: "help me choose" is a choice, not a branch ------------------
   The three help actions (header link, phone-glyph help on mobile, the help
   strip under the cards) each open the same compact choice between the AUTO
   and BUS enquiry pages. A native <details>: Enter/Space open it, Tab walks
   the two options, no script needed; app.js closes it on Escape / outside. */
.gwpick { position: relative; }
.gwpick > summary { list-style: none; cursor: pointer; }
.gwpick > summary::-webkit-details-marker { display: none; }
.gwpick > summary:focus-visible { outline: 2px solid #EEF2F4; outline-offset: 3px; border-radius: 8px; }
.gwpick__chev { margin-left: 6px; flex: 0 0 auto; transition: transform var(--dur) var(--ease); }
.gwpick[open] .gwpick__chev { transform: rotate(180deg); }
.gwpick__menu {
  position: absolute; z-index: 30; top: calc(100% + 10px); right: 0;
  width: max-content; min-width: 270px; max-width: calc(100vw - 32px);
  padding: 14px; border-radius: var(--r-md);
  background: #0D1E29; color: var(--ivory);
  border: 1px solid rgba(174, 183, 189, .28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
}
.gwpick__q { margin: 2px 6px 10px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(254, 246, 242, .72); font-weight: 600; }
.gw .gwpick__opt, .gw__utils a.gwpick__opt {
  display: grid; grid-template-columns: 64px 1fr 22px; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 10px; border-radius: 10px;
  color: var(--ivory); text-decoration: none; white-space: normal; text-align: left;
  font-size: .95rem; font-weight: 500;
}
.gwpick__opt + .gwpick__opt { margin-top: 4px; }
.gwpick__opt:hover, .gwpick__opt:focus-visible { background: rgba(254, 246, 242, .10); color: #fff; }
.gwpick__opt:focus-visible { outline: 2px solid #EEF2F4; outline-offset: 1px; }
.gwpick__b { font-family: var(--font-brand); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.gwpick__p { color: rgba(254, 246, 242, .82); }
.gwpick__opt svg { width: 18px; height: 18px; justify-self: end; opacity: .8; }
/* under the cards the choice opens in the flow, centred under its strip */
.gwpick--portal .gwpick__menu { position: static; margin: 10px auto 0; box-shadow: none;
  width: min(320px, calc(100% - 40px)); min-width: 0; }

/* ---- enquiry form: departure date & time picker (app.js initDateTime) -----
   The trigger is styled as the form's own field; the dialog uses the form's
   radii, type and brand colours — indigo on ivory/white for AUTO, ivory on the
   raised indigo surface for BUS — never the browser's blue. */
.f--dt { position: relative; }
.dt { position: relative; }
.dt__trigger {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px;
  padding: 12px 14px; font: inherit; font-size: 1rem; text-align: left; color: inherit;
  background: var(--field-bg); border: 1px solid var(--field-line); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.dt__trigger .dt__ic { flex: 0 0 auto; color: var(--fg); }
.dt__trigger > svg:last-child { margin-left: auto; flex: 0 0 auto; opacity: .7; transition: transform var(--dur) var(--ease); }
.dt__trigger[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
.dt__val { flex: 1 1 auto; min-width: 0; }
.dt__val.is-empty { color: var(--muted); }
.dt__trigger:focus-visible, .dt__trigger[aria-expanded="true"] {
  outline: 2px solid transparent; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(20, 51, 68, 0.30);
}
.f.bad .dt__trigger { border-color: #C2504F; }
body.t-bus .dt__trigger:focus-visible, body.t-bus .dt__trigger[aria-expanded="true"] {
  border-color: var(--ivory); box-shadow: 0 0 0 3px rgba(254, 246, 242, 0.55);
}

.dt__pop {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0;
  width: 336px; max-width: calc(100vw - 16px); padding: 14px;
  background: #fff; color: var(--indigo);
  border: 1px solid var(--ivory-line); border-radius: var(--r-md);
  box-shadow: 0 18px 44px rgba(11, 17, 21, .18);
  /* app.js scrolls the opened popup to its top: land it just below the
     fixed header instead of under it */
  scroll-margin-top: calc(var(--hdr-h) + 8px); scroll-margin-bottom: 8px;
}
.dt__pop[hidden] { display: none; }
body.t-bus .dt__pop { background: #17394B; color: var(--ivory); border-color: rgba(254, 246, 242, .18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45); }
.dt__head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 8px; }
.dt__month { text-align: center; font-weight: 600; font-size: 1.02rem; text-transform: capitalize; }
.dt__nav { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer; }
.dt__nav:hover:not(:disabled) { background: rgba(20, 51, 68, .07); }
body.t-bus .dt__nav:hover:not(:disabled) { background: rgba(254, 246, 242, .10); }
.dt__nav:disabled { opacity: .3; cursor: default; }
.dt__grid { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.dt__grid th { padding: 4px 0 6px; font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); text-align: center; }
.dt__grid td { padding: 0; text-align: center; }
.dt__day {
  width: 100%; aspect-ratio: 1; min-height: 36px; max-height: 42px; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: inherit;
  font: inherit; font-size: .94rem; font-variant-numeric: tabular-nums; cursor: pointer;
  /* two-digit days never wrap into stacked digits (no visible change >=300px) */
  padding: 0; white-space: nowrap;
}
.dt__day:not([aria-disabled="true"]):hover { background: rgba(20, 51, 68, .07); }
body.t-bus .dt__day:not([aria-disabled="true"]):hover { background: rgba(254, 246, 242, .10); }
.dt__day.is-today { border-color: currentColor; font-weight: 600; }
.dt__day.is-sel { background: var(--indigo); color: var(--ivory); border-color: var(--indigo); font-weight: 600; }
body.t-bus .dt__day.is-sel { background: var(--ivory); color: var(--indigo); border-color: var(--ivory); }
.dt__day[aria-disabled="true"] { opacity: .32; cursor: default; background: transparent; text-decoration: line-through;
  text-decoration-thickness: 1px; }
/* chosen earlier, past by now (a page left open overnight): still legible,
   outlined in the selection colour, struck through like any past day */
.dt__day.is-sel[aria-disabled="true"] { color: inherit; opacity: .55; }
.dt__day:focus-visible, .dt__chip:focus-visible, .dt__nav:focus-visible, .dt__done:focus-visible {
  outline: 2px solid var(--indigo); outline-offset: 1px; }
body.t-bus .dt__day:focus-visible, body.t-bus .dt__chip:focus-visible,
body.t-bus .dt__nav:focus-visible, body.t-bus .dt__done:focus-visible { outline-color: var(--ivory); }

.dt__time { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--form-line);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; }
.dt__tl { font-size: .88rem; font-weight: 600; }
/* `.dt .dt__tin`: the field sits inside the form's `.f`, whose `.f input`
   (0,1,1) would otherwise size it as a full-width form field */
.dt .dt__tin { width: 110px; justify-self: start; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 1.05rem;
  font-variant-numeric: tabular-nums; letter-spacing: .04em; color: inherit;
  background: var(--field-bg); border: 1px solid var(--field-line); border-radius: var(--r-sm); }
body.t-bus .dt__tin { color-scheme: dark; }
.dt__tin::placeholder { color: var(--muted); opacity: 1; }
.dt .dt__tin:focus { outline: 2px solid transparent; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(20, 51, 68, 0.30); }
body.t-bus .dt .dt__tin:focus { border-color: var(--ivory); box-shadow: 0 0 0 3px rgba(254, 246, 242, 0.55); }
.f .dt .dt__tin[aria-invalid="true"], body.t-bus .f .dt .dt__tin[aria-invalid="true"] { border-color: #C2504F; }
.dt__th { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); }
.dt__terr { grid-column: 1 / -1; font-size: .84rem; color: #C2504F; }
body.t-bus .dt__terr { color: #FFA9A2; }
.dt__terr:empty { display: none; }
.dt__chips { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dt__chip { min-height: 36px; border-radius: 9px; border: 1px solid var(--form-line); background: transparent;
  color: inherit; font: inherit; font-size: .88rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.dt__chip:hover { background: rgba(20, 51, 68, .07); }
body.t-bus .dt__chip:hover { background: rgba(254, 246, 242, .10); }
.dt__foot { margin-top: 12px; display: flex; justify-content: flex-end; }
.dt__done { min-height: 44px; padding: 8px 20px; border-radius: var(--r-sm); border: 0; cursor: pointer;
  font: inherit; font-weight: 600; background: var(--indigo); color: var(--ivory); }
body.t-bus .dt__done { background: var(--ivory); color: var(--indigo); }
/* a phone: centre the dialog on the field so it can use the screen width */
@media (max-width: 479px) {
  .dt__pop { left: 50%; transform: translateX(-50%); width: min(336px, calc(100vw - 16px)); padding: 12px; }
}
/* the empty "Vyberte datum a čas" / "Choose date and time" wrapped at 320px and
   made the field 78px tall; drop only the chevron, and only where it wraps */
@media (max-width: 339px) {
  .dt__trigger > svg:last-child { display: none; }
}
/* Windows High Contrast / forced colours: backgrounds are replaced, so the
   selected day takes the system highlight and today a dashed system border —
   the two never look alike, and neither depends on a brand colour. */
@media (forced-colors: active) {
  .dt__day { border-color: Canvas; }
  .dt__day.is-today { border-color: CanvasText; border-style: dashed; }
  .dt__day.is-sel, body.t-bus .dt__day.is-sel {   /* the BUS line: outrank the dark theme's fill */
    forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .dt__day[aria-disabled="true"] { color: GrayText; }
  /* forced-color-adjust: none keeps the brand ring on the selected day too;
     a system colour keeps it visible in light and dark contrast themes */
  .dt__day.is-sel:focus-visible, body.t-bus .dt__day.is-sel:focus-visible { outline-color: CanvasText; }
}

/* ---- enquiry form: dropdowns --------------------------------------------
   Where the browser supports a stylable select (`appearance: base-select`),
   the open list follows the form's look in both themes instead of the
   operating system's; the closed control is unchanged. Elsewhere the native
   select remains, as before. */
@supports (appearance: base-select) {
  .form .f select, .form .f select::picker(select) { appearance: base-select; }
  .form .f select { display: flex; align-items: center; }
  /* the same chevron the date trigger uses, instead of the default triangle */
  .form .f select::picker-icon {
    content: ""; width: 18px; height: 18px; background: currentColor; opacity: .7;
    -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat;
    transition: rotate var(--dur) var(--ease);
  }
  .form .f select { --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
  .form .f select:open::picker-icon { rotate: 180deg; }
  .form .f select::picker(select) {
    margin-top: 6px; padding: 6px; border-radius: var(--r-md);
    background: #fff; color: var(--indigo); border: 1px solid var(--ivory-line);
    box-shadow: 0 18px 44px rgba(11, 17, 21, .18);
  }
  body.t-bus .form .f select::picker(select) {
    background: #17394B; color: var(--ivory); border-color: rgba(254, 246, 242, .18);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  }
  .form .f option { padding: 10px 12px; border-radius: 9px; min-height: 44px; display: flex; align-items: center; gap: 8px; }
  .form .f option:hover, .form .f option:focus-visible { background: rgba(20, 51, 68, .07); }
  body.t-bus .form .f option:hover, body.t-bus .form .f option:focus-visible { background: rgba(254, 246, 242, .10); }
  .form .f option:checked { background: var(--indigo); color: var(--ivory); font-weight: 600; }
  body.t-bus .form .f option:checked { background: var(--ivory); color: var(--indigo); }
  /* the keyboard position in the open list is a ring in the option's own ink,
     so it shows on a plain option and on the filled, selected one alike */
  .form .f option:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
  .form .f option::checkmark { order: 2; margin-left: auto; }
}

/* ==========================================================================
   Phone subpage hero (owner, 2026-11-24): title, photo, text, buttons
   --------------------------------------------------------------------------
   Below 768px every subpage hero (.hero--page, all 56 CZ/EN pages) reads
   breadcrumb, label and title, then the photograph at full width, then the
   description and the two buttons. The two wrappers (.hero__in, .hero__body)
   are flattened with `display: contents` so their five children can be
   ordered; the markup and the tablet/desktop composition (copy over the
   full-bleed photo, 768px up) are untouched. Nothing sits on the photo here,
   so the gradient is off.
   The photo takes the room left on the first screen (small viewport height,
   browser bars shown), between min(150px, 48vw) and a 1.56:1 frame (64vw;
   --hero-cap-m lowers that cap for a panoramic line-up). The inline script
   right after each subpage hero (build.py HERO_FIT_JS, re-run by app.js) sets
   it as --hero-ph before the first paint. Text and buttons never shrink and
   nothing is clipped: when they need more than the screen, the photo grows
   just enough that the button row sits wholly under the bottom bar, which
   then carries the two actions, instead of being cut by the bar's edge.
   Without the script the CSS below approximates it (rest taken as 360px).
   Upright phones only: a phone held sideways keeps its previous hero.
   ========================================================================== */
@media (max-width: 767px) and (orientation: portrait) {
  .hero--page, .hero--page.hero--tall { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero--page > .hero__in, .hero--page .hero__body { display: contents; }
  .hero--page .hero__scrim { display: none; }
  .hero--page :is(.crumbs, .eyebrow, h1, .lede, .hero__ctas) { margin-inline: var(--gut); flex-shrink: 0; }
  .hero--page .crumbs { order: 1; margin-top: 16px; margin-bottom: 10px; }
  .hero--page .eyebrow { order: 2; margin-top: 0; margin-bottom: 8px; }
  .hero--page h1 { order: 3; margin-bottom: 0; }
  .hero--page .hero__media {
    order: 4; position: relative; inset: auto; flex: none; margin-top: 18px;
    /* no-JS fallback, same limits as the script: the floor never beats the cap,
       and --hero-floor-m raises it for a tall vehicle */
    height: var(--hero-ph, clamp(
      min(max(min(150px, 48vw), calc(var(--hero-floor-m, 0) * 100vw)), calc(var(--hero-cap-m, .64) * 100vw)),
      calc(100vh - var(--hdr-h) - 360px),
      calc(var(--hero-cap-m, .64) * 100vw)));
    -webkit-mask-image: none; mask-image: none;
  }
  .hero--page .lede { order: 5; margin-top: 16px; }
  .hero--page .hero__ctas { order: 6; margin-top: 18px; margin-bottom: 20px; }
}

/* ==========================================================================
   Phones at 150-300% zoom (CSS width below 300px). Last in the file on
   purpose: it must win over every equal-specificity rule above.
   Nothing may be wider than the screen: an overflow widens the layout
   viewport, the hero clips its copy (overflow: hidden) and the fixed sticky
   bar is laid out off-screen.
   - A hero heading is sized so its longest unbreakable unit fits the column
     ("Mercedes-Benz" is bound by typeset(): 7.2em; "Od roku 1997.": 6.04em).
   - Bound labels may break anywhere only below the width where they would
     otherwise run off the page (measured per element, 195-299px); above it
     they stay whole. Nothing here applies from 300px up.
   ========================================================================== */
@media (max-width: 299px) {
  .hero--page.hero--tall h1 { font-size: clamp(1.25rem, calc((100vw - 2 * var(--gut)) / 7.4), 2.3rem); }
  .hero--bus h1 .h1-second { white-space: normal; }
  .kblock .kblock__mail a { display: inline-block; padding-block: 8px; }
  .kblock .kblock__tel a { font-size: clamp(.75rem, 11.6vw - 11px, 1.5rem); }
  .kblock .kblock__ids { grid-template-columns: minmax(0, 1fr); }
  .factstrip .proof { grid-template-columns: minmax(0, 1fr); }
  .fare__v { white-space: normal; }
  /* enquiry form + date picker: wider fields, whole-word buttons, a picker
     whose month, weekdays and time chips no longer split mid-word */
  .form { padding: 14px 10px; }
  .form__actions .btn, .kblock .btn { padding-inline: 12px; }
  .dt__trigger .dt__ic { display: none; }
  .dt__pop { padding: 10px; }
  .dt__month { overflow-wrap: normal; font-size: .9rem; }
  .dt__grid th { overflow-wrap: normal; white-space: nowrap; font-size: .6rem; letter-spacing: 0; }
  .dt__time { grid-template-columns: minmax(0, 1fr); }
  .dt__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt__chip { white-space: nowrap; }
  /* AUTO price tables: whole words in every cell (the <=249 `main` rule is
     inherited, so the cells opt out explicitly); the table scrolls in its
     wrapper (<=374 rule) and the caption stays readable in the visible box */
  .ptable th, .ptable td { overflow-wrap: normal; }
  .ptable__r, .ptable thead th:first-child { min-width: 6.5em; }
  .ptable caption { position: sticky; left: 0; width: calc(100vw - 2 * var(--gut)); }
  /* gateway: the help action becomes its 44px icon (the label stays its
     accessible name), and both help menus fit the screen with the passenger
     counts on whole-word lines */
  .gw__utils .gw__help { gap: 0; min-width: 44px; justify-content: center; }
  .gw__utils .gw__help > span:last-child { position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .gwpick--help { position: static; }
  .gwpick--help .gwpick__menu { top: 72px; left: 8px; right: 8px; width: auto; min-width: 0;
    max-width: none; padding: 10px; }
  .gwpick--portal .gwpick__menu { width: calc(100% - 16px); max-width: none; padding: 10px; }
  .gw .gwpick__opt, .gw__utils a.gwpick__opt { grid-template-columns: minmax(0, 1fr) 18px;
    column-gap: 6px; row-gap: 0; padding-inline: 6px; }
  .gw .gwpick__opt > span:not(.sr-only) { grid-column: 1; }
  .gw .gwpick__opt svg { grid-column: 2; grid-row: 1 / span 2; }
  /* the stacked cards: the vehicle under the text (at this width it ran over
     the copy), the arrow beside it at the bottom right */
  .portal__pick .portal__pick-txt { padding-right: 0; }
  .portal__pick .portal__pick-veh { position: relative; right: auto; bottom: auto; display: block;
    width: calc(100% - 52px); margin: 10px 0 0; }
  .portal__pick--auto .portal__pick-veh { right: auto; }
  .portal__pick-go { top: auto; bottom: 14px; }
}
@media (max-width: 269px) {
  main h2, .proof strong, .proof span, main a[href^="mailto:"] { overflow-wrap: anywhere; }
}
@media (max-width: 259px) {
  .hero--page:not(.hero--tall) h1 { font-size: clamp(1.25rem, calc((100vw - 2 * var(--gut)) / 6.3), 2.05rem); }
  .hero--page :is(h1, .eyebrow, .lede, .crumbs) { overflow-wrap: anywhere; }
  /* the peeking fleet carousel left a ~60-100px text column */
  .car--peek .car__cell { flex-basis: 100%; }
  .car--peek .veh__body { padding-inline: 16px; }
  /* date picker on a 320 phone at 200%: tighter grid so two-digit days fit
     their cells (buttons stay 36px tall), weekday heads in mixed case */
  .dt__grid { border-spacing: 0; }
  .dt__day { font-size: .78rem; }
  .dt__grid th { text-transform: none; }
  .kblock { padding-inline: 14px; }
  .kblock .btn, .form__actions .btn { padding-inline: 8px; }
}
/* narrowest: one-letter weekday heads (the full name stays in aria-label) */
@media (max-width: 179px) {
  .dt__grid th { font-size: 0; }
  .dt__grid th::first-letter { font-size: .6rem; }
}
/* month and year on their own row, arrows below at both edges: the whole-word
   month plus two 44px arrows no longer fit one row */
@media (max-width: 190px) {
  .dt__head { grid-template-columns: 1fr 1fr; }
  .dt__month { grid-column: 1 / -1; order: -1; }
  .dt__nav[data-dt-next] { justify-self: end; }
}
@media (max-width: 249px) {
  main h3, .row__h, .check__t, .svcrow__h, .fare__route b { overflow-wrap: anywhere; }
  main, .ftr { overflow-wrap: anywhere; }
  main .nowrap { white-space: normal; }
}
/* Header on zoomed phones (owner 2026-11-25). Below 290 CSS px the logo, the
   AUTO/BUS switch (107px) and the menu (46px) cannot share the bar: the logo
   was clipped (0px at 160-240), and at 160-191 (a 320px phone at 200%) the
   bar needed 189/191px, so the page scrolled sideways and the fixed bar sat
   off screen. The switch leaves the header (the menu repeats it) and the logo
   shows whole at 22px. */
@media (max-width: 289px) {
  .hdr__in > .branch { display: none; }
  .hdr__logo img { height: 22px; }
}
/* only the narrowest (160-179) need a tighter header edge for the whole logo;
   above that the header keeps the page's 20px edge and lines up with the copy */
@media (max-width: 179px) {
  .hdr__in { padding-inline: 12px; }
}
/* 160-191: the footer e-mail's unbreakable domain (144px) steps down a size */
@media (max-width: 191px) {
  .ftr a[href^="mailto:"] { font-size: .8em; }
}
