:root {
  --navy: #0f2a44;
  --navy-2: #173b5e;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #1f2937;
  --muted: #5b6675;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --line: #e2e8f0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 42, 68, .08);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: .5em;
}

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #1b1300; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: .5em 1.1em; font-size: .92rem; }

/* Nagłówek */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: .6em; text-decoration: none; color: var(--navy); }
.logo-mark svg { width: 38px; height: 38px; }
.logo-mark rect { fill: var(--navy); }
.logo-mark path { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-size: 1.35rem; letter-spacing: .04em; }
.logo-text small { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.4em; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--accent-dark); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .8em 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
}

/* Hero – zdjęcie img/hero.jpg pod gradientem (lewa strona ciemniejsza pod tekst) */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(15,42,68,.94) 0%, rgba(15,42,68,.8) 45%, rgba(15,42,68,.35) 100%),
    url("../img/hero.jpg") center 70% / cover no-repeat,
    var(--navy);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 48px, transparent 48px 80px);
  opacity: .9;
}
.hero-inner { padding: clamp(72px, 12vw, 140px) 0 clamp(80px, 12vw, 150px); max-width: 960px; margin-left: max(16px, (100% - 1140px) / 2); }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(2rem, 5.2vw, 3.6rem); letter-spacing: -.02em; }
.hero h1 span { color: var(--accent); }
.hero-lead { font-size: clamp(1rem, 2vw, 1.2rem); opacity: .9; margin-bottom: 2em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Liczby */
.stats { background: var(--navy-2); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 16px; text-align: center; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--accent); line-height: 1.1; }
.stat span { font-size: .9rem; opacity: .85; }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}

/* Sekcje */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: rgba(255,255,255,.88); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--accent); }
.lead { font-size: 1.1rem; max-width: 780px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.chips { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3em .9em;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
}
.countries p { margin: 0; font-size: .95rem; }

/* Flota */
.fleet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 32px auto 20px; }
@media (max-width: 640px) { .fleet-grid { grid-template-columns: 1fr; max-width: 460px; } }
.vehicle { text-align: center; }
.vehicle-icon { height: 75px; width: auto; max-width: 100%; margin: 0 auto 18px; }
.vehicle-icon .body { fill: var(--navy); }
.vehicle-icon .box { fill: var(--navy-2); }
.vehicle-icon .glass { fill: #9fc3e6; }
.vehicle-icon circle { fill: #26323f; stroke: var(--accent); stroke-width: 3; }
.vehicle h3 { margin-bottom: .2em; }
.pallets { font-weight: 800; color: var(--accent-dark); font-size: 1.15rem; margin-bottom: 1em; }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.dims div { background: var(--bg-alt); border-radius: 10px; padding: 10px 4px; }
.dims dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dims dd { margin: 0; font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.dims-na { margin: 0; background: var(--bg-alt); border-radius: 10px; padding: 12px; font-size: .92rem; color: var(--muted); }

/* Kroki */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.step-no {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #1b1300;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.step p { margin: 0; color: var(--muted); }

/* Zalety */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px;
}
.feature svg { width: 40px; height: 40px; margin-bottom: 14px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature p { margin: 0; }
.footnote { margin-top: 24px; font-size: .85rem; opacity: .7; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.gallery a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,42,68,.45), transparent 50%);
  opacity: 0;
  transition: opacity .3s;
}
.gallery a:hover::after { opacity: 1; }
/* brak pliku zdjęcia → zaślepka */
.gallery a.missing { background: linear-gradient(135deg, var(--navy-2), var(--navy)); display: grid; place-items: center; }
.gallery a.missing img { display: none; }
.gallery a.missing::before { content: attr(data-label); color: rgba(255,255,255,.6); font-weight: 700; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 18, 30, .94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); text-align: center; }
.lightbox img { max-height: 82vh; max-width: 100%; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: rgba(255,255,255,.7); margin-top: 12px; font-size: .9rem; }
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.lightbox button:hover { background: var(--accent); color: #1b1300; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
}

/* Formularz */
.quote-form { margin-top: 28px; }
.quote-form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.quote-form legend { font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.quote-form label { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.quote-form input, .quote-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: .75em .9em;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.quote-form input:focus, .quote-form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,158,11,.25); }
.quote-form .invalid { border-color: #dc2626; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row-3 { grid-template-columns: 1fr 1fr 1.4fr; }
@media (max-width: 640px) { .row, .row-3 { grid-template-columns: 1fr; } }
.form-error { color: #b91c1c; font-weight: 600; }
.quote-form .btn { margin-bottom: 12px; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-big { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; margin: 0 0 .3em; }
.contact-big a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.contact-big a:hover { text-decoration: underline; }
.company { font-style: normal; color: var(--text); line-height: 1.8; }
.company strong { color: var(--navy); font-size: 1.1rem; }

.site-footer { background: #0a1d30; color: rgba(255,255,255,.6); font-size: .88rem; padding: 22px 0; text-align: center; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
