/* busy.tombit.eu – strona główna. Kontrast tekstu ≥ 7:1 (WCAG 2.1 AAA) w każdym motywie. */
:root {
  --bg: #fbfaf6; --bg2: #f1efe6; --card: #ffffff; --text: #14181a; --muted: #3b4246;
  --brand: #0a5a3a; --brand-ink: #ffffff; --brand-soft: #e3f1e9; --accent: #ffd23f; --accent-ink: #14181a;
  --line: #5c666b; --focus: #0b3fa8; --link: #0a4a8f; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(10,40,30,.08);
  --glow: color-mix(in srgb, #ffd23f 22%, transparent); --r: 18px; --maxw: 1120px; --fs: 1rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="hc"]) {
    --bg: #0f1513; --bg2: #16201c; --card: #19241f; --text: #f2f5f3; --muted: #c9d3ce;
    --brand: #7fe0ac; --brand-ink: #06140d; --brand-soft: #1d3329; --accent: #ffd23f; --accent-ink: #14181a;
    --line: #8e9a95; --focus: #ffd23f; --glow: color-mix(in srgb, #ffd23f 12%, transparent); --link: #9cd0ff; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1513; --bg2: #16201c; --card: #19241f; --text: #f2f5f3; --muted: #c9d3ce;
  --brand: #7fe0ac; --brand-ink: #06140d; --brand-soft: #1d3329; --accent: #ffd23f; --accent-ink: #14181a;
  --line: #8e9a95; --focus: #ffd23f; --glow: color-mix(in srgb, #ffd23f 12%, transparent); --link: #9cd0ff; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}
:root[data-theme="hc"] {
  --bg: #000; --bg2: #000; --card: #000; --text: #fff; --muted: #fff;
  --brand: #ffff00; --brand-ink: #000; --brand-soft: #000; --accent: #ffff00; --accent-ink: #000;
  --line: #fff; --focus: #00ffff; --link: #ffff00; --shadow: none;
  color-scheme: dark;
}
:root[data-size="2"] { --fs: 1.2rem; }
:root[data-size="3"] { --fs: 1.45rem; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs)/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .16em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; max-width: 70ch; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 12px 18px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid color-mix(in srgb, var(--line) 35%, transparent); }
:root[data-theme="hc"] .top { background: #000; border-bottom-color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15em; min-height: 44px; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo small { font-weight: 500; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.nav a:hover { background: var(--bg2); text-decoration: underline; }
@media (max-width: 760px) { .nav { display: none; } .a11y-btn { margin-left: auto; } }

/* accessibility panel */
.a11y-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--text); background: var(--card); color: var(--text); border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.a11y-btn svg { width: 22px; height: 22px; }
.a11y-btn[aria-expanded="true"] { background: var(--text); color: var(--bg); }
.a11y { flex-basis: 100%; display: grid; gap: 14px 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding: 14px 0 18px; }
.a11y[hidden] { display: none; }
.top:has(.a11y:not([hidden])) { position: relative; }
.a11y fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.a11y legend { font-weight: 800; margin-bottom: 6px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 600; }
.seg input:checked + span { border-color: var(--text); background: var(--text); color: var(--bg); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chk { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.chk input { width: 24px; height: 24px; accent-color: var(--brand); }
.a11y-reset { justify-self: start; align-self: end; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 2px solid var(--line); background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }

/* user preferences */
:root.underline a { text-decoration: underline !important; }
:root.spacing body { letter-spacing: .12em; word-spacing: .16em; line-height: 1.9; }
:root.spacing p { margin-bottom: 2em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 800; text-decoration: none; border: 2px solid transparent; font-size: 1.05em; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-main { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.btn-main:hover { text-decoration: underline; filter: brightness(1.08); }
.btn-ghost { color: var(--text); border-color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--bg2); text-decoration: underline; }
:root[data-theme="hc"] .btn-main { border-color: #fff; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; background:
  radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 60%),
  radial-gradient(700px 400px at -10% 110%, var(--glow), transparent 60%); }
:root[data-theme="hc"] .hero { background: #000; }
.hero .wrap { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero { padding: 80px 0 64px; } .hero .wrap { grid-template-columns: 1.05fr .95fr; } }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: .9em; margin-bottom: 18px; }
.kicker b { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: clamp(2.1em, 5.2vw, 3.6em); font-weight: 900; letter-spacing: -.025em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); white-space: nowrap; }
.lead { font-size: 1.2em; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: .95em; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--brand); }

/* hero illustration */
.scene { position: relative; background: var(--card); border-radius: 28px; box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 30%, transparent); padding: 14px; }
:root[data-theme="hc"] .scene { border: 2px solid #fff; }
.scene svg { display: block; width: 100%; height: auto; }
.scene .road { fill: none; stroke: var(--brand); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.scene .road2 { fill: none; stroke: var(--card); stroke-width: 2.5; stroke-dasharray: 2 10; stroke-linecap: round; }
.scene .map-bg { fill: var(--bg2); }
.scene .blk { fill: color-mix(in srgb, var(--line) 18%, var(--bg2)); }
:root[data-theme="hc"] .scene .blk { fill: #000; stroke: #fff; stroke-width: 1; }
.scene .stop circle { fill: var(--card); stroke: var(--text); stroke-width: 4; }
.scene .stop text { fill: var(--text); font: 700 15px system-ui, sans-serif; }
.scene .bus rect { fill: var(--accent); stroke: var(--accent-ink); stroke-width: 3; }
.scene .bus path { fill: var(--accent-ink); }
.scene .badge { fill: var(--text); }
.scene .badge-t { fill: var(--bg); font: 800 14px system-ui, sans-serif; }
.scene-card { position: absolute; left: 22px; bottom: 22px; right: 22px; max-width: 320px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); font-size: .95em; }
.scene-card strong { display: block; }
.scene-card .row { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid color-mix(in srgb, var(--line) 40%, transparent); padding-top: 6px; margin-top: 6px; }
.scene-card .min { font-weight: 800; color: var(--brand); white-space: nowrap; }
.pause { position: absolute; top: 22px; right: 22px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 2px solid var(--text); background: var(--card); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.pause svg { width: 18px; height: 18px; }
@media (max-width: 420px) { .scene-card { position: static; margin-top: 10px; max-width: none; } }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--bg2); }
:root[data-theme="hc"] section.alt { border-top: 2px solid #fff; border-bottom: 2px solid #fff; }
.sec-head { max-width: 46em; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(1.6em, 3.4vw, 2.3em); font-weight: 900; }
.sec-head p { color: var(--muted); font-size: 1.1em; }
.eyebrow { display: block; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; font-size: .85em; margin-bottom: 8px; }

/* gminy */
.towns { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.town { position: relative; display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--brand); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.town:hover { transform: translateY(-2px); }
.town h3 { font-size: 1.6em; font-weight: 900; margin-bottom: 4px; }
.town h3 a { color: var(--text); text-decoration: none; }
.town h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.town h3 a:hover { text-decoration: underline; }
.town h3 a:focus-visible { outline: none; }
.town:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
.town .where { color: var(--muted); margin-bottom: 16px; }
.tag { display: inline-block; align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: .85em; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.2em), 1fr)); gap: 8px; margin: 0 0 18px; }
.stats div { background: var(--bg2); border-radius: 12px; padding: 10px; text-align: center; }
:root[data-theme="hc"] .stats div { border: 1px solid #fff; }
.stats dt { overflow-wrap: anywhere; font-size: .85em; color: var(--muted); font-weight: 600; }
.stats dd { margin: 0; font-size: 1.6em; font-weight: 900; order: -1; }
.stats div { display: flex; flex-direction: column; }
.ops { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.ops li { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: .9em; font-weight: 600; }
.go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--brand); }
.go svg { width: 22px; height: 22px; }
.town.soon { border: 2px dashed var(--line); box-shadow: none; background: transparent; }
.town.soon h3 { color: var(--text); }

/* features */
.feats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); list-style: none; padding: 0; margin: 0; }
.feat { background: var(--card); border-radius: var(--r); padding: 22px; border: 1px solid color-mix(in srgb, var(--line) 35%, transparent); }
:root[data-theme="hc"] .feat { border: 2px solid #fff; }
.feat .ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }
:root[data-theme="hc"] .feat .ico { border: 2px solid #ff0; }
.feat .ico svg { width: 28px; height: 28px; }
.feat h3 { font-size: 1.2em; font-weight: 800; }
.feat p { color: var(--muted); margin: 0; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 22px 22px 22px 84px; background: var(--card); border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--line) 35%, transparent); }
:root[data-theme="hc"] .steps li { border: 2px solid #fff; }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 20px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 1.3em; }
.steps h3 { font-size: 1.15em; font-weight: 800; }
.steps p { margin: 0; color: var(--muted); }

/* gminy CTA */
.forgm { display: grid; gap: 28px; align-items: start; grid-template-columns: 1fr; background: var(--brand); color: var(--brand-ink); border-radius: 28px; padding: 34px 26px; }
@media (min-width: 900px) { .forgm { grid-template-columns: 1.1fr .9fr; padding: 48px; } }
.forgm h2 { font-size: clamp(1.6em, 3.4vw, 2.3em); font-weight: 900; }
.forgm p { color: inherit; }
.forgm a { color: inherit; }
.forgm ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.forgm li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.forgm li svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
:root[data-theme="hc"] .forgm { background: #000; color: #fff; border: 3px solid #ff0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 52em; }
.faq details { background: var(--card); border: 1px solid color-mix(in srgb, var(--line) 45%, transparent); border-radius: 14px; }
:root[data-theme="hc"] .faq details { border: 2px solid #fff; }
.faq summary { cursor: pointer; padding: 14px 18px; min-height: 44px; font-weight: 800; list-style-position: inside; }
.faq details > div { padding: 0 18px 16px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* footer */
.foot { padding: 44px 0 28px; border-top: 1px solid color-mix(in srgb, var(--line) 40%, transparent); background: var(--bg2); }
:root[data-theme="hc"] .foot { border-top: 2px solid #fff; background: #000; }
.foot .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.foot h2 { font-size: 1em; font-weight: 800; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .fine { margin-top: 26px; color: var(--muted); font-size: .92em; }

/* text pages (policies) */
.doc { padding: 44px 0 64px; }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(1.9em, 4vw, 2.6em); font-weight: 900; }
.doc h2 { font-size: 1.45em; font-weight: 800; margin-top: 1.8em; }
.doc h3 { font-size: 1.15em; font-weight: 800; margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.4em; max-width: 70ch; }
.doc li { margin-bottom: .45em; }
.doc .meta { color: var(--muted); }
.doc .toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 22px 0; }
.doc .toc h2 { margin-top: 0; font-size: 1.1em; }
.doc .toc a { display: inline-block; padding: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg2); }
.tbl { overflow-x: auto; }
.crumbs { padding: 16px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { display: inline-flex; min-height: 44px; align-items: center; }
.note { border-left: 6px solid var(--brand); background: var(--card); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 1.2em 0; }
:root[data-theme="hc"] .note { border: 2px solid #ff0; border-left-width: 6px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
:root.still *, :root.still *::before, :root.still *::after { animation: none !important; transition: none !important; }
:root.still { scroll-behavior: auto; }
@media print { .top, .skip, .a11y, .pause, .foot .cols { display: none !important; } body { background: #fff; color: #000; } }
