/* Archivo (Omnibus-Type, SIL Open Font License 1.1) — osie grubości i szerokości, z polskimi znakami; pliki lokalnie. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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";
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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;
}

/*
 * Runda I (A1–A2): jasny motyw = dawne kolory strony głównej sprzed 1.1.92 (commit de43a36: beton, papier, asfalt,
 * stal, żółty, plan) — domyślny dla wszystkich, niezależnie od ustawień systemu. Ciemny motyw (paleta z karty marki
 * z 1.1.92: granat, bursztyn) tylko po przełączniku w nagłówku: <html data-theme="dark"> ustawia skrypt w <head>
 * (zapis w localStorage „betnex-landing-theme”). Mapka kursu (.board) ma własne kolory — bez zmian w obu motywach.
 */
:root {
  --bg: #e3e4df;          /* --concrete */
  --surface: #f7f7f4;     /* --paper */
  --ink: #1d2124;         /* --asphalt */
  --muted: #333b40;
  --soft: #5a646b;        /* --steel */
  --line: #c3c7c4;
  --amber: #f4b400;       /* --yellow */
  --amber-hover: #ffc61a;
  --link: #1d2124;
  --navy: #1d2124;        /* ciemne elementy: przycisk logowania, pas „Zaloguj się albo zobacz demo”, kroki */
  --focus: #275b8c;       /* --plan */
  --field-border: #7d858a;
  --role-top: #1d2124;
  --step-line: #1d2124;
  --enter-text: #e9ebe7;
  --enter-muted: #c6cbc8;
  --enter-sub: #aab1ad;
  --enter-line: #3a4146;
  --shadow: rgba(29, 33, 36, 0.25);
  --wide: 118%;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #111827;
  --ink: #f3f4f6;
  --muted: #c4c9d2;
  --soft: #9ca3af;
  --line: #273244;
  --amber: #f59e0b;
  --amber-hover: #fbbf24;
  --link: #fbbf24;
  --navy: #111827;
  --focus: #93c5fd;
  --field-border: #9aa3af;
  --role-top: #f59e0b;
  --step-line: #273244;
  --enter-text: #e5e7eb;
  --enter-muted: #c4c9d2;
  --enter-sub: #aab1bd;
  --enter-line: #334155;
  --shadow: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
/* Runda I (I1.5): „Przejdź do treści” — pierwszy element strony, widoczny dopiero przy fokusie z klawiatury. */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 40; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Nagłówek przyklejony u góry: menu dostępne na całej stronie; po przewinięciu niższy i z linią u dołu. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; transition: padding 0.2s ease; }
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.topbar.is-stuck { border-bottom-color: var(--line); }
.topbar.is-stuck .top { padding-block: 10px; }
section[id] { scroll-margin-top: 84px; }
.mark { display: inline-flex; align-items: center; text-decoration: none; }
.mark img { display: block; }
.mark .on-dark { display: none; }
:root[data-theme="dark"] .mark .on-light { display: none; }
:root[data-theme="dark"] .mark .on-dark { display: block; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
/* Runda K (K1.1): menu na telefonie (≤ 900 px) — przycisk „Menu” (aria-expanded, aria-controls) w nagłówku; po kliknięciu
   pasek nagłówka (html.menu-open .topbar) rozciąga się na cały ekran (position: fixed; backdrop-filter paska tworzy blok
   zawierający dla fixed, więc panelu nie da się pozycjonować względem okna — stąd rozciągany jest sam pasek), a nav zawija
   się pod wiersz z logo jako lista: linki sekcji, przełącznik motywu (z etykietą) i „Zaloguj się”. Zamykanie: Esc, klik tła
   (pusta część ekranu), klik linku sekcji, przejście na szerokość komputera; fokus w pętli przycisk → linki → „Zaloguj się”
   (site.js). Na komputerze bez zmian (przycisk ukryty, linki w rzędzie). Przed K1.1 linki były poniżej 900 px ukryte. */
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink);
    font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease;
  }
  .menu-toggle:hover { background: var(--surface); border-color: var(--soft); }
  .menu-toggle svg { display: block; }
  .menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .nav { display: none; }
  html.menu-open .topbar { position: fixed; inset: 0; z-index: 10; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; overflow-y: auto; border-bottom: 0; }
  html.menu-open .top { flex-wrap: wrap; row-gap: 0; }
  .nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; flex-basis: 100%; width: 100%; padding: 12px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
  .nav.is-open a:not(.btn) { display: flex; align-items: center; min-height: 56px; border-top: 1px solid var(--line); font-size: 22px; font-weight: 700; color: var(--ink); }
  .nav.is-open .theme-toggle { margin-top: 20px; align-self: flex-start; width: auto; height: 48px; padding: 0 16px 0 12px; gap: 10px; border-radius: 999px; }
  .nav.is-open .theme-toggle::after { content: attr(aria-label); font-size: 15px; font-weight: 600; }
  .nav.is-open .btn-login { margin-top: 16px; min-height: 50px; font-size: 16px; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  html.menu-open .to-top, html.menu-open .cookie-fab { display: none; }
}
.to-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 10;
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  border: 2px solid var(--navy); border-radius: 50%; background: var(--amber); color: var(--navy); cursor: pointer;
  box-shadow: 0 6px 18px var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--amber-hover); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  border-radius: 8px; border: 2px solid var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; font-family: inherit;
  cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-main { background: var(--amber); border-color: var(--amber); color: var(--navy); }
/* Runda K (K1.2): przycisk z dopiskiem („Poproś o demo” + „kod wyślemy e-mailem w dni robocze”). */
.btn-stack { flex-direction: column; gap: 2px; padding-block: 7px; line-height: 1.2; }
.btn-stack small { font-size: 12px; font-weight: 600; }
.btn-main:hover { background: var(--amber-hover); border-color: var(--amber-hover); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--surface); }
:root[data-theme="dark"] .btn-line:hover { color: var(--bg); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn-login { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-login:hover { background: #333b40; border-color: #333b40; }
:root[data-theme="dark"] .btn-login { background: var(--amber); border-color: var(--amber); color: var(--navy); }
:root[data-theme="dark"] .btn-login:hover { background: var(--amber-hover); border-color: var(--amber-hover); }

/* Przełącznik motywu (Runda I, A2): księżyc w jasnym („Włącz ciemny motyw”), słońce w ciemnym; cel dotyku 44 px. */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { background: var(--surface); border-color: var(--soft); }
.theme-toggle svg { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hero */
.hero { padding-block: 40px 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; }
.hero h1 {
  margin: 0;
  font-weight: 800; font-stretch: var(--wide); font-size: clamp(2.35rem, 1rem + 3.6vw, 4.25rem);
  line-height: 0.98; letter-spacing: -0.03em;
}
.lead { margin: 0; max-width: 58ch; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.note { margin: 12px 0 0; font-size: 14px; color: var(--soft); }

/* Tablica kursu (mapka) — wygląd i kolory bez zmian w obu motywach (własne zmienne). */
/* Runda S (S33): --soft lokalnie jak w jasnym motywie — przyszłe etapy kursu na jasnej karcie w ciemnym motywie miały
   #9ca3af na #f7f7f4 (2,36:1); #5a646b daje ok. 5,9:1. */
.board { --paper: #f7f7f4; --line: #c3c7c4; --asphalt: #1d2124; --steel: #5a646b; --soft: #5a646b; --yellow: #f4b400; --plan: #275b8c; color: var(--asphalt); }
.board { margin: 44px 0 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 16px 20px 0; font-size: 14px; color: var(--steel); }
.board-head b { color: var(--asphalt); font-weight: 700; }
.map { display: block; width: 100%; height: auto; }
.map .street { stroke: #dfe1dc; stroke-width: 10; fill: none; stroke-linecap: round; }
.map .street-thin { stroke: #e7e8e4; stroke-width: 5; fill: none; }
.map .rail { stroke: #cfd2cd; stroke-width: 2; fill: none; stroke-dasharray: 2 6; }
.map .route-bed { stroke: #ffffff; stroke-width: 12; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map .route { stroke: var(--plan); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map .place { font: 700 15px "Archivo", sans-serif; fill: var(--asphalt); }
.map .place-sub { font: 400 13px "Archivo", sans-serif; fill: var(--steel); }
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.stage { padding: 14px 16px 16px; border-left: 1px solid var(--line); position: relative; }
.stage:first-child { border-left: 0; }
.stage::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 4px; background: transparent; transition: background-color 0.3s ease; }
.stage.done::before { background: var(--asphalt); }
.stage.now::before { background: var(--yellow); }
.stage b { display: block; font-size: 15px; font-weight: 700; }
.stage time { display: block; margin-top: 2px; font-size: 14px; color: var(--steel); font-variant-numeric: tabular-nums; }
.stage .who { display: block; margin-top: 6px; font-size: 13px; color: var(--steel); line-height: 1.4; }
.stage:not(.done):not(.now) b, .stage:not(.done):not(.now) time { color: var(--soft); } /* Runda I (decyzja właściciela po STOP I2): kontrast ≥ 4,5:1 */

/* Sekcje */
.section { padding-block: 88px 0; }
.section h2 { margin: 0; max-width: 26ch; font-weight: 800; font-stretch: var(--wide); font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); line-height: 1.05; letter-spacing: -0.02em; }
.section .intro { margin: 16px 0 0; max-width: 62ch; color: var(--muted); }

.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 44px; }
.role { border-top: 3px solid var(--role-top); padding-top: 18px; }
.role h3 { margin: 0; font-weight: 800; font-stretch: var(--wide); font-size: 1.3rem; letter-spacing: -0.01em; }
.role .who { margin: 4px 0 14px; font-size: 15px; color: var(--soft); }
.role ul { margin: 0; padding: 0; list-style: none; }
.role li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
/* Runda K (K1.3): jeden konkretny efekt na końcu każdej karty „Dla kogo”. */
.role .effect { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid var(--amber); background: var(--surface); font-size: 15px; line-height: 1.4; color: var(--ink); }
.role .effect b { font-weight: 800; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 44px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 28px 0 0; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 44px; right: 0; top: 21px; height: 2px; background: var(--step-line); }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--navy); color: var(--amber); font-weight: 800; font-size: 18px; margin-bottom: 16px;
  border: 2px solid var(--role-top);
}
.steps b { display: block; font-size: 18px; font-weight: 700; line-height: 1.3; }
.steps span { display: block; margin-top: 8px; font-size: 16px; color: var(--muted); line-height: 1.55; }

.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 40px 0 0; }
.more div { padding: 16px 0; border-top: 1px solid var(--line); }
.more dt { font-weight: 700; }
.more dd { margin: 4px 0 0; color: var(--muted); font-size: 16px; }

.secure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 40px 0 0; padding: 0; list-style: none; }
.secure li { padding: 16px 0; border-top: 1px solid var(--line); }
.secure b { display: block; font-weight: 700; }
.secure span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }

/* Runda I (I3.1–I3.2) → Runda J (J1.2–J1.3): zrzuty panelu w ramce laptopa / telefonu narysowanej w CSS (bez grafik
   urządzeń). Ramki ciemne w obu motywach (jak obudowy), zrzuty z danymi demo w jasnym i ciemnym motywie — strona pokazuje
   komplet zgodny z własnym motywem (.shot-light / .shot-dark). Siatka 12 kolumn, dwa rzędy: rząd 1 = laptop Dyspozytornia
   (kol. 1–8) + telefon Tryb kierowcy (9–12), rząd 2 = telefon Link śledzenia (1–4) + laptop Mapa floty (5–12). Każda figura
   zajmuje dwa wiersze siatki (subgrid): wiersz ramek (ramki wyrównane do dołu) i wiersz podpisów (12 px pod ramką, stała
   wysokość dwóch linii) — dlatego rzędy się nie rozjeżdżają niezależnie od długości podpisu. Laptop 16:10, telefon 9:19,5
   (maks. 320 px, wyśrodkowany). Poniżej 768 px: jedna kolumna w kolejności Dyspozytornia, Tryb kierowcy, Link śledzenia,
   Mapa floty. */
.shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; gap: 12px 32px; margin-top: 44px; }
.shot { display: grid; grid-template-rows: subgrid; grid-row: span 2; gap: 12px 0; margin: 0; }
.shot-dyspozytornia { grid-column: 1 / span 8; grid-row: 1 / span 2; }
.shot-kierowca { grid-column: 9 / span 4; grid-row: 1 / span 2; }
.shot-sledzenie { grid-column: 1 / span 4; grid-row: 3 / span 2; }
.shot-mapa { grid-column: 5 / span 8; grid-row: 3 / span 2; }
.shot-sledzenie .device, .shot-mapa .device { margin-top: 36px; } /* odstęp między rzędami (poza 12 px pod podpisem) */
.shot .device { align-self: end; }
.shot-phone > * { width: min(320px, 100%); justify-self: center; }
.shot picture, .shot img { display: block; width: 100%; height: auto; }
.shot .shot-dark { display: none; } /* specyficzność wyższa niż „.shot picture” wyżej */
:root[data-theme="dark"] .shot .shot-light { display: none; }
:root[data-theme="dark"] .shot .shot-dark { display: block; }
.device { background: #15181c; box-shadow: 0 18px 40px var(--shadow); }
.device-laptop { position: relative; padding: 10px 10px 12px; border-radius: 14px 14px 4px 4px; margin-bottom: 12px; }
.device-laptop img { border-radius: 4px; aspect-ratio: 16 / 10; object-fit: cover; }
.device-laptop::after { content: ""; position: absolute; left: max(-4%, -14px); right: max(-4%, -14px); bottom: -12px; height: 12px; border-radius: 0 0 14px 14px; background: linear-gradient(#b9bec2, #8e959a); }
.device-phone { padding: 9px; border-radius: 34px; }
.device-phone img { border-radius: 26px; aspect-ratio: 9 / 19.5; object-fit: cover; }
.shot figcaption { margin: 0; min-height: calc(2 * 1.5em); font-size: 15px; color: var(--muted); line-height: 1.5; }
.shot figcaption b { display: block; color: var(--ink); font-size: 16px; }
@supports not (grid-template-rows: subgrid) {
  .shot { display: block; }
  .shot figcaption { padding-top: 12px; } /* padding, nie margines: margines zlałby się z marginesem podstawy laptopa */
}
/* Dla kierownika budowy: tekst 7 kolumn + telefon 5 kolumn wyśrodkowany w pionie względem tekstu. */
.site-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; }
.site-text { grid-column: span 7; }
.site-phone { grid-column: span 5; display: block; grid-row: auto; }
.site-phone > * { margin-inline: auto; }
.site-phone figcaption { padding-top: 12px; }
/* Runda J (J4.5): sekcja „Surowce i zapotrzebowanie” — laptop 7 kolumn + tekst 5 kolumn (na telefonie jedna kolumna, laptop nad tekstem). */
.site-laptop { grid-column: span 7; display: block; grid-row: auto; }
.site-laptop figcaption { padding-top: 12px; }
.site-text-5 { grid-column: span 5; }
@media (max-width: 1023px) {
  /* tablet: 5 kolumn jest za wąskie na nagłówek „Surowce i zapotrzebowanie” — laptop nad tekstem, obie części na całą szerokość */
  .site-laptop, .site-text-5 { grid-column: span 12; }
}
.ticks { margin: 16px 0 0; padding-left: 1.25em; max-width: 62ch; color: var(--muted); }
.ticks li { margin: 6px 0; }

/* Runda J (J1.4): „Dzień z Betnex” — na komputerze siatka 10 kolumn (godziny) × 3 wiersze (Dyspozytor / Kierowca / Budowa),
   każda karta w kolumnie swojej godziny i wierszu swojej strony; kolor górnej krawędzi = kto. Na telefonie (< 1024 px)
   pionowa lista w kolejności godzin: godzina po lewej, kto i treść po prawej. */
.day { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); gap: 16px 10px; margin: 40px 0 0; padding: 0; list-style: none; }
.day-ev { margin: 0; padding: 10px 10px 12px; border-top: 3px solid var(--line); background: var(--surface); border-radius: 0 0 8px 8px; font-size: 13px; line-height: 1.4; }
.day-ev time { display: block; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.day-who { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soft); }
.day-ev p { margin: 6px 0 0; color: var(--muted); }
.lane-dyspozytor { grid-row: 1; border-top-color: var(--amber); }
.lane-kierowca { grid-row: 2; border-top-color: var(--ink); }
.lane-budowa { grid-row: 3; border-top-color: var(--focus); }
.day > li:nth-child(1) { grid-column: 1; }
.day > li:nth-child(2) { grid-column: 2; }
.day > li:nth-child(3) { grid-column: 3; }
.day > li:nth-child(4) { grid-column: 4; }
.day > li:nth-child(5) { grid-column: 5; }
.day > li:nth-child(6) { grid-column: 6; }
.day > li:nth-child(7) { grid-column: 7; }
.day > li:nth-child(8) { grid-column: 8; }
.day > li:nth-child(9) { grid-column: 9; }
.day > li:nth-child(10) { grid-column: 10; }
@media (max-width: 1023px) {
  .day { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 0; border-bottom: 1px solid var(--line); }
  .day-ev, .lane-dyspozytor, .lane-kierowca, .lane-budowa, .day > li:nth-child(n) { grid-column: auto; grid-row: auto; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 15px; }
  .day-ev time { grid-row: span 2; font-size: 16px; }
  .day-who { margin-top: 0; }
  .day-ev p { margin-top: 2px; }
  .lane-dyspozytor time { color: #7a5500; } /* kontrast ≥ 4,5:1 na tle strony */
  :root[data-theme="dark"] .lane-dyspozytor time { color: var(--amber); }
  .lane-budowa time { color: var(--focus); }
}

/* Runda J (J1.5): „Bez Betnex i z Betnex” — tabela dwóch kolumn; na telefonie (< 640 px) każdy wiersz jako dwa akapity
   z etykietą kolumny. */
.compare { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 16px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
.compare th { padding-top: 0; border-top: 0; font-weight: 800; font-stretch: var(--wide); font-size: 1.1rem; }
.compare td:first-child { width: 40%; color: var(--soft); }
.compare td:last-child { color: var(--ink); font-weight: 500; }
@media (max-width: 639px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr, .compare td { display: block; }
  .compare tr { padding: 12px 0; border-top: 1px solid var(--line); }
  .compare td { width: auto; padding: 2px 0; border-top: 0; }
  .compare td::before { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soft); }
  .compare td:first-child::before { content: "Bez Betnex"; }
  .compare td:last-child { margin-top: 6px; }
  .compare td:last-child::before { content: "Z Betnex"; }
}

/* Runda I (I3.3): FAQ — <details>/<summary> (klawiatura: Tab + Enter/Spacja, bez skryptów). */
.faq { max-width: 80ch; margin-top: 36px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 500; line-height: 1; color: var(--soft); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.faq p { margin: 0 0 18px; max-width: 70ch; color: var(--muted); }
.policy-link { margin: 24px 0 0; font-size: 16px; }
.policy-link a { color: var(--link); font-weight: 700; text-underline-offset: 4px; }

/* Kontakt: formularz + e-mail */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; margin-top: 40px; align-items: start; }
.contact-side p { margin: 0 0 14px; color: var(--muted); }
.contact-lines { display: grid; gap: 8px; margin: 18px 0 0; font-size: 18px; font-weight: 700; }
.contact-lines a { color: var(--ink); text-underline-offset: 4px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; font-size: 15px; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--field-border); border-radius: 8px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 16px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input[type=radio], .field input[type=checkbox] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: #d97706; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field .hint { font-size: 13px; color: var(--soft); }
.field [aria-invalid="true"] { border-color: #dc2626; }
.field .err { font-size: 14px; color: #b91c1c; }
:root[data-theme="dark"] .field .err { color: #fca5a5; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px 18px; border: 0; padding: 0; margin: 0; }
.kinds label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 500; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { margin-top: 18px; }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-retry { margin-top: 10px; }
.form-status.ok { color: #047857; }
.form-status.bad { color: #b91c1c; }
:root[data-theme="dark"] .form-status.ok { color: #6ee7b7; }
:root[data-theme="dark"] .form-status.bad { color: #fca5a5; }
.clause { margin: 18px 0 0; font-size: 13px; line-height: 1.55; color: var(--soft); }
.clause a { color: var(--link); }
/* Linki w treści w jasnym motywie: asfaltowy tekst (kontrast) z żółtym podkreśleniem w kolorze marki; po najechaniu asfalt. */
:root:not([data-theme="dark"]) :is(.policy-link, .clause, .policy article, .contact-lines) a { text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
:root:not([data-theme="dark"]) :is(.policy-link, .clause, .policy article, .contact-lines) a:hover { text-decoration-color: var(--ink); }

/* Wejście — ciemny pas */
.enter { margin-top: 96px; background: var(--navy); color: var(--enter-text); padding-block: 64px; }
.enter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.enter h2 { margin: 0; font-weight: 800; font-stretch: var(--wide); font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); line-height: 1.05; letter-spacing: -0.02em; color: #fff; }
.enter p { margin: 16px 0 0; max-width: 52ch; color: var(--enter-muted); }
.doors { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--enter-line); }
.door { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--enter-line); text-decoration: none; color: #fff; }
.door b { display: block; font-size: 19px; font-weight: 700; font-stretch: var(--wide); }
.door span { display: block; margin-top: 2px; font-size: 15px; color: var(--enter-sub); }
.door svg { flex: none; color: var(--amber); transition: transform 0.15s ease; }
.door:hover svg { transform: translateX(4px); }

/* Strony prawne: polityka prywatności i regulamin (Runda I, D1 — style przeniesione z polityki, wspólne). */
.policy { padding-block: 32px 72px; }
.policy h1 { margin: 0; font-weight: 800; font-stretch: var(--wide); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); line-height: 1.05; letter-spacing: -0.02em; }
.policy .updated { margin: 12px 0 0; color: var(--soft); font-size: 15px; }
.policy-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; margin-top: 36px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 15px; }
.toc p { margin: 0 0 8px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--muted); text-underline-offset: 3px; }
.toc a:hover { color: var(--ink); }
.policy article { max-width: 72ch; }
.policy article h2 { margin: 40px 0 10px; font-size: 1.45rem; font-weight: 800; font-stretch: var(--wide); line-height: 1.2; scroll-margin-top: 92px; }
.policy article h2:first-child { margin-top: 0; }
.policy article h3 { margin: 24px 0 8px; font-size: 1.1rem; font-weight: 700; }
.policy article p, .policy article li { color: var(--muted); }
.policy article strong { color: var(--ink); }
.policy article ul, .policy article ol { padding-left: 22px; }
.policy article li { margin: 4px 0; }
.policy article a { color: var(--link); text-underline-offset: 3px; }
.policy table { width: 100%; border-collapse: collapse; margin: 12px 0 4px; font-size: 15px; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 9px 10px; border-top: 1px solid var(--line); color: var(--muted); }
.policy th { color: var(--ink); font-weight: 700; background: var(--surface); }
.table-wrap { overflow-x: auto; }
@media (max-width: 900px) {
  .policy-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--surface); }
}
/* Runda K (K1.8 / K1.10): proste strony (404, Status systemu) — nagłówek, akapit, przyciski, uwaga. */
.simple { padding-block: 40px 56px; }
.simple-kicker { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.simple h1 { margin: 0; max-width: 20ch; font-weight: 800; font-stretch: var(--wide); font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.02; letter-spacing: -0.03em; }
.simple .intro { margin: 18px 0 0; max-width: 62ch; color: var(--muted); }
.simple .actions { margin-top: 28px; }
.simple-note { margin: 28px 0 0; max-width: 62ch; font-size: 15px; color: var(--soft); }
.simple-note a, .simple .intro a { color: var(--link); font-weight: 600; text-underline-offset: 3px; }
/* Runda K (K1.10): karta stanu — kolor kropki wg data-state (ok / degraded / down / maintenance / unknown / loading);
   teksty zawsze w kolorze tekstu strony (kontrast), kolor jest tylko dodatkiem. */
.status-card { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.status-main { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 22px; font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.01em; }
.status-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--soft) 22%, transparent); }
.status-card[data-state="ok"] .status-dot { background: #047857; box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.22); }
.status-card[data-state="degraded"] .status-dot { background: #b45309; box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.22); }
.status-card[data-state="down"] .status-dot, .status-card[data-state="unknown"] .status-dot { background: #b91c1c; box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.22); }
.status-card[data-state="maintenance"] .status-dot { background: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
:root[data-theme="dark"] .status-card[data-state="ok"] .status-dot { background: #34d399; }
:root[data-theme="dark"] .status-card[data-state="degraded"] .status-dot { background: #fbbf24; }
:root[data-theme="dark"] .status-card[data-state="down"] .status-dot, :root[data-theme="dark"] .status-card[data-state="unknown"] .status-dot { background: #f87171; }
.status-sub { margin: 6px 0 0 26px; color: var(--muted); }
.status-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 18px 0 0; }
.status-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.status-list dt { color: var(--muted); }
.status-list dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.status-list dd.is-good { color: #047857; }
.status-list dd.is-bad { color: #b91c1c; }
:root[data-theme="dark"] .status-list dd.is-good { color: #6ee7b7; }
:root[data-theme="dark"] .status-list dd.is-bad { color: #fca5a5; }
@media (max-width: 640px) { .status-list { grid-template-columns: minmax(0, 1fr); } .status-main { font-size: 19px; } }
.crumbs { margin: 0 0 18px; font-size: 14px; color: var(--soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* Pływający przycisk cookies (Runda I, C — tylko strona główna): lewy dolny róg, nad treścią (z-index 20, jak nagłówek
   i „na górę” — 10), pod banerem i oknem zgody (CookieConsent: 350). Pokazywany dopiero, gdy biblioteka zgód się wczyta
   (public/cookie-consent.js zdejmuje hidden). Ukryty przy otwartym banerze lub oknie ustawień (klasy biblioteki na <html>)
   i chwilowo („is-tucked”, site.js), gdy nachodziłby na przycisk wysyłki formularza, linki stopki albo „na górę”. */
.cookie-fab {
  position: fixed; z-index: 20; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--amber); color: #1d2124; cursor: pointer;
  box-shadow: 0 4px 14px var(--shadow); transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.15s ease;
}
.cookie-fab[hidden], html.show--consent .cookie-fab, html.show--preferences .cookie-fab { display: none; }
.cookie-fab:hover { background: var(--amber-hover); }
.cookie-fab svg { display: block; flex: none; }
.cookie-fab.is-tucked { opacity: 0; visibility: hidden; pointer-events: none; transition: none; }
.cookie-fab-label {
  position: absolute; left: calc(100% + 8px); top: 50%; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap;
  opacity: 0; visibility: hidden; transform: translate(-6px, -50%); pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
@media (hover: hover) {
  .cookie-fab:hover .cookie-fab-label, .cookie-fab:focus-visible .cookie-fab-label { opacity: 1; visibility: visible; transform: translate(0, -50%); }
}
@media print { .cookie-fab, .to-top { display: none !important; } }

/* Stopka (Runda I, B1 — styl nexuromedia.pl): cienka linia, jeden niski rząd, mały wyciszony tekst; po lewej prawa
   autorskie, po prawej linki prawne. Ta sama na stronie głównej, w polityce i w regulaminie. Danych firmy tu nie ma —
   są w polityce i regulaminie. */
.site-footer { border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; line-height: 1.5; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 20px; }
.foot-copy { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.site-footer a, .foot-links button { color: inherit; font: inherit; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; transition: color 0.15s ease; }
.site-footer a:hover, .site-footer a:focus-visible, .foot-links button:hover, .foot-links button:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* Do szerokości, przy której pływające przyciski (cookies po lewej, „na górę” po prawej) wchodzą na treść stopki:
   miejsce pod nimi po przewinięciu na sam dół. */
@media (max-width: 1300px) {
  .foot { padding-bottom: calc(20px + 56px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero h1 { max-width: 18ch; font-size: clamp(2.35rem, 1.2rem + 4.6vw, 4.25rem); }
}
@media (max-width: 900px) {
  .roles, .secure { grid-template-columns: 1fr; gap: 0 36px; }
  .roles { gap: 36px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0; }
  .steps li:not(:last-child)::after { left: 21px; right: auto; top: 44px; bottom: -24px; width: 2px; height: auto; }
  .steps li::before { margin: 0; grid-row: span 2; }
  .steps span { margin-top: 2px; }
  .more { grid-template-columns: 1fr; }
  .contact-grid, .enter-grid { grid-template-columns: 1fr; gap: 32px; }
}
/* Runda J (J1.2–J1.3): telefon (< 768 px) — zrzuty w jednej kolumnie (kolejność jak w HTML), laptopy na całą szerokość,
   telefony wyśrodkowane; w sekcji dla kierownika budowy telefon pod tekstem. */
@media (max-width: 767px) {
  .shots { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 40px; }
  .shot, .shot-dyspozytornia, .shot-kierowca, .shot-sledzenie, .shot-mapa { display: block; grid-column: auto; grid-row: auto; }
  .shot-sledzenie .device, .shot-mapa .device { margin-top: 0; }
  .shot-phone > * { margin-inline: auto; }
  .shot figcaption { padding-top: 12px; }
  .site-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .site-text, .site-phone, .site-laptop, .site-text-5 { grid-column: auto; }
  .site-laptop { order: -1; } /* J4.5: na telefonie laptop nad tekstem, jak w pozostałych sekcjach */
  .device-laptop::after { left: max(-3%, -14px); right: max(-3%, -14px); } /* podstawa laptopa w marginesie strony (16 px), bez przewijania w poziomie */
}
/* Wąski telefon (320–400 px): logo trochę mniejsze, a gdy i tak brakuje miejsca (dłuższy „Przejdź do panelu”), menu
   przechodzi pod logo zamiast przewijać stronę w poziomie. */
@media (max-width: 400px) {
  .top { flex-wrap: wrap; row-gap: 8px; }
  .mark img { width: 112px; height: auto; }
  .btn-small { padding: 0 12px; }
}
/* Telefon: dwie linie — najpierw linki (zawijane), potem prawa autorskie; cele dotyku 44 px. */
@media (max-width: 640px) {
  .foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .foot-links { order: -1; gap: 0 16px; }
  .foot-links a, .foot-links button { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-copy a { display: inline-block; padding-block: 12.5px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 24px; }
  .board { margin-inline: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { border-left: 0; border-top: 1px solid var(--line); }
  .stage:nth-child(even) { border-left: 1px solid var(--line); }
  .stage:last-child { grid-column: span 2; }
  .map .place { font-size: 34px; }
  .map .place-sub { display: none; }
  .section { padding-top: 64px; }
  .form { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .enter { margin-top: 72px; padding-block: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage::before, .btn, .door svg, .top, .topbar, .to-top, .site-footer a, .foot-links button, .theme-toggle, .cookie-fab, .cookie-fab-label, .menu-toggle { transition: none; }
}
