/* ES Logistics — design tokens & global styles */
:root {
  /* Brand monochrome scale (księga znaku) */
  --white: #FFFFFF;
  --gray-50: #F0F0F0;
  --gray-100: #D2D2D2;
  --gray-300: #AAAAAA;
  --gray-500: #6D6E71;
  --gray-700: #414141;
  --gray-800: #353535;
  --black: #000000;

  /* Semantic — dark mode defaults */
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --bg-elev-2: #1c1c1c;
  --surface: #181818;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.18);
  --text: #f5f5f5;
  --text-dim: #a8a8a8;
  --text-muted: #6e6e6e;
  --accent: #f5f5f5;
  --accent-ink: #0a0a0a;

  /* Typography */
  --font-display: 'Barlow', 'Inter', system-ui, sans-serif;
  --font-body: 'Outfit', 'Inter', system-ui, sans-serif;

  /* Spacing rhythm */
  --section-y: 120px;
  --container: 1280px;
  --gutter: 32px;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-elev: #f7f7f5;
  --bg-elev-2: #efefec;
  --surface: #fafaf8;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.16);
  --text: #0a0a0a;
  --text-dim: #4a4a4a;
  --text-muted: #8a8a8a;
  --accent: #0a0a0a;
  --accent-ink: #ffffff;
}

[data-density="airy"] {
  --section-y: 160px;
}
[data-density="dense"] {
  --section-y: 84px;
}

/* Accent variants */
[data-accent="mono"] {}
[data-accent="blue"] {
  --accent: #3B82F6;
  --accent-ink: #ffffff;
}
[data-accent="emerald"] {
  --accent: #10B981;
  --accent-ink: #ffffff;
}
[data-accent="amber"] {
  --accent: #F59E0B;
  --accent-ink: #0a0a0a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 6.4vw, 92px); line-height: 1.08; }
h2 { font-size: clamp(32px, 4.6vw, 64px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
h4 { font-size: 20px; letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.rule {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* ─────────────── Buttons ─────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,0.04); }

.btn-arrow::after {
  content: "→";
  font-family: var(--font-body);
  transition: transform .2s ease;
}
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(4px); }

/* ─────────────── Header ─────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand-lockup {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 18px;
}
.brand-lockup .lion-mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
}
.brand-lockup .lion-mark svg { width: 22px; height: 22px; fill: var(--text); }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand-wordmark .top { font-size: 16px; }
.brand-wordmark .sub {
  font-family: var(--font-body); font-weight: 400;
  font-size: 9px; letter-spacing: 0.32em; color: var(--text-dim);
  text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}

.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  display: flex; gap: 2px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 11px; letter-spacing: 0.1em;
}
.lang-switch button {
  appearance: none; border: 0; background: transparent;
  color: var(--text-muted); padding: 4px 7px; cursor: pointer;
  border-radius: 2px; font: inherit; letter-spacing: inherit;
}
.lang-switch button.active { color: var(--text); background: var(--bg-elev-2); }

.menu-btn { display: none; }

@media (max-width: 1080px) {
  .nav-links, .lang-switch { display: none; }
  .menu-btn {
    display: inline-flex; appearance: none; border: 1px solid var(--border-strong);
    background: transparent; color: var(--text); padding: 8px 12px;
    font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em;
    font-size: 12px; text-transform: uppercase; cursor: pointer; border-radius: 2px;
  }
  .mobile-menu-open .nav-links {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg); padding: 24px var(--gutter) 32px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu-open .lang-switch {
    display: flex; position: absolute; top: 76px; right: var(--gutter); padding: 28px 0;
  }
}
@media (max-width: 1080px) and (min-width: 901px) {
  .menu-btn { display: inline-flex; appearance: none; border: 1px solid var(--border-strong); background: transparent; color: var(--text); padding: 8px 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; font-size: 12px; text-transform: uppercase; cursor: pointer; border-radius: 2px; }
}

/* ─────────────── Hero ─────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding-top: 76px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}
[data-theme="light"] .hero-bg {
  background: linear-gradient(180deg, #f5f5f3 0%, #ebebe7 100%);
}
.hero-bg.photo {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 60%);
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(80,80,80,0.4), transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(40,40,40,0.6), transparent 70%);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, transparent 0%, transparent 60%, var(--bg) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 85%, transparent) 0%, transparent 60%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 980px;
  padding: 60px 0;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 36px;
}
.hero-eyebrow::before {
  content: ""; width: 40px; height: 1px; background: var(--accent);
}
.hero-eyebrow span {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  letter-spacing: 0.18em; font-size: 11px; text-transform: uppercase;
  color: var(--text-dim);
}
.hero h1 {
  font-style: italic;
  font-weight: 700;
}
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero-sub {
  margin-top: 44px;
  max-width: 620px;
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.55;
}
.hero-cta { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-lion {
  position: absolute;
  right: -6%;
  bottom: -10%;
  width: 760px;
  max-width: 56vw;
  z-index: 0;
  opacity: 0.10;
  pointer-events: none;
}
[data-lion="subtle"] .hero-lion { opacity: 0.04; width: 420px; }
[data-lion="editorial"] .hero-lion {
  opacity: 0.16; width: 900px; right: -10%; bottom: -16%;
}
.hero-lion svg { width: 100%; height: auto; fill: var(--text); }

.hero-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(8px);
}
.hero-meta-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hero-meta-cell {
  padding: 22px 28px;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.hero-meta-cell:first-child { border-left: 0; }
.hero-meta-cell .k {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
}
.hero-meta-cell .v {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; letter-spacing: -0.01em;
}
@media (max-width: 800px) {
  .hero-meta-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-meta-cell:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .hero-meta-cell:nth-child(4) { border-top: 1px solid var(--border); }
}

/* Hero variants */
[data-hero-bg="split"] .hero-bg {
  background: linear-gradient(90deg, var(--bg) 0% 50%, #1a1a1a 50% 100%);
}
[data-hero-bg="type"] .hero-bg { background: var(--bg); }
[data-hero-bg="type"] .hero-overlay { display: none; }
[data-hero-bg="type"] .hero-lion { opacity: 0.05; }

/* ─────────────── Section header ─────────────── */
.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: 0.16em; color: var(--text-muted);
  display: flex; align-items: center; gap: 12px;
}
.section-head .num::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.section-head .lead { color: var(--text-dim); max-width: 720px; font-size: 17px; }
.section-head h2 { margin-bottom: 20px; }
.section-head h2 em { font-style: italic; color: var(--accent); }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ─────────────── Trust bar ─────────────── */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-cell {
  padding: 24px 28px;
  border-left: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
}
.trust-cell:first-child { border-left: 0; }
.trust-cell .ico {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.trust-cell .lbl { font-size: 14px; color: var(--text-dim); }
.trust-cell strong { color: var(--text); display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
@media (max-width: 900px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .trust-cell:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .trust-cell:nth-child(4) { border-top: 1px solid var(--border); }
}

/* ─────────────── Services grid ─────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--bg);
  padding: 44px 40px;
  display: flex; flex-direction: column; gap: 20px;
  min-height: 320px;
  position: relative;
  transition: background .25s ease;
}
.service-card:hover { background: var(--bg-elev); }
.service-card .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.18em; color: var(--text-muted);
}
.service-card h3 { font-style: italic; }
.service-card p { color: var(--text-dim); flex: 1; }
.service-card .arrow {
  align-self: flex-start;
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.service-card:hover .arrow {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.service-card .badge {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 8px; border-radius: 2px;
}
@media (max-width: 800px) { .services-grid { grid-template-columns: 1fr; } }

/* ─────────────── Why us ─────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.why-item {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
}
.why-item:nth-child(3n) { border-right: 0; }
.why-item:nth-last-child(-n+3) { border-bottom: 0; }
.why-item .n {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: 14px; letter-spacing: 0.08em; color: var(--accent);
}
.why-item h4 { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.15; }
.why-item p { color: var(--text-dim); font-size: 15px; }
@media (max-width: 800px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: 0; padding-right: 0; }
  .why-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .why-item:last-child { border-bottom: 0; }
}

/* ─────────────── Split CTA ─────────────── */
.split-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.split-panel {
  padding: 56px 48px;
  display: flex; flex-direction: column; gap: 20px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  min-height: 380px;
}
.split-panel.dark { background: var(--bg-elev); }
.split-panel .tag {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
}
.split-panel h3 {
  font-style: italic;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
}
.split-panel p { color: var(--text-dim); max-width: 460px; }
.split-panel .actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.split-panel .corner-lion {
  position: absolute; right: -40px; bottom: -40px;
  width: 280px; opacity: 0.08; pointer-events: none;
}
.split-panel .corner-lion svg { width: 100%; fill: var(--text); }
[data-lion="subtle"] .split-panel .corner-lion { opacity: 0.03; }
[data-lion="editorial"] .split-panel .corner-lion { opacity: 0.14; width: 360px; }
@media (max-width: 800px) { .split-cta { grid-template-columns: 1fr; } }

/* ─────────────── Stats ─────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  padding: 56px 28px;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.stat:first-child { border-left: 0; }
.stat .v {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: clamp(48px, 5.5vw, 80px);
  letter-spacing: -0.03em; line-height: 1;
  color: var(--text);
}
.stat .v .unit { color: var(--accent); }
.stat .l {
  font-family: var(--font-body); font-weight: 400;
  font-size: 14px; color: var(--text-dim);
  margin-top: 8px;
}
@media (max-width: 800px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--border); }
  .stat:nth-child(3) { border-left: 0; }
}

/* ─────────────── Process ─────────────── */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process::before {
  content: ""; position: absolute;
  top: 32px; left: 32px; right: 32px;
  height: 1px; background: var(--border);
  z-index: 0;
}
.process-step {
  padding: 0 24px 0 0;
  position: relative; z-index: 1;
}
.process-step .dot {
  width: 64px; height: 64px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: 22px;
  margin-bottom: 24px;
}
.process-step.active .dot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.process-step h4 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.process-step p { color: var(--text-dim); font-size: 15px; }
@media (max-width: 800px) {
  .process { grid-template-columns: 1fr; gap: 32px; }
  .process::before { display: none; }
}

/* ─────────────── Testimonials ─────────────── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial {
  padding: 36px 32px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex; flex-direction: column; gap: 20px;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: 22px; line-height: 1.3;
  letter-spacing: -0.01em;
}
.testimonial-meta { display: flex; align-items: center; gap: 14px; padding-top: 8px; border-top: 1px solid var(--border); }
.testimonial-meta .av {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-elev-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--text-dim);
}
.testimonial-meta .who { display: flex; flex-direction: column; }
.testimonial-meta .who b { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.testimonial-meta .who span { font-size: 13px; color: var(--text-muted); }
@media (max-width: 800px) { .testimonials { grid-template-columns: 1fr; } }

/* ─────────────── Contact / Footer ─────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: 1px solid var(--border); }
.contact-row .k { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.contact-row .v { font-size: 16px; }
.contact-row .v small { color: var(--text-muted); display: block; margin-top: 2px; font-size: 13px; }
.map-frame {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.6) contrast(0.95); }
[data-theme="dark"] .map-frame iframe, :root .map-frame iframe { filter: grayscale(1) invert(0.92) contrast(0.85); }
[data-theme="light"] .map-frame iframe { filter: grayscale(0.4) contrast(0.95); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ─────────────── Forms ─────────────── */
.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.form .full { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
}
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  padding: 12px 0;
  font: inherit;
  color: var(--text);
  font-family: var(--font-body); font-size: 16px;
  outline: none;
  transition: border-color .2s ease;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 100px; }
.field .err { color: #ff6b6b; font-size: 12px; min-height: 14px; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: #ff6b6b; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--text-dim); grid-column: span 2; }
.consent input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; flex: none; }

@media (max-width: 700px) {
  .form { grid-template-columns: 1fr; }
  .form .full { grid-column: span 1; }
  .consent { grid-column: span 1; }
}

.form-success {
  padding: 32px;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  display: flex; flex-direction: column; gap: 8px;
}
.form-success h4 { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--accent); }

/* ─────────────── Footer ─────────────── */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-col h5 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-dim); font-size: 15px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom .reg { font-family: var(--font-display); letter-spacing: 0.08em; }
@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ─────────────── Services hero (blue) ─────────────── */
.services-hero {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: calc(76px + 60px) 0 60px;
}
.services-hero-title {
  text-align: center;
  font-size: clamp(36px, 5vw, 56px);
  color: #fff;
  margin-bottom: 48px;
}
.services-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.services-hero-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.services-hero-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.services-hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 60%);
}
.services-hero-card-icon {
  position: relative;
  z-index: 1;
  color: #fff;
  background: rgba(255,255,255,.15);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.services-hero-card-title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
@media (max-width: 800px) {
  .services-hero-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .services-hero-grid { grid-template-columns: 1fr; }
}

/* ─────────────── Page header (subpages) ─────────────── */
.page-header {
  padding: calc(76px + 80px) 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header .crumb {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: clamp(40px, 5.6vw, 80px);
  font-style: italic;
  max-width: 1000px;
}
.page-header h1 em { color: var(--accent); font-style: italic; }
.page-header .lead {
  margin-top: 24px;
  max-width: 680px;
  color: var(--text-dim);
  font-size: 18px;
}
.page-header .corner-lion {
  position: absolute; right: -2%; top: 30%; width: 480px;
  opacity: 0.08; pointer-events: none;
}
[data-lion="subtle"] .page-header .corner-lion { opacity: 0.03; }
[data-lion="editorial"] .page-header .corner-lion { opacity: 0.14; width: 580px; }
.page-header .corner-lion svg { width: 100%; fill: var(--text); }

/* ─────────────── Carrier benefits ─────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.benefit {
  background: var(--bg);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
}
.benefit .ico {
  width: 36px; height: 36px;
  color: var(--accent);
  margin-bottom: 4px;
}
.benefit h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.benefit p { color: var(--text-dim); font-size: 14px; }
@media (max-width: 800px) { .benefits-grid { grid-template-columns: 1fr; } }

.requirements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.req-item {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; gap: 18px; align-items: flex-start;
}
.req-item:nth-child(2n) { border-right: 0; }
.req-item:nth-last-child(-n+2) { border-bottom: 0; }
.req-item .num {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: 22px; color: var(--accent); flex: none; min-width: 36px;
}
.req-item h4 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.req-item p { color: var(--text-dim); font-size: 14px; }
@media (max-width: 700px) {
  .requirements { grid-template-columns: 1fr; }
  .req-item { border-right: 0; }
  .req-item:nth-last-child(2) { border-bottom: 1px solid var(--border); }
}

/* ─────────────── Misc utilities ─────────────── */
.scroll-reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.scroll-reveal.in { opacity: 1; transform: translateY(0); }

.divider-with-lion {
  display: flex; align-items: center; gap: 32px;
  padding: 60px 0;
}
.divider-with-lion .l { flex: 1; height: 1px; background: var(--border); }
.divider-with-lion svg { width: 56px; height: 56px; fill: var(--text-muted); opacity: 0.5; }

/* Smooth focus rings */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ─────────── ES Logistics dodatki — integracja z assetami ─────────── */
:root { --lion-filter: none; }
[data-theme="light"] { --lion-filter: brightness(0) invert(0); }

/* Hero z prawdziwym zdjęciem ciężarówki/biura zamiast abstrakcji */
.hero-bg.photo {
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.92) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.2) 60%, rgba(10,10,10,0.55) 100%),
    url('assets/photo-1.jpeg') center/cover no-repeat !important;
  background-color: #0a0a0a !important;
}
[data-theme="light"] .hero-bg.photo {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.95) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.3) 60%, rgba(255,255,255,0.6) 100%),
    url('assets/photo-1.jpeg') center/cover no-repeat !important;
  background-color: #ffffff !important;
  filter: grayscale(0.2);
}

/* ─────────────── Kierunki obsługi (Countries) ─────────────── */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.country-tile {
  background: var(--bg);
  padding: 28px 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background .2s ease;
  position: relative;
}
.country-tile:hover { background: var(--bg-elev); }
.country-tile:hover .country-code { color: var(--accent); }
.country-code {
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color .2s ease;
  line-height: 1;
}
.country-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.country-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: auto;
}
@media (max-width: 1080px) { .countries-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .countries-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .countries-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─────────────── Zaufali nam — logos strip (placeholder) ─────────────── */
.logos-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.logo-cell {
  background: var(--bg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 140px;
  transition: background .2s ease;
}
.logo-cell:hover { background: var(--bg-elev); }
.logo-mono {
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}
.logo-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-top: auto;
}
@media (max-width: 800px) { .logos-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .logos-strip { grid-template-columns: 1fr; } }

/* ─────────────── FAQ ─────────────── */
.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 60px 1fr 32px;
  gap: 20px;
  align-items: center;
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-num {
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.faq-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  color: var(--text);
}
.faq-icon {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--text-muted);
  text-align: center;
  transition: transform .25s ease, color .2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  padding: 0 0 28px 80px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  max-width: 760px;
}
@media (max-width: 700px) {
  .faq-item summary { grid-template-columns: 40px 1fr 28px; gap: 14px; padding: 22px 0; }
  .faq-a { padding-left: 54px; padding-bottom: 22px; }
}

/* ─────────────── Hero — Ken Burns + marquee z krajami ─────────────── */
@keyframes kenburns {
  0%   { transform: scale(1.05) translate(0, 0); }
  50%  { transform: scale(1.12) translate(-1.5%, -1%); }
  100% { transform: scale(1.05) translate(0, 0); }
}
.hero-bg.photo { animation: kenburns 28s ease-in-out infinite; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.hero-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 18px 0;
}
.hero-marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.hero-marquee-item {
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.hero-marquee-item::after {
  content: "—";
  color: var(--accent);
  margin-left: 16px;
  opacity: 0.5;
}
.hero-marquee:hover .hero-marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg.photo { animation: none; }
  .hero-marquee-track { animation: none; }
}

/* ─────────────── Cookie banner ─────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid var(--border-strong);
  padding: 16px 0;
  animation: cookie-slide-up .35s ease-out;
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 13px;
  color: var(--text-dim);
  min-width: 280px;
}
.cookie-banner__text strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--text);
}
.cookie-banner__actions {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner__link {
  font-family: var(--font-display);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
}
.cookie-banner__link:hover { color: var(--text); }
.cookie-banner__btn {
  padding: 8px 16px;
  font-size: 12px;
}

/* ─────────────── Back to top ─────────────── */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 88px;
  z-index: 80;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform .2s ease, opacity .2s ease;
  animation: btt-fade-in .25s ease-out;
}
@keyframes btt-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.back-to-top:hover { transform: translateY(-2px); }

/* ─────────────── Sticky mobile CTA ─────────────── */
.mobile-cta {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.mobile-cta.visible {
  transform: translateY(0);
  opacity: 1;
}
@media (max-width: 700px) {
  .mobile-cta { display: inline-flex; }
  .back-to-top { bottom: 84px; right: 16px; }
  /* Cookie banner musi być nad mobile CTA */
  .cookie-banner { bottom: 80px; }
}

/* ─────────────── Skip link (a11y) ─────────────── */
.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ─────────────── Hamburger menu icon ─────────────── */
.menu-burger {
  width: 22px; height: 16px;
  position: relative;
  display: inline-block;
}
.menu-burger span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-burger span:nth-child(1) { top: 0; }
.menu-burger span:nth-child(2) { top: 7px; }
.menu-burger span:nth-child(3) { top: 14px; }

.menu-btn.is-open .menu-burger span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.menu-btn.is-open .menu-burger span:nth-child(2) {
  opacity: 0;
}
.menu-btn.is-open .menu-burger span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.menu-btn {
  width: 44px; height: 44px;
  padding: 0 !important;
  display: none;
  align-items: center;
  justify-content: center;
}

/* ─────────────── Page transitions ─────────────── */
.page-fade {
  animation: page-enter .35s ease-out;
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-fade { animation: none; }
  .cookie-banner { animation: none; }
  .back-to-top { animation: none; }
  .mobile-cta { transition: none; }
}
