/* ==========================================================================
   KOLSYSTEM Sp. z o.o. - style.css
   Paleta: grafit / antracyt / ciemny granat / biel / jasne szarości
   Akcent: żółty safety #FFD200
   ========================================================================== */

/* ---------- 0. Fonty (self-hosted, bez połączeń zewnętrznych) ---------- */

/* Chakra Petch 600 - latin-ext */
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/chakra-petch-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Chakra Petch 600 - latin */
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/chakra-petch-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Chakra Petch 700 - latin-ext */
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/chakra-petch-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Chakra Petch 700 - latin */
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/chakra-petch-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono 400 - latin-ext */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JetBrains Mono 400 - latin */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono 500 - latin-ext */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JetBrains Mono 500 - latin */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono 600 - latin-ext */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JetBrains Mono 600 - latin */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Titillium Web 400 - latin-ext */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/titillium-web-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Titillium Web 400 - latin */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/titillium-web-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Titillium Web 600 - latin-ext */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/titillium-web-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Titillium Web 600 - latin */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/titillium-web-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Titillium Web 700 - latin-ext */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/titillium-web-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Titillium Web 700 - latin */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/titillium-web-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Zmienne i reset ---------- */

:root {
  /* Kolory bazowe */
  --graphite:   #14181d;   /* tło ciemne główne */
  --anthracite: #1b2129;   /* panele na ciemnym */
  --navy:       #0f1726;   /* ciemny granat (sekcja przemysłowa) */
  --navy-panel: #16233a;
  --white:      #f5f7fa;
  --gray-100:   #f3f5f7;   /* tło jasnych sekcji */
  --gray-200:   #e6eaee;
  --border-l:   #d9dfe6;   /* obramowania na jasnym */
  --border-d:   #2b333e;   /* obramowania na ciemnym */
  --text-dark:  #1b2129;   /* tekst na jasnym */
  --muted-l:    #5b6672;   /* tekst drugorzędny na jasnym */
  --muted-d:    #9aa5b1;   /* tekst drugorzędny na ciemnym */

  /* Akcent */
  --yellow:       #FFD200;
  --yellow-hover: #ffdc3d;
  --on-yellow:    #14181d;

  /* Typografia */
  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body:    "Titillium Web", "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", Consolas, monospace;

  /* Wymiary */
  --header-h: 4.5rem;
  --container: 72rem;
  --radius: 8px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--graphite);
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

ul, ol { list-style: none; }

address { font-style: normal; }

::selection { background: var(--yellow); color: var(--on-yellow); }

/* Dostępność: widoczny focus z klawiatury */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1.2rem;
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- 2. Typografia ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h3 { font-size: 1.05rem; font-weight: 600; }

/* Nagłówki kart treściowych - mocniejszy akcent dla skanowalności */
.card h3,
.advantage h3,
.tech-card h3,
.area h3 {
  font-size: 1.18rem;
  font-weight: 700;
}

p { max-width: 65ch; }

/* ---------- 3. Układ i elementy wspólne ---------- */

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(3.75rem, 7vw, 5.75rem) 0; }

/* Warianty tła sekcji */
.section--light { background: #ffffff; color: var(--text-dark); }
.section--gray {
  /* jasna sekcja z subtelną siatką inżynieryjną */
  background:
    linear-gradient(rgba(20, 24, 29, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 24, 29, 0.032) 1px, transparent 1px),
    var(--gray-100);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--text-dark);
}

.section--dark,
.section--navy { color: var(--white); }

.section--dark { background: var(--graphite); }
.section--navy {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(255, 210, 0, 0.05), transparent 60%),
    var(--navy);
  position: relative;
  overflow: hidden;
}

.section--dark p, .section--navy p { color: var(--muted-d); }
.section--light p, .section--gray p { color: var(--muted-l); }

/* Nagłówek sekcji: tytuł + żółta linia */
.section-head { margin-bottom: clamp(2rem, 4.5vw, 3rem); }

.section-head h2 { position: relative; padding-bottom: 0.85rem; }

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3.5rem;
  height: 3px;
  background: var(--yellow);
}

.section-sub {
  margin-top: 1rem;
  font-size: 1.05rem;
  max-width: 46rem;
}

.section-lead {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.section--light .section-lead, .section--gray .section-lead { color: var(--text-dark); }
.section--dark .section-lead, .section--navy .section-lead { color: var(--white); }

/* Przyciski */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease,
              border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--yellow);
  color: var(--on-yellow);
  /* ścięty narożnik - motyw techniczny */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.btn-primary:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
}
/* clip-path odcina zewnętrzny outline, więc fokus rysujemy wewnątrz przycisku */
.btn-primary:focus-visible {
  background: var(--yellow-hover);
  outline: 2px solid var(--on-yellow);
  outline-offset: -5px;
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.78rem;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border-d);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

/* ---------- 4. Nagłówek strony i nawigacja ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(20, 24, 29, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border-d);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-image {
  height: 1.7rem;
  width: auto;
  flex: 0 0 auto;
}

/* W nagłówku logotyp większy niż w stopce */
.site-header .logo-image { height: 2.25rem; }

/* Nawigacja desktop */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-d);
  text-decoration: none;
  border-radius: 5px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover { color: var(--white); }

.site-nav a.is-active {
  color: var(--yellow);
}

.site-nav a.nav-cta {
  margin-left: 0.5rem;
  border: 1.5px solid var(--yellow);
  color: var(--yellow);
  font-weight: 600;
}
.site-nav a.nav-cta:hover,
.site-nav a.nav-cta:focus-visible {
  background: var(--yellow);
  color: var(--on-yellow);
}

/* Przełącznik języka */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border-d);
  border-radius: 6px;
}

.lang-switch a {
  display: block;
  padding: 0.35rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted-d);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-switch a:hover { color: var(--white); }

.lang-switch a.is-active {
  background: var(--yellow);
  color: var(--on-yellow);
}

/* Nawigacja trzyma się prawej krawędzi, przełącznik siada tuż za nią. */
.site-nav { margin-left: auto; }

/* Przycisk menu mobilnego */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid var(--border-d);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle-bars i {
  height: 2px;
  background: var(--yellow);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */

.hero {
  position: relative;
  background: var(--graphite);
  overflow: hidden;
}

/* Siatka inżynieryjna + winieta w tle */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(75rem 40rem at 30% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(75rem 40rem at 30% 20%, #000 40%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  /* hero wypełnia całą wysokość okna pod nagłówkiem */
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.2rem;
}

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 0.35em;
  background: var(--yellow);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.accent-underline {
  position: relative;
  white-space: nowrap;
}
.accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.14em;
  background: var(--yellow);
  z-index: -1;
}

.hero-lead {
  margin-top: 1.4rem;
  font-size: 1.12rem;
  color: var(--muted-d);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* Diagram SVG w hero */
.hero-visual {
  min-width: 0;
  position: relative;
  padding: 0.6rem;
  align-self: center;
  margin-top: 2rem;
}

/* Narożniki "blueprint" wokół diagramu */
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid var(--yellow);
  opacity: 0.85;
}
.hero-visual::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-visual::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.hero-diagram {
  width: 100%;
  height: auto;
}

.diagram-blocks rect {
  fill: var(--anthracite);
  stroke: var(--border-d);
  stroke-width: 1.5;
}

.diagram-blocks text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  fill: var(--white);
  text-anchor: middle;
}

/* Numery faz cyklu życia */
.diagram-blocks .v-num {
  font-size: 9px;
  fill: var(--yellow);
  text-anchor: start;
  opacity: 0.9;
}

.diagram-links path {
  fill: none;
  stroke: var(--border-d);
  stroke-width: 1.5;
}

/* Animowany przepływ sygnału po połączeniach */
.diagram-flow path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.5;
  stroke-dasharray: 5 9;
  animation: flow 1.4s linear infinite;
  opacity: 0.9;
}

@keyframes flow { to { stroke-dashoffset: -28; } }

/* Wstrzymanie animacji w pętli, gdy hero jest poza ekranem (oszczędność CPU) */
.hero.is-offscreen .diagram-flow path,
.hero.is-offscreen .cursor { animation-play-state: paused; }

/* Powiązania weryfikacyjne między gałęziami modelu V */
.v-verif path {
  fill: none;
  stroke: var(--muted-d);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  opacity: 0.55;
}

/* ---------- 6. O firmie ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-copy p + p { margin-top: 1rem; }

/* Karta "W skrócie" stylizowana na kartę specyfikacji */
.spec-card {
  background: var(--graphite);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--border-d);
  position: relative;
}

.spec-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.8rem;
  right: 1.8rem;
  height: 3px;
  background: var(--yellow);
}

.spec-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.2rem;
}

.spec-list div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.8rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-d);
}
.spec-list div:last-child { border-bottom: 0; }

.spec-list dt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-d);
  padding-top: 0.15rem;
}

.spec-list dd { font-size: 0.95rem; }

/* Kafle przewag */
.advantages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.advantage {
  background: var(--gray-100);
  border: 1px solid var(--border-l);
  border-top: 3px solid var(--border-l);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.advantage:hover {
  border-top-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20, 24, 29, 0.08);
}

.advantage h3 { margin-bottom: 0.5rem; }
.advantage p { font-size: 0.94rem; }

/* ---------- 7. Usługi ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.2rem;
}

.card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-l);
  border-top: 3px solid var(--border-l);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-top-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(20, 24, 29, 0.08);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  padding: 0.55rem;
  background: var(--gray-100);
  border: 1px solid var(--border-l);
  border-radius: 8px;
  fill: none;
  stroke: var(--text-dark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1rem;
  transition: stroke 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.card:hover .card-icon {
  stroke: var(--yellow);
  background: var(--graphite);
  border-color: var(--graphite);
}

.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 0.93rem; }

/* ---------- 8. Przemysł i systemy krytyczne ---------- */

.rail-lead {
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--white);
  max-width: 46rem;
  margin-bottom: clamp(2.2rem, 4vw, 3rem);
}

.rail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

/* Wspólny mono-nagłówek podsekcji */
.rail-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.3rem;
}

/* Wymagania kolei - numerowana specyfikacja z liniami podziału */
.rail-reqs { border-top: 1px solid var(--border-d); }

.rail-reqs li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: baseline;
  gap: 0.8rem;
  padding: 1rem 0.35rem;
  border-bottom: 1px solid var(--border-d);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rail-reqs li:hover {
  border-color: rgba(255, 210, 0, 0.45);
  background: rgba(255, 210, 0, 0.03);
}

.rail-reqs-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--yellow);
}

.rail-reqs-text {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--white);
}

/* Panel "blueprint" z obszarami wsparcia (echo diagramu w hero) */
.rail-panel {
  position: relative;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--navy-panel);
  background-size: 26px 26px, 26px 26px, auto;
  border: 1px solid #24344f;
  border-radius: var(--radius);
  padding: 1.9rem;
}

/* Narożniki kreślarskie */
.rail-panel::before,
.rail-panel::after {
  content: "";
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  border: 2px solid var(--yellow);
  opacity: 0.9;
}
.rail-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.rail-panel::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Łańcuch węzłów - nawiązanie do sygnetu 2oo3 i połączeń w diagramie */
.rail-chain { position: relative; }

.rail-chain::before {
  content: "";
  position: absolute;
  left: calc(0.55rem - 1px);
  top: 1.2rem;
  bottom: 1.2rem;
  width: 2px;
  background: linear-gradient(var(--yellow), rgba(255, 210, 0, 0.1));
  opacity: 0.55;
}

.rail-chain li {
  position: relative;
  padding: 0.72rem 0 0.72rem 2rem;
  font-size: 1rem;
  color: var(--white);
  transition: transform 0.2s ease;
}

.rail-chain li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--navy-panel);
  border: 2px solid var(--yellow);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.rail-chain li:hover { transform: translateX(3px); }

.rail-chain li:hover::before {
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 210, 0, 0.16);
}

/* ---------- 9. Technologie ---------- */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.2rem;
}

.tech-card {
  background: var(--gray-100);
  border: 1px solid var(--border-l);
  border-top: 3px solid var(--border-l);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-card:hover {
  border-top-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(20, 24, 29, 0.08);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.5rem;
  border-radius: 6px;
  background: var(--graphite);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.tech-card h3 { margin-bottom: 0.55rem; }
.tech-card p { font-size: 0.93rem; }

/* Blok wartości biznesowej */
.value-block {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--graphite);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}

.value-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.6rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.3rem 2rem;
}

.value-grid li {
  padding-left: 1.1rem;
  border-left: 3px solid var(--yellow);
}

.value-grid strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.value-grid span {
  font-size: 0.9rem;
  color: var(--muted-d);
}

/* ---------- 10. Standardy ---------- */

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.standard {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--anthracite);
  border: 1px solid var(--border-d);
  border-top: 3px solid var(--border-d);
  border-radius: var(--radius);
  padding: 1.65rem 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.standard:hover {
  border-top-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.standard-code {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--yellow);
  background: rgba(255, 210, 0, 0.08);
  border: 1px solid rgba(255, 210, 0, 0.4);
  border-radius: 5px;
  padding: 0.28rem 0.7rem;
}

.standard h3 {
  margin: 0.15rem 0 0;
  font-size: 1.18rem;
  color: var(--white);
}

.standard p { margin: 0; font-size: 0.92rem; }

.disclaimer {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--anthracite);
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.7rem;
}

.disclaimer p { max-width: none; font-size: 0.97rem; }
.disclaimer strong { color: var(--white); }

/* ---------- 11. Proces współpracy ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.2rem;
  counter-reset: step;
  position: relative;
}

/* Linia łącząca kroki (desktop) */
.process::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: 2.5rem;
  right: 2.5rem;
  height: 2px;
  background: var(--border-l);
}

.process-step { position: relative; padding-top: 0.2rem; }

.process-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--on-yellow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 6px var(--gray-100);
}

.process-step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.9rem; }

/* ---------- 12. Obszary projektowe ---------- */

.areas-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.area {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--gray-100);
  border: 1px solid var(--border-l);
  border-top: 3px solid var(--border-l);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.area:hover {
  border-top-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20, 24, 29, 0.08);
}

/* Numer porządkowy - echo numeracji z sekcji Kolej i Proces */
.area-num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--yellow);
  padding-top: 0.12rem;
}

.area h3 { margin-bottom: 0.45rem; }
.area p { font-size: 0.93rem; }

/* ---------- 12a. Pasek-manifest (statement) ---------- */

.statement {
  /* ciemny pas z siatką inżynierską - łamie rytm jasnych sekcji z kartami */
  background:
    radial-gradient(50rem 24rem at 82% -30%, rgba(255, 210, 0, 0.06), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--graphite);
  background-size: auto, 44px 44px, 44px 44px, auto;
  color: var(--white);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--border-d);
  border-bottom: 1px solid var(--border-d);
}

.statement-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.statement-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: 0.005em;
  color: var(--white);
  max-width: 52rem;
  text-wrap: balance;
}

.statement-text span { color: var(--yellow); }

/* ---------- 12b. Pasek CTA przed kontaktem ---------- */

.cta-band {
  background: var(--yellow);
  color: var(--on-yellow);
  padding: clamp(2.75rem, 5vw, 4rem) 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.cta-band-title {
  color: var(--graphite);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  max-width: 22ch;
}

.cta-band-text {
  margin-top: 0.6rem;
  color: rgba(20, 24, 29, 0.78);
  font-size: 1.05rem;
  max-width: 42ch;
}

.cta-band-btn {
  flex-shrink: 0;
  background: var(--graphite);
  color: var(--white);
  /* ścięty narożnik - spójnie z btn-primary */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.cta-band-btn:hover { background: #20262e; transform: translateY(-2px); }
.cta-band-btn:focus-visible {
  outline: 2px solid var(--graphite);
  outline-offset: 3px;
}

/* ---------- 13. Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.1rem;
}

.contact-reg-title { margin-top: 2.2rem; }

.contact-list li { margin-bottom: 1.3rem; }

.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-d);
  margin-bottom: 0.25rem;
}

.contact-list a {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border-d);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.contact-list address { color: var(--white); }

.reg-list div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-d);
}

.reg-list dt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted-d);
  text-transform: uppercase;
}

.reg-list dd { color: var(--white); font-size: 0.95rem; }

/* Formularz */
.contact-form {
  background: var(--anthracite);
  border: 1px solid var(--border-d);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-field { margin-bottom: 1.1rem; }

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.req { color: var(--yellow); }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  background: var(--graphite);
  border: 1px solid var(--border-d);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field textarea { resize: vertical; min-height: 8rem; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.18);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #ff5c5c;
}

.field-error {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #ff8a8a;
}

/* Zgoda RODO */
.form-consent .consent-label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--yellow);
  cursor: pointer;
}

.form-consent span {
  font-size: 0.85rem;
  color: var(--muted-d);
  font-weight: 400;
}

.btn-submit {
  width: 100%;
  margin-top: 0.4rem;
  border: 0;
  font-size: 1rem;
}

.form-success {
  margin-top: 1.2rem;
  background: rgba(255, 210, 0, 0.08);
  border: 1px solid rgba(255, 210, 0, 0.45);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  font-size: 0.93rem;
  color: var(--white);
  max-width: none;
}

.form-success a { color: var(--yellow); }

/* Klauzula informacyjna RODO */
.form-legal {
  margin-top: 1.2rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--muted-d);
  max-width: none;
}

.form-legal a { color: var(--muted-d); }
.form-legal a:hover, .form-legal a:focus-visible { color: var(--yellow); }

/* Mapa dojazdu */
.map-block { margin-top: clamp(2.5rem, 5vw, 4rem); }

.map-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.1rem;
}

.map-embed {
  position: relative;
  height: 400px;
  border: 1px solid var(--border-d);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--anthracite);
  background-size: 44px 44px, 44px 44px, auto;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  text-align: center;
  padding: 2rem 1.5rem;
}

.map-placeholder p {
  max-width: 36rem;
  font-size: 0.9rem;
}

.map-pin {
  width: 2.4rem;
  height: 2.4rem;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 14. Stopka ---------- */

.site-footer {
  background: #0e1116;
  color: var(--muted-d);
  border-top: 1px solid var(--border-d);
  padding-top: clamp(2.8rem, 6vw, 4rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  max-width: 20rem;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 0.9rem;
}

.footer-col h3 + h3,
.footer-col p + h3,
.footer-col ul + h3 { margin-top: 1.6rem; }

.footer-col p { font-size: 0.92rem; }
.footer-col p + p { margin-top: 0.8rem; }

.footer-col a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-col a:hover, .footer-col a:focus-visible { color: var(--yellow); }

.footer-nav li { margin-bottom: 0.4rem; font-size: 0.92rem; }
.footer-nav a { color: var(--muted-d); }

/* Przycisk stylizowany na link (ustawienia cookies) */
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--muted-d);
  cursor: pointer;
  transition: color 0.15s ease;
}
.link-btn:hover, .link-btn:focus-visible { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid var(--border-d);
  padding: 1.3rem 0;
  font-size: 0.85rem;
}

/* ---------- 15. Przycisk "na górę" ---------- */

.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--on-yellow);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.8rem);
  transition: opacity 0.25s ease, transform 0.25s ease,
              visibility 0.25s ease, background 0.15s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { background: var(--yellow-hover); }

.to-top svg { width: 1.3rem; height: 1.3rem; }

/* ---------- 15a. Baner cookies ---------- */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 0.8rem);
  width: min(100% - 2rem, 64rem);
  z-index: 150;
  background: var(--anthracite);
  border: 1px solid var(--border-d);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  padding: 0.95rem 1.25rem;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted-d);
  max-width: 42rem;
}

.cookie-text strong { color: var(--white); }

.cookie-text a { color: var(--yellow); }

.cookie-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

@media (max-width: 40rem) {
  .cookie-banner { bottom: 0.5rem; padding: 1rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; text-align: center; }
  .map-embed { height: 300px; }
}

/* ---------- 16. Animacje pojawiania się ---------- */

/* Ukrywanie przed animacją tylko przy działającym JS (klasa .js na <html>),
   dzięki czemu bez JavaScriptu cała treść pozostaje widoczna. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Opóźnienia kaskadowe */
[data-reveal].d1,
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-delay="5"] { transition-delay: 0.40s; }

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

/* ---------- 17. Responsywność ---------- */

/* Większa skala typografii na mniejszych ekranach - poprawa czytelności.
   Skalujemy bazowy rem, więc proporcjonalnie rosną też teksty i odstępy.
   (rem w regułach media query pozostaje względem domyślnych 16px, więc
   progi nie tworzą pętli sprzężenia). */
@media (max-width: 56rem) {
  html { font-size: 106.25%; } /* ~17px */
}
@media (max-width: 40rem) {
  html { font-size: 112.5%; }  /* ~18px */
}

@media (max-width: 62rem) {
  /* Hero: diagram pod tekstem */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 34rem; margin-top: 0; align-self: auto; }

  .about-grid,
  .rail-layout,
  .contact-grid { grid-template-columns: 1fr; }

  /* Kolej: panel obszarów nie rozciąga się na całą szerokość po zwinięciu */
  .rail-panel { max-width: 34rem; }

  .advantages { grid-template-columns: 1fr 1fr; }
  .advantages li:last-child { grid-column: 1 / -1; }

  /* Proces: układ pionowy */
  .process { grid-template-columns: 1fr; gap: 1.6rem; }
  .process::before {
    top: 1.5rem;
    bottom: 1.5rem;
    left: 1.4rem;
    right: auto;
    width: 2px;
    height: auto;
  }
  .process-step {
    display: grid;
    grid-template-columns: 2.8rem 1fr;
    column-gap: 1.1rem;
  }
  .process-step h3 { grid-column: 2; }
  .process-step p { grid-column: 2; }
  .process-num { margin-bottom: 0; box-shadow: 0 0 0 6px var(--gray-100); }

  .areas-list { grid-template-columns: 1fr; }

  .standards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 56rem) {
  /* Nawigacja mobilna */
  .nav-toggle { display: inline-flex; }

  /* Nawigacja jest tu pozycjonowana absolutnie, więc kolejność w rzędzie
     ustawiamy jawnie: logo | ... | przełącznik | burger. */
  .lang-switch { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--graphite);
    border-bottom: 1px solid var(--border-d);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease, visibility 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 30rem;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem 1.25rem 1.2rem;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-d);
    border-radius: 0;
  }

  .site-nav a.nav-cta {
    margin: 0.9rem 0 0;
    border: 1.5px solid var(--yellow);
    border-radius: 6px;
    text-align: center;
  }
}

@media (max-width: 40rem) {
  .form-row { grid-template-columns: 1fr; }
  .advantages { grid-template-columns: 1fr; }
  .standards-grid { grid-template-columns: 1fr; }
  /* Karty w jednej kolumnie - unika sztywnych minimów minmax() na wąskich
     ekranach (po powiększeniu bazowego rem 17rem/15rem bywa szersze niż widok) */
  .cards-grid,
  .tech-grid,
  .value-grid { grid-template-columns: 1fr; }
  /* Na bardzo wąskich ekranach zmniejszamy logo, aby zmieściło się obok menu. */
  .site-header .logo-image { height: 1.95rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .cta-band-btn { width: 100%; text-align: center; }
  .to-top { right: 1rem; bottom: 1rem; }
}

/* ---------- 18. Strona prawna (polityka prywatności) ---------- */

.legal-back { margin-bottom: 1.4rem; }

.legal-back a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-l);
  text-decoration: none;
}
.legal-back a:hover,
.legal-back a:focus-visible { color: var(--text-dark); }

/* Tytuł na jasnym tle - nadpisuje domyślny biały kolor h1 */
.legal-title {
  color: var(--text-dark);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.legal { max-width: 52rem; }

.legal > * + * { margin-top: 0.95rem; }

.legal h2 {
  margin-top: 2.6rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--text-dark);
}
.legal h2:first-child { margin-top: 0; }

.legal p { color: var(--muted-l); }
.legal strong { color: var(--text-dark); }

.legal ul.legal-list {
  list-style: disc;
  padding-left: 1.25rem;
  max-width: 65ch;
  color: var(--muted-l);
}
.legal ul.legal-list li { margin-bottom: 0.45rem; }
.legal ul.legal-list li:last-child { margin-bottom: 0; }

.legal a {
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--yellow);
}
.legal a:hover,
.legal a:focus-visible { text-decoration-color: var(--text-dark); }

.legal code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--gray-100);
  border: 1px solid var(--border-l);
  border-radius: 4px;
  padding: 0.08em 0.4em;
}

.legal-updated {
  margin-top: 2.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-l);
  font-size: 0.85rem;
  color: var(--muted-l);
}

/* Adnotacja w angielskiej wersji polityki prywatności - wiążąca jest wersja
   polska. Element występuje wyłącznie w en/privacy-policy.html. */
.legal-notice {
  margin: 0 0 1.75rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--yellow);
  background: rgba(255, 210, 0, 0.07);
  font-size: 0.92rem;
  line-height: 1.6;
}
