/* ============================================================
   BIOTECH AG — one-pager
   Paleta: granat + antracyt + akcent miedziano-pomarańczowy
   ============================================================ */

:root {
  /* kolory — granatowa paleta (rebrand 2026-06-24; było: butelkowa zieleń) */
  --navy-900: #0e2138;   /* najgłębszy granat — gradienty kontaktu / logo */
  --navy-800: #163252;   /* ciemny granat — kickery, lead, nagłówki, paski CTA */
  --navy-700: #1e4570;   /* primary, kolor logo */
  --navy-600: #335f8f;   /* mid — checkmarki, bordery, strzałki trasy */
  --navy-200: #a9c1dd;   /* jasny — eyebrow, linie, tekst na ciemnym tle */
  --navy-100: #d2deec;   /* bardzo jasny — bordery kart na jasnym tle */
  --mist-050:  #eef2f8;  /* złamana biel z chłodnym tintem */
  --char-950:  #0d1626;  /* najciemniejszy granat-antracyt (stopka, nav) */
  --char-900:  #13203a;  /* baza sekcji ciemnych (granatowy antracyt) */
  --char-800:  #1d2f49;
  --paper:     #f6f7fb;   /* złamana biel z chłodnym tintem */
  --white:     #ffffff;
  --amber:     #d98e4a;   /* miedziano-pomarańczowy akcent */
  --amber-dim: #b8732f;

  --ink:       #19222e;
  --ink-soft:  #495564;
  --ink-light: #e7edf5;
  --ink-light-soft: #aab6c6;

  /* typografia: tylko 2 rodziny */
  --font-display: "Archivo", sans-serif;
  --font-body: "Source Sans 3", sans-serif;

  /* rytm */
  --container: 1180px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 10px 35px rgba(13, 28, 50, .14);
  --shadow-soft: 0 4px 18px rgba(13, 28, 50, .10);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--navy-700); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* ---------- komponenty wspólne ---------- */

/* etykieta nad tytułem hero */
.eyebrow {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--navy-200);
  margin-bottom: 1em;
}

/* kicker sekcji: duży numer + etykieta + linia na całą szerokość */
.kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.kicker__num {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--amber-dim);
}
.kicker__label {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--navy-800);
  white-space: nowrap;
}
.kicker::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--navy-200), transparent);
}
.section--dark .kicker__num,
.section--contact .kicker__num { color: var(--amber); }
.section--dark .kicker__label,
.section--contact .kicker__label { color: var(--white); }
.section--dark .kicker::after,
.section--contact .kicker::after { background: linear-gradient(to right, rgba(255, 255, 255, .25), transparent); }

.accent { color: var(--amber); }

.accent-underline {
  background-image: linear-gradient(120deg, rgba(217, 142, 74, .35), rgba(217, 142, 74, .35));
  background-repeat: no-repeat;
  background-size: 100% .32em;
  background-position: 0 88%;
}

.lead { font-size: 1.18rem; font-weight: 600; color: var(--navy-800); }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .8em 1.7em;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid {
  background: var(--amber);
  color: var(--char-950);
  box-shadow: 0 6px 20px rgba(217, 142, 74, .35);
}
.btn--solid:hover { background: #e49d5d; }

.btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

.btn--outline {
  color: var(--navy-700);
  border-color: var(--navy-700);
}
.btn--outline:hover { background: var(--navy-700); color: var(--white); }

.btn--lg { padding: 1em 2.2em; font-size: 1.02rem; }

/* sekcje */
.section { padding: clamp(70px, 9vw, 120px) 0; }

/* kotwice nie chowają się pod sticky nav */
[id] { scroll-margin-top: 84px; }

.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__sub { font-size: 1.15rem; color: var(--ink-soft); }

.section--sage { background: var(--mist-050); }

.section--dark {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(40, 78, 130, .38), transparent 60%),
    var(--char-900);
  color: var(--ink-light);
}
.section--dark h2 { color: var(--white); }
.section--dark .section__sub { color: var(--ink-light-soft); }

.section--contact {
  background:
    radial-gradient(900px 480px at 12% 110%, rgba(217, 142, 74, .14), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 70%);
  color: var(--ink-light);
}
.section--contact h2 { color: var(--white); }
.section--contact .section__sub { color: var(--navy-200); }

/* animacje wejścia (tylko gdy JS działa, inaczej treść zawsze widoczna) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .gallery img, .use, .group__card { transition: none !important; }
}

/* ============================================================
   NAWIGACJA
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .25s, box-shadow .25s;
}
.nav.is-scrolled {
  background: rgba(11, 20, 36, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 12px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.nav__logo { border-radius: 8px; }
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--white);
  white-space: nowrap;
}
.nav__wordmark em { font-style: normal; color: var(--amber); margin-left: .18em; }

.nav__menu { display: flex; gap: 4px; }
.nav__menu a {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  transition: color .15s, background-color .15s;
}
.nav__menu a:hover { color: var(--white); background: rgba(255, 255, 255, .1); }

.nav__right { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 20px); }

.nav__lang {
  display: flex;
  gap: 2px;
  padding-left: clamp(12px, 1.5vw, 20px);
  border-left: 1px solid rgba(255, 255, 255, .22);
}
.lang {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  background: none;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, .45);
  padding: 5px 8px;
  border-radius: 5px;
}
.lang--active {
  color: var(--white);
  border-color: rgba(255, 255, 255, .4);
}
.lang[disabled] { cursor: not-allowed; }
.nav__lang a.lang { text-decoration: none; cursor: pointer; }
.nav__lang a.lang:hover { color: var(--white); border-color: rgba(255, 255, 255, .4); }

.nav__cta {
  white-space: nowrap;
  font-size: .88rem;
  padding: .7em 1.3em;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(10, 22, 40, .94) 8%, rgba(14, 30, 52, .78) 45%, rgba(16, 30, 50, .42) 100%),
    url("../img/hero-hutniczy.jpg") center 38% / cover no-repeat;
  z-index: -1;
}
.hero__bg::after {
  /* delikatne ziarno dla głębi */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

.hero__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 140px clamp(20px, 4vw, 40px) 40px;
  width: 100%;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  max-width: 14em;
  margin-bottom: .35em;
}

.hero__lead {
  max-width: 580px;
  font-size: 1.14rem;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 2em;
}

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

.hero__metrics {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
  padding: 26px clamp(20px, 4vw, 40px) 34px;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.metric { display: flex; flex-direction: column; }
.metric__value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--white);
  display: inline;
}
.metric__unit {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--amber);
  margin-left: .25em;
}
.metric__value, .metric__unit { display: inline; }
.metric__label {
  font-size: .9rem;
  color: rgba(255, 255, 255, .65);
  margin-top: .35em;
  letter-spacing: .02em;
}

/* ============================================================
   O FIRMIE
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 70px);
}

.about__quote {
  margin: 1.6em 0 0;
  padding-left: 1.2em;
  border-left: 3px solid var(--amber);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.4;
}

.about__photo { margin: 0; position: relative; }
.about__photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.about__photo figcaption,
.gallery figcaption,
.product__photo figcaption {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .8em;
}

.group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.group__card {
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.group__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.group__num {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  color: var(--amber-dim);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 2px 7px;
  display: inline-block;
  margin-bottom: 14px;
}
.group__card p { margin: 0; font-size: 1rem; color: var(--ink-soft); }

.group__note {
  margin-top: 26px;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ============================================================
   KONTEKST RYNKOWY (dark)
   ============================================================ */
.impact {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(600px 320px at 10% 0%, rgba(217, 142, 74, .12), transparent 70%),
    rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 60px);
  margin-bottom: clamp(44px, 6vw, 70px);
}
.impact__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--amber);
  display: block;
}
.impact__value small { font-size: .38em; font-weight: 700; }
.impact__label {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin: .65em 0 0;
}
.impact__credits {
  margin: 0;
  padding-left: 22px;
  border-left: 2px solid var(--navy-600);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-light-soft);
}
.impact__credits strong {
  display: block;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .4em;
}

.proof__title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.2em;
}
.proof__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.proof__item {
  border-left: 2px solid var(--navy-600);
  padding-left: 18px;
}
.proof__item strong { color: var(--white); display: block; margin-bottom: .4em; font-family: var(--font-display); font-size: 1.02rem; }
.proof__item p { margin: 0; font-size: .95rem; color: var(--ink-light-soft); }
.proof__note {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

/* ============================================================
   PRODUKT
   ============================================================ */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 50px);
  align-items: start;
}

.product__media { display: flex; flex-direction: column; gap: clamp(16px, 2.5vw, 24px); }
.product__photo { margin: 0; }
.product__photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.product__specs { display: grid; gap: 22px; }

.spec-table {
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-soft);
}
.spec-table__title {
  font-size: .85rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 14px;
}
.spec-table dl { margin: 0; }
.spec-table dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--navy-100);
}
.spec-table dl > div:last-child { border-bottom: 0; }
.spec-table dt { font-size: 1rem; color: var(--ink-soft); }
.spec-table dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-800);
  white-space: nowrap;
}

.product__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 50px);
  margin-top: clamp(36px, 5vw, 56px);
}
.product__raw h3 {
  font-size: 1.02rem;
  color: var(--navy-800);
  display: flex;
  align-items: center;
  gap: 10px;
}
.product__raw h3::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber);
  flex: none;
}
.product__raw p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* formaty brykietu */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.format {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--mist-050);
  border: 1px solid var(--navy-100);
  border-radius: 8px;
  padding: 13px 15px;
}
.format__dim { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--navy-800); }
.format__tol { font-size: .82rem; color: var(--ink-soft); }
.formats__note { margin: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }

/* pasek certyfikatu */
.cert {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(26px, 4vw, 44px);
  padding: clamp(22px, 3vw, 30px);
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-left: 4px solid var(--navy-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.cert__logo {
  flex: none;
  width: clamp(150px, 20vw, 188px);
  height: auto;
  border-radius: 6px;
}
.cert__body h3 { font-size: 1.18rem; color: var(--navy-800); margin: 0 0 .4em; }
.cert__body p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ============================================================
   ZASTOSOWANIA
   ============================================================ */
.apps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.app {
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  overflow-wrap: break-word;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.app:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.app__icon { width: 36px; height: 36px; color: var(--amber); margin-bottom: 14px; }
.app h3 { font-size: 1.05rem; color: var(--navy-800); margin: 0 0 .45em; }
.app p { margin: 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.45; }

.apps-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
  background: linear-gradient(155deg, var(--navy-800), var(--navy-900));
  color: var(--ink-light);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}
.apps-foot .ticks { margin: 0; }
.apps-foot .ticks li { color: var(--navy-200); }
.apps-foot .ticks li::before { color: var(--amber); }
.apps-foot .btn { white-space: nowrap; }

.ticks { list-style: none; margin: 0 0 1.6em; }
.ticks li {
  position: relative;
  padding: .32em 0 .32em 1.7em;
  font-size: 1rem;
}
.ticks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--navy-600);
}

.ticks--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  max-width: 760px;
  margin-bottom: clamp(30px, 4vw, 44px);
}

/* wariant 3-kolumnowy (logistyka) — symetria z trasą i galerią */
.ticks--cols3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
  gap: 2px 28px;
}

/* ============================================================
   PROCES (dark)
   ============================================================ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
  margin-bottom: clamp(40px, 5vw, 60px);
}
.step {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.step__num {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: .12em;
}
.step h3 { color: var(--white); font-size: 1.05rem; margin: .5em 0 .3em; }
.step p { margin: 0; font-size: .95rem; color: var(--ink-light-soft); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery figure { margin: 0; }
.gallery img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  transition: transform .35s var(--ease);
}
.gallery figure:hover img { transform: scale(1.025); }
.section--dark .gallery figcaption { color: var(--ink-light-soft); }

.gallery--logistics img { aspect-ratio: 16 / 10; }

.gallery--prod { grid-template-columns: repeat(4, 1fr); }
.gallery video {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   LOGISTYKA — schemat trasy
   ============================================================ */
.route {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  margin-bottom: clamp(30px, 4vw, 44px);
}

.route__node {
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.route__node svg { width: 34px; height: 34px; color: var(--navy-700); margin-bottom: 8px; }
.route__node strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy-900); }
.route__node span { font-size: .95rem; color: var(--ink-soft); }

.route__link {
  display: flex;
  align-items: center;
  padding: 0 10px;
  position: relative;
  min-width: 90px;
  justify-content: center;
}
.route__link::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  border-top: 2px dashed var(--navy-200);
}
.route__link::after {
  content: "\203A";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-54%);
  color: var(--navy-600);
  font-size: 1.3rem;
  font-weight: 700;
}
.route__link span {
  position: relative;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 3px 8px;
}

/* ============================================================
   DLACZEGO MY
   ============================================================ */
.why-wrap {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 22px;
  align-items: stretch;
}

/* panel z dużym logo */
.why-logo {
  background:
    radial-gradient(420px 360px at 50% 38%, rgba(255, 255, 255, .08), transparent 70%),
    linear-gradient(165deg, var(--navy-700), var(--navy-900));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 4vw, 56px) 32px;
  gap: 26px;
}
.why-logo img {
  width: min(270px, 70%);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .25));
}
.why-logo__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-200);
  text-align: center;
}

.why-us {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.why-us__item {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.why-us__item::before {
  /* akcentowa lewa krawędź rozwijana na hover */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--ease);
}
.why-us__item:hover { transform: translateX(5px); box-shadow: var(--shadow); }
.why-us__item:hover::before { transform: scaleY(1); }
.why-us__check {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--white);
  font-size: .9rem;
  display: grid;
  place-items: center;
  margin-top: 2px;
  box-shadow: 0 0 0 5px var(--mist-050);
}
.why-us__item h3 {
  position: relative;
  font-size: 1.08rem;
  margin: 0 0 .35em;
  color: var(--ink);
}
.why-us__item p {
  position: relative;
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ============================================================
   KONTAKT
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.contact__card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact__role {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}
.contact__card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: .5em; }
.contact__card a {
  color: var(--navy-200);
  text-decoration: none;
  font-size: .98rem;
  padding: 2px 0;
}
.contact__card a:hover { color: var(--white); text-decoration: underline; }
.contact__card p { margin: 0; color: var(--navy-200); font-size: .98rem; }
.contact__www { margin-top: .5em !important; font-size: .92rem !important; letter-spacing: .03em; }

.contact__soon {
  font-size: .98rem;
  color: var(--navy-200);
  opacity: .5;
  padding: 2px 0;
}
.contact__address {
  text-align: center;
  color: var(--navy-200);
  font-size: .95rem;
  margin: 0 0 30px;
}
.contact__address strong { color: var(--white); font-weight: 600; }
.contact__address a { color: var(--navy-200); text-decoration: underline; }
.contact__address a:hover { color: var(--white); }

.contact__cta { text-align: center; }

/* ============================================================
   STOPKA
   ============================================================ */
.footer {
  background: var(--char-950);
  color: rgba(255, 255, 255, .55);
  padding: 36px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  letter-spacing: .04em;
}
.footer__brand img { border-radius: 6px; }
.footer__brand em { font-style: normal; color: var(--amber); margin-left: .18em; }
.footer__legal { margin: 0; font-size: .85rem; flex: 1; }
.footer__copy { margin: 0; font-size: .85rem; }

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 1120px) {
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav { background: rgba(11, 20, 36, .92); backdrop-filter: blur(10px); }

  .nav__menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 20, 36, .98);
    padding: 12px 20px 24px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
  }
  .nav__menu.is-open a { padding: 13px 12px; font-size: 1rem; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .proof__items { grid-template-columns: 1fr; gap: 22px; }
  .impact { grid-template-columns: 1fr; gap: 28px; }
  .impact__credits { border-left: 0; border-top: 2px solid var(--navy-600); padding-left: 0; padding-top: 22px; }
  .why-wrap { grid-template-columns: 1fr; }
  .why-logo { padding: 44px 32px; }
  .why-logo img { width: min(220px, 55%); }
  .contact { grid-template-columns: 1fr; }
  .group { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .apps { grid-template-columns: repeat(3, 1fr); }
  .apps-foot { grid-template-columns: 1fr; gap: 26px; }
  .gallery--prod { grid-template-columns: repeat(2, 1fr); }
  .about__photo { max-width: 540px; }

  .route { grid-template-columns: 1fr; gap: 0; }
  .route__link {
    min-height: 56px;
    justify-content: flex-start;
    padding-left: 40px;
  }
  .route__link::before {
    left: 22px;
    right: auto;
    top: 6px;
    bottom: 6px;
    border-top: 0;
    border-left: 2px dashed var(--navy-200);
  }
  .route__link::after { content: "\2304"; right: auto; left: 15.5px; top: auto; bottom: 2px; transform: none; }
  .route__link span { margin-left: 14px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .hero__inner { padding-top: 110px; }
  .hero__metrics { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .hero__actions .btn { width: 100%; text-align: center; }

  .apps { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .product__foot { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr; }
  .cert { flex-direction: column; align-items: flex-start; gap: 18px; }
  .ticks--grid { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ============================================================
   MODAL: FORMULARZ KONTAKTOWY (Napisz do nas)
   ============================================================ */
.modal {
  width: min(620px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(8, 16, 30, .45);
  overflow: visible;
}
.modal::backdrop { background: rgba(9, 17, 31, .62); backdrop-filter: blur(3px); }
.modal__panel { padding: clamp(26px, 4vw, 42px); max-height: 92vh; overflow-y: auto; }
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--mist-050);
  border: 0; border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.modal__close:hover { background: var(--navy-100); color: var(--navy-800); }
.modal__close svg { width: 18px; height: 18px; }

.modal__eyebrow {
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber-dim);
  margin: 0 0 .5em;
}
.modal__title { font-size: clamp(1.5rem, 3.2vw, 1.95rem); color: var(--navy-800); margin: 0 0 .3em; }
.modal__sub { font-size: 1.02rem; color: var(--ink-soft); margin: 0 0 1.5em; }

.modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { margin-bottom: 16px; }
.field__label { font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--navy-800); }
.field__label i { color: var(--amber-dim); font-style: normal; }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--navy-100);
  border-radius: 8px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 112px; line-height: 1.55; }
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(47, 95, 143, .18);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #c0492f; }

.modal__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.modal__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px 18px; flex-wrap: wrap;
}
.modal__status { margin: 0; font-size: .95rem; font-weight: 600; flex: 1; min-width: 160px; }
.modal__status.is-error { color: #c0492f; }
.modal__status.is-ok { color: var(--navy-700); }
.modal__foot .btn { white-space: nowrap; }
.modal__note { margin: 1.3em 0 0; font-size: .85rem; color: var(--ink-soft); }
.modal__note a { color: var(--navy-700); }
.modal__note i { color: var(--amber-dim); font-style: normal; }

.modal__done { text-align: center; padding: clamp(28px, 5vw, 46px) 8px; }
.modal__done-icon {
  width: 66px; height: 66px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy-700); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 0 0 8px var(--mist-050);
}
.modal__done-icon svg { width: 30px; height: 30px; }
.modal__done h2 { color: var(--navy-800); margin: 0 0 .25em; }
.modal__done p { color: var(--ink-soft); margin: 0 auto 1.6em; max-width: 360px; }

.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modalIn .26s var(--ease); }
  .modal[open]::backdrop { animation: backdropIn .26s ease; }
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 560px) {
  .modal__grid { grid-template-columns: 1fr; }
  .modal__foot { flex-direction: column-reverse; align-items: stretch; }
  .modal__foot .btn { width: 100%; text-align: center; }
}

/* ============================================================
   MAPA PARTNERÓW (sekcja 01)
   ============================================================ */
.wmap {
  margin-top: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(680px 320px at 78% -25%, rgba(40, 78, 130, .5), transparent 70%),
    var(--char-900);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 38px) clamp(20px, 4vw, 44px) clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.wmap__title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 clamp(8px, 1.5vw, 14px);
}
.wmap__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, rgba(255, 255, 255, .22), transparent); }
.wmap__canvas { width: 100%; }
.wmap__svg { width: 100%; height: auto; display: block; overflow: hidden; }

.wmap__land { fill: #2c507f; opacity: .5; }
.wmap__arc { fill: none; stroke: var(--amber); stroke-width: 1.3; stroke-linecap: round; opacity: .9; }
.wmap__arrowhead { fill: var(--amber); }
.wmap__node { fill: #cddcee; stroke: var(--char-900); stroke-width: .8; }
.wmap__hub { fill: var(--amber); stroke: var(--char-900); stroke-width: 1; }
.wmap__halo { fill: var(--amber); opacity: .3; }
.wmap__label {
  font-family: var(--font-display);
  font-size: 9px; font-weight: 600;
  fill: #e7eef7;
  paint-order: stroke;
  stroke: #0f1d33; stroke-width: 2.6px; stroke-linejoin: round;
}
.wmap__label--hub { fill: #ffffff; font-size: 9.5px; }

.wmap__legend {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 8px 20px; margin: clamp(14px, 2.5vw, 22px) 0 0; padding: 0;
}
.wmap__legend li {
  position: relative; padding-left: 17px;
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  color: var(--ink-light-soft);
}
.wmap__legend li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 8px; height: 8px; border-radius: 50%; background: #cddcee;
}
.wmap__legend .wmap__legend--hub { color: #fff; }
.wmap__legend .wmap__legend--hub::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(217, 142, 74, .22); }

@media (prefers-reduced-motion: no-preference) {
  .wmap__arc { stroke-dasharray: 4 7; animation: wmapFlow 1.7s linear infinite; }
  .wmap__halo { transform-box: fill-box; transform-origin: center; animation: wmapPulse 2.8s ease-out infinite; }
}
@keyframes wmapFlow { to { stroke-dashoffset: -22; } }
@keyframes wmapPulse {
  0% { transform: scale(.5); opacity: .45; }
  70% { opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

@media (max-width: 640px) {
  .wmap__labels { display: none; }
}

/* nav na wąskich telefonach: zmieścić logo + przełącznik języków + burger */
@media (max-width: 480px) {
  .nav__inner { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .nav__wordmark { font-size: .9rem; letter-spacing: .02em; }
  .nav__right { gap: 6px; }
  .nav__lang { padding-left: 8px; gap: 0; }
  .lang { font-size: .66rem; padding: 4px 4px; letter-spacing: .03em; }
}

/* bardzo małe ekrany (≤340 px): jeszcze ciaśniej */
@media (max-width: 340px) {
  .nav__inner { padding-left: 12px; padding-right: 12px; }
  .nav__logo { width: 34px; height: 34px; }
  .nav__wordmark { font-size: .8rem; }
  .lang { font-size: .6rem; padding: 4px 3px; }
}
