/*
 * zwrota.pl — the website (design "A · Tablica odjazdów"). One static page, no framework, nothing loaded from other
 * servers: fonts are ours (fonts/, SIL OFL), the page's only script is site.js (the site's CSP allows no inline script).
 * Colours: the app's palette "Butelkowa zieleń" (Sanzo Wada, no. 278).
 */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Code Pro";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-code-pro-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/source-code-pro-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Code Pro";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-code-pro-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/source-code-pro-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --ink: #00241f;
  --night: #00191a;
  --panel: #002f2a;
  --rule-dark: #003f38;
  --edge-dark: #1f5f56;
  --brand: #004f46;
  --amber: #fdbf68;
  --mist: #c2d5d3;
  --mist-2: #8aa6a1;
  --paper: #f2f6f6;
  --paper-2: #e6edec;
  --slate: #455c5c;
  --rule: #c7d8d6;
  --white: #ffffff;
  --ok: #1a7444;
  --bezel: #0e1d1b;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Source Code Pro", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --h2: clamp(2.2rem, 2.4vw + 1rem, 3.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}
main {
  background: var(--paper);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--brand);
}
a:hover {
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.h2 {
  margin: 0;
  font-size: var(--h2);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.narrow {
  max-width: 820px;
}
.lead {
  margin: 0;
  font-size: 20px;
  color: var(--slate);
}
.mono-label {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}
.pill:hover {
  color: var(--ink);
  background: #fecb85;
}
.pill--big {
  min-height: 58px;
  padding: 0 30px;
  font-size: 19px;
}
.pill--brand {
  background: var(--brand);
  color: var(--white);
}
.pill--brand:hover {
  background: var(--ink);
  color: var(--white);
}

/* Preview banner: shown only in the preview build (html[data-mode="preview"], set when the image is built). */
.preview-banner {
  display: none;
  padding: 8px 16px;
  background: #ecdca9;
  border-bottom: 2px solid #994820;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.preview-banner b {
  color: #994820;
}
html[data-mode="preview"] .preview-banner {
  display: block;
}

/* Before the start (html.wkrotce, tryb.js; deploy/Caddyfile, site_gate_preview): the website and its documents are public,
   the app is not. Every way into the app ([data-aplikacja]) is hidden, the lines written for this time ([data-wkrotce]) and
   the banner below are shown instead of the preview's. */
html.wkrotce [data-aplikacja],
html:not(.wkrotce) [data-wkrotce] {
  display: none !important;
}
.soon-banner {
  display: none;
  padding: 10px 16px;
  background: var(--brand);
  border-bottom: 2px solid var(--amber);
  color: var(--white);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}
.soon-banner b {
  color: var(--amber);
}
.soon-banner a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
html.wkrotce .soon-banner {
  display: block;
}
html.wkrotce .preview-banner {
  display: none;
}

/* The delay ticker (site.js, #opoznienia): trains running late right now move to the left in a loop and fade out at the
   left edge, the delay in red. The label on the left says whether they are real ("Opóźnione teraz", a red dot) or made
   up ("Przykładowe opóźnienia", an amber ring). Pointer over it or the pause button stops it. Without data: the plain line. */
.ticker {
  --late: #ff6f61;
  display: flex;
  align-items: stretch;
  height: 40px;
  overflow: hidden;
  background: var(--night);
  border-bottom: 1px solid var(--rule-dark);
  color: var(--white);
  font-size: 15px;
  line-height: 1.2;
}
.ticker__plain {
  flex: 1;
  min-width: 0;
  align-self: center;
  margin: 0;
  padding: 0 16px;
  overflow: hidden;
  color: var(--mist);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticker:not([data-state="plain"]) .ticker__plain {
  display: none;
}
.ticker[data-state="plain"] > :not(.ticker__plain) {
  display: none;
}
.ticker__label {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 18px 0 max(16px, calc((100vw - 1240px) / 2 + 32px));
  background: var(--panel);
  border-right: 1px solid var(--rule-dark);
  color: var(--amber);
  font-weight: 700;
  white-space: nowrap;
}
.ticker__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--late);
}
.ticker[data-state="sample"] .ticker__dot {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--amber);
}
.ticker__short {
  display: none;
}
.ticker__window {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 72px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 72px, #000 calc(100% - 24px), transparent 100%);
}
.ticker__track {
  display: flex;
  flex: none;
  width: max-content;
}
.ticker[data-moving="true"] .ticker__track {
  animation: ticker-move var(--ticker-time, 60s) linear infinite;
  will-change: transform;
}
.ticker[data-paused="true"] .ticker__track,
.ticker__window:hover .ticker__track {
  animation-play-state: paused;
}
@keyframes ticker-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* Standing still (reduced motion, or no train late now): the trains from the left, scrolled by hand when they do not fit. */
.ticker[data-moving="false"] .ticker__window {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
}
.ticker[data-moving="false"] .ticker__window::-webkit-scrollbar {
  display: none;
}
.ticker[data-moving="false"] .ticker__track {
  padding-left: 20px;
}
.ticker__set {
  flex: none;
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}
.ticker__set > * {
  position: relative;
  white-space: nowrap;
}
.ticker__set > *::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20px;
  width: 1px;
  height: 14px;
  margin-top: -7px;
  background: var(--edge-dark);
}
.ticker__item {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.ticker__train {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ticker__route {
  color: var(--mist);
}
.ticker__late {
  color: var(--late);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ticker__source,
.ticker__quiet {
  color: var(--mist-2);
  font-size: 13px;
}
.ticker__quiet {
  font-size: 14px;
}
.ticker__pause {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--rule-dark);
  background: var(--night);
  color: var(--mist);
  cursor: pointer;
}
.ticker__pause:hover {
  color: var(--white);
}
.ticker .ticker__pause:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -4px;
}
.ticker[data-moving="false"] .ticker__pause {
  display: none;
}
@media (max-width: 640px) {
  .ticker {
    height: 36px;
    font-size: 14px;
  }
  .ticker__label {
    padding: 0 12px 0 16px;
  }
  .ticker__long {
    display: none;
  }
  .ticker__short {
    display: inline;
  }
  .ticker__plain {
    font-size: 13px;
  }
  .ticker__window {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 16px), transparent 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none !important;
  }
}
@media print {
  .ticker {
    display: none;
  }
}

/* Header */
.top {
  position: relative;
  z-index: 5;
  background: var(--ink);
  color: var(--white);
}
.top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}
/* The logo is a drawing (scripts/brand/generate.py writes it into index.html), never live text: the flap tile and the
   word "Zwrota" in Archivo Expanded, cut in two along the flap's split line. */
.logo {
  display: flex;
  align-items: center;
  flex: none;
  border-radius: 8px;
  text-decoration: none;
}
.logo__img {
  display: block;
  width: auto;
  height: 41px;
}
/* On load, and again when the pointer comes to it, every letter turns over like a flap of a departure board: the
   upper half unfolds from the split line, then the lower half drops and settles. */
.logo__word path {
  transform-box: fill-box;
}
.logo__t {
  transform-origin: 50% 100%;
}
.logo__b {
  transform-origin: 50% 0;
}
@media (prefers-reduced-motion: no-preference) {
  .logo--flip .logo__t {
    animation: logo-flap 240ms cubic-bezier(0.3, 0.6, 0.4, 1) both;
    animation-delay: calc(80ms + var(--i) * 70ms);
  }
  .logo--flip .logo__b {
    animation: logo-flap 380ms cubic-bezier(0.25, 0.9, 0.35, 1.3) both;
    animation-delay: calc(260ms + var(--i) * 70ms);
  }
}
@keyframes logo-flap {
  from {
    transform: scaleY(0);
  }
}
.top__nav {
  display: flex;
  gap: 28px;
  font-size: 16px;
  font-weight: 600;
}
.top__nav a,
.top__login {
  color: var(--mist);
  text-decoration: none;
}
.top__nav a:hover,
.top__login:hover {
  color: var(--white);
}
.top__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top__login {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--edge-dark);
  background: transparent;
  color: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu {
  display: none;
  border-top: 1px solid var(--rule-dark);
  background: var(--ink);
}
.menu[data-open="true"] {
  display: block;
}
.menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 0 20px;
}
.menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-dark);
}
.menu .pill {
  margin-top: 16px;
  width: 100%;
  border-bottom: 0;
  color: var(--ink);
  min-height: 52px;
}

/* Hero with the calculator */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0 96px;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--edge-dark);
  color: var(--mist);
  font-size: 15px;
  font-weight: 600;
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--amber);
}
.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 4.4vw + 1rem, 6.4rem);
  line-height: 0.97;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__lead {
  margin: 0;
  max-width: 36ch;
  font-size: 21px;
  line-height: 1.5;
  color: var(--mist);
}
.hero__promise {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 17px;
  font-weight: 700;
}
.hero__promise svg {
  flex: none;
  margin-top: 2px;
}

.board {
  background: var(--night);
  border: 1px solid var(--rule-dark);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0, 10, 8, 0.45);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.board__head h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--amber);
}
.board a:not(.pill) {
  color: var(--mist);
}
.board a:not(.pill):hover {
  color: var(--white);
}
.board__head a {
  color: var(--mist);
  font-size: 14px;
  font-weight: 700;
}
.board__head a:hover {
  color: var(--white);
}
.fields {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}
.field--wide {
  grid-column: span 1;
}
@media (min-width: 641px) {
  .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field label,
.field legend {
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist-2);
}
.field legend {
  margin-bottom: 6px;
}
.control {
  width: 100%;
  min-height: 50px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--edge-dark);
  background: var(--panel);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}
select.control {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23fdbf68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  text-overflow: ellipsis;
}
select.control option {
  background: var(--panel);
  color: var(--white);
}
/* The calculator's lists on the page (site.js, picker; Mimiq test, 19.10.2026): the field looks like the <select> it
   stands for, its list opens under it, and a list with one option is plain text. */
.picker {
  position: relative;
}
.picker [hidden] {
  display: none !important;
}
.picker__button {
  display: flex;
  align-items: center;
  padding-right: 36px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  user-select: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23fdbf68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.picker__button:hover {
  border-color: var(--mist-2);
}
/* Seen at a click too, not only from the keyboard: the field answers every press. */
.picker__button:focus,
.picker__button[aria-expanded="true"] {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.picker__button[aria-expanded="true"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 8l6-6 6 6' fill='none' stroke='%23fdbf68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.picker__list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--edge-dark);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 10, 8, 0.5);
}
.picker__option {
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}
.picker__option.is-active,
.picker__option:hover {
  background: var(--rule-dark);
}
.picker__option[aria-selected="true"] {
  color: var(--amber);
  font-weight: 800;
}
.picker__static {
  display: flex;
  align-items: center;
  margin: 0;
  padding-left: 0;
  border-color: transparent;
  background: transparent;
  background-image: none;
  color: var(--white);
  opacity: 1;
  cursor: default;
}
.money {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.money:focus-within {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.money {
  cursor: text;
}
.money input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}
.money span {
  color: var(--mist-2);
  font-weight: 700;
}
.bands {
  display: flex;
  gap: 6px;
}
.bands button {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0 4px;
  white-space: nowrap;
  border-radius: 10px;
  border: 1px solid var(--edge-dark);
  background: var(--panel);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.bands button[aria-pressed="true"] {
  border: 2px solid var(--amber);
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
}
.result {
  border-top: 1px solid var(--rule-dark);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.result__label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--mist-2);
}
.flaps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 60px;
}
.flaps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 60px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--panel);
  color: var(--amber);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 36px;
  box-shadow: inset 0 -30px 0 rgba(0, 0, 0, 0.18);
  animation: flap 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.flaps span.gap {
  background: transparent;
  box-shadow: none;
  min-width: 14px;
}
@keyframes flap {
  0% {
    transform: perspective(300px) rotateX(-90deg);
    opacity: 0.2;
  }
  100% {
    transform: perspective(300px) rotateX(0);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flaps span,
  .ex-flaps span {
    animation: none;
  }
  /* Without the turning flaps, a change still shows: the board lights up for a moment (site.js, render). */
  .flaps.is-new span {
    animation: flap-lit 0.9s ease-out both;
  }
}
@keyframes flap-lit {
  0% {
    background: var(--edge-dark);
  }
  100% {
    background: var(--panel);
  }
}
.split {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
}
.split[hidden] {
  display: none;
}
.split div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.split span:first-child {
  color: var(--mist);
}
.split b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.split .keep {
  font-size: 18px;
}
.split .keep span:first-child {
  color: var(--white);
  font-weight: 800;
}
.split .keep b {
  font-weight: 900;
  color: var(--amber);
}
/* Before the start (html.wkrotce): the board says it is an estimate before its first field, and its end says why there is
   no claim to make and what to read meanwhile (Mimiq test, 19.10.2026). */
.board__note {
  margin: -6px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--mist);
}
.result__soon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.pill--quiet,
.result .pill--quiet {
  min-height: 48px;
  font-size: 16px;
  background: transparent;
  border: 2px solid var(--amber);
  color: var(--white);
}
.pill--quiet:hover {
  background: var(--amber);
  color: var(--ink);
}
/* The contact e-mail, pressed (site.js, startMailLinks): the address, copied, in a note at the bottom of the window. */
.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 24px;
  width: max-content;
  max-width: min(560px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 2px solid var(--amber);
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  line-height: 1.45;
  box-shadow: 0 18px 40px rgba(0, 10, 8, 0.35);
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
.toast.is-on {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform 0.25s ease;
}
@media (max-width: 1040px) {
  /* Above the docked button. */
  .toast {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast,
  .toast.is-on {
    transition: none;
  }
}
.result__msg {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--mist);
}
.result .pill {
  min-height: 56px;
  font-size: 18px;
}
.fineprint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mist-2);
}

/* Facts */
.facts {
  background: var(--panel);
  color: var(--white);
  padding: 36px 0;
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.fact svg {
  flex: none;
}
.fact b {
  display: block;
  font-weight: 800;
  font-size: 19px;
}
.fact span {
  font-size: 15px;
  color: var(--mist);
}

/* Sections */
.section {
  padding: 120px 0;
}
.section--white {
  background: var(--white);
}
.section--paper {
  background: var(--paper);
}
.section--dark {
  background: var(--ink);
  color: var(--white);
}
.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: start;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checks li {
  display: flex;
  gap: 12px;
}
.checks svg {
  flex: none;
  margin-top: 3px;
}

.receipt {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 32px 32px 26px;
  box-shadow: 0 24px 60px rgba(0, 36, 31, 0.08);
}
.receipt__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--slate);
}
.receipt__head span:last-child {
  font-size: 15px;
}
.receipt__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  font-size: 19px;
}
.receipt__row b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.receipt__row--muted {
  color: var(--slate);
}
.receipt__row--muted b {
  font-weight: 700;
}
.perforation {
  position: relative;
  margin: 14px -32px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--rule) 0 10px, transparent 10px 18px);
}
.perforation::before,
.perforation::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: var(--paper);
}
.perforation::before {
  left: -12px;
}
.perforation::after {
  right: -12px;
}
.receipt__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
}
.receipt__total span {
  font-size: 22px;
  font-weight: 800;
}
.receipt__total b {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.receipt p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate);
}

.compare {
  margin-top: 56px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
}
.compare__row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}
.compare__row > * {
  padding: 16px 20px;
}
.compare__row > :first-child {
  font-weight: 700;
}
.compare__row > :nth-child(2) {
  color: var(--slate);
}
.compare__row > :nth-child(3) {
  background: var(--paper);
}
.compare__row--head {
  border-top: 0;
  background: var(--paper-2);
  font-weight: 800;
  font-size: 16px;
}
.compare__row--head > :nth-child(2) {
  color: var(--ink);
}
.compare__row--head > :nth-child(3) {
  background: var(--brand);
  color: var(--white);
}

/* The day's trains as tickets (#bilety, bilety.js, 17.10.2026): paper tickets in a row on the dark section, the ones
   behind stamped, the next one lifted and outlined in amber. The row scrolls sideways and snaps to a ticket. The ticket's
   own texts are ".tickets …", so the dark section's light paragraph colour does not reach the paper. */
.tickets__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
}
.tickets__copy {
  flex: 1 1 520px;
  max-width: 720px;
  display: grid;
  gap: 16px;
}
.section--dark .tickets__lead {
  font-size: 19px;
  line-height: 1.45;
  color: var(--mist);
}
.tickets__form {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.tickets__field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mist);
}
.tickets__field input {
  width: 200px;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--edge-dark);
  border-radius: 10px;
  background: var(--panel);
  color: var(--white);
  font: 600 17px var(--sans);
}
.tickets__field input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 1px;
}
.tickets__form .pill {
  min-height: 48px;
}
.tickets__board {
  margin-top: 40px;
}
.tickets__route {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}
.section--dark .tickets__status {
  margin: 4px 0 0;
  font-size: 17px;
  color: var(--mist);
}
.tickets__board[data-state="message"] .tickets__status {
  color: var(--amber);
  font-weight: 700;
}
.tickets__strip {
  list-style: none;
  margin: 0 -32px;
  padding: 34px 32px 26px;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--edge-dark) transparent;
}
.tickets__board[data-state="idle"] .tickets__strip,
.tickets__board[data-state="message"] .tickets__strip,
.tickets__board[data-state="idle"] .tickets__hint,
.tickets__board[data-state="message"] .tickets__hint {
  display: none;
}
.section--dark .tickets__hint {
  font-size: 14px;
  color: var(--mist-2);
}
.ticket {
  position: relative;
  flex: 0 0 250px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #faf6e4;
  color: var(--ink);
  scroll-snap-align: start;
  scroll-margin-left: 32px;
}
.ticket--next {
  transform: translateY(-14px);
  box-shadow: 0 0 0 4px var(--amber);
}
.ticket__top {
  height: 262px;
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ticket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
}
.ticket__carrier {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ticket__tag {
  flex: none;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--ok);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}
.ticket__tag--next {
  background: var(--amber);
  color: var(--ink);
}
.ticket__train {
  margin: 2px 0 6px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--ink);
}
.ticket__train small {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
}
.ticket__time {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
}
.ticket__time--big {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.ticket__was {
  font-size: 0.42em;
  font-weight: 600;
  color: #5f7472;
}
.ticket__now {
  color: #994820;
}
.ticket__now small {
  font-size: 0.4em;
  font-weight: 800;
}
.tickets .ticket__station {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--slate);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* The perforation: the dashed tear line, and the two notches cut out of the paper in the section's colour. */
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 250px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
}
.ticket::before {
  left: -13px;
}
.ticket::after {
  right: -13px;
}
.ticket__bottom {
  flex: 1;
  margin: 0 20px;
  padding: 18px 0 18px;
  border-top: 2px dashed #c9c09a;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}
.tickets .ticket__footer {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--slate);
}
.tickets .ticket__footer--late {
  color: #994820;
}
.tickets .ticket__footer--bad {
  color: #cc1236;
}
.tickets .ticket__footer--go {
  color: var(--ok);
}
.ticket__action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  border: 1.5px solid #768c89;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}
.ticket__action:hover {
  border-color: var(--ink);
}
.ticket__action--primary {
  border-color: var(--amber);
  background: var(--amber);
}
.ticket__action--primary:hover {
  background: #fecb85;
  border-color: #fecb85;
}
.ticket__action:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
/* The stamp: inked at a slant over the ticket of a train that has run (aria-hidden: the footer says the same). */
.ticket__stamp {
  position: absolute;
  left: 30px;
  top: 112px;
  transform: rotate(-13deg);
  padding: 5px 14px 4px;
  border: 4px double currentColor;
  border-radius: 9px;
  background: rgba(250, 246, 228, 0.6);
  text-align: center;
  line-height: 1;
  opacity: 0.9;
  pointer-events: none;
}
.ticket__stamp b {
  display: block;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.ticket__stamp small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 800;
}
.ticket__stamp--done {
  color: #455c5c;
}
.ticket__stamp--claim {
  color: #994820;
}
.ticket__stamp--cancelled {
  color: #cc1236;
}
@media (prefers-reduced-motion: no-preference) {
  .ticket__stamp {
    animation: stamp-in 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
  }
}
@keyframes stamp-in {
  from {
    transform: rotate(-13deg) scale(1.6);
    opacity: 0;
  }
  to {
    transform: rotate(-13deg) scale(1);
    opacity: 0.9;
  }
}
@media (max-width: 640px) {
  .tickets__form,
  .tickets__field,
  .tickets__field input {
    width: 100%;
  }
  .tickets__form .pill {
    width: 100%;
  }
  .tickets__strip {
    margin: 0 -16px;
    padding: 30px 16px 22px;
  }
  .ticket {
    flex-basis: 236px;
    scroll-margin-left: 16px;
  }
}

/* How it works */
.stations {
  position: relative;
  margin-top: 56px;
}
.stations::before,
.stations::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}
.stations::before {
  top: 23px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--rule) 0 14px, transparent 14px 22px);
}
.stations::after {
  top: 21px;
  height: 2px;
  background: var(--brand);
}
.stations ol {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.stations li {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stations li p {
  margin-bottom: 8px;
}
.stop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--brand);
  color: var(--amber);
  font-weight: 900;
  font-size: 20px;
  border: 4px solid var(--white);
}
.stop--end {
  background: var(--amber);
  color: var(--ink);
}
.stations h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
}
.stations p {
  margin: 0;
  color: var(--slate);
}
.phone {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1 / 2;
  /* The three phones line up at the bottom, whatever the length of the text above them. */
  margin-top: auto;
  border-radius: 36px;
  border: 8px solid var(--bezel);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 50px rgba(0, 36, 31, 0.18);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Station 2's phone as two slides (18.10.2026, site.js startSlides): the amount and the terms, then the signature drawn
   with the finger — the strokes are drawn anew each time the slide comes (.sign-pad over krok-2-podpis.webp, the same
   strokes, so the end is the screenshot itself). The dots sit on the screen like a phone's own page dots, so the three
   phones still line up at the bottom. Without JavaScript, or with less motion, nothing turns by itself. */
.phone--slides {
  position: relative;
}
.phone--slides .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.phone--slides .slide:first-child {
  position: relative;
  height: 100%;
}
.phone--slides .slide.is-on {
  opacity: 1;
}
.sign-pad {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sign-pad__cover {
  fill: #ffffff;
}
.sign-pad__hint {
  font-family: var(--sans);
  font-size: 15px;
  fill: var(--slate);
  transition: opacity 0.3s ease;
}
.sign-pad path {
  fill: none;
  stroke: #04283a;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slide--sign.is-signed .sign-pad__hint {
  opacity: 0;
}
/* Each dot is a 44 × 44 px touch target (the tester's rule, CI 18.10.2026); the dark pill behind them stays small. */
.slides__dots {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  isolation: isolate;
}
.slides__dots::before {
  content: "";
  position: absolute;
  inset: 10px 8px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(0, 36, 31, 0.62);
}
.phone--slides.is-live .slides__dots {
  display: flex;
}
.slides__dots button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slides__dots button::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.3s ease, background 0.3s ease;
}
.slides__dots button[aria-pressed="true"]::before {
  width: 16px;
  background: var(--amber);
}
.slides__dots button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-radius: 6px;
}

/* How we count */
.section--dark p {
  margin: 0;
  color: var(--mist);
}
.examples {
  background: var(--night);
  border: 1px solid var(--rule-dark);
  border-radius: 20px;
  padding: 22px;
}
.examples__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.examples__head .mono-label {
  color: var(--amber);
}
.examples__head span:last-child {
  font-size: 13px;
  color: var(--mist-2);
}
.ex-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 92px 52px 136px;
  gap: 12px;
  align-items: center;
  padding: 13px 2px;
  border-bottom: 1px solid var(--panel);
  font-family: var(--mono);
  font-size: 14px;
}
.ex-row--head {
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--rule-dark);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist-2);
}
.ex-row > :first-child {
  font-weight: 700;
}
.ex-row--head > :first-child {
  font-weight: 700;
}
.ex-row .muted {
  color: var(--mist);
}
.ex-row .late {
  color: var(--amber);
  font-weight: 700;
}
.ex-row > :last-child {
  text-align: right;
}
.ex-flaps {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}
.ex-flaps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13px;
  height: 28px;
  padding: 0 2px;
  border-radius: 3px;
  background: var(--panel);
  color: var(--amber);
  font-weight: 700;
  box-shadow: inset 0 -14px 0 rgba(0, 0, 0, 0.18);
}
.ex-flaps span.gap {
  background: transparent;
  box-shadow: none;
  min-width: 6px;
}

/* Carriers */
.carriers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.carriers li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.carriers b {
  font-size: 18px;
}
.carriers span {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate);
  text-align: right;
}
.note {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--slate);
}

/* Trust */
.points {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.points b {
  display: block;
  font-weight: 800;
  font-size: 20px;
}
.points span {
  color: var(--slate);
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section--paper .card {
  background: var(--white);
}
.card p {
  margin: 0;
}
.founder {
  display: flex;
  gap: 18px;
  align-items: center;
}
.founder__photo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 48px;
  background: var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: var(--slate);
  padding: 8px;
}
img.founder__photo {
  padding: 0;
  object-fit: cover;
  background: var(--rule);
  /* The photo has a white background: a thin ring keeps the circle visible on the light card. */
  box-shadow: 0 0 0 1px var(--rule);
}
.founder__words {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
}
.founder__words p {
  margin: 0;
}
.founder b {
  display: block;
  font-size: 22px;
  font-weight: 800;
}
.founder span {
  color: var(--slate);
}
.small {
  font-size: 15px;
  color: var(--slate);
}

/* FAQ */
.faq {
  max-width: 900px;
}
.faq__list {
  margin-top: 40px;
  border-top: 1px solid var(--rule);
}
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 21px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-right: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}
.faq details p {
  margin: 14px 0 0;
  color: var(--slate);
}

/* Last call */
.last {
  padding: 96px 0;
  background: var(--brand);
  color: var(--white);
}
.last .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.last h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.2rem, 2.6vw + 1rem, 4rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.last .pill {
  min-height: 60px;
  padding: 0 32px;
  font-size: 20px;
}

/* Footer */
.foot {
  background: var(--night);
  color: var(--mist);
  padding: 72px 0 40px;
  font-size: 16px;
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.foot__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.foot__brand .logo__img {
  height: 36px;
}
.foot p {
  margin: 0;
}
.foot a {
  color: var(--mist);
}
.foot a:hover {
  color: var(--white);
}
.foot__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foot__col h2 {
  margin: 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
}
.foot__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.soon {
  color: var(--mist-2);
}
.legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-dark);
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Phones: one call to action stays at hand once the calculator scrolls away. */
.dock {
  display: none;
}

@media (max-width: 1040px) {
  .hero__grid,
  .two,
  .foot__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__grid,
  .two {
    gap: 48px;
  }
  .facts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .carriers {
    grid-template-columns: minmax(0, 1fr);
  }
  .top__nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .section {
    padding: 88px 0;
  }
  .stations ol {
    gap: 20px;
  }
  .foot__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .foot__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
    line-height: 1.5;
  }
  .wrap {
    padding: 0 16px;
  }
  .top__row {
    min-height: 68px;
  }
  .logo__img {
    height: 32px;
  }
  .top__actions .top__login,
  .top__actions .pill {
    display: none;
  }
  .hero {
    padding: 24px 0 40px;
  }
  .hero__grid {
    gap: 24px;
  }
  .hero__copy {
    gap: 16px;
  }
  .badge {
    font-size: 14px;
    padding: 5px 12px;
  }
  .hero h1 {
    font-size: 44px;
    line-height: 0.98;
  }
  .hero__lead {
    font-size: 17px;
  }
  .hero__promise {
    font-size: 16px;
  }
  .board {
    padding: 16px;
    border-radius: 16px;
    gap: 14px;
  }
  .board__head h2 {
    font-size: 12px;
    letter-spacing: 0.16em;
  }
  .fields {
    gap: 10px;
  }
  .field--wide {
    grid-column: 1 / -1;
  }
  .control {
    min-height: 48px;
    font-size: 16px;
  }
  .flaps span {
    min-width: 26px;
    height: 48px;
    font-size: 28px;
    box-shadow: inset 0 -24px 0 rgba(0, 0, 0, 0.18);
  }
  .flaps span.gap {
    min-width: 8px;
  }
  .fineprint {
    font-size: 11px;
  }
  .facts {
    padding: 22px 0;
  }
  .facts__grid {
    gap: 16px;
  }
  .fact svg {
    display: none;
  }
  .fact b {
    font-size: 17px;
  }
  .fact span {
    font-size: 14px;
  }
  .section {
    padding: 56px 0;
  }
  .h2 {
    font-size: 32px;
  }
  .lead {
    font-size: 17px;
  }
  .stack {
    gap: 14px;
  }
  .receipt {
    padding: 20px 18px 18px;
    border-radius: 16px;
  }
  .perforation {
    margin: 10px -18px;
  }
  .receipt__row {
    font-size: 16px;
    padding: 6px 0;
  }
  .receipt__total span {
    font-size: 17px;
  }
  .receipt__total b {
    font-size: 30px;
  }
  .compare {
    margin-top: 36px;
    font-size: 15px;
    border-radius: 16px;
  }
  .compare__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compare__row > * {
    padding: 10px 12px;
  }
  .compare__row > :first-child {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }
  .compare__row--head > :first-child {
    display: none;
  }
  .compare__row--head > * {
    padding: 12px;
  }
  .compare__row:not(.compare__row--head) > :nth-child(3) {
    background: transparent;
    font-weight: 700;
    color: var(--brand);
  }
  .stations {
    margin-top: 28px;
  }
  .stations::before,
  .stations::after {
    display: none;
  }
  .stations ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-left: 20px;
    border-left: 3px solid var(--brand);
    margin-left: 14px;
  }
  .stations li {
    position: relative;
    gap: 4px;
    padding-left: 18px;
  }
  .stop {
    position: absolute;
    left: -38px;
    top: 0;
    width: 32px;
    height: 32px;
    border-width: 3px;
    font-size: 16px;
  }
  .stations h3 {
    font-size: 20px;
  }
  .stations li:not(.with-phone) .phone {
    display: none;
  }
  .phone {
    width: 200px;
    margin-top: 12px;
    border-radius: 32px;
  }
  .examples {
    padding: 14px;
    border-radius: 16px;
  }
  .ex-row {
    /* Each row is its own grid: the middle column takes what its own words need (the heading "Opóźnienie", a delay), the
       amount the rest. With "auto" the heading's long last label took the middle's room and "Opóźnienie" ran into it. */
    grid-template-columns: 82px minmax(0, max-content) 1fr;
    gap: 8px;
    font-size: 14px;
  }
  .ex-row .opt {
    display: none;
  }
  .carriers b {
    font-size: 17px;
  }
  .card {
    padding: 20px;
    border-radius: 16px;
  }
  .founder__photo {
    width: 72px;
    height: 72px;
  }
  .faq__list {
    margin-top: 20px;
  }
  .faq details {
    padding: 16px 0;
  }
  .faq summary {
    font-size: 18px;
  }
  .last {
    padding: 56px 0 64px;
  }
  .last .pill {
    width: 100%;
    min-height: 56px;
    font-size: 18px;
  }
  .foot {
    padding: 40px 0 120px;
    font-size: 15px;
  }
  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
  .legal {
    margin-top: 32px;
    font-size: 12px;
  }
  .dock {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--rule);
    box-shadow: 0 -10px 30px rgba(0, 36, 31, 0.12);
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }
  .dock[data-show="true"] {
    transform: none;
  }
  .dock .pill {
    width: 100%;
    min-height: 56px;
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 40px;
  }
  .flaps span {
    min-width: 22px;
    font-size: 24px;
    height: 42px;
  }
  .bands button {
    font-size: 14px;
    padding: 0 2px;
  }
  /* The price and the delay one under the other: side by side the delay's buttons were 44 px wide and "60–119" was cut. */
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .ex-row {
    grid-template-columns: 72px minmax(0, max-content) 1fr;
    gap: 6px;
    font-size: 13px;
  }
  .ex-row--head {
    font-size: 11px;
    letter-spacing: 0.02em;
  }
}

/*
 * The legal pages (regulamin.html and the five others, generated by scripts/strony-prawne.py from docs/prawo/strony).
 * Quiet on purpose: the departure board stays on the home page; here the text is a white sheet on the paper background,
 * with the contents beside it on a wide screen and folded above it on a phone.
 */
.doc-top {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  font-weight: 700;
}
.doc-top a {
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
}
.doc-top a:hover {
  color: var(--white);
}
.doc {
  padding-bottom: 96px;
}
.doc__head {
  padding-top: 56px;
  padding-bottom: 32px;
}
.doc__kicker {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}
.doc__kicker a {
  color: var(--slate);
  text-decoration: none;
}
.doc__kicker a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.doc__head h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2.2rem, 2.2vw + 1.2rem, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.doc__meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 16px;
  color: var(--slate);
}
.doc__meta p {
  margin: 0;
}
.doc__meta a {
  font-weight: 700;
}
.doc__grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.doc__aside {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-size: 15px;
  line-height: 1.4;
}
.doc__toc h2,
.doc__others h2,
.doc__toc summary {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.doc__toc ol,
.doc__others ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc__toc a,
.doc__others a {
  color: var(--slate);
  text-decoration: none;
}
.doc__toc a:hover,
.doc__others a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.doc__others a[aria-current="page"] {
  color: var(--ink);
  font-weight: 800;
}
.doc__toc--phone {
  display: none;
}
.doc__body {
  max-width: 820px;
  padding: 48px 56px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  font-size: 17px;
  line-height: 1.65;
}
.doc__body > :first-child {
  margin-top: 0;
}
.doc__body h2 {
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 23px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  scroll-margin-top: 24px;
}
.doc__body > h2:first-child {
  padding-top: 0;
  border-top: 0;
}
.doc__body h3 {
  margin: 32px 0 8px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
  scroll-margin-top: 24px;
}
.doc__body p {
  margin: 0 0 14px;
}
.doc__body ol,
.doc__body ul {
  margin: 0 0 14px;
  padding-left: 1.7em;
}
.doc__body li {
  margin: 0 0 8px;
}
.doc__body li > p {
  margin: 0 0 8px;
}
.doc__body li > ol,
.doc__body li > ul {
  margin: 8px 0 0;
}
.doc__body ul > li::marker {
  color: var(--brand);
}
/* Punkty inside a ustęp are numbered "1)", as in Polish legal texts. */
.doc__body ol ol {
  list-style: none;
  counter-reset: pkt;
  padding-left: 2em;
}
.doc__body ol ol > li {
  position: relative;
  counter-increment: pkt;
}
.doc__body ol ol > li::before {
  content: counter(pkt) ")";
  position: absolute;
  left: -2em;
  width: 1.6em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.doc__body blockquote {
  margin: 0 0 20px;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.doc__body blockquote p {
  overflow-wrap: anywhere;
}
.doc__body blockquote > :last-child {
  margin-bottom: 0;
}
.doc__body hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--rule);
}
.doc__body code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--paper-2);
  overflow-wrap: anywhere;
}
.doc__table {
  margin: 0 0 20px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.doc__table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.doc__table th,
.doc__table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.doc__table th {
  background: var(--paper-2);
  font-weight: 800;
}
.doc__table tr:last-child td {
  border-bottom: 0;
}
/* A narrow table inside a list (the Regulamin's fee examples) fits a phone without scrolling sideways. */
@media (max-width: 480px) {
  .doc__table th,
  .doc__table td {
    padding: 8px 8px;
  }
}
.foot a[aria-current="page"] {
  color: var(--white);
  font-weight: 700;
}

@media (max-width: 1040px) {
  .doc__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .doc__aside {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .doc__toc--wide,
  .doc__others {
    display: none;
  }
  .doc__toc--phone {
    display: block;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 12px;
  }
  .doc__toc--phone summary {
    margin: 0;
    cursor: pointer;
  }
  .doc__toc--phone[open] summary {
    margin-bottom: 12px;
  }
}

@media (max-width: 640px) {
  .doc-top {
    gap: 16px;
    font-size: 15px;
  }
  /* The logo already leads home. */
  .doc-top a[href="/"] {
    display: none;
  }
  .doc__body blockquote {
    padding: 16px;
  }
  .doc__head {
    padding-top: 32px;
    padding-bottom: 24px;
  }
  /* On a phone the document is the page itself, not a card on the page (UX-32): a margin, a card's padding, the "W
     skrócie" frame and a list's indent left a column of about 260 px. Only the "W skrócie" box keeps its frame. */
  .doc__body {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: 16px;
  }
  .doc__body h2 {
    font-size: 21px;
  }
  .doc__body ol,
  .doc__body ul {
    padding-left: 1.3em;
  }
  .doc__body ol ol {
    padding-left: 1.6em;
  }
  .doc__body ol ol > li::before {
    left: -1.7em;
  }
}

@media print {
  .doc-page .top,
  .doc-page .skip,
  .doc-page .preview-banner,
  .doc-page .doc__aside,
  .doc-page .doc__kicker,
  .doc-page .foot {
    display: none !important;
  }
  .doc-page,
  .doc-page main {
    background: #ffffff;
  }
  .doc-page .doc {
    padding: 0;
  }
  .doc-page .wrap {
    padding: 0;
    max-width: none;
  }
  .doc-page .doc__head {
    padding: 0 0 8mm;
  }
  .doc-page .doc__head h1 {
    max-width: none;
    font-size: 22pt;
  }
  .doc-page .doc__meta a {
    display: none;
  }
  .doc-page .doc__grid {
    display: block;
  }
  .doc-page .doc__body {
    max-width: none;
    padding: 0;
    border: 0;
    font-size: 10.5pt;
    line-height: 1.5;
  }
  .doc-page .doc__body h2 {
    break-after: avoid;
    font-size: 13pt;
    margin-top: 8mm;
  }
  .doc-page .doc__body li,
  .doc-page .doc__body blockquote,
  .doc-page .doc__table tr {
    break-inside: avoid;
  }
  .doc-page .doc__body a {
    color: inherit;
  }
}

/* "Gdzie jest mój pociąg?" in the hero (docs/NA_ZYWO.md): a plain form to the app's /na-zywo?q=…, which reads the text the
   same way as the field in the app. Works without JavaScript. */
.live-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin: 0;
}
.live-search__label {
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
}
.live-search__row {
  display: flex;
  gap: 8px;
}
.live-search__input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--edge-dark);
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}
.live-search__input::placeholder {
  color: var(--slate);
  opacity: 1;
}
.live-search .pill {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.live-search__hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--mist);
}

/*
 * Touch targets of at least 44 x 44 px on a phone (QA, 17.10.2026): the logo, "Jak liczymy?" on the calculator, the legal
 * pages' "Strona główna" and "Zaloguj się", and the ticker's pause button (the ticker is as tall as it). A telephone number
 * never breaks inside ("+48 601 870 / 257").
 */
a[href^="tel:"] {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .logo {
    min-height: 44px;
  }
  .board__head a,
  .doc-top a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .ticker {
    /* 44 px for the pause button inside, plus the ticker's 1 px bottom line. */
    height: 45px;
  }
}
