/* =============================================================================
   2M SYSTEM — arkusz główny
   Granat + zieleń z logotypu (#00CC00). Bez frameworka CSS: cała warstwa
   wizualna to tokeny + kilkanaście komponentów, więc nic nie ładuje się na zapas.
   ========================================================================== */

/* --- tokeny ---------------------------------------------------------------
   Nazwy opisują rolę, nie kolor, bo ta sama reguła obsługuje oba motywy.
   :root to komplet palety jasnej. Motyw ciemny nadpisuje TYLKO tokeny —
   raz dla ustawienia systemowego, raz dla ręcznego wyboru przełącznikiem.   */
:root {
  color-scheme: light dark;

  --bg:         #f6f7f4;
  --surface:    #ffffff;
  --surface-2:  #eef1ec;
  --surface-3:  #e4e8e2;
  --surface-4:  #d7ddd5;

  --ink:        #0b1622;
  --ink-2:      #3f4d5a;
  --ink-3:      #6a7885;
  --ink-4:      #8b97a2;

  --line:       rgba(11, 22, 34, .11);
  --line-2:     rgba(11, 22, 34, .19);

  /* Zieleń z logotypu. --green wypełnia, --green-bright pisze: pełne #00CC00
     na białym ma za mały kontrast do tekstu, więc do pisma idzie ciemniejsza. */
  --green:        #00cc00;
  --green-bright: #0a7d22;
  --green-deep:   #067016;
  --green-soft:   rgba(0, 204, 0, .10);
  --green-line:   rgba(10, 125, 34, .30);
  --on-green:     #032003;

  --hero-ink:     #ffffff;
  --hero-ink-2:   #c9d3de;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* Skala typografii — clamp() zamiast punktów granicznych, płynnie od 320 px. */
  --t-hero:  clamp(2.6rem, 7.2vw, 6.2rem);
  --t-h1:    clamp(2.1rem, 5vw, 3.9rem);
  --t-h2:    clamp(1.6rem, 3.4vw, 2.7rem);
  --t-h3:    clamp(1.15rem, 2vw, 1.5rem);
  --t-lead:  clamp(1.02rem, 1.5vw, 1.28rem);
  --t-body:  1rem;
  --t-small: 0.875rem;
  --t-micro: 0.75rem;

  --gutter:   clamp(1.25rem, 5vw, 4rem);
  --section:  clamp(4rem, 10vw, 9rem);
  --max:      1360px;
  --max-text: 68ch;

  --radius:    14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:  0.45s;
}

/* Motyw ciemny z ustawień systemu — ustępuje ręcznemu wyborowi jasnego. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #040a18;
    --surface:    #071227;
    --surface-2:  #091730;
    --surface-3:  #0c1e3c;
    --surface-4:  #12294f;

    --ink:        #ffffff;
    --ink-2:      #c3ccd8;
    --ink-3:      #8494a8;
    --ink-4:      #56657a;

    --line:       rgba(255, 255, 255, .09);
    --line-2:     rgba(255, 255, 255, .16);

    --green-bright: #3ee83e;
    --green-deep:   #059c05;
    --green-soft:   rgba(0, 204, 0, .12);
    --green-line:   rgba(0, 204, 0, .32);
  }
}

/* Ręczny wybór ciemnego — wygrywa nad jasnym ustawieniem systemu. */
:root[data-theme="dark"] {
  --bg:         #040a18;
  --surface:    #071227;
  --surface-2:  #091730;
  --surface-3:  #0c1e3c;
  --surface-4:  #12294f;

  --ink:        #ffffff;
  --ink-2:      #c3ccd8;
  --ink-3:      #8494a8;
  --ink-4:      #56657a;

  --line:       rgba(255, 255, 255, .09);
  --line-2:     rgba(255, 255, 255, .16);

  --green-bright: #3ee83e;
  --green-deep:   #059c05;
  --green-soft:   rgba(0, 204, 0, .12);
  --green-line:   rgba(0, 204, 0, .32);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Kotwice nie chowają się pod przyklejonym paskiem. */
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.012em; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-bright); text-decoration-color: var(--green-line); text-underline-offset: 3px; }
a:hover { color: var(--green); }

img, picture, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--green);
  color: var(--ink);
  font-size: var(--t-lead);
}

code, pre, .mono { font-family: var(--mono); font-size: 0.9em; }

pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-weight: 600; font-size: var(--t-small); letter-spacing: 0.04em; text-transform: uppercase; }

/* Ostrość obrysu ogniskowej — widoczna tylko przy nawigacji klawiaturą. */
:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

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

/* --- pomocnicze ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }
.section { padding-block: var(--section); }
.prose { max-width: var(--max-text); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -100%;
  z-index: 999; padding: 0.8rem 1.2rem;
  background: var(--green); color: var(--bg);
  font-weight: 600; border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Etykieta sekcji: 01 / TECHNOLOGIA */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green); margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--green-line);
}

.lead { font-size: var(--t-lead); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: var(--t-small); }

/* --- przyciski ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent; border-radius: 100px;
  font: 500 var(--t-small)/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--green); color: var(--on-green); font-weight: 600; }
.btn--primary:hover { background: var(--green-deep); color: #fff; }

.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-bright); background: var(--green-soft); }

.btn--text { padding: 0; color: var(--green-bright); background: none; }
.btn--text:hover { gap: 0.9rem; }

.btn--lg { padding: 1.15rem 2.2rem; font-size: var(--t-body); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

/* --- nagłówek strony ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 95%, transparent); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; min-height: 88px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; color: var(--ink); }
.logo svg { height: clamp(38px, 3.6vw, 50px); width: auto; }

.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav__link {
  position: relative; padding: 0.6rem 0.95rem;
  color: var(--ink-2); font-size: var(--t-small); font-weight: 500;
  text-decoration: none; border-radius: var(--radius-sm);
  transition: color 0.25s;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.25rem;
  height: 1px; background: var(--green);
}

.nav__item { position: relative; }

.nav__panel {
  position: absolute; top: calc(100% + 0.5rem); left: 0;
  min-width: 260px; padding: 0.6rem;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel { opacity: 1; visibility: visible; transform: none; }

.nav__panel a {
  display: block; padding: 0.6rem 0.8rem; border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: var(--t-small); text-decoration: none;
}
.nav__panel a:hover { background: var(--surface-3); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 0.8rem; }

.burger {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--ink); cursor: pointer;
}
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor;
  transition: transform 0.28s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --- menu mobilne --------------------------------------------------------- */
.mobile-nav {
  position: fixed; inset: 88px 0 0; z-index: 99;
  background: var(--bg);
  padding: 2rem var(--gutter) 4rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.mobile-nav[data-open="true"] { transform: none; }
.mobile-nav a { display: block; padding: 0.9rem 0; color: var(--ink); font-size: 1.35rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .sub a { font-size: 1rem; color: var(--ink-3); padding: 0.55rem 0 0.55rem 1rem; border: 0; }

/* --- hero ----------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(4rem, 12vh, 9rem) clamp(3rem, 8vh, 6rem); overflow: hidden; }

.hero__title {
  font-size: var(--t-hero);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--ink);
  margin: 0 0 1.6rem;
  max-width: 16ch;
}
.hero__title .accent { color: var(--green); }
.hero__lead { font-size: var(--t-lead); max-width: 54ch; color: var(--ink-2); }

/* Delikatna poświata za tytułem — jedyny efekt dekoracyjny na stronie głównej. */
.hero::before {
  content: ""; position: absolute; z-index: -1;
  top: -30%; left: 50%; width: min(1100px, 120vw); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 204, 0, 0.09) 0%, transparent 62%);
  pointer-events: none;
}

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line);
}
.hero__stat { min-width: 140px; }
.hero__stat dt { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 0.4rem; }
.hero__stat dd { margin: 0; font-size: 1.6rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }

/* --- siatki --------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Jedna karta w siatce auto-fit rozciągnęłaby się na całą szerokość, a wtedy
   przeglądarka dostaje slot szerszy niż największy wariant obrazu i skaluje go
   w górę. Ograniczenie trzyma kartę w rozmiarze, dla którego mamy pliki. */
.grid--2 > *:only-child,
.grid--3 > *:only-child { max-width: 660px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* --- karta obszaru -------------------------------------------------------- */
.pillar {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pillar:hover { border-color: var(--green-line); background: var(--surface-2); transform: translateY(-3px); }
.pillar__num { font-family: var(--mono); font-size: var(--t-micro); color: var(--green); letter-spacing: 0.15em; margin-bottom: 1.8rem; }
.pillar__name { font-size: 1.4rem; color: var(--ink); margin-bottom: 0.7rem; letter-spacing: -0.02em; }
.pillar__desc { color: var(--ink-3); font-size: var(--t-small); margin-bottom: 1.6rem; flex-grow: 1; }
.pillar__list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.pillar__list li { font-size: var(--t-small); color: var(--ink-2); padding-left: 1.1rem; position: relative; margin-bottom: 0.35rem; }
.pillar__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--green-deep); }
.pillar__more { font-size: var(--t-small); color: var(--green-bright); display: inline-flex; align-items: center; gap: 0.45rem; transition: gap 0.25s; }
.pillar:hover .pillar__more { gap: 0.8rem; }

/* --- karta realizacji ----------------------------------------------------- */
.work { display: block; text-decoration: none; group: work; }
.work__media {
  position: relative; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface-2); aspect-ratio: 16 / 10;
}
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), opacity 0.4s; }
.work:hover .work__media img { transform: scale(1.035); }
.work__media--tall { aspect-ratio: 3 / 4; }
.work__media--wide { aspect-ratio: 21 / 9; }

.work__body { padding-top: 1.1rem; }
.work__client { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.work__title { font-size: 1.15rem; color: var(--ink); margin: 0.5rem 0 0.4rem; letter-spacing: -0.015em; }
.work__desc { font-size: var(--t-small); color: var(--ink-3); margin: 0; }

.work__empty {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.2em;
  color: var(--ink-4); background: var(--surface-2);
}

/* --- moduł CloudAir ------------------------------------------------------- */
.cloudair {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 88% 12%, rgba(0, 204, 0, 0.14) 0%, transparent 55%),
    var(--surface);
  padding: clamp(2.2rem, 6vw, 4.5rem);
}
.cloudair__grid {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(100% 90% at 80% 10%, #000 0%, transparent 70%);
}
.cloudair__content { position: relative; max-width: 62ch; }
.cloudair__name { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.22em; text-transform: uppercase; color: var(--green); margin-bottom: 1.5rem; }

/* --- proces --------------------------------------------------------------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.process__step {
  display: grid; grid-template-columns: 5rem 1fr; gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.9rem 0; border-top: 1px solid var(--line); margin: 0;
}
.process__step:last-child { border-bottom: 1px solid var(--line); }
.process__num { font-family: var(--mono); font-size: var(--t-small); color: var(--green); }
.process__name { font-size: 1.2rem; color: var(--ink); margin-bottom: 0.4rem; }
.process__desc { font-size: var(--t-small); color: var(--ink-3); margin: 0; max-width: 62ch; }
@media (max-width: 560px) { .process__step { grid-template-columns: 3rem 1fr; } }

/* --- pakiety -------------------------------------------------------------- */
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: stretch; }

.plan {
  display: flex; flex-direction: column;
  padding: clamp(1.7rem, 3vw, 2.3rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.plan--featured { border-color: var(--green-line); background: var(--surface-2); }
.plan__badge {
  align-self: flex-start; margin-bottom: 1rem; padding: 0.3rem 0.7rem;
  background: var(--green-soft); border: 1px solid var(--green-line); border-radius: 100px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-bright);
}
.plan__name { font-size: 1.3rem; margin-bottom: 0.35rem; }
.plan__tagline { font-size: var(--t-small); color: var(--ink-3); margin-bottom: 1.6rem; min-height: 2.6em; }
.plan__price { font-size: 2rem; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.plan__price small { display: block; font-size: var(--t-micro); font-weight: 400; color: var(--ink-4); font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem; }
.plan__note { font-size: var(--t-micro); color: var(--ink-4); margin: 0.5rem 0 1.6rem; }
.plan__features { list-style: none; padding: 0; margin: 0 0 1.9rem; flex-grow: 1; }
.plan__features li { display: flex; gap: 0.65rem; font-size: var(--t-small); color: var(--ink-2); margin-bottom: 0.6rem; }
.plan__features li::before { content: "✓"; color: var(--green); flex-shrink: 0; }
.plan__features li[data-included="0"] { color: var(--ink-4); }
.plan__features li[data-included="0"]::before { content: "—"; color: var(--ink-4); }

/* --- FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; background: none; border: 0; cursor: pointer;
  color: var(--ink); font: 500 var(--t-h3)/1.35 var(--sans); text-align: left; letter-spacing: -0.012em;
}
.faq__q::after { content: "+"; flex-shrink: 0; font-size: 1.4rem; color: var(--green); font-weight: 300; transition: transform 0.3s var(--ease); }
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { max-width: var(--max-text); padding-bottom: 1.7rem; color: var(--ink-2); }

/* --- formularze ----------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: var(--t-small); color: var(--ink-2); font-weight: 500; }
.field .req { color: var(--green); }
.field__hint { font-size: var(--t-micro); color: var(--ink-4); }

.input, .textarea, .select {
  width: 100%; padding: 0.9rem 1.05rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: 400 var(--t-body)/1.5 var(--sans);
  transition: border-color 0.2s, background 0.2s;
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-4); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--green); outline: none; background: var(--surface-2); }
.textarea { min-height: 168px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.6rem; }

.field--error .input, .field--error .textarea, .field--error .select { border-color: #ff5c5c; }
.field__error { font-size: var(--t-small); color: #ff8080; }

.checkbox { display: flex; gap: 0.8rem; align-items: flex-start; font-size: var(--t-small); color: var(--ink-3); cursor: pointer; }
.checkbox input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--green); }

/* Pole-pułapka: niewidoczne dla ludzi, obecne dla botów wypełniających wszystko. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-size: var(--t-small); border: 1px solid; }
.alert--error { background: rgba(255, 92, 92, 0.08); border-color: rgba(255, 92, 92, 0.35); color: #ffb0b0; }
.alert--ok { background: var(--green-soft); border-color: var(--green-line); color: var(--green-bright); }

/* --- okruszki, paginacja, znaczniki --------------------------------------- */
.crumbs { font-size: var(--t-micro); font-family: var(--mono); letter-spacing: 0.06em; color: var(--ink-4); padding-block: 1.6rem 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 0.5rem; color: var(--ink-4); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--green-bright); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.45rem 0.95rem; border: 1px solid var(--line-2); border-radius: 100px;
  font-size: var(--t-small); color: var(--ink-3); text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover { border-color: var(--green-line); color: var(--green-bright); }
.chip[aria-current="true"] { background: var(--green); border-color: var(--green); color: var(--on-green); font-weight: 500; }

.pager { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3.5rem; }
.pager a, .pager span {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: var(--t-small); color: var(--ink-3); text-decoration: none;
}
.pager a:hover { border-color: var(--green-line); color: var(--green-bright); }
.pager [aria-current="page"] { background: var(--surface-3); color: var(--ink); border-color: var(--line-2); }

/* --- stopka --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 5rem) 2rem; margin-top: var(--section); }
.site-footer .logo svg { height: 44px; }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); }
.site-footer .footer-title { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 1.1rem; font-weight: 400; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: var(--ink-3); font-size: var(--t-small); text-decoration: none; }
.site-footer a:hover { color: var(--green-bright); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
  font-size: var(--t-micro); color: var(--ink-4);
}
.socials { display: flex; gap: 0.75rem; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; }
.socials a:hover { border-color: var(--green-line); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* --- animacja pojawiania -------------------------------------------------- */
/* Elementy startują przesunięte tylko wtedy, gdy JS działa i użytkownik nie
   poprosił o ograniczenie ruchu — bez tego treść bez JS byłaby niewidoczna. */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-on [data-reveal].is-visible { opacity: 1; transform: none; }

@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; }
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
}

/* --- responsywność -------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav, .header-actions .btn { display: none; }
  .burger { display: inline-flex; }
}
@media (min-width: 1025px) { .mobile-nav { display: none; } }

@media print {
  .site-header, .site-footer, .btn, .mobile-nav { display: none; }
  body { background: #fff; color: #000; }
}

/* =============================================================================
   Hero z wideo
   Panel medialny zostaje ciemny w obu motywach — na materiale filmowym biały
   tekst jest czytelny zawsze, a przełączanie go razem ze stroną dawałoby
   szary tekst na ciemnym kadrze.
   ========================================================================== */
.hero--video {
  position: relative;
  display: flex; align-items: center;
  min-height: clamp(560px, 78vh, 860px);
  padding-block: clamp(4rem, 10vh, 7rem) clamp(3rem, 7vh, 5rem);
  overflow: hidden;
  background: #040a18;
}
.hero--video::before { content: none; }

.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Przyciemnienie i gradient od lewej: tekst siedzi na najciemniejszej części
   kadru, a prawa strona zostaje widoczna. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 10, 24, .93) 0%, rgba(4, 10, 24, .78) 42%, rgba(4, 10, 24, .35) 100%),
    linear-gradient(180deg, rgba(4, 10, 24, .55) 0%, transparent 30%, rgba(4, 10, 24, .6) 100%);
}

.hero--video .hero__title { color: var(--hero-ink); }
.hero--video .hero__lead  { color: var(--hero-ink-2); }
.hero--video .eyebrow     { color: var(--green); }
.site-header .logo { color: var(--ink); }
.hero--video .btn--ghost  { border-color: rgba(255, 255, 255, .34); color: #fff; }
.hero--video .btn--ghost:hover { border-color: var(--green); color: var(--green); background: rgba(0, 204, 0, .12); }

.hero__strip {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex; flex-wrap: wrap; gap: .55rem 1.6rem;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .68);
}
.hero__strip span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__strip span::before { content: ""; width: 5px; height: 5px; background: var(--green); flex: none; }

/* =============================================================================
   Przełącznik motywu
   ========================================================================== */
.theme-toggle {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--ink-2); cursor: pointer;
  transition: border-color .25s, color .25s;
}
.theme-toggle:hover { border-color: var(--green-line); color: var(--green-bright); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}

/* =============================================================================
   Pasek „robimy też" — kompetencje wspierające, świadomie mniejsze od głównych
   ========================================================================== */
.also {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.also__item {
  background: var(--bg);
  padding: clamp(1.4rem, 3vw, 2rem);
  text-decoration: none; display: block;
  transition: background var(--dur) var(--ease);
}
.also__item:hover { background: var(--surface); }
.also__label {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-bright);
  display: block; margin-bottom: .9rem;
}
.also__name { font-size: 1.08rem; color: var(--ink); margin: 0 0 .5rem; letter-spacing: -.015em; }
.also__desc { font-size: var(--t-small); color: var(--ink-3); margin: 0; }
.also__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-size: var(--t-small); color: var(--green-bright); transition: gap .25s; }
.also__item:hover .also__more { gap: .75rem; }

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}

/* =============================================================================
   Moduł PIM
   Ciemny panel w obu motywach — to sekcja-mechanizm, wyróżniona świadomie,
   bo opisuje warstwę, na której stoi cała reszta oferty.
   ========================================================================== */
.pim {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(0, 204, 0, .13) 0%, transparent 58%),
    #071227;
  border: 1px solid rgba(255, 255, 255, .1);
  padding: clamp(2rem, 5vw, 4rem);
  color: #c3ccd8;
}
.pim__grid {
  position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(90% 80% at 15% 0%, #000 0%, transparent 72%);
}
.pim__inner { position: relative; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 940px) { .pim__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

.pim__label {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .22em; text-transform: uppercase; color: var(--green);
  margin-bottom: 1.3rem;
}
.pim h2 { color: #fff; }
.pim__lead { font-size: var(--t-lead); color: #c3ccd8; max-width: 46ch; }
.pim__note { font-size: var(--t-small); color: #8494a8; }

/* --- diagram przepływu --------------------------------------------------- */
.flow { display: grid; gap: 0; }

.flow__source {
  border: 1px solid var(--green-line); border-radius: var(--radius-sm);
  background: rgba(0, 204, 0, .09);
  padding: 1rem 1.15rem;
}
.flow__source-label {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green); display: block; margin-bottom: .35rem;
}
.flow__source-name { font-size: 1.06rem; font-weight: 600; color: #fff; display: block; letter-spacing: -.015em; }
.flow__source-desc { font-size: var(--t-small); color: #8494a8; margin: .45rem 0 0; }

/* Pionowa kreska między źródłem a kanałami — pokazuje kierunek, nie ozdabia. */
.flow__link {
  justify-self: center; width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--green) 0%, rgba(0, 204, 0, .25) 100%);
}

.flow__outputs {
  display: grid; gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}
.flow__out {
  border: 1px solid rgba(255, 255, 255, .13); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  padding: .8rem .85rem;
  text-decoration: none; display: block;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.flow__out:hover { border-color: var(--green-line); background: rgba(0, 204, 0, .08); }
.flow__out-n { font-family: var(--mono); font-size: .62rem; color: var(--green); display: block; margin-bottom: .3rem; }
.flow__out-name { font-size: .88rem; color: #fff; font-weight: 500; display: block; line-height: 1.3; }

.pim .btn--ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }
.pim .btn--ghost:hover { border-color: var(--green); color: var(--green); background: rgba(0, 204, 0, .12); }

/* =============================================================================
   Klienci
   Logotypy to obce znaki firmowe — każdy dostaje jasny kafel niezależnie od
   motywu, bo większość z nich jest ciemna i na granacie po prostu znika.
   ========================================================================== */
.clients {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(.7rem, 1.6vw, 1.1rem);
  grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
}

.client { margin: 0; display: flex; flex-direction: column; }
.client[hidden] { display: none; }

/* Konkretna wysokość zamiast aspect-ratio: procentowy max-height na obrazie
   nie ma się do czego odnieść w kafelku o wysokości wyliczanej z proporcji,
   przez co część logotypów wychodziła poza ramkę. */
.client__logo {
  position: relative;
  display: grid; place-items: center;
  height: clamp(96px, 11vw, 128px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease);
}
.client:hover .client__logo { border-color: var(--green-line); }
/* display: contents na <picture> wyjmuje je z drzewa pudełek, więc procentowy
   max-height obrazu nie ma się do czego odnieść i przestaje działać. Zamiast
   procentów dajemy wymiary wprost, a object-fit: contain wpisuje logotyp
   w ramkę bez deformacji — działa tak samo dla rastra i dla SVG. */
.client__logo picture { display: contents; }
.client__logo img {
  position: absolute;
  inset: 1rem 1.15rem;
  width: calc(100% - 2.3rem);
  height: calc(100% - 2rem);
  max-width: none; max-height: none;
  object-fit: contain;
}

.client__initials {
  font-family: var(--mono); font-size: 1.6rem; font-weight: 500;
  color: #0b1622; letter-spacing: .04em;
}

.client__name {
  margin: .75rem 0 0; font-size: var(--t-small); font-weight: 500;
  color: var(--ink); line-height: 1.35;
}
.client__sector {
  margin: .18rem 0 0; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4);
}

/* Licznik przy filtrze — liczba w nawiasie mówi, ile jest do zobaczenia. */
.chip__n { font-family: var(--mono); font-size: .68rem; opacity: .6; margin-left: .25rem; }

/* =============================================================================
   Hero z obrazem realizacji
   Obraz idzie na całą szerokość jako tło, tytuł siedzi na nim. Ta sama zasada
   co w hero z wideo: panel zostaje ciemny w obu motywach, bo biały tekst musi
   być czytelny niezależnie od tego, jak jasny jest kadr pod spodem.
   ========================================================================== */
.hero--cover {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: clamp(480px, 68vh, 760px);
  padding-block: clamp(5rem, 12vh, 8rem) clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
  background: #040a18;
}
.hero--cover::before { content: none; }

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg picture { display: contents; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Przyciemnienie tylko tam, gdzie stoi tekst. Prawa strona kadru zostaje
   odsłonięta — obraz jest tu treścią, nie dekoracją, więc ma być widoczny. */
.hero--cover .hero__scrim {
  background:
    linear-gradient(90deg, rgba(4, 10, 24, .94) 0%, rgba(4, 10, 24, .74) 30%, rgba(4, 10, 24, .2) 62%, rgba(4, 10, 24, 0) 100%),
    linear-gradient(180deg, rgba(4, 10, 24, .55) 0%, rgba(4, 10, 24, 0) 24%, rgba(4, 10, 24, 0) 58%, rgba(4, 10, 24, .5) 100%);
}

/* Nagłówek trafia czasem na jasny fragment kadru — cień utrzymuje kontrast
   niezależnie od tego, co akurat jest pod spodem. */
.hero--cover h1,
.hero--cover .hero__lead { text-shadow: 0 2px 24px rgba(4, 10, 24, .7); }

.hero--video > .wrap,
.hero--cover > .wrap { position: relative; z-index: 2; }

.hero--cover h1 { color: var(--hero-ink); max-width: 18ch; }
.hero--cover .hero__lead { color: var(--hero-ink-2); }
.hero--cover .eyebrow { color: var(--green); }
.hero--cover .crumbs, .hero--cover .crumbs a { color: rgba(255, 255, 255, .62); }
.hero--cover .crumbs a:hover { color: var(--green); }

/* Okruszki na obrazie: siedzą w środku hero, nie nad nim. */
.hero__crumbs { padding: 0 0 1.4rem; }
.hero__crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.hero__crumbs li::after { content: "/"; margin-left: .5rem; color: rgba(255, 255, 255, .38); }
.hero__crumbs li:last-child::after { content: ""; }
.hero__crumbs a { text-decoration: none; }

/* Metryczka projektu na obrazie — klient, rok, zakres. */
.hero__facts {
  display: flex; flex-wrap: wrap; gap: .6rem 2.2rem;
  margin-top: 2rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__facts div { min-width: 110px; }
.hero__facts dt {
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: .2rem;
}
.hero__facts dd { margin: 0; color: #fff; font-size: var(--t-small); font-weight: 500; }

/* Zapowiedź uzupełnienia galerii — znika, gdy ekrany zostaną dodane. */
.gallery-empty {
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem); text-align: center;
}
.gallery-empty p { margin: 0; color: var(--ink-3); font-size: var(--t-small); }

/* --- dwa rzędy filtrów klientów ------------------------------------------ */
.filters { display: grid; gap: .9rem; margin-top: 2.5rem; }
.filters__row { display: grid; gap: .55rem; }
@media (min-width: 720px) {
  .filters__row { grid-template-columns: 5.5rem 1fr; align-items: start; gap: 1rem; }
}
.filters__label {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4);
  padding-top: .55rem;
}

/* Państwo to filtr drugiego rzędu — mniejszy niż branża, żeby hierarchia
   filtrów odpowiadała hierarchii oferty. */
.filters__row--minor .chip {
  padding: .3rem .7rem;
  font-size: .78rem;
  border-color: var(--line);
}
.filters__row--minor .chip__n { font-size: .62rem; }
.filters__row--minor .filters__label { padding-top: .4rem; }

/* =============================================================================
   Realizacja — pasek informacji i galeria ekranów
   ========================================================================== */
.project-meta {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem; align-items: center;
  padding-bottom: 2rem; margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.project-meta__label {
  display: block; font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: .6rem;
}
.project-meta__services { flex: 1 1 320px; }
.project-meta__facts { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin: 0; flex: 1 1 100%; }
.project-meta__facts dt { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-4); margin-bottom: .2rem; }
.project-meta__facts dd { margin: 0; color: var(--ink); font-size: var(--t-small); font-weight: 500; }

/* --- ekrany --------------------------------------------------------------
   Zrzuty interfejsów są gęste: tabele, wykresy, dane w kilku kolumnach.
   Każdy dostaje pełną szerokość i podpis nad sobą — na połowie szerokości
   nie da się z nich nic odczytać, a układ pół/pełna zostawiał sieroty. */
.shots { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3rem, 7vw, 5.5rem); }

.shot { margin: 0; }
.shot[hidden] { display: none; }

.shot__text { max-width: 62ch; margin-bottom: 1.2rem; }
.shot__n {
  display: block; font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .16em; color: var(--green-bright); margin-bottom: .5rem;
}
.shot__title { font-size: var(--t-h3); margin: 0 0 .4rem; letter-spacing: -.015em; }
.shot__desc { margin: 0; color: var(--ink-3); font-size: var(--t-small); }

/* Ramka okna: sygnalizuje, że to zrzut aplikacji, a nie zdjęcie. */
.shot__frame {
  margin: 0; overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(4, 10, 24, .12);
}
:root[data-theme="dark"] .shot__frame,
:root:not([data-theme="light"]) .shot__frame { box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .shot__frame { box-shadow: 0 18px 50px rgba(4, 10, 24, .12); }
}

.shot__chrome {
  display: flex; align-items: center; gap: .4rem;
  padding: .6rem .85rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.shot__chrome span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }

.shot__frame img { display: block; width: 100%; height: auto; }

/* =============================================================================
   Paralaksa w hero
   Tło przesuwa się wolniej niż strona. Kadr jest wyższy od sekcji, żeby przy
   przesunięciu nie odsłonić krawędzi. Ruch wyłącza się przy prefers-reduced-motion.
   ========================================================================== */
.hero--cover .hero__bg,
.hero--video .hero__video {
  top: -14%; height: 128%;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero--cover .hero__bg,
  .hero--video .hero__video { top: 0; height: 100%; transform: none !important; }
}

/* Filtr bez wyników przy obecnym wyborze — wygaszony i nieklikalny.
   Lepiej pokazać, że kombinacja jest pusta, niż wysłać kogoś na pustą listę. */
.chip[data-empty] {
  opacity: .32;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- opinia klienta ------------------------------------------------------ */
/* =============================================================================
   Klienci — liczby i logotypy

   Logotypy siedzą na białym, bo tak są zaprojektowane i tak są drukowane.
   Kafle są duże: przy sześciu kolumnach każdy znak ma realne miejsce, zamiast
   kurczyć się do plamki. Stała liczba kolumn (6 / 3 / 2) przy dwunastu
   logotypach nie zostawia sierocego rzędu na żadnej szerokości.
   ========================================================================== */
.clients__head {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: end; justify-content: space-between;
  margin-bottom: 2rem;
}
.clients__note {
  margin: 1.5rem 0 0; max-width: 70ch;
  font-size: var(--t-small); color: var(--ink-3);
}

.stats {
  margin: 0 0 1.8rem; display: grid;
  gap: 1.4rem clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stats div { padding-left: 1rem; border-left: 2px solid var(--green); }
.stats dt {
  font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 600; color: var(--ink);
  letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums;
}
.stats dd {
  margin: .5rem 0 0; font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}

.logos {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .6rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 560px)  { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(6, 1fr); } }

.logos li { margin: 0; }

.logos__tile {
  position: relative; display: block;
  height: clamp(96px, 8vw, 122px); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* Hojny limit wysokości jest tu istotny: przy ciasnym limicie znak kwadratowy
   kurczył się do wysokości paska, podczas gdy znak szeroki rozpychał całą
   szerokość kafla — te same logotypy czytały się wtedy jak dwie różne wagi. */
.logos__tile img {
  position: absolute; inset: 0; margin: auto;
  max-width: calc(100% - 2.4rem); max-height: calc(100% - 2.6rem);
  width: auto; height: auto; object-fit: contain;
}

/* =============================================================================
   Opinie — osobny moduł
   ========================================================================== */
.quotes { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); } }

.quote {
  margin: 0; display: flex; flex-direction: column; gap: 1.4rem;
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
/* Ograniczenie długości wiersza jest tu potrzebne, bo przy jednej opinii
   karta rozciąga się na całą szerokość i tekst robi się nieczytelnie długi. */
.quote blockquote {
  margin: 0; padding: 0; border: 0; max-width: 64ch;
  font-size: var(--t-lead); line-height: 1.55; color: var(--ink);
}
.quote figcaption {
  display: flex; align-items: center; gap: 1rem;
  margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-size: var(--t-small); color: var(--ink-3);
}
.quote__photo, .quote__logo { flex: none; position: relative; display: block; background: #fff; overflow: hidden; }
.quote__photo { width: 56px; height: 56px; border-radius: 50%; }
.quote__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote__logo { width: 104px; height: 56px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.quote__logo img {
  position: absolute; inset: 0; margin: auto;
  max-width: calc(100% - 1rem); max-height: calc(100% - 1.2rem);
  width: auto; height: auto; object-fit: contain;
}
.quote__who strong { display: block; color: var(--ink); font-weight: 500; }

/* =============================================================================
   Baner zgody

   Style były wpisane w atrybut style= i sięgały po zmienną --navy-850, która
   istnieje wyłącznie w arkuszu panelu. Na stronie publicznej rozwiązywała się
   w nic, więc baner nie miał tła i przebijał przez niego nagłówek sekcji.
   ========================================================================== */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
  max-width: 520px; padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(11, 22, 34, .28);
}
:root[data-theme="dark"] .consent { box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .consent { box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
}

.consent__title { font-size: 1rem; margin: 0 0 .6rem; color: var(--ink); }
.consent__text  { margin: 0 0 1.2rem; }
.consent__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* --- kafel otoczki ze zdjęciem ------------------------------------------- */
.also__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius-sm); margin-bottom: 1rem;
  background: var(--surface-2);
}
.also__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- pas liczb ------------------------------------------------------------ */
/* --- dlaczego 2M ---------------------------------------------------------
   Sam akapit na białym tle nie niósł nic poza treścią. Przygaszona płaszczyzna
   i zielona krecha przy zdaniu kluczowym dają tej sekcji wagę, na jaką
   zasługuje, bez zamieniania jej w kolejną kartę.
   ------------------------------------------------------------------------ */
.why {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  padding: clamp(1.8rem, 4.5vw, 3.2rem);
  background: var(--surface-2); border-radius: var(--radius);
  align-items: start;
}
@media (min-width: 900px) { .why { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.why__title { margin: 0; max-width: 18ch; }
.why__body { display: grid; gap: 1.1rem; }
.why__lead {
  margin: 0; padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 2px solid var(--green);
  font-size: var(--t-lead); line-height: 1.55; color: var(--ink);
  max-width: 54ch;
}
.why__more { margin: 0; color: var(--ink-2); max-width: 60ch; }

/* --- co decyduje o tempie ------------------------------------------------
   Trzy równorzędne czynniki, nie etapy procesu — dlatego kolumny obok siebie
   i brak numeracji, która sugerowałaby kolejność, której tu nie ma.
   ------------------------------------------------------------------------ */
.factors {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 860px) { .factors { grid-template-columns: repeat(3, 1fr); } }

.factor {
  position: relative; margin: 0;
  display: flex; flex-direction: column; gap: .8rem;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--surface);
  transition: background var(--dur) var(--ease);
}
.factor::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--green); opacity: .8;
}
.factor:hover { background: var(--surface-2); }
.factor__name {
  margin: .4rem 0 0; font-size: var(--t-h3); color: var(--ink);
  letter-spacing: -.015em; text-wrap: balance;
}
.factor__body { margin: 0; color: var(--ink-2); font-size: var(--t-small); line-height: 1.65; }
.factor__body em { color: var(--green-bright); font-style: normal; font-weight: 500; }
