/* ============================================================
   Autoškola ABC — styles
   Tokens and component rules are documented in ../BRAND.md.
   Order: fonts → tokens → base → layout → components → pages
   ============================================================ */

/* ---- Fonts: Schibsted Grotesk (OFL), variable 400–900 ---- */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ---- */
:root {
  /* colour — see BRAND.md for the contrast table */
  --red-logo: #ff0000; /* logo + non-text marks only (4.0:1 on white) */
  --red: #d80000; /* text, buttons, focus — 5.4:1 on white */
  --red-hover: #b00000;
  --ink: #16181a;
  --ink-2: #4a4f55;
  --paper: #ffffff;
  --surface: #f4f4f2;
  --line: #dcdcd8;
  --line-strong: #8a8f96; /* form borders — 3.3:1 on white */
  --tarmac: #1c1f22;
  --tarmac-2: #2a2e32;
  --on-dark: #ffffff;
  --on-dark-2: #c3c7cc;
  --line-dark: rgba(255, 255, 255, 0.16);

  /* type */
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-h1: clamp(2.375rem, 1.55rem + 3.4vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);

  /* space — 8px scale from DESIGN.md */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 80px;
  --s10: 96px;
  --s11: 128px;

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 5rem + 3vw, 128px);
  --radius: 2px; /* the only corner radius */
  --header-h: 76px;
  --focus: var(--red);

  /* weights — the only four in use */
  --fw-regular: 400;
  --fw-medium: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* status + placeholder */
  --ok: #14592a;
  --ok-bg: #e8f4ec;
  --ok-line: #1b7a3a;
  --err: #8f0000;
  --err-bg: #fdecec;
  --ph-text: #6b3d00;
  --ph-bg: #fff7e6;
  --ph-line: #a15c00;
}

/* ---- Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "kern";
  overflow-x: clip;
}
@media (min-width: 1440px) {
  body {
    font-size: 1.125rem;
  }
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: var(--fw-black);
}
h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
}
h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
p {
  margin: 0;
  text-wrap: pretty;
}
p + p {
  margin-top: 0.9em;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--red-hover);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
strong {
  font-weight: var(--fw-bold);
}
abbr[title] {
  text-decoration: none;
}
.price {
  font-variant-numeric: tabular-nums;
}
.nowrap {
  white-space: nowrap;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: var(--fw-medium);
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ---- Layout ---- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section);
}
.section--surface {
  background: var(--surface);
}
.section--dark {
  --focus: #fff;
  background: var(--tarmac);
  color: var(--on-dark);
}
.section--dark a:not(.btn) {
  color: #fff;
}
.section:not(.section--surface):not(.section--dark) + .section:not(.section--surface):not(.section--dark) {
  padding-top: 0;
}
.section--surface + .section--surface {
  padding-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.2vw, 32px);
}

/* ---- Flow: vertical rhythm for stacked blocks (no inline margins) ---- */
.flow > * + * {
  margin-top: var(--s5);
}
.flow > h2 + *,
.flow > h3 + * {
  margin-top: var(--s4);
}
.flow > * + h2 {
  margin-top: var(--s7);
}
.flow > .eyebrow + * {
  margin-top: var(--s2);
}

.section-head {
  display: grid;
  gap: var(--s4);
  max-width: 44rem;
  margin-bottom: var(--s7);
}
.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: var(--s6);
}
.section-head p {
  color: var(--ink-2);
  font-size: 1.0625em;
}
.section--dark .section-head p {
  color: var(--on-dark-2);
}
@media (max-width: 720px) {
  .section-head--split {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.lead {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38em;
}
.muted {
  color: var(--ink-2);
}
.small {
  font-size: var(--fs-small);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: var(--fw-medium);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.18s ease;
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn--primary:hover:not(:disabled) {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
  text-decoration: none;
}
.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.btn--light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn--light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  text-decoration: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: var(--fw-medium);
  text-decoration: none;
}
.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}
.link-arrow:hover {
  text-decoration: underline;
}
.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ---- Top bar ---- */
.topbar {
  --focus: #fff;
  background: var(--tarmac);
  color: var(--on-dark-2);
  font-size: var(--fs-xs);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 40px;
}
.topbar ul {
  display: flex;
  align-items: center;
  gap: var(--s5);
  list-style: none;
}
.topbar a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.topbar a:hover {
  text-decoration: underline;
  color: #fff;
}
.topbar strong {
  color: #fff;
  font-weight: var(--fw-medium);
}
@media (max-width: 760px) {
  .topbar__address,
  .topbar__mobile {
    display: none;
  }
  .topbar .wrap {
    justify-content: space-between;
  }
}

/* ---- Header / navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand:hover {
  color: var(--ink);
}
.brand img {
  width: 82px;
  height: 64px;
}
@media (max-width: 400px) {
  .brand img {
    width: 70px;
    height: 55px;
  }
}
.brand__name {
  display: block;
  font-size: 1.1875rem;
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand__sub {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  line-height: 1.3;
}
.nav__list {
  display: flex;
  align-items: stretch;
  list-style: none;
}
.nav__list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 11px;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  text-decoration: none;
  white-space: nowrap;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: -1px;
  height: 3px;
  background: transparent;
  transition: background-color 0.18s ease;
}
.nav__list a:hover {
  color: var(--red);
}
.nav__list a:hover::after {
  background: var(--line);
}
.nav__list a[aria-current="page"]::after,
.nav__list a.is-section::after {
  background: var(--red);
}
.nav__cta {
  flex: none;
}
.nav__cta .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: var(--fs-small);
}
.nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  cursor: pointer;
}
.nav__toggle-icon {
  position: relative;
  width: 18px;
  height: 12px;
}
.nav__toggle-icon::before,
.nav__toggle-icon::after,
.nav__toggle-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle-icon::before {
  top: 0;
}
.nav__toggle-icon span {
  top: 5px;
}
.nav__toggle-icon::after {
  top: 10px;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before {
  transform: translateY(5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-icon span {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after {
  transform: translateY(-5px) rotate(-45deg);
}
.nav__panel-extra {
  display: none;
}

@media (max-width: 1239px) {
  .nav__list a {
    padding: 0 8px;
  }
  .nav__list a::after {
    left: 8px;
    right: 8px;
  }
}
/* Collapsed navigation. Without JS (no .js on <html>) the links stay
   visible as a wrapped row under the brand. */
@media (max-width: 1179px) {
  .site-header .wrap {
    flex-wrap: wrap;
    gap: var(--s3);
  }
  .nav {
    order: 3;
    width: 100%;
  }
  .nav__list {
    flex-wrap: wrap;
  }
  .nav__list a {
    min-height: 44px;
  }
  .js .site-header .wrap {
    flex-wrap: nowrap;
  }
  .js .nav__toggle {
    display: inline-flex;
  }
  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(22, 24, 26, 0.12);
    display: none;
  }
  .js .nav.is-open {
    display: block;
  }
  .js .nav__list {
    flex-direction: column;
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin-inline: auto;
    padding: var(--s2) var(--gutter) 0;
  }
  .js .nav__list li + li {
    border-top: 1px solid var(--line);
  }
  .js .nav__list a {
    min-height: 56px;
    padding: 0;
    font-size: 1.125rem;
    font-weight: var(--fw-medium);
  }
  .js .nav__list a::after {
    left: -12px;
    right: auto;
    top: 14px;
    bottom: 14px;
    width: 3px;
    height: auto;
  }
  .js .nav__panel-extra {
    display: grid;
    gap: var(--s3);
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin-inline: auto;
    padding: var(--s5) var(--gutter) var(--s6);
    border-top: 1px solid var(--line);
  }
  .js .nav__panel-extra .btn {
    width: 100%;
  }
}
/* Phones: the logo carries the name, so the text lockup gives way to the
   primary CTA, which stays visible in the sticky header on every page. */
@media (max-width: 560px) {
  .brand__name,
  .brand__sub {
    display: none;
  }
  .nav__toggle {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .nav__toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
@media (max-width: 400px) {
  .site-header .wrap,
  .js .site-header .wrap {
    gap: var(--s2);
  }
  .nav__cta .btn {
    padding: 0 12px;
  }
}
.menu-open {
  overflow: hidden;
}
@media (min-width: 1180px) {
  .menu-open {
    overflow: visible;
  }
}

/* ---- Breadcrumbs ---- */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.crumbs li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--line-strong);
}
.crumbs a {
  color: var(--ink-2);
}
.crumbs a:hover {
  color: var(--red);
}

/* ---- Category plate (signature element) ---- */
.plate {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  height: 56px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.plate--sm {
  min-width: 44px;
  height: 44px;
  font-size: 1rem;
  padding: 0 6px;
}
.plate--lg {
  min-width: clamp(96px, 12vw, 136px);
  height: clamp(96px, 12vw, 136px);
  padding: 0 16px;
  border-width: 3px;
  font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem);
  letter-spacing: -0.04em;
}

/* ---- Category index ---- */
.cat-index {
  align-items: start;
  row-gap: var(--s7);
}
.cat-index__head {
  grid-column: 1 / span 4;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: var(--s4);
}
.cat-index__head p {
  color: var(--ink-2);
}
.cat-index__groups {
  grid-column: 6 / -1;
  display: grid;
  gap: var(--s7);
}
.cat-group h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--ink);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cat-group h3 span {
  font-weight: var(--fw-regular);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.cat-list {
  list-style: none;
}
.cat-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto 20px;
  align-items: center;
  column-gap: var(--s5);
  padding: var(--s4) var(--s3) var(--s4) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.cat-row:hover {
  color: var(--ink);
  background: var(--surface);
}
.cat-row:hover .plate {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.cat-row__text strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  line-height: 1.3;
}
.cat-row__text span {
  display: block;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.4;
}
.cat-row__age {
  color: var(--ink-2);
  font-size: var(--fs-small);
  white-space: nowrap;
}
.cat-row__price {
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  min-width: 7.5em;
}
.cat-row__price small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  color: var(--ink-2);
}
.cat-row > svg {
  width: 20px;
  height: 20px;
  color: var(--ink-2);
  transition: transform 0.18s ease, color 0.18s ease;
}
.cat-row:hover > svg {
  color: var(--red);
  transform: translateX(3px);
}
@media (max-width: 1023px) {
  .cat-index__head {
    grid-column: 1 / -1;
    position: static;
    max-width: 40rem;
  }
  .cat-index__groups {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .cat-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "plate text arrow"
      "plate meta arrow";
    column-gap: var(--s4);
    row-gap: 2px;
    padding-right: 0;
  }
  .cat-row .plate {
    grid-area: plate;
    align-self: start;
  }
  .cat-row__text {
    grid-area: text;
  }
  .cat-row__age {
    display: none;
  }
  .cat-row__price {
    grid-area: meta;
    text-align: left;
    min-width: 0;
    display: flex;
    gap: 6px;
    align-items: baseline;
    flex-wrap: wrap;
  }
  .cat-row__price small {
    display: inline;
  }
  .cat-row > svg {
    grid-area: arrow;
  }
}

/* ---- Hero (home) ---- */
.hero {
  display: grid;
  /* margin | text | photo, framed at its own 3:2 so nothing is cropped | margin */
  grid-template-columns:
    minmax(var(--gutter), 1fr)
    minmax(0, calc(var(--max) * 0.47))
    minmax(0, calc(var(--max) * 0.53))
    minmax(var(--gutter), 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s5);
  grid-column: 2;
  padding-block: var(--s9);
  padding-right: clamp(24px, 4vw, 64px);
}
.hero__text .lead {
  max-width: 34em;
}
.hero__media {
  grid-column: 3;
  position: relative;
  aspect-ratio: 3 / 2;
  margin: var(--s8) 0;
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero__call {
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.hero__call a {
  color: var(--ink);
  font-weight: var(--fw-bold);
}
@media (max-width: 899px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__media {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
  .hero__media img {
    border-radius: 0;
  }
  .hero__text {
    grid-column: 1;
    grid-row: 2;
    padding: var(--s7) var(--gutter) var(--s8);
  }
}

/* ---- Facts bar ---- */
/* ---- Reasons (verified facts, text-led) ---- */
.reasons {
  align-items: center;
  row-gap: var(--s7);
}
.reasons__media {
  grid-column: 1 / span 5;
  margin: 0;
}
.reasons__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.reasons__media figcaption {
  margin-top: var(--s3);
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.reasons__body {
  grid-column: 7 / -1;
}
/* spec-sheet list: term | detail rows on hairlines */
.spec-list {
  margin: var(--s6) 0 0;
  border-top: 2px solid var(--ink);
}
.spec-list > div {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: var(--s2) var(--s5);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
.spec-list dt {
  font-weight: var(--fw-bold);
  line-height: 1.4;
}
.spec-list dd {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.55;
  padding-top: 1px;
}
@media (max-width: 560px) {
  .spec-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
@media (max-width: 899px) {
  .reasons__media,
  .reasons__body {
    grid-column: 1 / -1;
  }
  .reasons__media img {
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 560px) {
  }

/* ---- Services (dark band) ---- */
.services {
  align-items: stretch;
  row-gap: var(--s7);
}
.services__media {
  grid-column: 1 / span 5;
  margin: 0;
  position: relative;
  min-height: 320px;
}
.services__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.services__body {
  grid-column: 7 / -1;
}
.service-list {
  list-style: none;
  margin-top: var(--s6);
}
.service-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s2) var(--s5);
  padding: var(--s5) 0;
  border-top: 1px solid var(--line-dark);
}
.service-list li:last-child {
  border-bottom: 1px solid var(--line-dark);
}
.service-list h3 a {
  color: #fff;
  text-decoration: none;
}
.service-list h3 a:hover {
  text-decoration: underline;
}
.service-list p {
  grid-column: 1 / -1;
  color: var(--on-dark-2);
  font-size: var(--fs-small);
  max-width: 40em;
}
.service-list .meta {
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: #fff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 899px) {
  .services__media,
  .services__body {
    grid-column: 1 / -1;
  }
  .services__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 480px) {
  .service-list li {
    grid-template-columns: 1fr;
  }
}

/* ---- Photo figures / fleet ---- */
.fig {
  margin: 0;
}
.fig__img {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.fig__img--4x3 {
  aspect-ratio: 4 / 3;
}
.fig__img > picture {
  width: 100%;
  height: 100%;
}
.fig__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
a:hover .fig__img img,
.fig:hover .fig__img img {
  transform: scale(1.03);
}
.fig figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px var(--s3);
  padding-top: var(--s3);
  font-size: var(--fs-small);
}
.fig figcaption strong {
  font-weight: var(--fw-bold);
  color: var(--ink);
}
.fig figcaption span {
  color: var(--ink-2);
}

.fleet-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s6) clamp(16px, 2.2vw, 32px);
}
.fleet-strip .fig__img {
  aspect-ratio: 3 / 2;
}
@media (max-width: 899px) {
  .fleet-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s7) clamp(16px, 2.2vw, 32px);
}
.fleet-grid .fig {
  grid-column: span 4;
}
.fleet-grid .fig--half {
  grid-column: span 6;
}
.fleet-grid .fig__img {
  aspect-ratio: 3 / 2;
}
@media (max-width: 899px) {
  .fleet-grid .fig,
  .fleet-grid .fig--half {
    grid-column: span 6;
  }
}
@media (max-width: 560px) {
  .fleet-grid .fig,
  .fleet-grid .fig--half {
    grid-column: 1 / -1;
  }
}
/* a vehicle alone in its row */
.fleet-grid .fig--lead {
  grid-column: span 8;
}
@media (max-width: 899px) {
  .fleet-grid .fig--lead {
    grid-column: 1 / -1;
  }
}
/* 3:2 photo beside a square one: 3fr + 2fr makes both frames exactly the same height */
.fleet-grid--pair {
  grid-template-columns: 3fr 2fr;
}
.fleet-grid--pair .fig {
  grid-column: auto;
}
.fleet-grid .fig__img--square {
  aspect-ratio: 1;
}
@media (max-width: 560px) {
  .fleet-grid--pair {
    grid-template-columns: 1fr;
  }
}
.fleet-group + .fleet-group {
  margin-top: var(--s9);
}
.fleet-group > h2 {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s5);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
}

/* ---- Price ledger ---- */
.ledger {
  width: 100%;
  border-collapse: collapse;
}
.ledger caption {
  text-align: left;
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--ink);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ledger caption span {
  display: block;
  margin-top: 2px;
  font-weight: var(--fw-regular);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.ledger th,
.ledger td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}
.ledger th {
  font-weight: var(--fw-medium);
  padding-right: var(--s5);
}
.ledger th small {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  color: var(--ink-2);
  line-height: 1.4;
  margin-top: 2px;
}
.ledger td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: var(--fw-bold);
  font-size: 1.125rem;
  white-space: nowrap;
}
.ledger td.ask {
  font-weight: var(--fw-regular);
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.ledger + p {
  margin-top: var(--s4);
}
.ledger + .ledger {
  margin-top: var(--s7);
}
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s8) clamp(24px, 4vw, 64px);
  align-items: start;
}
.ledger-grid .ledger + .ledger {
  margin-top: 0;
}
@media (max-width: 899px) {
  .ledger-grid {
    grid-template-columns: 1fr;
    gap: var(--s7);
  }
}
.note {
  display: flex;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-left: 3px solid var(--ink);
  background: var(--surface);
  font-size: var(--fs-small);
  color: var(--ink);
}
.section--surface .note {
  background: var(--paper);
}

/* ---- Steps (application) ---- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s6) clamp(16px, 2.2vw, 32px);
  list-style: none;
  counter-reset: step;
}
/* lane marking between the step numbers */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 68px;
  right: calc(-1 * clamp(16px, 2.2vw, 32px) + 12px);
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 18px, transparent 18px 30px);
}
.steps li {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--s3);
}
.steps .plate {
  justify-self: start;
  margin-bottom: var(--s3);
}
.steps p {
  color: var(--ink-2);
  font-size: var(--fs-small);
}
.steps p a {
  font-weight: var(--fw-medium);
}
@media (max-width: 899px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
  .steps li:not(:last-child)::after {
    top: 68px;
    bottom: calc(-1 * var(--s6) + 12px);
    left: 26px;
    right: auto;
    width: 3px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 18px, transparent 18px 30px);
  }
  .steps li {
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: var(--s5);
  }
  .steps .plate {
    grid-row: span 3;
    margin: 0;
  }
}

/* ---- CTA band ---- */
.cta-band {
  --focus: #fff;
  background: var(--tarmac-2);
  color: #fff;
}
.cta-band .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s6) var(--s7);
  padding-block: clamp(48px, 6vw, 80px);
}
.cta-band h2 {
  font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.375rem);
}
.cta-band p {
  margin-top: var(--s3);
  color: var(--on-dark-2);
  max-width: 40em;
}
.cta-band p a {
  color: #fff;
  font-weight: var(--fw-medium);
}
@media (max-width: 899px) {
  .cta-band .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---- Contact ---- */
.contact {
  row-gap: var(--s7);
  align-items: start;
}
.contact__info {
  grid-column: 1 / span 5;
  display: grid;
  gap: var(--s6);
}
.contact__form {
  grid-column: 7 / -1;
}
@media (max-width: 1023px) {
  .contact__info,
  .contact__form {
    grid-column: 1 / -1;
  }
}
.contact-list {
  display: grid;
  gap: var(--s5);
  margin: 0;
}
.contact-list div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.contact-list dt {
  color: var(--ink-2);
  font-size: var(--fs-small);
  padding-top: 2px;
}
.contact-list dd {
  margin: 0;
  font-weight: var(--fw-medium);
}
.contact-list dd a {
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  padding-block: 2px;
}
.contact-list dd a:hover {
  color: var(--red);
  text-decoration: underline;
}
.contact-list dd .small {
  font-weight: var(--fw-regular);
  color: var(--ink-2);
}
@media (max-width: 420px) {
  .contact-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
.hours {
  width: 100%;
  max-width: 22rem;
  border-collapse: collapse;
}
.hours th,
.hours td {
  padding: 6px 0;
  text-align: left;
  font-weight: var(--fw-regular);
}
.hours td {
  text-align: right;
}
.hours tr.is-today th,
.hours tr.is-today td {
  font-weight: var(--fw-bold);
  color: var(--ink);
}
.site-footer .hours tr.is-today th,
.site-footer .hours tr.is-today td {
  color: #fff;
}

/* ---- Forms ---- */
.form-panel {
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface);
  border-radius: var(--radius);
}
.section--surface .form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
}
.form-panel h2,
.form-panel h3 {
  margin-bottom: var(--s3);
}
.form-panel > p {
  color: var(--ink-2);
  margin-bottom: var(--s6);
}
.form {
  display: grid;
  gap: var(--s5);
}
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--s5);
}
@media (max-width: 640px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}
.field {
  display: grid;
  align-content: start;
  gap: 6px;
}
.field label {
  font-weight: var(--fw-medium);
  font-size: var(--fs-small);
}
.field .opt {
  font-weight: var(--fw-regular);
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
.field textarea {
  min-height: 132px;
  resize: vertical;
}
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2316181a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 1px;
  border-color: var(--ink);
}
.field .hint {
  font-size: var(--fs-xs);
  color: var(--ink-2);
}
.field .error {
  display: none;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--red);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--red);
  border-width: 2px;
}
.field.is-invalid .error {
  display: block;
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4) var(--s5);
}
.form__foot p {
  font-size: var(--fs-xs);
  color: var(--ink-2);
  flex: 1 1 16rem;
}
.form-status {
  font-weight: var(--fw-medium);
}
.form-status:empty {
  display: none;
}
.form-status.is-ok {
  padding: var(--s4);
  border-left: 3px solid var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok);
}
.form-status.is-error {
  padding: var(--s4);
  border-left: 3px solid var(--red);
  background: var(--err-bg);
  color: var(--err);
}
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Map (click to load) ---- */
.map {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.map + p {
  margin-top: var(--s3);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s4);
  padding: var(--s5);
  text-align: center;
}
.map__placeholder p {
  font-size: var(--fs-small);
  color: var(--ink-2);
  max-width: 26rem;
}

/* ---- Inner page head ---- */
.page-head {
  padding-block: clamp(40px, 5vw, 72px) clamp(48px, 6vw, 88px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-head .crumbs {
  margin-bottom: var(--s6);
}
.page-head h1 {
  max-width: 18em;
}
.page-head .lead {
  margin-top: var(--s5);
}
.page-head--media .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s7) clamp(24px, 4vw, 64px);
  align-items: end;
}
.page-head--media .crumbs {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.page-head__media {
  margin: 0;
}
.page-head__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 899px) {
  .page-head--media .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---- Category page ---- */
.cat-head .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s5) clamp(24px, 3vw, 48px);
  align-items: start;
}
.cat-head .crumbs {
  grid-column: 1 / -1;
  margin-bottom: var(--s3);
}
.cat-head .btn-row {
  margin-top: var(--s5);
}
.cat-head .plate--lg {
  justify-self: start;
}
.cat-head__text {
  display: grid;
  gap: var(--s4);
}
.cat-head__text .lead {
  margin: 0;
}
@media (max-width: 560px) {
  .cat-head .wrap {
    grid-template-columns: 1fr;
  }
}
.keyfacts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: var(--s6) 0 0;
  border-top: 1px solid var(--line);
}
.keyfacts div {
  padding: var(--s4) var(--s4) 0 0;
}
.keyfacts div + div {
  padding-left: var(--s4);
  border-left: 1px solid var(--line);
}
.keyfacts dt {
  font-size: var(--fs-xs);
  color: var(--ink-2);
}
.keyfacts dd small {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  line-height: 1.4;
  color: var(--ink-2);
}
.keyfacts dd {
  margin: 2px 0 0;
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
@media (max-width: 720px) {
  .keyfacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .keyfacts div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .keyfacts div:nth-child(n + 3) {
    margin-top: var(--s4);
    border-top: 1px solid var(--line);
  }
}

.article {
  align-items: start;
  row-gap: var(--s8);
}
.article__main {
  grid-column: 1 / span 8;
  display: grid;
  gap: var(--s9);
  min-width: 0;
}
.article__aside {
  grid-column: 10 / -1;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
@media (max-width: 1023px) {
  .article__main,
  .article__aside {
    grid-column: 1 / -1;
  }
  .article__aside {
    position: static;
  }
  /* the CTA row in the page head replaces the aside below 1024px */
  .article__aside {
    display: none;
  }
}
.block {
  display: grid;
  gap: var(--s5);
  min-width: 0;
}
.block > h2,
.block-title {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}
.block > h3 {
  margin-top: var(--s3);
}
.prose {
  max-width: 44em;
}
.prose ul,
.prose ol,
ul.checks {
  padding-left: 1.25em;
}
.prose li + li,
ul.checks li + li {
  margin-top: 0.5em;
}
.prose li::marker,
ul.checks li::marker {
  color: var(--red);
}
.prose h3 {
  margin: 1.5em 0 0.5em;
}
.prose > h2 {
  margin-bottom: var(--s4);
}
.prose > * + h2 {
  margin-top: var(--s7);
}
.prose p + ul,
.prose p + ol {
  margin-top: 0.75em;
}
.prose ul + p,
.prose ol + p {
  margin-top: 0.9em;
}

details.more {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
details.more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 52px;
  padding: var(--s3) 0;
  font-weight: var(--fw-medium);
  cursor: pointer;
  list-style: none;
}
details.more summary::-webkit-details-marker {
  display: none;
}
details.more summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
details.more[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}
details.more summary:hover {
  color: var(--red);
}
details.more > div {
  padding: 0 0 var(--s5);
  color: var(--ink-2);
  font-size: var(--fs-small);
}
details.more > div ol,
details.more > div ul {
  padding-left: 1.4em;
}
details.more > div li + li {
  margin-top: 0.35em;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.hours-table caption {
  text-align: left;
  font-weight: var(--fw-bold);
  font-size: 1rem;
  padding-bottom: var(--s3);
}
.hours-table th,
.hours-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: var(--fw-regular);
}
.hours-table thead th {
  font-size: var(--fs-xs);
  color: var(--ink-2);
  font-weight: var(--fw-medium);
  border-bottom: 2px solid var(--ink);
  vertical-align: bottom;
}
.hours-table td.num,
.hours-table th.num {
  text-align: right;
  padding-right: 0;
  padding-left: 12px;
  white-space: nowrap;
}
.hours-table td.num {
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}
.hours-table tfoot th,
.hours-table tfoot td {
  font-weight: var(--fw-bold);
  border-bottom: 0;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll:focus-visible {
  outline-offset: 4px;
}
.hours-pair {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6);
}
@media (max-width: 640px) {
  .hours-pair {
    grid-template-columns: 1fr;
  }
}

.aside-card {
  display: grid;
  gap: var(--s4);
  padding: var(--s5);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--paper);
}
.aside-card h2 {
  font-size: 1.125rem;
}
.aside-card .ledger th,
.aside-card .ledger td {
  padding: 10px 0;
}
.aside-card .btn {
  width: 100%;
}
.aside-card .call {
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.aside-card .call a {
  color: var(--ink);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}


/* ---- Hub (vycvik) ---- */
.hub-group + .hub-group {
  margin-top: var(--s9);
}
.hub-group > h2 {
  margin-bottom: var(--s5);
}
.hub-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
  list-style: none;
  border-top: 2px solid var(--ink);
}
.hub-list .cat-row {
  grid-template-columns: auto minmax(0, 1fr) auto 20px;
}
.hub-list .cat-row__age {
  display: none;
}
@media (max-width: 899px) {
  .hub-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .hub-list .cat-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

/* ---- Info split (text + side) ---- */
.split {
  align-items: start;
  row-gap: var(--s7);
}
.split__main {
  grid-column: 1 / span 7;
  min-width: 0;
}
.split__side {
  grid-column: 9 / -1;
  min-width: 0;
}
@media (max-width: 1023px) {
  .split__main,
  .split__side {
    grid-column: 1 / -1;
  }
}

.doc-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.doc-list li {
  border-bottom: 1px solid var(--line);
}
.doc-list a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) 0;
  color: var(--ink);
  text-decoration: none;
}
.doc-list a:hover {
  color: var(--ink);
  background: var(--surface);
}
.doc-list a:hover strong {
  color: var(--red);
  text-decoration: underline;
}
.doc-list .doc-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.6875rem;
  font-weight: var(--fw-black);
  letter-spacing: 0.02em;
}
.doc-list strong {
  display: block;
  font-weight: var(--fw-bold);
}
.doc-list span.muted {
  display: block;
  font-size: var(--fs-small);
}
.doc-list .size {
  font-size: var(--fs-xs);
  color: var(--ink-2);
  white-space: nowrap;
}

.training-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s7) clamp(24px, 3vw, 48px);
}
.training-cols > div {
  display: grid;
  align-content: start;
  gap: var(--s3);
  padding-top: var(--s4);
  border-top: 2px solid var(--ink);
}
.training-cols p {
  color: var(--ink-2);
  font-size: var(--fs-small);
}
.training-cols .meta {
  font-weight: var(--fw-bold);
}
@media (max-width: 899px) {
  .training-cols {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
}

/* ---- Gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(12px, 1.6vw, 24px);
  list-style: none;
}
.gallery li {
  grid-column: span 4;
}
.gallery li.g-wide {
  grid-column: span 8;
  grid-row: span 2;
}
.gallery li.g-wide.g-right {
  grid-column: 5 / span 8;
}
.gallery a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.gallery .fig__img {
  aspect-ratio: 3 / 2;
}
.gallery li.g-wide a {
  height: 100%;
}
.gallery li.g-wide .fig {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.gallery li.g-wide .fig__img {
  position: relative;
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}
/* keep the photo's intrinsic height out of the row sizing */
.gallery li.g-wide .fig__img img {
  position: absolute;
  inset: 0;
}
@media (max-width: 899px) {
  .gallery li,
  .gallery li.g-wide,
  .gallery li.g-wide.g-right {
    grid-column: span 6;
    grid-row: auto;
  }
  .gallery li.g-wide .fig__img {
    flex: none;
    aspect-ratio: 3 / 2;
  }
  .gallery li.g-wide .fig__img img {
    position: static;
  }
}
@media (max-width: 560px) {
  .gallery li,
  .gallery li.g-wide,
  .gallery li.g-wide.g-right {
    grid-column: 1 / -1;
  }
}

.lightbox {
  width: min(1200px, 100vw - 32px);
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
@keyframes lightbox-in {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open],
  .lightbox[open]::backdrop {
    animation: lightbox-in 0.15s ease-out;
  }
}
.lightbox::backdrop {
  background: rgba(10, 11, 12, 0.92);
}
.lightbox figure {
  margin: 0;
  display: grid;
  gap: var(--s3);
}
.lightbox img {
  width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
}
.lightbox figcaption {
  font-size: var(--fs-small);
  color: var(--on-dark-2);
}
.lightbox__bar {
  display: flex;
  justify-content: flex-end;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.lightbox__bar button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  cursor: pointer;
}
.lightbox__bar button:hover {
  background: #fff;
  color: var(--ink);
}
.lightbox__bar button:focus-visible {
  outline-color: #fff;
}

/* ---- Placeholder (content to be supplied / verified) ---- */
.ph {
  display: inline-block;
  padding: 1px 8px;
  border: 1.5px dashed var(--ph-line);
  border-radius: var(--radius);
  background: var(--ph-bg);
  color: var(--ph-text);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  line-height: 1.5;
}
.ph::before {
  content: "Doplnit / ověřit: ";
  font-weight: var(--fw-bold);
}
div.ph,
p.ph {
  display: block;
  padding: var(--s3) var(--s4);
}

/* ---- Footer ---- */
.site-footer {
  --focus: #fff;
  border-top: 1px solid var(--line-dark);
  background: var(--tarmac);
  color: var(--on-dark-2);
  font-size: var(--fs-small);
}
.site-footer a {
  color: #fff;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: var(--s7) clamp(24px, 3vw, 48px);
  padding-block: var(--s9) var(--s8);
}
.footer-brand {
  display: grid;
  align-content: start;
  gap: var(--s5);
}
.footer-brand img {
  width: 132px;
  height: auto;
}
.footer-brand address {
  font-style: normal;
  line-height: 1.7;
}
.footer-brand address strong {
  color: #fff;
}
.site-footer h2 {
  margin-bottom: var(--s4);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-links {
  list-style: none;
}
@media (max-width: 560px) {
  .footer-links--cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s5);
  }
}
.site-footer ul + h2 {
  margin-top: var(--s6);
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}
.footer-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: 8px;
  list-style: none;
}
.footer-cats a {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius);
  font-weight: var(--fw-bold);
}
.footer-cats a:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.site-footer .hours {
  max-width: 16rem;
}
.site-footer .hours th,
.site-footer .hours td {
  padding: 3px 0;
}
.footer-bottom {
  border-top: 1px solid var(--line-dark);
}
.footer-bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s3) var(--s6);
  padding-block: var(--s5);
  font-size: var(--fs-xs);
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  list-style: none;
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 1023px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .footer-main {
    grid-template-columns: 1fr;
    padding-block: var(--s8) var(--s7);
  }
}

/* ---- 404 ---- */
.notfound {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 40px - var(--header-h));
  padding-block: clamp(64px, 8vw, 128px);
}
.notfound .lead {
  margin: var(--s4) 0 var(--s6);
}
.notfound .plate {
  margin-bottom: var(--s6);
}

/* ---- Reveal (JS only, motion-safe) ---- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---- Print ---- */
@media print {
  .topbar,
  .site-header,
  .site-footer,
  .cta-band,
  .contact__form,
  .map {
    display: none !important;
  }
  body {
    font-size: 11pt;
  }
  .section {
    padding-block: 16pt;
  }
}
