/* ==========================================================================
   CarPoint — Stacja Kontroli Pojazdów, Katowice
   Design system + components
   --------------------------------------------------------------------------
   Themes:  [data-theme="light"] (default) | "dark" | "hc" (high contrast)
   All colour pairs documented in design-system.html are verified against
   WCAG 2.1 (AA minimum, AAA wherever achievable).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens — shared scale
   -------------------------------------------------------------------------- */
:root {
  /* Typography ---------------------------------------------------------- */
  --font-display: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: clamp(1.0625rem, 0.99rem + 0.35vw, 1.1875rem);
  --fs-xl: clamp(1.1875rem, 1.09rem + 0.48vw, 1.4375rem);
  --fs-2xl: clamp(1.4375rem, 1.26rem + 0.88vw, 1.9375rem);
  --fs-3xl: clamp(1.75rem, 1.42rem + 1.65vw, 2.625rem);
  --fs-4xl: clamp(2.125rem, 1.6rem + 2.6vw, 3.5rem);
  --fs-5xl: clamp(2.375rem, 1.62rem + 3.6vw, 3.875rem);

  --lh-tight: 1.06;
  --lh-heading: 1.14;
  --lh-snug: 1.35;
  --lh-body: 1.65;

  --tr-tight: -0.02em;
  --tr-tighter: -0.032em;
  --tr-wide: 0.08em;

  /* Spacing ------------------------------------------------------------- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  --section-y: clamp(3.25rem, 5.5vw, 6rem);
  --section-y-lg: clamp(4rem, 7vw, 7.5rem);

  /* Layout -------------------------------------------------------------- */
  --container: 1220px;
  --container-narrow: 820px;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);
  --header-h: 68px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Motion -------------------------------------------------------------- */
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 520ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 62rem) {
  :root {
    --header-h: 80px;
  }
}

/* --------------------------------------------------------------------------
   2. Theme: Light (default)
   -------------------------------------------------------------------------- */
:root,
[data-theme="light"] {
  color-scheme: light;

  --bg: #ffffff;
  --bg-subtle: #f6f7f9;
  --bg-elevated: #ffffff;
  --bg-inset: #eef0f3;
  --bg-deep: #14161a;

  --border: #dce0e6; /* decorative dividers and card edges */
  --border-strong: #7f8791; /* 3.6:1 on white — WCAG 1.4.11 for inputs & controls */

  --text: #14161a; /* 18.1:1 on --bg — AAA */
  --text-muted: #4c545e; /* 7.7:1  on --bg — AAA */
  --text-subtle: #666e78; /* 5.2:1  on --bg — AA  */
  --text-invert: #ffffff;

  --brand: #ef4d35; /* logo red — decorative and large text only (3.6:1) */
  --brand-on-dark: #ff7a5c; /* 7.5:1 on the hero scrim */
  --brand-strong: #c4321e; /* 5.5:1 with white text — AA  */
  --brand-deep: #a82713; /* 7.1:1 on white — AAA */
  --brand-tint: #fef1ee;
  --brand-tint-2: #fbdcd4;
  --on-brand: #ffffff;

  --link: #a82713;
  --link-hover: #7d1b0c;

  --success: #1c6b3f;
  --focus: #a82713;
  --focus-contrast: #ffffff;

  --shadow-sm: 0 1px 2px rgba(16, 18, 22, 0.06),
    0 1px 3px rgba(16, 18, 22, 0.07);
  --shadow-md: 0 4px 14px rgba(16, 18, 22, 0.08),
    0 2px 4px rgba(16, 18, 22, 0.05);
  --shadow-lg: 0 22px 48px -16px rgba(16, 18, 22, 0.24);
  --scrim: linear-gradient(
    100deg,
    rgba(9, 10, 12, 0.94) 0%,
    rgba(9, 10, 12, 0.86) 38%,
    rgba(9, 10, 12, 0.52) 68%,
    rgba(9, 10, 12, 0.3) 100%
  );
  --card-hover-lift: -4px;
}

/* --------------------------------------------------------------------------
   3. Theme: Dark
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0e0f11;
  --bg-subtle: #15171a;
  --bg-elevated: #191c20;
  --bg-inset: #21252a;
  --bg-deep: #050607;

  --border: #30353c;
  --border-strong: #5c6673; /* 3.2:1 on --bg — WCAG 1.4.11 */

  --text: #f4f6f8; /* 17.7:1 on --bg — AAA */
  --text-muted: #b4bcc5; /* 10.0:1 on --bg — AAA */
  --text-subtle: #8e969f; /* 6.4:1  on --bg — AA  */
  --text-invert: #0e0f11;

  --brand: #ff7a5c; /* 7.5:1 on --bg — AAA */
  --brand-on-dark: #ff7a5c;
  --brand-strong: #c93a22; /* 5.1:1 with white text — AA */
  --brand-deep: #ff9a80; /* 9.3:1 on --bg — AAA */
  --brand-tint: #2b1a15;
  --brand-tint-2: #3d221a;
  --on-brand: #ffffff;

  --link: #ff9a80;
  --link-hover: #ffb9a3;

  --success: #6ee7a8;
  --focus: #ff7a5c;
  --focus-contrast: #ffffff;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 56px -18px rgba(0, 0, 0, 0.8);
  --scrim: linear-gradient(
    100deg,
    rgba(4, 5, 6, 0.96) 0%,
    rgba(4, 5, 6, 0.88) 38%,
    rgba(4, 5, 6, 0.6) 68%,
    rgba(4, 5, 6, 0.45) 100%
  );
  --card-hover-lift: -4px;
}

/* --------------------------------------------------------------------------
   4. Theme: High contrast
   Flat black surfaces, 2px white borders, yellow accents. No shadows,
   no gradients, no transparency — every boundary is a hard line.
   -------------------------------------------------------------------------- */
[data-theme="hc"] {
  color-scheme: dark;

  --bg: #000000;
  --bg-subtle: #000000;
  --bg-elevated: #000000;
  --bg-inset: #0a0a0a;
  --bg-deep: #000000;

  --border: #ffffff;
  --border-strong: #ffffff;

  --text: #ffffff; /* 21.0:1 — AAA */
  --text-muted: #f0f0f0; /* 18.4:1 — AAA */
  --text-subtle: #d8d8d8; /* 14.7:1 — AAA */
  --text-invert: #000000;

  --brand: #ffd400; /* 14.7:1 on black — AAA */
  --brand-on-dark: #ffd400;
  --brand-strong: #ffd400;
  --brand-deep: #ffe566;
  --brand-tint: #000000;
  --brand-tint-2: #1a1700;
  --on-brand: #000000;

  --link: #ffd400;
  --link-hover: #ffe566;

  --success: #7dffb0;
  --focus: #ffd400;
  --focus-contrast: #ffd400;

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --scrim: none;
  --card-hover-lift: 0;

  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-xl: 2px;
}

/* --------------------------------------------------------------------------
   5. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

/* Class-based `display` rules outrank the user-agent `[hidden]` default, so
   state it explicitly. Without this, hidden form errors and status messages
   stay visible. */
[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-tighter);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
}

h2 {
  font-size: var(--fs-3xl);
}

h3 {
  font-size: var(--fs-xl);
  letter-spacing: var(--tr-tight);
}

h4 {
  font-size: var(--fs-lg);
  letter-spacing: var(--tr-tight);
}

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: 600;
}

/* Numeric alignment for prices and phone numbers */
.tnum,
.price,
time {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

::selection {
  background: var(--brand-strong);
  color: var(--on-brand);
}

/* --------------------------------------------------------------------------
   6. Focus, skip link, screen-reader utilities
   -------------------------------------------------------------------------- */
:focus {
  outline: none;
}

/* Single focus treatment site-wide: a 3px ring with a 2px gap so the
   indicator reads on light, dark and photographic surfaces alike. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* On dark surfaces the ring swaps to the light counterpart so it never
   disappears into the background. */
.hero :focus-visible,
.section--deep :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--focus-contrast);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--brand-strong);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute !important;
  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;
}

/* --------------------------------------------------------------------------
   7. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section-lg {
  padding-block: var(--section-y-lg);
}

.section--subtle {
  background-color: var(--bg-subtle);
}

.section--inset {
  background-color: var(--bg-inset);
}

.section--deep {
  background-color: var(--bg-deep);
  color: #ffffff;
}

.grid {
  display: grid;
  gap: var(--sp-5);
}

/* Grid and flex children default to `min-width: auto`, which lets a wide
   descendant (a nowrap price, a long URL) push a track past the viewport.
   Every layout container opts out. */
.split > *,
.cards > *,
.post-grid > *,
.station-grid > *,
.steps > *,
.service-detail__cols > *,
.service-detail__head > *,
.gallery > *,
.trust-strip__grid > *,
.cta-band__inner > *,
.site-footer__grid > *,
.field-row > * {
  min-width: 0;
}

.stack > * + * {
  margin-top: var(--sp-4);
}

.flow > * + * {
  margin-top: var(--sp-5);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

.text-center {
  text-align: center;
}

/* Section heading block ------------------------------------------------- */
.section-head {
  max-width: 46rem;
  margin-bottom: var(--sp-6);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: var(--sp-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.section-head--center .eyebrow::before {
  display: none;
}

.lede {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Brand chevron motif --------------------------------------------------- */
.chevrons {
  display: inline-flex;
  gap: 3px;
  color: var(--brand);
}

.chevrons i {
  display: block;
  width: 10px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%);
  opacity: 0.35;
}

.chevrons i:nth-child(2) {
  opacity: 0.65;
}

.chevrons i:nth-child(3) {
  opacity: 1;
}

.rule-chevrons {
  display: flex;
  justify-content: center;
  padding-block: var(--sp-2);
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-strong);
  --btn-fg: var(--on-brand);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: var(--sp-3) var(--sp-5);
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.btn:hover {
  --btn-bg: var(--link-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex: none;
}

/* Variants -------------------------------------------------------------- */
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
}

.btn--outline:hover {
  --btn-bg: var(--bg-inset);
  --btn-fg: var(--text);
  --btn-border: var(--text);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--brand-deep);
  --btn-border: transparent;
  padding-inline: var(--sp-2);
}

.btn--ghost:hover {
  --btn-bg: var(--brand-tint);
  --btn-fg: var(--link-hover);
}

.btn--on-dark {
  --btn-bg: rgba(255, 255, 255, 0.1);
  --btn-fg: #ffffff;
  --btn-border: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}

.btn--on-dark:hover {
  --btn-bg: #ffffff;
  --btn-fg: #14161a;
  --btn-border: #ffffff;
}

.btn--light {
  --btn-bg: #ffffff;
  --btn-fg: #14161a;
  --btn-border: #ffffff;
}

.btn--light:hover {
  --btn-bg: #edeff2;
  --btn-fg: #14161a;
}

.btn--sm {
  min-height: 40px;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
}

.btn--lg {
  min-height: 56px;
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-lg);
}

.btn--block {
  width: 100%;
}

.btn--phone {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* Link with arrow ------------------------------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.link-arrow:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

.link-arrow svg {
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* Text links inside prose get a visible underline everywhere. */
.prose a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  border-radius: 2px;
}

.prose a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

/* --------------------------------------------------------------------------
   9. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

/* Brand accent line ----------------------------------------------------- */
.brand-line {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--brand) 0%,
    var(--brand) 34%,
    #d9dde3 34%,
    #d9dde3 66%,
    var(--bg-deep) 66%,
    var(--bg-deep) 100%
  );
}

[data-theme="dark"] .brand-line {
  background: linear-gradient(
    90deg,
    var(--brand) 0%,
    var(--brand) 34%,
    #4a525c 34%,
    #4a525c 66%,
    #f4f6f8 66%,
    #f4f6f8 100%
  );
}

[data-theme="hc"] .brand-line {
  height: 6px;
  background: #ffd400;
}

/* Logo ------------------------------------------------------------------ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: inherit;
  flex: none;
  padding-block: var(--sp-2);
  border-radius: var(--radius-sm);
}

.brand__logo {
  height: 38px;
  width: auto;
}

.brand__logo--light {
  display: none;
}

[data-theme="dark"] .brand__logo--dark,
[data-theme="hc"] .brand__logo--dark {
  display: none;
}

[data-theme="dark"] .brand__logo--light,
[data-theme="hc"] .brand__logo--light {
  display: block;
}

[data-theme="hc"] .brand__logo {
  height: 42px;
}

.brand__flag {
  height: 26px;
  width: auto;
  border-radius: 2px;
  flex: none;
}

.brand__flag-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
}

@media (max-width: 40rem) {
  .brand__flag-link {
    display: none;
  }
}

/* The header phone collapses to an icon on narrower viewports. */
.header-phone__text {
  display: none;
}

@media (min-width: 74rem) {
  .header-phone__text {
    display: inline;
  }
}

@media (max-width: 30rem) {
  .header-phone {
    display: none;
  }

  /* At 320 px the logo, theme switcher and menu button are all that fit;
     Facebook and the phone number stay reachable from the menu panel. */
  .header-social {
    display: none;
  }

  .brand__logo {
    height: 30px;
  }

  .theme-btn {
    padding: var(--sp-1) var(--sp-2);
  }
}

/* Primary navigation ---------------------------------------------------- */
.nav {
  margin-inline-start: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-3);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.nav__link:hover {
  color: var(--brand-deep);
  background-color: var(--bg-subtle);
}

.nav__link[aria-current="page"] {
  color: var(--brand-deep);
  font-weight: 700;
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: 2px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
}

[data-theme="hc"] .nav__link[aria-current="page"] {
  background: #ffd400;
  color: #000000;
}

[data-theme="hc"] .nav__link[aria-current="page"]::after {
  display: none;
}

/* Header actions -------------------------------------------------------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: none;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.icon-link:hover {
  color: var(--brand-deep);
  background-color: var(--bg-subtle);
  border-color: var(--border);
}

[data-theme="hc"] .icon-link {
  border-color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. Theme switcher (button + disclosure panel with real radio inputs)
   -------------------------------------------------------------------------- */
.theme-switch {
  position: relative;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-2) var(--sp-3);
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.theme-btn:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text);
}

.theme-btn__label {
  display: none;
}

@media (min-width: 78rem) {
  .theme-btn__label {
    display: inline;
  }
}

/* Only the icon matching the active theme is painted. */
.theme-btn__icon {
  display: none;
}

[data-theme="light"] .theme-btn__icon--light,
[data-theme="dark"] .theme-btn__icon--dark,
[data-theme="hc"] .theme-btn__icon--hc {
  display: block;
}

.theme-btn__chev {
  transition: transform var(--dur) var(--ease);
}

.theme-btn[aria-expanded="true"] .theme-btn__chev {
  transform: rotate(180deg);
}

.theme-panel {
  position: absolute;
  top: calc(100% + var(--sp-2));
  right: 0;
  z-index: 210;
  width: max-content;
  min-width: 15rem;
  padding: var(--sp-4);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.theme-panel[hidden] {
  display: none;
}

.theme-panel__title {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--sp-3);
}

.theme-options {
  display: grid;
  gap: var(--sp-2);
}

.theme-option {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.theme-option:hover {
  border-color: var(--text-subtle);
  background-color: var(--bg-subtle);
}

.theme-option:has(input:checked) {
  border-color: var(--brand-strong);
  background-color: var(--brand-tint);
}

.theme-option:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.theme-option input {
  accent-color: var(--brand-strong);
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  margin: 0;
}

.theme-option__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.theme-option__name {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.theme-option__hint {
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}

.theme-swatch {
  display: inline-flex;
  width: 34px;
  height: 24px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  overflow: hidden;
}

.theme-swatch span {
  flex: 1;
}

.theme-swatch--light span:nth-child(1) {
  background: #ffffff;
}
.theme-swatch--light span:nth-child(2) {
  background: #ef4d35;
}
.theme-swatch--light span:nth-child(3) {
  background: #14161a;
}
.theme-swatch--dark span:nth-child(1) {
  background: #0e0f11;
}
.theme-swatch--dark span:nth-child(2) {
  background: #ff7a5c;
}
.theme-swatch--dark span:nth-child(3) {
  background: #f4f6f8;
}
.theme-swatch--hc span:nth-child(1) {
  background: #000000;
}
.theme-swatch--hc span:nth-child(2) {
  background: #ffd400;
}
.theme-swatch--hc span:nth-child(3) {
  background: #ffffff;
}

/* --------------------------------------------------------------------------
   11. Mobile navigation (native <dialog>)
   -------------------------------------------------------------------------- */
.menu-toggle {
  display: inline-flex;
}

@media (min-width: 62rem) {
  .menu-toggle {
    display: none;
  }

  .nav--desktop {
    display: block;
  }
}

@media (max-width: 61.99rem) {
  .nav--desktop {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

@media (prefers-reduced-motion: no-preference) {
  .mobile-menu {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease-out), overlay var(--dur) allow-discrete,
      display var(--dur) allow-discrete;
  }

  .mobile-menu[open] {
    opacity: 1;
    transform: translateY(0);
  }

  @starting-style {
    .mobile-menu[open] {
      opacity: 0;
      transform: translateY(-8px);
    }
  }
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}

.mobile-menu__body {
  padding: var(--sp-5) var(--gutter) var(--sp-8);
}

.mobile-menu__list {
  display: grid;
  gap: var(--sp-1);
  margin: 0 0 var(--sp-6);
  padding: 0;
  list-style: none;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: var(--sp-3) var(--sp-4);
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: var(--tr-tight);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.mobile-menu__link:hover,
.mobile-menu__link[aria-current="page"] {
  background: var(--brand-tint);
  border-color: var(--brand-strong);
  color: var(--brand-deep);
}

[data-theme="hc"] .mobile-menu__link {
  border-width: 2px;
}

.mobile-menu__section {
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  margin-top: var(--sp-5);
}

.mobile-menu__section-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--sp-3);
}

/* --------------------------------------------------------------------------
   12. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background-color: var(--bg-deep);
  color: #ffffff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--scrim);
}

.hero__inner {
  padding-block: clamp(3.5rem, 9vw, 7.5rem);
  max-width: 46rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-5);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.hero__title {
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tighter);
  margin-bottom: var(--sp-5);
  color: #ffffff;
}

.hero__title em {
  font-style: normal;
  color: var(--brand-on-dark);
  display: block;
}

.hero__lede {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: #e8ebef;
  margin-bottom: var(--sp-6);
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  max-width: 38rem;
}

.hero__fact dt {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: var(--tr-tighter);
  color: #ffffff;
  line-height: 1.1;
}

.hero__fact dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: #d3d8de;
}

/* High-contrast hero: no photo, pure structure -------------------------- */
[data-theme="hc"] .hero {
  background: #000000;
}

[data-theme="hc"] .hero__media {
  display: none;
}

[data-theme="hc"] .hero__badge {
  background: #000000;
  border: 2px solid #ffffff;
  backdrop-filter: none;
}

[data-theme="hc"] .hero__lede,
[data-theme="hc"] .hero__fact dd {
  color: #ffffff;
}

[data-theme="hc"] .hero__facts {
  border-top: 2px solid #ffffff;
}

/* --------------------------------------------------------------------------
   13. Trust strip
   -------------------------------------------------------------------------- */
.trust-strip {
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-subtle);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background-color: var(--border);
}

[data-theme="hc"] .trust-strip__grid {
  background-color: #ffffff;
  gap: 2px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-4);
  background-color: var(--bg-subtle);
}

.trust-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  color: var(--brand-deep);
}

[data-theme="hc"] .trust-item__icon {
  border: 2px solid #ffffff;
  background: #000000;
  color: #ffd400;
}

.trust-item__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: var(--tr-tight);
  margin-bottom: 2px;
}

.trust-item__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   14. Service cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: var(--sp-5);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

[data-theme="hc"] .card {
  border-width: 2px;
}

.card:hover,
.card:focus-within {
  transform: translateY(var(--card-hover-lift));
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover,
  .card:focus-within {
    transform: none;
  }
}

.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--bg-inset);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.card:hover .card__media img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover .card__media img {
    transform: none;
  }
}

.card__tag {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  padding: var(--sp-1) var(--sp-3);
  background: var(--brand-strong);
  color: var(--on-brand);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5);
  gap: var(--sp-3);
}

.card__title {
  font-size: var(--fs-xl);
  margin: 0;
}

/* Whole-card click target while keeping a single accessible link. */
.card__title a {
  color: inherit;
  text-decoration: none;
}

.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card:hover .card__title a {
  color: var(--brand-deep);
}

.card:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.card__title a:focus-visible {
  outline: none;
}

.card__text {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
  flex: 1;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border);
}

.card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: var(--tr-tight);
}

.card__price small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-subtle);
}

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--link);
}

.card:hover .card__cta svg {
  transform: translateX(4px);
}

.card__cta svg {
  transition: transform var(--dur) var(--ease);
}

/* --------------------------------------------------------------------------
   15. Split feature blocks
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
  }

  .split--media-first > *:first-child {
    order: -1;
  }
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

[data-theme="hc"] .split__media {
  border: 2px solid #ffffff;
  box-shadow: none;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Value / feature list -------------------------------------------------- */
.feature-list {
  display: grid;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.feature-list__check {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 3px;
  border-radius: var(--radius-full);
  background: var(--brand-tint);
  color: var(--brand-deep);
}

[data-theme="hc"] .feature-list__check {
  border: 2px solid #ffffff;
  background: #000000;
  color: #ffd400;
}

.feature-list__body strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tr-tight);
  margin-bottom: 2px;
}

.feature-list__body span {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* Stats ----------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: var(--sp-5);
  margin: 0;
}

.stat dt {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: var(--tr-tighter);
  color: var(--brand-deep);
  line-height: 1;
}

.stat dd {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   16. Station cards
   -------------------------------------------------------------------------- */
.station-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.station {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

[data-theme="hc"] .station {
  border-width: 2px;
}

.station__head {
  padding: var(--sp-5);
  background: linear-gradient(135deg, var(--brand-tint), transparent 70%);
  border-bottom: 1px solid var(--border);
}

[data-theme="hc"] .station__head {
  background: #000000;
}

.station__name {
  font-size: var(--fs-xl);
  margin: 0 0 var(--sp-1);
}

.station__district {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.station__body {
  padding: var(--sp-5);
  display: grid;
  gap: var(--sp-5);
  flex: 1;
}

.station__contact {
  display: grid;
  gap: var(--sp-2);
  margin: 0;
}

.station__row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--sp-3);
  align-items: start;
  font-size: var(--fs-sm);
}

.station__row svg {
  margin-top: 3px;
  color: var(--brand-deep);
}

.station__row a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.station__row a:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.station__phone {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: var(--tr-tight);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.station__hours {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

[data-theme="hc"] .station__hours {
  border-width: 2px;
}

.station__hours-caption {
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-inset);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--border);
}

.hours-list {
  margin: 0;
  font-size: var(--fs-sm);
}

.hours-list__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-2) var(--sp-3);
}

.hours-list__row + .hours-list__row {
  border-top: 1px solid var(--border);
}

.hours-list__row dt {
  color: var(--text-muted);
}

.hours-list__row dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hours-list__row--today {
  background: var(--brand-tint);
}

.hours-list__row--today dt,
.hours-list__row--today dd {
  color: var(--brand-deep);
  font-weight: 700;
}

.hours-list__row--closed dd {
  color: var(--text-subtle);
  font-weight: 500;
}

/* Live "open now" indicator, filled in by script from the visitor's clock. */
.station__status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.station__status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  flex: none;
}

.station__status.is-open {
  color: var(--success);
}

.station__status.is-open::before {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(28, 107, 63, 0.18);
}

[data-theme="hc"] .station__status::before {
  border: 1px solid #ffffff;
}

[data-theme="hc"] .station__status.is-open::before {
  background: #7dffb0;
  box-shadow: none;
}

.station__foot {
  padding: var(--sp-5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* --------------------------------------------------------------------------
   17. Steps / process
   -------------------------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding-top: var(--sp-6);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}

.step::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 2.5rem;
  right: 0;
  height: 1px;
  background: var(--border);
}

[data-theme="hc"] .step::after {
  height: 2px;
  background: #ffffff;
}

.step__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}

.step__text {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   18. Blog
   -------------------------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--sp-5);
}

/* Two balanced columns on desktop: four posts fill the grid exactly and the
   cards stay large enough to read the excerpt comfortably. */
@media (min-width: 56rem) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
  }
}

.post {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

[data-theme="hc"] .post {
  border-width: 2px;
}

.post:hover,
.post:focus-within {
  transform: translateY(var(--card-hover-lift));
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

@media (prefers-reduced-motion: reduce) {
  .post:hover,
  .post:focus-within {
    transform: none;
  }
}

.post__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-inset);
}

.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.post:hover .post__media img {
  transform: scale(1.04);
}

.post__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.post__title {
  font-size: var(--fs-lg);
  margin: 0;
}

.post__title a {
  color: inherit;
  text-decoration: none;
}

.post__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post:hover .post__title a {
  color: var(--brand-deep);
}

.post__text {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
  flex: 1;
}

.post__more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--link);
}

/* Article --------------------------------------------------------------- */
.article {
  max-width: 46rem;
  margin-inline: auto;
}

.article__header {
  margin-bottom: var(--sp-6);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-subtle);
}

.article__figure {
  margin-bottom: var(--sp-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article__lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: var(--sp-5);
  border-left: 3px solid var(--brand);
}

[data-theme="hc"] .article__lead {
  border-left-width: 6px;
  border-left-color: #ffd400;
  color: #ffffff;
}

.prose > * + * {
  margin-top: var(--sp-5);
}

.prose h2 {
  font-size: var(--fs-2xl);
  margin-top: var(--sp-7);
}

.prose h3 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-6);
}

.prose ul,
.prose ol {
  padding-left: var(--sp-5);
}

.prose li + li {
  margin-top: var(--sp-2);
}

.prose blockquote {
  padding: var(--sp-5);
  background: var(--bg-subtle);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--fs-lg);
}

/* Callout --------------------------------------------------------------- */
.callout {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2);
  border-left: 4px solid var(--brand-strong);
  border-radius: var(--radius-md);
}

[data-theme="hc"] .callout {
  border-width: 2px;
  border-left-width: 6px;
  background: #000000;
}

.callout svg {
  flex: none;
  margin-top: 3px;
  color: var(--brand-deep);
}

.callout__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tr-tight);
  margin-bottom: var(--sp-1);
}

.callout p:last-child {
  margin-bottom: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   19. Price tables
   -------------------------------------------------------------------------- */
.price-group + .price-group {
  margin-top: var(--sp-8);
}

.price-group__head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--brand);
}

.price-group__title {
  font-size: var(--fs-2xl);
  margin: 0;
}

.price-group__count {
  font-size: var(--fs-sm);
  color: var(--text-subtle);
  font-weight: 600;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.price-table caption {
  text-align: left;
  font-size: var(--fs-sm);
  color: var(--text-subtle);
  padding-bottom: var(--sp-3);
}

.price-table th,
.price-table td {
  padding: var(--sp-4) var(--sp-4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

[data-theme="hc"] .price-table th,
[data-theme="hc"] .price-table td {
  border-bottom: 2px solid #ffffff;
}

.price-table thead th {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--text-subtle);
  background: var(--bg-subtle);
  border-bottom: 2px solid var(--border-strong);
}

.price-table tbody tr:hover {
  background: var(--bg-subtle);
}

.price-table__name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tr-tight);
  font-size: var(--fs-md);
  color: var(--text);
  text-decoration: none;
}

.price-table__name:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.price-table__desc {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
}

.price-table__price {
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: var(--tr-tight);
  font-variant-numeric: tabular-nums;
}

.price-table__price small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-subtle);
}

.price-note {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

[data-theme="hc"] .price-note {
  border-width: 2px;
  background: #000000;
  color: #ffffff;
}

.price-note strong {
  color: var(--text);
}

/* Card-style price grid (used on Oferta sections) ---------------------- */
.price-mini {
  display: grid;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-mini li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 0;
}

[data-theme="hc"] .price-mini li {
  border-width: 2px;
  background: #000000;
}

.price-mini__label {
  font-size: var(--fs-sm);
  color: var(--text);
  /* Without this the label's min-content floor, added to the nowrap price,
     pushes the whole grid column past the viewport on narrow screens. */
  min-width: 0;
}

.price-mini__value {
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
  flex: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tr-tight);
}

/* --------------------------------------------------------------------------
   20. Gallery
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__item {
  margin: 0;
}

.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

[data-theme="hc"] .gallery__btn {
  border-width: 2px;
}

.gallery__btn img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.gallery__btn:hover img {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .gallery__btn:hover img {
    transform: none;
  }
}

.gallery__zoom {
  position: absolute;
  right: var(--sp-3);
  bottom: var(--sp-3);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(10, 11, 13, 0.78);
  color: #ffffff;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.gallery__btn:hover .gallery__zoom,
.gallery__btn:focus-visible .gallery__zoom {
  opacity: 1;
}

/* Lightbox -------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(5, 6, 7, 0.92);
}

.lightbox__inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  color: #ffffff;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
}

.lightbox__count {
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lightbox__stage {
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  min-height: 0;
}

.lightbox__stage img {
  max-width: min(100%, 1100px);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox__nav {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5) var(--sp-6);
}

.lightbox .icon-link {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.lightbox .icon-link:hover {
  background: #ffffff;
  color: #14161a;
}

/* --------------------------------------------------------------------------
   21. Forms
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--sp-5);
}

.field {
  display: grid;
  gap: var(--sp-2);
}

.field__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.field__req {
  color: var(--brand-deep);
  font-weight: 700;
}

.field__hint {
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-md);
  transition: border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

[data-theme="hc"] .field__input,
[data-theme="hc"] .field__select,
[data-theme="hc"] .field__textarea {
  border-width: 2px;
  background: #000000;
  color: #ffffff;
}

.field__textarea {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.6;
}

.field__input:hover,
.field__select:hover,
.field__textarea:hover {
  border-color: var(--text-subtle);
}

.field__input:focus-visible,
.field__select:focus-visible,
.field__textarea:focus-visible {
  border-color: var(--focus);
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--text-subtle);
  opacity: 1;
}

[data-theme="hc"] .field__input::placeholder,
[data-theme="hc"] .field__textarea::placeholder {
  color: #d8d8d8;
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-deep);
}

[data-theme="hc"] .field__error {
  color: #ffd400;
}

.field__input[aria-invalid="true"],
.field__textarea[aria-invalid="true"],
.field__select[aria-invalid="true"] {
  border-color: var(--brand-strong);
  border-width: 2px;
}

.field--checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--sp-3);
}

.field--checkbox input {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 2px;
  accent-color: var(--brand-strong);
  flex: none;
}

.field--checkbox .field__label {
  font-weight: 400;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-muted);
}

.field-row {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 40rem) {
  .field-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-status {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: 1px solid var(--success);
  background: var(--bg-subtle);
  color: var(--text);
}

[data-theme="hc"] .form-status {
  border-width: 2px;
  background: #000000;
}

/* --------------------------------------------------------------------------
   22. Map embeds
   -------------------------------------------------------------------------- */
.map-embed {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-inset);
}

[data-theme="hc"] .map-embed {
  border-width: 2px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: clamp(18rem, 40vw, 26rem);
  border: 0;
  filter: none;
}

[data-theme="dark"] .map-embed iframe {
  filter: invert(0.92) hue-rotate(180deg) contrast(0.92);
}

[data-theme="hc"] .map-embed iframe {
  filter: grayscale(1) contrast(1.4);
}

/* --------------------------------------------------------------------------
   23. Partners
   -------------------------------------------------------------------------- */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: var(--sp-4);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partners li {
  display: grid;
  place-items: center;
  min-height: 6rem;
  padding: var(--sp-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

[data-theme="hc"] .partners li {
  border-width: 2px;
}

.partners img {
  max-height: 3rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.partners li:hover img {
  filter: none;
  opacity: 1;
}

[data-theme="dark"] .partners img,
[data-theme="hc"] .partners img {
  filter: grayscale(1) invert(1);
  opacity: 0.85;
}

[data-theme="dark"] .partners li:hover img,
[data-theme="hc"] .partners li:hover img {
  filter: invert(1);
  opacity: 1;
}

[data-theme="hc"] .partners img {
  filter: grayscale(1) invert(1) contrast(1.6);
}

/* --------------------------------------------------------------------------
   24. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background-color: var(--bg-deep);
  color: #ffffff;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      60% 90% at 88% 10%,
      rgba(239, 77, 53, 0.28),
      transparent 62%
    ),
    radial-gradient(50% 80% at 4% 96%, rgba(239, 77, 53, 0.14), transparent 60%);
  pointer-events: none;
}

[data-theme="hc"] .cta-band {
  background: #000000;
}

[data-theme="hc"] .cta-band::after {
  display: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

@media (min-width: 62rem) {
  .cta-band__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}

.cta-band__title {
  color: #ffffff;
  margin-bottom: var(--sp-4);
}

.cta-band__text {
  color: #dfe4ea;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-5);
}

.cta-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

[data-theme="hc"] .cta-panel {
  background: #000000;
  border: 2px solid #ffffff;
  box-shadow: none;
}

.cta-panel__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
}

.cta-panel__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
}

.cta-lines {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.cta-line {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

[data-theme="hc"] .cta-line {
  border-width: 2px;
}

.cta-line:hover {
  border-color: var(--brand-strong);
  background: var(--brand-tint);
}

.cta-line svg {
  flex: none;
  color: var(--brand-deep);
}

.cta-line__label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cta-line__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tr-tight);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   25. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-deep);
  color: #cfd5dc;
  padding-top: var(--sp-8);
}

[data-theme="hc"] .site-footer {
  background: #000000;
  border-top: 4px solid #ffd400;
  color: #ffffff;
}

.site-footer a {
  color: #cfd5dc;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="hc"] .site-footer a {
  color: #ffd400;
}

.site-footer__grid {
  display: grid;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
}

@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: var(--sp-6);
  }
}

.site-footer__title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: var(--sp-4);
}

.site-footer__list {
  display: grid;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}

.site-footer__text {
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.site-footer__logo {
  height: 34px;
  width: auto;
  margin-bottom: var(--sp-4);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--fs-xs);
}

[data-theme="hc"] .site-footer__bottom {
  border-top: 2px solid #ffffff;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   26. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--text-subtle);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   27. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero__inner {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 48rem;
}

.page-hero__title {
  margin-bottom: var(--sp-4);
}

.page-hero__lede {
  font-size: var(--fs-lg);
  color: var(--text-muted);
}

.page-hero__motif {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0;
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 61.99rem) {
  .page-hero__motif {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   28. Anchor navigation (Oferta)
   -------------------------------------------------------------------------- */
.anchor-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 120;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.anchor-nav__list {
  display: flex;
  gap: var(--sp-2);
  margin: 0;
  padding: var(--sp-3) 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.anchor-nav__link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 40px;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.anchor-nav__link:hover {
  border-color: var(--brand-strong);
  color: var(--brand-deep);
  background: var(--brand-tint);
}

[data-theme="hc"] .anchor-nav__link {
  border-width: 2px;
}

/* --------------------------------------------------------------------------
   29. Service detail section (Oferta)
   -------------------------------------------------------------------------- */
.service-detail {
  scroll-margin-top: calc(var(--header-h) + 4.5rem);
}

.service-detail + .service-detail {
  border-top: 1px solid var(--border);
}

.service-detail__head {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
  margin-bottom: var(--sp-7);
}

@media (min-width: 56rem) {
  .service-detail__head {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }

  .service-detail__head--flip > *:first-child {
    order: 2;
  }
}

.service-detail__index {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: var(--tr-wide);
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--sp-3);
}

.service-detail__title {
  margin-bottom: var(--sp-4);
}

.service-detail__lede {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
}

.service-detail__cols {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 56rem) {
  .service-detail__cols {
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.service-detail__pricing {
  align-self: start;
  padding: var(--sp-5);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

[data-theme="hc"] .service-detail__pricing {
  border-width: 2px;
  background: #000000;
}

.service-detail__pricing h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-4);
}

/* --------------------------------------------------------------------------
   30. Accessibility statement helpers
   -------------------------------------------------------------------------- */
.def-list {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

[data-theme="hc"] .def-list {
  border-width: 2px;
}

.def-list__row {
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-5);
}

.def-list__row + .def-list__row {
  border-top: 1px solid var(--border);
}

@media (min-width: 40rem) {
  .def-list__row {
    grid-template-columns: 15rem 1fr;
    gap: var(--sp-5);
    align-items: baseline;
  }
}

.def-list dt {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.def-list dd {
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid currentColor;
}

.status-pill--ok {
  color: var(--success);
}

/* --------------------------------------------------------------------------
   31. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 150;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--brand-strong);
  color: var(--on-brand);
  border-color: var(--brand-strong);
}

/* --------------------------------------------------------------------------
   32. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--dur-slow) var(--ease-out),
      transform var(--dur-slow) var(--ease-out);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   33. Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }

.measure {
  max-width: 42rem;
}

.measure-sm {
  max-width: 34rem;
}

.mx-auto {
  margin-inline: auto;
}

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin-block: var(--sp-7);
}

[data-theme="hc"] .divider {
  height: 2px;
  background: #ffffff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--brand-tint-2);
}

[data-theme="hc"] .badge {
  border: 2px solid #ffd400;
  background: #000000;
}

/* --------------------------------------------------------------------------
   34. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .mobile-menu,
  .to-top,
  .anchor-nav,
  .hero__media,
  .hero__scrim,
  .site-footer__bottom {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card,
  .station,
  .post {
    break-inside: avoid;
    border: 1px solid #999;
  }
}

/* --------------------------------------------------------------------------
   35. Forced colours (Windows High Contrast Mode)
   The OS palette wins; we only guarantee structure stays legible.
   -------------------------------------------------------------------------- */
@media (forced-colors: active) {
  .card,
  .station,
  .post,
  .btn,
  .field__input,
  .field__textarea,
  .field__select,
  .trust-item__icon,
  .callout,
  .cta-line,
  .price-mini li,
  .anchor-nav__link,
  .mobile-menu__link {
    border: 1px solid CanvasText;
  }

  .btn {
    forced-color-adjust: none;
    background: ButtonFace;
    color: ButtonText;
  }

  .nav__link[aria-current="page"]::after,
  .step::after,
  .brand-line {
    background: CanvasText;
  }

  .hero__scrim {
    background: Canvas;
    opacity: 0.85;
  }

  .hero__media img,
  .map-embed iframe {
    forced-color-adjust: none;
  }

  .chevrons i,
  .card__tag,
  .badge {
    forced-color-adjust: none;
  }

  :focus-visible {
    outline: 3px solid Highlight;
  }
}
