/* ==========================================================================
   TRAKT LOGISTICS — system designu „Industrial Precision"
   Prototyp strony firmy transportowo-spedycyjnej.
   Autorski CSS, bez frameworków i bez kroku budowania.

   Jasna, wysokokontrastowa baza (biel i grafit) ze złotym akcentem
   zarezerwowanym dla działań i wyróżnień. Zero zaokrągleń — kształty
   są prostokątne, tak jak naczepy i kontenery.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokeny
   -------------------------------------------------------------------------- */
:root {
  /* Złoto — akcent marki. Ciemniejsze warianty do małego tekstu na bieli,
     bo #d4af37 na białym nie wyrabia kontrastu przy 12–14 px. */
  --gold:         #d4af37;
  --gold-bright:  #e9c349;
  --gold-mid:     #b4922a;
  --gold-ink:     #8f7220;

  /* Grafit */
  --ink:          #111317;
  --ink-deep:     #0a0a0c;
  --ink-soft:     #1c1f24;
  --ink-lift:     #24272d;

  /* Szarości tekstu */
  --gray-700:     #374151;
  --gray-600:     #4b5563;
  --gray-500:     #6b7280;
  --gray-400:     #9ca3af;
  --gray-300:     #cbd0d6;

  /* Powierzchnie */
  --white:        #ffffff;
  --paper:        #faf9f8;
  --paper-2:      #f3f3f3;

  /* Linie */
  --line:         #e6e6e6;
  --line-soft:    #f0f0f0;
  --line-strong:  #d3d3d3;
  --line-dark:    rgba(255, 255, 255, 0.10);
  --line-dark-2:  rgba(255, 255, 255, 0.22);

  /* Typografia */
  --font-sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Przestrzeń */
  --header-h: 76px;
  --container: 1400px;
  --margin: 48px;
  --section-gap: 96px;
  --section-gap-lg: 128px;

  /* Ruch */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.4s;
}

@media (max-width: 1024px) {
  :root {
    --margin: 24px;
    --section-gap: 72px;
    --section-gap-lg: 88px;
    --header-h: 68px;
  }
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, fieldset { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
address { font-style: normal; }

button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--ink); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip-link:focus { left: 16px; top: 16px; }

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.section { padding-block: var(--section-gap); position: relative; }
.section--lg { padding-block: var(--section-gap-lg); }
.section--tight { padding-block: calc(var(--section-gap) * 0.62); }

.section--paper { background: var(--paper); }
.section--paper-2 { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--white); }
.section--darker { background: var(--ink-deep); color: var(--white); }

.stack > * + * { margin-top: 18px; }
.stack-sm > * + * { margin-top: 10px; }

/* Nagłówek sekcji: tytuł po lewej, opis w drugiej kolumnie */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 96px;
  align-items: end;
  margin-bottom: 80px;
}
.section-head__aside { padding-bottom: 6px; }
@media (max-width: 1024px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
}

/* Wąska odmiana: 1/3 + 2/3 */
.section-head--third { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

/* Delikatny wzór kropek — tło sekcji z liczbami */
.dots::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 22px 22px;
}

/* --------------------------------------------------------------------------
   4. Typografia
   -------------------------------------------------------------------------- */
.display {
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.headline {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.subhead {
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.title-sm {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.125rem);
  line-height: 1.72;
  color: var(--gray-600);
  max-width: 62ch;
}

.body { color: var(--gray-600); max-width: 68ch; line-height: 1.75; }
.body--sm { font-size: 0.9375rem; }

/* Nadtytuł: złota etykieta wersalikami */
.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 18px;
}

/* Rozdzielony nadtytuł „SPEDYCJA • TRANSPORT • LOGISTYKA" */
.eyebrow-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 28px;
}
.eyebrow-split i { font-style: normal; color: var(--line-strong); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.gold { color: var(--gold); }
.gold-i { color: var(--gold); font-style: italic; font-weight: 400; }
.text-muted { color: var(--gray-500); }
.text-dim { color: var(--gray-400); }

/* Na ciemnym tle złoto może być jasne, na białym musi być przygaszone */
.section--dark .eyebrow,
.section--darker .eyebrow,
.hero-dark .eyebrow { color: var(--gold); }
.section--dark .body,
.section--darker .body,
.section--dark .lead,
.section--darker .lead { color: var(--gray-400); }
.section--dark .text-muted,
.section--darker .text-muted { color: var(--gray-400); }

/* Link ze strzałką „w prawo w górę" — sygnaturowy gest tego designu */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.arrow-link svg { flex: none; transition: transform var(--dur) var(--ease); }
.arrow-link:hover { color: var(--gold-ink); border-bottom-color: var(--gold); }
.arrow-link:hover svg { transform: translate(3px, -3px); }
.section--dark .arrow-link,
.section--darker .arrow-link { color: var(--white); border-bottom-color: var(--line-dark-2); }
.section--dark .arrow-link:hover,
.section--darker .arrow-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* --------------------------------------------------------------------------
   5. Przyciski
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 34px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn svg { flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-lift); }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-bright); }

.btn--outline { border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.btn--outline-light { border-color: rgba(255, 255, 255, 0.28); color: var(--white); }
.btn--outline-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn--sm { padding: 13px 24px; font-size: 0.6875rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------------------
   6. Nagłówek i nawigacja
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

/* Logotyp: nazwa + trzy mikro-wiersze */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
}
.brand__sub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.site-footer .brand__name { color: var(--white); font-size: 1.75rem; }
.site-footer .brand__sub { color: var(--gray-500); }
@media (max-width: 380px) { .brand__sub { display: none; } }

.nav { display: flex; flex: 1; align-items: center; justify-content: center; gap: 30px; }
.nav__cta { display: none; }
.nav > a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-700);
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav > a:hover { color: var(--gold-ink); }
.nav > a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -6px 0 -4px var(--gold);
}
.nav .btn { margin-left: 8px; }

@media (max-width: 1280px) { .nav { gap: 20px; } }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--margin) 28px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav > a {
    padding: 16px 2px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.8125rem;
  }
  .nav > a[aria-current="page"] { box-shadow: none; color: var(--gold-ink); }
  .nav__cta { display: inline-flex; margin: 22px 0 0; }
  .header__cta { display: none; }
}

/* Odsunięcie treści spod stałego nagłówka */
.page-offset { padding-top: var(--header-h); }

/* --------------------------------------------------------------------------
   7. Hero strony głównej
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding-top: calc(var(--header-h) + 88px);
  padding-bottom: 128px;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero__text { max-width: 580px; }

.hero__title { margin-bottom: 32px; }
.hero__title .word {
  display: inline-block;
  animation: word-in 0.85s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(0.4em); }
  to   { opacity: 1; transform: none; }
}

.hero__lead { margin-bottom: 40px; max-width: 30rem; }

/* Zdjęcie: na dużym ekranie wypełnia prawe 62% sekcji */
.hero__media {
  position: relative;
  min-height: 340px;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

@media (min-width: 1025px) {
  .hero { min-height: 92vh; display: flex; align-items: center; }
  .hero__inner { width: 100%; }
  .hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 62%;
    z-index: 1;
    min-height: 0;
  }
  /* Miękkie przejście zdjęcia w biel po lewej stronie */
  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.72) 45%, rgba(255, 255, 255, 0) 100%);
  }
}

@media (max-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { margin-inline: calc(var(--margin) * -1); }
  .hero__media img { max-height: 62vh; }
}

/* Pasek pod hero: licznik slajdów i odnośnik do materiału wideo */
.hero__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}
.hero__bar > * { pointer-events: auto; }
@media (max-width: 1024px) { .hero__bar { display: none; } }

.hero__counter {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-variant-numeric: tabular-nums;
}
.hero__counter b { font-size: 1.125rem; font-weight: 400; color: var(--ink); }
.hero__counter i { display: block; width: 48px; height: 1px; background: var(--line-strong); }

.hero__play {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-right: 6%;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  transition: color var(--dur) var(--ease);
}
.hero__play span { line-height: 1.3; text-align: left; }
.hero__play i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hero__play:hover { color: var(--gold); }
.hero__play:hover i { background: rgba(255, 255, 255, 0.14); border-color: var(--gold); }

/* --------------------------------------------------------------------------
   8. Nagłówek podstrony
   -------------------------------------------------------------------------- */
.page-head {
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 80px;
  align-items: end;
}
@media (max-width: 1024px) {
  .page-head { padding-top: calc(var(--header-h) + 44px); padding-bottom: 48px; }
  .page-head__grid { grid-template-columns: 1fr; gap: 24px; }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 24px;
}
.crumbs a { transition: color var(--dur) var(--ease); }
.crumbs a:hover { color: var(--gold-ink); }
.crumbs i { font-style: normal; color: var(--line-strong); }

/* --------------------------------------------------------------------------
   9. Kolumny z ikonami (sekcja „Dlaczego TRAKT?")
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
@media (max-width: 1024px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .features { grid-template-columns: 1fr; } }

.feature {
  text-align: center;
  padding: 8px 28px;
  border-right: 1px solid var(--line-soft);
}
.feature:last-child { border-right: 0; }
@media (max-width: 1024px) {
  .feature { padding: 28px 20px; border-bottom: 1px solid var(--line-soft); }
  .feature:nth-child(2n) { border-right: 0; }
  .feature:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .feature { border-right: 0; }
  .feature:last-child { border-bottom: 0; }
}

.feature__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--gold);
}
.feature h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.feature p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--gray-500);
  max-width: 20rem;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   10. Kafle usług — zdjęcie z ciemnym gradientem
   -------------------------------------------------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 1180px) { .svc-grid { grid-template-columns: 1fr; gap: 40px; } }

.svc-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1180px) { .svc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .svc-tiles { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  display: block;
  height: 400px;
  overflow: hidden;
  background: var(--ink-soft);
  border: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.tile:hover { border-color: var(--gold); }
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.tile:hover img { opacity: 0.8; transform: scale(1.05); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 8%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.05) 100%);
}
.tile__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 26px 24px;
  color: var(--white);
}
.tile__body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tile__body p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--gray-300);
  margin-bottom: 18px;
}
.tile__arrow { display: flex; justify-content: flex-end; color: var(--gold); }
.tile__arrow svg { transition: transform var(--dur) var(--ease); }
.tile:hover .tile__arrow svg { transform: translate(4px, -4px); }

/* --------------------------------------------------------------------------
   11. Liczby
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 1024px) { .stats-grid { grid-template-columns: 1fr; gap: 48px; } }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  text-align: center;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; } }

.stat__icon { display: flex; justify-content: center; margin-bottom: 18px; color: var(--gold); }
.stat__value {
  font-size: clamp(2.25rem, 3.2vw, 3rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.section--dark .stat__label,
.section--darker .stat__label { color: var(--gray-400); }

/* Wariant listy liczb z liniami (podstrony) */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-row > div {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--line);
}
.stat-row > div:last-child { border-right: 0; }
@media (max-width: 760px) {
  .stat-row > div:nth-child(2n) { border-right: 0; }
  .stat-row > div { border-bottom: 1px solid var(--line); }
  .stat-row > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   12. Pas CTA
   -------------------------------------------------------------------------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-band__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
@media (max-width: 860px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band__side { align-items: flex-start; }
}
.cta-band__phone {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.cta-band__phone a { color: var(--gold); transition: color var(--dur) var(--ease); }
.cta-band__phone a:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   13. Stopka
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-deep);
  color: var(--white);
  padding-block: 80px 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 64px;
}
@media (max-width: 1024px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
@media (max-width: 560px)  { .footer__grid { grid-template-columns: 1fr; } }

.footer__about { color: var(--gray-400); font-size: 0.875rem; line-height: 1.75; margin: 24px 0; max-width: 30ch; }

.footer__col h3 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e5e5e5;
  margin-bottom: 26px;
}
.footer__col ul { display: grid; gap: 13px; }
.footer__col a, .footer__col li { color: var(--gray-400); font-size: 0.875rem; }
.footer__col a { transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--gold); }
.footer__col address { color: var(--gray-400); font-size: 0.875rem; line-height: 1.8; display: grid; gap: 16px; }
.footer__col address a { display: inline-flex; align-items: center; gap: 8px; }

.socials { display: flex; gap: 12px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #2a2a2e;
  border-radius: 50%;
  color: var(--gray-400);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.socials a:hover { color: var(--gold); border-color: var(--gold); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 32px;
  border-top: 1px solid #1e1e22;
  font-size: 0.75rem;
  color: var(--gray-500);
}
.footer__bottom nav { display: flex; gap: 14px; }
.footer__bottom a { transition: color var(--dur) var(--ease); }
.footer__bottom a:hover { color: var(--gray-300); }

/* --------------------------------------------------------------------------
   14. Karty treści
   -------------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px)  { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.card:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06); }
.card:hover::after { transform: scaleX(1); }

.card__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--gray-400);
}
.card__icon { margin: 22px 0 22px; color: var(--gold); }
.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.card p { margin-top: 12px; color: var(--gray-500); font-size: 0.9375rem; line-height: 1.7; }
.card__list {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 10px;
}
.card__list li {
  display: flex;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.55;
}
.card__list li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 8px; background: var(--gold); }
.card__list a:hover { color: var(--gold-ink); }
.card__foot { margin-top: auto; padding-top: 26px; }

/* Karty na ciemnym tle */
.section--dark .card,
.section--darker .card { background: var(--ink-soft); border-color: #26292f; }
.section--dark .card p,
.section--darker .card p { color: var(--gray-400); }
.section--dark .card__list li,
.section--darker .card__list li { color: var(--gray-300); }
.section--dark .card__list,
.section--darker .card__list { border-top-color: #26292f; }
.section--dark .card:hover,
.section--darker .card:hover { box-shadow: none; border-color: #3a3d44; }

/* --------------------------------------------------------------------------
   15. Bloki treści: podział, panel, cytat, lista z haczykami
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  align-items: center;
}
.split--top { align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split--wide-right { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
@media (max-width: 1024px) {
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; gap: 44px; }
}

.panel {
  padding: 36px 34px;
  background: var(--white);
  border: 1px solid var(--line);
}
.panel--paper { background: var(--paper); }
.panel--accent { border-left: 3px solid var(--gold); }
.section--dark .panel,
.section--darker .panel { background: var(--ink-soft); border-color: #26292f; }

.quote {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.quote__by {
  margin-top: 24px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.checks { display: grid; gap: 20px; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 16px; align-items: start; }
.checks svg { color: var(--gold); margin-top: 4px; }
.checks b { display: block; font-weight: 600; margin-bottom: 4px; }
.checks span { color: var(--gray-600); font-size: 0.9375rem; line-height: 1.7; }
.section--dark .checks span,
.section--darker .checks span { color: var(--gray-400); }

/* Numerowana lista kroków / zasad */
.numbered { display: grid; gap: 32px; counter-reset: n; }
.numbered > li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  counter-increment: n;
}
.numbered > li::before {
  content: counter(n, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gold-ink);
}
.numbered h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 10px; }
.numbered p { color: var(--gray-600); line-height: 1.75; }
@media (max-width: 620px) { .numbered > li { grid-template-columns: 1fr; gap: 10px; } }

/* --------------------------------------------------------------------------
   16. Tabele danych
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
}
.table { width: 100%; border-collapse: collapse; min-width: 680px; }
.table th, .table td {
  padding: 17px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.875rem;
}
.table thead th {
  background: var(--ink);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 0;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--dur) var(--ease); }
.table tbody tr:hover { background: var(--paper); }
.table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td strong { font-weight: 600; }
.table td.muted { color: var(--gray-500); }

/* --------------------------------------------------------------------------
   17. Filtry
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--gray-600);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* --------------------------------------------------------------------------
   18. Akordeon
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.accordion__trigger:hover { color: var(--gold-ink); }
.section--dark .accordion,
.section--darker .accordion { border-top-color: #26292f; }
.section--dark .accordion__item,
.section--darker .accordion__item { border-bottom-color: #26292f; }
.section--dark .accordion__trigger,
.section--darker .accordion__trigger { color: var(--white); }
.section--dark .accordion__trigger:hover,
.section--darker .accordion__trigger:hover { color: var(--gold); }

.accordion__icon { position: relative; width: 16px; height: 16px; flex: none; }
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.accordion__icon::before { inset: 7px 0 auto 0; height: 2px; }
.accordion__icon::after  { inset: 0 7px auto 7px; width: 2px; height: 16px; }
.accordion__item.is-open .accordion__icon::after { transform: rotate(90deg); opacity: 0; }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { padding-bottom: 28px; color: var(--gray-600); max-width: 74ch; line-height: 1.8; }
.section--dark .accordion__panel p,
.section--darker .accordion__panel p { color: var(--gray-400); }

/* --------------------------------------------------------------------------
   19. Formularze
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.field { display: block; }
.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 9px;
}
.field__hint { display: block; font-size: 0.75rem; color: var(--gray-400); margin-top: 8px; line-height: 1.55; }

.input, .select, .textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--gray-400); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.35);
  outline-offset: 2px;
}
.textarea { min-height: 156px; resize: vertical; line-height: 1.65; }

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.8'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form__consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.65;
}
.form__consent input { margin-top: 3px; accent-color: var(--gold); }

.form__status {
  display: none;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.09);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray-700);
}
.form__status.is-visible { display: block; }

/* --------------------------------------------------------------------------
   20. Kalkulator frachtu
   -------------------------------------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}
@media (max-width: 1100px) { .calc { grid-template-columns: 1fr; } }

.calc__form { background: var(--paper); padding: 34px 32px 38px; border-right: 1px solid var(--line); }
@media (max-width: 1100px) { .calc__form { border-right: 0; border-bottom: 1px solid var(--line); } }
.calc__out { display: flex; flex-direction: column; }

.calc__legend {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.calc__form .field { margin-bottom: 20px; }

/* Zamiana kierunku trasy */
.swap { display: flex; align-items: center; gap: 14px; margin: -4px 0 18px; }
.swap::before, .swap::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.swap__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--gray-600);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.swap__btn:hover { color: var(--gold-ink); border-color: var(--gold); }
.swap__btn svg { transition: transform 0.4s var(--ease); }
.swap__btn:hover svg { transform: rotate(180deg); }

/* Przełączniki usług dodatkowych */
.switches { display: grid; gap: 10px; }
.switch {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.switch:hover { border-color: var(--gray-400); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__box {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1px solid var(--line-strong);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.switch__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease);
}
.switch input:checked ~ .switch__box { background: var(--gold); border-color: var(--gold); }
.switch input:checked ~ .switch__box::after { transform: rotate(45deg) scale(1); }
.switch input:focus-visible ~ .switch__box { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch__text { font-size: 0.875rem; color: var(--gray-600); }
.switch input:checked ~ .switch__text { color: var(--ink); font-weight: 500; }
.switch__price {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gray-400);
  white-space: nowrap;
}

/* Mapa trasy — jedyna ciemna powierzchnia w kalkulatorze */
.route-map {
  position: relative;
  padding: 28px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(620px 340px at 60% 30%, rgba(212, 175, 55, 0.10), transparent 70%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}
.route-map svg { width: 100%; height: auto; max-height: 420px; }

.map-node { fill: var(--ink); stroke: #5b6068; stroke-width: 1.5; }
.map-node-label {
  fill: #7d838c;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.map-node.is-active { fill: var(--gold); stroke: var(--gold); }
.map-node-label.is-active { fill: var(--white); font-weight: 500; }

.map-route {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 9px rgba(212, 175, 55, 0.55));
}
.map-route.is-drawing {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw 1.1s var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.map-truck { fill: var(--gold); }

/* Wynik */
.calc__result { padding: 30px 32px 36px; }
.calc__price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.calc__price {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.calc__price small {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 400;
}
.calc__facts { display: flex; gap: 32px; flex-wrap: wrap; }
.calc__fact b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.calc__fact span {
  display: block;
  margin-top: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.breakdown { margin-top: 30px; }
.breakdown__bar {
  display: flex;
  height: 10px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.breakdown__seg { height: 100%; width: 0; transition: width 0.8s var(--ease-out); }
.breakdown__list { margin-top: 20px; display: grid; gap: 11px; }
.breakdown__item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  font-size: 0.8125rem;
}
.breakdown__dot { width: 10px; height: 10px; }
.breakdown__name { color: var(--gray-600); }
.breakdown__val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.calc__note {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--paper);
  border-left: 3px solid var(--line-strong);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--gray-600);
}
.calc__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.calc__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px 32px;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.calc__empty svg { color: var(--line-strong); }

.calc__error {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid #b45309;
  background: #fff7ed;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #7c2d12;
}

/* --------------------------------------------------------------------------
   21. Tablica dyspozytorska (split-flap)
   -------------------------------------------------------------------------- */
.board {
  background: var(--ink);
  color: var(--white);
  border: 1px solid #24272d;
  overflow: hidden;
}
.board__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 22px;
  border-bottom: 1px solid #24272d;
  background: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.board__bar strong { color: var(--gold); font-weight: 500; }
.board__clock { color: #e5e5e5; font-variant-numeric: tabular-nums; }

.board__head, .board__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 96px 92px;
  gap: 16px;
  align-items: center;
  padding-inline: 22px;
}
.board__head {
  padding-block: 12px;
  border-bottom: 1px solid #24272d;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5b6068;
}
.board__row {
  padding-block: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #e5e5e5;
  white-space: nowrap;
}
.board__row:last-child { border-bottom: 0; }
.board__id { color: var(--gray-500); }
.board__route { overflow: hidden; text-overflow: ellipsis; }
.board__eta { text-align: right; font-variant-numeric: tabular-nums; }

.flap { display: inline-block; min-width: 0.6em; text-align: center; }
.flap.is-rolling { animation: flap 0.26s var(--ease) both; color: var(--gold); }
@keyframes flap {
  0%   { transform: translateY(0)      scaleY(1);    opacity: 1; }
  45%  { transform: translateY(-0.3em) scaleY(0.12); opacity: 0.35; }
  55%  { transform: translateY(0.3em)  scaleY(0.12); opacity: 0.35; }
  100% { transform: translateY(0)      scaleY(1);    opacity: 1; }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag::before { content: ""; width: 5px; height: 5px; background: currentColor; }
.tag--go   { color: var(--gold); }
.tag--road { color: #7fb2e5; }
.tag--load { color: var(--gray-400); }

@media (max-width: 640px) {
  .board__head, .board__row { grid-template-columns: 68px minmax(0, 1fr) 78px; }
  .board__head span:nth-child(3), .board__row .board__tag { display: none; }
}

/* --------------------------------------------------------------------------
   22. Śledzenie przesyłki
   -------------------------------------------------------------------------- */
.track { border: 1px solid var(--line); background: var(--white); }
.track__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) { .track__form { grid-template-columns: 1fr; } }
.track__input {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.track__samples {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gray-400);
}
.chip {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--gray-600);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip:hover { color: var(--gold-ink); border-color: var(--gold); }

.track__body { padding: 30px 30px 36px; }
.track__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 780px) { .track__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.track__summary dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.track__summary dd { margin: 8px 0 0; font-family: var(--font-mono); font-size: 0.875rem; }

/* Oś statusów */
.steps { position: relative; padding-left: 34px; }
.steps::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.step { position: relative; padding-bottom: 30px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 5px;
  width: 11px;
  height: 11px;
  background: var(--white);
  border: 2px solid var(--line-strong);
}
.step--done::before { background: var(--gold); border-color: var(--gold); }
.step--now::before {
  background: var(--ink);
  border-color: var(--ink);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(17, 19, 23, 0.35); }
  70%  { box-shadow: 0 0 0 11px rgba(17, 19, 23, 0); }
  100% { box-shadow: 0 0 0 0 rgba(17, 19, 23, 0); }
}
.step__time { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--gray-400); }
.step__title { margin-top: 5px; font-weight: 600; }
.step--pending .step__title { color: var(--gray-400); font-weight: 500; }
.step__place { margin-top: 4px; font-size: 0.875rem; color: var(--gray-500); }
.step { animation: step-in 0.5s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes step-in {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   23. Sieć połączeń
   -------------------------------------------------------------------------- */
.network {
  position: relative;
  padding: 32px;
  background:
    radial-gradient(700px 400px at 50% 40%, rgba(212, 175, 55, 0.09), transparent 70%),
    var(--ink);
  border: 1px solid #24272d;
  overflow: hidden;
}
.network svg { width: 100%; height: auto; }

.net-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  animation: net-dash 3.4s linear infinite;
}
@keyframes net-dash { to { stroke-dashoffset: -24; } }
.net-line--hot { stroke: rgba(212, 175, 55, 0.55); stroke-width: 2; stroke-dasharray: none; animation: none; }
.net-hub { fill: var(--gold); }
.net-hub-ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: hub-ring 3s var(--ease) infinite;
}
@keyframes hub-ring {
  0%   { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}
.net-city { fill: #6b7280; }
.net-label { fill: #7d838c; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
.net-label--hub { fill: var(--white); }
.net-truck { fill: var(--gold); }
.net-truck-glow { fill: rgba(212, 175, 55, 0.22); }

/* --------------------------------------------------------------------------
   24. Oś procesu sterowana scrollem
   -------------------------------------------------------------------------- */
.road { position: relative; }
.road__line {
  position: absolute;
  left: 29px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--line);
  overflow: hidden;
}
.road__line::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--progress, 0%);
  background: var(--gold);
  transition: height 0.15s linear;
}
.road__steps { display: grid; gap: 48px; }
.road__step {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.road__km {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-500);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), background 0.4s var(--ease);
}
.road__step.is-reached .road__km {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.road__body h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.road__body p { margin-top: 12px; color: var(--gray-600); max-width: 62ch; line-height: 1.8; }
.road__meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.road__meta span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gray-500);
}
@media (max-width: 620px) {
  .road__line { left: 21px; }
  .road__step { grid-template-columns: 44px minmax(0, 1fr); gap: 20px; }
  .road__km { width: 44px; height: 44px; font-size: 0.625rem; }
}

/* --------------------------------------------------------------------------
   25. Zespół
   -------------------------------------------------------------------------- */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .people { grid-template-columns: 1fr; } }

.person { padding: 30px 28px; background: var(--white); border: 1px solid var(--line); transition: border-color var(--dur) var(--ease); }
.person:hover { border-color: var(--gold); }
.person__mono {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.person h3 { margin-top: 24px; font-size: 1.0625rem; font-weight: 600; }
.person__role {
  margin-top: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.person p { margin-top: 16px; font-size: 0.875rem; color: var(--gray-500); line-height: 1.7; }
.person__contact {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* --------------------------------------------------------------------------
   26. Aktualności
   -------------------------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .posts { grid-template-columns: 1fr; } }

.post {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.post:hover { border-color: var(--gold); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06); }
.post__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-soft); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 14px;
}
.post__meta b { color: var(--gold-ink); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
.post h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.012em; }
.post p { margin-top: 12px; font-size: 0.9375rem; color: var(--gray-500); line-height: 1.7; }
.post__foot { margin-top: auto; padding-top: 24px; }

/* Artykuł */
.article { max-width: 760px; }
.article > * + * { margin-top: 26px; }
.article h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; margin-top: 44px; }
.article p { color: var(--gray-700); line-height: 1.85; }
.article ul { display: grid; gap: 12px; }
.article ul li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; color: var(--gray-700); line-height: 1.75; }
.article ul li::before { content: ""; width: 6px; height: 6px; margin-top: 11px; background: var(--gold); }
.article blockquote {
  padding-left: 26px;
  border-left: 3px solid var(--gold);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
}
.article figure img { width: 100%; }
.article figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--gray-400); }

/* --------------------------------------------------------------------------
   27. Oferty pracy
   -------------------------------------------------------------------------- */
.jobs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.job {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}
.job:hover { background: var(--paper); }
.job h3 { font-size: 1.125rem; font-weight: 600; }
.job__meta { font-size: 0.875rem; color: var(--gray-500); }
.job__meta b { display: block; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 5px; font-weight: 500; }
@media (max-width: 900px) {
  .job { grid-template-columns: 1fr 1fr; gap: 18px; }
  .job h3 { grid-column: 1 / -1; }
  .job__cta { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   28. Plakietka prototypu
   -------------------------------------------------------------------------- */
.proto {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 95;
  width: min(360px, calc(100vw - 32px));
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}
.proto__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: left;
}
.proto__dot { width: 7px; height: 7px; background: var(--gold); flex: none; animation: ping-gold 2.6s var(--ease) infinite; }
@keyframes ping-gold {
  0%   { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}
.proto__chev { margin-left: auto; transition: transform 0.35s var(--ease); color: var(--gray-400); }
.proto.is-open .proto__chev { transform: rotate(180deg); }
.proto__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.38s var(--ease); }
.proto.is-open .proto__panel { grid-template-rows: 1fr; }
.proto__panel > div { overflow: hidden; }
.proto__inner {
  padding: 14px 15px 17px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--gray-500);
}
.proto__inner > * + * { margin-top: 9px; }
.proto__inner strong { color: var(--ink); }
.proto__inner a { color: var(--gold-ink); border-bottom: 1px solid currentColor; }

/* --------------------------------------------------------------------------
   29. Strona 404
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 56px) var(--margin) 72px;
  background: var(--paper);
}
.error-code {
  font-size: clamp(4.5rem, 16vw, 10rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   30. Ujawnianie przy scrollu i redukcja ruchu
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__title .word { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   31. Narzędzia pomocnicze
   -------------------------------------------------------------------------- */
.mt-0  { margin-top: 0 !important; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mt-72 { margin-top: 72px; }
.narrow { max-width: 780px; }
.center { text-align: center; margin-inline: auto; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.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;
}
