/* ══════════════════════════════════════════════════════════════
   D.F Net – system wizualny
   Asfalt + żółć znaków poziomych + błękit tablic rejestracyjnych UE.
   Krój: Barlow (zaprojektowany na bazie znaków drogowych) – dwie szerokości.
   ══════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Barlow'; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: swap; src: url(../fonts/barlow-condensed-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: swap; src: url(../fonts/barlow-condensed-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url(../fonts/barlow-condensed-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url(../fonts/barlow-condensed-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F; }

:root {
  --asphalt:   #10151c;
  --asphalt-2: #161d26;
  --asphalt-3: #1f2835;
  --line:      #2b3645;
  --steel:     #8e9bab;
  --paper:     #e9edf1;
  --signal:    #ffb020;
  --signal-d:  #d98e0a;
  --plate:     #2f63e0;
  --ok:        #37c98b;
  --danger:    #ff5d4f;

  --f-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-body:    'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --r-s: 4px;  --r-m: 8px;  --r-l: 16px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--asphalt); color: var(--paper);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--signal); color: var(--asphalt); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(3rem, 7.4vw, 6.6rem); font-weight: 800; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
h3 { font-size: 1.6rem; font-weight: 600; }
p  { margin: 0 0 1em; max-width: 64ch; }
.muted { color: var(--steel); }

/* ── Przyciski ─────────────────────────────────────────── */
.btn {
  --bg: var(--signal); --fg: var(--asphalt);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.4em; border: 0; border-radius: var(--r-s);
  background: var(--bg); color: var(--fg); cursor: pointer; text-decoration: none;
  font: 600 1.12rem/1 var(--f-display); letter-spacing: .02em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .2s var(--ease), background .2s;
}
.btn::after { /* błysk odblasku przy najechaniu */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-ghost { --bg: transparent; --fg: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--steel); }
.btn-danger { --bg: var(--danger); --fg: #fff; }
.btn-sm { min-height: 36px; padding: 0 .9em; font-size: 1rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ── Logo ──────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-word { font: 800 1.55rem/1 var(--f-display); letter-spacing: .01em; }
.logo-word small { display: block; font: 500 .72rem/1.2 var(--f-body); color: var(--steel); letter-spacing: .04em; margin-top: 2px; }

/* ══════════════════════════════════════════════════════════
   NAGŁÓWEK
   ══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(16px, 4vw, 48px);
  transition: background .3s, box-shadow .3s, transform .35s var(--ease);
}
.site-header.scrolled { background: rgba(16,21,28,.86); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.hide { transform: translateY(-100%); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 10px 14px; text-decoration: none; color: var(--steel);
  font: 600 1.08rem/1 var(--f-display); letter-spacing: .02em; position: relative;
}
.site-nav a:hover, .site-nav a.active { color: var(--paper); }
.site-nav a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: repeating-linear-gradient(90deg, var(--signal) 0 8px, transparent 8px 13px); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--paper); margin: 5px auto; transition: .3s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; padding: 12px 20px 24px; background: var(--asphalt-2); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s var(--ease); }
  .site-nav.open { transform: none; }
  .site-nav a { padding: 14px 4px; font-size: 1.3rem; }
  .site-nav .btn { margin-top: 10px; }
}

/* ══════════════════════════════════════════════════════════
   HERO – autostrada o zmierzchu (canvas / wideo)
   ══════════════════════════════════════════════════════════ */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-canvas, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { display: none; }
.hero.use-video .hero-video { display: block; }
.hero.use-video .hero-canvas { display: none; }
.hero::after { /* czytelność tekstu */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(16,21,28,.88) 0%, rgba(16,21,28,.55) 45%, rgba(16,21,28,0) 75%),
              linear-gradient(0deg, var(--asphalt) 0%, transparent 30%);
}
.hero-inner { position: relative; z-index: 2; padding: calc(var(--header-h) + 40px) clamp(20px, 6vw, 96px) clamp(56px, 12vh, 120px); max-width: 1100px; }
.hero h1 { text-wrap: balance; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); }
.hero.play h1 .line > span { animation: rise 1s var(--ease) forwards; }
.hero.play h1 .line:nth-child(2) > span { animation-delay: .14s; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: #c7d0da; margin-top: 26px; max-width: 46ch; opacity: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; opacity: 0; }
.hero.play .hero-lead    { animation: fadeIn .9s .55s var(--ease) forwards; }
.hero.play .hero-actions { animation: fadeIn .9s .75s var(--ease) forwards; }
.hero-hl { color: var(--signal); } /* znak poziomy – cała druga linia nagłówka */
@keyframes rise   { to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Tarcza tachografu w rogu hero – żywy zegar */
.tacho-chip {
  position: absolute; right: clamp(16px, 4vw, 48px); bottom: clamp(24px, 6vh, 56px); z-index: 2;
  display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px;
  background: rgba(22,29,38,.72); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 60px;
  opacity: 0;
}
.hero.play .tacho-chip { animation: fadeIn .9s 1.1s var(--ease) forwards; }
.tacho-chip svg { width: 54px; height: 54px; }
.tacho-chip b { display: block; font: 700 1.5rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.tacho-chip span { font-size: .84rem; color: var(--steel); }
@media (max-width: 700px) { .tacho-chip { display: none; } }

/* ══════════════════════════════════════════════════════════
   PASEK TRASY – przewijanie strony = jazda
   ══════════════════════════════════════════════════════════ */
.route-rail { position: fixed; left: clamp(10px, 1.6vw, 26px); top: 50%; transform: translateY(-50%); z-index: 40; height: min(62vh, 520px); width: 30px; }
.route-rail .lane { position: absolute; left: 14px; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--line) 0 10px, transparent 10px 18px); }
.route-rail .lane-done { position: absolute; left: 14px; top: 0; width: 2px; height: 0; background: repeating-linear-gradient(180deg, var(--signal) 0 10px, transparent 10px 18px); }
.route-rail .post { position: absolute; left: 8px; width: 14px; height: 14px; border-radius: 3px; background: var(--asphalt-3); border: 2px solid var(--line); transform: translateY(-50%); cursor: pointer; transition: .3s; padding: 0; }
.route-rail .post.passed { border-color: var(--signal); background: var(--signal); }
.route-rail .post::after { content: attr(data-label); position: absolute; left: 24px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 600 .95rem/1 var(--f-display); color: var(--steel); opacity: 0; transition: opacity .25s; pointer-events: none; }
.route-rail .post:hover::after, .route-rail .post:focus-visible::after { opacity: 1; }
.route-rail .rig { position: absolute; left: 3px; top: 0; width: 24px; height: 36px; transform: translateY(-50%); transition: top .12s linear; filter: drop-shadow(0 0 8px rgba(255,176,32,.45)); }
@media (max-width: 1100px) { .route-rail { display: none; } }

/* ══════════════════════════════════════════════════════════
   SEKCJE
   ══════════════════════════════════════════════════════════ */
.section { position: relative; padding: clamp(80px, 12vw, 150px) clamp(20px, 6vw, 96px); }
.wrap { max-width: 1240px; margin: 0 auto; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 64px; }
.section-head p { color: var(--steel); font-size: 1.12rem; margin: 0; }
.km-post { /* słupek kilometrowy zamiast "eyebrow" */
  display: inline-grid; place-items: center; min-width: 58px; padding: 6px 10px 8px; margin-bottom: 22px;
  background: var(--paper); color: var(--asphalt); border-radius: 4px 4px 2px 2px;
  font: 700 .82rem/1 var(--f-display); text-align: center; box-shadow: 0 3px 0 var(--signal);
}
.km-post b { display: block; font-size: 1.5rem; line-height: 1; margin-top: 2px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Ujawnianie przy przewijaniu – jeden spójny ruch */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ── Usługi: lista w stylu tablic drogowskazowych ─────── */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 76px minmax(0, 1.1fr) minmax(0, 1.4fr) 40px; gap: 28px; align-items: center;
  padding: 30px 8px; border-bottom: 1px solid var(--line); position: relative; cursor: default;
}
.service::before { /* pas świetlny przesuwający się po najechaniu */
  content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,176,32,.09), transparent 70%);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.service:hover::before { transform: none; }
.service-sign { width: 64px; height: 64px; position: relative; }
.service-sign svg { width: 100%; height: 100%; }
.service h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); position: relative; }
.service p { color: var(--steel); margin: 0; position: relative; }
.service .arrow { width: 32px; height: 32px; color: var(--steel); transition: transform .4s var(--ease), color .3s; position: relative; }
.service:hover .arrow { transform: translateX(6px); color: var(--signal); }
.service:hover .service-sign svg .sign-anim { animation: signPulse 1.2s var(--ease); }
@keyframes signPulse { 40% { transform: scale(1.08); } }
.sign-anim { transform-box: fill-box; transform-origin: center; }
@media (max-width: 860px) { .service { grid-template-columns: 56px 1fr; } .service p { grid-column: 1 / -1; } .service .arrow { display: none; } .service-sign { width: 52px; height: 52px; } }

/* ── Mapa tras ─────────────────────────────────────────── */
.routes { background: radial-gradient(ellipse at 30% 40%, #18212d 0%, var(--asphalt) 70%); overflow: hidden; }
.routes-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.map-box { position: relative; aspect-ratio: 1000 / 916; }
.map-box canvas { width: 100%; height: 100%; }
.map-tip { position: absolute; pointer-events: none; padding: 8px 12px; background: var(--paper); color: var(--asphalt); border-radius: 4px; font: 600 1rem/1.2 var(--f-display); transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.map-tip small { display: block; font: 500 .8rem var(--f-body); color: #4a5563; }
.map-tip.on { opacity: 1; }
.route-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 2px; }
.route-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--asphalt-2); border-left: 3px solid transparent; cursor: pointer; transition: .25s; }
.route-list li:hover, .route-list li.on { border-left-color: var(--signal); background: var(--asphalt-3); }
.route-list b { font: 600 1.2rem/1 var(--f-display); }
.route-list span { color: var(--steel); font-size: .92rem; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .routes-grid { grid-template-columns: 1fr; } }

/* ── Licznik kilometrów (odometr) ──────────────────────── */
.odo-band { border-block: 1px solid var(--line); background: var(--asphalt-2); }
.odo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.odo { padding: 44px clamp(16px, 3vw, 40px); border-right: 1px solid var(--line); }
.odo:last-child { border-right: 0; }
.odo-digits { display: inline-flex; gap: 3px; padding: 6px; background: #07090c; border-radius: 6px; box-shadow: inset 0 2px 8px rgba(0,0,0,.8); }
.odo-digit { width: .64em; height: 1.1em; overflow: hidden; font: 700 clamp(2.4rem, 4vw, 3.4rem)/1.1 var(--f-display); background: linear-gradient(#1a1f27, #2a313c 50%, #1a1f27); border-radius: 3px; text-align: center; position: relative; }
.odo-digit.last { background: linear-gradient(#fff, #e8ecf0 50%, #fff); color: var(--asphalt); }
.odo-digit > span { display: block; transition: transform 2.2s cubic-bezier(.3,.9,.25,1); }
.odo-digit > span i { display: block; font-style: normal; height: 1.1em; }
.odo-label { display: block; margin-top: 14px; color: var(--steel); font-size: 1rem; }
@media (max-width: 860px) { .odo-grid { grid-template-columns: 1fr 1fr; } .odo:nth-child(2) { border-right: 0; } .odo:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ── Drabina uprawnień 0–5 ─────────────────────────────── */
.ladder { display: grid; gap: 10px; }
.rung { display: grid; grid-template-columns: 64px 200px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 20px; background: var(--asphalt-2); border-radius: var(--r-m); position: relative; overflow: hidden; }
.rung-no { font: 800 2.8rem/1 var(--f-display); color: var(--line); transition: color .4s; }
.rung.in .rung-no { color: var(--signal); }
.rung h3 { font-size: 1.5rem; }
.rung p { margin: 2px 0 0; color: var(--steel); font-size: .95rem; }
.rung-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 30px; background: var(--asphalt-3); color: var(--steel); font-size: .86rem; font-weight: 500; }
.chip.on { background: rgba(255,176,32,.14); color: var(--signal); }
.rung .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--signal); transition: width 1.2s var(--ease); }
.rung.in .bar { width: calc(var(--lvl) * 20%); }
@media (max-width: 760px) { .rung { grid-template-columns: 48px 1fr; } .rung-tabs { grid-column: 1 / -1; } }

/* ── Pasmo wideo ───────────────────────────────────────── */
.video-band { position: relative; min-height: 78vh; display: grid; align-items: center; overflow: hidden; }
.video-band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.video-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,21,28,.96) 0%, rgba(16,21,28,.8) 38%, rgba(16,21,28,.15) 70%, rgba(16,21,28,.35) 100%), linear-gradient(0deg, rgba(16,21,28,.9), transparent 30%); z-index: 1; }
.video-band .wrap { position: relative; z-index: 2; width: 100%; }
.video-band .wrap > * { max-width: 560px; }
@media (max-width: 760px) { .video-band::before { background: rgba(16,21,28,.78); } }
.video-band h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.video-band p { margin: 18px 0 30px; color: #c7d0da; }

/* ── Kontakt / stopka ──────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.contact-lines { display: grid; gap: 22px; margin-top: 12px; }
.contact-lines a, .contact-lines div { display: flex; gap: 16px; align-items: center; text-decoration: none; font: 600 1.4rem/1.2 var(--f-display); }
.contact-lines small { display: block; font: 400 .9rem var(--f-body); color: var(--steel); }
.contact-lines svg { width: 28px; height: 28px; color: var(--signal); flex: none; }
.site-footer { padding: 36px clamp(20px, 6vw, 96px); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--steel); font-size: .92rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ══════════════════════════════════════════════════════════
   OKNO LOGOWANIA / REJESTRACJI
   ══════════════════════════════════════════════════════════ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-back { position: absolute; inset: 0; background: rgba(7,10,14,.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.modal.open .modal-back { opacity: 1; }
.modal-card {
  position: relative; width: min(460px, 100%); max-height: calc(100svh - 40px); overflow: auto;
  background: var(--asphalt-2); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 34px 32px 30px; transform: translateY(24px) scale(.97); opacity: 0; transition: .35s var(--ease);
}
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-card.wide { width: min(640px, 100%); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; background: none; color: var(--steel); cursor: pointer; font-size: 1.5rem; border-radius: 50%; }
.modal-close:hover { color: var(--paper); background: var(--asphalt-3); }
.modal-card h2 { font-size: 2.3rem; margin-bottom: 6px; }
.modal-card .sub { color: var(--steel); margin-bottom: 24px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--asphalt); border-radius: var(--r-m); padding: 4px; margin-bottom: 24px; position: relative; }
.seg button { border: 0; background: none; padding: 10px; cursor: pointer; color: var(--steel); font: 600 1.08rem/1 var(--f-display); position: relative; z-index: 1; transition: color .25s; border-radius: 6px; }
.seg button.on { color: var(--asphalt); }
.seg .seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; background: var(--signal); border-radius: 6px; transition: transform .35s var(--ease), width .35s var(--ease); }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .92rem; font-weight: 500; color: #c7d0da; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-s);
  background: var(--asphalt); border: 1.5px solid var(--line); color: var(--paper); font: 400 1rem var(--f-body);
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(255,176,32,.18); }
.hint { font-size: .85rem; color: var(--steel); }
.form-error { display: none; padding: 10px 14px; margin-bottom: 14px; border-radius: var(--r-s); background: rgba(255,93,79,.12); color: #ffb1a9; font-size: .95rem; border-left: 3px solid var(--danger); }
.form-error.show { display: block; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--signal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: .95rem; }
.pw-rules { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pw-rules .chip.on { background: rgba(55,201,139,.14); color: var(--ok); }

/* Suwak weryfikacji: dociągnij naczepę do rampy */
.dock { margin: 6px 0 20px; }
.dock-track { position: relative; height: 78px; border-radius: var(--r-m); background: var(--asphalt); border: 1.5px solid var(--line); overflow: hidden; touch-action: none; user-select: none; }
.dock-track .dock-lane { position: absolute; left: 0; right: 0; top: 62%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 12px, transparent 12px 22px); }
.dock-track .dock-gate { position: absolute; top: 26px; bottom: 6px; width: 64px; border: 2px dashed var(--steel); border-radius: 6px; display: grid; place-items: center; font-size: .72rem; color: var(--steel); }
.dock-track .dock-truck { position: absolute; top: 28px; left: 6px; width: 76px; height: 42px; cursor: grab; touch-action: none; }
.dock-track .dock-truck:active { cursor: grabbing; }
.dock-track .dock-truck { z-index: 2; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dock.dragging .dock-gate { border-color: var(--signal); color: var(--signal); }
.dock-track .dock-msg { position: absolute; top: 5px; left: 12px; right: 12px; color: var(--steel); font-size: .8rem; letter-spacing: .02em; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock.ok .dock-track { border-color: var(--ok); }
.dock.ok .dock-gate { border-color: var(--ok); border-style: solid; color: var(--ok); }
.dock.ok .dock-msg { color: var(--ok); }

.sent-art { width: 160px; margin: 0 auto 18px; }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* ── Powiadomienia (toast) ─────────────────────────────── */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; }
.toast { display: flex; gap: 12px; align-items: center; min-width: 260px; max-width: 380px; padding: 14px 18px; border-radius: var(--r-m); background: var(--paper); color: var(--asphalt); box-shadow: 0 10px 30px rgba(0,0,0,.4); font-weight: 500; animation: toastIn .45s var(--ease); border-left: 5px solid var(--ok); }
.toast.warn { border-left-color: var(--signal); }
.toast.err  { border-left-color: var(--danger); }
.toast.out  { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn  { from { transform: translateX(120%); } }
@keyframes toastOut { to   { transform: translateX(120%); opacity: 0; } }

/* ── Ekran startowy (zapłon) ───────────────────────────── */
.ignition { position: fixed; inset: 0; z-index: 300; background: var(--asphalt); display: grid; place-items: center; transition: opacity .6s .1s, visibility .6s .1s; }
.ignition.done { opacity: 0; visibility: hidden; pointer-events: none; }
.ignition svg { width: 120px; }
.ignition .needle { transform-origin: 60px 64px; animation: needle 1s var(--ease) forwards; }
@keyframes needle { from { transform: rotate(-120deg); } 60% { transform: rotate(80deg); } to { transform: rotate(-20deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero h1 .line > span { transform: none; }
  .hero-lead, .hero-actions, .tacho-chip { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}

/* Hero na telefonie: kadr wideo bez naczepy pod tekstem + przyciemnienie */
@media (max-width: 760px) {
  .hero-video { object-position: 30% 50%; }
  .hero.use-video::after { background: linear-gradient(180deg, rgba(16,21,28,.2) 0%, rgba(16,21,28,.55) 45%, rgba(16,21,28,.92) 100%); }
}

/* ── Jak to działa ─────────────────────────────────────── */
.flow { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 10px; padding-top: 46px; }
.flow-road { position: absolute; left: 0; right: 0; top: 10px; height: 6px; border-radius: 6px; background: var(--asphalt-3); overflow: hidden; }
.flow-road i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--signal) 0 22px, transparent 22px 40px); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.flow.in .flow-road i { transform: none; animation: roadRun 1.1s linear 1.8s infinite; }
@keyframes roadRun { to { background-position: 40px 0; } }
.flow-truck { position: absolute; top: -5px; left: 0; width: 26px; height: 16px; border-radius: 4px; background: var(--paper); box-shadow: 18px 0 0 -3px var(--signal), 0 0 18px rgba(255,176,32,.55); opacity: 0; }
.flow.in .flow-truck { animation: truckGo 5.5s var(--ease) 1.2s infinite; }
@keyframes truckGo { 0% { left: -4%; opacity: 0; } 8% { opacity: 1; } 45%, 55% { left: 46%; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.flow-step::before { content: ''; position: absolute; left: 53px; top: -33px; height: 33px; border-left: 2px dashed var(--line); }
.flow-step { position: relative; z-index: 1; padding: 26px 22px 24px; border-radius: var(--r-l); background: var(--asphalt-2); border: 1px solid var(--line);
  opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .3s; transition-delay: calc(var(--s) * .25s + .15s); }
.flow.in .flow-step { opacity: 1; transform: none; }
.flow-step:hover { border-color: var(--signal); }
.flow-no { position: absolute; top: 14px; right: 18px; font: 800 3rem/1 var(--f-display); color: var(--line); }
.flow-ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: var(--asphalt); border: 2px solid var(--signal); margin-bottom: 18px; box-shadow: 0 0 0 6px var(--asphalt-2); }
.flow-ic svg { width: 30px; height: 30px; color: var(--signal); }
.flow-step h3 { font-size: 1.6rem; margin-bottom: 8px; }
.flow-step p { color: var(--steel); margin: 0; }
.flow-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.promises > div { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; padding: 16px 18px; border-radius: var(--r-m); background: rgba(255,176,32,.06); border: 1px solid rgba(255,176,32,.2); }
.promises svg { grid-row: span 2; width: 26px; height: 26px; color: var(--signal); margin-top: 2px; }
.promises b { font: 700 1.15rem var(--f-display); }
.promises span { color: var(--steel); font-size: .92rem; }
@media (max-width: 900px) {
  .flow, .promises { grid-template-columns: 1fr; }
  .flow { padding-top: 0; }
  .flow-step::before { display: none; }
  .flow-road { display: none; }
  .flow-truck { display: none; }
  .flow-step { padding-left: 22px; }
}
