/* ======================================================================
   Intuiti · Integrator KSeF — jednolity styl w duchu intuiti.pl/cennik/
   ====================================================================== */

:root {
  /* INK (dark navy) */
  --ink:        #0a1628;
  --ink-2:      #11203a;
  --ink-3:      #1a2942;
  --ink-line:   rgba(255,255,255,.10);
  --ink-line-2: rgba(255,255,255,.18);
  --ink-text:   #e7ecf4;
  --ink-muted:  #94a3b8;

  /* PAPER (light surface) */
  --paper:   #ffffff;
  --paper-2: #f7f8fa;
  --paper-3: #f0f2f6;
  --paper-4: #e8ebf1;

  /* lines */
  --line:        #e2e5ec;
  --line-strong: #c9ced8;

  /* text on paper */
  --text:    #0a1628;
  --text-2:  #354360;
  --muted:   #5a6478;
  --muted-2: #8b94a6;

  /* brand */
  --brand:      #1d4ed8;
  --brand-2:    #2563eb;
  --brand-deep: #1e3a8a;
  --brand-tint: #eff3ff;

  --gold:      #c08a3c;
  --gold-tint: #f5ecd6;

  --good:      #16a34a;
  --good-tint: #dcfce7;

  /* fonts */
  --mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* layout */
  --container: 1280px;
  --gutter:    clamp(20px, 4vw, 56px);
  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--paper-2); }
body {
  position: relative;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
/* height:auto jest konieczne — bez niego atrybut height="…" w HTML staje się
 użytą wysokością i obraz rozjeżdża się przy skalowaniu szerokością. */
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* Pełna szerokość ekranu z zachowaniem marginesów bocznych (jak vsql.pl).
   Używane przez pasek użytkowy, nagłówek i hero; sekcje treści zostają
   w standardowym .container, żeby wiersze tekstu nie robiły się za długie. */
.container--wide {
  max-width: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.mono { font-family: var(--mono); }
.txt-mono-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

/* Section editorial label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}

/* ===== Utility (top) bar ===== */
.site-top {
  position: sticky;
  top: 0;
  z-index: 40;
}
.utility-bar {
  background: var(--ink);
  color: var(--ink-muted);
  font-size: 12.5px;
  border-bottom: 1px solid var(--ink-line);
}
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.utility-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.utility-meta a {
  color: var(--ink-text);
  text-decoration: none;
}
.utility-meta a:hover { text-decoration: underline; }
.utility-dot {
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--good);
  margin-right: 4px;
  box-shadow: 0 0 0 3px rgba(22,163,74,.18);
}

/* ===== Site header ===== */
.site-header {
  background: var(--ink);
  color: var(--ink-text);
  border-bottom: 1px solid var(--ink-line);
}
.site-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-brand:hover { text-decoration: none; }
.brand-logo {
  width: 38px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(111,211,255,0.35));
}
.brand-name {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 18px;
  color: #fff;
}
.brand-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(215,240,255,0.65);
  letter-spacing: 0.06em;
  margin-top: 3px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  /* Gdy w wierszu zabraknie miejsca, menu zawija się w sobie — zamiast spychać
     przyciski poza krawędź nagłówka. Pozycje zostają na swoim miejscu, między
     marką a przyciskami; schodzą do osobnego wiersza dopiero na wąskim ekranie
     (reguła 1200 px niżej). Wyśrodkowanie dotyczy tylko stanu zawiniętego —
     przy jednym wierszu menu ma dokładnie szerokość swojej treści. */
  flex-wrap: wrap;
  justify-content: center;
  min-width: 0;
}
/* Marka i wyjścia z nagłówka nie kurczą się. „Pobierz program" jest celem tej
   strony, nie ozdobą — przy ciasnocie ustępuje menu, nigdy przycisk. */
.site-brand,
.site-cta-group,
.site-header .site-cta { flex-shrink: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--ink-text);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
/* Marka i CTA nie łamią tekstu — flexbox inaczej rozbija je na 2–3 wiersze. */
.brand-tag, .site-cta { white-space: nowrap; }
/* Poniżej ~1200 px marka + pozycje menu + CTA nie mieszczą się w jednym
   wierszu, więc menu schodzi do drugiego wiersza (zamiast wypychać CTA za
   krawędź i robić poziomy pasek przewijania). Menu zostaje widoczne na każdej
   szerokości — zawija się na kolejne wiersze, zamiast znikać. */
@media (max-width: 1200px) {
  .site-header-bar { flex-wrap: wrap; gap: 10px 16px; }
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 6px;
    border-top: 1px solid var(--ink-line);
    padding-top: 6px;
  }
  .site-nav a { padding: 7px 9px; font-size: 13px; }
}
/* Na wąskich ekranach pozycje są ciaśniejsze, żeby komplet zmieścił się
   w dwóch–trzech wierszach. */
@media (max-width: 700px) {
  .site-nav { gap: 1px; padding-top: 4px; padding-bottom: 4px; }
  .site-nav a { padding: 6px 7px; font-size: 12px; }
}
@media (max-width: 420px) {
  .site-nav a { padding: 5px 6px; font-size: 11.5px; }
}
.site-nav a:hover {
  background: var(--ink-line);
  text-decoration: none;
}
.site-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 999px;
  border: 1px solid var(--paper);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.site-cta:hover {
  background: var(--paper-3);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  text-decoration: none;
}

/* Para CTA w nagłówku: serwis i pobranie. Dwie identyczne białe pastylki
   obok siebie byłyby ciężkie i nie mówiłyby, co jest czym — dlatego pobranie
   dostaje wariant obrysowany. Grupa nie zawija się w środku (nowrap), bo
   „Zamów serwis | Pobierz program" rozdzielone na dwa wiersze wyglądałoby
   jak dwa niezależne elementy nagłówka; całość zawija się jako jeden blok
   dzięki flex-wrap na .site-header-bar. */
.site-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.site-cta-sep {
  color: var(--ink-muted);
  font-size: 13px;
  user-select: none;
}
.site-cta--download {
  background: transparent;
  color: var(--ink-text);
  border-color: var(--ink-line-2);
}
/* Ikona w obu przyciskach nagłówka — pobranie i serwis. */
.site-cta svg { width: 15px; height: 15px; flex-shrink: 0; }
.site-cta--download:hover {
  background: rgba(255,255,255,.10);
  border-color: var(--paper);
  color: #fff;
}

/* Najwęższe ekrany: nawigacja jest już ukryta, ale dwie pastylki obok siebie
   wciąż potrafią wypchnąć logo. Kreska idzie pierwsza — jest tylko ozdobą
   rozdzielającą, a odstęp w grupie robi tę samą robotę. */
@media (max-width: 560px) {
  .site-cta-sep { display: none; }
  .site-cta-group { gap: 6px; }
}

/* ===== Hero ===== */
/* Znak partnera leży pod ilustracją (wcześniej absolutnie pozycjonowany
   w prawym górnym rogu hero — nachodził na ramkę z wideo). */
.hero-partner-badge {
  display: block;
  height: 46px;
  width: auto;
  margin: 20px 0 0 auto;
  opacity: 0.90;
  pointer-events: none;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.30));
}
@media (max-width: 980px) { .hero-partner-badge { height: 40px; margin-top: 16px; } }
@media (max-width: 640px) { .hero-partner-badge { height: 32px; margin-right: auto; } }
.hero {
  background: var(--ink);
  color: var(--ink-text);
  position: relative;
  overflow: hidden;
  /* Górny oddech ścięty do minimum — hero zaczyna się tuż pod headerem,
     dzięki czemu tytuł i ilustracja mieszczą się na pierwszym ekranie.
     Dolny zostaje, bo oddziela hero od pierwszej sekcji. */
  padding: 24px 0 88px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(29,78,216,.20), transparent 60%),
    radial-gradient(500px 400px at 0% 100%, rgba(192,138,60,.10), transparent 60%);
  pointer-events: none;
}

/* Wideo w tle hero — ta sama technika co na vsql.pl: preload="none",
   źródło podstawiane z data-src w main.js, płynne pojawienie po canplay. */
.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-video .bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.05) contrast(1.02) brightness(.65);
  transition: opacity .8s ease;
}
.hero-bg-video .bg-video.is-ready {
  opacity: .26;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-stamp {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.10em;
  color: var(--ink-muted);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
}
.hero-stamp::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--ink-line-2);
}
.hero-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-title-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  margin: 0;
  color: var(--paper);
}
.hero-title-accent {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: clamp(19px, 2.7vw, 32px);
  margin: 14px 0 18px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 580px;
  margin: 0 0 28px;
  line-height: 1.6;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
}
.hero-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(22,163,74,.18);
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* Kolumna z tekstem jest wyższa, a .hero-inner centruje w pionie —
   bez tego ilustracja opadałaby na środek. Równamy ją do górnej
   krawędzi wiersza, czyli do linii nagłówka H1. */
.hero-media {
  align-self: start;
  min-width: 0;
}

/* Podpis nad ramką z filmem. Osobna klasa, bo .hero-shot-caption jest
   zajęta przez pigułkę w filmy-instrukcje/ (pozycjonowana absolutnie). */
.hero-media-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--ink-text);
}
.hero-media-caption-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--ink-line-2);
  font-size: 11px;
  /* Znak galerii (⧉) jest symetryczny — nie potrzebuje przesunięcia,
     którego wymagał wcześniejszy trójkąt odtwarzania. */
}
@media (max-width: 640px) {
  .hero-media-caption { font-size: 11.5px; gap: 8px; }
}
/* Stos zrzutów w hero — link do kolażu w sekcji „03 / Podgląd programu".

   Nie ma tu własnego cienia, obwódki ani overflow:hidden, bo to już nie
   jest ramka jednego kadru (dawniej: iframe z filmem). Trzy zrzuty rozjeżdżają
   się na hover poza obrys kontenera, więc obcinanie i cień na kontenerze
   psułyby efekt — cień „unoszenia" niesie każdy zrzut z osobna
   (.hero-shot-photo).

   aspect-ratio 16/9 rezerwuje wysokość zamiast ramki iframe. Kaskada kończy
   się jakieś 2/3 w dół, więc 4/3 zostawiałoby pustkę nad plakietką partnera. */
.hero-shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  overflow: visible;
}
.hero-shot-stack { position: relative; width: 100%; height: 100%; }

/* Podpowiedź „Zobacz galerię" — wjeżdża po najechaniu, bo w spoczynku
   zasłaniałaby fragment zrzutu na wierzchu. */
.hero-shot-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10,22,40,.78);
  color: #fff;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(4px);
}
.hero-shot:hover .hero-shot-hint,
.hero-shot:focus-visible .hero-shot-hint { opacity: 1; transform: translateY(0); }
.hero-shot:focus-visible { outline: 2px solid var(--ink-line-2); outline-offset: 4px; }

/* Spoczynek: kaskada okien MDI — pierwszy zrzut w lewym górnym rogu, każdy
   kolejny równym krokiem w prawo i w dół, a ten na wierzchu najdalej, jak
   ostatnio otwarte okno w aplikacji. Bez obrotu: okna programu nie są
   przekrzywione. */
.hero-shot-photo {
  position: absolute;
  width: 82%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 44px rgba(10,22,40,.35), 0 4px 12px rgba(10,22,40,.20);
  display: block;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.3,1);
}
/* Klasa siedzi na <picture>, więc <img> w środku tylko wypełnia tę ramkę. */
.hero-shot-photo img { display: block; width: 100%; height: auto; }
.hero-shot-photo--back  { top:  2%; left: 0%; width: 76%; z-index: 1; filter: brightness(.82); }
.hero-shot-photo--mid   { top:  8%; left: 4%; width: 77%; z-index: 2; filter: brightness(.91); }
.hero-shot-photo--front { top: 14%; left: 8%; width: 78%; z-index: 3; }

/* Najechanie rozkłada kadry jak wachlarz kart trzymanych w dłoni: skrajne
   odjeżdżają w swoją stronę i przekręcają się, środkowy unosi się i prostuje.
   Ruch jest symetryczny względem środka — to rozkładanie kart, nie
   rozprysk na boki. */
.hero-shot:hover .hero-shot-photo--back,
.hero-shot:focus-visible .hero-shot-photo--back  { transform: rotate(-6deg) translate(-14px, 4px); }
.hero-shot:hover .hero-shot-photo--mid,
.hero-shot:focus-visible .hero-shot-photo--mid   { transform: rotate(0deg) translate(0, -6px); }
.hero-shot:hover .hero-shot-photo--front,
.hero-shot:focus-visible .hero-shot-photo--front { transform: rotate(6deg) translate(12px, 4px); }

/* Wejście: zrzuty startują nałożone jeden na drugi i rozjeżdżają się do
   swoich miejsc — talia rozkłada się, zanim ktoś zdąży najechać myszką.

   fill-mode: backwards, NIE forwards. „forwards" trzymałoby transform pod
   kontrolą animacji już PO jej zakończeniu, a właściwość animowana zawsze
   wygrywa z :hover i transition — rozkładanie po najechaniu przestałoby
   działać w chwili, gdy wejście dobiegnie końca. „backwards" tylko zapobiega
   błyskowi w trakcie animation-delay i oddaje transform zwykłej kaskadzie. */
@keyframes heroShotDeal {
  from { transform: translate(var(--deal-x), var(--deal-y)) scale(.97); opacity: 0; }
  to   { transform: translate(0, 0) scale(1); opacity: 1; }
}
.hero-shot-photo--back  { --deal-x:   0px; --deal-y:   0px; animation: heroShotDeal .7s cubic-bezier(.16,.8,.24,1) .10s backwards; }
.hero-shot-photo--mid   { --deal-x: -18px; --deal-y: -24px; animation: heroShotDeal .7s cubic-bezier(.16,.8,.24,1) .25s backwards; }
.hero-shot-photo--front { --deal-x: -34px; --deal-y: -46px; animation: heroShotDeal .7s cubic-bezier(.16,.8,.24,1) .40s backwards; }

@media (prefers-reduced-motion: reduce) {
  .hero-shot-photo, .hero-shot-hint { transition: none; animation: none; }
}

/* To samo na telefonie, niezależnie od ustawień systemu. Rozkładanie kadrów
   i rozmycie przy przewijaniu zaprojektowane są pod mysz i duży ekran:
   na wąskim ekranie ilustracja zajmuje niemal całą szerokość, więc ruch
   nie zdobi, tylko opóźnia pierwszy sensowny widok, a liczenie transformu
   przy każdym przewinięciu palcem potrafi wyjść szarpaniem. */
@media (max-width: 900px) {
  .hero-shot-photo, .hero-shot-hint { transition: none; animation: none; }
  .hero-shot,
  .hero-media-caption {
    will-change: auto !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* Rozmycie/odjazd przy przewijaniu liczy main.js (scrollHeroShotFade).
   Podpis jedzie razem z ramką. */
.hero-shot,
.hero-media-caption {
  will-change: transform, opacity, filter;
  transition: transform .12s linear, opacity .12s linear, filter .12s linear;
}
@media (prefers-reduced-motion: reduce) {
  .hero-shot,
  .hero-media-caption {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}
.hero-shot img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  display: block;
}
.hero-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
}
.hero-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.hero-shot-caption {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--ink);
  padding: 5px 12px;
  border: 1px solid var(--ink-line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-meta-row {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-line);
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta-item-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.hero-meta-item-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
/* Ikona w przycisku — odstęp daje już gap, więc wystarczy rozmiar
   i zakaz kurczenia się, gdy przyciski zawijają się do drugiego wiersza. */
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn-primary:hover {
  background: var(--paper-3);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}
.btn-primary--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary--ink:hover {
  background: var(--ink-2);
  box-shadow: 0 14px 30px rgba(10,22,40,.25);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-text);
  border-color: var(--ink-line-2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--ink-line-2);
}
.btn-outline {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn-sm {
  padding: 9px 14px;
  font-size: 13px;
}

/* ===== Section base ===== */
.section {
  position: relative;
  /* Mniejszy odstęp górny — sekcje stały zbyt daleko od siebie. */
  padding: 52px 0 76px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.section.alt { background: var(--paper); }
.section > .container { position: relative; z-index: 1; }
.section.dark {
  background: var(--ink-2);
  border-top: 1px solid rgba(255,255,255,.06);
}
.section.dark .section-head h2 { color: var(--ink-text); }
.section.dark .section-lead { color: var(--ink-muted); }
.section-head {
  margin-bottom: 32px;
  max-width: 820px;
}
.section-head h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  margin: 14px 0 12px;
  letter-spacing: -0.02em;
}
.section-lead {
  font-size: 16.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ===== Card grid (Dlaczego) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--cyan-2));
  opacity: 0;
  transition: opacity 0.18s;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(10,22,40,.08);
}
.card:hover::before {
  opacity: 1;
}
.card-id {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.card-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 20px;
}
.card h3 {
  font-size: 17px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step {
  padding: 32px 32px 32px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:first-child { padding-left: 0; }
.step:not(:first-child) { padding-left: 32px; }
.step:last-child { border-right: none; padding-right: 0; }
.step-number {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--brand);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
.step p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ===== Case study ===== */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  margin: 0 0 28px;
}
.case-stat {
  padding: 22px;
  border-right: 1px solid var(--line);
}
.case-stat:last-child { border-right: none; }
.case-stat-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.case-stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.case-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.case-list li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
}
.case-list li:last-child { border-bottom: 1px solid var(--line); }
.case-list li::before {
  content: "→";
  position: absolute;
  left: 0; top: 14px;
  color: var(--brand);
  font-weight: 600;
}

/* Savings chart */
.savings-chart {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.savings-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
}
.savings-title {
  font-size: 15px;
  font-weight: 600;
}
.savings-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.savings-bars {
  display: grid;
  gap: 18px;
}
.savings-row {
  display: grid;
  grid-template-columns: 150px 1fr 60px;
  gap: 14px;
  align-items: center;
}
.savings-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.savings-track {
  height: 24px;
  background: var(--paper-3);
  border-radius: 6px;
  overflow: hidden;
}
.savings-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 6px;
}
.savings-fill.after {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.savings-value {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  color: var(--ink);
}
.savings-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* ===== Pricing cards (pkg — design z cennik.php) ===== */

/* Dodatkowe tokeny potrzebne dla kart pkg */
:root {
  --cyan:       #6FD3FF;
  --cyan-2:     #38B6F0;
  --cyan-deep:  #1E7FB8;
  --cyan-soft:  #D7F0FF;
  --cyan-tint:  #EAF7FF;
  --silver:     #9CA8B6;
  --silver-2:   #C9D2DC;
  --gold-pkg:   #C8A046;
  --gold-2:     #E8C875;
  --gold-soft:  #FBF3DC;
  --premium:    #0F3759;
  --premium-2:  #1B5F90;
  --shadow-pkg: 0 8px 24px rgba(7,24,43,0.08), 0 2px 6px rgba(7,24,43,0.04);
  --shadow-lg-pkg: 0 24px 60px rgba(7,24,43,0.16), 0 6px 16px rgba(7,24,43,0.08);
  --font-sans-pkg: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pkg-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.pkg {
  position: relative;
  background: #fff;
  border: 1px solid rgba(10,31,51,0.10);
  border-radius: 20px;
  box-shadow: var(--shadow-pkg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pkg:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg-pkg); }

.pkg::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 5px;
  background: var(--pkg-accent, var(--silver));
}

/* Kolor = tożsamość wariantu. Wyróżnienie (.pkg-featured) jest od tego
   niezależne — przypina się do pakietu z "highlight" w PAKIETY/pakiety.json. */
.pkg-silver {
  --pkg-accent: linear-gradient(90deg,#B8C5D3 0%,#8595A6 100%);
  --pkg-tier: #5B6F87; --pkg-tier-soft: #EFF3F7;
  --pkg-glow: 133,149,166;
  --pkg-wash: #FBFCFD;
  --pkg-ribbon: linear-gradient(90deg,#5B6F87 0%,#3F5065 100%);
}
.pkg-gold {
  --pkg-accent: linear-gradient(90deg,#E8C875 0%,#C8A046 100%);
  --pkg-tier: #8B6B1F; --pkg-tier-soft: #FBF3DC;
  --pkg-glow: 200,160,70;
  --pkg-wash: #FFFDF4;
  --pkg-ribbon: linear-gradient(90deg,#C8A046 0%,#A6841C 100%);
}
.pkg-premium {
  --pkg-accent: linear-gradient(90deg,var(--cyan) 0%,var(--cyan-deep) 100%);
  --pkg-tier: var(--premium-2); --pkg-tier-soft: var(--cyan-tint);
  --pkg-glow: 56,182,240;
  --pkg-wash: #F6FCFF;
  --pkg-ribbon: linear-gradient(90deg,var(--cyan-deep) 0%,var(--premium) 100%);
}

/* Wariant najczęściej wybierany — uniesiony i podświetlony własnym kolorem */
.pkg-featured {
  border-color: rgba(var(--pkg-glow), 0.38);
  box-shadow: 0 16px 40px rgba(var(--pkg-glow), 0.20), 0 4px 12px rgba(var(--pkg-glow), 0.10);
  transform: translateY(-8px);
  background: linear-gradient(180deg,#FFFFFF 0%, var(--pkg-wash) 100%);
}
.pkg-featured:hover { transform: translateY(-12px); }

.pkg-badge {
  position: absolute; top: 18px; right: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--pkg-tier);
  background: var(--pkg-tier-soft);
  padding: 5px 9px; border-radius: 5px;
  border: 1px solid rgba(0,0,0,0.06);
}
.pkg-popular {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
  color: #fff;
  background: var(--pkg-ribbon, linear-gradient(90deg,var(--gold-pkg) 0%,#A6841C 100%));
  padding: 6px 12px; border-radius: 5px;
  box-shadow: 0 4px 12px rgba(var(--pkg-glow, 200,160,70), 0.40);
}

.pkg-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px; margin-top: 4px;
}
.pkg-mark {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  /* Kolor wariantu zostaje przy ikonie — obrecz i poswiata z --pkg-tier. */
  box-shadow: 0 0 0 2px var(--pkg-tier), 0 2px 8px rgba(19, 32, 58, 0.18);
}
.pkg-name {
  font-family: var(--font-sans-pkg);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}
.pkg-name .pkg-accent { color: var(--pkg-tier); font-weight: 600; }
.pkg-id {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  color: var(--pkg-tier); opacity: 0.7;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.pkg-sub {
  font-size: 12.5px; color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.pkg-price {
  display: flex; align-items: baseline; gap: 8px;
  padding: 18px 0 14px;
  border-top: 1px dashed rgba(10,31,51,0.10);
  border-bottom: 1px dashed rgba(10,31,51,0.10);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.pkg-amount {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pkg-currency { font-size: 14px; font-weight: 600; color: var(--muted); }
.pkg-period { font-size: 13.5px; color: var(--muted); margin-left: auto; }

/* Blok głównych funkcji KSeF na karcie (opcjonalny, sterowany danymi) */
.pkg-ksef {
  margin: 0 0 20px;
  padding: 12px 14px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.pkg-ksef-label {
  margin: 0 0 9px;
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--pkg-tier);
}
.pkg-ksef-label span {
  color: var(--muted);
  font-weight: 400; letter-spacing: 0.04em;
}
.pkg-ksef ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pkg-ksef li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13px; line-height: 1.4;
  color: var(--text-2);
}
.pkg-ksef li svg { flex-shrink: 0; margin-top: 1px; }
.pkg-ksef li.is-on svg  { color: var(--good); }
.pkg-ksef li.is-off     { color: var(--muted-2); }
.pkg-ksef li.is-off svg { color: var(--line-strong); }

/* Tekst tylko dla czytników ekranu */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.pkg-features {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.pkg-features li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text-2);
}
.pkg-features li .ftxt { flex: 1; line-height: 1.45; }
.pkg-features li .fval {
  font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.pkg-features li svg {
  flex-shrink: 0; margin-top: 2px;
  color: var(--pkg-tier);
}

.pkg-cta-group {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 8px;
}
.pkg-cta {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.pkg-silver .pkg-cta {
  background: var(--ink-2); color: #fff; border-color: var(--ink-3);
}
.pkg-silver .pkg-cta:hover { background: var(--ink-3); text-decoration: none; }
.pkg-gold .pkg-cta {
  background: linear-gradient(180deg,#D9B868 0%,#B58A2F 100%);
  color: #fff; border-color: #A6841C;
  box-shadow: 0 8px 20px rgba(200,160,70,0.30);
}
.pkg-gold .pkg-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(200,160,70,0.36); text-decoration: none; }
.pkg-premium .pkg-cta {
  background: linear-gradient(180deg,var(--cyan) 0%,var(--cyan-2) 100%);
  color: var(--ink); border-color: var(--cyan-2);
  box-shadow: 0 8px 20px rgba(56,182,240,0.30);
}
.pkg-premium .pkg-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(56,182,240,0.36); text-decoration: none; }

.pkg-bg {
  position: absolute;
  right: -30px; bottom: -30px;
  width: 170px; height: 170px;
  opacity: 0.10;
  pointer-events: none;
  color: var(--pkg-tier);
}

.pkg-footnote {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
}
.pkg-footnote a { color: var(--brand); }

/* ===== Cennik osadzony z /pakiety-cennik/ w <iframe> ===== */
.cennik-embed {
  position: relative;
  width: 100%;
}
.cennik-embed-frame {
  display: block;
  width: 100%;
  height: 1180px;          /* wartość startowa — JS dopasuje do treści */
  border: 0;
  overflow: hidden;
  background: transparent;
  color-scheme: light;
}
.cennik-embed-fallback,
.cennik-embed-link {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
}
.cennik-embed-link a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.cennik-embed-link a:hover {
  border-bottom-color: var(--brand);
  text-decoration: none;
}

/* ===== Rozwijane porównanie funkcji (dane: PAKIETY/pakiety.json) ===== */
.pkg-compare {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pkg);
  overflow: hidden;
}

.pkg-compare-toggle {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  color: var(--text);
  transition: background .15s ease;
}
.pkg-compare-toggle:hover { background: var(--paper); }
.pkg-compare-chev {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 9px;
  background: var(--brand-tint);
  color: var(--brand);
  transition: transform .2s ease;
}
.pkg-compare.is-open .pkg-compare-chev { transform: rotate(180deg); }
.pkg-compare-title {
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em;
  flex: 1;
}
.pkg-compare-meta {
  font-family: var(--mono);
  font-size: 11.5px; color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pkg-compare-body { border-top: 1px solid var(--line); }

/* --- zakładki --- */
.pkg-tabs {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 24px 0;
}
.pkg-tabs-list {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pkg-tab {
  border: 0; cursor: pointer;
  padding: 8px 16px;
  border-radius: 9px;
  background: transparent;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.pkg-tab:hover { color: var(--text); }
.pkg-tab.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10,22,40,.18);
}
.pkg-tabs-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px; color: var(--muted-2, var(--muted));
  letter-spacing: 0.02em;
}

.pkg-view { padding: 18px 24px 24px; }

/* --- tabela porównawcza --- */
.pkg-table-wrap { overflow-x: auto; }
.pkg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 720px;
}
.pkg-table thead th {
  background: #fff;
  padding: 12px 10px;
  text-align: left;
  border-bottom: 2px solid var(--line-strong);
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.pkg-table thead th.pkg-th-plan {
  text-align: center;
  border-bottom: 2px solid var(--th-tier, var(--line-strong));
}
.pkg-th-name {
  display: block;
  font-family: var(--font-sans-pkg);
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.02em; text-transform: none;
  color: var(--th-tier, var(--ink));
}
.pkg-th-price {
  display: block; margin-top: 3px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0; text-transform: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pkg-table tbody tr { border-bottom: 1px solid var(--line); }
/* Klik w dowolnym miejscu wiersza rozwija opis funkcji — kursor musi to
   zapowiedzieć, zanim ktos kliknie. Wiersze dzialow nie sa klikalne, wiec
   ich nie dotyczy (nizej przywracamy im kursor domyslny). */
.pkg-table tbody tr { cursor: pointer; }
.pkg-table tbody tr.pkg-tr-group { cursor: default; }

/* Podświetlenie całego wiersza pod kursorem. Przy 29 pozycjach i czterech
   kolumnach oko gubi linię w połowie tabeli — pasek prowadzi wzrok od nazwy
   funkcji do właściwej kolumny. Tło --paper było na to za słabe: to ten sam
   kolor, co tło nagłówków, więc wiersz pod kursorem niczym się nie różnił. */
.pkg-table tbody tr:hover td,
.pkg-table tbody tr:hover th {
  background: rgba(37, 99, 235, 0.07);
}
/* Pionowa kreska z lewej domyka wiersz — widać, gdzie się zaczyna. */
.pkg-table tbody tr:hover .pkg-fcell {
  box-shadow: inset 3px 0 0 var(--brand-2);
}
/* Nazwa funkcji reaguje razem z wierszem, żeby było jasne, że to ona jest
   klikalna, a nie cały wiersz. */
.pkg-table tbody tr:hover .pkg-fname {
  color: var(--brand-deep);
  border-bottom-color: var(--brand);
}
/* Wiersz działu musi się odciąć od wierszy funkcji, bo przy 29 pozycjach
   tabela zlewa się w jedną listę. Tło --paper było praktycznie tym samym,
   co tło wiersza pod kursorem, więc dział ginął. Teraz: tint marki, pasek
   z lewej i wyraźna kreska nad działem. */
.pkg-table tr.pkg-tr-group td {
  padding: 13px 10px 10px;
  background: var(--brand-tint);
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--brand-deep);
  border-top: 2px solid var(--brand-2);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: inset 3px 0 0 var(--brand-2);
}
/* Dział nie jest klikalny, więc nie podświetlamy go pod kursorem. */
.pkg-table tr.pkg-tr-group:hover td { background: var(--brand-tint); }

.pkg-fcell {
  /* Wiersz był 40 px wysoki przy 29 pozycjach — tabela rosła do 1731 px
     i znikała poza ekranem. Ciaśniejszy odstęp pionowy, poziomy bez zmian. */
  padding: 5px 10px;
  text-align: left; font-weight: 400;
  max-width: 380px;
}
.pkg-fname {
  border: 0; background: none; padding: 0; cursor: inherit;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  color: var(--text-2, var(--text));
  text-align: left; line-height: 1.4;
  border-bottom: 1px dotted var(--line-strong);
}
.pkg-fname:hover { color: var(--brand); border-bottom-color: var(--brand); }
.pkg-fdesc { display: none; }
.pkg-fsince {
  display: block;
  width: fit-content;
  max-width: max-content;
  margin: 4px 0 0;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--brand-tint);
  border: 1px solid var(--line-strong);
  color: var(--brand-deep);
  font-size: 10.5px; font-weight: 600; line-height: 1.6;
  white-space: nowrap;
  cursor: help;
}
.pkg-fcell.is-open .pkg-fdesc {
  display: block;
  margin-top: 6px;
  padding: 8px 11px;
  background: var(--brand-tint);
  border-left: 2px solid var(--brand);
  border-radius: 0 8px 8px 0;
  font-size: 12.5px; font-weight: 400; line-height: 1.55;
  color: var(--muted);
}

.pkg-cell { padding: 5px 10px; text-align: center; }
.pkg-yes { color: var(--good); font-weight: 700; }
.pkg-no  { color: var(--line-strong); font-weight: 700; }

.pkg-table tfoot td { padding: 16px 10px 4px; }
.pkg-foot-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--ink-3, var(--line-strong));
  background: var(--ink-2, var(--ink));
  color: #fff;
  font-size: 13px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background .15s ease;
}
.pkg-foot-cta:hover { background: var(--ink); color: #fff; text-decoration: none; }

/* --- widok: funkcje w pakietach --- */
.pkg-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pkg-list-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-top: 3px solid var(--th-tier, var(--line-strong));
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  background: #fff;
}
.pkg-list-head { margin-bottom: 12px; }
.pkg-list-code {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--th-tier, var(--muted)); opacity: .8;
}
.pkg-list-name {
  margin: 3px 0 2px;
  font-family: var(--font-sans-pkg);
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink);
}
.pkg-list-price {
  font-family: var(--mono);
  font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pkg-list-group { margin-top: 12px; }
.pkg-list-glabel {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 8px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--brand-tint);
  box-shadow: inset 3px 0 0 var(--brand-2);
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--brand-deep);
}
.pkg-list-gcount {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0;
}
.pkg-list-group ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px;
}
.pkg-list-group li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; line-height: 1.45;
  color: var(--text-2, var(--text));
}
.pkg-list-ftxt { cursor: help; }
.pkg-list-card .pkg-foot-cta { margin-top: 18px; }

@media (max-width: 1080px) {
  .pkg-list-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pkg-compare-toggle { padding: 16px; gap: 10px; }
  .pkg-compare-meta { display: none; }
  .pkg-tabs { padding: 14px 16px 0; }
  .pkg-tabs-note { display: none; }
  .pkg-view { padding: 14px 16px 20px; }
  .pkg-list-grid { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 60px 22px 60px;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  transition: background 0.15s;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.2s, background 0.15s;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.faq summary:hover { background: var(--paper-3); }
.faq-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  letter-spacing: 0.06em;
}
.faq-body {
  padding: 0 60px 24px 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}
.faq-body strong { color: var(--text); }

/* ===== Quotes ===== */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.quote {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
}
.quote-num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.10em;
  margin-bottom: 18px;
  display: block;
  text-transform: uppercase;
}
.quote-body {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.55;
  margin: 0 0 20px;
}
.quote-cite {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== Demo ===== */
.demo-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.demo-video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 16/9;
}
.demo-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  inset: 0;
}
.demo-cta {
  background: var(--ink);
  color: var(--ink-text);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.demo-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 100% 0%, rgba(29,78,216,.22), transparent 60%);
  pointer-events: none;
}
.demo-cta > * { position: relative; }
.demo-cta-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--gold);
  text-transform: uppercase;
}
.demo-cta h3 {
  font-size: 24px;
  margin: 0;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.demo-cta p {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
}
.demo-cta-links {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

/* ===== Form ===== */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}
.form-aside {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}
.form-aside-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.form-aside-stat-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.form-aside-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.form-aside p { margin: 18px 0 0; }
form.contact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 16px;
}
form.contact label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
form.contact input,
form.contact select,
form.contact textarea {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--text);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color 0.15s, background 0.15s;
}
form.contact input:focus,
form.contact select:focus,
form.contact textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
}
form.contact textarea { resize: vertical; min-height: 110px; }
form.contact .check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}
form.contact .check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
form.contact .check a { color: var(--brand); }
form.contact small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--ink-muted);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 24px;
}
/* Nowe logo to znak graficzny + napis — przy 130px sam napis robił się
 o jedną trzecią mniejszy niż w poprzedniej wersji, stąd szersza ramka. */
.footer-brand img {
  width: 168px;
  height: auto;
  /* Proporcje wymuszone jawnie — gdyby jakakolwiek reguła nadała
     wysokość, logo i tak nie zostanie rozciągnięte. */
  aspect-ratio: 714 / 274;
  object-fit: contain;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 360px;
}
.footer-brand .footer-partner {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--ink-line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--ink-text);
  text-transform: uppercase;
}
.footer-brand .footer-partner::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--good);
}
/* Nagłówki kolumn stopki to h3, nie h4 — po h2 ostatniej sekcji strony
   przeskok o dwa poziomy łamał hierarchię nagłówków. Selektor obejmuje oba
   zapisy, bo stopka wraca też z blog-core.php. */
.footer-col h3,
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-text);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-col li {
  font-size: 13.5px;
}
.footer-col a {
  color: var(--ink-muted);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--paper);
  text-decoration: none;
}
.footer-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.footer-bot a {
  color: var(--ink-muted);
  margin-left: 18px;
}
.footer-bot a:hover { color: var(--paper); text-decoration: none; }

/* ===== Filmy: video list reused from main site ===== */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}
.video-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 20px;
  align-items: start;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.video-item:hover { border-color: var(--ink); }
.video-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  position: relative;
  aspect-ratio: 16/9;
}
.video-media iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-content {
  display: flex;
  flex-direction: column;
}
.video-id {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.video-content h3 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.video-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.video-meta span + span::before {
  content: "·";
  margin: 0 8px;
  color: var(--muted-2);
}
.video-desc {
  font-size: 14px;
  color: var(--text-2);
  margin: 0 0 14px;
  line-height: 1.55;
}
.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.video-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--text-2);
  border: 1px solid var(--line);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.video-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.video-link:hover { text-decoration: underline; }

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.pagination-controls {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
}
.page-btn:hover { border-color: var(--ink); }
.page-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.page-btn[disabled] { opacity: 0.4; cursor: default; }
.page-btn[disabled]:hover { border-color: var(--line); }

.info-band {
  margin-top: 32px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}
.info-band strong { color: var(--text); font-weight: 600; }
.info-band-item {
  position: relative;
  padding-top: 22px;
}
.info-band-item::before {
  content: attr(data-label);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--brand);
  text-transform: uppercase;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .pkg-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 20px 0 64px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); padding: 24px 0 !important; }
  .step:last-child { border-bottom: none; }
  .step:first-child { padding-top: 0 !important; }
  .case-grid { grid-template-columns: 1fr; gap: 32px; }
  .case-stats { grid-template-columns: 1fr; }
  .case-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .case-stat:last-child { border-bottom: none; }
  .demo-grid { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-band { grid-template-columns: 1fr; }
  /* Menu celowo NIE jest tu ukrywane — wszystkie pozycje mają być dostępne
     na każdej szerokości. Zawija się na kolejne wiersze (reguły wyżej). */
  .site-brand-partner { display: none; }
  .video-item { grid-template-columns: 1fr; }
  .hero-meta-row { gap: 20px; }
}
@media (max-width: 640px) {
  .section { padding: 36px 0 52px; }
  .cards { grid-template-columns: 1fr; }
  .pkg-grid--4, .pkg-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header-bar { min-height: 60px; }
  .site-cta { padding: 9px 14px; font-size: 12.5px; }
  .utility-bar .container { gap: 6px; }
  .utility-meta { gap: 12px; font-size: 11px; }
  .savings-row { grid-template-columns: 1fr; gap: 6px; }
  .savings-value { text-align: left; }
  .faq summary { padding: 22px 56px 22px 0; }
  .faq-num { position: static; transform: none; display: block; margin-bottom: 6px; }
}

/* ===== Nagłówek na telefonie =====
   Pasek użytkowy, marka, dwa przyciski i zawijające się menu składały się na
   ~300 px — ponad jedną trzecią ekranu telefonu (przy wysokości 667 px blisko
   połowy). Całość była przy tym przyklejona, więc jechała z użytkownikiem
   przez całą stronę i zabierała to miejsce bez przerwy.

   Świadomie NIE robimy osobnej wersji mobilnej ani menu pod „hamburgerem":
   układ jest responsywny i działa poprawnie, a pozycje menu mają być widoczne
   na każdej szerokości. Problem dotyczy wyłącznie wysokości, więc nagłówek
   przestaje się przyklejać i ścieśnia się — zajmuje miejsce raz, u góry,
   a potem odjeżdża z przewijaniem i cały ekran zostaje na treść. */
@media (max-width: 900px) {
  .site-top { position: static; }

  /* Adres i „od 2010" są w stopce, a na górze zabierały osobny wiersz —
     nikt z telefonu adresu stamtąd nie przepisuje. Numer i mail zostają:
     to jedyne rzeczy z tego paska, w które ktoś na telefonie kliknie. */
  .utility-bar .utility-meta:first-child { display: none; }
  /* „Cennik i pakiety" jest pozycją menu dwa wiersze niżej — w pasku
     użytkowym łamał telefon i mail na drugi wiersz za sam duplikat. */
  .utility-bar a[href*="pakiety-cennik"] { display: none; }
  .utility-bar .container {
    min-height: 0;
    padding-top: 6px;
    padding-bottom: 6px;
    justify-content: center;
  }

  /* Menu skrócone do wyjść, z których na telefonie ktoś skorzysta:
     strona produktu, dokumentacja i blog (klasa nav-mob w szablonach).
     Reszta pozycji to skoki do sekcji tej samej strony — na telefonie
     szybciej je po prostu przewinąć niż szukać w dwóch rzędach menu.
     Selektor po klasie, nie po kolejności: dopisanie pozycji do menu
     nie ma zmieniać tego, co widać na telefonie. */
  .site-nav a:not(.nav-mob) { display: none; }
  .site-nav { border-top: none; padding-top: 0; padding-bottom: 2px; }
  .site-nav a { padding: 8px 12px; font-size: 13px; }

  /* Przyciski akcji z nagłówka schodzą. Zabierały cały rząd, a każda
     strona ma to samo wezwanie w treści — pobieralnia wielki przycisk
     pobrania, landing sekcję kontaktu. W nagłówku telefonu powtarzały
     się z tym, co i tak jest kilka centymetrów niżej. */
  .site-header .site-cta,
  .site-header .site-cta-group,
  .site-header .site-cta-sep { display: none; }

  .site-header-bar { min-height: 56px; gap: 8px 12px; }
  .brand-logo { width: 30px; }
  .brand-name { font-size: 16px; }
}

.hex-bg-section {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hex-bg-section .hex-cluster {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
}
.hex-bg-hero {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hex-bg-hero .hex-cluster {
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
}

.hex-bg-global {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  width: 100%;
}
.hex-bg-global .hex-cluster {
  position: absolute;
  pointer-events: none;
  opacity: 1;
}

/* =====================================================================
   01 / PODGLĄD PROGRAMU — kolaż zrzutów
   Kadry leżą krzyżowo i nachodzą na siebie. Pozycja, szerokość, obrót
   i warstwa każdego z nich pochodzą ze zmiennych --sx/--sy/--sw/--sr/--sz
   ustawianych w HTML, więc układ przestawia się bez ruszania stylów.
   Ruch liczy main.js (showcaseCollage): wjazd sterowany scrollem,
   powolny dryf w spoczynku i odsunięcie sąsiadów przy najechaniu.
   ===================================================================== */
.showcase { overflow: hidden; }

.showcase-stage {
  position: relative;
  width: 100%;
  max-width: 1460px;
  margin: 8px auto 0;
  padding: 0 var(--gutter);
  /* wysokość sceny proporcjonalna do szerokości — kadry są pozycjonowane w % */
  aspect-ratio: 16 / 11;
  perspective: 1400px;
}

.shot {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: var(--sw);
  margin: 0;
  z-index: var(--sz);
  transform-style: preserve-3d;
  /* stan startowy — kadry są zsunięte i przygaszone, main.js je rozkłada */
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity .5s ease;
  outline: none;
}
.showcase-stage.is-static .shot {
  opacity: 1;
  transform: translate(0, 0) rotate(var(--sr));
}

.shot-frame {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 18px 44px rgba(10,22,40,.30),
    0 4px 12px rgba(10,22,40,.18);
  transition: box-shadow .35s ease, border-color .35s ease;
}
.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* numer kadru */
.shot-badge {
  position: absolute;
  left: 10px; top: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(10,22,40,.78);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .06em;
}

/* opisówka — zawsze w DOM, odsłaniana przy najechaniu/foksie */
.shot-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 16px 14px;
  background: linear-gradient(180deg, rgba(10,22,40,0) 0%, rgba(10,22,40,.92) 55%);
  border-radius: 0 0 14px 14px;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.shot-cap strong {
  display: block;
  font-size: 14.5px; font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}
.shot-cap span {
  display: block;
  font-size: 12.5px; line-height: 1.45;
  color: rgba(231,236,244,.82);
}

.shot:hover .shot-cap,
.shot:focus-visible .shot-cap { opacity: 1; transform: translateY(0); }
.shot:hover .shot-frame,
.shot:focus-visible .shot-frame {
  border-color: rgba(111,211,255,.45);
  box-shadow:
    0 30px 70px rgba(10,22,40,.42),
    0 0 0 1px rgba(111,211,255,.28);
}
.shot:focus-visible .shot-frame { outline: 2px solid var(--brand-2); outline-offset: 3px; }

.showcase-note {
  margin: 28px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.showcase-note a { color: var(--brand); }

/* --- układ zwinięty: bez kolażu, czytelna lista --- */
@media (max-width: 900px) {
  .showcase-stage {
    position: static;
    aspect-ratio: auto;
    display: grid;
    gap: 18px;
    perspective: none;
  }
  .shot {
    position: static;
    width: 100%;
    opacity: 1 !important;
    transform: none !important;
  }
  .shot-cap {
    position: static;
    opacity: 1;
    transform: none;
    padding: 12px 2px 0;
    background: none;
    color: var(--text);
  }
  .shot-cap span { color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  .shot {
    opacity: 1 !important;
    transform: translate(0,0) rotate(var(--sr)) !important;
    transition: none !important;
  }
  .shot-cap { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------
   Powiększenie kadru (lightbox). W oknie ładowany jest oryginał zrzutu
   (1917 px), a nie zoptymalizowana kopia z kolażu — chodzi o czytelność
   tekstu w oknach programu.
   --------------------------------------------------------------------- */
.shot-zoom {
  position: absolute;
  right: 10px; top: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(10,22,40,.72);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .25s ease, transform .25s ease;
}
.shot { cursor: zoom-in; }
.shot:hover .shot-zoom,
.shot:focus-visible .shot-zoom { opacity: 1; transform: scale(1); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(6, 14, 26, .93);
  backdrop-filter: blur(10px) saturate(120%);
  opacity: 0;
  transition: opacity .28s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox-inner {
  margin: 0;
  max-width: min(1600px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: scale(.965);
  opacity: 0;
  transition: transform .32s cubic-bezier(.22,.61,.36,1), opacity .32s ease;
}
.lightbox.is-open .lightbox-inner { transform: scale(1); opacity: 1; }

.lightbox-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  background: var(--ink-2);
}

.lightbox-cap {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}
.lightbox-count {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--cyan, #6FD3FF);
  margin-bottom: 6px;
}
.lightbox-title { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.lightbox-desc  { display: block; font-size: 13.5px; line-height: 1.55; color: rgba(231,236,244,.78); }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.34); }

.lightbox-close {
  top: 18px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 10px;
  font-size: 26px; line-height: 1;
}
.lightbox-nav {
  top: 50%;
  width: 46px; height: 64px;
  margin-top: -32px;
  border-radius: 12px;
  font-size: 30px; line-height: 1;
}
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-nav:active { transform: scale(.94); }

.lightbox-hint {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: rgba(231,236,244,.42);
}

@media (max-width: 720px) {
  .lightbox-img { max-height: calc(100vh - 230px); }
  .lightbox-nav { width: 38px; height: 52px; margin-top: -26px; font-size: 24px; }
  .lightbox-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-inner { transition: none; }
}

/* ===== 05 / Opinie Klientów z bloga =====
   Dwie kolumny: po lewej ocena i wezwanie, po prawej rozkład. Układ i wagi
   te same co w sekcji, którą zastąpiła, żeby strona nie zmieniła rytmu. */
.ocenyl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 34px;
  align-items: start;
}
.ocenyl-score { text-align: left; }
.ocenyl-value {
  font-size: clamp(46px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -.02em;
}
.ocenyl-max { font-size: .42em; font-weight: 600; color: var(--muted-2); margin-left: 4px; }
.ocenyl-score .stars-static { display: inline-flex; gap: 3px; margin: 12px 0 6px; }
.ocenyl-score .stars-static svg { width: 22px; height: 22px; }
/* Wypełnienia gwiazdek żyły dotąd tylko w blog.css, a strona produktu go nie
   wczytuje — ścieżki zostawały bez reguły i dostawały domyślną czerń.
   Te same wartości co na blogu, żeby ocena wyglądała wszędzie tak samo.
   Połówka korzysta z gradientu, który wypisuje sam ksef_oceny_stars_html(). */
.stars-static .on   { fill: #f0a92c; }
.stars-static .off  { fill: var(--paper-4); }
.stars-static .half { fill: url(#halfGrad); }
.ocenyl-count {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 22px;
}
.ocenyl-score .btn { margin-right: 14px; }
.ocenyl-all {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.ocenyl-all:hover { text-decoration: underline; }

.ocenyl-stats {
  background: var(--ink);
  border: 1px solid var(--ink-line-2);
  border-radius: var(--radius);
  padding: 24px 26px 20px;
  color: var(--ink-text);
}
.ocenyl-stats-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.ocenyl-stats-title { font-size: 16px; font-weight: 700; }
.ocenyl-stats-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  color: var(--ink-muted);
}
.ocenyl-row {
  display: grid;
  grid-template-columns: 46px 1fr 28px;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.ocenyl-gw {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.ocenyl-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
.ocenyl-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6fc2ee, #1d4ed8);
}
.ocenyl-num {
  font-family: var(--mono);
  font-size: 12.5px;
  text-align: right;
  color: var(--ink-text);
}
.ocenyl-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-line);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* Brak ocen — sekcja zaprasza, zamiast udawać, że jakieś są. */
.ocenyl-pusto {
  max-width: 620px;
  padding: 26px 28px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: var(--paper);
}
.ocenyl-pusto p { margin: 0 0 18px; color: var(--text-2); line-height: 1.6; }

@media (max-width: 860px) {
  .ocenyl-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* Cytaty w tej samej sekcji co ocena — oddzielone linią, żeby było widać,
   że to druga połowa tej samej odpowiedzi, a nie nowy temat. */
.ocenyl-cytaty {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.ocenyl-cytaty-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.ocenyl-cytaty-head a {
  font-size: 12px;
  letter-spacing: .04em;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  text-transform: none;
}
.ocenyl-cytaty-head a:hover { text-decoration: underline; }
