/* ==========================================================================
   SYSONLINE — Oferta (szablon)
   Stos: Bootstrap 5 · jQuery · Slick · Magnific Popup · Lenis · ScrollFX
   --------------------------------------------------------------------------
   Spis treści
   01. Tokeny (kolory, fonty, easing)
   02. Baza i typografia
   03. Elementy wspólne (linie siatki, etykiety, display, przyciski, tagi)
   04. Preloader
   05. Header + offcanvas
   06. (kursor usunięty)
   07. Sekcje pin — mechanika wspólna
   08. HERO — okno wideo rozszerzające się na cały ekran
   09. Statement — tekst wypełniany słowo po słowie
   10. Oferta — kafelki
   11. Zoom — „B●TY.AI”, kropka wypełnia ekran
   12. Sekcja ciemna AI + makieta czatu + obrotowy napis
   13. Grow — „DIGITAL / WORKER”, rozsuwane słowa i rosnące wideo
   14. Realizacje — slider Slick
   15. Dlaczego my — zasłony na zdjęciach + liczniki
   16. Proces — karty układane w stos
   17. Pasek hasłem (marquee)
   18. Kontakt + stopka
   19. Magnific Popup — skórka
   20. Reveal — animacje wejścia
   21. Ograniczony ruch (prefers-reduced-motion)
   22. Podstrony — elementy wspólne (nagłówek, filtry, karty, CTA)
   23. Branże + Realizacje (siatka miniatur, logotypy)
   24. Podstrona usługi
   25. O nas (sekcje, wartości, opinie)
   26. Kontakt
   27. Wycena — kreator projektu
   28. Case study (projekt-*.html)
   29. Voucher, spotkanie (iframe) i rozwiązania (tabela)
   ========================================================================== */


/* 01. TOKENY
   ========================================================================== */
:root {
  /* kolorystyka SYSONLINE — stal, szarość, biel + akcent z logo (niebieski → cyjan).
     Fiolety i mięta z poprzedniego motywu usunięte. */

  /* stal / szarości */
  --sx-steel-950: #12171D;
  --sx-steel-900: #1B222B;
  --sx-steel-800: #242D38;
  --sx-steel-700: #33404E;
  --sx-steel-500: #5F6E7E;
  --sx-steel-300: #AEB9C4;
  --sx-steel-200: #D5DCE3;
  --sx-steel-100: #E8ECF0;
  --sx-steel-50:  #F3F5F7;
  --sx-white: #fff;

  /* akcent z logo — odcienie przyciemnione tak, by biały tekst miał kontrast ≥ 4.5:1 */
  --sx-accent: #1F64C8;         /* niebieski z logo */
  --sx-accent-2: #0B7FA8;       /* cyjan z logo, przyciemniony */
  --sx-ice: #CDEBF6;            /* jasny lodowy cyjan: tła plakietek, akcent na ciemnym tle */
  --sx-tint-1: #E3EEF8;         /* jasne tła (gradient miękki, karty) */
  --sx-tint-2: #E2ECF3;
  --sx-tint-3: #E0F2F4;

  /* role */
  --sx-ink: #141A21;            /* nagłówki i mocny tekst na jasnym tle */
  --sx-text: #46515C;           /* tekst podstawowy (≈ 8:1 na bieli) */
  --sx-muted: #5F6E7E;          /* tekst pomocniczy (≈ 5:1 na bieli) */
  --sx-gray: #E8ECF0;
  --sx-surface: #F3F5F7;
  --sx-btn-dark: #1B222B;       /* ciemne przyciski, burger, „do góry” — stałe, niezależne od wariantu tła */

  /* ciemne sekcje — wariant D3 „Ciemnoszary” (wybrany 2026-10-05) */
  --sx-dark: #2B333C;           /* tło ciemnych sekcji, offcanvas, piny */
  --sx-dark-2: #36404B;         /* karty i kafle w ciemnych sekcjach */
  --sx-dark-3: #222930;         /* stopka */
  --sx-dark-rest: #4A5562;      /* słowa „przed wypełnieniem” w efekcie scrolla na ciemnym tle */

  --sx-grad: linear-gradient(100deg, var(--sx-accent), var(--sx-accent-2));
  --sx-grad-light: linear-gradient(100deg, #6AAEFF, #4FD0E6);   /* słowa w gradiencie na ciemnym tle */
  --sx-grad-soft: linear-gradient(90deg, var(--sx-tint-1) 0%, var(--sx-tint-2) 50%, var(--sx-tint-3) 100%);

  /* linie siatki i podziałów — jedna siła kreski na jasnym i ciemnym tle */
  --sx-line: rgba(20, 26, 33, .1);
  --sx-line-dark: rgba(255, 255, 255, .12);

  /* fonty — Roboto jak --vt-heading na sysonline.pl, Outfit do wielkich haseł */
  --sx-font-heading: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sx-font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sx-font-display: "Outfit", "Roboto", system-ui, sans-serif;

  --sx-ease: cubic-bezier(.22, 1, .36, 1);
  --sx-ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --sx-header-h: 96px;             /* wysokość headera na górze strony */
  --sx-header-h-scrolled: 76px;    /* po przewinięciu (header zostaje przyklejony) */
  --sx-header-pad: clamp(16px, 2.6vw, 64px);   /* odstęp logo i akcji od krawędzi ekranu */
  --sx-logo-w: 260px;
  --sx-ctl-h: 3rem;                /* wysokość kontrolek w headerze (= CTA „Wyceń projekt”), też strzałka „Przewiń” */
  --sx-radius: 28px;
  --sx-gutter: clamp(16px, 3vw, 48px);

  /* szerokość treści — rośnie na dużych ekranach (zob. progi niżej) */
  --sx-container: 1320px;
  --sx-container-narrow: 1040px;

  /* siła efektów „powiększania” przy scrollu: 1 = bazowo, 1.3 = +30%.
     Mnoży nadmiar skali (wideo w hero i grow, ikona w B●TY.AI, zdjęcia za zasłoną)
     oraz poziomy dryf wielkich haseł. */
  --sx-fx: 1.3;
}

/* 1200–1399: menu, język, CTA i burger obok logo — logo nieco mniejsze, żeby wszystko weszło w jeden rząd */
@media (max-width: 1399.98px) {
  :root { --sx-logo-w: 230px; }
}
@media (max-width: 991.98px) {
  :root { --sx-header-h: 72px; --sx-header-h-scrolled: 64px; --sx-logo-w: 190px; }
}

/* Duże rozdzielczości: szerszy container + większa baza fontu (rem skaluje całą typografię) */
@media (min-width: 1600px) {
  :root { --sx-container: 1480px; --sx-container-narrow: 1120px; --sx-header-h: 100px; --sx-header-h-scrolled: 80px; --sx-logo-w: 290px; }
  html { font-size: 17px; }
}
@media (min-width: 1920px) {
  :root { --sx-container: 1680px; --sx-container-narrow: 1240px; --sx-header-h: 108px; --sx-header-h-scrolled: 84px; --sx-logo-w: 320px; }
  html { font-size: 18px; }
}
@media (min-width: 2400px) {
  :root { --sx-container: 1960px; --sx-container-narrow: 1440px; --sx-header-h: 120px; --sx-header-h-scrolled: 92px; --sx-logo-w: 360px; }
  html { font-size: 20px; }
}


/* 02. BAZA I TYPOGRAFIA
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sx-font-body);
  font-size: 1.2rem; /* +20% (zwykly tekst) */
  line-height: 1.65;
  color: var(--sx-text);
  background: var(--sx-white);
  -webkit-font-smoothing: antialiased;
}

/* Przycinanie poziomego nadmiaru (slider z widocznymi krawędziami, wielkie hasła).
   clip (nie hidden!) — nie tworzy kontenera przewijania, więc nie psuje position: sticky.
   Na <main>, bo overflow z <body> jest przenoszony na viewport i nie ogranicza szerokości układu na mobile. */
main { overflow-x: clip; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sx-font-heading);
  color: var(--sx-ink);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
}

a { color: inherit; text-decoration: none; transition: color .3s ease; }
img, video { max-width: 100%; display: block; }
::selection { background: var(--sx-ice); color: var(--sx-ink); }

/* Scrollbar — wąski (4px), stalowy w kolorystyce SYSONLINE. Dotyczy wszystkich
   przewijanych elementów (strona, offcanvas, textarea, popupy).
   Chrome / Edge / Safari: ::-webkit-scrollbar (dokładnie 4px).
   Firefox: standardowe scrollbar-width / scrollbar-color — tylko tam, bo w nowym
   Chrome ustawienie tych właściwości wyłącza ::-webkit-scrollbar (szerokość „thin” ≠ 4px). */
:root {
  --sx-scroll-thumb: #AEB9C4;        /* stal, czytelna na białym tle */
  --sx-scroll-thumb-hover: #1F64C8;
  --sx-scroll-track: transparent;
}
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--sx-scroll-track); }
::-webkit-scrollbar-thumb { background: var(--sx-scroll-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--sx-scroll-thumb-hover); }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--sx-scroll-thumb) var(--sx-scroll-track); }
}

:focus-visible {
  outline: 2px solid var(--sx-focus, var(--sx-accent));
  outline-offset: 3px;
  border-radius: 4px;
}
/* WCAG 1.4.11: --sx-accent na ciemnym tle ma ok. 2.8:1 → w ciemnych kontekstach
   obwódka fokusu w --sx-ice (≥ 10:1 we wszystkich wariantach D0–D3) */
.sx-section--dark, .sx-offcanvas, .sx-footer, .sx-dots, .sx-grow, .sx-feature,
.sx-step:nth-child(3), .sx-svc-aside, .sx-wsum, .mfp-wrap.mfp-sx { --sx-focus: var(--sx-ice); }
/* jasne elementy wewnątrz ciemnych sekcji wracają do akcentu */
.sx-form--light { --sx-focus: var(--sx-accent); }

.sx-skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100000;
  padding: 10px 18px;
  background: var(--sx-btn-dark);
  color: var(--sx-white);
  border-radius: 6px;
  transform: translateY(-200%);
}
.sx-skip:focus { transform: none; color: var(--sx-white); }

.sx-container {
  width: 100%;
  max-width: var(--sx-container);
  margin-inline: auto;
  padding-inline: var(--sx-gutter);
}
.sx-container--narrow { max-width: var(--sx-container-narrow); }

.sx-section { position: relative; padding-block: clamp(80px, 11vw, 160px); }
.sx-section--dark { background: var(--sx-dark); color: rgba(255, 255, 255, .72); }
.sx-section--dark h1, .sx-section--dark h2, .sx-section--dark h3, .sx-section--dark h4 { color: var(--sx-white); }

/* jasna sekcja nachodząca zaokrągloną krawędzią na ciemną */
.sx-section--lift {
  margin-top: calc(var(--sx-radius) * -1.5);
  border-radius: calc(var(--sx-radius) * 1.5) calc(var(--sx-radius) * 1.5) 0 0;
  background: var(--sx-white);
  z-index: 2;
}

.sx-grad-text {
  background: var(--sx-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* na ciemnym tle jaśniejsza wersja gradientu — ciemny niebieski z logo ginie na grafitowym tle */
.sx-section--dark .sx-grad-text,
.sx-grow .sx-grad-text,
.sx-step:nth-child(3) .sx-grad-text,
.sx-offcanvas .sx-grad-text { background-image: var(--sx-grad-light); }


/* 03. ELEMENTY WSPÓLNE
   ========================================================================== */

/* Pionowe linie siatki (25/50/75% szerokości) — znak rozpoznawczy układu.
   Rysowane obramowaniem, a nie gradientem tła: obramowania są przyciągane do pełnych
   pikseli, więc każda kreska ma dokładnie 1px i ten sam kolor (gradient w ułamkowej
   pozycji rozmywał się na 2px jaśniejszej linii — kreski wyglądały na nierówne).
   ::before = linie 25% i 75%, ::after = linia środkowa. */
.sx-guides { position: relative; isolation: isolate; --g: var(--sx-line); }
.sx-section--dark.sx-guides,
.sx-section--dark .sx-guides,
.sx-guides--dark { --g: var(--sx-line-dark); }

.sx-guides::before,
.sx-guides::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
}
.sx-guides::before { left: 25%; right: 25%; border-inline: 1px solid var(--g); }
.sx-guides::after  { left: 50%; width: 0; border-left: 1px solid var(--g); }

@media (max-width: 991.98px) {
  .sx-guides::before { display: none; }
}

/* Pionowa etykieta osadzona na środkowej linii.
   Kontener flex centruje etykietę niezależnie od przeglądarki — wcześniej
   width:max-content + margin:auto przy writing-mode bywało liczone od lewej
   i etykieta „przyklejała się” do lewej krawędzi ekranu. */
.sx-vlabel {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-block: clamp(36px, 5vw, 72px);
}
.sx-vlabel > span {
  display: block;
  padding: 20px 0;
  writing-mode: vertical-rl;
  font-family: var(--sx-font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .32em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--sx-ink);
  background: var(--sx-white);
}
.sx-section--dark .sx-vlabel > span { background: var(--sx-dark); color: var(--sx-white); }

/* Nadtytuł */
.sx-overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--sx-font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sx-ink);
}
.sx-overline::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--sx-grad);
}
.sx-section--dark .sx-overline { color: var(--sx-white); }

/* Wielkie hasło typu KIM.JESTEŚMY */
.sx-display {
  margin: 0;
  font-family: var(--sx-font-display);
  font-size: clamp(3.2rem, 10.5vw, 10rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--sx-ink);
}
.sx-section--dark .sx-display { color: var(--sx-white); }

/* delikatny ruch poziomy hasła w trakcie przewijania */
[data-sfx="view"] > .sx-display {
  transform: translate3d(calc((.5 - var(--p, .5)) * 14% * var(--sx-fx)), 0, 0);
  will-change: transform;
}

.sx-display-wrap { overflow: hidden; padding-block: .1em; }

/* Lead */
.sx-lead {
  font-size: clamp(1.26rem, 1.56vw, 1.44rem);
  line-height: 1.7;
  max-width: 62ch;
}

/* Przyciski ---------------------------------------------------------------- */

/* 3D flip — odwzorowanie .vy-pr-btn-2 z sysonline.pl */
.sx-btn-flip {
  position: relative;
  display: inline-block;
  perspective: 2000px;
  transform-style: preserve-3d;
  font-family: var(--sx-font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .5px;
  border: 0;
  background: none;
  padding: 0;
}
.sx-btn-flip::before,
.sx-btn-flip::after {
  display: block;
  padding: 1.2em 2em;
  border-radius: 5px;
  transition: all .5s var(--sx-ease);
  white-space: nowrap;
}
.sx-btn-flip::before {
  content: attr(data-front);
  position: relative;
  background: var(--sx-btn-dark);
  color: var(--sx-ice);
  transform: translateY(0) rotateX(0);
}
.sx-btn-flip::after {
  content: attr(data-back);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  background: var(--sx-accent);
  color: var(--sx-ice);
  opacity: 0;
  transform: translateY(-50%) rotateX(90deg);
}
.sx-btn-flip:hover::before,
.sx-btn-flip:focus-visible::before { opacity: 0; transform: translateY(50%) rotateX(90deg); }
.sx-btn-flip:hover::after,
.sx-btn-flip:focus-visible::after { opacity: 1; transform: translateY(0) rotateX(0); }
.sx-btn-flip--sm::before, .sx-btn-flip--sm::after { padding: 1em 1.5em; }
.sx-btn-flip--light::before { background: var(--sx-white); color: var(--sx-ink); }
/* CTA „Wyceń projekt” — gradient SYSONLINE, po najechaniu grafitowy z lodowym napisem */
.sx-btn-flip--grad::before { background: var(--sx-grad); color: var(--sx-white); }
.sx-btn-flip--grad::after { background: var(--sx-btn-dark); color: var(--sx-ice); }

/* Mały przycisk gradientowy w kafelkach */
.sx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: .72em 1.45em;
  border: 0;
  border-radius: 6px;
  font-family: var(--sx-font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sx-white);
  background: var(--sx-grad);
  background-size: 200% 100%;
  background-position: 0 0;
  transition: background-position .5s var(--sx-ease), gap .3s var(--sx-ease), box-shadow .3s ease;
}
.sx-btn:hover { color: var(--sx-white); background-position: 100% 0; gap: 16px; box-shadow: 0 10px 30px -10px rgba(31, 100, 200, .6); }
.sx-btn i { font-size: 0.75rem; }

.sx-btn--ghost {
  color: var(--sx-ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--sx-ink);
}
.sx-btn--ghost:hover { color: var(--sx-white); background: var(--sx-btn-dark); box-shadow: none; }
.sx-section--dark .sx-btn--ghost,
.sx-grow__caption .sx-btn--ghost { color: var(--sx-white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.sx-section--dark .sx-btn--ghost:hover,
.sx-grow__caption .sx-btn--ghost:hover { color: var(--sx-ink); background: var(--sx-ice); }

/* Tagi technologiczne */
.sx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sx-tags li {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--sx-ink);
  background: var(--sx-ice);
}
.sx-tags li:nth-child(2) { background: var(--sx-tint-2); }
.sx-tags li.is-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--sx-line); color: var(--sx-text); }

/* Okrągła ikona z łukiem (jak w kafelkach alpanet) */
.sx-icon-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--sx-ink);
  background: var(--sx-white);
  box-shadow: 0 6px 20px -8px rgba(20, 26, 33, .18);
}
.sx-icon-ring svg {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  transform: rotate(-90deg);
  overflow: visible;
}
.sx-icon-ring circle { fill: none; stroke-width: 1.2; }
.sx-icon-ring .ring-bg { stroke: var(--sx-gray); }
.sx-icon-ring .ring-fg {
  stroke: url(#sx-ring-grad);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 72;
  transition: stroke-dashoffset 1s var(--sx-ease);
}


/* 04. PRELOADER (markup i animacja jak na sysonline.pl)
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #fff;
  transition: opacity .6s var(--sx-ease), visibility .6s;
}
#preloader .preloader-logo {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  text-align: center;
  transform: translateY(-50%);
}
#preloader .preloader-logo img {
  display: inline-block;
  max-width: 200px;
  height: auto;
  animation: TXTImgIn 1500ms ease-in-out infinite;
}
#preloader.is-hidden { opacity: 0; visibility: hidden; }

@keyframes TXTImgIn {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}


/* 05. HEADER + OFFCANVAS
   ========================================================================== */
/* Header przyklejony przez cały czas (bez chowania przy scrollu w dół).
   Pełna szerokość ekranu — bez .sx-container, logo przy lewej krawędzi, akcje przy prawej. */
.sx-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--sx-header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0);
  transition: height .45s var(--sx-ease), background-color .4s ease, box-shadow .4s ease;
}
.sx-header.is-scrolled {
  height: var(--sx-header-h-scrolled);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--sx-line), 0 10px 30px -22px rgba(20, 26, 33, .35);
}

/* kotwice (#formularz itp.) nie chowają się pod przyklejonym headerem */
html { scroll-padding-top: var(--sx-header-h-scrolled); }

.sx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 1.6vw, 32px);
  width: 100%;
  padding-inline: var(--sx-header-pad);
}
.sx-header__logo { display: block; flex: none; }
.sx-header__logo img {
  width: var(--sx-logo-w);
  max-width: none;
  height: auto;
  transition: width .5s var(--sx-ease);
}
/* po przewinięciu logo zmniejsza się razem z headerem */
.sx-header.is-scrolled .sx-header__logo img { width: calc(var(--sx-logo-w) * .8); }

/* Menu: pełne od 1200px (poniżej burger), czytelny rozmiar i odstępy rosnące z ekranem */
.sx-nav { margin-left: auto; }
.sx-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(4px, .6vw, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sx-nav a {
  position: relative;
  display: block;
  padding: .55em .9em;
  border-radius: 999px;
  font-family: var(--sx-font-heading);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .005em;
  color: var(--sx-ink);
  transition: color .3s ease, background-color .3s ease;
}
.sx-nav a::after {
  content: "";
  position: absolute;
  left: .9em; right: .9em; bottom: .2em;
  height: 2px;
  background: var(--sx-grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--sx-ease);
}
.sx-nav a:hover { background: rgba(20, 26, 33, .05); }
.sx-nav a:hover::after,
.sx-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.sx-nav a.is-active { font-weight: 600; }

.sx-header__actions { display: flex; align-items: center; gap: clamp(10px, 1vw, 20px); }
.sx-header__actions .sx-btn-flip { font-size: 1rem; }

/* Przełącznik języka PL / EN — kapsuła z dwiema opcjami (makieta wyglądu) */
.sx-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--sx-line);
  background: rgba(255, 255, 255, .6);
}
.sx-lang__opt {
  display: grid;
  place-items: center;
  min-width: clamp(38px, 2.6vw, 50px);
  height: clamp(38px, 2.6vw, 50px);
  padding-inline: .5em;
  border-radius: 999px;
  font-family: var(--sx-font-heading);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--sx-muted);
  transition: color .3s ease, background-color .3s ease;
}
.sx-lang__opt:hover { color: var(--sx-ink); background: var(--sx-steel-100); }
.sx-lang__opt.is-active { color: var(--sx-white); background: var(--sx-dark); } /* jak tło ciemnych sekcji (D3) */
/* TYMCZASOWO: przełącznik języka ukryty do czasu uruchomienia wersji EN - aby przywrócić, usuń tę regułę */
.sx-lang { display: none !important; }

@media (max-width: 767.98px) {
  .sx-header__actions .sx-btn-flip { font-size: .875rem; }
}
/* telefon: logo + język + burger; „Wyceń projekt” jest w menu bocznym */
@media (max-width: 575.98px) {
  :root { --sx-logo-w: 160px; }
  .sx-header__inner { gap: 10px; }
  .sx-header__actions { gap: 8px; }
  .sx-header__actions > .sx-btn-flip { display: none; }
  .sx-lang__opt { min-width: 38px; height: 38px; font-size: .8125rem; }
  .sx-burger { --sx-ctl-h: 44px; }
}

/* Hamburger — same kreski, bez tła i obramowania; pole klikalne = wysokość CTA */
.sx-burger {
  display: grid;
  gap: calc(var(--sx-ctl-h) * .15);
  width: var(--sx-ctl-h);
  height: var(--sx-ctl-h);
  place-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
}
.sx-burger span { display: block; width: calc(var(--sx-ctl-h) * .6); height: 2px; border-radius: 2px; background: var(--sx-ink); transition: width .4s var(--sx-ease), background-color .3s ease; }
.sx-burger span:nth-child(2) { width: calc(var(--sx-ctl-h) * .4); justify-self: end; }
.sx-burger:hover span:nth-child(2) { width: calc(var(--sx-ctl-h) * .6); }
.sx-burger:hover span { background: var(--sx-accent); }

/* Offcanvas (Bootstrap) */
.sx-offcanvas.offcanvas-end { width: min(520px, 100vw); border: 0; background: var(--sx-dark); color: rgba(255, 255, 255, .72); }
.sx-offcanvas .offcanvas-header { padding: 28px 32px; }
.sx-offcanvas .offcanvas-body { padding: 8px 32px 40px; }
.sx-offcanvas__close {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 1px solid var(--sx-line-dark);
  border-radius: 50%;
  background: none;
  color: var(--sx-white);
  transition: transform .5s var(--sx-ease), background-color .3s;
}
.sx-offcanvas__close:hover { transform: rotate(90deg); background: var(--sx-accent); }
.sx-offcanvas h5 { color: var(--sx-white); font-size: 0.8125rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.sx-offcanvas__nav { list-style: none; margin: 0 0 32px; padding: 0; }
.sx-offcanvas__nav a {
  display: block;
  padding: 6px 0;
  font-family: var(--sx-font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--sx-white);
}
.sx-offcanvas__nav a:hover { color: var(--sx-ice); }
.sx-offcanvas__cases { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--sx-line-dark); }
.sx-offcanvas__cases a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sx-line-dark);
  color: var(--sx-white);
  font-weight: 500;
}
.sx-offcanvas__cases a small { display: block; font-weight: 400; color: rgba(255, 255, 255, .64); }
.sx-offcanvas__cases a i { margin-top: 5px; color: var(--sx-ice); transition: transform .4s var(--sx-ease); }
.sx-offcanvas__cases a:hover i { transform: translateX(6px); }
.sx-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sx-contact-list i { width: 22px; color: var(--sx-ice); }
.sx-contact-list a:hover { color: var(--sx-ice); }



/* 07. SEKCJE PIN — mechanika wspólna
   --------------------------------------------------------------------------
   .sx-pin         — tor o wysokości --track (np. 300vh), dostaje --p od ScrollFX
   .sx-pin__stage  — scena przyklejona do góry ekranu na czas przejazdu toru
   ========================================================================== */
.sx-pin { position: relative; height: var(--track, 300vh); }
.sx-pin__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}


/* 08. HERO
   ========================================================================== */
.sx-hero {
  --track: 300vh;
  /* e = faza rozszerzania okna (0 → 1 w pierwszych 65% toru) */
  --e: clamp(0, var(--p, 0) / .65, 1);
  /* c = faza pojawiania się podpisu na wideo */
  --c: clamp(0, (var(--p, 0) - .7) / .22, 1);
  /* wcięcia okna wideo w stanie początkowym: góra / prawo / dół / lewo */
  --ci-t: 24%; --ci-r: 6%; --ci-b: 18%; --ci-l: 52%;
  background: var(--sx-white);
}

.sx-hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--sx-dark);
  clip-path: inset(
    calc(var(--ci-t) * (1 - var(--e)))
    calc(var(--ci-r) * (1 - var(--e)))
    calc(var(--ci-b) * (1 - var(--e)))
    calc(var(--ci-l) * (1 - var(--e)))
    round calc(var(--sx-radius) * (1 - var(--e)))
  );
  will-change: clip-path;
}
.sx-hero__media video,
.sx-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1 + .3 * var(--sx-fx) * (1 - var(--e))));
  will-change: transform;
}
.sx-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 26, 33, 0) 30%, rgba(20, 26, 33, .75) 100%);
  opacity: calc(.35 + var(--c) * .65);
}

.sx-hero__intro {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-top: var(--sx-header-h);
  opacity: calc(1 - var(--e) * 2.6);
  transform: translate3d(0, calc(var(--e) * -80px), 0);
  pointer-events: none;
}
.sx-hero__intro .sx-container { pointer-events: auto; }
.sx-hero__col { max-width: 46%; }

.sx-hero__title {
  margin-bottom: 24px;
  font-family: var(--sx-font-display);
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.04em;
}
.sx-hero__title span { display: block; }

.sx-hero__contact { display: flex; gap: 10px; margin-top: 36px; padding: 0; list-style: none; }
.sx-hero__contact a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--sx-ink);
  border-radius: 50%;
  font-size: 0.875rem;
  color: var(--sx-ink);
  transition: background-color .3s, color .3s, border-color .3s;
}
.sx-hero__contact a:hover { background: var(--sx-btn-dark); color: var(--sx-ice); }

/* pionowy pasek social po lewej (prawą krawędź zajmuje nawigacja kropkowa) */
.sx-hero__social {
  position: absolute;
  top: 50%;
  left: clamp(16px, 1.4vw, 32px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: translateY(-50%);
  opacity: calc(1 - var(--e) * 2);
}
.sx-hero__social span { writing-mode: vertical-rl; font-size: 0.8125rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--sx-ink); }
.sx-hero__social span::after { content: ""; display: block; width: 1px; height: 40px; margin: 16px auto 0; background: var(--sx-ink); }
.sx-hero__social a { font-size: 0.875rem; color: var(--sx-ink); }
.sx-hero__social a:hover { color: var(--sx-accent); }
/* poniżej 1400px pasek wchodziłby na margines treści */
@media (max-width: 1399.98px) { .sx-hero__social { display: none; } }

/* wideo w hero ma fioletowe światła — filtr przesuwa je w stronę niebieskiego z logo (docelowo: podmienić plik wideo) */
#heroVideo { filter: hue-rotate(-48deg) saturate(.8); }

/* wskaźnik przewijania — duży okrąg ze strzałką + podpis, widoczny bez szukania */
.sx-hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3.6vh, 48px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.2vw, 22px);
  transform: translateX(-50%);
  font-family: var(--sx-font-heading);
  font-size: clamp(.875rem, .95vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sx-ink);
  opacity: calc(1 - var(--e) * 3);
  white-space: nowrap;
}
.sx-hero__cue-ring {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--sx-ctl-h);           /* rozmiar jak przyciski w headerze */
  height: var(--sx-ctl-h);
  border-radius: 50%;
  font-size: 1.125rem;
  color: var(--sx-white);
  background: var(--sx-grad);
  box-shadow: 0 14px 34px -14px rgba(31, 100, 200, .7);
  transition: transform .4s var(--sx-ease), box-shadow .4s ease;
}
/* pulsujący pierścień — przyciąga wzrok, ale nie miga */
.sx-hero__cue-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--sx-accent);
  animation: sxCuePulse 2.4s var(--sx-ease) infinite;
}
.sx-hero__cue i { animation: sxCue 1.8s var(--sx-ease-in-out) infinite; }
.sx-hero__cue:hover { color: var(--sx-accent); }
.sx-hero__cue:hover .sx-hero__cue-ring { transform: scale(1.06); box-shadow: 0 18px 40px -14px rgba(31, 100, 200, .85); }
@keyframes sxCue { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(6px); } }
@keyframes sxCuePulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sx-hero__cue-ring::after { display: none; } }

/* podpis na wideo po rozszerzeniu */
.sx-hero__caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  padding-bottom: clamp(40px, 8vh, 90px);
  color: var(--sx-white);
  opacity: var(--c);
  transform: translate3d(0, calc((1 - var(--c)) * 40px), 0);
  visibility: hidden;
}
/* .is-marked — ScrollFX dodaje po przekroczeniu progu data-sfx-mark */
.sx-hero.is-marked .sx-hero__caption { visibility: visible; }
.sx-hero__caption h2 {
  max-width: 16ch;
  margin-bottom: 20px;
  font-family: var(--sx-font-display);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--sx-white);
}
.sx-hero__caption p { max-width: 52ch; color: rgba(255, 255, 255, .8); }

/* przycisk pauzy wideo (WCAG 2.2.2) */
.sx-video-toggle {
  position: absolute;
  /* po rozszerzeniu odsuwa się w lewo, robiąc miejsce przyciskowi „do góry” */
  right: calc(var(--ci-r) * (1 - var(--e)) + 16px + var(--e) * 64px);
  bottom: calc(var(--ci-b) * (1 - var(--e)) + 16px + var(--e) * 8px);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--sx-ink);
  font-size: 0.75rem;
  transition: background-color .3s, color .3s;
}
.sx-video-toggle:hover { background: var(--sx-ice); }
.sx-video-toggle:focus-visible { outline: 3px solid var(--sx-white); outline-offset: 2px; box-shadow: 0 0 0 7px var(--sx-ink); } /* na wideo: podwójny pierścień, widoczny na każdym tle */

.sx-hero__caption .sx-overline { color: var(--sx-white); }

/* wejście treści hero po zniknięciu preloadera (tylko gdy działa JS) */
.sfx-ready .sx-hero__col > * { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--sx-ease), transform .9s var(--sx-ease); }
.is-loaded .sx-hero__col > * { opacity: 1; transform: none; }
.is-loaded .sx-hero__col > *:nth-child(2) { transition-delay: .1s; }
.is-loaded .sx-hero__col > *:nth-child(3) { transition-delay: .2s; }
.is-loaded .sx-hero__col > *:nth-child(4) { transition-delay: .3s; }

@media (max-width: 991.98px) {
  .sx-hero { --track: 240vh; --ci-t: 56%; --ci-r: 16px; --ci-b: 9%; --ci-l: 16px; }
  .sx-hero__intro { align-items: flex-start; padding-top: calc(var(--sx-header-h) + 24px); }
  .sx-hero__col { max-width: 100%; }
  .sx-hero__contact { margin-top: 22px; }
  .sx-hero__social { display: none; }
  /* telefon/tablet: wskaźnik na dole okna wideo, biały */
  .sx-hero__cue { left: 32px; bottom: calc(9% + 18px); transform: none; color: var(--sx-white); text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
  .sx-hero__cue-ring::after { border-color: var(--sx-white); }
  .sx-hero .sx-video-toggle { right: calc(16px * (1 - var(--e)) + 12px); }
}
@media (max-width: 575.98px) {
  .sx-hero { --ci-t: 60%; }
  .sx-hero__cue { gap: 12px; font-size: .8125rem; letter-spacing: .08em; }
  .sx-hero__cue-more { display: none; }   /* na wąskim ekranie samo „Przewiń”, żeby nie wchodziło na przycisk pauzy wideo */
  .sx-hero__intro .sx-lead { font-size: 1.2rem; }
}


/* 09. STATEMENT — tekst wypełniany słowo po słowie
   ========================================================================== */
.sx-statement { padding-top: clamp(100px, 14vw, 200px); }

.sx-statement__text {
  margin-bottom: 28px;
  font-size: clamp(1.7rem, 3.1vw, 2.9rem);
  font-weight: 500;
  line-height: 1.22;
  color: var(--sx-ink);
}
.sx-section--dark .sx-statement__text { color: var(--sx-white); }
/* kolor „spoczynkowy” (przed wypełnieniem) — tylko gdy efekt faktycznie działa */
.sfx-ready:not(.sfx-reduced) .sx-statement__text { color: #C3CCD5; }
.sfx-ready:not(.sfx-reduced) .sx-section--dark .sx-statement__text { color: var(--sx-dark-rest); }

.sfx-word {
  --ws: 0%;
  --we: 0%;
  background-image: linear-gradient(90deg,
    var(--sfx-fill, var(--sx-ink)) 0%,
    var(--sfx-fill, var(--sx-ink)) var(--ws),
    var(--sfx-rest) var(--we),
    var(--sfx-rest) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* znaczek logo wstawiony w zdanie */
.sx-chip {
  display: inline-grid;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
  margin: 0 .1em;
  vertical-align: -.18em;
  transform: rotate(-6deg);
}
/* szary, bez koloru i bez tla - nie konkuruje z tekstem */
.sx-chip img { width: 90%; height: auto; filter: grayscale(1); opacity: .45; }
.sx-section--dark .sx-chip img { filter: grayscale(1) brightness(1.6); opacity: .5; }


/* 10. OFERTA — kafelki
   ========================================================================== */
.sx-offer { padding-bottom: 0; }
.sx-offer__head { position: relative; }

.sx-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--sx-line);
}

.sx-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 460px;
  padding: clamp(28px, 2.4vw, 40px);
  border-bottom: 1px solid var(--sx-line);
  isolation: isolate;
}
/* miękki gradient SYSONLINE pojawiający się od dołu po najechaniu */
.sx-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sx-grad-soft);
  clip-path: inset(100% 0 0 0);
  transition: clip-path .7s var(--sx-ease);
}
.sx-tile:hover::after,
.sx-tile:focus-within::after { clip-path: inset(0 0 0 0); }
.sx-tile:hover .ring-fg,
.sx-tile:focus-within .ring-fg { stroke-dashoffset: 0; }

/* krzyżyki na przecięciach linii siatki */
.sx-tile::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  z-index: 2;
  width: 23px;
  height: 23px;
  background:
    linear-gradient(var(--sx-ink), var(--sx-ink)) center / 1px 100% no-repeat,
    linear-gradient(var(--sx-ink), var(--sx-ink)) center / 100% 1px no-repeat;
}
.sx-tile:nth-child(4n + 1)::before { display: none; }

.sx-tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sx-tile__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sx-muted);
}
.sx-tile__brand img { width: 20px; height: 20px; }
.sx-tile__num {
  display: block;
  margin-top: 10px;
  font-family: var(--sx-font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sx-accent);
}
.sx-tile__title { margin: 0; font-size: 1.45rem; font-weight: 600; }
.sx-tile__title small {
  display: block;
  margin-top: 4px;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--sx-text);
}
.sx-tile__desc { margin: 0; font-size: 1.125rem; line-height: 1.6; }
.sx-tile__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

@media (max-width: 1199.98px) {
  .sx-tile { min-height: 500px; }
}
@media (max-width: 991.98px) {
  .sx-tiles { grid-template-columns: repeat(2, 1fr); }
  .sx-tile { min-height: 0; }
  .sx-tile:nth-child(odd) { border-right: 1px solid var(--sx-line); }
  .sx-tile::before { display: none; }
}
@media (max-width: 575.98px) {
  .sx-tiles { grid-template-columns: 1fr; }
  .sx-tile:nth-child(odd) { border-right: 0; }
}


/* 11. ZOOM — „B●TY.AI”
   ========================================================================== */
.sx-zoom {
  --track: 260vh;
  /* z = faza powiększania kropki */
  --z: clamp(0, (var(--p, 0) - .28) / .62, 1);
  /* zs = końcowa skala kropki; dx/dy = przesunięcie kropki do środka ekranu (liczone w main.js) */
  --zs: 55;
  --zk: calc(1 + var(--z) * var(--z) * var(--zs));
  background: var(--sx-white);
}
.sx-zoom .sx-pin__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.sx-zoom__head {
  max-width: 720px;
  padding-inline: var(--sx-gutter);
  margin-bottom: clamp(16px, 3vh, 36px);
  opacity: calc(1 - var(--z) * 3);
  transform: translate3d(0, calc(var(--z) * -60px), 0);
}
.sx-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sx-white);
  background: var(--sx-grad);
}
.sx-zoom__head h2 { margin-bottom: 8px; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; }
.sx-zoom__head p { margin: 0 auto; max-width: 56ch; }

.sx-zoom__word {
  position: relative;
  font-size: clamp(4rem, 14vw, 15rem);
  line-height: 1;
}
.sx-zoom__letters { opacity: calc(1 - var(--z) * 1.4); }
.sx-zoom__dot {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: .74em;
  height: .74em;
  margin: .1em .02em 0;
  /* top + margin: środek kropki na wysokości środka wersalików */
  vertical-align: top;
  border-radius: 50%;
  background: var(--sx-dark);
  /* kwadrat postępu daje przyspieszenie na końcu jak w oryginale;
     jednocześnie kropka dryfuje do środka ekranu, żeby ikona skończyła w centrum.
     Bez will-change — przeglądarka rasteryzuje koło w docelowej skali, więc krawędź pozostaje ostra. */
  transform:
    translate(calc(var(--dx, 0px) * var(--z)), calc(var(--dy, 0px) * var(--z)))
    scale(var(--zk));
}
/* ikona bota zostaje widoczna: kontr-skala niweluje powiększenie kropki,
   więc ikona rośnie tylko łagodnie (1× → 2,6×) */
.sx-zoom__dot i {
  font-size: .28em;
  color: var(--sx-ice);
  transform: scale(calc((1 + var(--z) * 1.6 * var(--sx-fx)) / var(--zk)));
  filter: drop-shadow(0 0 calc(var(--z) * 18px) rgba(205, 235, 246, .45));
}

@media (max-width: 767.98px) {
  .sx-zoom { --track: 220vh; --zs: 70; }
  .sx-zoom__word { font-size: 19vw; }
}


/* 12. SEKCJA CIEMNA AI
   ========================================================================== */
.sx-ai { padding-top: clamp(60px, 8vw, 120px); }

.sx-ai__visual {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(60px, 8vw, 120px);
}

/* Makieta okna czatu */
.sx-chat {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  border-radius: 24px;
  background: var(--sx-dark-2);
  box-shadow: 0 40px 80px -30px rgba(31, 100, 200, .45), 0 0 0 1px var(--sx-line-dark);
  overflow: hidden;
  transform: rotate(-2deg);
}
.sx-chat__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--sx-line-dark);
}
.sx-chat__avatar {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sx-grad);
  color: var(--sx-white);
}
.sx-chat__bar strong { display: block; color: var(--sx-white); font-weight: 500; line-height: 1.2; }
.sx-chat__bar small { color: var(--sx-ice); font-size: 0.75rem; }
.sx-chat__bar small::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--sx-ice); }
.sx-chat__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 18px 24px; }

.sx-msg {
  max-width: 84%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(14px) scale(.96);
  transition: opacity .6s var(--sx-ease), transform .6s var(--sx-ease);
}
.sx-msg--user { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--sx-accent); color: var(--sx-white); }
.sx-msg--bot { align-self: flex-start; border-bottom-left-radius: 4px; background: #2F3946; color: rgba(255, 255, 255, .88); }
.sx-chat.is-in .sx-msg { opacity: 1; transform: none; }
.sx-chat.is-in .sx-msg:nth-child(2) { transition-delay: .7s; }
.sx-chat.is-in .sx-msg:nth-child(3) { transition-delay: 1.5s; }
.sx-chat.is-in .sx-msg:nth-child(4) { transition-delay: 2.2s; }

.sx-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.sx-typing span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); animation: sxTyping 1.2s infinite; }
.sx-typing span:nth-child(2) { animation-delay: .15s; }
.sx-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes sxTyping { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Obrotowy napis na okręgu — obrót sterowany scrollem */
.sx-orbit {
  position: absolute;
  top: 50%;
  left: calc(50% + min(210px, 42vw));
  width: 150px;
  height: 150px;
  transform: translate(-50%, -80%);
  z-index: 2;
}
.sx-orbit svg {
  width: 100%;
  height: 100%;
  transform: rotate(calc(var(--p, 0) * 540deg));
  will-change: transform;
}
.sx-orbit text {
  font-family: var(--sx-font-heading);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  fill: var(--sx-white);
}
.sx-orbit__core {
  position: absolute;
  inset: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sx-dark);
  box-shadow: 0 0 0 1px var(--sx-line-dark);
}
.sx-orbit__core img { width: 46%; }

.sx-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(48px, 6vw, 80px);
  background: var(--sx-line-dark);
  border: 1px solid var(--sx-line-dark);
  border-radius: 20px;
  overflow: hidden;
}
.sx-feature { padding: clamp(24px, 3vw, 40px); background: var(--sx-dark); transition: background-color .4s ease; }
.sx-feature:hover { background: var(--sx-dark-2); }
.sx-feature i {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  font-size: 1.25rem;
  color: var(--sx-ink);
  background: var(--sx-ice);
}
.sx-feature h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.sx-feature p { margin: 0; font-size: 1.125rem; }

@media (max-width: 991.98px) {
  .sx-features { grid-template-columns: 1fr; }
  .sx-orbit { width: 110px; height: 110px; left: auto; right: 0; top: -20px; transform: none; }
  .sx-orbit__core { inset: 24px; }
}


/* 13. GROW — „DIGITAL / WORKER”
   ========================================================================== */
.sx-grow {
  --track: 280vh;
  --e: clamp(0, var(--p, 0) / .62, 1);
  --c: clamp(0, (var(--p, 0) - .68) / .22, 1);
  --gi-y: 26%; --gi-x: 32%;
  --ci-r: var(--gi-x); --ci-b: var(--gi-y); /* pozycja przycisku pauzy (.sx-video-toggle) */
  background: var(--sx-dark);
}
.sx-grow__media {
  position: absolute;
  inset: 0;
  clip-path: inset(
    calc(var(--gi-y) * (1 - var(--e)))
    calc(var(--gi-x) * (1 - var(--e)))
    round calc(var(--sx-radius) * (1 - var(--e)))
  );
  will-change: clip-path;
}
.sx-grow__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1 + .2 * var(--sx-fx) * (1 - var(--e)))); }
.sx-grow__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 26, 33, .85) 0%, rgba(20, 26, 33, .2) 60%),
    linear-gradient(0deg, rgba(31, 100, 200, .25), rgba(11, 127, 168, .15));
  opacity: calc(.3 + var(--c) * .7);
}

.sx-grow__words {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 3vw;
  pointer-events: none;
}
.sx-grow__words span {
  font-family: var(--sx-font-display);
  font-size: clamp(3rem, 8.2vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  text-transform: uppercase;
  color: var(--sx-white);
  opacity: calc(1 - var(--e) * 1.6);
  will-change: transform;
}
.sx-grow__words span:first-child { transform: translate3d(calc(var(--e) * -45vw), 0, 0); }
.sx-grow__words span:last-child  { transform: translate3d(calc(var(--e) *  45vw), 0, 0); }

.sx-grow__caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  padding-bottom: clamp(40px, 9vh, 100px);
  opacity: var(--c);
  transform: translate3d(0, calc((1 - var(--c)) * 40px), 0);
  visibility: hidden;
}
.sx-grow.is-marked .sx-grow__caption { visibility: visible; }
.sx-grow__caption .sx-overline { color: var(--sx-white); }
.sx-grow__caption h2 {
  color: var(--sx-white);
  max-width: 18ch;
  margin-bottom: 18px;
  font-family: var(--sx-font-display);
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.03em;
}
.sx-grow__caption p { max-width: 54ch; color: rgba(255, 255, 255, .8); margin-bottom: 28px; }

@media (max-width: 767.98px) {
  .sx-grow { --track: 230vh; --gi-y: 30%; --gi-x: 12%; }
  .sx-grow__words { flex-direction: column; justify-content: space-between; padding-block: 12vh; }
  .sx-grow__words span { font-size: 17vw; }
  .sx-grow__words span:first-child { transform: translate3d(0, calc(var(--e) * -40vh), 0); }
  .sx-grow__words span:last-child  { transform: translate3d(0, calc(var(--e) *  40vh), 0); }
}


/* 14. REALIZACJE — Slick
   ========================================================================== */
.sx-work { padding-bottom: clamp(120px, 14vw, 200px); }
.sx-work__intro { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 80px); text-align: center; }

.sx-cases { margin-inline: calc(var(--sx-gutter) * -.5); }
.sx-cases .slick-list { overflow: visible; }
.sx-cases .slick-track { display: flex; align-items: flex-start; }
.sx-cases .slick-slide { height: auto; padding-inline: calc(var(--sx-gutter) * .5); }
@media (min-width: 992px) {
  /* „schodkowy” układ jak w sekcji WEB.KREACJE */
  .sx-cases .slick-slide:nth-child(even) { margin-top: 90px; }   /* .sx-case = .slick-slide */
}

.sx-case { display: block; color: rgba(255, 255, 255, .72); }
.sx-case__media {
  position: relative;
  margin: 0 0 22px;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  border-radius: 6px;
}
.sx-case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.35);
  transform: scale(1.02);
  transition: transform 1.2s var(--sx-ease), filter .6s ease;
}
.sx-case:hover .sx-case__media img { transform: scale(calc(1 + .1 * var(--sx-fx))); filter: none; }
.sx-case__badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sx-ink);
  background: var(--sx-ice);
}
.sx-case__zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(20, 26, 33, .6);
  color: var(--sx-white);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .4s, transform .4s var(--sx-ease);
}
.sx-case:hover .sx-case__zoom, .sx-case__zoom:focus-visible { opacity: 1; transform: none; }
.sx-case__cat { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; }
.sx-case__cat i { color: var(--sx-ice); }
.sx-case h3 { margin-bottom: 4px; font-size: 1.35rem; font-weight: 600; }
.sx-case h3 small { display: block; margin-top: 4px; font-size: 1rem; font-weight: 500; color: rgba(255, 255, 255, .64); }
.sx-case p { font-size: 1.125rem; margin: 14px 0 20px; }

/* nawigacja slidera */
.sx-slider-nav { display: flex; align-items: center; gap: 24px; margin-top: 56px; }
.sx-slider-nav__progress { position: relative; flex: 1; height: 2px; background: var(--sx-line-dark); overflow: hidden; }
.sx-slider-nav__progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  background: var(--sx-grad);
  transition: width .6s var(--sx-ease);
}
.sx-slider-nav button {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: none;
  color: var(--sx-white);
  transition: background-color .3s, border-color .3s, color .3s;
}
.sx-slider-nav button:hover { background: var(--sx-ice); border-color: var(--sx-ice); color: var(--sx-ink); }
.sx-slider-nav__count { font-family: var(--sx-font-display); font-weight: 600; color: var(--sx-white); min-width: 64px; }

.sx-slider-nav button { width: clamp(48px, 3.4vw, 64px); height: clamp(48px, 3.4vw, 64px); font-size: clamp(.9375rem, 1vw, 1.125rem); }
/* nawigacja nad sliderem — lustrzane odbicie dolnej: licznik i pauza z lewej, strzałki z prawej */
.sx-slider-nav--top { margin: calc(clamp(40px, 6vw, 80px) * -.5) 0 clamp(20px, 2.4vw, 36px); }
/* przycisk pauzy autoplay — mniejszy, bez obramowania, żeby nie konkurował ze strzałkami */
.sx-slider-nav .sx-slider-nav__play { width: 40px; height: 40px; border-color: transparent; font-size: .875rem; color: rgba(255, 255, 255, .75); }
@media (max-width: 767.98px) {
  .sx-slider-nav--top { display: none; } /* telefon: tylko dolna nawigacja (+ swipe) */
  .sx-slider-nav { gap: 14px; margin-top: 40px; padding-right: 60px; } /* miejsce na przycisk „do góry” */
  .sx-slider-nav button { width: 44px; height: 44px; }
  .sx-slider-nav .sx-slider-nav__play { width: 40px; height: 40px; }
}


/* 15. DLACZEGO MY — zasłony + liczniki
   ========================================================================== */
.sx-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.sx-why__col { padding-inline: clamp(16px, 2vw, 32px); }
.sx-why__col:nth-child(2) { padding-top: 220px; }
.sx-why__col:nth-child(3) { padding-top: 100px; }

.sx-curtain {
  position: relative;
  margin: 0 0 26px;
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
}
.sx-curtain img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1 + .25 * var(--sx-fx)));
  transition: transform 1.6s var(--sx-ease);
}
.sx-curtain__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--sx-grad);
  transition: transform 1s var(--sx-ease-in-out);
}
.sx-curtain__veil::after { content: ""; position: absolute; inset: 0; background: var(--sx-white); transition: transform 1s var(--sx-ease-in-out) .08s; }
.sx-curtain.is-in img { transform: scale(1); }
.sx-curtain.is-in .sx-curtain__veil { transform: translateY(101%); }
.sx-curtain.is-in .sx-curtain__veil::after { transform: translateY(101%); }

.sx-why__item .sx-tile__brand { margin-bottom: 12px; }
.sx-why__num { display: block; font-family: var(--sx-font-display); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--sx-ink); margin-bottom: 14px; }
.sx-why__item h3 { margin-bottom: 2px; font-size: 1.05rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sx-why__item h3 small { display: block; font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--sx-text); }
.sx-why__item p { margin-top: 14px; font-size: 1.125rem; }

.sx-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 80px); }
.sx-stat { padding: 0 clamp(16px, 2vw, 32px) 40px; }
.sx-stat i { font-size: 1.625rem; color: var(--sx-ink); margin-bottom: 18px; display: block; }
.sx-stat strong {
  display: block;
  font-family: var(--sx-font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--sx-ink);
  margin-bottom: 14px;
}

@media (max-width: 991.98px) {
  .sx-why__grid, .sx-stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .sx-why__col:nth-child(n) { padding-top: 0; }
  .sx-why__col:nth-child(even) { padding-top: 80px; }
  .sx-stats .sx-stat:first-child { display: none; }
}
@media (max-width: 575.98px) {
  .sx-why__grid, .sx-stats { grid-template-columns: 1fr; }
  .sx-why__col:nth-child(even) { padding-top: 0; }
}


/* 16. PROCES — karty w stosie (position: sticky)
   ========================================================================== */
.sx-steps__layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.sx-steps__aside { position: sticky; top: calc(var(--sx-header-h) + 40px); }
.sx-steps__aside h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 600; margin-bottom: 20px; }

.sx-steps__list { display: grid; gap: 28px; padding: 0; margin: 0; list-style: none; }
.sx-step {
  position: sticky;
  top: calc(var(--sx-header-h) + 40px + var(--i, 0) * 22px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 28px;
  min-height: 300px;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--sx-radius);
  background: var(--sx-white);
  box-shadow: 0 -1px 0 var(--sx-line), 0 30px 60px -30px rgba(20, 26, 33, .25);
}
.sx-step:nth-child(2) { background: var(--sx-grad-soft); }
.sx-step:nth-child(3) { background: var(--sx-dark); color: rgba(255, 255, 255, .72); }
.sx-step:nth-child(3) h3 { color: var(--sx-white); }
.sx-step:nth-child(4) { background: var(--sx-ice); }
.sx-step__num {
  font-family: var(--sx-font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.05em;
  background: var(--sx-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sx-step h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; }
.sx-step p { margin: 0; }
.sx-step .sx-tags { margin-top: 18px; }

@media (max-width: 991.98px) {
  .sx-steps__layout { grid-template-columns: 1fr; }
  .sx-steps__aside { position: static; }
  .sx-step { grid-template-columns: 1fr; min-height: 0; }
}


/* 17. PASEK HASEŁ (marquee na Slick)
   ========================================================================== */
.sx-marquee { padding-block: clamp(40px, 6vw, 80px); border-block: 1px solid var(--sx-line); overflow: hidden; }
.sx-marquee__track .slick-track { display: flex; align-items: center; }
.sx-marquee__item {
  display: inline-flex !important;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px);
  font-family: var(--sx-font-display);
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-transform: uppercase;
  white-space: nowrap;
  /* pełny tekst zamiast -webkit-text-stroke: obrys fontu zmiennego (Outfit)
     pokazuje wewnętrzne kontury nakładających się elementów liter */
  color: var(--sx-ink);
}
.sx-marquee__item:nth-child(even) { color: #C9D2DA; }
.sx-marquee__item i { font-size: .45em; color: var(--sx-accent); }


/* 18. KONTAKT + STOPKA
   ========================================================================== */
.sx-contact__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 100px); margin-top: clamp(48px, 6vw, 80px); }

.sx-form .form-label { font-size: 0.975rem; font-weight: 500; letter-spacing: .04em; color: rgba(255, 255, 255, .95); } /* +20%, wyrazniejsze */
.sx-form .form-control {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  background: transparent;
  color: var(--sx-white);
  transition: border-color .3s;
}
.sx-form .form-control::placeholder { color: rgba(255, 255, 255, .52); }
.sx-form .form-control:focus { box-shadow: none; border-color: var(--sx-ice); background: transparent; color: var(--sx-white); }
.sx-form .form-control.is-invalid { border-color: #ff6b6b; background-image: none; }
.sx-form .invalid-feedback { color: #ff8f8f; }
.sx-form .form-check-input { background-color: transparent; border-color: rgba(255, 255, 255, .55); }
.sx-form .form-check-input:checked { background-color: var(--sx-accent); border-color: var(--sx-accent); }
.sx-form .form-check-label { font-size: 0.975rem; color: rgba(255, 255, 255, .85); }
.sx-form__success { display: none; padding: 16px 20px; border-radius: 10px; background: rgba(205, 235, 246, .12); color: var(--sx-ice); }
.sx-form.is-sent .sx-form__success { display: block; }

.sx-contact__card {
  align-self: start;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--sx-line-dark);
  border-radius: 20px;
}
.sx-contact__card h3 { font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 20px; }
.sx-contact__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--sx-line-dark); }
.sx-contact__stats strong { display: block; font-family: var(--sx-font-display); font-size: 2rem; font-weight: 700; color: var(--sx-white); line-height: 1; margin-bottom: 6px; }

.sx-footer { padding: 40px 0; background: var(--sx-dark-3); color: rgba(255, 255, 255, .64); font-size: 0.875rem; }
.sx-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.sx-footer img { width: 150px; height: auto; }
.sx-footer ul { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; }
.sx-footer a:hover { color: var(--sx-ice); }

.sx-totop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--sx-btn-dark);
  color: var(--sx-ice);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .4s, transform .4s var(--sx-ease), background-color .3s;
}
.sx-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.sx-totop:hover { background: var(--sx-accent); }

/* Nawigacja kropkowa po sekcjach (budowana w main.js z atrybutów data-nav).
   Półprzezroczysta kapsuła — czytelna zarówno na jasnych, jak i na ciemnych sekcjach. */
.sx-dots {
  position: fixed;
  top: 50%;
  right: clamp(12px, 1.4vw, 28px);
  z-index: 950;
  padding: 14px 8px;
  border-radius: 999px;
  background: rgba(20, 26, 33, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translate(0, -50%);
  opacity: 0;
  transition: opacity .5s ease, transform .5s var(--sx-ease);
}
.is-loaded .sx-dots { opacity: 1; }
.sx-dots ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sx-dots button {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
}
.sx-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  transition: height .4s var(--sx-ease), background-color .3s;
}
.sx-dots button:hover::before { background: var(--sx-white); }
.sx-dots button.is-active::before { height: 20px; background: var(--sx-ice); }
.sx-dots__label {
  position: absolute;
  top: 50%;
  right: calc(100% + 18px);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--sx-font-heading);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--sx-white);
  background: var(--sx-btn-dark);
  opacity: 0;
  transform: translate(8px, -50%);
  transition: opacity .3s, transform .4s var(--sx-ease);
  pointer-events: none;
}
.sx-dots button:hover .sx-dots__label,
.sx-dots button:focus-visible .sx-dots__label { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 991.98px) { .sx-dots { display: none; } }

@media (max-width: 991.98px) {
  .sx-contact__grid { grid-template-columns: 1fr; }
}


/* 19. MAGNIFIC POPUP — skórka
   ========================================================================== */
.mfp-bg.mfp-sx { background: var(--sx-dark); }
.mfp-sx.mfp-bg { opacity: 0; transition: opacity .35s ease; }
.mfp-sx.mfp-bg.mfp-ready { opacity: .88; }
.mfp-sx.mfp-bg.mfp-removing { opacity: 0; }
.mfp-sx .mfp-content { opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .35s ease, transform .45s var(--sx-ease); }
.mfp-sx.mfp-ready .mfp-content { opacity: 1; transform: none; }
.mfp-sx.mfp-removing .mfp-content { opacity: 0; transform: translateY(20px); }

.sx-popup {
  position: relative;
  max-width: 880px;
  margin: 40px auto;
  border-radius: var(--sx-radius);
  background: var(--sx-white);
  overflow: hidden;
}
.sx-popup__head { padding: clamp(28px, 4vw, 48px); background: var(--sx-grad-soft); }
.sx-popup__head .sx-icon-ring { margin-bottom: 20px; }
.sx-popup__head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; margin-bottom: 6px; }
.sx-popup__head p { margin: 0; font-size: 1.32rem; }
.sx-popup__body { padding: clamp(28px, 4vw, 48px); }
.sx-popup__body ul.sx-check { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.sx-popup__body ul.sx-check li { position: relative; padding-left: 28px; }
.sx-popup__body ul.sx-check li::before { content: "\f00c"; position: absolute; left: 0; top: 1px; font: var(--fa-font-solid); font-size: 0.8125rem; color: var(--sx-accent); }
.sx-popup .mfp-close {
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sx-white);
  color: var(--sx-ink);
  opacity: 1;
  line-height: 44px;
  transition: transform .4s var(--sx-ease), background-color .3s;
}
.sx-popup .mfp-close:hover { transform: rotate(90deg); background: var(--sx-ice); }
@media (max-width: 575.98px) { .sx-popup__body ul.sx-check { grid-template-columns: 1fr; } }

.mfp-sx .mfp-figure::after { box-shadow: none; background: transparent; }
.mfp-sx img.mfp-img { border-radius: 8px; padding: 40px 0; }
.mfp-sx .mfp-title { color: rgba(255, 255, 255, .8); font-family: var(--sx-font-heading); }


/* 20. REVEAL — animacje wejścia (ScrollFX dodaje .is-in)
   ========================================================================== */
.sfx-ready [data-sfx="reveal"] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 1s var(--sx-ease), transform 1s var(--sx-ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.sfx-ready [data-sfx="reveal"].is-in { opacity: 1; transform: none; }
/* makieta czatu sama steruje swoją animacją */
.sfx-ready .sx-chat[data-sfx="reveal"] { opacity: 1; transform: rotate(-2deg); }


/* 21. OGRANICZONY RUCH
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
/* sekcje pin stają się zwykłymi ekranami, bez toru przewijania */
.sfx-reduced .sx-pin { height: auto; }
.sfx-reduced .sx-pin__stage { position: relative; }


/* 22. PODSTRONY — ELEMENTY WSPÓLNE
   ========================================================================== */

/* Nagłówek podstrony: okruszki, wielki tytuł w stylu .sx-display, lead + fakty */
.sx-page-hero {
  position: relative;
  padding: calc(var(--sx-header-h) + clamp(48px, 7vw, 120px)) 0 clamp(56px, 7vw, 110px);
  background: var(--sx-white);
  overflow: hidden;
}
/* miękka poświata SYSONLINE w prawym górnym rogu */
.sx-page-hero__glow {
  position: absolute;
  top: -20vw;
  right: -14vw;
  z-index: -1;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(205, 235, 246, .85), rgba(227, 238, 248, .5) 55%, transparent);
  pointer-events: none;
}

.sx-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(20px, 3vw, 36px);
  padding: 0;
  list-style: none;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sx-muted);
}
.sx-crumbs li + li::before { content: "/"; margin-right: 8px; color: #C3CCD5; }
.sx-crumbs a { color: var(--sx-ink); }
.sx-crumbs a:hover { color: var(--sx-accent); }

/* strona projektu (szablony projekt-*): w prawej kolumnie nagłówka nawigacja poprzedni / następny
   projekt nad metadanymi — wygląd jak nawigacja slidera realizacji (.sx-slider-nav), wariant na jasne tło */
.sx-cs-hero__aside { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 36px); }
.sx-cs-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.sx-cs-nav__count {
  font-family: var(--sx-font-display);
  font-weight: 600;
  color: var(--sx-ink);
  min-width: 64px;
  font-variant-numeric: tabular-nums;
}
.sx-cs-nav__count span { margin: 0 2px; color: var(--sx-muted); }
.sx-cs-nav__progress { position: relative; flex: 1; height: 2px; background: var(--sx-line); overflow: hidden; }
.sx-cs-nav__progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  background: var(--sx-grad);
}
.sx-cs-nav__btn {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(48px, 3.4vw, 64px);
  height: clamp(48px, 3.4vw, 64px);
  font-size: clamp(.9375rem, 1vw, 1.125rem);
  color: var(--sx-ink);
  background: none;
  border: 1px solid rgba(20, 26, 33, .2);
  border-radius: 50%;
  transition: background-color .3s, border-color .3s, color .3s;
}
a.sx-cs-nav__btn:hover,
a.sx-cs-nav__btn:focus-visible { background: var(--sx-ice); border-color: var(--sx-ice); color: var(--sx-ink); }
.sx-cs-nav__btn.is-disabled { color: #C3CCD5; border-color: var(--sx-line); cursor: default; }
@media (max-width: 767.98px) {
  .sx-cs-nav { gap: 14px; }
  .sx-cs-nav__btn { width: 44px; height: 44px; }
}

.sx-page-title {
  margin: 0 0 clamp(20px, 3vw, 36px);
  font-family: var(--sx-font-display);
  font-size: clamp(2.8rem, 7.4vw, 7.6rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.045em;
  text-transform: uppercase;
  color: var(--sx-ink);
}

.sx-page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
}
.sx-page-hero__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--sx-line);
  border: 1px solid var(--sx-line);
  border-radius: 16px;
  overflow: hidden;
}
.sx-page-hero__facts li { padding: clamp(16px, 2vw, 28px); background: var(--sx-white); font-size: 1.125rem; }
.sx-page-hero__facts strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--sx-font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--sx-ink);
}
@media (max-width: 991.98px) {
  .sx-page-hero__grid { grid-template-columns: 1fr; align-items: start; }
}

/* Nagłówek sekcji wewnątrz podstron */
.sx-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 72px); }
.sx-head--center { margin-inline: auto; text-align: center; }
.sx-head--center .sx-lead { margin-inline: auto; }
.sx-h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
}

/* Przełącznik filtrów (Wszystkie | Hotele | Restauracje …) */
.sx-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--sx-line);
  border-radius: 999px;
  background: var(--sx-white);
}
.sx-switch button {
  padding: .85em 1.6em;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: var(--sx-font-heading);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sx-ink);
  transition: background-color .3s ease, color .3s ease;
}
.sx-switch button:hover { background: var(--sx-surface); }
.sx-switch button.is-active { background: var(--sx-btn-dark); color: var(--sx-ice); }
.sx-switch__count { margin-left: .5em; font-size: .8em; opacity: .55; }
@media (max-width: 575.98px) {
  .sx-switch { border-radius: 20px; }
  .sx-switch button { padding: .8em 1.1em; font-size: .75rem; letter-spacing: .08em; }
}

/* Elementy filtrowane */
.is-filtered-out { display: none !important; }
.is-filtered-in { animation: sxFilterIn .6s var(--sx-ease) both; }
@keyframes sxFilterIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Ogólna lista z „ptaszkami” */
.sx-check { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.sx-check li { position: relative; padding-left: 30px; }
.sx-check li::before {
  content: "\f00c";
  position: absolute;
  left: 0;
  top: .1em;
  font: var(--fa-font-solid);
  font-size: .8125rem;
  color: var(--sx-accent);
}
.sx-section--dark .sx-check li::before { color: var(--sx-ice); }
@media (max-width: 575.98px) { .sx-check { grid-template-columns: 1fr; } }

/* Karty z ikoną (jasne tło) */
.sx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.sx-card {
  position: relative;
  padding: clamp(24px, 2.6vw, 40px);
  border: 1px solid var(--sx-line);
  border-radius: 20px;
  background: var(--sx-white);
  transition: transform .5s var(--sx-ease), box-shadow .5s var(--sx-ease);
}
.sx-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(31, 100, 200, .35); }
.sx-card > i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  font-size: 1.25rem;
  color: var(--sx-ink);
  background: var(--sx-ice);
}
.sx-card:nth-child(3n + 2) > i { background: var(--sx-tint-2); }
.sx-card:nth-child(3n + 3) > i { background: var(--sx-tint-3); }
.sx-card h3 { margin-bottom: 10px; font-size: 1.25rem; font-weight: 600; }
.sx-card p { margin: 0; font-size: 1.125rem; }
@media (max-width: 991.98px) { .sx-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .sx-cards { grid-template-columns: 1fr; } }

/* Pas CTA na końcu podstron */
.sx-cta__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 100px); align-items: end; }
.sx-cta__title {
  margin: 0;
  font-family: var(--sx-font-display);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
}
.sx-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
@media (max-width: 991.98px) { .sx-cta__grid { grid-template-columns: 1fr; } }

/* Jasny wariant formularza */
.sx-form--light .form-label { color: var(--sx-ink); }
.sx-form--light .form-control,
.sx-form--light .form-select {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(20, 26, 33, .18);
  border-radius: 0;
  background-color: transparent;
  color: var(--sx-ink);
}
.sx-form--light .form-control::placeholder { color: #74818E; }
.sx-form--light .form-control:focus,
.sx-form--light .form-select:focus { box-shadow: none; border-color: var(--sx-accent); color: var(--sx-ink); background-color: transparent; }
.sx-form--light .form-check-input { background-color: transparent; border-color: rgba(20, 26, 33, .3); }
.sx-form--light .form-check-label { color: var(--sx-text); }
.sx-form--light .sx-form__success { background: var(--sx-ice); color: var(--sx-ink); }


/* 23. BRANŻE + REALIZACJE
   ========================================================================== */

/* Siatka miniatur (kafle static / video) */
.sx-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.2vw, 20px); }
@media (max-width: 1199.98px) { .sx-shots { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991.98px)  { .sx-shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px)  { .sx-shots { grid-template-columns: 1fr; } }

.sx-shot {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sx-dark);
  isolation: isolate;
  color: var(--sx-white);
}
.sx-shot img,
.sx-shot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--sx-ease), opacity .5s ease;
}
.sx-shot video { opacity: 0; }
.sx-shot.is-playing video { opacity: 1; }
.sx-shot:hover img,
.sx-shot:hover video { transform: scale(calc(1 + .08 * var(--sx-fx))); }
.sx-shot__label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sx-ink);
  background: var(--sx-ice);
}
.sx-shot__play {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: .75rem;
  color: var(--sx-ink);
  background: rgba(255, 255, 255, .92);
}
.sx-shot__play::before { content: "\f04b"; font: var(--fa-font-solid); margin-left: 2px; }
.sx-shot.is-playing .sx-shot__play::before { content: "\f04c"; margin-left: 0; }
.sx-shot__caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 70px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(20, 26, 33, .88));
}
.sx-shot__caption h3 { margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--sx-white); }
.sx-shot__caption .sx-tags { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--sx-ease), opacity .4s, margin .4s; }
.sx-shot:hover .sx-shot__caption .sx-tags,
.sx-shot:focus-visible .sx-shot__caption .sx-tags { max-height: 70px; margin-top: 10px; opacity: 1; }
@media (hover: none) { .sx-shot__caption .sx-tags { max-height: 70px; margin-top: 10px; opacity: 1; } }

/* Karty projektów (strona Realizacje) */
.sx-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); }
@media (max-width: 991.98px) { .sx-projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .sx-projects { grid-template-columns: 1fr; } }
.sx-project { display: flex; flex-direction: column; }
.sx-project .sx-case__media { aspect-ratio: 16 / 10.5; margin-bottom: 20px; background: var(--sx-surface); }
.sx-project .sx-case__media img { filter: none; }
.sx-project:hover .sx-case__media img { transform: scale(calc(1 + .08 * var(--sx-fx))); }
.sx-project__cat { margin-bottom: 6px; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sx-accent); }
.sx-project h3 { margin-bottom: 10px; font-size: 1.35rem; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.sx-project p { margin-bottom: 16px; font-size: 1.125rem; }
.sx-project .sx-tags { margin-top: auto; }
.sx-project .sx-tags li { background: var(--sx-surface); color: var(--sx-text); }

/* Logotypy klientów — nieskończony pasek (ścieżka powielana w main.js) */
.sx-logos {
  overflow: hidden;
  padding-block: clamp(24px, 3vw, 40px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sx-logos__track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 5vw, 96px);
  width: max-content;
  padding-right: clamp(48px, 5vw, 96px);
  animation: sxLogos 45s linear infinite;
}
.sx-logos:hover .sx-logos__track { animation-play-state: paused; }
.sx-logos img {
  max-width: 180px;
  max-height: 56px;
  filter: grayscale(1);
  opacity: .5;
  transition: filter .3s, opacity .3s;
}
.sx-logos img:hover { filter: none; opacity: 1; }
@keyframes sxLogos { to { transform: translateX(-50%); } }

.sx-logos-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--sx-line);
}
.sx-logos-foot p { margin: 0; }


/* 24. PODSTRONA USŁUGI
   ========================================================================== */
.sx-svc-hero__top { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.sx-svc-hero__top .sx-icon-ring { width: 84px; height: 84px; font-size: 1.75rem; }
.sx-svc-hero__top .ring-fg { stroke-dashoffset: 0; transition-duration: 2s; }
.sx-svc-hero__num { font-family: var(--sx-font-display); font-size: 1rem; font-weight: 600; color: var(--sx-accent); }
.sx-svc-hero .sx-page-title { font-size: clamp(2.6rem, 6vw, 6.2rem); }
.sx-svc-hero__sub { margin-bottom: 22px; font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 500; color: var(--sx-ink); }

.sx-svc-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.sx-svc-aside {
  position: sticky;
  top: calc(var(--sx-header-h) + 24px);
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: var(--sx-radius);
  background: var(--sx-dark);
  color: rgba(255, 255, 255, .72);
}
.sx-svc-aside h3 { margin-bottom: 14px; font-size: 1.35rem; font-weight: 600; color: var(--sx-white); }
.sx-svc-aside dl { display: grid; gap: 14px; margin: 22px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--sx-line-dark); }
.sx-svc-aside dt { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .64); }
.sx-svc-aside dd { margin: 2px 0 0; font-weight: 500; color: var(--sx-white); }
.sx-svc-aside .sx-btn-flip { display: block; }
.sx-svc-aside .sx-btn-flip::before, .sx-svc-aside .sx-btn-flip::after { text-align: center; }
.sx-svc-aside .sx-btn--ghost { justify-content: center; width: 100%; margin-top: 10px; }

.sx-svc-block + .sx-svc-block { margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--sx-line); }
.sx-svc-block h2 { margin-bottom: 22px; font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 600; }
.sx-svc-block > p { font-size: 1.275rem; }

/* kroki realizacji usługi (lista numerowana w poziomie) */
.sx-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.sx-flow li { position: relative; padding: 0 20px 0 0; counter-increment: flow; }
.sx-flow li::before {
  content: counter(flow, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sx-line);
  font-family: var(--sx-font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--sx-accent);
}
.sx-flow strong { display: block; margin-bottom: 6px; font-weight: 600; color: var(--sx-ink); }
.sx-flow span { font-size: .9375rem; }
@media (max-width: 767.98px) { .sx-flow { grid-template-columns: 1fr 1fr; row-gap: 32px; } }

/* nawigacja poprzednia / następna usługa */
.sx-svc-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--sx-line); border-bottom: 1px solid var(--sx-line); }
.sx-svc-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(28px, 4vw, 56px) var(--sx-gutter);
  transition: background-color .4s ease;
}
.sx-svc-nav a + a { border-left: 1px solid var(--sx-line); align-items: flex-end; text-align: right; }
.sx-svc-nav a:hover { background: var(--sx-grad-soft); }
.sx-svc-nav small { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--sx-muted); }
.sx-svc-nav strong { font-family: var(--sx-font-display); font-size: clamp(1.4rem, 2.8vw, 2.6rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; color: var(--sx-ink); }

@media (max-width: 991.98px) {
  .sx-svc-layout { grid-template-columns: 1fr; }
  .sx-svc-aside { position: static; }
}


/* 25. O NAS
   ========================================================================== */
.sx-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.sx-split + .sx-split { margin-top: clamp(64px, 9vw, 140px); }
.sx-split--rev .sx-split__media { order: 2; }
.sx-split__media .sx-curtain { aspect-ratio: 4 / 3.2; margin: 0; border-radius: 6px; }
.sx-split__num { display: block; margin-bottom: 12px; font-family: var(--sx-font-display); font-size: 1rem; font-weight: 600; color: var(--sx-accent); }
.sx-split h2 { margin-bottom: 18px; font-size: clamp(1.9rem, 3.2vw, 3rem); font-weight: 600; letter-spacing: -.02em; }
@media (max-width: 991.98px) {
  .sx-split { grid-template-columns: 1fr; }
  .sx-split--rev .sx-split__media { order: 0; }
}

/* Wartości — siatka 3×2 z dużymi słowami */
.sx-values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--sx-line-dark); }
.sx-value {
  padding: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px);
  border-bottom: 1px solid var(--sx-line-dark);
}
.sx-value + .sx-value { border-left: 1px solid var(--sx-line-dark); }
.sx-value:nth-child(3n + 1) { border-left: 0; }
.sx-value i { display: block; margin-bottom: 26px; font-size: 1.5rem; color: var(--sx-ice); }
.sx-value strong {
  display: block;
  font-family: var(--sx-font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--sx-white);
}
@media (max-width: 767.98px) {
  .sx-values { grid-template-columns: 1fr 1fr; }
  .sx-value:nth-child(n) { border-left: 0; }
  .sx-value:nth-child(even) { border-left: 1px solid var(--sx-line-dark); }
}

/* Opinie klientów — slider Slick */
.sx-quotes { margin-inline: calc(var(--sx-gutter) * -.5); }
.sx-quotes .slick-track { display: flex; }
.sx-quotes .slick-slide { height: auto; padding-inline: calc(var(--sx-gutter) * .5); }
.sx-quotes .slick-slide > div { height: 100%; }
.sx-quote {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--sx-line);
  border-radius: 20px;
  background: var(--sx-white);
}
.sx-quote::before { content: "\201D"; display: block; height: .6em; font-family: var(--sx-font-display); font-size: 5rem; line-height: 1; color: var(--sx-accent); }
.sx-quote p { flex: 1; margin: 18px 0 26px; font-size: 1.275rem; line-height: 1.6; color: var(--sx-ink); }
.sx-quote footer { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--sx-line); }
.sx-quote__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-family: var(--sx-font-display);
  font-weight: 700;
  color: var(--sx-white);
  background: var(--sx-grad);
}
.sx-quote strong { display: block; color: var(--sx-ink); font-weight: 600; line-height: 1.2; }
.sx-quote small { color: var(--sx-muted); }
.sx-quotes-nav { display: flex; gap: 12px; margin-top: 40px; }
.sx-quotes-nav button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--sx-line);
  border-radius: 50%;
  background: none;
  color: var(--sx-ink);
  transition: background-color .3s, color .3s;
}
.sx-quotes-nav button:hover { background: var(--sx-btn-dark); color: var(--sx-ice); }


/* 26. KONTAKT
   ========================================================================== */
.sx-ccards { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--sx-line); border-bottom: 1px solid var(--sx-line); }
.sx-ccard { position: relative; padding: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); transition: background-color .4s ease; }
.sx-ccard + .sx-ccard { border-left: 1px solid var(--sx-line); }
.sx-ccard:hover { background: var(--sx-grad-soft); }
.sx-ccard > i { display: block; margin-bottom: 24px; font-size: 1.5rem; color: var(--sx-accent); }
.sx-ccard small { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--sx-muted); }
.sx-ccard strong, .sx-ccard a { display: block; font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 600; line-height: 1.35; color: var(--sx-ink); }
.sx-ccard a:hover { color: var(--sx-accent); }
@media (max-width: 991.98px) {
  .sx-ccards { grid-template-columns: 1fr 1fr; }
  .sx-ccard:nth-child(3) { border-left: 0; }
  .sx-ccard:nth-child(n + 3) { border-top: 1px solid var(--sx-line); }
}
@media (max-width: 575.98px) {
  .sx-ccards { grid-template-columns: 1fr; }
  .sx-ccard + .sx-ccard { border-left: 0; border-top: 1px solid var(--sx-line); }
}

.sx-map {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  height: 100%;
  border-radius: var(--sx-radius);
  background: var(--sx-surface);
}
.sx-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.sx-map__pin {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--sx-btn-dark);
  color: rgba(255, 255, 255, .72);
  font-size: .9375rem;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.sx-map__pin strong { display: block; color: var(--sx-white); }

.sx-contact-page__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
@media (max-width: 991.98px) { .sx-contact-page__grid { grid-template-columns: 1fr; } }

.sx-company { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 0; font-size: .9375rem; }
.sx-company div { display: grid; gap: 4px; }
.sx-company dt { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sx-muted); }
.sx-company dd { margin: 0; font-weight: 600; color: var(--sx-ink); }


/* 27. WYCENA — KREATOR PROJEKTU (makieta, bez wysyłki)
   ========================================================================== */
.sx-wizard { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
@media (max-width: 1199.98px) { .sx-wizard { grid-template-columns: 1fr; } }

/* pasek kroków */
.sx-wsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 clamp(32px, 4vw, 56px); padding: 0; list-style: none; }
.sx-wsteps li { position: relative; padding-top: 18px; font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sx-muted); }
.sx-wsteps li::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 4px; background: var(--sx-gray); }
.sx-wsteps li::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--sx-grad);
  transition: width .6s var(--sx-ease);
}
.sx-wsteps li.is-current, .sx-wsteps li.is-done { color: var(--sx-ink); }
.sx-wsteps li.is-current::after { width: 50%; }
.sx-wsteps li.is-done::after { width: 100%; }
.sx-wsteps b { display: block; margin-bottom: 2px; font-family: var(--sx-font-display); font-size: 1rem; color: var(--sx-accent); }
@media (max-width: 575.98px) { .sx-wsteps span { display: none; } }

.sx-wstep { display: none; }
.sx-wstep.is-current { display: block; animation: sxFilterIn .6s var(--sx-ease) both; }
.sx-wstep__title { margin-bottom: 8px; font-size: clamp(1.7rem, 2.8vw, 2.6rem); font-weight: 600; letter-spacing: -.02em; }
.sx-wstep__lead { margin-bottom: clamp(24px, 3vw, 40px); }
.sx-wgroup { margin: 0; padding: 0; border: 0; }
.sx-wgroup + .sx-wgroup { margin-top: clamp(28px, 3vw, 44px); }
.sx-wgroup__label { display: block; float: none; width: auto; margin-bottom: 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sx-ink); }

/* karty wyboru (checkbox / radio ukryte) */
.sx-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.sx-choice { position: relative; display: block; margin: 0; cursor: pointer; }
.sx-choice input { position: absolute; opacity: 0; pointer-events: none; }
.sx-choice__box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 22px 20px;
  border: 1px solid var(--sx-line);
  border-radius: 16px;
  background: var(--sx-white);
  transition: border-color .3s, background-color .3s, box-shadow .3s, transform .4s var(--sx-ease);
}
.sx-choice__box i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 12px;
  font-size: 1.05rem;
  color: var(--sx-ink);
  background: var(--sx-surface);
  transition: background-color .3s, color .3s;
}
.sx-choice__box strong { font-weight: 600; line-height: 1.25; color: var(--sx-ink); }
.sx-choice__box small { font-size: .8125rem; line-height: 1.45; color: var(--sx-muted); }
.sx-choice__box::after {
  content: "\f00c";
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font: var(--fa-font-solid);
  font-size: .6875rem;
  color: var(--sx-white);
  background: var(--sx-accent);
  opacity: 0;
  transform: scale(.5);
  transition: opacity .3s, transform .4s var(--sx-ease);
}
.sx-choice:hover .sx-choice__box { transform: translateY(-3px); border-color: rgba(31, 100, 200, .35); }
.sx-choice input:checked + .sx-choice__box { border-color: var(--sx-accent); background: var(--sx-grad-soft); box-shadow: 0 18px 40px -24px rgba(31, 100, 200, .55); }
.sx-choice input:checked + .sx-choice__box i { color: var(--sx-white); background: var(--sx-grad); }
.sx-choice input:checked + .sx-choice__box::after { opacity: 1; transform: none; }
.sx-choice input:focus-visible + .sx-choice__box { outline: 2px solid var(--sx-focus, var(--sx-accent)); outline-offset: 3px; }

/* chipy (funkcje, termin) */
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-chip-opt { position: relative; margin: 0; cursor: pointer; }
.sx-chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sx-chip-opt span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .7em 1.2em;
  border: 1px solid var(--sx-line);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--sx-ink);
  background: var(--sx-white);
  transition: background-color .3s, color .3s, border-color .3s;
}
.sx-chip-opt input[type="checkbox"] + span::before { content: "+"; font-weight: 600; color: var(--sx-accent); }
.sx-chip-opt:hover span { border-color: var(--sx-ink); }
.sx-chip-opt input:checked + span { border-color: var(--sx-ink); color: var(--sx-ice); background: var(--sx-btn-dark); }
.sx-chip-opt input[type="checkbox"]:checked + span::before { content: "\2713"; color: var(--sx-ice); }
.sx-chip-opt input:focus-visible + span { outline: 2px solid var(--sx-focus, var(--sx-accent)); outline-offset: 2px; }

/* suwak */
.sx-range { display: grid; gap: 12px; }
.sx-range__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sx-range__value { font-family: var(--sx-font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; color: var(--sx-ink); }
.sx-range input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--sx-accent), var(--sx-accent-2)) 0 0 / var(--fill, 50%) 100% no-repeat, var(--sx-gray);
}
.sx-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border: 4px solid var(--sx-white);
  border-radius: 50%;
  background: var(--sx-btn-dark);
  box-shadow: 0 4px 14px rgba(20, 26, 33, .3);
  cursor: grab;
}
.sx-range input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 4px solid var(--sx-white);
  border-radius: 50%;
  background: var(--sx-btn-dark);
  box-shadow: 0 4px 14px rgba(20, 26, 33, .3);
  cursor: grab;
}
.sx-range__scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--sx-muted); }

/* nawigacja kroków */
.sx-wnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--sx-line); }
.sx-wnav__hint { font-size: .875rem; color: var(--sx-muted); }
.sx-wnav__hint.is-error { color: #d33; }
.sx-wnav__btns { display: flex; gap: 10px; margin-left: auto; }

/* podsumowanie (prawa kolumna) */
.sx-wsum {
  position: sticky;
  top: calc(var(--sx-header-h) + 24px);
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--sx-radius);
  background: var(--sx-dark);
  color: rgba(255, 255, 255, .72);
}
.sx-wsum h3 { margin-bottom: 18px; font-size: .8125rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sx-white); }
.sx-wsum__list { display: grid; gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; }
.sx-wsum__list li { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--sx-line-dark); font-size: 1.125rem; }
.sx-wsum__list small { font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .64); }
.sx-wsum__list span { color: var(--sx-white); }
.sx-wsum__list .is-empty { color: rgba(255, 255, 255, .52); font-style: italic; }
.sx-wsum__est { padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.sx-wsum__est small { display: block; margin-bottom: 6px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.sx-wsum__est strong {
  display: block;
  font-family: var(--sx-font-display);
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--sx-ice);
}
.sx-wsum__est p { margin: 10px 0 0; font-size: 0.975rem; color: rgba(255, 255, 255, .64); }
.sx-wsum__meter { height: 6px; margin-top: 16px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.sx-wsum__meter span { display: block; width: var(--w, 0%); height: 100%; border-radius: 6px; background: var(--sx-grad); transition: width .6s var(--sx-ease); }
@media (max-width: 1199.98px) { .sx-wsum { position: static; } }

/* stan „wysłano” */
.sx-wdone { display: none; padding: clamp(32px, 5vw, 64px); border-radius: var(--sx-radius); background: var(--sx-grad-soft); text-align: center; }
.sx-wdone > i { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%; font-size: 2rem; color: var(--sx-white); background: var(--sx-grad); }
.sx-wdone h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 600; }
.sx-wizard.is-done .sx-wform { display: none; }
.sx-wizard.is-done .sx-wdone { display: block; animation: sxFilterIn .7s var(--sx-ease) both; }
/* wariant bez pustej pierwszej kolumny (podstrony) */
.sx-stats--full .sx-stat:first-child { display: block; }
/* funkcja polecana dla wybranych obszarów (kreator) */
.sx-chip-opt.is-rec span { border-color: rgba(31, 100, 200, .45); }
.sx-chip-opt.is-rec span::after { content: "\2605"; font-size: .8em; color: var(--sx-accent-2); }
.sx-chip-opt.is-rec input:checked + span::after { color: var(--sx-ice); }
.sx-wstep > legend { float: none; width: auto; }
.sx-svc-aside .sx-btn--ghost { color: var(--sx-white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.sx-svc-aside .sx-btn--ghost:hover { color: var(--sx-ink); background: var(--sx-ice); }
.sx-wstep > legend { color: var(--sx-ink); }
.sx-wstep > legend:focus { outline: none; }
@media (max-width: 575.98px) {
  .sx-choices { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sx-choice__box { padding: 16px 14px; }
  .sx-choice__box small { display: none; }
}



/* 28. CASE STUDY (projekt-*.html, wzór: case-study.html)
   Układ zwarty pod treść z obecnych case studies: nagłówek z metadanymi,
   2 zdjęcia, Wyzwanie + Rozwiązanie obok siebie, 4 korzyści, poprz./nast.
   ========================================================================== */
.sx-cs-hero { padding-bottom: clamp(32px, 4vw, 64px); }
.sx-cs-hero .sx-page-title { font-size: clamp(2.2rem, 4.4vw, 4.4rem); }
.sx-cs-hero .sx-page-hero__grid { align-items: end; }

/* metadane projektu — tabela 2×2 w stylu .sx-page-hero__facts */
.sx-cs-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  background: var(--sx-line);
  border: 1px solid var(--sx-line);
  border-radius: 16px;
  overflow: hidden;
}
.sx-cs-meta > div { padding: clamp(16px, 1.8vw, 26px); background: var(--sx-white); }
.sx-cs-meta dt { margin-bottom: 6px; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sx-muted); }
.sx-cs-meta dd { margin: 0; font-size: clamp(.9375rem, 1vw, 1.0625rem); font-weight: 600; line-height: 1.35; color: var(--sx-ink); }
.sx-cs-meta dd a { color: var(--sx-accent); text-decoration: underline; text-underline-offset: 3px; }
.sx-cs-meta dd a:hover { text-decoration-thickness: 2px; }

/* dwa zdjęcia projektu: duże + mniejsze, powiększane w popupie */
.sx-cs-media {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(12px, 1.6vw, 24px);
  height: clamp(260px, 32vw, 560px);
}
.sx-cs-media__item {
  position: relative;
  display: block;
  border-radius: var(--sx-radius);
  overflow: hidden;
  background: var(--sx-surface);
}
.sx-cs-media__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--sx-ease); }
.sx-cs-media__item:hover img { transform: scale(1.04); }
.sx-cs-media__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--sx-ink);
  background: var(--sx-white);
  box-shadow: 0 8px 24px -10px rgba(20, 26, 33, .45);
  transition: transform .4s var(--sx-ease), background-color .3s, color .3s;
}
.sx-cs-media__item:hover .sx-cs-media__zoom { transform: scale(1.08); background: var(--sx-accent); color: var(--sx-white); }

/* Wyzwanie / Rozwiązanie — dwie kolumny */
.sx-cs-story-wrap { padding-top: clamp(40px, 5vw, 80px); }
.sx-cs-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); }
.sx-cs-story h2 { margin-bottom: 16px; font-size: clamp(1.5rem, 2.2vw, 2.25rem); letter-spacing: -.02em; }
.sx-cs-story p { margin: 0; font-size: clamp(1.2rem, 1.32vw, 1.425rem); line-height: 1.7; }

/* Efekt — 4 korzyści w ciemnej sekcji */
.sx-cs-benefits .sx-features { grid-template-columns: repeat(4, 1fr); margin-top: clamp(28px, 3.4vw, 48px); }
.sx-cs-benefits .sx-feature h3 { color: var(--sx-white); }

@media (max-width: 991.98px) {
  .sx-cs-benefits .sx-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
  .sx-cs-story { grid-template-columns: 1fr; }
  .sx-cs-media { grid-template-columns: 1fr; height: auto; }
  .sx-cs-media__item { aspect-ratio: 16 / 10; }
  .sx-cs-media__item + .sx-cs-media__item { display: none; } /* telefon: jedno zdjęcie, drugie w popupie galerii */
}
@media (max-width: 575.98px) {
  .sx-cs-meta { grid-template-columns: 1fr; }
  .sx-cs-benefits .sx-features { grid-template-columns: 1fr; }
  .sx-cs-media__item { border-radius: 16px; }
}


/* 29. VOUCHER, SPOTKANIE (iframe Smart-Voucher) I ROZWIĄZANIA (tabela)
   voucher.html, voucher-realizacja.html, spotkanie.html, rozwiazania.html
   ========================================================================== */
/* lista kontaktowa na jasnym tle (domyślnie jest pod ciemne sekcje) */
.sx-contact-list--light i { color: var(--sx-accent); }
.sx-contact-list--light a { color: var(--sx-ink); font-weight: 500; }
.sx-contact-list--light a:hover { color: var(--sx-accent); }

/* krótka lista kroków z numerami */
.sx-steps-mini { display: grid; gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: sx-step; }
.sx-steps-mini li { position: relative; padding-left: 48px; counter-increment: sx-step; }
.sx-steps-mini li::before {
  content: counter(sx-step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-family: var(--sx-font-display);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--sx-white);
  background: var(--sx-grad);
}
.sx-steps-mini strong { display: block; font-weight: 600; line-height: 1.3; color: var(--sx-ink); }
.sx-steps-mini span { display: block; font-size: .9375rem; color: var(--sx-muted); }
.sx-steps-mini a { color: var(--sx-accent); text-decoration: underline; text-underline-offset: 3px; }

/* voucher — karta obracana (przód / tył) */
.sx-voucher { max-width: 1180px; margin: 0 auto; perspective: 2400px; }
.sx-voucher__card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2515 / 1098;
  padding: 0;
  border: 0;
  border-radius: clamp(14px, 2vw, 28px);
  background: none;
  transform-style: preserve-3d;
  transition: transform .9s var(--sx-ease);
  cursor: pointer;
}
.sx-voucher.is-flipped .sx-voucher__card { transform: rotateY(180deg); }
.sx-voucher__face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
}
.sx-voucher__face--back { transform: rotateY(180deg); }
.sx-voucher__face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sx-voucher__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(20px, 2.4vw, 32px); }
.sx-voucher__powered { font-size: .8125rem; letter-spacing: .04em; color: var(--sx-muted); }
.sx-voucher__powered a { color: var(--sx-accent); text-decoration: underline; text-underline-offset: 3px; }
.sx-section--dark .sx-voucher__powered { color: rgba(255, 255, 255, .7); }
@media (prefers-reduced-motion: reduce) { .sx-voucher__card { transition: none; } }

/* osadzone widgety (iframe) — biała karta; wysokość ustawia skrypt Smart-Voucher */
.sx-embed {
  padding: clamp(8px, 1.4vw, 20px);
  border: 1px solid var(--sx-line);
  border-radius: var(--sx-radius);
  background: var(--sx-white);
  box-shadow: 0 30px 70px -40px rgba(20, 26, 33, .35);
}
.sx-embed iframe { display: block; width: 100%; min-height: 380px; border: 0; background: transparent; }
.sx-embed--wide iframe { min-height: 640px; }
.sx-embed__fallback { margin: 0; padding: 24px; }
/* ciemna karta — formularz Smart-Voucher (lead-form) ma jasne etykiety pod ciemne tło */
.sx-embed--dark { --sx-focus: var(--sx-ice); border-color: var(--sx-dark-2); background: var(--sx-dark); color: rgba(255, 255, 255, .8); box-shadow: 0 30px 70px -36px rgba(20, 26, 33, .6); }
.sx-embed--dark .sx-embed__fallback a { color: var(--sx-ice); }
.sx-embed__fallback a { color: var(--sx-accent); text-decoration: underline; }
.sx-embed-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.sx-embed-aside { position: sticky; top: calc(var(--sx-header-h-scrolled) + 24px); }
.sx-embed-aside__img { display: block; width: 100%; height: auto; margin-bottom: 28px; border-radius: 16px; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .6); }

/* rozwiązania — tabela z przyklejonym nagłówkiem */
.sx-sol { border: 1px solid var(--sx-line); border-radius: 20px; overflow: clip; background: var(--sx-white); }
.sx-sol table { width: 100%; border-collapse: separate; border-spacing: 0; }
.sx-sol thead th {
  position: sticky;
  top: var(--sx-header-h-scrolled);
  z-index: 2;
  padding: 18px clamp(16px, 1.6vw, 24px);
  font-family: var(--sx-font-heading);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--sx-white);
  background: var(--sx-dark);
}
.sx-sol thead th:nth-child(1) { width: 17%; }
.sx-sol thead th:nth-child(2), .sx-sol thead th:nth-child(3) { width: 29%; }
.sx-sol tbody th, .sx-sol tbody td { padding: clamp(18px, 1.8vw, 28px) clamp(16px, 1.6vw, 24px); border-top: 1px solid var(--sx-line); vertical-align: top; text-align: left; }
.sx-sol tbody tr:first-child > * { border-top: 0; }
.sx-sol tbody th { font-family: var(--sx-font-heading); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; color: var(--sx-ink); }
.sx-sol tbody td { font-size: 1.125rem; line-height: 1.6; }
.sx-sol tbody tr:nth-child(even) > * { background: var(--sx-steel-50); }
.sx-sol ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sx-sol li { position: relative; padding-left: 24px; color: var(--sx-ink); }
.sx-sol li::before { content: "\f00c"; position: absolute; left: 0; top: 1px; font: var(--fa-font-solid); font-size: .75rem; color: var(--sx-accent); }
.sx-sol__case { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; color: var(--sx-accent); }
.sx-sol__case:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 991.98px) {
  .sx-embed-layout { grid-template-columns: 1fr; }
  .sx-embed-aside { position: static; }
  .sx-embed-aside__img { display: none; }
}
/* telefon: każdy wiersz tabeli jako karta z podpisami kolumn */
@media (max-width: 767.98px) {
  .sx-sol { border: 0; border-radius: 0; background: none; overflow: visible; }
  .sx-sol table, .sx-sol tbody, .sx-sol tr, .sx-sol tbody th, .sx-sol tbody td { display: block; width: auto; }
  .sx-sol thead { display: none; }
  .sx-sol tbody tr { margin-bottom: 14px; border: 1px solid var(--sx-line); border-radius: 16px; overflow: hidden; background: var(--sx-white); }
  .sx-sol tbody tr:nth-child(even) > * { background: none; }
  .sx-sol tbody th { padding: 16px 18px; border: 0; color: var(--sx-white); background: var(--sx-dark) !important; }
  .sx-sol tbody td { padding: 14px 18px; border-top: 1px solid var(--sx-line); }
  .sx-sol tbody tr:first-child > td { border-top: 1px solid var(--sx-line); }
  .sx-sol td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; font-family: var(--sx-font-heading); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sx-muted); }
  .sx-embed--wide iframe { min-height: 720px; }
}

/* Podgląd case study z panelu administracyjnego (realizacja nieopublikowana) */
.sx-preview-bar { position: fixed; left: 50%; bottom: 16px; z-index: 1100; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: var(--sx-dark); color: #fff; font-size: .875rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.sx-preview-bar i { margin-right: 6px; color: #6AAEFF; }

/* ==========================================================================
   POPUP (Admin -> Popupy) — templates/site/partials/popup.html.twig
   ========================================================================== */
.sx-promo { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sx-promo[hidden] { display: none; }
.sx-promo__backdrop { position: absolute; inset: 0; background: rgba(18, 23, 29, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s var(--sx-ease); }
.sx-promo__card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); width: min(100%, 560px); max-height: calc(100dvh - 32px); overflow: auto; border-radius: var(--sx-radius); background: var(--sx-white); box-shadow: 0 30px 80px rgba(18, 23, 29, .35); opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .45s var(--sx-ease), transform .6s var(--sx-ease); }
.sx-promo__card.has-media { width: min(100%, 920px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.sx-promo.is-visible .sx-promo__backdrop { opacity: 1; }
.sx-promo.is-visible .sx-promo__card { opacity: 1; transform: none; }
.sx-promo__media { position: relative; margin: 0; min-height: 100%; background: var(--sx-surface); }
.sx-promo__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-promo__body { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(32px, 4vw, 56px); background: var(--sx-white); }
.sx-promo__body::before { content: ""; position: absolute; top: 0; left: clamp(32px, 4vw, 56px); width: 56px; height: 3px; border-radius: 0 0 3px 3px; background: var(--sx-grad); }
.sx-promo__title { margin: 0; padding-right: 40px; font-family: var(--sx-font-display); font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: var(--sx-ink); }
.sx-promo__text { margin: 0; font-size: 1.2rem; line-height: 1.7; color: var(--sx-text); }
.sx-promo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.sx-promo__dismiss { padding: 0; border: 0; background: none; font-size: .875rem; color: var(--sx-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sx-promo__dismiss:hover, .sx-promo__dismiss:focus-visible { color: var(--sx-ink); }
.sx-promo__close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--sx-ink); font-size: 1.1rem; box-shadow: 0 4px 14px rgba(18, 23, 29, .12); cursor: pointer; transition: transform .3s var(--sx-ease), background .3s; }
.sx-promo__close:hover { transform: rotate(90deg); background: var(--sx-white); }
.sx-promo :focus-visible { outline: 2px solid var(--sx-accent); outline-offset: 3px; }
html.sx-promo-open { overflow: hidden; }

@media (max-width: 767.98px) {
  .sx-promo { align-items: flex-end; padding: 0; }
  .sx-promo__card, .sx-promo__card.has-media { width: 100%; grid-template-columns: minmax(0, 1fr); border-radius: var(--sx-radius) var(--sx-radius) 0 0; max-height: 92dvh; }
  .sx-promo__media { min-height: 0; aspect-ratio: 16 / 9; }
  .sx-promo__body { padding: 28px 20px 32px; }
  .sx-promo__body::before { left: 20px; }
  .sx-promo__card.has-media .sx-promo__title { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-promo__backdrop, .sx-promo__card { transition: none; }
}

/* ==========================================================================
   STRONY BŁĘDÓW (404, 403, 500) — templates/bundles/TwigBundle/Exception/error.html.twig
   ========================================================================== */
.sx-error-page { background: var(--sx-white); }
.sx-error { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 100vh; min-height: 100dvh; padding: clamp(24px, 4vw, 48px) 16px; overflow: hidden; isolation: isolate; text-align: center; }
.sx-error__glow { position: absolute; z-index: -1; top: 50%; left: 50%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translate(-50%, -55%); border-radius: 50%; background: radial-gradient(closest-side, rgba(31, 100, 200, .14), rgba(25, 176, 224, .08) 45%, transparent 72%); pointer-events: none; }
.sx-error__grid { position: absolute; z-index: -2; inset: 0; background-image: linear-gradient(var(--sx-line) 1px, transparent 1px), linear-gradient(90deg, var(--sx-line) 1px, transparent 1px); background-size: 120px 120px; background-position: center; -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at center, #000 10%, transparent 65%); opacity: .55; pointer-events: none; }
.sx-error__top img { display: block; width: clamp(150px, 16vw, 200px); height: auto; }
.sx-error__card { display: flex; flex-direction: column; align-items: center; width: min(100%, 760px); margin: auto 0; padding: clamp(40px, 6vh, 72px) 0; animation: sx-error-in .9s var(--sx-ease) both; }
.sx-error__code { position: relative; display: inline-block; margin-bottom: clamp(8px, 2vh, 20px); font-family: var(--sx-font-display); font-size: clamp(6.5rem, 22vw, 15rem); font-weight: 700; line-height: .9; letter-spacing: -.04em; }
.sx-error__icon { position: absolute; top: 4%; right: -.42em; display: grid; place-items: center; width: clamp(48px, 7vw, 72px); height: clamp(48px, 7vw, 72px); border-radius: 50%; background: var(--sx-white); color: var(--sx-accent); font-size: clamp(1.1rem, 2.2vw, 1.6rem); letter-spacing: 0; box-shadow: 0 12px 30px rgba(18, 23, 29, .12); animation: sx-error-float 4s ease-in-out infinite; }
.sx-error .sx-overline { justify-content: center; margin-bottom: 14px; }
.sx-error__title { margin: 0 0 16px; font-family: var(--sx-font-display); font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: var(--sx-ink); }
.sx-error__lead { max-width: 600px; margin: 0 auto; }
.sx-error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 4vh, 40px); }
.sx-error__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 22px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--sx-line); font-size: .9375rem; color: var(--sx-muted); }
.sx-error__links a { color: var(--sx-ink); text-decoration: none; font-weight: 500; transition: color .3s; }
.sx-error__links a i { margin-right: 4px; font-size: .75rem; color: var(--sx-accent); transition: transform .3s var(--sx-ease); }
.sx-error__links a:hover { color: var(--sx-accent); }
.sx-error__links a:hover i { transform: translateX(3px); }
.sx-error__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: .875rem; color: var(--sx-muted); }
.sx-error__foot a { color: var(--sx-ink); text-decoration: none; }
.sx-error__foot a:hover { color: var(--sx-accent); }
.sx-error__foot i { margin-right: 6px; color: var(--sx-accent); }
@keyframes sx-error-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sx-error-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 575.98px) {
  .sx-error__icon { right: -.2em; top: -6%; }
  .sx-error__links span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-error__card, .sx-error__icon { animation: none; }
}
.sx-error .sx-btn-flip--light::before { box-shadow: inset 0 0 0 1px var(--sx-steel-200); }
