/* Modernist — design-system tokens and component classes. This file is the source of truth for the system's look; retune it here and see readme.md. */

/* Archivo, self-hosted. The old @import pulled a stylesheet from
   fonts.googleapis.com which then pulled the font from fonts.gstatic.com —
   two extra DNS+TLS handshakes, and an @import blocks rendering until both
   finish. One variable file per subset covers 400/600/800.
   font-display:swap keeps text visible while it loads. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  /* Polish diacritics (ł ą ę ś ż ź ć ń) live in this subset */
  src: url('/assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-accent-2: #e15b47;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  /* Tonal ramps — generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. */
  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-300: #ffc4b8;
  --color-accent-400: #ff9783;
  --color-accent-500: #ff563c;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;

  --color-accent-2-100: #fff2ef;
  --color-accent-2-200: #ffe0da;
  --color-accent-2-300: #ffc4b9;
  --color-accent-2-400: #ff9784;
  --color-accent-2-500: #ef6853;
  --color-accent-2-600: #c94b39;
  --color-accent-2-700: #9e3526;
  --color-accent-2-800: #71261b;
  --color-accent-2-900: #471d16;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Archivo", system-ui, sans-serif;

  --space-1: 4.0px;
  --space-2: 8.0px;
  --space-3: 12.0px;
  --space-4: 16.0px;
  --space-6: 24.0px;
  --space-8: 32.0px;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;

  /* Elevation — derived from the ground: soft ink-tinted shadows on a
     light theme, a hairline edge + ambient darkness on a dark one. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.grayscale{filter:grayscale(1) contrast(1.08)}

/* ══════════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS
   on plain HTML: no JavaScript, no build step. Each class is documented in
   readme.md and demonstrated in foundations/ and components/.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 2px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text); /* matches the .input's 14px —
     the pair sits side by side in sign-up rows */
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); justify-content: flex-start; text-align: left; }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent); background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--color-divider);
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 2px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px;
}
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }

/* ══════════════════════════════════════════════════════════════════════════
   Mobile — the pages are laid out with inline styles, so every override in
   this block needs !important to win over them. The m-* classes carry no
   desktop styling of their own; they exist purely as hooks for these rules.
   ══════════════════════════════════════════════════════════════════════ */

html { -webkit-text-size-adjust: 100%; }
iframe, image-slot { max-width: 100%; }

/* ── Mobile header ─────────────────────────────────────────────────────────
   A separate bar and drawer, not the desktop nav squeezed down: below 860px
   the desktop header is hidden outright and this one takes over. Open/closed
   lives in each page's component state (`menuOpen`), so a re-render — the
   scroll listener fires plenty of them — can't slam the drawer shut.
   ───────────────────────────────────────────────────────────────────────── */
.m-mheader { display: none; }

@media (max-width: 860px) {
  .m-desktop-header { display: none !important; }

  .m-mheader { display: block; position: sticky; top: 0; z-index: 60; }

  /* height is fixed and known: 12 + 44 + 12 + 2px border. The drawer clears
     the bar with this same value, so keep the two in step. */
  .m-mheader-bar {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; background: #000;
    border-bottom: 2px solid var(--color-accent);
  }
  /* min-width:0 lets the wordmark shrink instead of shoving the buttons
     off-screen on 320px handsets */
  .m-mheader-brand { margin-right: auto; display: flex; align-items: center; min-width: 0; }
  /* stays under the 44px buttons, so the bar height — and the drawer's
     padding-top below — are unaffected */
  .m-mheader-brand img {
    height: 24px; width: auto; max-width: 100%; display: block;
    object-fit: contain; object-position: left center;
  }

  /* one-tap call: the thing most visitors on a phone actually want */
  .m-mheader-call {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: none; color: #f3f2f2;
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-tap-highlight-color: transparent;
  }
  .m-mheader-call:active { background: rgba(255, 255, 255, 0.14); }

  .m-burger {
    position: relative; width: 44px; height: 44px; flex: none;
    padding: 0; border: 0; background: var(--color-accent); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .m-burger span {
    position: absolute; left: 13px; width: 18px; height: 2px; background: #fff;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1), opacity .16s linear;
  }
  .m-burger span:nth-child(1) { top: 15px; }
  .m-burger span:nth-child(2) { top: 21px; }
  .m-burger span:nth-child(3) { top: 27px; }
  .m-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .m-burger.is-open span:nth-child(2) { opacity: 0; }
  .m-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* — the drawer — always in the DOM so it can transition; the bar's higher
     z-index keeps it painted on top of the sheet — */
  .m-menu {
    position: fixed; inset: 0; z-index: 1; padding-top: 70px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: #000; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .24s ease, transform .28s cubic-bezier(.4, 0, .2, 1),
                visibility 0s linear .28s;
  }
  .m-menu.is-open {
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  }

  .m-menu-nav { display: flex; flex-direction: column; }
  .m-menu-link {
    display: flex; align-items: baseline; gap: 14px;
    padding: 20px 16px; text-decoration: none; color: #f3f2f2;
    font-family: var(--font-heading); font-weight: var(--font-heading-weight);
    font-size: 27px; line-height: 1.1; letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-tap-highlight-color: transparent;
    opacity: 0; transform: translateY(14px);
    transition: opacity .3s ease, transform .3s ease;
  }
  .m-menu-link:first-child { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .m-menu-link:active { background: rgba(255, 255, 255, 0.06); }
  .m-menu-link[aria-current='page'] {
    color: var(--color-accent);
    box-shadow: inset 3px 0 0 var(--color-accent);
  }
  .m-menu-num {
    font-size: 11px; letter-spacing: .1em; color: var(--color-accent);
    font-weight: 800; flex: none;
  }
  .m-menu-link svg { margin-left: auto; color: var(--color-accent); align-self: center; }
  /* items settle in one after another once the sheet is up */
  .m-menu.is-open .m-menu-link { opacity: 1; transform: none; }
  .m-menu.is-open .m-menu-link:nth-child(1) { transition-delay: .06s; }
  .m-menu.is-open .m-menu-link:nth-child(2) { transition-delay: .11s; }
  .m-menu.is-open .m-menu-link:nth-child(3) { transition-delay: .16s; }
  .m-menu.is-open .m-menu-link:nth-child(4) { transition-delay: .21s; }

  .m-menu-foot {
    display: flex; flex-direction: column; gap: 16px;
    padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    opacity: 0; transition: opacity .3s ease .22s;
  }
  .m-menu.is-open .m-menu-foot { opacity: 1; }
  .m-menu-cta { width: 100%; padding: 16px !important; font-size: 16px !important; }
  .m-menu-meta { font-size: 13px; line-height: 1.7; color: rgba(243, 242, 242, 0.6); }
  .m-menu-fb {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    color: #f3f2f2; font-size: 14px; text-decoration: none; opacity: .8;
  }
}

/* landscape phones: tighten up so the call button clears the fold */
@media (max-width: 860px) and (max-height: 520px) {
  .m-menu-link { padding: 12px 16px; font-size: 21px; }
  .m-menu-foot { gap: 10px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .m-menu-cta { padding: 12px !important; }
  .m-menu-meta { font-size: 12px; line-height: 1.5; }
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .m-menu, .m-menu-link, .m-menu-foot, .m-burger span { transition-duration: .01ms !important; }
  .m-menu.is-open .m-menu-link { transition-delay: 0s !important; }
}

@media (max-width: 760px) {
  /* — page gutters — */
  .m-wrap { padding-left: 16px !important; padding-right: 16px !important; }

  /* — grids — */
  .m-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .m-grid-cards { grid-template-columns: 1fr !important; gap: 26px !important; }
  /* Only for grids whose gap is plain empty space. Never put this on a grid
     that paints its dividers through the gap (background on the container +
     a 1–2px gap) — widening the gap turns those hairlines into thick bands. */
  .m-grid-auto { gap: 28px !important; }
  .m-gallery { grid-template-columns: 1fr !important; gap: 24px !important; }
  .m-cell { padding: 22px 18px 26px !important; }

  /* — hero — */
  .m-hero { gap: 28px !important; padding-top: 40px !important; padding-bottom: 44px !important; }
  .m-hero-actions { flex-direction: column !important; align-items: stretch !important; }
  .m-hero-actions .btn { width: 100%; }

  /* — service rows: image above the copy, whatever the DOM order — */
  .m-split-list { grid-auto-rows: auto; }
  .m-split { grid-template-columns: 1fr !important; }
  .m-split-media { aspect-ratio: 4 / 3; }
  .m-split-media { order: -1; min-height: 200px !important; }
  .m-split-body { padding: 24px 18px 28px !important; }

  /* — closing CTA: fixed backgrounds stutter or break on iOS — */
  .m-cta-row { gap: 16px !important; }
  .m-cta-div { display: none !important; }

  /* — contact page — */
  .m-contact { grid-template-columns: 1fr !important; gap: 32px !important; }
  .m-form-card { padding: 20px 16px !important; }
  .m-map { min-height: 220px !important; }

  /* — footer — */
  .m-footer-grid { gap: 26px !important; padding-top: 40px !important; }

  /* — touch targets, and 16px inputs so iOS doesn't zoom on focus — */
  .btn { min-height: 44px; }
  .input, select.input, textarea.input { font-size: 16px !important; }
}

@media (max-width: 560px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 21px; }
  .m-grid-3 { grid-template-columns: 1fr !important; }
  /* the four wizard labels can't fit side by side — the numbers carry it.
     The connector's bottom margin only existed to clear those labels. */
  .m-step-label { display: none !important; }
  .m-step-line { margin-bottom: 0 !important; }
  .m-sum-row { flex-wrap: wrap !important; gap: 2px !important; }
}


/* ══════════════════════════════════════════════════════════════════════════
   Components that used to be inline styles driven by the DC runtime. The
   markup is now static PHP, so the behaviour-specific styling lives here.
   ══════════════════════════════════════════════════════════════════════ */

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-accent); color: #fff; padding: 10px 16px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* — before / after slider — */
.ba {
  position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden;
  cursor: ew-resize; touch-action: none; user-select: none;
}
.ba img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* The source photos have black letterbox bars baked in, 24–42px top and
     bottom. object-fit:cover already eats ~33px of that; this nudge pushes
     the rest past the frame, which .ba's overflow:hidden then clips. Both
     halves of a pair scale identically, so the seam stays aligned. 1.021 is
     the minimum that clears the worst bar — 1.05 leaves margin. */
  transform: scale(1.05);
}
.ba-after, .ba-before { position: absolute; inset: 0; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: var(--color-accent); transform: translateX(-1px); pointer-events: none;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-bg); box-shadow: var(--shadow-md);
}
.ba-tag {
  position: absolute; top: 10px; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; padding: 4px 12px; border-radius: 20px;
  background: var(--color-accent); color: #fff; pointer-events: none;
}
.ba-tag-before { left: 10px; }
.ba-tag-after { right: 10px; }
.ba:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* — contact wizard — */
.wiz-steps { display: flex; align-items: flex-start; margin-bottom: 28px; }
.wiz-step { display: flex; align-items: center; flex: 1 1 auto; }
.wiz-step:last-child { flex: 0 0 auto; }
.wiz-dot {
  width: 34px; height: 34px; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 14px;
  border: 1.5px solid #ccc; color: #9a9a9a; background: transparent;
}
.wiz-dot.is-active, .wiz-dot.is-done {
  background: var(--color-accent); color: #fff; border-color: var(--color-accent);
}
.wiz-label { font-size: 11px; margin-top: 8px; color: #9a9a9a; font-weight: 600; white-space: nowrap; }
.wiz-dot.is-active + .wiz-label { color: var(--color-text); }
.wiz-line { height: 1px; background: #ccc; flex: 1; margin: 0 8px 20px; }
.wiz-line.is-done { background: var(--color-accent); }
.wiz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.wiz-actions .btn[hidden] { display: none; }
.wiz-status { font-size: 13px; color: var(--color-accent-700); margin-top: 12px; }

/* The wizard sits in a column that is only wide enough for four labels once
   the contact grid is back to two columns. Below that the numbers carry it —
   keeping the labels made the whole page scroll sideways. */
@media (max-width: 900px) {
  .wiz-label { display: none; }
  .wiz-line { margin-bottom: 0; }
}

/* — closing CTA band. The photo is a real <img> so the browser preloader can
     find it; the old CSS background with `attachment:fixed` was invisible to
     the preloader and repainted on every scroll frame. — */
.cta {
  position: relative; color: #fff; overflow: hidden;
  /* With attachment:fixed the image is sized against the viewport, not the
     section — that is where the parallax comes from, and why it looks less
     cropped than a section-sized image would. image-set keeps the 39 KB WebP
     for browsers that support it, with the JPEG as fallback. */
  background-color: #000;
  background-image: url('/assets/cta-car.jpg');
  background-image: image-set(url('/assets/cta-car.webp') type('image/webp'),
                              url('/assets/cta-car.jpg')  type('image/jpeg'));
  background-position: right 30%;
  background-size: cover;
  background-attachment: fixed;
}
/* iOS ignores attachment:fixed and renders it wrong, and on a phone the
   effect is mostly lost anyway — scroll with it there. */
@media (max-width: 760px) {
  .cta { background-attachment: scroll; background-position: center center; }
}
@media (prefers-reduced-motion: reduce) {
  .cta { background-attachment: scroll; }
}
.cta-shade {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.15) 100%);
}
.cta-inner { position: relative; }
.cta-badge {
  display: inline-block; padding: 4px 10px; margin: 0 0 20px;
  border: 1.5px solid var(--color-accent); color: var(--color-accent);
  font-size: 11px; letter-spacing: .08em; font-weight: 700; text-transform: uppercase;
}

/* — map: a static facade until the visitor asks for it. The Google iframe is
     ~700 KB and sets third-party cookies before any consent, so it must not
     load on its own. — */
.map-facade {
  position: relative; width: 100%; height: 100%; min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface); border: 0; cursor: pointer;
  font: inherit; color: var(--color-text); text-align: center; padding: 24px;
}
.map-facade:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.map-facade span { display: block; max-width: 34ch; font-size: 14px; opacity: .8; }
.map-facade strong { display: block; font-family: var(--font-heading); font-size: 17px; margin-bottom: 6px; }
.map-frame { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }

/* <picture> is an inline box by default, so a child <img> sized with
   height:100% has nothing to resolve against and collapses. display:contents
   removes the wrapper from layout entirely — the <img> becomes a direct child
   of the real container, which is what every rule here assumes. */
picture { display: contents; }

/* — services page: every row the same height —
   The photos have different proportions (usluga-elementy is 1408×768, the
   rest 1195×896). With height:100% resolving to auto, each row took its
   height from its own photo, so one row stood 90px taller than its
   neighbours. A fixed frame plus object-fit:cover crops instead of stretching.
   The min-height on the cell still applies on narrower screens, where the
   ratio would otherwise make the strip too thin — either way, all rows match. */
/* One grid for all six rows instead of six independent ones: grid-auto-rows:1fr
   makes every row as tall as the tallest, so a longer description no longer
   makes its row stand out. The rows were unequal for two separate reasons —
   photo proportions on wide screens, text length on narrow ones — and only
   this handles both. */
.m-split-list { display: grid; grid-auto-rows: 1fr; gap: 24px; }
.m-split-media { position: relative; aspect-ratio: 5 / 4; }
.m-split-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* — cookie consent bar —
   A bottom sheet rather than a full-screen blocker: the only thing behind the
   decision is a map, so blocking the whole site would be disproportionate. */
.cc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #000; color: #f3f2f2;
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .35);
  animation: ccUp .28s cubic-bezier(.4, 0, .2, 1) both;
}
.cc[hidden] { display: none; }
@keyframes ccUp { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cc { animation: none; } }

.cc-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cc-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 16px; margin: 0 0 4px;
}
.cc-desc { font-size: 13px; line-height: 1.6; margin: 0; max-width: 80ch; opacity: .75; }
.cc-desc a { color: var(--color-accent); }
.cc-actions { display: flex; gap: 12px; margin-left: auto; flex: none; }
.cc-actions .btn { padding: 12px 22px; min-height: 44px; }
/* Reject must not read as the lesser option */
.cc-actions .btn-secondary { border-color: rgba(255, 255, 255, .45); color: #f3f2f2; }
.cc-actions .btn-secondary:hover { background: rgba(255, 255, 255, .12); }

@media (max-width: 760px) {
  .cc-inner { gap: 16px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .cc-actions { margin-left: 0; width: 100%; }
  .cc-actions .btn { flex: 1; }
}

.map-facade-addr { display: block; margin-top: 10px; font-weight: 600; opacity: .9; }
