:root {
  --graphite-900: #1F2329; --graphite-700: #3A3F47;
  --accent: #D4213D; --accent-ink: #D4213D; --link: #B3122E;
  --paper: #F6F5F3; --surface: #FFFFFF; --tag-bg: #F1EDEC; --pin-bg: #FBE6E9;
  --ink: #1B1D21; --muted: #62666E; --line: #E3DFDC;
  --yes: #2E7D5B; --no: #B23A3A; --abst: #C99A2E; --absent: #A9B1BE;
  --ok-bg: #ECF6F0; --late-bg: #F7E8E8; --soon-bg: #FBF1DC; --soon-ink: #8A6411;
  --header: #1F2329; --on-dark: #FFFFFF; --on-dark-muted: rgba(255,255,255,.72);
  --on-dark-line: rgba(255,255,255,.14); --on-dark-tile: rgba(255,255,255,.08);
  --selected-bg: #1F2329; --selected-ink: #FFFFFF;
  --header-pill: #FFFFFF; --header-pill-ink: #1F2329; --new-bg: #F5A800;
  --shadow: 0 1px 2px rgba(31,35,41,.06), 0 8px 24px rgba(31,35,41,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --graphite-900: #ECEAE7; --graphite-700: #C8CCD2;
    --accent-ink: #FF6B7D; --link: #FF7A8A;
    --paper: #121417; --surface: #1B1E23; --tag-bg: #2A2E35; --pin-bg: #3D1C24;
    --ink: #ECEAE7; --muted: #A3A8B0; --line: #30343B;
    --yes: #4DB083; --no: #E86B6B; --abst: #D9AD45; --absent: #8A93A0;
    --ok-bg: #173026; --late-bg: #3A1D1F; --soon-bg: #3A2E12; --soon-ink: #E8C46A;
    --selected-bg: #ECEAE7; --selected-ink: #15171A;
  --header-pill: #ECEAE7; --header-pill-ink: #15171A; --new-bg: #FFC43D;
    --shadow: 0 1px 2px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --graphite-900: #ECEAE7; --graphite-700: #C8CCD2;
  --accent-ink: #FF6B7D; --link: #FF7A8A;
  --paper: #121417; --surface: #1B1E23; --tag-bg: #2A2E35; --pin-bg: #3D1C24;
  --ink: #ECEAE7; --muted: #A3A8B0; --line: #30343B;
  --yes: #4DB083; --no: #E86B6B; --abst: #D9AD45; --absent: #8A93A0;
  --ok-bg: #173026; --late-bg: #3A1D1F; --soon-bg: #3A2E12; --soon-ink: #E8C46A;
  --selected-bg: #ECEAE7; --selected-ink: #15171A;
  --header-pill: #ECEAE7; --header-pill-ink: #15171A; --new-bg: #FFC43D;
  --shadow: 0 1px 2px rgba(0,0,0,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { background: var(--paper); color: var(--ink); font: 400 15px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; --acc: var(--accent); flex: none; }

/* ── nagłówek (jak w aplikacji: grafit + czerwony pasek 4 px) ── */
header.site { position: sticky; top: 0; z-index: 5; background: var(--header); color: var(--on-dark); border-bottom: 4px solid var(--accent); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { color: var(--on-dark); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.2px; display: inline-flex; align-items: center; min-height: 44px; }
.brand .dot { color: var(--accent); }
/* Pasek B2 (Kacper 2026-10-31): logo po lewej, menu w pigułce i przycisk razem po prawej */
header.site .brand { margin-right: auto; }
nav.top { display: none; gap: 4px; padding: 4px; border-radius: 99px; background: var(--on-dark-tile); border: 1px solid var(--on-dark-line); }
nav.top a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; font-weight: 600; padding: 0 16px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 99px; }
nav.top a:hover, nav.top a:focus-visible { color: var(--header-pill-ink); background: var(--header-pill); }
.cta-more { display: none; }
.cta-sm { background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 10px; }

/* ── hero ── */
/* Punkt 5: zdjęcie gmachu Sejmu z aplikacji (assets/welcome/hero-sejm.webp) jako pas u góry, przechodzi w grafit */
.hero { --hero-img: url("img/hero-sejm.webp"); }
.hero { background-color: var(--header); color: var(--on-dark); padding: 28px 0 0;
  background-image: linear-gradient(180deg, rgba(31,35,41,.30) 0, rgba(31,35,41,.70) 200px, #1F2329 330px), var(--hero-img);
  background-repeat: no-repeat; background-size: 100% 100%, auto 330px; background-position: 0 0, 72% 0; }
.hero .wrap { display: grid; gap: 28px; }
.hero .copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero p.lead { margin: 0 auto; }
.eyebrow { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--link); }
.hero .eyebrow { color: #FF8A98; }
.hero h1 { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.8px; margin: 10px 0 12px; }
.hero h1 em { font-style: normal; color: #FF8A98; }
.hero p.lead { font-size: 16px; line-height: 1.55; color: var(--on-dark-muted); max-width: 34em; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero .btns { flex-direction: column; width: 100%; max-width: 420px; margin-top: 24px; }
.hero .btns .btn { width: 100%; min-height: 52px; font-size: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: var(--on-dark-tile); color: var(--on-dark); border: 1px solid var(--on-dark-line); }
.btn.soft { background: var(--tag-bg); color: var(--ink); }
.badges { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.badges span { white-space: nowrap; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 99px; background: var(--on-dark-tile); border: 1px solid var(--on-dark-line); color: var(--on-dark); display: inline-flex; gap: 6px; align-items: center; }
.badges span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* telefon z odtworzonym ekranem Start */
/* Punkt 6: większy telefon pośrodku, czerwona poświata, dół zachodzi na sekcję „Dziś” */
.phone-slot { display: flex; justify-content: center; align-items: flex-end; position: relative; z-index: 1; margin-bottom: -72px; }
.phone { width: min(320px, 100%); border-radius: 38px; background: #0B0C0E; padding: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 80px rgba(212,33,61,.35), 0 30px 60px rgba(0,0,0,.35); }
.screen { position: relative; border-radius: 29px; overflow: hidden; background: var(--paper); height: 460px; color: var(--ink); font-size: 12px; line-height: 1.4; }
.scr-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 0 10px; }
.scr-tabs span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 9px; color: var(--muted); }
.scr-tabs span.on { color: var(--accent-ink); font-weight: 700; }
.scr-tabs svg.i { width: 18px; height: 18px; }
.scr-tabs span.on svg.i { --acc: var(--accent); }
#dzis { padding-top: 120px; }
.scr-top { background: var(--header); color: #fff; padding: 12px 14px 14px; border-bottom: 3px solid var(--accent); }
.scr-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 13px; }
.scr-bar .dot { color: var(--accent); }
.rec { font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--accent); background: rgba(212,33,61,.18); display: inline-flex; gap: 5px; align-items: center; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: #FF3B55; box-shadow: 0 0 6px #FF3B55; }
.scr-today { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.cal { width: 36px; border-radius: 8px; overflow: hidden; background: #fff; text-align: center; flex: none; }
.cal small { display: block; background: var(--accent); color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.cal b { display: block; color: #1F2329; font-size: 16px; line-height: 22px; }
.scr-today strong { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.scr-live { margin-top: 10px; background: var(--on-dark-tile); border: 1px solid var(--on-dark-line); border-radius: 12px; padding: 9px 10px; font-size: 11px; color: var(--on-dark-muted); }
.scr-live b { color: #fff; display: block; font-size: 12px; }
.scr-main { padding: 10px 10px 0; display: grid; gap: 8px; }
.scr-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.scr-card h4 { font-size: 12px; color: var(--graphite-900); margin-bottom: 6px; }
.scr-card .t { font-weight: 600; font-size: 11.5px; }

/* ── sekcje ── */
/* Punkt 9: sekcje na zmianę jasnoszare i białe, większe odstępy */
section.block { padding: 56px 0; }
.block.alt { background: var(--surface); }
.block.alt .card, .block.alt .ftile { background: var(--paper); }
.block h2 { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; color: var(--graphite-900); margin: 6px 0 8px; }
.block p.intro { color: var(--muted); max-width: 40em; margin-bottom: 20px; }
.head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 20px; }
.head::before { content: ""; width: 32px; height: 4px; border-radius: 99px; background: var(--accent); margin-bottom: 14px; }
.head h2 { margin-bottom: 8px; }
.head p.intro { margin: 10px auto 0; max-width: 32em; }
.head .sample { margin-left: 0; }
.grid { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.card h3 { font-size: 15px; line-height: 20px; font-weight: 700; color: var(--graphite-900); }
.meta { font-size: 13px; line-height: 19px; color: var(--muted); }
.src { font-size: 12px; color: var(--muted); margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.sample { display: inline-block; font-size: 11px; font-weight: 700; color: var(--soon-ink); background: var(--soon-bg); border-radius: 6px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }

/* Dziś */
.now { display: flex; gap: 12px; align-items: flex-start; }
.now .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--absent); margin-top: 6px; flex: none; }
.now.live .pulse { background: #FF3B55; box-shadow: 0 0 0 4px rgba(255,59,85,.2); }
.row { padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; padding-top: 6px; }
.row .t { font-size: 14px; line-height: 19px; font-weight: 600; margin: 3px 0 6px; }
.eli { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--link); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin: 0 6px 4px 0; }
.tag.in { background: var(--ok-bg); color: var(--yes); }
.tag.soon { background: var(--soon-bg); color: var(--soon-ink); }
.tag.plain { background: var(--tag-bg); color: var(--ink); font-weight: 600; }
.bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin: 8px 0 6px; background: var(--tag-bg); }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.legend b { color: var(--ink); }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--link); }

/* Co znajdziesz */
.feature { display: flex; gap: 14px; align-items: flex-start; }
.tile { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--graphite-900); flex: none; }
.tile svg.i { width: 28px; height: 28px; }
.feature p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.card.later { background: transparent; box-shadow: none; border-style: dashed; }
.card.later .tile { background: transparent; }

/* Jak to działa */
ol.steps { list-style: none; display: grid; gap: 18px; text-align: center; }
ol.steps b { display: block; color: var(--graphite-900); }
ol.steps span { color: var(--muted); font-size: 14px; }
.ai { margin-top: 18px; background: var(--soon-bg); color: var(--ink); border-radius: 14px; padding: 16px; border: 1px solid color-mix(in srgb, var(--soon-ink) 30%, transparent); }
.ai { text-align: center; }
.ai h3 { color: var(--soon-ink); font-size: 16px; line-height: 21px; font-weight: 800; margin-bottom: 6px; }
.not { display: grid; gap: 10px; }
.not li { list-style: none; display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.not li::before { content: "✕"; color: var(--accent-ink); font-weight: 800; width: 20px; flex: none; text-align: center; }

/* Pobierz / firmy */
.download { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 18px 20px; }
.download h2 { margin: 18px 0 4px; white-space: nowrap; }
.btn.wide { width: 100%; max-width: 420px; min-height: 52px; font-size: 16px; margin: 0 auto; display: flex; }
.appicon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 30px rgba(14,38,80,.25); background: #0E2650; display: grid; place-items: center; flex: none; }
.appicon svg { width: 56px; height: 56px; }
.soonchip { font-size: 12px; font-weight: 700; color: var(--soon-ink); background: var(--soon-bg); border-radius: 99px; padding: 3px 10px; }
.biz { background: var(--header); color: var(--on-dark); border-radius: 16px; padding: 28px 20px; border-bottom: 4px solid var(--accent); display: flex; flex-direction: column; align-items: center; text-align: center; }
.biz .btns { width: 100%; justify-content: center; }
.biz h2 { color: var(--on-dark); }
.biz p { color: var(--on-dark-muted); max-width: 38em; }
.biz .eyebrow { color: #FF8A98; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.chips span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: var(--on-dark-tile); border: 1px solid var(--on-dark-line); }

footer { margin-top: 0; background: var(--header); color: var(--on-dark-muted); padding: 32px 0 36px; font-size: 13px; text-align: center; }
footer .wrap { display: flex; flex-direction: column; align-items: center; }
footer .flogo { color: var(--on-dark); font-weight: 800; font-size: 19px; letter-spacing: -.2px; text-decoration: none; }
footer .flogo .dot { color: var(--accent); }
footer .legal { color: var(--on-dark); font-size: 14px; font-weight: 600; max-width: 34em; margin-top: 14px; }
footer nav { display: flex; flex-direction: column; width: 100%; margin: 20px 0; border-top: 1px solid var(--on-dark-line); }
footer nav a { color: var(--on-dark); min-height: 48px; display: flex; align-items: center; justify-content: center; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--on-dark-line); }


/* ── szersze ekrany ── */

/* „Dziś” jak ekran Start aplikacji (src/features/start/*, src/components/Section.tsx) */
.a-today { display: grid; gap: 14px; }
.a-col { display: grid; gap: 14px; align-content: start; }
.a-head { background: var(--header); color: #fff; border-radius: 16px; border-bottom: 4px solid var(--accent); padding: 18px 16px 16px; }
.a-todayrow { display: flex; align-items: center; gap: 12px; }
.a-cal { width: 44px; border-radius: 10px; overflow: hidden; background: var(--header-pill); text-align: center; flex: none; }
.a-cal small { display: block; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 2px 0; }
.a-cal b { display: block; color: var(--header-pill-ink); font-size: 19px; line-height: 26px; font-weight: 700; }
.a-title { font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -.6px; }
.a-hero { margin-top: 16px; background: var(--on-dark-tile); border: 1px solid var(--on-dark-line); border-radius: 16px; padding: 14px; }
.a-livetop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.a-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .7px; padding: 4px 9px; border-radius: 99px; }
.a-chip i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.a-watch { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.a-watch svg.i { width: 18px; height: 18px; --acc: #fff; }
.a-htitle { font-size: 19px; line-height: 24px; font-weight: 700; margin: 10px 0 2px; }
.a-hsub { font-size: 13px; line-height: 18px; color: var(--on-dark-muted); }
.a-days { display: flex; gap: 8px; margin-top: 14px; }
.a-day { flex: 1; text-align: center; border-radius: 10px; padding: 8px 0; background: var(--on-dark-tile); }
.a-day span { display: block; font-size: 12px; font-weight: 700; color: var(--on-dark-muted); text-transform: uppercase; }
.a-day b { display: block; font-size: 20px; line-height: 24px; font-weight: 800; }
.a-day small { font-size: 11px; color: var(--on-dark-muted); }
.a-day.on { background: var(--header-pill); }
.a-day.on span { color: var(--accent); }
.a-day.on b, .a-day.on small { color: var(--header-pill-ink); }
.a-tiles { display: flex; gap: 8px; }
.a-tile { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; text-decoration: none; color: var(--ink); }
.a-tile .eyebrow { display: block; }
.a-tile .eli { display: block; margin-top: 6px; }
.a-tile .d { display: block; font-size: 11px; line-height: 17px; color: var(--muted); }
.a-tile .t { font-size: 13px; line-height: 18px; font-weight: 600; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.a-new { display: inline-block; margin-top: 8px; background: var(--new-bg); color: #2A1D00; font-size: 11px; line-height: 15px; font-weight: 800; letter-spacing: .6px; border-radius: 5px; padding: 2px 7px; }
.a-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.a-card > .eyebrow { text-align: center; }
.a-dayh { margin: 12px 0 2px; }
.a-law { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--ink); text-decoration: none; min-height: 44px; }
.a-lcal { width: 46px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; text-align: center; flex: none; }
.a-lcal small { display: block; font-size: 9px; line-height: 13px; font-weight: 800; color: #fff; background: #62666E; }
.a-lcal.near small { background: #2E7D5B; }
.a-lcal b { display: block; font-size: 18px; line-height: 26px; font-weight: 800; }
.a-law .t { font-size: 13px; line-height: 18px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.a-meta .eli { font-size: 11px; }
.a-meta .tag { margin: 0; font-size: 11px; }
.a-body { flex: 1; min-width: 0; }
.a-chev { width: 16px; height: 16px; color: var(--muted); flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a-group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.a-group details + details { border-top: 1px solid var(--line); }
.a-group summary { display: flex; align-items: center; gap: 12px; padding: 12px; cursor: pointer; list-style: none; min-height: 44px; }
.a-group summary::-webkit-details-marker { display: none; }
.a-tilei { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; flex: none; color: var(--graphite-900); }
.a-tilei svg.i { width: 20px; height: 20px; }
.a-rt { display: block; font-size: 15px; line-height: 20px; font-weight: 600; }
.a-rh { display: block; font-size: 12px; line-height: 17px; color: var(--muted); }
.a-group summary .a-chev { width: 18px; height: 18px; transform: rotate(90deg); }
.a-group details[open] summary .a-chev { transform: rotate(-90deg); }
.a-open { padding: 0 14px 14px; }
.a-vote { padding: 14px 0; }
.a-vote + .a-vote { border-top: 1px solid var(--line); }
.a-vote:first-child { padding-top: 2px; }
.a-vote .t { font-size: 14px; line-height: 19px; font-weight: 600; margin: 4px 0 2px; }
.a-all { text-align: right; }
.a-all a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; text-decoration: none; }
.a-agenda { list-style: none; }
.a-agenda li { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; line-height: 1.4; }
.a-agenda li + li { border-top: 1px solid var(--line); }
.a-agenda .n { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--pin-bg); color: var(--link); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.a-agenda small { display: block; font-size: 12px; color: var(--link); }
.a-casetitle { font-size: 15px; line-height: 20px; font-weight: 700; color: var(--graphite-900); }
.a-ghost { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 12px; border-radius: 10px; background: var(--tag-bg); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }


.ftiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ftile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 12px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ftile-ico { width: 58px; height: 58px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--graphite-900); display: grid; place-items: center; flex: none; }
.ftile-ico svg.i { width: 28px; height: 28px; }
.ftile h3 { margin-top: 10px; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--graphite-900); }
.ftile p { margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--muted); }
.ftile.wide { grid-column: 1 / -1; flex-direction: row; text-align: left; gap: 14px; padding: 16px; border-color: var(--accent); }
.ftile.wide h3 { margin-top: 0; }
.soonbar { margin-top: 10px; display: flex; align-items: center; gap: 12px; border: 1px dashed var(--line); border-radius: 16px; padding: 12px 14px; }
.soonbar p { font-size: 13px; line-height: 19px; color: var(--muted); }
.ftile-ico.small { width: 44px; height: 44px; border-radius: 12px; }
.ftile-ico.small svg.i { width: 22px; height: 22px; }

/* Profil posła — tylko na komputerze (Kacper 2026-10-31); wzór: design/profil-posla.html w repo aplikacji */
.deputy { display: none; }
.d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.d-col { display: grid; gap: 14px; }
.d-head { background: var(--header); color: #fff; border-radius: 16px; border-bottom: 4px solid var(--accent); padding: 18px; }
.d-ctx { font-size: 12px; color: var(--on-dark-muted); }
.d-who { display: flex; gap: 14px; align-items: flex-end; margin-top: 10px; }
.d-avatar { width: 64px; height: 64px; border-radius: 16px; background: var(--on-dark-tile); border: 1px solid var(--on-dark-line); display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; }
.d-who .eyebrow { color: #FF8A98; }
.d-name { font-size: 24px; line-height: 28px; font-weight: 800; letter-spacing: -.5px; margin-top: 2px; }
.d-sub { font-size: 13px; color: var(--on-dark-muted); margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.d-club { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--header-pill); color: var(--header-pill-ink); }
.d-seg { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.d-seg span { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 99px; background: var(--on-dark-tile); border: 1px solid var(--on-dark-line); }
.d-seg span.on { background: var(--header-pill); color: var(--header-pill-ink); }
.d-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.d-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.d-stat .ftile-ico.small { display: grid; margin-bottom: 8px; }
.d-stat b { display: block; font-size: 28px; line-height: 32px; font-weight: 800; color: var(--graphite-900); }
.d-stat span { display: block; font-size: 14px; font-weight: 600; }
.d-stat small { display: block; font-size: 12px; line-height: 17px; color: var(--muted); margin-top: 2px; }
.d-range { font-size: 12px; line-height: 17px; color: var(--muted); }
.d-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; text-align: center; }
.d-four div { border-radius: 10px; padding: 10px 4px; background: var(--tag-bg); }
.d-four b { display: block; font-size: 20px; line-height: 24px; font-weight: 800; }
.d-four small { font-size: 12px; color: var(--muted); }
.d-four .y { background: var(--ok-bg); } .d-four .y b { color: var(--yes); }
.d-four .n { background: var(--late-bg); } .d-four .n b { color: var(--no); }
.d-four .a { background: var(--soon-bg); } .d-four .a b { color: var(--soon-ink); }
.d-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 12px; font-size: 14px; }
.d-kv dt { color: var(--muted); }
.d-kv dd { font-weight: 600; text-align: right; }
.d-li { display: flex; gap: 12px; align-items: center; padding: 12px 0; }
.d-li + .d-li { border-top: 1px solid var(--line); }
.d-li .t { font-size: 14px; line-height: 19px; font-weight: 600; margin: 2px 0; }
.d-li .s { font-size: 12px; color: var(--muted); }
.vv { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.vv.y { background: var(--ok-bg); color: var(--yes); }
.vv.n { background: var(--late-bg); color: var(--no); }
.vv.x { background: var(--tag-bg); color: var(--ink); }

/* Przełącznik motywu w górnym pasku (Kacper 2026-10-31). Bez JS ukryty — strona idzie za ustawieniem urządzenia.
   Komputer: „Jasny / Ciemny” (bez „Auto”); telefon: jedna ikona. Wybór tylko na czas wizyty (bez zapisu). */
.theme, .theme-mini { display: none; }
.theme { gap: 2px; padding: 3px; border-radius: 99px; background: var(--on-dark-tile); border: 1px solid var(--on-dark-line); }
.theme button, .theme-mini { border: 0; background: transparent; color: rgba(255,255,255,.85); font: 600 13px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.theme button { min-height: 36px; padding: 0 12px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; }
.theme button[aria-pressed="true"] { background: var(--header-pill); color: var(--header-pill-ink); }
.theme svg, .theme-mini svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-mini { width: 44px; height: 44px; border-radius: 10px; place-items: center; }
.theme-mini:hover { background: var(--on-dark-tile); }
.js .theme-mini { display: grid; }
@media (min-width: 720px) {
  .ftiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 42px; }
}
@media (min-width: 960px) {
  nav.top { display: flex; }
  .hero { padding-top: 48px; background-size: 100% 100%, 100% auto; background-position: 0 0, center top;
    background-image: linear-gradient(180deg, rgba(31,35,41,.25) 0, rgba(31,35,41,.70) 260px, #1F2329 420px), var(--hero-img); }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: end; }
  .hero .copy { padding-bottom: 56px; text-align: left; align-items: flex-start; }
  .hero p.lead { margin: 0; }
  .hero .btns { flex-direction: row; width: auto; }
  .hero .btns .btn { width: auto; }
  .badges { justify-content: flex-start; }
  footer nav { flex-direction: row; justify-content: center; border: 0; gap: 0 24px; }
  footer nav a { border: 0; }
  .hero h1 { font-size: 50px; letter-spacing: -1.2px; }
  .phone { width: 340px; }
  .screen { height: 500px; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .a-today { grid-template-columns: 1fr 1fr; align-items: start; }
  /* przegląd 2026-10-31: na komputerze „Skąd dane”, „Pobierz” i „Dla firm” w węższej, wyśrodkowanej kolumnie */
  .deputy { display: block; }
  header.site .wrap { gap: 16px; min-height: 64px; }
  .cta-more { display: inline; }
  .js .theme { display: flex; }
  .js .theme-mini { display: none; }
  .cta-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
  #posel { padding-top: 8px; }
  #dane .wrap { max-width: 840px; }
  #dane ol.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .download { max-width: 560px; margin: 0 auto; }
  .biz { max-width: 840px; margin: 0 auto; }
  section.block { padding: 80px 0; }
  .block h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* T-251: atrybut hidden ma wygrać z display: flex/grid powyżej (live.js chowa elementy) */
[hidden] { display: none !important; }
.sample { white-space: nowrap; }
/* 404 */
.nf { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.nf .btn { margin-top: 8px; }
