@import "tokens-yDxjiIK.css";
@import "map-5ko7gdA.css";

/*
 * Część publiczna Portalu Parkingowego Piaseczno.
 *
 * Język wizualny wspólny z innymi usługami gminy (Partnerzy PKM): grafit z ziarnem, czerwień
 * z herbu i Karty Mieszkańca (#e41d36) jako czerwone koło w rogu, krój Bricolage Grotesque
 * w nagłówkach, Geist w tekście i Geist Mono w liczbach. Bohater strony: bilet z parkomatu.
 * Kolory funkcjonalne z ulicy: SPP niebieski (niebieskie parkomaty), MPP żółty (żółte parkomaty).
 *
 * tokens.css zostaje wspólny z panelem urzędnika; tutaj nadpisujemy jego role (--color-*)
 * tylko dla części publicznej, więc szablony e-usług i formularzy dziedziczą nową paletę.
 *
 * Kontrasty (WCAG 2.1, wzór luminancji względnej):
 *   biały na czerwieni #e41d36            4.64:1   przyciski główne
 *   biały na #c8102e                      5.88:1   hover przycisku
 *   link #c8102e na bieli / na #f4f4f5    5.88 / 5.35:1
 *   tekst #1c1d20 na bieli                16.9:1
 *   wyciszony #5f6168 na bieli / #f4f4f5  6.18 / 5.63:1
 *   akcent #ff8a95 na graficie #212226    7.05:1   druga linia tytułu, linki na ciemnym
 *   jasny #b9bbc1 na graficie             8.28:1
 *   SPP #1d5fd1 na bieli                  5.82:1   (tekst #16489f na #e8f0fd 7.44:1)
 *   tekst #1c1d20 na żółci MPP #f2b705    9.27:1   (tekst #6b4f00 na #fff6d6 7.07:1)
 *   sukces #0d6b38/#e2f6ea 5.86, uwaga #754b00/#fdf2d6 6.82, błąd #9b0f24/#fdeaec 7.30
 *   tekst na papierze biletu #f6f1e4      14.9:1, wyciszony #6a6457 5.21:1
 *   ramka pola #7c7e85 na bieli           4.12:1   (wymagane 3:1)
 *   czerwień #e41d36 na grafit            3.43:1   tylko dekoracja (koło, kropki)
 *
 * Spis: Czcionki, Tokeny, Wysoki kontrast, Bazowe, Narzędzia, Pasek dostępności, Nagłówek,
 * Nawigacja, Pas tytułowy, Arkusz i sekcje, Karty, Przyciski, Formularze, Komunikaty, Odznaki,
 * Tabele, Paginacja, Akordeon, Kroki, Statystyki, Lista z ikonami, Kontakt, Aktualności,
 * Stopka, Cookie, Strona główna, Bilet, Styleguide, Responsywność, Ruch, Druk.
 */

/* ============================================================ Czcionki (OFL, z serwera portalu) */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-wght-normal-XEJcKrT.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal-xZIEQZr.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-wght-normal-fE8Pnk7.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-ext-wght-normal-yUJG_9Z.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght-normal-bVnjbCM.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-ext-wght-normal-TGl-bNU.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ============================================================ Tokeny */
:root {
    --g-950: #121315;
    --g-900: #1c1d20;
    --g-850: #212226;
    --g-800: #2b2c31;
    --g-700: #3e4046;
    --g-600: #55575e;
    --g-500: #7c7e85;
    --g-400: #9a9ca3;
    --g-300: #b9bbc1;
    --g-200: #dcdde0;
    --g-100: #ececee;
    --g-50: #f6f6f7;

    --red: #e41d36;
    --red-deep: #c8102e;
    --red-ink: #a50d26;
    --red-soft: #fdf0f1;
    --red-on-dark: #ff8a95;

    --spp: #1d5fd1;
    --spp-ink: #16489f;
    --spp-soft: #e8f0fd;
    --mpp: #f2b705;
    --mpp-ink: #6b4f00;
    --mpp-soft: #fff6d6;

    --paper: #f4f4f5;
    --surface: #ffffff;
    --ink: #1c1d20;
    --ink-2: #3a3c41;
    --muted: #5f6168;
    --hair: rgba(28, 29, 32, .08);
    --hair-2: rgba(28, 29, 32, .16);
    --field: #7c7e85;

    --ok-ink: #0d6b38;
    --ok-soft: #e2f6ea;
    --warn-ink: #754b00;
    --warn-soft: #fdf2d6;
    --bad-ink: #9b0f24;
    --bad-soft: #fdeaec;

    --ticket-paper: #f6f1e4;
    --ticket-ink: #1c1d20;
    --ticket-muted: #6a6457;

    --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --r-xl: 28px;
    --r-lg: 22px;
    --r-md: 16px;
    --r-sm: 12px;
    --spring: cubic-bezier(.32, .72, 0, 1);
    --shadow-1: 0 1px 2px rgba(22, 23, 26, .05), 0 10px 26px -14px rgba(22, 23, 26, .18);
    --shadow-2: 0 2px 6px rgba(22, 23, 26, .06), 0 30px 60px -28px rgba(22, 23, 26, .34);
    --bezel: 0 0 0 5px rgba(28, 29, 32, .022), 0 0 0 6px rgba(28, 29, 32, .05);
    --grain: url("../images/grain-XJamppe.png");
    --graphite: #212226;
    --graphite-bg: radial-gradient(90% 130% at 88% -20%, #3a3c42 0%, transparent 58%), radial-gradient(70% 90% at 0% 110%, #0e0f10 0%, transparent 70%), #212226;
    --disc: #e41d36;
    --disc-r: clamp(7rem, 21vw, 16rem);

    --header-h: 5.25rem;
    --container-max: 74rem;

    /* Role z tokens.css przemapowane na nową paletę (tylko część publiczna) */
    --color-primary: var(--red-deep);
    --color-primary-dark: var(--ink);
    --color-primary-light: var(--red-soft);
    --color-primary-50: var(--g-50);
    --color-primary-200: var(--g-200);
    --color-primary-800: var(--ink);
    --color-on-primary: #ffffff;
    --color-text: var(--ink);
    --color-muted: var(--muted);
    --color-bg: var(--paper);
    --color-surface: var(--surface);
    --color-surface-alt: var(--g-50);
    --color-border: var(--g-200);
    --color-border-strong: var(--field);
    --color-link: var(--red-deep);
    --color-link-hover: var(--red-ink);
    --color-focus: var(--g-700);
    --color-focus-inverse: #ffffff;
    --color-accent: var(--red);
    --color-success: var(--ok-ink);
    --color-success-bg: var(--ok-soft);
    --color-success-text: var(--ok-ink);
    --color-success-border: #bfe6cf;
    --color-warning: var(--warn-ink);
    --color-warning-bg: var(--warn-soft);
    --color-warning-text: var(--warn-ink);
    --color-warning-border: #f1dba2;
    --color-danger: var(--bad-ink);
    --color-danger-dark: #7a0b1c;
    --color-danger-bg: var(--bad-soft);
    --color-danger-text: var(--bad-ink);
    --color-danger-border: #f5c3ca;
    --color-info: var(--g-700);
    --color-info-bg: var(--g-50);
    --color-info-text: var(--ink);
    --color-info-border: var(--g-200);
    --radius: var(--r-sm);
    --radius-md: var(--r-sm);
    --radius-lg: var(--r-lg);
    --shadow-md: var(--shadow-1);
    --shadow-lg: var(--shadow-2);
    --font-sans: var(--sans);
    --font-mono: var(--mono);
}

/* ============================================================ Wysoki kontrast
   Czarne tło, biały tekst, żółte linki i akcenty, bez tekstur, kół i cieni. */
html[data-contrast="high"] {
    --g-950: #000; --g-900: #000; --g-850: #000; --g-800: #000; --g-700: #fff; --g-600: #fff; --g-500: #fff;
    --g-400: #fff; --g-300: #fff; --g-200: #fff; --g-100: #000; --g-50: #000;
    --red: #ffff00; --red-deep: #ffff00; --red-ink: #ffff00; --red-soft: #000; --red-on-dark: #ffff00;
    --spp: #ffff00; --spp-ink: #fff; --spp-soft: #000; --mpp: #ffff00; --mpp-ink: #fff; --mpp-soft: #000;
    --paper: #000; --surface: #000; --ink: #fff; --ink-2: #fff; --muted: #fff;
    --hair: #fff; --hair-2: #fff; --field: #fff;
    --ok-ink: #fff; --ok-soft: #000; --warn-ink: #fff; --warn-soft: #000; --bad-ink: #fff; --bad-soft: #000;
    --ticket-paper: #000; --ticket-ink: #fff; --ticket-muted: #fff;
    --shadow-1: none; --shadow-2: none; --bezel: 0 0 0 2px #fff;
    --grain: none; --graphite: #000; --graphite-bg: #000; --disc: transparent;
    --color-primary: #ffff00; --color-primary-dark: #fff; --color-primary-light: #000; --color-primary-50: #000;
    --color-on-primary: #000; --color-text: #fff; --color-muted: #fff; --color-bg: #000; --color-surface: #000;
    --color-surface-alt: #000; --color-border: #fff; --color-border-strong: #fff; --color-link: #ffff00;
    --color-link-hover: #ffff00; --color-focus: #ffff00; --color-focus-inverse: #ffff00; --color-accent: #ffff00;
    --color-success: #fff; --color-success-bg: #000; --color-success-text: #fff; --color-success-border: #fff;
    --color-warning: #fff; --color-warning-bg: #000; --color-warning-text: #fff; --color-warning-border: #fff;
    --color-danger: #fff; --color-danger-dark: #fff; --color-danger-bg: #000; --color-danger-text: #fff; --color-danger-border: #fff;
    --color-info: #fff; --color-info-bg: #000; --color-info-text: #fff; --color-info-border: #fff;
}

html[data-contrast="high"] .btn-primary,
html[data-contrast="high"] .site-nav a[aria-current="page"],
html[data-contrast="high"] .seg input:checked + label,
html[data-contrast="high"] .a11y-btn[aria-pressed="true"],
html[data-contrast="high"] .step-btn { color: #000; }
html[data-contrast="high"] .sheet,
html[data-contrast="high"] .card,
html[data-contrast="high"] .tile,
html[data-contrast="high"] .ticket,
html[data-contrast="high"] .section-alt,
html[data-contrast="high"] .notice-box,
html[data-contrast="high"] .contact-card,
html[data-contrast="high"] .table-wrapper,
html[data-contrast="high"] .accordion > details,
html[data-contrast="high"] .cookie-banner { border: 2px solid #fff; }
/* Elementy z własnym wypełnieniem: w wysokim kontraście czarne z ramką albo żółte z czarnym tekstem */
html[data-contrast="high"] .hero-chips a,
html[data-contrast="high"] .site-footer a,
html[data-contrast="high"] .live-pill,
html[data-contrast="high"] .page-head a { color: #fff; }
html[data-contrast="high"] .site-footer a,
html[data-contrast="high"] .page-head a,
html[data-contrast="high"] .hero-chips a { text-decoration: underline; }
html[data-contrast="high"] .street-search { background: #000; box-shadow: 0 0 0 2px #fff; }
html[data-contrast="high"] .step-btn,
html[data-contrast="high"] .btn-go-icon,
html[data-contrast="high"] .ticket .btn-go-icon,
html[data-contrast="high"] .tile-go,
html[data-contrast="high"] .card-link-arrow,
html[data-contrast="high"] .ticket-mark,
html[data-contrast="high"] .zone-chips li,
html[data-contrast="high"] .week li.is-today,
html[data-contrast="high"] .week li.is-today span,
html[data-contrast="high"] .week li.is-today b,
html[data-contrast="high"] .site-nav a[aria-current="page"] .nav-icon,
html[data-contrast="high"] .steps > li::before { background: #ffff00; color: #000; }
html[data-contrast="high"] .btn-dark,
html[data-contrast="high"] .btn-secondary,
html[data-contrast="high"] .menu-toggle,
html[data-contrast="high"] .free-card,
html[data-contrast="high"] .tariff-head,
html[data-contrast="high"] .tariff-mark,
html[data-contrast="high"] .tile-dark,
html[data-contrast="high"] .compare,
html[data-contrast="high"] .pay-card { background: #000; color: #fff; box-shadow: 0 0 0 2px #fff; }
html[data-contrast="high"] .seg input:checked + label,
html[data-contrast="high"] .seg input:checked + label small { background: #ffff00; color: #000; }
html[data-contrast="high"] .free-card::after,
html[data-contrast="high"] .contact-card::after,
html[data-contrast="high"] .page-head::after { display: none; }
html[data-contrast="high"] .site-nav ul { box-shadow: 0 0 0 2px #fff; }
html[data-contrast="high"] .sheet .contact-card .btn-primary,
html[data-contrast="high"] .tile-actions .btn-primary { color: #000; }
html[data-contrast="high"] .ticket-wrap::before,
html[data-contrast="high"] .ticket-barcode { display: none; }
html[data-contrast="high"] .ticket { mask: none; -webkit-mask: none; background: #000; }

/* ============================================================ Bazowe */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 1.5rem;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
    transition: color .2s var(--spring);
}

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

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .6em;
    color: var(--ink);
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

h1, .h1 { font-size: clamp(2.125rem, 1.6rem + 2.2vw, 3.375rem); line-height: 1.02; letter-spacing: -.035em; }
h2, .h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); margin-top: 1.75em; letter-spacing: -.025em; }
h3, .h3 { font-size: 1.25rem; margin-top: 1.5em; font-weight: 650; }
h4, .h4 { font-size: 1.0625rem; margin-top: 1.25em; font-weight: 650; }

.h1, .h2, .h3, .h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; }

p, ul, ol, dl, blockquote, figure { margin: 0 0 1rem; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: .3rem; }
li::marker { color: var(--g-400); }
dt { font-weight: 600; }
dd { margin: 0 0 .5rem; }
strong, b { font-weight: 650; }

img, svg, video { max-width: 100%; height: auto; }

hr { border: 0; border-top: 1px solid var(--hair-2); margin: 2rem 0; }

code, kbd, pre { font-family: var(--mono); font-size: .92em; }
pre { padding: .75rem 1rem; overflow-x: auto; margin: 0 0 1rem; background: var(--g-50); border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--hair); }
code:not(pre code) { padding: .05em .35em; background: var(--g-50); border-radius: 6px; box-shadow: 0 0 0 1px var(--hair); }

blockquote { padding: .5rem 1.25rem; border-left: 3px solid var(--red); color: var(--ink-2); }

small, .text-small { font-size: .875rem; }

.lead { max-width: 62ch; color: var(--muted); font-size: 1.125rem; }

.icon {
    flex: none;
    width: 1.25em;
    height: 1.25em;
    vertical-align: -.25em;
    fill: currentColor;
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
    border-radius: 4px;
}

main:focus,
[tabindex="-1"]:focus { outline: none; }

::selection { background: var(--red); color: #fff; }

/* ============================================================ Narzędzia */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: .6rem 1.1rem;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: .5rem;
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--g-900);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.container-narrow { max-width: 48rem; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 2rem !important; }
.stack > * + * { margin-top: 1rem; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
}

.grid-2, .grid-3 {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

/* ============================================================ Pasek dostępności */
.a11y-bar {
    position: relative;
    z-index: 30;
    background: var(--g-950);
    color: var(--g-300);
    font-size: .8125rem;
}

.a11y-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    min-height: 2.5rem;
}

.a11y-links,
.a11y-controls,
.a11y-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem;
}

.a11y-controls { gap: .5rem; }

.a11y-bar a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2rem;
    padding: 0 .65rem;
    border-radius: 999px;
    color: var(--g-300);
    text-decoration: none;
}

.a11y-bar a:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.a11y-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-width: 2.25rem;
    min-height: 2rem;
    padding: 0 .7rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: var(--g-200);
    font: inherit;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color .25s var(--spring), color .25s var(--spring);
}

.a11y-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* Stan aktywny: wypełnienie + podkreślenie (nie tylko kolor) */
.a11y-btn[aria-pressed="true"] {
    background: #fff;
    color: var(--g-950);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .2em;
}

.a11y-size { min-width: 2.5rem; padding: 0 .55rem; font-family: var(--display); }
.a11y-bar :focus-visible { outline-color: #fff; }

/* ============================================================ Nagłówek (przezroczysty, leży na grafitowym pasie) */
.site-header {
    position: relative;
    z-index: 20;
    height: var(--header-h);
    color: #fff;
}

.site-header > .container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 100%;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    padding: .25rem .5rem .25rem 0;
    border-radius: var(--r-sm);
    color: #fff;
    text-decoration: none;
}

.site-brand:hover { color: #fff; }
.site-brand:focus-visible { outline-color: #fff; }

.site-brand-logo {
    display: block;
    flex: none;
    width: auto;
    height: 2.6rem;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    padding-left: .9rem;
    border-left: 1px solid rgba(255, 255, 255, .18);
    line-height: 1.1;
}

.site-brand-name {
    font-family: var(--display);
    font-size: 1.3125rem;
    font-weight: 700;
    letter-spacing: -.025em;
}

.site-brand-sub {
    margin-top: .2rem;
    color: var(--g-300);
    font-size: .8125rem;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    min-height: 2.75rem;
    margin-left: auto;
    padding: 0 1.1rem 0 .9rem;
    border: 0;
    border-radius: 999px;
    background: var(--g-950);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 22px -12px rgba(0, 0, 0, .8);
}

.menu-toggle:focus-visible { outline-color: #fff; }
.menu-toggle .icon { width: 1.35rem; height: 1.35rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-flex; }
.menu-toggle span { display: inline-flex; }

/* ============================================================ Nawigacja: ciemny dok */
.site-nav { margin-left: auto; }

.site-nav ul {
    display: flex;
    align-items: center;
    gap: .125rem;
    margin: 0;
    padding: .3rem;
    list-style: none;
    border-radius: 999px;
    background: var(--g-950);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 18px 34px -18px rgba(0, 0, 0, .9);
}

.site-nav li + li { margin-top: 0; }

.site-nav a {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0 .95rem;
    border-radius: 999px;
    color: var(--g-200);
    font-size: .9375rem;
    font-weight: 550;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .3s var(--spring), color .3s var(--spring);
}

.site-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-nav a:focus-visible { outline-color: #fff; outline-offset: 1px; }

.site-nav a[aria-current="page"] {
    background: var(--red);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 20px -12px rgba(228, 29, 54, .8);
}

.nav-icon,
.nav-desc { display: none; }

/* ============================================================ Pas tytułowy (grafit, ziarno, czerwone koło) */
.site-main {
    flex: 1 0 auto;
    padding-bottom: 4.5rem;
    overflow-x: clip;
}

.page-head {
    position: relative;
    isolation: isolate;
    margin-top: calc(-1 * var(--header-h));
    padding: calc(var(--header-h) + 1.75rem) 0 6.5rem;
    background: var(--grain), var(--graphite-bg);
    color: #fff;
    overflow-x: clip;
}

/* Ćwiartka koła z herbu w prawym górnym rogu, za treścią */
.page-head::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    width: var(--disc-r);
    height: var(--disc-r);
    border-bottom-left-radius: 100%;
    background: var(--disc);
}

.page-head > .container > :last-child { margin-bottom: 0; }
.page-head a { color: #fff; }
.page-head a:hover { color: var(--red-on-dark); }
.page-head :focus-visible { outline-color: #fff; }

.breadcrumbs {
    margin: 0 0 1.75rem;
    font-size: .875rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    color: var(--g-300);
}

.breadcrumbs li + li::before {
    content: "";
    width: .4em;
    height: .4em;
    margin: 0 .7rem;
    border-right: 1.5px solid var(--g-500);
    border-bottom: 1.5px solid var(--g-500);
    transform: rotate(-45deg);
}

.breadcrumbs a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2rem;
    color: var(--g-200);
    text-decoration: none;
}

.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: #fff; font-weight: 550; }

.page-header { max-width: 50rem; }

.page-title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.75rem);
}

.page-lead {
    max-width: 60ch;
    margin: 0;
    color: var(--g-300);
    font-size: 1.125rem;
    line-height: 1.55;
}

.page-head .card-meta { color: var(--g-300); margin-top: 1.25rem; }
.page-head .cluster { margin-top: 1.25rem; }
.page-head .page-header > .card-meta:first-child { margin-top: 0; margin-bottom: 1rem; }

.flash-stack:not(:has(.alert)) { display: none; }
.flash-stack { max-width: 50rem; margin-bottom: 1.5rem; }
.flash-stack .alert { color: var(--ink); }
.flash-stack .alert a { color: var(--red-deep); }

/* ============================================================ Arkusz z treścią */
.page-body {
    position: relative;
    z-index: 1;
    margin-top: -4rem;
}

.sheet {
    padding: clamp(1.5rem, 3.5vw, 3.25rem) clamp(1.25rem, 4.5vw, 4rem);
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--bezel), var(--shadow-2);
}

.sheet > :first-child { margin-top: 0; }
.sheet > :last-child { margin-bottom: 0; }

.section { margin: 0; padding: 2.75rem 0; }
.section + .section { border-top: 1px solid var(--hair); }
.sheet > .section:first-child { padding-top: 0; }
.sheet > .section:last-child { padding-bottom: 0; }

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin-bottom: 1.25rem;
}

.section-header > a,
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    text-decoration: none;
}

.section-header > a:hover,
.link-arrow:hover { text-decoration: underline; }

.section-title {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem);
}

.section-header .section-title { margin-bottom: 0; }

.section-lead {
    max-width: 62ch;
    margin: -.25rem 0 1.5rem;
    color: var(--muted);
    font-size: 1.0625rem;
}

.section-alt {
    margin: 1.5rem 0;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border-radius: var(--r-lg);
    background: var(--g-50);
    box-shadow: inset 0 0 0 1px var(--hair);
}

.section + .section-alt,
.section-alt + .section { border-top: 0; }
.sheet > .section-alt:first-child { margin-top: 0; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; }
.prose img { border-radius: var(--r-md); }

/* ============================================================ Karty */
.card-grid,
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.card-grid > li,
.news-list > li { margin: 0; }
.news-list { grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); }

.card {
    padding: 1.5rem;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--hair), var(--shadow-1);
}

.card h2, .card h3, .card h4 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.card-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hair);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-bottom: .5rem;
    color: var(--muted);
    font-size: .875rem;
}

/* Kafelek: cały klikalny (link rozciągnięty ::after), fokus na całym kafelku, strzałka w kółku */
.card-link {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    height: 100%;
    padding-bottom: 4.25rem;
    transition: transform .45s var(--spring), box-shadow .45s var(--spring);
}

.card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px var(--hair-2), var(--shadow-2);
}

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

.card-link-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: .5rem;
    border-radius: 14px;
    background: var(--red-soft);
    color: var(--red-deep);
}

.card-link-icon .icon { width: 1.6rem; height: 1.6rem; }

.card-link-title {
    margin: 0;
    font-size: 1.1875rem;
    font-weight: 650;
    letter-spacing: -.02em;
}

.card-link-title a {
    color: var(--ink);
    text-decoration: none;
}

.card-link-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.card-link-title a:focus-visible { outline: none; }
.card-link:hover .card-link-title a { text-decoration: underline; text-decoration-thickness: 2px; }

.card-link-desc {
    flex: 1 1 auto;
    margin: 0;
    color: var(--muted);
    font-size: .9375rem;
}

/* Napis "Przejdź" zamieniony na kółko ze strzałką; tekst zostaje dla czytników */
.card-link-arrow {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--g-900);
    color: #fff;
    font-size: 0;
    transition: background-color .35s var(--spring), transform .45s var(--spring);
}

.card-link-arrow .icon { width: 1.15rem; height: 1.15rem; font-size: 1rem; }
.card-link:hover .card-link-arrow { background: var(--red); transform: translateX(3px); }

/* ============================================================ Przyciski */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 3rem;
    padding: .5rem 1.4rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.005em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .3s var(--spring), color .3s var(--spring), transform .4s var(--spring), box-shadow .3s var(--spring);
}

.btn:active { transform: scale(.975); }
.btn .icon { width: 1.2em; height: 1.2em; }

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 14px 26px -14px rgba(200, 16, 46, .62);
}

.btn-primary:hover {
    background: var(--red-deep);
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.btn-secondary {
    background: var(--surface);
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--hair-2);
}

.btn-secondary:hover {
    background: var(--g-50);
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--g-500);
    text-decoration: underline;
}

.btn-dark {
    background: var(--g-900);
    color: #fff;
}

.btn-dark:hover { background: var(--g-700); color: #fff; text-decoration: underline; }

.btn-danger {
    background: var(--bad-ink);
    color: #fff;
}

.btn-danger:hover { background: var(--color-danger-dark); color: #fff; text-decoration: underline; }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.btn-ghost:hover { background: var(--g-50); color: var(--ink); text-decoration-thickness: 2px; }

.btn-lg { min-height: 3.5rem; padding: .6rem 1.75rem; font-size: 1.0625rem; }
.btn-sm, .btn-small { min-height: 2.5rem; padding: .35rem 1rem; font-size: .9375rem; }
.btn-block { display: flex; width: 100%; }

/* Przycisk ze strzałką w ciemnym kółku po prawej (jak w Partnerzy PKM) */
.btn-go { justify-content: space-between; padding-right: .4rem; }
.btn-go-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--g-900);
    color: #fff;
    transition: transform .5s var(--spring);
}
.btn-go:hover .btn-go-icon { transform: translateX(2px) scale(1.05); }
.btn-lg.btn-go { padding-left: 1.75rem; }

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

/* ============================================================ Formularze */
.form { max-width: 46rem; }

.form-field { margin-bottom: 1.5rem; }

.form-label {
    display: block;
    margin-bottom: .4rem;
    color: var(--ink);
    font-weight: 600;
}

.form-required { color: var(--bad-ink); font-weight: 700; }
.form-optional { color: var(--muted); font-weight: 400; }

.form-help {
    margin: -.1rem 0 .55rem;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.45;
}

.form-error {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    margin: .5rem 0 0;
    color: var(--bad-ink);
    font-size: .875rem;
    font-weight: 600;
}

.form-error .icon { margin-top: .1em; }
.form-error-list { margin: 0; padding: 0; list-style: none; }

.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="time"],
input[type="file"],
select,
textarea {
    display: block;
    width: 100%;
    max-width: 40rem;
    min-height: 3.25rem;
    padding: .7rem 1rem;
    border: 1.5px solid var(--field);
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    transition: border-color .2s var(--spring), box-shadow .2s var(--spring);
}

::placeholder { color: var(--muted); opacity: 1; }

input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }

input[type="file"] { padding: .6rem 1rem; }
input[type="file"]::file-selector-button {
    margin-right: .9rem;
    padding: .45rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--g-900);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.form-input-sm, .input-sm { max-width: 10rem; }
.form-input-md, .input-md { max-width: 22rem; }

select,
.form-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%231c1d20'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1rem;
}

html[data-contrast="high"] select,
html[data-contrast="high"] .form-select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23ffffff'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
}

textarea, .form-textarea { min-height: 9rem; resize: vertical; }

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    border-color: var(--ink);
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(62, 64, 70, .12);
}

input:disabled, select:disabled, textarea:disabled {
    background: var(--g-50);
    color: var(--muted);
    cursor: not-allowed;
}

/* Pole z błędem: czerwona ramka + komunikat z ikoną pod polem (nie tylko kolor) */
[aria-invalid="true"],
.form-field-error .form-input,
.form-field-error .form-select,
.form-field-error .form-textarea {
    border-color: var(--bad-ink);
    box-shadow: 0 0 0 4px var(--bad-soft);
}

.form-field-error {
    padding-left: .9rem;
    border-left: 3px solid var(--bad-ink);
}

.form-input-group { display: flex; max-width: 40rem; }
.form-input-group .form-input,
.form-input-group input { flex: 1 1 auto; min-width: 0; }
.form-input-group .form-input:not(:first-child),
.form-input-group input:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.form-input-group .form-input:not(:last-child),
.form-input-group input:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.form-input-affix {
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
    border: 1.5px solid var(--field);
    background: var(--g-50);
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
}

.form-input-affix:first-child { border-right: 0; border-radius: 14px 0 0 14px; }
.form-input-affix:last-child { border-left: 0; border-radius: 0 14px 14px 0; }

.form-row { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.form-row > .form-field { flex: 1 1 14rem; }
.form-row > .form-field-narrow { flex: 0 1 10rem; }

.form-field-checkbox,
.form-choice {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .5rem;
    padding: .25rem 0;
}

input[type="checkbox"],
input[type="radio"] {
    display: inline-block;
    flex: none;
    width: 1.375rem;
    height: 1.375rem;
    min-height: 0;
    max-width: none;
    margin: .12rem 0 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    accent-color: var(--red);
    cursor: pointer;
}

/* Opcje radio jako karty do kliknięcia */
.form-choice:has(input[type="radio"]) {
    max-width: 34rem;
    padding: .85rem 1rem;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1.5px var(--hair-2);
    cursor: pointer;
    transition: box-shadow .25s var(--spring), background-color .25s var(--spring);
}

.form-choice:has(input[type="radio"]):hover { box-shadow: inset 0 0 0 1.5px var(--g-500); }
.form-choice:has(input[type="radio"]:checked) { background: var(--red-soft); box-shadow: inset 0 0 0 2px var(--red); }
.form-choice:has(input[type="radio"]) .form-label-inline { flex: 1 1 auto; font-weight: 550; }

.form-label-inline { font-weight: 400; cursor: pointer; }

fieldset {
    min-width: 0;
    margin: 0 0 1.5rem;
    padding: 0;
    border: 0;
}

legend,
.form-legend {
    display: block;
    margin-bottom: .6rem;
    padding: 0;
    font-weight: 600;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hair);
}

/* Sekcje formularzy e-usług (fieldset z legendą jako tytułem kroku) */
.form-section {
    margin: 0 0 1.5rem !important;
    padding: clamp(1.25rem, 3vw, 2rem) !important;
    border: 0 !important;
    border-radius: var(--r-lg) !important;
    background: var(--g-50) !important;
    box-shadow: inset 0 0 0 1px var(--hair);
}

.form-section > legend {
    float: left;
    width: 100%;
    margin-bottom: 1.25rem;
    padding: 0 !important;
    color: var(--ink) !important;
    font-family: var(--display);
    font-size: 1.375rem !important;
    letter-spacing: -.02em;
}

.form-section > legend + * { clear: both; }

.form-section > legend .form-section-step {
    display: block;
    margin-bottom: .2rem;
    color: var(--red-deep) !important;
    font-family: var(--sans);
    font-size: .8125rem;
    font-weight: 650 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.form-error-summary {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--r-md);
    background: var(--bad-soft);
    box-shadow: inset 0 0 0 2px var(--bad-ink);
}

.form-error-summary h2,
.form-error-summary h3 { margin-top: 0; color: var(--bad-ink); font-size: 1.125rem; }
.form-error-summary ul { margin: 0; }
.form-error-summary a { color: var(--bad-ink); font-weight: 600; }

/* ============================================================ Komunikaty */
.alert {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--r-md);
    background: var(--g-50);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--hair);
}

.alert .icon { width: 1.4rem; height: 1.4rem; margin-top: .05em; }
.alert-body { flex: 1 1 auto; min-width: 0; }
.alert-body > :last-child { margin-bottom: 0; }

.alert-title {
    display: block;
    margin-bottom: .2rem;
    font-weight: 700;
}

.alert-inline .alert-title { display: inline; margin-right: .25rem; }

.alert-info { background: var(--g-50); }
.alert-info .icon, .alert-info .alert-title { color: var(--ink); }
.alert-success { background: var(--ok-soft); box-shadow: none; }
.alert-success .icon, .alert-success .alert-title { color: var(--ok-ink); }
.alert-warning { background: var(--warn-soft); box-shadow: none; }
.alert-warning .icon, .alert-warning .alert-title { color: var(--warn-ink); }
.alert-error, .alert-danger { background: var(--bad-soft); box-shadow: none; }
.alert-error .icon, .alert-error .alert-title,
.alert-danger .icon, .alert-danger .alert-title { color: var(--bad-ink); }

/* "Ważne": panel z ikoną w kółku */
.notice-box {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin: 1.5rem 0;
    padding: 1.4rem 1.5rem;
    border-radius: var(--r-lg);
    background: var(--g-50);
    box-shadow: inset 0 0 0 1px var(--hair);
}

.notice-box > .icon {
    box-sizing: content-box;
    width: 1.5rem;
    height: 1.5rem;
    padding: .7rem;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 0 0 1px var(--hair), var(--shadow-1);
}

.notice-box-body { flex: 1 1 auto; min-width: 0; padding-top: .2rem; }
.notice-box-body > :last-child { margin-bottom: 0; }

.notice-box-title {
    margin: 0 0 .35rem;
    font-size: 1.1875rem;
    font-weight: 650;
}

.notice-box-warning { background: var(--warn-soft); box-shadow: none; }
.notice-box-warning > .icon { background: var(--mpp); color: var(--ink); box-shadow: none; }
.notice-box-warning .notice-box-title { color: var(--warn-ink); }

/* ============================================================ Odznaki */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .2em .75em;
    border-radius: 999px;
    background: var(--g-100);
    color: var(--ink-2);
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.5;
    max-width: 100%;
}

.badge::before {
    content: "";
    flex: none;
    width: .5em;
    height: .5em;
    border-radius: 50%;
    background: currentColor;
}

.badge-success, .badge-closed { background: var(--ok-soft); color: var(--ok-ink); }
.badge-warning, .badge-progress { background: var(--warn-soft); color: var(--warn-ink); }
.badge-danger, .badge-rejected { background: var(--bad-soft); color: var(--bad-ink); }
.badge-info, .badge-new { background: var(--spp-soft); color: var(--spp-ink); }

.page-head .badge:not([class*="badge-"]) { background: rgba(255, 255, 255, .1); color: #fff; }

/* ============================================================ Tabele */
.table-wrapper {
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--hair-2);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    font-size: .9375rem;
}

.table caption {
    padding: 1rem 1.1rem .75rem;
    font-family: var(--display);
    font-size: 1.0625rem;
    font-weight: 650;
    letter-spacing: -.015em;
    text-align: left;
    caption-side: top;
}

.table th,
.table td {
    padding: .8rem 1.1rem;
    border-bottom: 1px solid var(--hair);
    text-align: left;
    vertical-align: top;
}

.table thead th {
    background: var(--g-50);
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 600;
    border-bottom: 1px solid var(--hair-2);
}

.table tbody th { font-weight: 550; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover { background: var(--g-50); }

.table .num,
.table td[data-type="number"] {
    text-align: right;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.table-striped tbody tr:nth-child(even) { background: var(--g-50); }

/* ============================================================ Paginacja */
.pagination { margin: 2rem 0; }

.pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination li { margin: 0; }

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 .9rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.pagination a { color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-2); }
.pagination a:hover { background: var(--g-50); text-decoration: underline; }
.pagination a[aria-current="page"] { background: var(--g-900); color: #fff; box-shadow: none; }
.pagination .pagination-disabled,
.pagination .pagination-ellipsis { color: var(--muted); }

/* ============================================================ Akordeon (FAQ) */
.accordion {
    display: grid;
    gap: .6rem;
    margin-bottom: 2rem;
}

.accordion > details {
    border-radius: var(--r-md);
    background: var(--g-50);
    box-shadow: inset 0 0 0 1px var(--hair);
    transition: background-color .3s var(--spring), box-shadow .3s var(--spring);
}

.accordion > details[open] {
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--hair-2), var(--shadow-1);
}

.accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--r-md);
    color: var(--ink);
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.accordion summary:focus-visible { outline-offset: -3px; }

.accordion-icon {
    box-sizing: content-box;
    flex: none;
    width: 1rem;
    height: 1rem;
    padding: .45rem;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 0 0 1px var(--hair-2);
}

.accordion details[open] .accordion-icon { background: var(--g-900); color: #fff; box-shadow: none; }
.accordion details[open] .accordion-icon-plus { display: none; }
.accordion details:not([open]) .accordion-icon-minus { display: none; }

.accordion-body {
    max-width: 70ch;
    padding: 0 1.25rem 1.25rem;
    color: var(--ink-2);
}

.accordion-body > :last-child { margin-bottom: 0; }

/* ============================================================ Kroki */
.steps {
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    counter-reset: krok;
}

.steps > li {
    position: relative;
    margin: 0;
    padding: 0 0 1.75rem 3.75rem;
    counter-increment: krok;
}

.steps > li::before {
    content: counter(krok);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--g-900);
    color: #fff;
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 600;
}

.steps > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(1.25rem - 1px);
    top: 2.9rem;
    bottom: .4rem;
    width: 2px;
    border-radius: 2px;
    background: var(--g-200);
}

.steps-title {
    margin: .35rem 0 .35rem;
    font-size: 1.1875rem;
}

.steps > li > p:last-child { margin-bottom: 0; }

/* Wariant poziomy: karty z numerem */
.steps-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}

.steps-cards > li {
    padding: 1.5rem;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--hair), var(--shadow-1);
}

.steps-cards > li::before {
    position: static;
    width: auto;
    height: auto;
    display: inline-block;
    margin-bottom: 1rem;
    padding: .15rem .65rem;
    border-radius: 999px;
    background: var(--red-soft);
    color: var(--red-ink);
    font-size: .8125rem;
    content: "Krok " counter(krok);
}

.steps-cards > li::after { display: none; }

.steps-cards > li > .icon {
    display: block;
    width: 2rem;
    height: 2rem;
    margin-bottom: .75rem;
    color: var(--ink);
}

.section-alt .steps-cards > li { box-shadow: 0 0 0 1px var(--hair); }

/* ============================================================ Statystyki */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat {
    padding: 1.4rem 1.5rem;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--hair), var(--shadow-1);
}

.stat-value {
    display: block;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    display: block;
    margin-top: .4rem;
    color: var(--muted);
    font-size: .9375rem;
}

/* ============================================================ Lista z ikonami */
.icon-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
    gap: .75rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.icon-list > li {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin: 0;
    padding: 1rem 1.1rem;
    border-radius: var(--r-md);
    background: var(--g-50);
    box-shadow: inset 0 0 0 1px var(--hair);
}

.icon-list > li > .icon {
    box-sizing: content-box;
    width: 1.3rem;
    height: 1.3rem;
    padding: .55rem;
    border-radius: 12px;
    background: var(--surface);
    color: var(--red-deep);
    box-shadow: 0 0 0 1px var(--hair);
}

.icon-list > li > span { padding-top: .35rem; }

/* ============================================================ Kontakt: grafitowa karta */
.contact-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--r-xl);
    background: var(--grain), var(--graphite-bg);
    color: var(--g-200);
    box-shadow: var(--shadow-2);
}

.contact-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    width: 6.5rem;
    height: 6.5rem;
    border-bottom-left-radius: 100%;
    background: var(--disc);
}

.contact-card h2,
.contact-card h3 { margin-top: 0; padding-right: 4rem; color: #fff; }
.contact-card address { font-style: normal; }
.contact-card a { color: #fff; }
.contact-card a:hover { color: var(--red-on-dark); }
.contact-card :focus-visible { outline-color: #fff; }
.contact-card .btn-secondary { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.contact-card .btn-secondary:hover { background: rgba(255, 255, 255, .16); }
.contact-card .btn-ghost { color: #fff; }
.contact-card .btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.contact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem 1.5rem;
    margin: 1.25rem 0 1.5rem;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin: 0;
}

.contact-list .icon {
    box-sizing: content-box;
    width: 1.2rem;
    height: 1.2rem;
    padding: .55rem;
    border-radius: 50%;
}

.contact-list strong {
    display: block;
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 500;
}

.contact-list .icon { background: var(--surface); color: var(--red-deep); box-shadow: 0 0 0 1px var(--hair); }
.contact-card .contact-list strong { color: var(--g-300); }
.contact-card .contact-list li > span { color: #fff; }
.contact-card .contact-list .icon { background: rgba(255, 255, 255, .08); color: var(--red-on-dark); box-shadow: none; }
.contact-card .table-wrapper { color: var(--ink); }
.contact-card .table-wrapper a { color: var(--red-deep); }

/* Karta kontaktu wewnątrz arkusza: jasny panel z czerwoną ćwiartką */
.sheet .contact-card {
    background: var(--g-50);
    color: var(--ink-2);
    box-shadow: inset 0 0 0 1px var(--hair);
}

.sheet .contact-card h2,
.sheet .contact-card h3 { color: var(--ink); }
.sheet .contact-card a { color: var(--red-deep); }
.sheet .contact-card a:hover { color: var(--red-ink); }
.sheet .contact-card :focus-visible { outline-color: var(--color-focus); }
.sheet .contact-card .contact-list strong { color: var(--muted); }
.sheet .contact-card .contact-list li > span { color: var(--ink); }
.sheet .contact-card .contact-list .icon { background: var(--surface); color: var(--red-deep); box-shadow: 0 0 0 1px var(--hair); }
.sheet .contact-card .btn-primary { color: #fff; }
.sheet .contact-card .btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hair-2); }
.sheet .contact-card .btn-ghost { color: var(--ink); }

/* ============================================================ Aktualności */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .45s var(--spring), box-shadow .45s var(--spring);
}

.news-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--hair-2), var(--shadow-2); }

.news-card time {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: .4rem;
    margin-bottom: .9rem;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: var(--g-50);
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 550;
    box-shadow: inset 0 0 0 1px var(--hair);
}

.news-card h3 {
    margin: 0 0 .6rem;
    font-size: 1.1875rem;
    line-height: 1.25;
}

.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.news-card p { flex: 1 1 auto; margin-bottom: 0; color: var(--muted); font-size: .9375rem; }

/* ============================================================ Stopka */
.site-footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin-top: auto;
    padding: 4rem 0 1.5rem;
    background: var(--grain), var(--graphite-bg);
    color: var(--g-300);
    font-size: .9375rem;
}

.site-footer a {
    color: var(--g-100);
    text-decoration: none;
}

.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }

.site-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    gap: 2rem 3rem;
    align-items: start;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.site-footer-brand img { display: block; width: auto; height: 3.25rem; margin-bottom: 1.25rem; }
.site-footer-brand p { max-width: 40ch; margin: 0; color: var(--g-300); }

.footer-office {
    padding: 1.5rem;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .045);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.site-footer h2 {
    margin: 0 0 .9rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -.01em;
}

.footer-office h2 { font-size: 1.125rem; margin-bottom: .5rem; }

.office-status {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 1rem;
    color: var(--g-200);
    font-weight: 550;
}

.office-dot {
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: var(--g-500);
}

.office-status.is-open .office-dot { background: #5ddb95; box-shadow: 0 0 0 4px rgba(93, 219, 149, .18); }

.footer-contact,
.site-footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact li,
.site-footer-grid li { margin: 0 0 .55rem; }

.footer-contact li,
.footer-contact a {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

.footer-contact .icon { margin-top: .15em; color: var(--red-on-dark); }

.site-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    padding: 2.5rem 0;
}

.site-footer address { font-style: normal; }

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: var(--g-400);
    font-size: .875rem;
}

.site-footer-bottom p { margin: 0; }
.site-footer-bottom a { display: inline-flex; align-items: center; gap: .4rem; color: var(--g-300); }

/* ============================================================ Cookie: ciemna pigułka u dołu */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 300;
    display: flex;
    align-items: center;
    gap: .9rem;
    width: min(46rem, calc(100% - 2rem));
    padding: .65rem .65rem .65rem 1rem;
    border-radius: var(--r-lg);
    background: var(--g-900);
    color: var(--g-200);
    font-size: .875rem;
    line-height: 1.45;
    transform: translateX(-50%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 48px -16px rgba(0, 0, 0, .55);
}

.cookie-banner p { flex: 1 1 auto; margin: 0; }
.cookie-banner a { color: #fff; }
.cookie-banner :focus-visible { outline-color: #fff; }
.cookie-icon { display: flex; color: var(--red-on-dark); }
.cookie-icon .icon { width: 1.5rem; height: 1.5rem; }

html[data-cookies-ack="true"] .cookie-banner,
.cookie-banner[hidden] { display: none; }

/* ============================================================ Strona główna */
.is-home .page-head { padding-bottom: 5.5rem; }

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 3rem;
    align-items: center;
    padding-top: 1rem;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .2rem .55rem;
    margin: 0 0 1.5rem;
    padding: .4rem .95rem .4rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: var(--g-200);
    font-size: .875rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.live-pill strong { color: #fff; font-weight: 600; }

.live-dot {
    position: relative;
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: var(--g-400);
}

.live-pill.is-paid .live-dot { background: var(--red-on-dark); }
.live-pill.is-free .live-dot { background: #5ddb95; }
.live-pill .live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: pulse 2.4s var(--spring) infinite;
}

.live-pill.is-paid .live-dot::after { color: var(--red-on-dark); }
.live-pill.is-free .live-dot::after { color: #5ddb95; }

@keyframes pulse {
    0% { transform: scale(.6); opacity: .9; }
    80%, 100% { transform: scale(1.6); opacity: 0; }
}

.home-title {
    margin: 0 0 1.25rem;
    color: #fff;
    font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.75rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.home-title span { display: block; color: var(--red-on-dark); }

.home-lead {
    max-width: 34rem;
    margin: 0 0 2rem;
    color: var(--g-300);
    font-size: 1.1875rem;
    line-height: 1.5;
}

/* Wyszukiwarka ulic w pigułce */
.street-search-label {
    display: block;
    margin: 0 0 .6rem;
    color: #fff;
    font-family: var(--display);
    font-size: 1.125rem;
    font-weight: 650;
    letter-spacing: -.015em;
}

.street-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    max-width: 34rem;
    padding: .4rem .4rem .4rem 1.1rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .06), 0 24px 44px -22px rgba(0, 0, 0, .9);
}

.street-search > .icon { width: 1.35rem; height: 1.35rem; color: var(--muted); }

.street-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    min-height: 3rem;
    padding: 0 .25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 1.0625rem;
    box-shadow: none;
}

.street-search input[type="search"]:focus-visible { outline: none; box-shadow: none; }
.street-search:focus-within { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--g-500), 0 24px 44px -22px rgba(0, 0, 0, .9); }
.street-search .btn { flex: none; }

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.hero-chips li { margin: 0; }

.hero-chips a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.5rem;
    padding: 0 1rem 0 .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: var(--g-100);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
    transition: background-color .3s var(--spring);
}

.hero-chips a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hero-chips .icon { color: var(--red-on-dark); }

/* Sekcje strony głównej */
.home-section { padding: 4.5rem 0 0; }
.home-tiles { padding-top: 0; }
.contact-card .home-kicker { color: var(--red-on-dark); }
.contact-card .home-h2 { color: #fff; }
.home-section > .container > :last-child { margin-bottom: 0; }

.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .75rem;
    color: var(--red-deep);
    font-size: .8125rem;
    font-weight: 650;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.home-h2 {
    margin: 0 0 .75rem;
    font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
    letter-spacing: -.035em;
}

.home-intro {
    max-width: 40rem;
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: 1.0625rem;
}

/* Bento z kafelkami spraw */
.bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
    margin: -2.5rem 0 0;
    padding: 0;
    list-style: none;
}

.bento > li { margin: 0; }

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.6rem;
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--bezel), var(--shadow-1);
    transition: transform .5s var(--spring), box-shadow .5s var(--spring);
}

.tile:hover { transform: translateY(-3px); box-shadow: var(--bezel), var(--shadow-2); }
.tile:focus-within { outline: 3px solid var(--color-focus); outline-offset: 4px; }

.tile-icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.1rem;
    border-radius: 16px;
    background: var(--g-50);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--hair);
}

.tile-icon .icon { width: 1.75rem; height: 1.75rem; }

.tile h3 {
    margin: 0 0 .45rem;
    font-size: 1.3125rem;
    letter-spacing: -.025em;
}

.tile h3 a { color: var(--ink); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile h3 a:focus-visible { outline: none; }
.tile:hover h3 a { text-decoration: underline; text-decoration-thickness: 2px; }

.tile p { margin: 0; color: var(--muted); font-size: .9375rem; }
.tile-body { flex: 1 1 auto; }

.tile-go {
    display: grid;
    place-items: center;
    align-self: flex-end;
    width: 2.6rem;
    height: 2.6rem;
    margin-top: 1.25rem;
    border-radius: 50%;
    background: var(--g-900);
    color: #fff;
    transition: background-color .35s var(--spring), transform .5s var(--spring);
}

.tile:hover .tile-go { background: var(--red); transform: translateX(3px); }
.tile-go .icon { width: 1.15rem; height: 1.15rem; }

.tile-figure {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35rem .6rem;
    margin: .25rem 0 .75rem;
}

.tile-figure strong {
    color: var(--ink);
    font-family: var(--display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
}

.tile-figure span { color: var(--muted); font-size: .9375rem; }

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }

/* Kafelek "Dostałeś wezwanie": grafit, oś czasu kwot */
.tile-dark {
    overflow: hidden;
    isolation: isolate;
    background: var(--grain), radial-gradient(80% 120% at 100% 0%, #3a3c42 0%, transparent 60%), var(--g-900);
    color: var(--g-300);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), var(--shadow-2);
}

.tile-dark h3 a,
.tile-dark h3 { color: #fff; }
.tile-dark p { color: var(--g-300); }
.tile-dark .tile-icon { background: rgba(255, 255, 255, .08); color: var(--red-on-dark); box-shadow: none; }
.tile-dark:focus-within { outline-color: #fff; }
.tile-dark .tile-go { background: var(--red); }

.fee-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    margin: 1.5rem 0 .25rem;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.fee-track li {
    position: relative;
    margin: 0;
    padding: 1rem 1rem .9rem;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.fee-track li.is-best { background: rgba(93, 219, 149, .12); box-shadow: inset 0 0 0 1px rgba(93, 219, 149, .35); }
.fee-track li.is-worst { background: rgba(255, 138, 149, .12); box-shadow: inset 0 0 0 1px rgba(255, 138, 149, .35); }

.fee-track b {
    display: block;
    color: #fff;
    font-family: var(--display);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.fee-track small { display: block; margin-top: .3rem; color: var(--g-300); font-size: .8125rem; line-height: 1.35; }
.fee-track .fee-when { display: block; margin-bottom: .45rem; color: var(--g-400); font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; }

.tile-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.5rem;
}

.tile-actions .btn-secondary { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.tile-actions .btn-secondary:hover { background: rgba(255, 255, 255, .16); }
.tile-actions :focus-visible { outline-color: #fff; }

/* Strefy A/B/C jako znaczki */
.zone-chips {
    display: flex;
    gap: .45rem;
    margin: .25rem 0 1rem;
    padding: 0;
    list-style: none;
}

.zone-chips li {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    margin: 0;
    border-radius: 12px;
    color: #fff;
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 700;
}

.zone-chips .z-a { background: var(--map-zone-a); }
.zone-chips .z-b { background: var(--map-zone-b); }
.zone-chips .z-c { background: var(--map-zone-c); }

/* Wykres: ulica (SPP) czy parking (MPP) */
.compare {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 2rem 3rem;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--bezel), var(--shadow-1);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.legend li { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-weight: 550; }
.legend i { width: .9rem; height: .9rem; border-radius: 4px; }
.legend .l-spp { background: var(--spp); }
.legend .l-mpp { background: var(--mpp); box-shadow: inset 0 0 0 1px rgba(107, 79, 0, .35); }

.insight {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    margin: 0 0 1.5rem;
    padding: 1.1rem 1.2rem;
    border-radius: var(--r-md);
    background: var(--mpp-soft);
    color: var(--mpp-ink);
}

.insight .icon { width: 1.5rem; height: 1.5rem; margin-top: .1rem; }
.insight strong { color: var(--ink); }

.chart { margin: 0; }
.chart > svg { display: block; width: 100%; height: auto; overflow: visible; }
.data-toggle summary .icon { width: 1rem; height: 1rem; transition: transform .3s var(--spring); }
.data-toggle[open] summary .icon { transform: rotate(90deg); }
.chart .grid-line { stroke: var(--g-100); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
.chart .bar-spp { fill: var(--spp); }
.chart .bar-mpp { fill: var(--mpp); }
.chart .bar-value { font-family: var(--mono); font-size: 10.5px; font-weight: 600; fill: var(--ink-2); }
.chart .cap-line { stroke: var(--mpp-ink); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .cap-label { fill: var(--mpp-ink); font-family: var(--mono); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.chart figcaption { margin-top: .75rem; color: var(--muted); font-size: .875rem; }

.data-toggle { margin-top: 1rem; }
.data-toggle summary { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-2); font-weight: 550; cursor: pointer; }
.data-toggle .table-wrapper { margin: .75rem 0 0; }

/* 45 minut + sposoby płatności */
.pay-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

.free-card {
    position: relative;
    grid-column: span 3;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--r-xl);
    background: var(--red);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 30px 60px -32px rgba(200, 16, 46, .75);
}

.free-card::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -7rem;
    z-index: -1;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.free-clock {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    font-family: var(--mono);
    font-size: clamp(3.5rem, 2.5rem + 4vw, 6rem);
    font-weight: 600;
    line-height: .9;
    letter-spacing: -.06em;
}

.free-clock small { font-size: .32em; letter-spacing: 0; }
.free-card h2,
.free-card h3 { margin: 0 0 .5rem; color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.free-card p { max-width: 52ch; margin: 0; color: rgba(255, 255, 255, .92); }
.free-card a { color: #fff; font-weight: 600; }
.free-card :focus-visible { outline-color: #fff; }

.pay-card {
    padding: 1.6rem;
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--bezel), var(--shadow-1);
}

.pay-card .tile-icon { margin-bottom: 1rem; }
.pay-card h3 { margin: 0 0 .45rem; font-size: 1.25rem; }
.pay-card p { margin: 0; color: var(--muted); font-size: .9375rem; }

.app-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.app-chips li {
    margin: 0;
    padding: .25rem .75rem;
    border-radius: 999px;
    background: var(--g-50);
    color: var(--ink-2);
    font-size: .8125rem;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--hair);
}

/* Biuro: tydzień godzin z dzisiejszym dniem */
.office-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 1rem;
}

.week {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .4rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.week li {
    margin: 0;
    padding: .7rem .5rem;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .06);
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}

.week b { display: block; color: #fff; font-size: .8125rem; font-weight: 600; }
.week span { display: block; margin-top: .2rem; color: var(--g-300); font-family: var(--mono); font-size: .75rem; }
.week li.is-today { background: var(--red); box-shadow: none; }
.week li.is-today span { color: #fff; }

.contact-card .office-status { color: #fff; }

.side-actions {
    display: grid;
    gap: 1rem;
}

.side-actions .tile { padding: 1.4rem; }

/* ============================================================ Bilet z parkomatu (kalkulator) */
.ticket-wrap {
    position: relative;
    max-width: 27rem;
    margin-left: auto;
    filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .45)) drop-shadow(0 6px 10px rgba(0, 0, 0, .25));
}

/* Drugi, starszy bilet pod spodem: tylko ozdoba */
.ticket-wrap::before {
    content: "";
    position: absolute;
    inset: 1.5rem -1.25rem 2rem 1.5rem;
    z-index: -1;
    border-radius: 6px;
    background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(28, 29, 32, .05) 22px 23px), #ede6d4;
    transform: rotate(5deg);
}

.ticket {
    --edge: 9px;
    position: relative;
    padding: 1.9rem 1.6rem 1.6rem;
    background: radial-gradient(120% 60% at 100% 0%, #fffdf7 0%, transparent 60%), var(--ticket-paper);
    color: var(--ticket-ink);
    font-family: var(--mono);
    /* Ząbkowane krawędzie u góry i u dołu, jak oderwany papier z drukarki */
    -webkit-mask:
        radial-gradient(circle at 50% 0, transparent 5px, #000 5.5px) top / 14px var(--edge) repeat-x,
        linear-gradient(#000, #000) 0 calc(var(--edge) - 1px) / 100% calc(100% - 2 * var(--edge) + 2px) no-repeat,
        radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom / 14px var(--edge) repeat-x;
    mask:
        radial-gradient(circle at 50% 0, transparent 5px, #000 5.5px) top / 14px var(--edge) repeat-x,
        linear-gradient(#000, #000) 0 calc(var(--edge) - 1px) / 100% calc(100% - 2 * var(--edge) + 2px) no-repeat,
        radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom / 14px var(--edge) repeat-x;
}

.ticket-head {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.25rem;
}

.ticket-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    background: var(--spp);
    color: #fff;
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    transition: background-color .35s var(--spring);
}

.ticket[data-system="MPP"] .ticket-mark { background: var(--red); }

.ticket-kicker {
    margin: 0;
    color: var(--ticket-muted);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ticket-title {
    margin: .1rem 0 0;
    color: var(--ticket-ink);
    font-family: var(--display);
    font-size: 1.5rem;
    letter-spacing: -.03em;
}

/* Przełącznik SPP / MPP */
.seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .25rem;
    margin: 0 0 1.25rem;
    padding: .25rem;
    border-radius: 14px;
    background: rgba(28, 29, 32, .07);
}

.seg input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.seg label {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 3rem;
    padding: .35rem .75rem;
    border-radius: 11px;
    color: var(--ticket-ink);
    font-family: var(--sans);
    font-size: .875rem;
    line-height: 1.15;
    cursor: pointer;
    transition: background-color .3s var(--spring), box-shadow .3s var(--spring);
}

.seg label b { display: block; font-weight: 650; }
.seg label small { display: block; color: var(--ticket-muted); font-size: .75rem; }

.seg-dot {
    flex: none;
    width: .85rem;
    height: 1.35rem;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}

.seg .dot-spp { background: var(--spp); }
.seg .dot-mpp { background: var(--mpp); }

.seg input:checked + label {
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 14px -8px rgba(0, 0, 0, .3);
}

.seg input:focus-visible + label { outline: 3px solid var(--g-700); outline-offset: 2px; }

/* Czas postoju: pola liczbowe + przyciski -/+ */
.ticket-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .9rem;
}

.ticket-time-fields {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .4rem;
    min-width: 0;
}

.ticket-time-fields label {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    color: var(--ticket-muted);
    font-size: .9375rem;
}

.ticket-time-fields input[type="number"] {
    width: 2.6ch;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ticket-ink);
    font-family: var(--mono);
    font-size: 2.75rem;
    font-weight: 600;
    letter-spacing: -.05em;
    text-align: right;
    -moz-appearance: textfield;
    appearance: textfield;
}

.ticket-time-fields input[type="number"]::-webkit-outer-spin-button,
.ticket-time-fields input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ticket-time-fields input[type="number"]:focus-visible { outline: 3px solid var(--g-700); outline-offset: 2px; box-shadow: none; }
.ticket-time-fields input.mins { width: 2.3ch; }

.step-btn {
    display: grid;
    place-items: center;
    flex: none;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--g-900);
    color: #fff;
    cursor: pointer;
    transition: transform .35s var(--spring), background-color .3s var(--spring);
}

.step-btn:hover { background: var(--g-700); }
.step-btn:active { transform: scale(.92); }
.step-btn .icon { width: 1.25rem; height: 1.25rem; }

.ticket-free {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: 0 0 1rem;
    color: var(--ticket-ink);
    font-family: var(--sans);
    font-size: .875rem;
    line-height: 1.4;
    cursor: pointer;
}

.ticket-free input { width: 1.2rem; height: 1.2rem; accent-color: var(--g-900); }

.ticket-perf {
    height: 0;
    margin: 0 -1.6rem 1rem;
    border-top: 2px dashed rgba(28, 29, 32, .22);
}

.ticket-lines {
    margin: 0 0 .9rem;
    font-size: .8125rem;
}

.ticket-lines div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .18rem 0;
}

.ticket-lines dt { color: var(--ticket-muted); font-weight: 400; }
.ticket-lines dd { margin: 0; font-variant-numeric: tabular-nums; }

.ticket-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(28, 29, 32, .18);
}

.ticket-total span {
    color: var(--ticket-muted);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ticket-total output {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.05em;
}

.ticket-valid {
    margin: .9rem 0 0;
    color: var(--ticket-ink);
    font-size: .8125rem;
    line-height: 1.45;
}

.ticket-barcode {
    height: 2.4rem;
    margin: 1.25rem 0 1.1rem;
    background: repeating-linear-gradient(90deg,
        var(--ticket-ink) 0 2px, transparent 2px 4px,
        var(--ticket-ink) 4px 5px, transparent 5px 8px,
        var(--ticket-ink) 8px 11px, transparent 11px 12px,
        var(--ticket-ink) 12px 13px, transparent 13px 16px);
    opacity: .85;
}

.ticket .btn { width: 100%; font-family: var(--sans); }
.ticket .btn-go-icon { background: #fff; color: var(--ink); }

/* Cenniki jako tabliczki: SPP niebieska, MPP żółta */
.tariff-grid {
    align-items: start;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tariff {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--hair-2), var(--shadow-1);
}

.tariff-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    background: var(--spp);
    color: #fff;
}

.tariff-mpp .tariff-head { background: var(--mpp); color: var(--ink); }
.tariff-head h3 { margin: 0; color: inherit; font-size: 1.25rem; }
.tariff-head p { margin: .15rem 0 0; font-size: .875rem; opacity: .9; }

.tariff-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    background: #fff;
    color: var(--spp);
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5);
}

.tariff-mpp .tariff-mark { color: var(--red); }

.price-ladder {
    margin: 0;
    padding: 1.1rem 1.4rem .4rem;
    list-style: none;
}

.price-ladder li {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: .45rem 0;
}

.price-label { color: var(--ink-2); font-size: .9375rem; }
.price-bar { height: .7rem; border-radius: 999px; background: var(--g-50); box-shadow: inset 0 0 0 1px var(--hair); }
.price-bar i { display: block; height: 100%; border-radius: inherit; background: var(--spp); }
.tariff-mpp .price-bar i { background: var(--mpp); }
.price-value { font-family: var(--mono); font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.tariff-facts {
    margin: .5rem 1.4rem 0;
    padding: .5rem 0 0;
    border-top: 1px solid var(--hair);
}

.tariff-facts > div {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: .25rem 1rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--hair);
}

.tariff-facts > div:last-child { border-bottom: 0; }
.tariff-facts dt { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .875rem; font-weight: 500; }
.tariff-facts dt .icon { color: var(--ink-2); }
.tariff-facts dd { margin: 0; font-size: .9375rem; }

.tariff-note {
    margin: .75rem 1.4rem 0;
    padding: .8rem 1rem;
    border-radius: var(--r-sm);
    background: var(--g-50);
    color: var(--ink-2);
    font-size: .875rem;
}

.tariff-source {
    margin: auto 1.4rem 0;
    padding: 1rem 0 1.25rem;
    color: var(--muted);
    font-size: .8125rem;
}

.icon-list-stack { grid-template-columns: minmax(0, 1fr); }

/* Abonamenty: cena na kafelku, karta usługi z listą do odhaczenia, dwa miejsca (kasa, biuro) */
.sub-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; margin: 0; color: var(--muted); font-size: .9375rem; }
.sub-price strong { color: var(--ink); font-family: var(--display); font-size: 1.5rem; letter-spacing: -.03em; }
.sub-price span { flex-basis: 100%; font-size: .8125rem; }
.card-link .badge .icon { width: 1em; height: 1em; }
.card-grid-tight,
.steps-tight { grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }

.sub-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
    gap: 2.5rem;
    align-items: start;
}

.sub-main > .section:first-child { padding-top: 0; }

.sub-aside {
    position: sticky;
    top: 1.5rem;
}

.sub-hint {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    max-width: 62ch;
    padding: 1rem 1.1rem;
    border-radius: var(--r-md);
    background: var(--spp-soft);
    color: var(--spp-ink);
}

.sub-hint a { color: var(--spp-ink); font-weight: 600; }
.sub-hint .icon { margin-top: .1rem; }

.checklist-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 1.6rem;
    border-radius: var(--r-xl);
    background: var(--grain), var(--graphite-bg);
    color: var(--g-200);
    box-shadow: var(--shadow-2);
}

.checklist-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    width: 5.5rem;
    height: 5.5rem;
    border-bottom-left-radius: 100%;
    background: var(--disc);
}

.checklist-card :focus-visible { outline-color: #fff; }

.checklist-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .4rem;
    color: var(--red-on-dark);
    font-size: .8125rem;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.checklist-title { margin: 0 0 1rem; padding-right: 3rem; color: #fff; font-size: 1.625rem; }

.checklist-progress {
    --done: 0;
    position: relative;
    margin: 0 0 1rem;
    padding-bottom: .7rem;
    color: #fff;
    font-size: .9375rem;
    font-weight: 600;
}

.checklist-progress::before,
.checklist-progress::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: .35rem;
    border-radius: 999px;
}

.checklist-progress::before { right: 0; background: rgba(255, 255, 255, .1); }
.checklist-progress::after { width: calc(var(--done) * 100%); background: var(--red); transition: width .5s var(--spring); }
.checklist-progress.is-done::after { background: #5ddb95; }

.checklist {
    display: grid;
    gap: .4rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.checklist li { margin: 0; }

.check {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .75rem .85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    color: var(--g-100);
    font-size: .9375rem;
    line-height: 1.45;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
    transition: background-color .25s var(--spring);
}

.check:hover { background: rgba(255, 255, 255, .09); }
.check input { margin-top: .1rem; accent-color: #5ddb95; }
.check:has(input:checked) { background: rgba(93, 219, 149, .1); box-shadow: inset 0 0 0 1px rgba(93, 219, 149, .3); }
.check:has(input:checked) span { color: var(--g-300); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }

.checklist-note { margin: 0 0 1.25rem; color: var(--g-300); font-size: .8125rem; }

.checklist-downloads { display: grid; gap: .5rem; margin-bottom: 1rem; }

.download {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem .9rem;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    transition: transform .4s var(--spring);
}

.download:hover { color: var(--ink); transform: translateY(-2px); }
.download:hover b { text-decoration: underline; }
.checklist-card .download:focus-visible { outline-color: #fff; }
.download-icon { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--red-soft); color: var(--red-deep); }
.download-icon .icon { width: 1.5rem; height: 1.5rem; }
.download b { display: block; font-size: .9375rem; line-height: 1.3; }
.download small { display: block; color: var(--muted); font-size: .8125rem; }

.checklist-print { width: 100%; background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.checklist-print:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.inline-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .05rem .6rem;
    border-radius: 999px;
    background: var(--g-100);
    color: var(--ink-2);
    font-size: .8125rem;
    font-weight: 600;
}

.inline-status.is-open { background: var(--ok-soft); color: var(--ok-ink); }

.place-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    gap: 1rem;
}

.place-step {
    display: inline-block;
    margin: 0 0 .6rem;
    padding: .15rem .65rem;
    border-radius: 999px;
    background: var(--red-soft);
    color: var(--red-ink);
    font-size: .8125rem;
    font-weight: 650;
}

.place h3 { margin-bottom: .5rem; }
.place .contact-list { grid-template-columns: minmax(0, 1fr); gap: .75rem; margin: 1rem 0; }
.place-note { margin: 0; color: var(--muted); font-size: .875rem; }
.sheet .contact-card .office-status { color: var(--ink); }

html[data-contrast="high"] .checklist-card { background: #000; box-shadow: 0 0 0 2px #fff; }
html[data-contrast="high"] .checklist-card::after { display: none; }
html[data-contrast="high"] .check,
html[data-contrast="high"] .download { background: #000; color: #fff; box-shadow: 0 0 0 1px #fff; }
html[data-contrast="high"] .download small { color: #fff; }

@media (max-width: 62rem) {
    .sub-layout { grid-template-columns: minmax(0, 1fr); }
    .sub-aside { position: static; order: -1; }
}

.print-only { display: none; }

@media print {
    .site-brand-logo, .site-footer-brand img { display: none; }

    /* "Wydrukuj listę": tylko kartka z listą, nazwą abonamentu i adresami */
    html.print-list body > *:not(main),
    html.print-list .page-head,
    html.print-list .sub-main { display: none !important; }
    html.print-list .page-body, html.print-list .sheet { margin: 0; padding: 0; }
    html.print-list .site-main { overflow: visible; }
    html.print-list .checklist-card { overflow: visible; border: 0; padding: 0 1mm; }
    html.print-list .print-only { display: block; }
    .print-head { margin: 0 0 .75rem; font-size: 10pt; color: #000; }
    .print-places { margin: 1.25rem 0 0; font-size: 10pt; }
    .print-places div { padding: .4rem 0; border-top: 1px solid #999; }
    .print-places dt { font-weight: 700; }
    .print-places dd { margin: 0; }
    html.print-list .check input { width: 14pt; height: 14pt; }
    html.print-list .check input:checked { accent-color: #000; }

    .sub-layout { display: block; }
    .sub-aside { position: static; margin-top: 1.5rem; }
    .checklist-card { background: none !important; color: #000 !important; box-shadow: none; border: 1px solid #000; }
    .checklist-card::after, .checklist-print, .checklist-progress { display: none !important; }
    .checklist-title, .check, .check span, .checklist-note, .checklist-kicker { color: #000 !important; }
    .check { background: none; box-shadow: none; border-bottom: 1px solid #999; border-radius: 0; }
    .check:has(input:checked) span { text-decoration: none; }
    .download { box-shadow: none; border: 1px solid #000; }
}

/* Kalkulator na stronie opłat: bilet obok opisu */
.calc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
    gap: 2rem 3rem;
    align-items: start;
}

.calc-layout .ticket-wrap { margin: 0; filter: drop-shadow(0 26px 30px rgba(22, 23, 26, .28)) drop-shadow(0 4px 8px rgba(22, 23, 26, .12)); }
.calc-layout .ticket-wrap::before { background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(28, 29, 32, .05) 22px 23px), #e9e2cf; }

.calc-breakdown { margin-top: 1rem; }

/* ============================================================ Styleguide (minimum) */
.sg-toc { columns: 2; column-gap: 2rem; padding-left: 1.25em; }
.sg-toc li { break-inside: avoid; }
.sg-example { margin-bottom: .75rem; padding: 1.5rem; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--hair-2); }
.sg-example > :last-child { margin-bottom: 0; }
.sg-code { margin-bottom: 1.5rem; }
.sg-code summary { padding: .5rem 0; font-weight: 600; cursor: pointer; }
.sg-code pre { max-height: 30rem; overflow: auto; font-size: .8125rem; }
.sg-usage { max-width: 70ch; color: var(--muted); }
.swatch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .75rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.swatch-list li { margin: 0; }
.swatch { overflow: hidden; border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--hair-2); }
.swatch-color { height: 3.5rem; }
.swatch-meta { padding: .5rem .75rem; font-size: .8125rem; }
.swatch-meta code { padding: 0; background: none; box-shadow: none; }

/* ============================================================ Strony błędów */
.error-page { text-align: left; }

/* ============================================================ Responsywność */
@media (max-width: 75rem) {
    .menu-toggle { display: inline-flex; }

    .site-nav {
        position: absolute;
        top: calc(var(--header-h) - .25rem);
        left: clamp(.75rem, 3vw, 2rem);
        right: clamp(.75rem, 3vw, 2rem);
        display: none;
        max-height: calc(100vh - var(--header-h) - 3rem);
        overflow-y: auto;
        padding: .5rem;
        border-radius: var(--r-lg);
        background: var(--g-900);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -24px rgba(0, 0, 0, .8);
    }

    .site-nav.is-open { display: block; animation: drop .45s var(--spring) both; }

    .site-nav ul {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
        gap: .25rem;
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .site-nav a {
        gap: .85rem;
        min-height: 3.75rem;
        padding: .5rem .75rem;
        border-radius: var(--r-md);
        white-space: normal;
    }

    .nav-icon {
        display: grid;
        place-items: center;
        flex: none;
        width: 2.6rem;
        height: 2.6rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, .06);
        color: var(--red-on-dark);
    }

    .nav-icon .icon { width: 1.4rem; height: 1.4rem; }
    .nav-text { display: flex; flex-direction: column; line-height: 1.25; }
    .nav-label { color: #fff; font-size: 1rem; font-weight: 600; }
    .nav-desc { display: block; color: var(--g-400); font-size: .8125rem; font-weight: 400; }

    .site-nav a[aria-current="page"] { background: rgba(228, 29, 54, .16); box-shadow: inset 0 0 0 1px rgba(255, 138, 149, .4); }
    .site-nav a[aria-current="page"] .nav-icon { background: var(--red); color: #fff; }
    .site-nav a[aria-current="page"] .nav-desc { color: var(--g-200); }

    .home-hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .ticket-wrap { margin: 0 auto; }
    .compare,
    .calc-layout { grid-template-columns: minmax(0, 1fr); }
    .calc-layout .ticket-wrap { justify-self: center; width: 100%; }
}

/* Przy powiększonej czcionce (A+, A++) dok nie mieści się obok marki: menu rozwijane jak na telefonie */
html[data-font-size] .menu-toggle { display: inline-flex; }

html[data-font-size] .site-nav {
    position: absolute;
    top: calc(var(--header-h) - .25rem);
    left: clamp(.75rem, 3vw, 2rem);
    right: clamp(.75rem, 3vw, 2rem);
    display: none;
    max-height: calc(100vh - var(--header-h) - 3rem);
    overflow-y: auto;
    padding: .5rem;
    border-radius: var(--r-lg);
    background: var(--g-900);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -24px rgba(0, 0, 0, .8);
}

html[data-font-size] .site-nav.is-open { display: block; animation: drop .45s var(--spring) both; }

html[data-font-size] .site-nav ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: .25rem;
    padding: 0;
    background: none;
    box-shadow: none;
}

html[data-font-size] .site-nav a {
    gap: .85rem;
    min-height: 3.75rem;
    padding: .5rem .75rem;
    border-radius: var(--r-md);
    white-space: normal;
}

html[data-font-size] .nav-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: var(--red-on-dark);
}

html[data-font-size] .nav-icon .icon { width: 1.4rem; height: 1.4rem; }

html[data-font-size] .nav-text { display: flex; flex-direction: column; line-height: 1.25; }

html[data-font-size] .nav-label { color: #fff; font-size: 1rem; font-weight: 600; }

html[data-font-size] .nav-desc { display: block; color: var(--g-400); font-size: .8125rem; font-weight: 400; }

html[data-font-size] .site-nav a[aria-current="page"] { background: rgba(228, 29, 54, .16); box-shadow: inset 0 0 0 1px rgba(255, 138, 149, .4); }

html[data-font-size] .site-nav a[aria-current="page"] .nav-icon { background: var(--red); color: #fff; }

html[data-font-size] .site-nav a[aria-current="page"] .nav-desc { color: var(--g-200); }
html[data-contrast="high"][data-font-size] .site-nav a[aria-current="page"] .nav-icon { background: #ffff00; color: #000; }

@keyframes drop {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 62rem) {
    .span-7, .span-5 { grid-column: span 12; }
    .span-4 { grid-column: span 6; }
    .span-3 { grid-column: span 6; }
    .pay-grid { grid-template-columns: minmax(0, 1fr); }
    .free-card { grid-column: auto; }
    .office-grid { grid-template-columns: minmax(0, 1fr); }
    .site-footer-top { grid-template-columns: minmax(0, 1fr); }
    .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
    :root { --header-h: 4.5rem; }

    .site-brand-logo { height: 2.1rem; }
    .site-brand-text { padding-left: .7rem; }
    .site-brand-name { font-size: 1.125rem; }
    .site-brand-sub { display: none; }
    .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .menu-toggle { width: 2.85rem; height: 2.85rem; padding: 0; justify-content: center; }

    .a11y-bar .container { justify-content: center; padding-top: .25rem; padding-bottom: .25rem; }
    .a11y-links span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .a11y-links a { padding: 0 .55rem; }

    .page-head { padding-top: calc(var(--header-h) + 1rem); padding-bottom: 5.5rem; }
    .breadcrumbs { margin-bottom: 1.25rem; }
    .page-lead { font-size: 1.0625rem; }
    .page-body { margin-top: -3.75rem; }
    .page-body.container { padding: 0 .5rem; }
    .sheet { border-radius: var(--r-lg); }

    .span-4, .span-3 { grid-column: span 12; }
    .bento { margin-top: -3rem; gap: .75rem; }

    /* Kafelki na telefonie: zwarty wiersz ikona - treść - strzałka (poza grafitowym) */
    .bento .tile:not(.tile-dark),
    .side-actions .tile {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0 1rem;
        align-items: start;
        padding: 1.15rem 1.15rem 1.2rem;
        border-radius: var(--r-lg);
    }

    .bento .tile:not(.tile-dark) .tile-icon,
    .side-actions .tile .tile-icon { width: 2.75rem; height: 2.75rem; margin: 0; border-radius: 13px; }
    .bento .tile:not(.tile-dark) .tile-icon .icon,
    .side-actions .tile .tile-icon .icon { width: 1.5rem; height: 1.5rem; }
    .bento .tile:not(.tile-dark) h3,
    .side-actions .tile h3 { margin-top: .45rem; font-size: 1.125rem; }
    .bento .tile:not(.tile-dark) .tile-go,
    .side-actions .tile .tile-go { width: 2.25rem; height: 2.25rem; margin: .25rem 0 0; align-self: start; }
    .bento .tile-figure strong { font-size: 2rem; }
    .price-ladder li { grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: .75rem; }
    .tariff-facts > div { grid-template-columns: minmax(0, 1fr); }
    .chart .bar-value { display: none; }
    .fee-track { grid-template-columns: minmax(0, 1fr); }
    .fee-track li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 1rem; align-items: center; }
    .fee-track .fee-when { grid-column: 1 / -1; }
    .free-card { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .week { gap: .3rem; }
    .week li { padding: .6rem .2rem; }
    .week span { font-size: .6875rem; letter-spacing: -.03em; }
    .site-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }

    .street-search { padding-left: .9rem; }
    .street-search .btn { padding: .4rem 1.05rem; }

    .cookie-banner { flex-wrap: wrap; left: .5rem; right: .5rem; bottom: .5rem; width: auto; transform: none; }
    .cookie-icon { display: none; }
    .cookie-banner .btn { width: 100%; }

    .sg-toc { columns: 1; }
    .btn-group .btn { flex: 1 1 100%; }

    /* Tabela układana w karty: każdy wiersz to karta, nazwa kolumny z data-label */
    .table-stack thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .table-stack tr {
        display: block;
        padding: .5rem 0;
        border-bottom: 1px solid var(--hair-2);
    }

    .table-stack tbody tr:last-child { border-bottom: 0; }

    .table-stack th,
    .table-stack td {
        display: flex;
        gap: .75rem;
        padding: .45rem 1rem;
        border-bottom: 0;
        text-align: left;
    }

    .table-stack tbody th { font-family: var(--display); font-size: 1rem; }

    .table-stack td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        color: var(--muted);
        font-family: var(--sans);
        font-weight: 500;
    }

    .table-stack .num,
    .table-stack td[data-type="number"] { text-align: left; white-space: normal; }
}

@media (max-width: 30rem) {
    .ticket { padding: 1.7rem 1.25rem 1.4rem; }
    .ticket-perf { margin-left: -1.25rem; margin-right: -1.25rem; }
    .ticket-time-fields input[type="number"] { font-size: 2.25rem; }
    .ticket-wrap::before { inset: 1.5rem -.5rem 2rem 1rem; }
    .steps > li { padding-left: 3.25rem; }
    .live-pill { font-size: .8125rem; }
}

/* ============================================================ Ruch */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }

    .card-link:hover,
    .tile:hover,
    .news-card:hover,
    .tile:hover .tile-go,
    .card-link:hover .card-link-arrow { transform: none; }
}

/* ============================================================ Druk */
@media print {
    .a11y-bar, .site-nav, .menu-toggle, .skip-link, .cookie-banner, .breadcrumbs,
    .form-actions, .site-footer-bottom, .street-search, .hero-chips, .step-btn { display: none !important; }

    body { background: #fff; color: #000; font-size: 11pt; }
    a { color: #000; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }

    .page-head, .site-footer, .contact-card, .tile-dark, .free-card {
        background: none !important;
        color: #000 !important;
        box-shadow: none !important;
    }

    .page-head { margin-top: 0; padding: 0 0 1rem; }
    .page-head::after, .contact-card::after, .free-card::after { display: none; }
    .site-header { height: auto; color: #000; }
    .site-brand, .page-title, .page-lead, .page-head a, .site-footer a, .site-footer h2,
    .contact-card h2, .contact-card h3, .contact-card a { color: #000 !important; }
    .page-body { margin-top: 0; }
    .sheet { padding: 0; box-shadow: none; }

    .card, .tile, .notice-box, .alert, .stat, .section-alt, .ticket {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
}
