/* ==========================================================================
   Szkoła w podróży — style
   Zero zewnętrznych zasobów (patrz też CSP w index.html).
   Kolory: wszystko leci przez zmienne w :root poniżej (granat, zieleń butelkowa, błękit).
   ========================================================================== */

@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- kolory: granat + zieleń butelkowa + błękit ---------- */
:root {
  --bg: #F3F7F9;
  --paper: #FFFFFF;
  --paper-2: #E4EEF3;
  --ink: #0B1F3A;           /* granat: tekst */
  --ink-2: #44586F;
  --muted: #5A6E86;
  --deep: #081A31;          /* ciemne sekcje */
  --deep-2: #12304F;

  --cta: #0A5A43;           /* zieleń butelkowa: główny przycisk */
  --cta-ink: #FFFFFF;
  --cta-hv: #0B1F3A;        /* przycisk po najechaniu */
  --cta-hv-ink: #FFFFFF;

  --a1: #006A4E;            /* zieleń butelkowa: akcent (słowa kursywą, liczby) */
  --a1-soft: #9FD0F2;       /* jasny błękit: akcent na ciemnym tle */
  --a2: #4FA9E3;            /* błękit */
  --a2-ink: #1B6AA5;
  --a2-soft: #BFE0F5;
  --a3: #5FBF9C;            /* jasna zieleń */
  --a3-ink: #0A5A43;

  --grad: linear-gradient(120deg, #0A5A43, #1E8F6B);
  --grad-dark: linear-gradient(120deg, #2FB58A, #8FD0F5);   /* na granatowym tle */
  --blob-1: #B5DAF3;
  --blob-2: #C4E6D6;
  --blob-3: #D6E8F5;
  --glow-1: rgba(47, 181, 138, .30);
  --glow-2: rgba(79, 169, 227, .34);
  --contact-1: #CBE8DB;
  --contact-2: #CDE4F6;
  --contact-3: #E4EEF3;

  --seat-st: #0A5A43;       /* uczeń w autokarze */
  --seat-op: #4FA9E3;       /* opiekun w autokarze */

  --t-green: #2E9A6B;
  --t-sea: #2F7FC1;
  --t-ice: #6EC1EA;
  --t-pine: #0A5A43;
  --t-navy: #0B1F3A;
  --t-sage: #7DAF9C;

  --line: color-mix(in srgb, var(--ink) 11%, transparent);
  --line-2: color-mix(in srgb, var(--ink) 22%, transparent);
  --wash: color-mix(in srgb, var(--ink) 6%, transparent);
  --shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 36px 70px -34px color-mix(in srgb, var(--ink) 48%, transparent), 0 10px 28px -14px color-mix(in srgb, var(--ink) 26%, transparent);
  --r-xl: 34px;

  --ff-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI Variable Display", "Trebuchet MS", system-ui, sans-serif;
  --ff-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ff-body: "Manrope", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--ff-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--a1); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

/* delikatne ziarno */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* pasek postępu przewijania (bez JS) */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 95; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- nawigacja ---------- */
.nav {
  position: fixed; z-index: 80; top: 14px; left: 50%; translate: -50% 0;
  width: min(1120px, calc(100% - 28px));
  display: flex; align-items: center; gap: 14px;
  padding: 9px 10px 9px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line);
  transition: box-shadow .4s, background .4s;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--paper) 92%, transparent); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--ink) 55%, transparent); }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.logo-mark { width: 42px; height: 42px; flex: none; display: block; border-radius: 30%; filter: drop-shadow(0 8px 12px color-mix(in srgb, var(--ink) 30%, transparent)); transition: transform .5s var(--ease); }
.logo-mark svg { width: 100%; height: 100%; }
.brand:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.brand--light .logo-mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); filter: none; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text b { font: 700 1.08rem var(--ff-display); letter-spacing: -.02em; }
.brand-text b em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: -.01em; color: var(--a1); }
.brand--light .brand-text b em { color: var(--a1-soft); }
.brand-text small { font: 700 .62rem var(--ff-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand--light .brand-text small { color: rgba(255, 255, 255, .55); }

.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 9px 14px; border-radius: 99px; font: 600 .92rem var(--ff-body); color: var(--ink-2); transition: background .3s, color .3s; }
.nav-links a:hover { background: var(--wash); color: var(--ink); }
.nav-dead.nudge { animation: nudge .4s ease-in-out; }
@keyframes nudge { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.burger { display: none; }

/* ---------- przyciski ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 .98rem/1 var(--ff-display); letter-spacing: -.005em;
  transition: color .45s var(--ease), transform .35s var(--ease), box-shadow .4s, background .3s;
}
.btn-sm { padding: 12px 20px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn .ico { transition: transform .4s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-primary { background: var(--cta); color: var(--cta-ink); box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--cta) 80%, #000); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cta-hv); transform: translateY(101%); transition: transform .5s var(--ease); }
.btn-primary:hover { color: var(--cta-hv-ink); }
.btn-primary:hover::before { transform: none; }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-soft { padding: 13px 10px; font-size: .88rem; background: var(--wash); color: var(--ink); }
.btn-soft:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.btn-soft:active { transform: scale(.97); }

/* ---------- elementy wspólne ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: 99px;
  background: color-mix(in srgb, var(--paper) 72%, transparent); border: 1px solid var(--line);
  font: 800 .72rem/1 var(--ff-body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a1); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--a1) 50%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.eyebrow--dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .75); }

.kicker { font: 800 .72rem/1 var(--ff-body); letter-spacing: .1em; text-transform: uppercase; color: var(--a1); }

.section { padding: clamp(80px, 10vw, 140px) 0; scroll-margin-top: 70px; }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2, .outro h2 {
  font: 700 clamp(2.1rem, 4.2vw, 3.6rem)/1.03 var(--ff-display); letter-spacing: -.04em; margin-top: 20px; text-wrap: balance;
}
h2 em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; padding-right: .06em; color: var(--a1); }
.section-sub { margin-top: 16px; color: var(--ink-2); font-size: 1.1rem; }
.section-head--light h2 { color: #fff; }
.section-head--light h2 em { color: var(--a1-soft); }
.section-head--light .section-sub { color: rgba(255, 255, 255, .62); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(118px, 15vh, 150px) 0 clamp(96px, 10vw, 140px); overflow: clip; isolation: isolate; scroll-margin-top: 0; }
.blobs { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .62; animation: float 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; left: -140px; top: -80px; background: var(--blob-1); }
.b2 { width: 460px; height: 460px; right: -100px; top: 40px; background: var(--blob-2); animation-delay: -6s; }
.b3 { width: 560px; height: 560px; left: 35%; bottom: -280px; background: var(--blob-3); animation-delay: -11s; }
@keyframes float { to { transform: translate(40px, -30px) scale(1.12); } }
.flight { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: color-mix(in srgb, var(--ink) 28%, transparent); }
.flight-plane-shape { fill: var(--a1); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
h1 { font: 700 clamp(2.5rem, 4.7vw, 4.5rem)/1 var(--ff-display); letter-spacing: -.04em; margin: 22px 0 24px; }
.h1-l { display: block; }
.h1-l.soft { color: color-mix(in srgb, var(--ink) 48%, transparent); }

.rotator { display: grid; width: fit-content; overflow: hidden; padding: .02em .06em .16em 0; margin-bottom: -.12em; }
.rotator span {
  grid-area: 1 / 1; white-space: nowrap;
  font-family: var(--ff-serif); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: -.02em; line-height: 1.05;
  color: var(--a1);
  transform: translateY(110%); opacity: 0;
  transition: transform .75s var(--ease), opacity .5s;
}
.rotator span.is-on { transform: none; opacity: 1; }
.rotator span.is-off { transform: translateY(-110%); opacity: 0; }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- licznik uczniów ---------- */
.counter-wrap { justify-self: end; width: min(100%, 460px); }
.counter-card {
  position: relative; padding: 24px 24px 22px; border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease);
}
.counter-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: .8;
  background: conic-gradient(from var(--a), var(--a1), var(--a2), var(--a3), var(--a1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 9s linear infinite;
}
@keyframes spin { to { --a: 360deg; } }
.counter-card::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -22px; height: 54px; z-index: -1; border-radius: 50%;
  background: var(--a1); filter: blur(34px); opacity: .3;
}

.counter-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.counter-head h2 { font: 600 1.28rem/1.15 var(--ff-display); letter-spacing: -.025em; margin-top: 9px; max-width: 15ch; }
.hint-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px; background: color-mix(in srgb, var(--a1) 12%, transparent); color: var(--a1); font: 800 .66rem/1 var(--ff-body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.hint-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--a1); animation: ping 1.8s infinite; }

.buses { display: grid; gap: 6px; margin: 12px -6px 4px; }
.bus { width: 100%; height: auto; transition: transform .35s var(--ease); }
.bus.bump { animation: busBump .32s var(--ease); }
@keyframes busBump { 40% { transform: translateY(-3px); } }
.bus-body { fill: var(--paper-2); stroke: var(--line-2); stroke-width: 1.4; }
.bus-glass { fill: color-mix(in srgb, var(--a2) 30%, var(--paper)); }
.bus-door { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.wheel { fill: var(--ink); }
.wheel-in { fill: var(--paper); }
.driver { fill: var(--ink); }
.seat { fill: var(--paper); stroke: var(--line-2); stroke-width: 1.3; transform-box: fill-box; transform-origin: center; }
.seat.st { fill: var(--seat-st); stroke: none; }
.seat.op { fill: var(--seat-op); stroke: none; }
.seat.pop { animation: seatPop .45s var(--ease); }
@keyframes seatPop { 0% { transform: scale(.2); } 60% { transform: scale(1.4); } 100% { transform: scale(1); } }

.stats { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: end; padding: 8px 0 2px; }
.stat-main b { display: block; font: 700 4.2rem/.85 var(--ff-display); letter-spacing: -.05em; color: var(--a1); font-variant-numeric: tabular-nums; transform-origin: left bottom; min-width: 2ch; }
.stat-main span { display: block; margin-top: 8px; font: 800 .72rem var(--ff-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-side div { padding: 10px 12px; border-radius: 14px; background: var(--wash); }
.stat-side dt { font: 800 .64rem var(--ff-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-side dd { margin-top: 3px; font: 700 1.5rem/1 var(--ff-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; transform-origin: left bottom; }
.bump { animation: bump .3s var(--ease); }
@keyframes bump { 40% { transform: scale(1.14); } }
.ratio { margin-top: 8px; font: 700 .8rem var(--ff-body); color: var(--ink-2); }
.ratio:empty { display: none; }
.status { min-height: 2.7em; margin: 10px 0 14px; font: 700 .94rem/1.35 var(--ff-body); color: var(--ink); }

.tap-wrap { position: relative; }
.tap {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 78px; border: 0; border-radius: 24px; cursor: pointer;
  background: var(--cta); color: var(--cta-ink);
  font: 700 1.3rem/1 var(--ff-display); letter-spacing: -.01em;
  box-shadow: 0 7px 0 color-mix(in srgb, var(--cta) 58%, #000), 0 22px 30px -14px color-mix(in srgb, var(--cta) 70%, transparent);
  transition: transform .09s ease-out, box-shadow .09s ease-out;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none;
}
.tap .ico { width: 1.25em; height: 1.25em; }
.tap:active, .tap.fire { transform: translateY(6px); box-shadow: 0 1px 0 color-mix(in srgb, var(--cta) 58%, #000), 0 8px 16px -10px color-mix(in srgb, var(--cta) 70%, transparent); }
.tap::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, .35), transparent 60%); opacity: 0; transition: opacity .3s; }
.tap:hover::after { opacity: 1; }
.tap.idle { animation: idle 2.2s ease-in-out infinite; }
@keyframes idle { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
.plus { position: absolute; bottom: 70%; pointer-events: none; font: 800 1.15rem var(--ff-display); color: var(--a1); animation: plusUp .85s var(--ease) forwards; }
@keyframes plusUp { from { opacity: 1; transform: translateY(0) scale(.9); } to { opacity: 0; transform: translateY(-46px) scale(1.15); } }

.tap-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.btn-soft.guard::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--seat-op); }
.fine { margin-top: 16px; text-align: center; font-size: .78rem; color: var(--muted); }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 2; margin: -28px -24px 0; padding: 22px 0; background: var(--deep); color: #fff; overflow: hidden; rotate: -1.6deg; box-shadow: 0 24px 50px -26px color-mix(in srgb, var(--deep) 80%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.marquee-group span { font: 700 clamp(1.5rem, 2.8vw, 2.3rem)/1 var(--ff-display); letter-spacing: -.03em; }
.marquee-group span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .7); }
.marquee-group i { font-style: normal; color: var(--a1-soft); font-size: 1.4rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- usługi (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card {
  --tint: var(--a1);
  position: relative; grid-column: span 6; display: flex; flex-direction: column;
  padding: 30px; min-height: 410px; border-radius: 30px; overflow: hidden; isolation: isolate;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 1px 0 #fff inset, 0 24px 50px -38px color-mix(in srgb, var(--ink) 50%, transparent);
  transition: border-color .4s, box-shadow .5s;
}
.card--wide { grid-column: span 7; }
.card--narrow { grid-column: span 5; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--tint) 17%, transparent), transparent 62%);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: color-mix(in srgb, var(--tint) 42%, transparent); box-shadow: 0 1px 0 #fff inset, 0 34px 60px -34px color-mix(in srgb, var(--tint) 55%, var(--ink)); }
.c-a1 { --tint: var(--a1); } .c-a2 { --tint: var(--a2); } .c-a3 { --tint: var(--a3); } .c-ink { --tint: var(--ink); }
.card-no { position: absolute; top: 28px; right: 30px; font: 700 .8rem var(--ff-display); letter-spacing: .1em; color: var(--muted); }
.card-ico { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; color: var(--tint); background: color-mix(in srgb, var(--tint) 15%, var(--paper)); margin-bottom: 22px; }
.c-a3 .card-ico { color: var(--a3-ink); }
.card-ico svg { width: 26px; height: 26px; }
.card h3 { font: 600 1.65rem/1.1 var(--ff-display); letter-spacing: -.03em; }
.card > p { margin: 10px 0 28px; color: var(--ink-2); max-width: 38ch; font-size: 1rem; }
.viz { margin-top: auto; }
.viz-cap { margin-top: 4px; font: 700 .68rem var(--ff-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* budżet */
.funds { display: grid; gap: 13px; }
.fund-row { display: grid; grid-template-columns: 78px 1fr 22px; align-items: center; gap: 14px; font: 700 .84rem var(--ff-body); color: var(--ink-2); }
.fund-bar { height: 12px; border-radius: 99px; background: var(--wash); overflow: hidden; }
.fund-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.4s var(--ease) var(--d, 0s); }
.is-in .fund-bar i { width: var(--w); }
.fund-ok { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: color-mix(in srgb, var(--a1) 14%, transparent); color: var(--a1); }

/* trasa */
.route-mini { position: relative; padding-top: 34px; }
.rt-stops { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font: 700 .8rem var(--ff-body); color: var(--ink-2); }
.rt-stops li { display: grid; justify-items: center; gap: 12px; position: relative; z-index: 1; }
.rt-stops i { width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3.5px solid var(--a2); }
.rt-line { position: absolute; left: 12.5%; right: 12.5%; top: 41px; border-top: 2px dashed var(--line-2); }
.rt-plane { position: absolute; z-index: 2; top: 24px; left: 12.5%; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: var(--a2); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 16px -6px color-mix(in srgb, var(--a2) 80%, transparent); animation: fly 6.5s var(--ease) infinite; }
.rt-plane svg { width: 16px; height: 16px; rotate: 30deg; }
@keyframes fly { 0% { left: 12.5%; opacity: 0; } 8% { opacity: 1; } 78% { left: 87.5%; opacity: 1; } 92%, 100% { left: 87.5%; opacity: 0; } }

/* dokumenty */
.docs { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: end; }
.sheets { position: relative; height: 150px; }
.sheet { position: absolute; left: 10px; bottom: 0; width: 112px; height: 140px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--ink) 45%, transparent); transition: transform .6s var(--ease); }
.s3 { transform: rotate(-9deg) translateX(-8px); background: color-mix(in srgb, var(--a3) 22%, var(--paper)); }
.s2 { transform: rotate(6deg) translateX(8px); background: color-mix(in srgb, var(--a3) 10%, var(--paper)); }
.s1 { transform: rotate(-1deg); padding: 16px 14px; display: grid; gap: 9px; align-content: start; }
.s1 b { display: block; height: 9px; width: 60%; border-radius: 4px; background: var(--a3); }
.s1 i { display: block; height: 6px; border-radius: 3px; background: var(--line-2); }
.s1 i:nth-of-type(2) { width: 80%; } .s1 i:nth-of-type(3) { width: 55%; }
.s1 em { position: absolute; right: -12px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--a2); color: #fff; display: grid; place-items: center; transform: scale(0) rotate(-30deg); transition: transform .6s var(--ease) .6s; }
.s1 em svg { width: 18px; height: 18px; }
.is-in .s1 em { transform: none; }
.docs:hover .s3 { transform: rotate(-16deg) translateX(-18px); }
.docs:hover .s2 { transform: rotate(13deg) translateX(20px); }
.checklist { display: grid; gap: 9px; }
.checklist li { display: flex; align-items: center; gap: 10px; font: 700 .92rem var(--ff-body); color: var(--ink-2); }
.checklist svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: color-mix(in srgb, var(--a3) 30%, transparent); color: var(--a3-ink); transform: scale(0); transition: transform .5s var(--ease) var(--d, 0s); }
.is-in .checklist svg { transform: none; }

/* monitoring */
.monitor { position: relative; margin-top: auto; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); padding: 16px 18px 6px; overflow: hidden; }
.mon-head { display: flex; align-items: center; gap: 12px; font: 800 .72rem var(--ff-body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.eye { position: relative; width: 11px; height: 11px; border-radius: 50%; background: var(--a2); }
.eye::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--a2); animation: ripple 2s ease-out infinite; }
@keyframes ripple { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.mon-list li { display: flex; justify-content: space-between; align-items: center; padding: 11px 2px; border-top: 1px solid var(--line); font: 700 .95rem var(--ff-body); }
.pill { display: inline-block; padding: 6px 12px; border-radius: 99px; font: 800 .74rem/1 var(--ff-body); white-space: nowrap; }
.pill-ok { background: color-mix(in srgb, var(--a2) 18%, transparent); color: var(--a2-ink); }
.pill-warn { background: color-mix(in srgb, var(--a2) 20%, transparent); color: var(--a2-ink); }
.pill-info { background: var(--wash); color: var(--ink); }
.pill-swap { display: grid; justify-items: end; }
.pill-swap .pill { grid-area: 1 / 1; animation: swapA 8s infinite; }
.pill-swap .pill + .pill { animation-name: swapB; }
@keyframes swapA { 0%, 42% { opacity: 1; transform: none; } 50%, 92% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
@keyframes swapB { 0%, 42% { opacity: 0; transform: translateY(6px); } 50%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(6px); } }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 64px; pointer-events: none; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--a2) 22%, transparent), transparent); animation: scan 4.5s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateY(-70px); } to { transform: translateY(230px); } }

/* ---------- wyjazdy (bilety) ---------- */
.tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ticket { --t: var(--a1); filter: drop-shadow(0 18px 16px color-mix(in srgb, var(--ink) 11%, transparent)); }
.t-green { --t: var(--t-green); } .t-sea { --t: var(--t-sea); } .t-ice { --t: var(--t-ice); } .t-pine { --t: var(--t-pine); } .t-navy { --t: var(--t-navy); } .t-sage { --t: var(--t-sage); }
.ticket-in {
  display: grid; grid-template-columns: 1fr 96px; min-height: 138px; border-radius: 22px; background: var(--paper);
  box-shadow: inset 6px 0 0 var(--t);
  -webkit-mask: radial-gradient(circle 12px at calc(100% - 96px) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at calc(100% - 96px) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 12px at calc(100% - 96px) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at calc(100% - 96px) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  transition: transform .5s var(--ease);
}
.ticket:hover .ticket-in { transform: translateY(-6px) rotate(-.8deg); }
.ticket-main { padding: 26px 20px 24px 28px; display: grid; align-content: center; gap: 6px; }
.ticket-main h3 { font: 600 1.4rem/1.1 var(--ff-display); letter-spacing: -.03em; }
.ticket-main p { color: var(--muted); font-size: .92rem; line-height: 1.35; }
.ticket-stub {
  display: grid; place-items: center; align-content: center; gap: 8px;
  border-left: 2px dashed var(--line-2); border-radius: 0 22px 22px 0;
  background: color-mix(in srgb, var(--t) 14%, transparent); color: color-mix(in srgb, var(--t) 70%, var(--ink));
}
.ticket-stub b { font: 800 1.75rem/1 var(--ff-display); letter-spacing: -.02em; }
.ticket-stub svg { width: 18px; height: 18px; rotate: 30deg; transition: transform .6s var(--ease); }
.ticket:hover .ticket-stub svg { transform: translate(8px, -8px); }

/* ---------- jak to działa ---------- */
.process { position: relative; margin: 0 14px; border-radius: 44px; background: var(--deep); color: #fff; padding: clamp(80px, 9vw, 130px) 0 clamp(90px, 10vw, 140px); overflow: hidden; isolation: isolate; scroll-margin-top: 70px; }
.process::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 55% at 10% 0%, var(--glow-1), transparent 70%), radial-gradient(55% 55% at 98% 100%, var(--glow-2), transparent 70%); }
.process::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.3px); background-size: 30px 30px; -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }
.route { position: relative; margin-top: 8px; }
.route-track { position: absolute; z-index: 0; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 7px, transparent 7px 14px); pointer-events: none; }
.route-fill { position: absolute; inset: 0; background: var(--grad-dark); border-radius: inherit; transform-origin: 0 0; transform: scaleX(var(--p, 0)); }
.route-plane { position: absolute; left: 0; top: 0; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--grad-dark); color: var(--deep); display: grid; place-items: center; box-shadow: 0 0 0 7px color-mix(in srgb, var(--a2) 24%, transparent), 0 12px 24px -8px color-mix(in srgb, var(--a2) 80%, transparent); will-change: transform; }
.route-plane svg { width: 18px; height: 18px; rotate: 30deg; }
.steps { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; padding-top: 88px; opacity: .45; transition: opacity .6s; }
.step.is-done { opacity: 1; }
.badge { position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--deep-2); border: 1.5px solid rgba(255, 255, 255, .22); font: 700 1.2rem var(--ff-display); color: rgba(255, 255, 255, .8); transition: background .5s, color .5s, border-color .5s, box-shadow .5s; }
.step.is-done .badge { background: #fff; color: var(--deep); border-color: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, .09); }
.step h3 { font: 600 1.35rem/1.2 var(--ff-display); letter-spacing: -.025em; margin-bottom: 9px; }
.step p { color: rgba(255, 255, 255, .66); font-size: .98rem; max-width: 26ch; }

/* ---------- zakończenie ---------- */
.outro-card {
  text-align: center; padding: clamp(40px, 7vw, 92px) clamp(22px, 5vw, 64px); border-radius: var(--r-xl); border: 1px solid rgba(255, 255, 255, .8);
  background: radial-gradient(60% 80% at 0% 0%, var(--contact-1), transparent 60%), radial-gradient(50% 70% at 100% 10%, var(--contact-2), transparent 60%), radial-gradient(60% 80% at 80% 100%, var(--contact-3), transparent 60%), var(--paper);
  box-shadow: var(--shadow);
}
.outro-card h2 { max-width: 15em; margin-inline: auto; }
.outro-lead { margin: 18px auto 0; max-width: 36ch; color: var(--ink-2); font-size: 1.12rem; }
.outro-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.outro-chips a { display: inline-flex; padding: 12px 20px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); font: 600 .95rem var(--ff-display); transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s; }
.outro-chips a:hover { transform: translateY(-3px); background: var(--cta); color: var(--cta-ink); border-color: transparent; }

/* ---------- finansowanie ---------- */
.funding { padding: 0 0 clamp(56px, 7vw, 96px); }
.funding .container { padding-top: 40px; border-top: 2px dashed var(--line-2); }
.funding-text { text-align: center; font: 400 clamp(1.5rem, 3vw, 2.3rem)/1.25 var(--ff-serif); color: var(--ink-2); text-wrap: balance; }
.funding-text em { font-style: italic; color: var(--ink); }
.funding-mark { color: var(--a1); margin-right: .5em; font-style: normal; }

/* ---------- stopka ---------- */
.footer { position: relative; margin: 0 14px 14px; padding-top: 70px; border-radius: 44px; background: var(--deep); color: rgba(255, 255, 255, .7); overflow: hidden; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { max-width: 340px; display: grid; gap: 18px; }
.footer-brand .brand-text b { color: #fff; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 44px; align-content: start; font: 600 .98rem var(--ff-body); }
.footer-links a { color: rgba(255, 255, 255, .78); transition: color .3s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.footer-bottom a:hover { color: #fff; }
.wordmark { margin-top: 14px; padding: 0 0 .06em; text-align: center; white-space: nowrap; font: 800 clamp(2.4rem, 9.6vw, 9rem)/.95 var(--ff-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .16); user-select: none; }

/* ---------- responsywność ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .counter-wrap { justify-self: center; width: min(100%, 520px); }
  .card, .card--wide, .card--narrow { grid-column: span 12; min-height: 0; }
  .tickets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: grid; gap: 2px; padding: 12px; border-radius: 26px;
    background: color-mix(in srgb, var(--paper) 98%, transparent); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--ink) 60%, transparent);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .35s var(--ease), visibility .3s;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 16px; font-size: 1rem; }
  .burger { display: grid; place-content: center; gap: 6px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--wash); cursor: pointer; }
  .burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease); }
  .nav.is-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .steps { grid-template-columns: 1fr; gap: 38px; }
  .step { padding: 8px 0 0 86px; min-height: 56px; }
  .route-fill { transform: scaleY(var(--p, 0)); }
  .route-track { background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .3) 0 7px, transparent 7px 14px); }
  .route-plane svg { rotate: 120deg; }
  .process, .footer { margin-inline: 8px; border-radius: 32px; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .brand-text small { display: none; }
  .tickets { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .sheets { height: 150px; max-width: 170px; }
  .card { padding: 24px; }
  .counter-card { padding: 20px 18px 18px; }
  .stat-main b { font-size: 3.6rem; }
  .fund-row { grid-template-columns: 64px 1fr 22px; gap: 10px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ---------- ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .rotator span { transform: none; opacity: 0; }
  .rotator span.is-on { opacity: 1; }
  .marquee-track { animation: none; }
}

/* ---------- fonty lokalne (self-hosted) ----------
   Bricolage Grotesque, Instrument Serif i Manrope — licencja SIL OFL 1.1 (wolno hostować i używać komercyjnie).
   Pliki leżą w /fonts, nic nie jest pobierane z zewnątrz.
   Podzbiór latin-ext zawiera polskie znaki (ą ć ę ł ń ś ź ż). */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.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: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/instrument-serif-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/instrument-serif-italic-latin.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: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/instrument-serif-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/instrument-serif-latin.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: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/manrope-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/manrope-latin.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; }
