:root {
  --ink: #16161A;
  --ink2: #55555D;
  --bg: #F2F2F0;
  --card: #FFFFFF;
  --line: #DAD9D4;
  --beacon: #F4C43D;
  --r: 22px;
  --font: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -64px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.small { font-size: .9375rem; color: var(--ink2); line-height: 1.5; margin: 0; }

/* nagłówek */
.top-in { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: inline-block; line-height: 0; }

/* przyciski: kapsuły */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--font); text-decoration: none; border: 2px solid transparent;
  cursor: pointer;
}
.btn .ic { width: 22px; height: 22px; flex: none; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #2C2C33; text-decoration: none; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn-store { background: #E4E3DF; color: #4A4A52; border-color: #E4E3DF; cursor: default; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.stores-inv { margin: 0; }
.stores-inv .btn-store { background: #2C2C33; border-color: #2C2C33; color: #D4D4D8; }

/* strona główna: hero */
.hero { display: grid; gap: 40px; padding-block: 28px 56px; align-items: center; }
h1 { font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: 0; font-size: clamp(2.1rem, 7.2vw, 3.6rem); text-wrap: balance; }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink2); margin: 20px 0 0; max-width: 34em; }

.route-card { background: var(--card); border-radius: var(--r); padding: 28px; }
.route-title { margin: 0; font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.route-meta { margin: 4px 0 24px; color: var(--ink2); font-size: .9375rem; }
.stops { list-style: none; margin: 0; padding: 0; position: relative; }
.stops::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: var(--ink); }
.stops li { position: relative; display: flex; align-items: flex-start; gap: 18px; padding-block: 10px; font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.stops small { display: block; margin-top: 2px; font-weight: 400; font-size: .9375rem; color: var(--ink2); }
.stop-dot { position: relative; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--ink); }
.stops .via .stop-dot { background: var(--card); border: 2px solid var(--ink); }
.stops .end .stop-dot { background: var(--beacon); }
.route figcaption { margin-top: 14px; padding-inline: 4px; }
.route { margin: 0; }

/* sekcje */
.sec { position: relative; margin: 0 0 28px; padding-top: 18px; font-size: clamp(1.6rem, 4.6vw, 2.25rem); line-height: 1.15; letter-spacing: -.015em; font-weight: 700; }
.sec::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 5px; border-radius: 3px; background: var(--beacon); }
.paths, .facts { padding-block: 24px 40px; }
.paths-grid { display: grid; gap: 20px; }
.card { background: var(--card); border-radius: var(--r); padding: 28px 24px; }
.card-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; margin-bottom: 18px; }
.ic-l { width: 28px; height: 28px; }
.card-h { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; }
.card > p { margin: 0; color: var(--ink2); }
.steps { list-style: none; counter-reset: s; margin: 24px 0 0; padding: 0; display: grid; gap: 20px; }
.steps li { position: relative; padding-left: 52px; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1rem;
}
.steps h4 { margin: 0 0 2px; font-size: 1.0625rem; line-height: 1.35; }
.steps p { margin: 0; color: var(--ink2); font-size: 1rem; }

.facts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.facts-list li { display: flex; gap: 16px; align-items: flex-start; }
.facts-list .ic-l { flex: none; margin-top: 2px; }
.facts-list h3 { margin: 0 0 4px; font-size: 1.1875rem; line-height: 1.3; }
.facts-list p { margin: 0; color: var(--ink2); }

.contact { padding-block: 16px 64px; }
.contact-card { background: var(--ink); color: #fff; border-radius: var(--r); padding: 32px 24px; display: grid; gap: 28px; align-items: center; }
.contact-card p { margin: 0; color: #D4D4D8; }
.contact-card a { color: #fff; }
.contact-card .sec { color: #fff; margin-bottom: 14px; }

/* stopka */
.foot { border-top: 1px solid var(--line); padding-block: 32px 40px; }
.foot-in { display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { padding-block: 6px; }

/* dokumenty */
.doc { padding-block: 16px 72px; max-width: 880px; }
.doc-head h1 { font-size: clamp(2rem, 6vw, 3rem); }
.notice { margin: 16px 0 0; color: var(--ink2); font-size: 1rem; }
.toc-box { background: var(--card); border-radius: var(--r); padding: 24px; margin: 32px 0 40px; }
.toc-t { margin: 0 0 12px; font-size: 1.25rem; }
.toc { margin: 0; padding: 0; list-style: none; columns: 1; column-gap: 32px; }
.toc li { break-inside: avoid; padding-block: 3px; }
.toc a { display: inline-block; padding-block: 3px; }
.prose { max-width: 42rem; }
.prose h2 { position: relative; margin: 56px 0 16px; padding-top: 18px; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.01em; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 5px; border-radius: 3px; background: var(--beacon); }
.prose p { margin: 0 0 14px; }
.prose p.cl { display: grid; grid-template-columns: 3.4em 1fr; }
.prose .no { color: var(--ink2); font-variant-numeric: tabular-nums; }
.prose ul { margin: 0 0 14px; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: #E4E3DF; padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.todo { background: #FBE8A8; color: var(--ink); padding: 1px 6px; border-radius: 6px; font-weight: 600; font-size: .95em; }
.tbl { margin: 8px 0 28px; max-width: none; width: min(100%, 1000px); }
.prose .tbl, .prose .tbl table { max-width: none; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r); overflow: hidden; font-size: .9375rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; background: #FAFAF8; }
tr:last-child td { border-bottom: 0; }

.nf { padding-block: 64px 96px; }
.nf-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 719px) {
  .prose .tbl { width: 100%; }
  thead { position: absolute; left: -9999px; }
  table, tbody, tr, td { display: block; }
  table { background: none; border-radius: 0; }
  tr { background: var(--card); border-radius: 16px; margin-bottom: 12px; padding: 6px 0; }
  td { border: 0; padding: 8px 16px; }
  td::before { content: attr(data-l); display: block; font-weight: 700; font-size: .875rem; color: var(--ink2); }
}
@media (min-width: 720px) {
  .toc { columns: 2; }
  .card { padding: 36px 32px; }
  .contact-card { padding: 44px 40px; grid-template-columns: 1fr auto; }
  .facts-list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .foot-in { grid-template-columns: auto 1fr; align-items: center; }
  .foot-in .small { grid-column: 1 / -1; }
  .foot nav { justify-content: flex-end; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.15fr .85fr; gap: 72px; padding-block: 56px 88px; }
  .paths-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .paths, .facts { padding-block: 32px 64px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
