/* ==========================================================================
   CarPoint — Centrum Motoryzacyjne, 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: "Nunito Sans", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito Sans", 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: #f5f5f4;
  --bg-elevated: #ffffff;
  --bg-inset: #ececeb;
  --bg-deep: #2f2f2e;

  --border: #e4e4e3; /* decorative dividers and card edges */
  --border-strong: #808180; /* brand 55% grey, 3.9:1 on white — WCAG 1.4.11 for inputs & controls */

  --text: #2f2f2e; /* brand dark grey (95% black), 13.4:1 on --bg — AAA */
  --text-muted: #575756; /* 7.2:1  on --bg — AAA */
  --text-subtle: #666665; /* 5.8:1  on --bg — AA  */
  --text-invert: #ffffff;

  --brand: #de4a39; /* brand red (M85 Y85) — decorative and large text only (4.1:1) */
  --brand-on-dark: #f07563; /* 6.5:1 on the hero scrim, 4.7:1 on --bg-deep */
  --brand-strong: #c93c2c; /* 5.0:1 with white text — AA  */
  --brand-deep: #9e2c1d; /* 7.4:1 on white — AAA */
  --brand-tint: #fcedea;
  --brand-tint-2: #f8d9d3;
  --on-brand: #ffffff;

  --link: #990000; /* 9.9:1 on white — AAA */
  --link-hover: #7a2216;

  --success: #1c6b3f;
  --focus: #9e2c1d;
  --focus-contrast: #ffffff;

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

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

  --bg: #1e1e1d;
  --bg-subtle: #242423;
  --bg-elevated: #2a2a29;
  --bg-inset: #333332;
  --bg-deep: #141413;

  --border: #3d3d3b;
  --border-strong: #6e6f6d; /* 3.3:1 on --bg — WCAG 1.4.11 */

  --text: #f4f4f3; /* 15.2:1 on --bg — AAA */
  --text-muted: #c1c2c1; /* 9.3:1 on --bg — AAA */
  --text-subtle: #9a9b9a; /* 6.0:1  on --bg — AA  */
  --text-invert: #1e1e1d;

  --brand: #f07563; /* 5.9:1 on --bg, 5.1:1 on --bg-elevated — AA */
  --brand-on-dark: #f07563;
  --brand-strong: #c93c2c; /* 5.0:1 with white text — AA */
  --brand-deep: #f5a193; /* 8.3:1 on --bg — AAA */
  --brand-tint: #2e1c19;
  --brand-tint-2: #3f231e;
  --on-brand: #ffffff;

  --link: #f5a193;
  --link-hover: #f9c0b5;

  --success: #6ee7a8;
  --focus: #f07563;
  --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(14, 14, 13, 0.96) 0%,
    rgba(14, 14, 13, 0.88) 38%,
    rgba(14, 14, 13, 0.6) 68%,
    rgba(14, 14, 13, 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-sm);
  font-weight: 700;
  letter-spacing: 0; /* sentence case, no tracked caps: reads as a label, not a SaaS chip */
  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-lg); /* same corners as the tiles */
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 700;
  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: #2f2f2e;
  --btn-border: #ffffff;
}

.btn--light {
  --btn-bg: #ffffff;
  --btn-fg: #2f2f2e;
  --btn-border: #ffffff;
}

.btn--light:hover {
  --btn-bg: #efefee;
  --btn-fg: #2f2f2e;
}

.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%,
    #d5d5d4 34%,
    #d5d5d4 66%,
    var(--bg-deep) 66%,
    var(--bg-deep) 100%
  );
}

[data-theme="dark"] .brand-line {
  background: linear-gradient(
    90deg,
    var(--brand) 0%,
    var(--brand) 34%,
    #575756 34%,
    #575756 66%,
    #f4f4f3 66%,
    #f4f4f3 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: 30px; /* wordmark only (no tagline since the rebrand) */
  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: 34px;
}

.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) {
  /* Phones: calling is the main conversion, so the phone icon stays in the
     header; Facebook moves to the menu panel and the theme button drops its
     chevron to save space. `.header-actions` prefix beats the later
     `.icon-link { display: inline-flex }` rule (same specificity, later wins). */
  .header-actions .header-social {
    display: none;
  }

  .brand__logo {
    height: 25px;
  }

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

  .theme-btn__chev {
    display: none;
  }
}

/* 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: #de4a39;
}
.theme-swatch--light span:nth-child(3) {
  background: #2f2f2e;
}
.theme-swatch--dark span:nth-child(1) {
  background: #1e1e1d;
}
.theme-swatch--dark span:nth-child(2) {
  background: #f07563;
}
.theme-swatch--dark span:nth-child(3) {
  background: #f4f4f3;
}
.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: #ececeb;
  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: #d5d5d4;
}

/* 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: 1px solid var(--border);
  border-radius: var(--radius-md);
  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-radius: var(--radius-md);
}

[data-theme="hc"] .callout {
  border-width: 2px;
  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(20, 20, 19, 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(20, 20, 19, 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: #2f2f2e;
}

/* --------------------------------------------------------------------------
   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;
}

/* Status variants set by carpoint.js (data-kind="info|success|error"). */
.form-status[data-kind="info"] {
  border-color: var(--border-strong);
}

.form-status[data-kind="error"] {
  border-color: var(--brand-deep);
  background: var(--brand-tint);
}

[data-theme="dark"] .form-status[data-kind="error"],
[data-theme="hc"] .form-status[data-kind="error"] {
  background: var(--bg-subtle);
}

/* Submit button while the request is in flight. */
.btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Service landing pages (generated by tools/build-service-pages.py)
   -------------------------------------------------------------------------- */

/* FAQ — native <details>, keyboard + screen-reader friendly with no JS. */
.faq {
  display: grid;
  gap: var(--sp-3);
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

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

.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

/* Plus/minus indicator drawn with CSS so it follows the text colour. */
.faq__q::after {
  content: "+";
  flex: none;
  font-size: 1.4em;
  line-height: 1;
  color: var(--brand-deep);
}

.faq__item[open] > .faq__q::after {
  content: "−";
}

.faq__q:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

.faq__a {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--text-muted);
}

.faq__a p {
  margin: 0;
}

/* "Pozostałe usługi" link grid. */
.service-links__title {
  margin: 0 0 var(--sp-5);
  font-size: var(--fs-xl);
}

.service-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-links__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  min-height: 44px;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.service-links__link:hover {
  border-color: var(--brand-deep);
  color: var(--link);
}

.service-links__link--all {
  border-style: dashed;
}

[data-theme="hc"] .service-links__link {
  border-width: 2px;
  border-color: #ffffff;
}

.field__hint-inline {
  font-weight: 400;
  color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   Google reviews (index.html, filled by carpoint.js → initReviews)
   -------------------------------------------------------------------------- */
.reviews__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--sp-4);
  max-width: 48rem;
  margin-inline: auto;
}

.reviews__station {
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  text-align: center;
}

.reviews__station-name {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-lg);
}

.reviews__score {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3);
  margin: 0;
}

.reviews__score-value {
  font-family: var(--font-display, inherit);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

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

.reviews__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2) var(--sp-5);
  margin: 0;
}

/* Star rating: 5 grey stars with a gold layer clipped to --stars / 5. */
.stars {
  --stars: 0;
  position: relative;
  display: inline-block;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--border-strong);
  white-space: nowrap;
}

.stars::before {
  content: "★★★★★";
}

.stars::after {
  content: "★★★★★";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--stars) / 5 * 100%);
  overflow: hidden;
  color: #f2a900; /* Google-style gold; decorative, value is in aria-label */
}

[data-theme="hc"] .stars::after {
  color: #ffff00;
}

.reviews__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-6) 0 0;
  padding: 0;
  list-style: none;
}

.reviews__list > * {
  min-width: 0;
}

.review {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

[data-theme="hc"] .review,
[data-theme="hc"] .reviews__station {
  border-width: 2px;
  border-color: #ffffff;
}

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

.review__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand-tint-2);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: var(--fs-sm);
}

.review__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.review__author {
  overflow: hidden;
  color: var(--text);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

a.review__author:hover {
  text-decoration: underline;
}

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

.review__text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
}

.review.is-expanded .review__text {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.review__more {
  align-self: flex-start;
  font-size: var(--fs-sm);
  color: var(--link);
}

.reviews__attribution {
  margin: var(--sp-5) 0 0;
  color: var(--text-subtle);
  font-size: var(--fs-xs);
  text-align: center;
}

/* Text-style button (footer "Ustawienia cookies"). */
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* Honeypot: off-screen for people and assistive tech, still filled by bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Click-to-load map placeholder (no Google request/cookies before consent). */
.map-consent {
  display: grid;
  place-items: center;
  gap: var(--sp-3);
  height: clamp(18rem, 40vw, 26rem);
  padding: var(--sp-5);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* Cookie consent bar (GTM Consent Mode v2). */
.consent {
  position: fixed;
  inset: auto var(--sp-4) var(--sp-4) var(--sp-4);
  z-index: 60;
  max-width: 34rem;
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
}

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

.consent p {
  margin: 0 0 var(--sp-4);
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* --------------------------------------------------------------------------
   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(222, 74, 57, 0.28),
      transparent 62%
    ),
    radial-gradient(50% 80% at 4% 96%, rgba(222, 74, 57, 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: #e4e4e3;
  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: #cbcccb;
  padding-top: var(--sp-8);
}

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

.site-footer a {
  color: #cbcccb;
  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: 28px;
  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);
}

ul.anchor-nav__list { /* ul. beats the site's ul[class] padding reset */
  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;
  }
}

/* cennik.html: "Opis usługi" link pushed to the right of each group heading. */
.price-group__head {
  flex-wrap: wrap;
}

.price-group__link {
  margin-inline-start: auto;
  font-size: var(--fs-sm);
}

/* ==========================================================================
   36. Fleet page (flota.html) + reminder sign-up (tools/reminder-section.html
       → index.html) + unsubscribe page (przypomnienie.php?wypisz=…)
   Mobile-first; every rule uses theme tokens so light / dark / hc all work.
   Touch targets ≥ 44px; nothing here can push the page wider than 320px.
   ========================================================================== */

/* "(opcjonalnie)" suffix inside field labels and legends. */
.field__optional {
  font-weight: 400;
  color: var(--text-subtle);
}

/* Text links inside forms (consent "polityka prywatności") and the fleet
   benefit list: there is no global a{} colour, so without this they fall
   back to the browser's blue — unreadable in dark / hc. */
.form a,
.fleet-benefits a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.form a:hover,
.fleet-benefits a:hover {
  color: var(--link-hover);
}

/* Two-up field rows: keep inputs at their own height when the neighbour
   shows a hint or an error (grid would otherwise stretch them). */
.form .field-row {
  align-items: start;
}

/* Split variant that aligns columns to the top (long form next to text). */
.split--top {
  align-items: start;
}

/* Fleet benefits: one column on phones, two on tablets, three on desktop. */
.fleet-benefits {
  gap: var(--sp-5);
}

@media (min-width: 40rem) {
  .fleet-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .fleet-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--sp-6);
  }
}

/* --- Checkbox group (fieldset of pill-like options) ----------------------- */
.choice-group {
  display: grid;
  gap: var(--sp-2);
  min-width: 0; /* fieldsets default to min-content width → overflow at 320px */
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group > legend {
  padding: 0;
  margin-bottom: var(--sp-2);
}

.choice-group__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
}

@media (min-width: 40rem) {
  .choice-group__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Whole tile is the click target (label wraps the input), min 48px tall. */
.choice {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 48px;
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.choice:hover {
  border-color: var(--text-subtle);
}

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

/* Checked state: brand edge + tint (tint is black in hc, so edge carries it). */
.choice:has(input:checked) {
  border-color: var(--brand-deep);
  background: var(--brand-tint);
  font-weight: 600;
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

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

[data-theme="hc"] .choice:has(input:checked) {
  border-color: #ffd400;
}

/* --- Date input ---------------------------------------------------------- */
/* iOS Safari renders an empty date input collapsed and centred: force full
   width, a real height and left-aligned text. color-scheme comes from the
   theme, so the native picker follows light/dark automatically. */
.field__input[type="date"] {
  display: block;
  min-width: 0;
  line-height: 1.4;
}

.field__input[type="date"]::-webkit-date-and-time-value {
  text-align: start;
}

.field__input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: var(--sp-1);
}

/* --- Reminder sign-up section ------------------------------------------- */
.reminder__card {
  display: grid;
  gap: var(--sp-6);
  padding: var(--sp-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.reminder__intro .lede {
  margin-top: var(--sp-3);
}

.reminder__form {
  gap: var(--sp-4);
}

/* Plate number reads like a plate: capitals, a touch of tracking. */
.reminder__plate {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reminder__plate::placeholder {
  text-transform: none;
  letter-spacing: normal;
}

.reminder__form .btn {
  justify-self: start;
}

@media (min-width: 40rem) {
  .reminder__card {
    padding: var(--sp-6);
  }
}

@media (min-width: 62rem) {
  .reminder__card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--sp-7);
    align-items: start;
    padding: var(--sp-7);
  }
}

/* --- Unsubscribe confirmation page (rendered by przypomnienie.php) ------- */
.unsub {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: var(--sp-5) var(--gutter);
  background: var(--bg-subtle);
}

.unsub__card {
  display: grid;
  gap: var(--sp-4);
  width: 100%;
  max-width: 34rem;
  padding: var(--sp-6) var(--sp-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.unsub__title {
  font-size: var(--fs-2xl);
}

.unsub__text {
  color: var(--text-muted);
}

/* --- Reminder channels (E-mail / SMS checkboxes) ------------------------- */
/* Fieldset reset: the group reads as one labelled field like the others. */
.reminder__channels {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: grid;
  gap: var(--sp-2);
}

.reminder__channel-opts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* Each option is a large tappable chip (≥ 44px) around a native checkbox. */
.reminder__channel {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  font-weight: 600;
  cursor: pointer;
}

.reminder__channel input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--brand-strong);
}

.reminder__channel:has(input:checked) {
  border-color: var(--brand-strong);
  box-shadow: inset 0 0 0 1px var(--brand-strong);
}

.reminder__channel:has(input:focus-visible) {
  outline: 3px solid var(--focus, var(--brand-strong));
  outline-offset: 2px;
}

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

/* Consent-checkbox errors sit under the label column, not under the box. */
.reminder__check-err {
  grid-column: 2;
}

/* Buttons on hover: black with white text (every variant; high-contrast theme keeps its own). */
:root:not([data-theme="hc"]) .btn:hover {
  --btn-bg: #000000;
  --btn-fg: #ffffff;
  --btn-border: #000000;
}

/* Links inside the price note (phone numbers) use the site link colour, not the browser default blue. */
.price-note a {
  color: var(--link);
  font-weight: 700;
  text-underline-offset: 3px;
}
.price-note a:hover { color: var(--link-hover); }
[data-theme="hc"] .price-note a { color: #ffffff; }

/* Cennik rows link to their /cennik/<slug> item page: keep the table's text colour (no browser blue). */
.price-table__link { color: var(--text); text-decoration: none; }
.price-table__link:hover .price-table__name,
.price-table__link:focus-visible .price-table__name { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.price-table__link .price-table__name::after { content: " →"; color: var(--brand-strong); }

/* Page-hero label above the H1: quiet muted text with the red dash, so it reads as context, not an accent chip. */
.page-hero .eyebrow { color: var(--text-muted); font-weight: 600; }
.page-hero .eyebrow::before { background: var(--brand-strong); }
[data-theme="hc"] .page-hero .eyebrow { color: #ffffff; }

/* Review marquee (index.html): two full-width rows drifting in opposite directions, small cards.
   Each .rv-track = review set ×2, so moving it by -50% lands exactly on the copy (seamless loop).
   Cards use margin (not gap) so both halves have identical width. Edges fade via mask. */
.rv-marquee { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
ul.rv-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.rv-track .review { flex: none; width: 19rem; margin-right: var(--sp-3); padding: var(--sp-4); gap: var(--sp-2); }
.rv-track .review__avatar { width: 2rem; height: 2rem; font-size: var(--fs-xs); }
.rv-track .review__author { font-size: var(--fs-sm); }
.rv-track .stars { font-size: .875rem; }
.rv-track .review__text { font-size: var(--fs-sm); line-height: 1.45; color: var(--text); -webkit-line-clamp: 5; line-clamp: 5; }
@keyframes rv-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rv-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: no-preference) {
  .rv-row--left .rv-track { animation: rv-left 90s linear infinite; }
  .rv-row--right .rv-track { animation: rv-right 90s linear infinite; }
  .rv-row:hover .rv-track, .rv-row:focus-within .rv-track { animation-play-state: paused; }
}
/* Reduced motion: no drift; each row scrolls sideways by hand, duplicates hidden. */
@media (prefers-reduced-motion: reduce) {
  .rv-marquee { -webkit-mask-image: none; mask-image: none; }
  .rv-row { overflow-x: auto; padding-inline: var(--gutter); }
  .rv-track .review[aria-hidden="true"] { display: none; }
}
.reviews__more { margin-top: var(--sp-6); }
/* Phones: narrower review cards so ~1.3 cards show and the drift reads as motion. */
@media (max-width: 39.99rem) { .rv-track .review { width: 16rem; } }

/* Default links (no class): theme link colour, bold, never the browser's blue/violet (incl. :visited).
   :where() keeps specificity at 0 so component link styles still win. */
:where(a:not([class])), :where(a:not([class])):visited { color: var(--link); }
/* Bold only in content: footer and nav lists (breadcrumbs, menus) keep their own weight. */
:where(a:not([class]):not(.site-footer a, nav a)) { font-weight: 700; }
:where(a:not([class])):hover { color: var(--link-hover); }
