/* ==========================================================================
   Baltiq Media - landing jednoekranowy na pełnym wideo.
   Geometria i choreografia wg dostarczonej specyfikacji; treść i fonty
   własne (Inter + Doto self-host, licencje OFL - bez pirackich CDN-ów).
   ========================================================================== */

/* Inter: UI, wagi 400/500/600, latin + latin-ext dla polskich znaków */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-ext-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-ext-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-ext-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Doto: retro dot-matrix na nagłówek i glify statystyk (OFL, self-host) */
@font-face {
  font-family: "Doto";
  src: url("fonts/doto-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Doto";
  src: url("fonts/doto-latin-ext-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #97a3b6;
  --nav-text: #2e2e2e;
  --pill-dark: #232a37;
  --sign-in-text: #c6cdd9;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #232a37;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c3cad6;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Doto", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; background: #061223; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  /* Tło siedzi na <html>, body jest przezroczyste: globalna warstwa świateł
     (body::before, z-index -1) ląduje w ujemnej warstwie roota i musi mieć
     pod sobą tło roota, nie nieprzezroczyste tło body - inaczej ginie. */
  position: relative;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ZWYCZAJNE ROZJAŚNIENIE BOKÓW: dwa jednolite gradienty liniowe od krawędzi
   ku środkowi, równe na całej wysokości dokumentu. Środkowy przystanek daje
   miękkie, nieliniowe wygaszenie, a ziarno (body::after) rozprasza banding. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to right, rgb(235 242 252 / 0.07), rgb(235 242 252 / 0.025) 8%, transparent 18%),
    linear-gradient(to left,  rgb(235 242 252 / 0.07), rgb(235 242 252 / 0.025) 8%, transparent 18%);
}
@media (max-width: 720px) {
  body::before {
    background:
      radial-gradient(120% 26vh at 50% 0%,   rgb(255 255 255 / 0.09), transparent 72%),
      linear-gradient(to right, rgb(235 242 252 / 0.06), rgb(235 242 252 / 0.02) 12%, transparent 26%),
      linear-gradient(to left,  rgb(235 242 252 / 0.06), rgb(235 242 252 / 0.02) 12%, transparent 26%),
      radial-gradient(120% 26vh at 50% 100%, rgb(255 255 255 / 0.07), transparent 72%);
  }
}

/* Film grain nad całością: fixed + pointer-events none, jedna tekstura SVG.
   Większe ziarno (niższa częstotliwość, większy kafel) i wyższe krycie:
   hałas ma być wyczuwalny, to on niesie całą fakturę strony. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.skip {
  position: fixed; left: 50%; top: 0; z-index: 90;
  transform: translate(-50%, -120%);
  background: #fff; color: #000;
  padding: .6rem 1.2rem; border-radius: 0 0 12px 12px;
  font-weight: 600; text-decoration: none;
  transition: transform .2s ease;
}
.skip:focus { transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 999px; }

/* ── Rama hero: wideo żyje w obrębie pierwszego ekranu ───────────────────── */
.hero-frame {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  /* Bez overflow:hidden (relikt po wideo): przycinał łuny świateł
     wychodzące poza pudełko ramy ostrą, widoczną krawędzią. */
}
/* Hero w wariancie gradientowym: rama jest przezroczysta (kręgosłup z body
   prześwituje), a kolor wchodzi dwiema kątowymi nakładkami, które wygasają
   do przezroczystości przed dolną krawędzią - stąd zero szwu z sekcjami. */
/* Hero: rama bez własnego tła - jednolita szarość strony przechodzi przez
   hero i sekcje bez żadnego momentu przejścia. Element zostaje jako dok
   dla wideo, gdy wróci. */
.bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
/* Reguły wideo zostają na powrót animacji (markup dziś ich nie używa) */
.bg-video, .bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}
.bg.is-fallback .bg-video, .bg.is-fallback .bg-img { display: none; }
.bg video ~ .bg-img { display: none; }
.bg.is-fallback video ~ .bg-img { display: block; }
@media (prefers-reduced-motion: reduce) {
  .bg video ~ .bg-img { display: block; }
}

/* ── Kompozycja hero ─────────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(clamp(16px, 2.4vh, 28px) + clamp(60px, 8vh, 76px)) clamp(14px, 3vw, 32px) clamp(16px, 2.4vh, 28px);
}

/* ── Header: stały, pływające pigułki bez belki ──────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  padding: clamp(12px, 2vh, 22px) clamp(14px, 3vw, 32px) 0;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: none;
}
.site-header__in {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
}
.site-header a, .site-header button { pointer-events: auto; }

.logo-btn {
  flex: none;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  transition: transform .25s ease;
}
.logo-btn:hover { transform: scale(1.04); }
.logo-btn img { width: 72%; height: 72%; object-fit: contain; }

.nav-pill {
  flex: 1;
  max-width: 430px;
  height: clamp(44px, 5.2vw, 48px);
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.nav-pill a {
  position: relative;
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  padding: 6px 10px;
  opacity: 0.5;
  transition: opacity .25s ease;
}
.nav-pill a:hover { opacity: 0.75; }
.nav-pill a.is-active { opacity: 1; }
/* Trzy kropki 3x3 pod aktywną pozycją */
.nav-pill a.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 5px;
  width: 3px; height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.signin {
  flex: none;
  height: clamp(44px, 5.2vw, 48px);
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(16px, 2vw, 22px);
  background: var(--pill-dark);
  color: var(--sign-in-text);
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.signin:hover { background: #2d3547; color: #fff; transform: translateY(-1px); }

.burger {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--pill-dark);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  box-shadow: var(--nav-shadow);
  transition: background-color .3s ease;
}
.burger i {
  display: block;
  width: 18px; height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background-color .3s ease;
}
.burger[aria-expanded="true"] { background: #fff; }
.burger[aria-expanded="true"] i { background: #000; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Wiersz zaufania: trzy nakładające się znaczki portali + pigułka */
.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}
.avatar {
  position: relative;
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
  transition: transform .35s ease;
}
.avatar img {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.a1 { z-index: 1; }
.a2 { z-index: 2; margin-left: calc(var(--trust-size) * -0.42); }
.a3 { z-index: 4; margin-left: calc(var(--trust-size) * -0.42); }
.trust:hover .a1 { transform: translateY(-2px); }
.trust:hover .a2 { transform: translateY(-4px); }
.trust:hover .a3 { transform: translateY(-2px); }

.trust-pill {
  height: var(--trust-size);
  display: inline-flex;
  align-items: center;
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: calc(var(--trust-size) * 0.42);
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  color: var(--trust-text);
  white-space: nowrap;
}

/* Nagłówek: dot-matrix, czysta biel, dwa wiersze bez łamania */
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.hl-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--hd, 0s);
}

.subhead {
  max-width: min(500px, 92%);
  margin-top: clamp(14px, 2.2vh, 22px);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
  color: #ccd5e2;
  opacity: 0.8;
}

.cta {
  margin-top: clamp(18px, 3vh, 28px);
  display: inline-flex;
  align-items: center;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 30px rgba(255, 255, 255, 0.45),
    0 0 60px rgba(255, 255, 255, 0.18);
}

/* ── Stopka statystyk ────────────────────────────────────────────────────── */
.stats {
  flex-shrink: 0;
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  padding-top: clamp(10px, 2vh, 18px);
}
.stat {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}
.stat-icon {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 33px);
  color: #fff;
  line-height: 1;
}
.stat-value {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.stat-label {
  font-size: clamp(11px, 1.2vw, 12.5px);
  color: var(--muted);
}

/* ── Sekcje pod hero: żyją w nurcie kręgosłupa gradientu ─────────────────── */
.sec {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  padding: clamp(110px, 16vw, 200px) clamp(14px, 3vw, 32px) 0;
}
/* Neonowe światełka w NIEREGULARNYCH miejscach. Małe łuny na skraju strony
   (środek radiala tuż za krawędzią viewportu), ale bez rytmu "jedna na szew":
   klaster dwóch w hero, pojedyncze na różnych wysokościach kolejnych sekcji,
   celowa ciemna przerwa na procesie. Pseudo ma zapas 25vh nad i pod pudełkiem
   sekcji, żeby łuna mogła miękko przelewać się przez granice bez ucięcia.
   Uwaga architektoniczna: sekcje mają isolation, bo pseudo z z-index -1 bez
   własnego stacking contextu spada do warstwy ujemnej roota i ginie POD
   nieprzezroczystym tłem body. */
.sec, .cta-sec, .hero-frame { isolation: isolate; }
.sec::before, .cta-sec::before, .hero-frame::after {
  content: "";
  position: absolute;
  top: -25vh;
  height: calc(100% + 50vh);
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: var(--lights, none);
}
/* Ostatnia sekcja: zapas pseudo tylko W GÓRĘ. Zapas w dół wystawał za
   stopkę i rozciągał scrollowalny dokument (absoluty powiększają obszar
   przewijania) - stąd "czarny ekran pod footerem". */
.cta-sec::before { height: calc(100% + 25vh); }

/* Światła: chaotyczne wycieki zamiast regularnych elips. Każde światło to
   zlepek kilku nakładających się plam - główna łuna, wąska pionowa smuga
   przesunięta względem niej, mały gorący punkt przy krawędzi i szeroka
   ciemniejsza przeciwwaga, każda w innej temperaturze tej samej barwy.
   Rozmieszczenie nieregularne: klaster w hero, przerwa na procesie. */
/* DESKTOP: pełne świetlne szpalery wzdłuż OBU krawędzi. Chaotyczne zlepki
   ciągną się przez całą wysokość każdej sekcji (z przelewem przez zapas
   pseudo), barwy przepływają w dół strony: błękit/aqua -> fiolet ->
   magenta -> przygaszone -> błękit. Jasne węzły i ciemniejsze odcinki
   naprzemiennie, żeby szpaler nie zrobił się jednolitą taśmą. */
/* Konstrukcja głębokiego zasięgu: elipsy 28-46% szerokości viewportu ze
   środkami przy krawędziach i zanikami ~70% => każde światło realnie gaśnie
   ok. 30-35% od swojej krawędzi. Wspólny punkt zaniku = spójna pionowa
   granica, za którą zostaje czysty szary. Dużo plam, niskie krycia
   pojedynczych warstw - suma pozostaje lekkim akcentem. */
/* Sekcyjne --lights wylaczone: swiatla malowane globalnie na body::before,
   zeby zadna struktura sekcji nie byla widoczna w tle. Pseudoelementy sekcji
   zostaja uspione (--lights: none) na wypadek powrotu akcentow. */


.sec-head {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 44px);
}
.sec-head h2, .headline-2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4.4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}
.sec-head p {
  color: #ccd5e2;
  opacity: 0.8;
  max-width: 56ch;
  line-height: 1.55;
  font-size: clamp(14px, 1.5vw, 16.5px);
}

.label-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--trust-text);
}

/* Wejścia przy scrollu: subtelne, jak reszta języka */
.r {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(0.22, 1, 0.36, 1), transform .7s cubic-bezier(0.22, 1, 0.36, 1);
}
.r.in { opacity: 1; transform: translateY(0); }

/* Karty usług */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.card {
  position: relative;
  isolation: isolate;
  min-height: 200px;
  background: rgb(13 26 48 / 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.card:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-3px); }
.card--full { grid-column: span 2; min-height: 0; }
.card__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.5;
}
.card--img::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(3, 9, 20, 0.35), rgba(4, 11, 24, 0.88));
}
/* Glow w gradiencie przy dolnej krawędzi kart: wspólny dla usług,
   realizacji i kroków, wygasa wewnątrz karty (nic nie wycieka na tło) */
.card::before, .kroki li::before, .praca::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(88% 60% at 50% 108%, rgb(190 212 245 / 0.1), transparent 72%);
}
.kroki li, .praca { position: relative; isolation: isolate; }

.card__body {
  position: relative;
  height: 100%;
  padding: clamp(20px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.card p { color: #ccd5e2; opacity: 0.8; font-size: 14.5px; line-height: 1.55; max-width: 52ch; }

/* Realizacje */
.prace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.praca {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.2vw, 24px) clamp(18px, 2.2vw, 24px) 0;
  background: rgb(13 26 48 / 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .3s ease, transform .3s ease;
}
.praca:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-3px); }
.tag {
  align-self: flex-start;
  padding: 5px 12px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--trust-text);
  margin-bottom: 12px;
}
.praca h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.praca p { color: #ccd5e2; opacity: 0.8; font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; }
.praca figure {
  margin: auto -1px -1px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
}
.praca figure img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.praca:hover figure img { transform: scale(1.03); }

/* Kroki */
.kroki {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.kroki li {
  padding: clamp(20px, 2.6vw, 28px);
  background: rgb(13 26 48 / 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}
.kroki__n {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
}
.kroki h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.kroki p { color: #ccd5e2; opacity: 0.8; font-size: 14px; line-height: 1.55; }

/* Kontakt */
.cta-sec {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  padding: clamp(120px, 17vw, 220px) clamp(14px, 3vw, 32px);
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.cta-sec > p { color: #ccd5e2; opacity: 0.8; max-width: 48ch; line-height: 1.55; }
.cta-ops { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }
/* Obie pigułki w jednej geometrii: różne komponenty (CTA + signin użyty jako
   przycisk) miały różne wysokości i padding, przez co para się rozjeżdżała. */
.cta-ops .cta,
.cta-ops .signin {
  height: 48px;
  margin: 0; /* .cta dziedziczy margin-top z hero; tu odstęp robi rodzic */
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cta-mail a {
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
}
.cta-mail a:hover { color: #fff; }

/* Stopka */
.ftr { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ftr__in {
  max-width: 1080px;
  margin-inline: auto;
  padding: 22px clamp(14px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.logo-btn--sm { width: 40px; height: 40px; }
.ftr__links { display: flex; flex-wrap: wrap; gap: 20px; }
.ftr__links a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}
.ftr__links a:hover { color: #fff; }
.ftr__legal { font-size: 12.5px; color: var(--muted); }

/* Stopka na mobile: logo na osi, pod nim siatka 3x2 z linkami, legalka
   na dole. Sześć linków = pełne dwie trójki, bez sierot w ostatnim rzędzie. */
@media (max-width: 720px) {
  .ftr__in {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding-top: 32px;
    padding-bottom: 30px;
  }
  .ftr__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 14px;
    column-gap: 8px;
    width: 100%;
    max-width: 340px;
  }
  .ftr__links a { font-size: 14px; text-align: center; }
}

/* ── Menu mobilne ────────────────────────────────────────────────────────── */
.menu-overlay {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}
.mobile-menu {
  position: fixed;
  left: clamp(14px, 4vw, 24px);
  right: clamp(14px, 4vw, 24px);
  top: 86px;
  z-index: 30;
  background: #fff;
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu a {
  position: relative;
  display: block;
  text-align: center;
  padding: 13px 10px 15px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  border-radius: 14px;
  opacity: 0;
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.08s + var(--i) * 0.05s);
}
.mobile-menu a:hover { background: rgba(0, 0, 0, 0.04); }
.mobile-menu a.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 8px;
  width: 3px; height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}
.mobile-menu .mobile-signin {
  margin-top: 8px;
  background: var(--pill-dark);
  color: #fff;
  border-radius: 999px;
}
.mobile-menu .mobile-signin:hover { background: #323234; }

/* ── Animacje wejścia ────────────────────────────────────────────────────── */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
.anim-pulse {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: revealPulse 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes revealPulse {
  0%   { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  62%  { opacity: 1; transform: translateY(-2px) scale(1.03); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes headlineFade {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes linkIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Breakpointy ─────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-pill, .site-header .signin { display: none; }
  .site-header__in { justify-content: space-between; max-width: none; }
  .logo-btn { width: 48px; height: 48px; }
  .burger[hidden] { display: grid; } /* JS zdejmuje hidden; fallback gdy JS wystartuje później */
  .headline { letter-spacing: -0.08em; line-height: 1.05; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .cards, .prace, .kroki { grid-template-columns: 1fr; }
  .card--full { grid-column: span 1; }
}
@media (min-width: 721px) {
  .burger { display: none !important; }
  .menu-overlay, .mobile-menu { display: none !important; }
}
@media (max-width: 420px) {
  .trust { --trust-size: 34px; }
  .trust-pill { font-size: 12px; }
  .headline { letter-spacing: -0.09em; line-height: 1.04; }
}
@media (max-height: 700px) {
  .trust { margin-bottom: 12px; }
  .subhead { margin-top: 10px; }
  .cta { margin-top: 14px; }
}

/* ── Ograniczony ruch ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .site-header, .anim, .anim-pulse, .hl-line,
  .menu-overlay, .mobile-menu, .mobile-menu a {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .bg-video { display: none; }
  .bg::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(60% 80% at 50% 20%, rgba(255,255,255,.08), transparent 70%);
  }
}
