/* NEST | arkusz stylów strony
   Struktura: tokeny > baza > układ > komponenty > sekcje > ruch */

/* ---------- Krój: Inter (zmienny, osie wght i opsz), hostowany lokalnie ----------
   Ten sam krój, z którego zbudowany jest logotyp. Licencja: assets/fonts/OFL.txt */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-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;
}

/* ---------- Tokeny ---------- */
:root {
  --paper: #F5F3EE;
  --ink: #15181D;
  --ink-2: #3E434A;
  --body: #4A4F56;
  --muted: #5A5F66;
  --line: #DAD6CC;
  --card-line: #E4E0D7;
  --field-line: #CFCAC0;
  --accent: #1E5B53;
  --accent-strong: #174A43;
  --tint: #E6ECE8;
  --mint: #8CC7B8;
  --on-dark: #EDEBE6;
  --on-dark-2: #C9CCD0;
  --on-dark-3: #A3A8AE;
  --dark-line: #2B3038;
  --error: #A3261C;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 20px;
  --header-h: 76px;
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
::selection { background: #CFE2DC; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-header--dark :focus-visible { outline-color: var(--mint); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- Układ ---------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 32px; }
.section { padding-block: 112px; }
.section--md { padding-block: 96px; }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--tint); }
.on-dark { background: var(--ink); color: var(--on-dark); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.section-head > :first-child { flex: 1 1 480px; min-width: 0; }
.section-head > p { flex: 0 1 420px; max-width: 440px; color: var(--muted); }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr)); }
.grid--tight { gap: 20px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > :first-child { flex: 1 1 380px; min-width: 0; }
.split > :last-child { flex: 1 1 460px; min-width: 0; }

@media (max-width: 720px) {
  .container { padding-inline: 20px; }
  .section, .section--md { padding-block: 80px; }
  .section--flush-top { padding-top: 0; }
}

/* ---------- Typografia ---------- */
/* Skala jak w logotypie: lekkie, zacieśnione nagłówki; przy dużych stopniach przeglądarka
   sama wybiera wersję "display" kroju (oś opsz), przy tekście wersję "text". */
.display-1, .display-2, .display-3, .display-4 { font-family: var(--sans); font-weight: 300; text-wrap: balance; }
.display-1 { max-width: 980px; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.035em; }
.display-1--sub { font-size: clamp(38px, 5vw, 66px); }
.display-2 { max-width: 680px; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.08; letter-spacing: -.03em; }
.display-3 { max-width: 760px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -.025em; font-weight: 350; }
.display-4 { max-width: 640px; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -.02em; font-weight: 350; }
p, li { text-wrap: pretty; }
.eyebrow { margin-bottom: 24px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-right: 12px; border-radius: 2px; background: currentColor; vertical-align: .3em; } /* belka jak w literze E logotypu */
.eyebrow--sm { margin-bottom: 16px; }
.on-dark .eyebrow { color: var(--mint); }
.lead { max-width: 680px; margin-top: 36px; font-size: 20px; color: var(--ink-2); }
.on-dark .lead { color: var(--on-dark-2); }
.mb-20 { margin-bottom: 20px; }
.mb-48 { margin-bottom: 48px; }
.mb-56 { margin-bottom: 56px; }

/* ---------- Nagłówek i nawigacja ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 238, .85);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: transform .35s var(--ease), box-shadow .3s;
}
.site-header--dark { background: rgba(21, 24, 29, .86); border-bottom-color: var(--dark-line); color: var(--on-dark); }
/* Po zjechaniu z góry strony delikatny cień; przy przewijaniu w dół nagłówek się chowa (main.js) */
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(21, 24, 29, .45); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; min-height: 44px; transition: opacity .25s; }
.logo img { display: block; width: auto; height: 28px; }
.logo:hover { opacity: .75; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav__link {
  padding: 12px 0; color: inherit; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 calc(100% - 8px); background-size: 0 1px;
  transition: background-size .35s var(--ease), color .2s;
}
.nav__link:hover { color: inherit; background-size: 100% 1px; }
.nav__link[aria-current="page"] { color: var(--accent); background-size: 100% 1px; }
.site-header--dark .nav__link[aria-current="page"] { color: var(--mint); }
.nav-toggle { display: none; }

/* Przełącznik języka: na komputerze sam skrót (PL/EN), pełna nazwa dla czytników ekranu i w menu mobilnym */
.nav__lang {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 30px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-decoration: none;
  transition: color .2s, border-color .2s;
}
.nav__lang:hover { color: var(--ink); border-color: var(--ink); }
.site-header--dark .nav__lang { border-color: var(--dark-line); color: var(--on-dark-3); }
.site-header--dark .nav__lang:hover { border-color: var(--on-dark); color: var(--on-dark); }
.nav__lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Podmenu (wzorzec disclosure): link prowadzi do strony zbiorczej, przycisk rozwija listę */
.nav__group { position: relative; display: flex; align-items: center; }
.nav__sub-toggle {
  display: inline-grid; place-items: center; width: 30px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer;
}
.nav__sub-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.nav__group.is-open .nav__sub-toggle svg { transform: rotate(180deg); }
.nav__sub { display: none; }
.nav__group.is-open > .nav__sub { display: block; }
.nav__sub ul { margin: 0; padding: 0; list-style: none; }
.nav__sub a { text-decoration: none; }
.nav__sub strong { display: block; font-weight: 500; }
.nav__sub li span { display: block; font-weight: 400; }

@media (min-width: 861px) {
  .nav__sub {
    position: absolute; top: 100%; left: -16px; z-index: 60; width: 340px; margin-top: 6px; padding: 8px;
    border: 1px solid var(--card-line); border-radius: 14px; background: #fff; color: var(--ink);
    box-shadow: 0 24px 48px -24px rgba(21, 24, 29, .35);
  }
  .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* mostek: kursor nie gubi panelu */
  .nav__sub li a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
  .nav__sub li a:hover, .nav__sub li a[aria-current="page"] { background: var(--tint); }
  .nav__sub strong { font-size: 15px; }
  .nav__sub li span { color: var(--muted); font-size: 13px; }
  .nav__sub-all { display: block; margin-top: 4px; padding: 12px 12px 6px; border-top: 1px solid var(--line); color: var(--accent); font-size: 14px; }
  .nav__sub-all:hover { color: var(--ink); }
}
@media (min-width: 861px) and (hover: hover) {
  .nav__group:hover > .nav__sub { display: block; }
  .nav__group:hover .nav__sub-toggle svg { transform: rotate(180deg); }
}
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .nav__sub { animation: sub-in .2s var(--ease); }
}

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; gap: 4px 20px; } /* bez JS menu po prostu się zawija */
  .js .nav-toggle {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    width: 48px; height: 48px; margin-right: -12px; padding: 0;
    border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  /* Menu mobilne na całą wysokość ekranu (pozycja względem nagłówka, który ma backdrop-filter) */
  .js .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain;
    display: none; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0;
    padding: 8px 20px 40px;
    background: var(--paper); border-top: 1px solid var(--line);
  }
  .js .site-header--dark .nav { background: var(--ink); border-top-color: var(--dark-line); }
  .js .nav.is-open { display: flex; }
  .js .nav .nav__link { padding: 16px 0; font-size: 20px; font-weight: 400; letter-spacing: -.01em; border-bottom: 1px solid var(--line); background-image: none; }
  .js .site-header--dark .nav .nav__link { border-bottom-color: var(--dark-line); }
  .js .nav__group { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .js .site-header--dark .nav__group { border-bottom-color: var(--dark-line); }
  .js .nav__group > .nav__link { flex: 1; border-bottom: 0; }
  .js .nav__sub-toggle { width: 48px; height: 48px; margin-right: -12px; }
  .js .nav__sub { flex-basis: 100%; padding: 0 0 14px 14px; border-left: 2px solid var(--accent); margin-bottom: 14px; }
  .js .nav__sub li a { display: block; padding: 10px 0; color: inherit; }
  .js .nav__sub strong { font-size: 17px; }
  .js .nav__sub li span { color: var(--muted); font-size: 14px; }
  .js .site-header--dark .nav__sub li span { color: var(--on-dark-3); }
  .js .nav__sub li a[aria-current="page"] strong { color: var(--accent); }
  .js .site-header--dark .nav__sub li a[aria-current="page"] strong { color: var(--mint); }
  .js .nav__sub-all { display: block; padding: 10px 0 0; color: var(--accent); font-size: 15px; }
  .js .site-header--dark .nav__sub-all { color: var(--mint); }
  .js .nav .nav__lang {
    order: 1; align-self: flex-start; gap: 10px; min-height: 44px; margin-top: 20px; padding: 0 16px;
    font-size: 13px;
  }
  .js .nav .nav__lang-name { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-weight: 400; letter-spacing: 0; font-size: 15px; }
  .js .nav .btn { margin-top: 24px; min-height: 52px; font-size: 16px; }
  html.nav-open { overflow: hidden; } /* blokada przewijania strony pod otwartym menu */
}

/* ---------- Przyciski i linki ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(21, 24, 29, .55); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); color: #fff; }
.btn--ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #000; color: var(--paper); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.link-arrow { display: inline-flex; gap: 6px; font-weight: 500; text-decoration: none; transition: gap .3s var(--ease); }
.link-arrow:hover { gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero--dark { background: var(--ink); color: var(--on-dark); }
/* Dwie warstwy tła o tej samej geometrii i masce: obraz (.hero__bg) i animowana sieć (.hero__canvas) */
.hero__bg, .hero__canvas {
  position: absolute; inset: -4% -4% -4% 18%; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 28%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 28%, #000 62%);
  pointer-events: none;
}
.hero__bg {
  --o-now: var(--o, .22);
  background: right center / cover no-repeat;
  opacity: var(--o-now);
}
.hero__bg--main { background-image: url("../img/hero-main.webp"); --o: .24; }
.hero__bg--software { background-image: url("../img/bg-software.webp"); --o: .2; }
.hero__bg--infra { background-image: url("../img/bg-infra.webp"); --o: .2; }
.hero__bg--cyber { background-image: url("../img/bg-cyber.webp"); --o: .3; }
.hero__bg--cyber-light { background-image: url("../img/bg-cyber-light.webp"); }
/* Animowana sieć (main.js): obraz pokazuje wtedy same poziomice, a węzły rysuje skrypt.
   --net-o to krycie sieci, color to kolor węzłów i linii (czytany przez main.js). */
.hero__canvas { --net-now: var(--net-o, .4); color: var(--accent); opacity: var(--net-now); }
.hero__canvas canvas { display: block; width: 100%; height: 100%; }
.hero--dark .hero__canvas { --net-o: .5; color: var(--mint); }
.hero__bg--main.is-live { background-image: url("../img/hero-main-topo.webp"); }
.hero__bg--software.is-live { background-image: url("../img/bg-software-topo.webp"); }
.hero__bg--infra.is-live { background-image: url("../img/bg-infra-topo.webp"); }
.hero__bg--cyber.is-live { background-image: url("../img/bg-cyber-topo.webp"); }
.hero__bg--cyber-light.is-live { background-image: url("../img/bg-cyber-light-topo.webp"); }
.hero__inner { padding-block: 128px 112px; }
.hero__split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 48px; padding-block: 104px 88px; }
.hero__split > div { flex: 1 1 560px; min-width: 0; }
.hero__split > .lead { flex: 1 1 340px; min-width: 0; margin-top: 0; font-size: 19px; }
.hero--dark .lead { color: var(--on-dark-2); }
.hero--dark .eyebrow { color: var(--mint); }

@media (max-width: 720px) {
  .hero__bg {
    --o-now: calc(var(--o, .22) * .66);
  }
  .hero__canvas { --net-now: calc(var(--net-o, .4) * .7); }
  .hero__bg, .hero__canvas {
    inset: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
    mask-image: linear-gradient(180deg, transparent, #000 60%);
  }
  .hero__inner { padding-block: 88px 80px; }
  .hero__split { padding-block: 80px 64px; }
}

/* Strefa tła na podstronach: warstwy obejmują hero i kolejną sekcję,
   wygaszają się w lewo (czytelne nagłówki) i w dół (gęsta treść). */
.hero-zone { position: relative; isolation: isolate; overflow: hidden; }
.hero-zone > .hero__bg, .hero-zone > .hero__canvas {
  inset: 0 -4% auto 18%;
  height: min(100%, 1400px);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 28%, #000 62%),
    linear-gradient(180deg, #000 0%, #000 32%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 28%, #000 62%),
    linear-gradient(180deg, #000 0%, #000 32%, transparent 100%);
  mask-composite: intersect;
}
.hero-zone > .hero__bg { --o: .16; background-position: right top; }
.hero-zone > .hero__canvas { --net-o: .3; }

@media (max-width: 720px) {
  .hero-zone > .hero__bg, .hero-zone > .hero__canvas {
    inset: 0 0 auto 0;
    height: min(100%, 1000px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 40%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 40%, transparent 100%);
    mask-composite: add;
  }
}

/* Strefa z podziałem (Cyberbezpieczeństwo): ciemne hero i jasna sekcja pod nim dzielą jedno tło.
   Wersja ciemna (w hero) i jasna (w strefie) mają identyczną ramkę, więc poziomice i sieć
   przechodzą przez krawędź bez przesunięcia, zmieniając tylko kolor. Ciemne hero zasłania jasną wersję. */
.hero-zone--split > .hero__bg, .hero-zone--split > .hero__canvas,
.hero-zone--split .hero > .hero__bg, .hero-zone--split .hero > .hero__canvas {
  inset: 0 -4% auto 18%;
  height: 1400px;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 28%, #000 62%),
    linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 28%, #000 62%),
    linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
  mask-composite: intersect;
}
.hero-zone--split .hero__bg { background-position: right top; }
.hero-zone--split .hero > .hero__bg { --o: .3; }

@media (max-width: 720px) {
  .hero-zone--split > .hero__bg, .hero-zone--split > .hero__canvas,
  .hero-zone--split .hero > .hero__bg, .hero-zone--split .hero > .hero__canvas {
    inset: 0 0 auto 0;
    height: 1000px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 45%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 45%, transparent 100%);
    mask-composite: add;
  }
}

/* Strona główna: tło hero przechodzi przez pasek z liczbami i wygasza się dopiero pod nim */
.hero-zone--main > .hero__bg, .hero-zone--main > .hero__canvas {
  inset: -2% -4% 0 18%;
  height: auto;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 28%, #000 62%),
    linear-gradient(180deg, #000 0%, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 28%, #000 62%),
    linear-gradient(180deg, #000 0%, #000 74%, transparent 100%);
  mask-composite: intersect;
}
.hero-zone--main > .hero__bg { --o: .24; background-position: right center; }
.hero-zone--main > .hero__canvas { --net-o: .4; }
@media (max-width: 720px) {
  .hero-zone--main > .hero__bg, .hero-zone--main > .hero__canvas {
    inset: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 72%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 72%, transparent 100%);
    mask-composite: add;
  }
}

/* Tło sekcji Kontakt: ta sama sieć na całej szerokości, przygaszona przy nagłówku */
.net-zone { position: relative; isolation: isolate; overflow: hidden; }
.contact-zone > .hero__bg, .contact-zone > .hero__canvas {
  inset: 0;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, #000 40%, #000 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, #000 40%, #000 100%);
}
.contact-zone > .hero__bg { --o: .22; background-position: center; }
.contact-zone > .hero__canvas { --net-o: .45; color: var(--mint); }
.hero__bg--contact { background-image: url("../img/bg-contact.webp"); }
.hero__bg--contact.is-live { background-image: url("../img/bg-contact-topo.webp"); }

/* ---------- Liczby ---------- */
.stats { border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; padding-block: 36px; }
.stat__value { font-size: 46px; font-weight: 300; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ---------- Karty ---------- */
/* Unoszenie kart po najechaniu tylko tam, gdzie je włączono (strona główna) */
.card--hover { transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.card--hover:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(21, 24, 29, .35); }
.card--hover:not(.card--dark):not(.card--accent):hover { border-color: var(--field-line); }
.card {
  display: flex; flex-direction: column; gap: 20px;
  padding: 40px 36px;
  background: #fff; border: 1px solid var(--card-line); border-radius: var(--radius);
}
.card--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.card--accent { justify-content: space-between; background: var(--accent); border-color: var(--accent); color: #fff; }
.card--compact { gap: 12px; padding: 32px; border-color: transparent; border-radius: 16px; }
.card--medium { gap: 16px; padding: 36px; }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__label { display: flex; align-items: center; gap: 14px; }
.card__num { font-size: 14px; font-weight: 500; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.card--dark .card__num { color: var(--on-dark-3); }
.card__title { font-size: 23px; font-weight: 500; line-height: 1.25; letter-spacing: -.018em; text-wrap: balance; }
.card--medium .card__title { font-size: 22px; }
.card--compact .card__title { font-size: 19px; line-height: 1.3; letter-spacing: -.012em; }
.card--accent .card__title { font-size: 24px; font-weight: 350; letter-spacing: -.02em; }
.card .card__tag { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.card p { color: var(--body); }
.card--compact > p:not(.card__tag) { font-size: 16px; }
.card--dark p { color: var(--on-dark-2); }
.card--accent p { color: #E3EEEA; }
.card > .link-arrow { margin-top: auto; padding-top: 12px; }
.card--dark .link-arrow { color: var(--mint); }
.card--dark .link-arrow:hover { color: #fff; }
.card--accent .btn { align-self: flex-start; }

.icon { width: 40px; height: 40px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--md { width: 36px; height: 36px; }
.icon--sm { width: 32px; height: 32px; }
.card--dark .icon, .on-dark .icon { stroke: var(--mint); }

.list { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; font-size: 16px; color: var(--ink-2); }
.list--roomy { gap: 8px; }
.list--sm { gap: 4px; font-size: 15px; color: var(--body); }
.card--dark .list { color: #DADDE0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips--end { margin-top: auto; padding-top: 8px; }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--tint); font-size: 13px; }
.list--cols { display: block; columns: 2 260px; column-gap: 40px; padding-left: 18px; color: var(--ink-2); font-size: 16px; }
.list--cols li { margin-bottom: 8px; break-inside: avoid; }

/* ---------- O mnie ---------- */
.about { display: flex; flex-wrap: wrap; gap: 32px 96px; align-items: flex-start; padding-top: 56px; border-top: 1px solid var(--ink); }
.about__head { flex: 0 1 340px; min-width: 0; }
.about__role { margin-top: 12px; color: var(--muted); }
.about__photo { display: block; width: 100%; max-width: 320px; height: auto; margin-top: 32px; border-radius: var(--radius); }
.about__text { flex: 1 1 520px; min-width: 0; max-width: 700px; display: flex; flex-direction: column; gap: 18px; }
.about__text p { color: var(--ink-2); font-size: 19px; line-height: 1.65; }

/* ---------- Sektory, kroki ---------- */
.ruled { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--ink); }
.ruled__item { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.ruled__item h3 { margin-bottom: 10px; font-size: 18px; font-weight: 600; }
.ruled__item p { color: var(--muted); font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px; padding: 0; list-style: none; }
.steps--ruled { gap: 0; border-top: 1px solid var(--ink); }
.steps--ruled .step { padding: 28px 28px 28px 0; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__num { font-size: 40px; font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps--ruled .step__num { font-size: 36px; }
.step h3 { font-size: 19px; font-weight: 600; }
.steps--ruled .step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 16px; }

/* ---------- Wiersze usług (Wdrożenia) ---------- */
.rows { border-top: 1px solid var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 24px 48px; padding-block: 44px; border-bottom: 1px solid var(--line); }
.row__head { flex: 1 1 360px; min-width: 0; display: flex; gap: 24px; }
.row__num { font-size: 14px; font-weight: 500; line-height: 2.2; letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.row__title { font-size: 25px; font-weight: 450; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.row__body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.row__body p { color: var(--body); }

/* ---------- Sytuacje klienta (Wdrożenia) ---------- */
.situations { border-top: 1px solid var(--ink); }
.situation { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px 64px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.section--tint .situation { border-bottom-color: #CFD8D2; }
.situation__quote { color: var(--ink); font-size: 21px; font-weight: 400; line-height: 1.4; letter-spacing: -.012em; text-wrap: balance; }
.situation__answer { color: var(--ink-2); }
@media (max-width: 760px) { .situation { grid-template-columns: 1fr; } }

/* ---------- Cyberbezpieczeństwo: NIS2, audyt, testy, FAQ ---------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 28px; margin: 0; padding: 0 0 0 28px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: #B9C9C1; }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 11px; height: 11px; border: 2px solid var(--accent); border-radius: 50%; background: var(--tint); }
.timeline__date { margin-bottom: 4px; color: var(--accent); font-weight: 600; }
.timeline__item p:not(.timeline__date) { color: var(--ink-2); }

.deadlines { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid #B9C9C1; }
.deadlines dt { font-size: 34px; font-weight: 300; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.deadlines dd { max-width: 130px; margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.audit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 40px 80px; padding-top: 32px; border-top: 1px solid var(--ink); }
.audit .stack__cat { margin-bottom: 16px; }
.audit__stages { display: flex; flex-direction: column; gap: 10px; padding-left: 22px; color: var(--ink-2); }
.audit__stages li::marker { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.audit__scale-title { margin-top: 36px; }
.scale { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.scale li { display: inline-flex; align-items: center; gap: 8px; }
.scale__dot { width: 10px; height: 10px; border-radius: 50%; }
.scale__dot--ok { background: var(--accent); }
.scale__dot--part { background: #C9A227; }
.scale__dot--bad { background: var(--error); }
.scale__dot--none { background: transparent; border: 2px solid var(--error); }
.scale__dot--na { background: #B9C0C6; }
.audit__outputs { display: flex; flex-direction: column; padding: 0; list-style: none; }
.audit__outputs li { padding-block: 14px; border-bottom: 1px solid #CFD8D2; }
.audit__outputs li:first-child { padding-top: 0; }
.audit__outputs strong { display: block; font-weight: 500; }
.audit__outputs span { color: var(--muted); font-size: 15px; }

.pentest { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.pentest__col { padding: 36px; border-radius: var(--radius); background: #fff; }
.pentest__title { margin-bottom: 16px; font-size: 21px; font-weight: 500; letter-spacing: -.015em; }
.pentest__note { margin-bottom: 12px; color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .pentest__col { padding: 28px 22px; } }

.faq { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative; display: block; padding: 20px 44px 20px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 500; letter-spacing: -.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.faq__item summary:hover { color: var(--accent); }
.faq__item p { max-width: 640px; padding-bottom: 22px; color: var(--ink-2); }

/* ---------- Podstrony usług: okruszki, przebieg, tabele, kolumny, powiązane ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #A9AEB4; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.process { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); counter-reset: step; }
.process li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 16px; padding-block: 18px; border-bottom: 1px solid var(--line); counter-increment: step; }
.process li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; color: var(--accent); font-size: 14px; font-weight: 500; letter-spacing: .08em; line-height: 1.9; font-variant-numeric: tabular-nums; }
.process strong { font-weight: 500; }
.process span { color: var(--muted); font-size: 15px; }
.section--tint .process li { border-bottom-color: #CFD8D2; }

.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.prose-block + .table-wrap { margin-top: 36px; }
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.table th, .table td { padding: 16px 28px 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.table td { color: var(--ink-2); }
.table td:first-child { color: var(--ink); font-weight: 500; }
.section--tint .table th, .section--tint .table td { border-bottom-color: #CFD8D2; }
.table-note { margin-top: 14px; color: var(--muted); font-size: 14px; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px 56px; }
.cols h3 { margin-bottom: 14px; font-size: 20px; font-weight: 500; letter-spacing: -.015em; }
.cols p, .cols li { color: var(--ink-2); }
.cols p + p, .cols p + ul, .cols ul + p { margin-top: 12px; }

.prose-block { max-width: 760px; }
.prose-block p { color: var(--ink-2); font-size: 18px; }
.prose-block p + p { margin-top: 14px; }
.callout { margin-top: 28px; padding: 24px 28px; border-left: 2px solid var(--accent); background: rgba(255, 255, 255, .6); }
.callout strong { display: block; margin-bottom: 6px; font-weight: 600; }
.callout p { color: var(--ink-2); font-size: 16px; }

.more-link { margin-top: 32px; font-size: 17px; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 48px; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.related a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 19px; letter-spacing: -.01em; text-decoration: none; }
.related a span { color: var(--accent); transition: transform .3s var(--ease); }
.related a:hover { color: var(--accent); }
.related a:hover span { transform: translateX(6px); }

/* ---------- Realizacja (blok wyróżniony) ---------- */
.feature { display: flex; flex-wrap: wrap; gap: 48px; padding: 64px 56px; border-radius: 24px; background: var(--ink); color: var(--on-dark); }
.feature + .feature { margin-top: 24px; }
.feature--light { background: #fff; color: var(--ink); border: 1px solid var(--card-line); }
.feature__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.feature__text p { color: var(--on-dark-2); }
.feature--light .feature__text p { color: var(--body); }
.feature .eyebrow { margin-bottom: 0; color: var(--mint); }
.feature--light .eyebrow { color: var(--accent); }
.feature a { color: var(--mint); font-weight: 500; }
.feature a:hover { color: #fff; }
.feature--light a { color: var(--accent); }
.feature--light a:hover { color: var(--ink); }
.feature .chip { background: rgba(255, 255, 255, .08); color: var(--on-dark); }
.feature--light .chip { background: var(--tint); color: var(--ink); }
.feature__list { flex: 1 1 360px; min-width: 0; padding: 0; list-style: none; border-top: 1px solid var(--dark-line); }
.feature__list li { padding: 14px 0; border-bottom: 1px solid var(--dark-line); }
.feature--light .feature__list, .feature--light .feature__list li { border-color: var(--card-line); }
@media (max-width: 720px) { .feature { padding: 40px 24px; } }

/* ---------- Dokumenty (Wdrożenia) ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; padding: 0; list-style: none; }
.doc { padding: 24px; background: #fff; border-radius: 14px; }
.doc strong { display: block; margin-bottom: 6px; font-weight: 600; }
.doc span { color: var(--muted); font-size: 15px; }

/* ---------- Pas technologii ---------- */
.stack { border-top: 1px solid var(--ink); }
.stack__group { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 12px 48px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.stack__cat { color: var(--accent); font-size: 13px; font-weight: 500; letter-spacing: .14em; line-height: 1.9; text-transform: uppercase; }
.stack__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px 48px; padding: 0; list-style: none; }
.stack__items strong { display: block; font-weight: 500; }
.stack__items span { display: block; color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .stack__group { grid-template-columns: 1fr; } }

/* ---------- Wezwanie do działania (koniec podstron) ---------- */
.cta-panel { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px 64px; padding: 72px 64px; border-radius: 24px; }
.cta-panel > .hero__bg, .cta-panel > .hero__canvas {
  inset: 0;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .6) 40%, #000 75%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .6) 40%, #000 75%);
}
.cta-panel > .hero__bg { --o: .2; background-position: center; }
.cta-panel > .hero__canvas { --net-o: .5; color: var(--mint); }
.cta-panel__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cta-panel__text .eyebrow { margin-bottom: 0; }
.cta-panel__text > p:not(.eyebrow) { max-width: 560px; color: var(--on-dark-2); }
@media (max-width: 720px) { .cta-panel { padding: 48px 24px; } }

/* ---------- Kontakt i formularz ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 64px; }
.contact__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact__intro .eyebrow { margin-bottom: 0; }
.contact__intro > p { max-width: 440px; color: var(--on-dark-2); }

/* Oś "co dalej" */
.next-steps { display: flex; flex-direction: column; margin-top: 16px; padding: 0; list-style: none; }
.next-step { position: relative; display: flex; gap: 20px; padding-bottom: 28px; }
.next-step:last-child { padding-bottom: 0; }
.next-step::before {
  content: ""; position: absolute; left: 19.5px; top: 46px; bottom: 6px; width: 1px;
  background: linear-gradient(rgba(140, 199, 184, .6), rgba(140, 199, 184, .08));
}
.next-step:last-child::before { display: none; }
.next-step__num {
  flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid rgba(140, 199, 184, .45); border-radius: 50%;
  background: rgba(21, 24, 29, .7); color: var(--mint); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.next-step:hover .next-step__num { transform: scale(1.06); background: var(--mint); border-color: var(--mint); color: var(--ink); }
.next-step h3 { margin: 7px 0 4px; color: var(--on-dark); font-size: 17px; font-weight: 600; }
.next-step p { max-width: 380px; color: var(--on-dark-2); font-size: 15px; }

/* Dane firmy */
.contact__card {
  display: flex; gap: 16px; max-width: 440px; margin-top: 16px; padding: 24px;
  border: 1px solid var(--dark-line); border-radius: 16px;
  background: rgba(21, 24, 29, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--on-dark-2); font-size: 16px; font-style: normal; line-height: 1.7;
}
.contact__card strong { color: var(--on-dark); font-weight: 600; }
.contact__card .link-arrow { display: flex; width: fit-content; margin-top: 10px; color: var(--mint); }
.contact__card .link-arrow:hover { color: #fff; }

.contact__panel {
  flex: 1 1 460px; min-width: 0; padding: 40px; border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .04);
}
@media (max-width: 600px) { .contact__panel { padding: 28px 20px; } }


.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--field-line); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field select { padding-inline: 12px; }
.field textarea { min-height: 140px; padding-block: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 91, 83, .18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 14px; }
.consent { display: flex; align-items: flex-start; gap: 12px; color: var(--body); font-size: 14px; cursor: pointer; }
.consent input { flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.form .btn { align-self: flex-start; }
.form__status { color: var(--error); font-size: 15px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 0; text-align: center; }
.form-success:focus { outline: none; }
.form-success .icon { width: 56px; height: 56px; }
.form-success h3 { font-size: 26px; font-weight: 400; letter-spacing: -.02em; }
.form-success p { max-width: 360px; color: var(--body); }
.form-success .form-success__note { color: var(--muted); font-size: 14px; }

.field textarea::placeholder { color: #6B7077; }

/* Temat zapytania jako "pigułki" (radio) */
.field.topics { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.topics legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 500; }
.topics__list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { position: relative; cursor: pointer; }
.topic input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.topic span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--field-line); border-radius: 999px; background: #fff; font-size: 15px;
  transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease);
}
.topic:hover span { transform: translateY(-1px); border-color: var(--accent); }
.topic input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.topic input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Przycisk wysyłki: strzałka i spinner */
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn__spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn--send.is-loading .btn__icon { display: none; }
.btn--send.is-loading .btn__spinner { display: block; }

/* Potwierdzenie: znaczek rysuje się po wysłaniu */
.check-draw circle { stroke-dasharray: 64; }
.check-draw polyline { stroke-dasharray: 13; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Strona prawna (polityka prywatności) ---------- */
.legal { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 80px; }
.legal__toc { flex: 0 1 260px; position: sticky; top: calc(var(--header-h) + 32px); }
.legal__toc-title { margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.legal__toc ol { display: flex; flex-direction: column; gap: 2px; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.legal__toc a {
  display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 2px solid transparent;
  color: var(--muted); font-size: 15px; text-decoration: none; transition: color .2s, border-color .2s;
}
.legal__toc a:hover { color: var(--ink); }
.legal__toc a[aria-current="true"] { border-left-color: var(--accent); color: var(--accent); font-weight: 500; }
.legal__body { flex: 1 1 560px; min-width: 0; max-width: 720px; }
.legal__section { padding-block: 8px 40px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__section + .legal__section { padding-top: 40px; border-top: 1px solid var(--line); }
.legal__section h2 { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; font-size: 26px; font-weight: 400; line-height: 1.25; letter-spacing: -.02em; }
.legal__num { color: var(--accent); font-size: 14px; font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.legal__section p, .legal__section li { color: var(--ink-2); }
.legal__section p + p, .legal__section ul + p, .legal__section p + ul { margin-top: 16px; }
.legal__section ul { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; }
.legal__section strong { color: var(--ink); font-weight: 600; }
.legal__date { display: block; margin-top: 16px; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .legal__toc { position: static; flex-basis: 100%; }
}

/* ---------- Stopka ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--on-dark-3); font-size: 15px; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 199, 184, .55) 30%, rgba(140, 199, 184, .55) 70%, transparent);
}
.site-footer :focus-visible { outline-color: var(--mint); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; padding-block: 72px 56px; }
.footer-brand { flex: 1 1 320px; max-width: 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand .logo img { height: 26px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.footer-title { margin-bottom: 14px; color: var(--mint); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.footer-cols ul { display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.flink {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px;
  transition: background-size .35s var(--ease), color .2s;
}
.flink:hover { background-size: 100% 1px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 24px 32px; border-top: 1px solid var(--dark-line); font-size: 14px; }
.footer-bottom__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.to-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }
@media (max-width: 720px) { .footer-top { padding-block: 56px 40px; } }

/* ---------- Ruch ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bg-in { from { opacity: 0; } to { opacity: var(--o-now); } }
@keyframes net-in { from { opacity: 0; } to { opacity: var(--net-now); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sub-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes draw-64 { from { stroke-dashoffset: 64; } to { stroke-dashoffset: 0; } }
@keyframes draw-13 { from { stroke-dashoffset: 13; } to { stroke-dashoffset: 0; } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-2.5%, 1.5%, 0) scale(1.05); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .rise { animation: rise .9s var(--ease) both; }
  .d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .28s; } .d4 { animation-delay: .4s; }
  .hero__bg { animation: bg-in 1.6s ease-out both, drift 38s ease-in-out 1.6s infinite alternate; }
  .hero__bg.is-live { animation: bg-in 1.6s ease-out both; } /* ruch daje sieć, bez dryfu całej warstwy */
  .hero__canvas { animation: net-in 1.8s ease-out .2s both; }
  .form-success:not([hidden]) { animation: rise .6s var(--ease) both; }
  .form-success:not([hidden]) .check-draw circle { animation: draw-64 .7s var(--ease) .1s both; }
  .form-success:not([hidden]) .check-draw polyline { animation: draw-13 .4s var(--ease) .65s both; }
  /* Elementy .reveal ukrywamy tylko, gdy działa JS (main.js odsłania je przy przewijaniu) */
  .js .reveal { opacity: 0; }
  .js .reveal.is-visible { animation: rise .8s var(--ease) calc(var(--d, 0) * 80ms) both; }
}
