/* ==========================================================================
   SKANDOM — Budujemy z pasją
   Skandynawski premium: czerń węglowa + khaki + ciepła biel
   ========================================================================== */

/* ---------- Fonts (lokalne Noto Sans Variable: osie wght 100–900, wdth 62.5–100) ---------- */
@font-face {
  font-family: 'Noto Sans Var';
  /* WOFF2 (podzbiór łaciński) to ok. 216 kB zamiast 2 MB pełnego TTF-a.
     TTF zostaje jako zapas dla przeglądarek bez obsługi WOFF2 — nowoczesne
     pobiorą wyłącznie pierwszy obsługiwany format z listy. */
  src: url('../assets/fonts/NotoSans-Variable.woff2') format('woff2-variations'),
       url('../assets/fonts/NotoSans-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Var';
  src: url('../assets/fonts/NotoSans-Italic-Variable.woff2') format('woff2-variations'),
       url('../assets/fonts/NotoSans-Italic-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg-dark: oklch(0.22 0.012 220);
  --bg-dark-2: oklch(0.26 0.012 220);
  --ink-on-dark: oklch(0.96 0.006 102);
  --muted-on-dark: oklch(0.8 0.018 102);
  --brand: oklch(0.62 0.038 102);
  --brand-bright: oklch(0.68 0.04 102);
  --brand-deep: oklch(0.49 0.045 102);
  --bg-light: oklch(0.965 0.006 102);
  --bg-light-2: oklch(0.93 0.008 102);
  --ink-on-light: oklch(0.24 0.012 220);
  --muted-on-light: oklch(0.45 0.014 220);
  --hairline-dark: oklch(1 0 0 / 0.12);
  --hairline-light: oklch(0.24 0.012 220 / 0.14);

  --font: 'Noto Sans Var', 'Noto Sans', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 78rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(5rem, 13vh, 9.5rem);

  /* Odległość od krawędzi treści .container do krawędzi viewportu.
     Do „full-bleed": margin-right: calc(var(--bleed) * -1).
     UWAGA: nie da się tego zrobić przez `50% - 50vw` na elemencie siatki —
     procenty w marginesach liczą się od obszaru siatki (kolumny), nie od
     kontenera, więc taki zapis wychodzi daleko poza ekran. */
  --bleed: calc((100vw - min(var(--container), 100vw)) / 2 + var(--gutter));

  --z-canvas: 1;
  --z-marquee: 2;
  --z-overlay: 3;
  --z-sections: 4;
  --z-header: 50;
  --z-mobile-menu: 60;
  --z-loader: 100;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 420;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-on-light);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }
address { font-style: normal; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
li { list-style: none; }

a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Na jasnych tłach khaki ma ~3:1 — ring w ciemniejszym khaki (≥5:1) */
.section-light :focus-visible,
.section-light-2 :focus-visible,
.page :focus-visible {
  outline-color: var(--brand-deep);
}
.page .section-dark :focus-visible,
.page .cta-band :focus-visible,
.page .page-hero :focus-visible,
.page .section-konfigurator :focus-visible {
  outline-color: var(--brand);
}

::selection { background: var(--brand); color: var(--bg-dark); }

/* Justowanie opisów — długie akapity opisowe w całym serwisie.
   hyphens łagodzi rzeki światła w wąskich łamach (lang="pl" ustawione). */
.lead,
.section-body,
.section-note,
.footer-brand p,
.stack-card-body > p,
.standard p,
.tech-copy p,
.standards-note {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
/* Wyśrodkowane konteksty zostają wyśrodkowane (justify by je rozjechał) */
.cta-band .lead,
.konfig-inner .lead,
.stats-grid .stat-label {
  text-align: center;
  hyphens: none;
}

/* Display voice: skondensowany, architektoniczny */
.hero-heading, .h2, .h3, .section-heading,
.project-name, .step-no, .stat-row,
.loader-brand, .marquee-text, .standard-name {
  font-stretch: 80%;
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.h2 em, .h3 em, .hero-heading em, .section-heading em {
  font-style: italic;
  font-weight: 640;
  color: var(--brand-deep);
}

.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
  max-width: 62ch;
  color: var(--muted-on-light);
  text-wrap: pretty;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.9375rem 1.875rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
/* Widoczny fokus klawiatury na każdym wariancie (WCAG 2.4.7) */
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--brand);
  color: var(--bg-dark);
}
/* Ghost leży często na zdjęciach — delikatny scrim pod spodem gwarantuje
   czytelność białego tekstu niezależnie od jasności kadru (bez blura). */
.btn-ghost,
.btn-ghost-dark {
  border-color: oklch(1 0 0 / 0.4);
  color: var(--ink-on-dark);
  background: oklch(0.13 0.01 220 / 0.22);
}
.btn-outline {
  border-color: oklch(0.24 0.012 220 / 0.55);
  color: var(--ink-on-light);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--brand-bright); }
  .btn-ghost:hover, .btn-ghost-dark:hover { border-color: var(--brand-bright); color: var(--brand-bright); background: oklch(0.13 0.01 220 / 0.34); }
  .btn-outline:hover { border-color: var(--ink-on-light); background: oklch(0.24 0.012 220 / 0.05); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 620;
  font-size: 0.9844rem;
  color: var(--brand-deep);
}
.link-arrow span { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover span { transform: translateX(5px); }
}

/* ---------- Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: grid;
  place-items: center;
  background: var(--bg-dark);
  color: var(--brand);
  transition: clip-path 800ms var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
#loader.done { clip-path: inset(0 0 100% 0); }
.loader-inner { display: grid; justify-items: center; gap: 1.125rem; }
.loader-brand {
  font-size: 1.0625rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--ink-on-dark);
}
.loader-track {
  width: 180px;
  height: 2px;
  background: oklch(1 0 0 / 0.14);
  overflow: hidden;
}
#loader-bar {
  width: 100%;
  height: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
#loader-percent {
  font-size: 0.8125rem;
  color: var(--muted-on-dark);
  font-variant-numeric: tabular-nums;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: clamp(0.75rem, 2vh, 1.25rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 82rem);
  z-index: var(--z-header);
  transition: transform 450ms var(--ease-out), opacity 350ms ease;
}
.site-header.is-hidden {
  transform: translateX(-50%) translateY(-140%);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.625rem clamp(1rem, 2.5vw, 1.75rem);
  background: oklch(0.22 0.012 220 / 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 14px;
  color: var(--ink-on-dark);
}
.nav-logo { color: var(--brand); display: inline-flex; }
.nav-logo svg { height: 44px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.875rem);
}
.nav-links a, .nav-sub-trigger {
  font-size: 0.9219rem;
  font-weight: 480;
  color: var(--ink-on-dark);
  padding: 0.5rem 0.125rem;
  transition: color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover, .nav-sub-trigger:hover { color: var(--brand-bright); }
}
/* Bieżąca podstrona — stan dla AT i wzrokowy */
.nav-links a[aria-current='page'],
.mobile-menu a[aria-current='page'] { color: var(--brand-bright); font-weight: 600; }

.nav-item-sub { position: relative; }
.nav-sub-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  background: none;
  border: 0;
  font-family: var(--font);
  cursor: pointer;
}
.nav-sub-trigger svg { transition: transform 200ms var(--ease-out); }
.nav-item-sub.open .nav-sub-trigger svg { transform: rotate(180deg); }

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.875rem);
  left: -1rem;
  min-width: 15rem;
  padding: 0.5rem;
  background: var(--bg-dark-2);
  border: 1px solid oklch(1 0 0 / 0.09);
  border-radius: 10px;
  box-shadow: 0 24px 48px -16px oklch(0 0 0 / 0.5);
  transform-origin: top left;
  transform: scale(0.96) translateY(-4px);
  opacity: 0;
  visibility: hidden;
  transition: transform 200ms var(--ease-out), opacity 180ms ease, visibility 0s 200ms;
}
.nav-item-sub.open .nav-submenu {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 220ms var(--ease-out), opacity 180ms ease;
}
.nav-submenu a {
  display: block;
  padding: 0.6875rem 0.875rem;
  border-radius: 6px;
  font-size: 0.9219rem;
}
@media (hover: hover) and (pointer: fine) {
  .nav-submenu a:hover { background: oklch(1 0 0 / 0.06); color: var(--brand-bright); }
}

.nav-actions { display: flex; align-items: center; gap: 1.125rem; }
.nav-phone {
  font-size: 0.9219rem;
  font-weight: 540;
  color: var(--muted-on-dark);
  font-variant-numeric: tabular-nums;
  transition: color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-phone:hover { color: var(--brand-bright); }
}
.btn-nav { padding: 0.6875rem 1.375rem; font-size: 0.875rem; white-space: nowrap; }
@media (max-width: 430px) {
  .btn-nav { padding: 0.6875rem 1rem; }
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--ink-on-dark);
  transition: transform 300ms var(--ease-out), opacity 200ms ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-menu);
  display: flex;
  flex-direction: column;
  /* `safe center` zamiast `center`: przy niskim ekranie (telefon w poziomie,
     tablet, zmniejszone okno) wyśrodkowana lista jest wyższa niż viewport
     i zwykłe `center` wypycha jej górę POZA krawędź — pierwsze pozycje menu
     stają się nieosiągalne nawet scrollem. `safe` przełącza wtedy na `start`. */
  justify-content: safe center;
  gap: 2rem;
  padding: 5.5rem var(--gutter) 2.5rem;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  opacity: 0;
  visibility: hidden;
  transition: opacity 350ms ease, visibility 0s 350ms;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Otwarte menu leży NAD headerem (z 60 > 50) — bez tej reguły krzyżyk
   zamykania chował się pod overlayem i nie dało się zamknąć menu. */
.site-header:has(.nav-burger[aria-expanded="true"]) {
  z-index: calc(var(--z-mobile-menu) + 1);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 350ms ease;
}
.mobile-menu ul { display: grid; gap: 0.25rem; }
.mobile-menu ul a {
  display: block;
  padding: 0.4375rem 0;
  font-size: clamp(1.375rem, 5.5vw, 1.875rem);
  font-stretch: 80%;
  font-weight: 700;
  letter-spacing: -0.02em;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 500ms var(--ease-out), opacity 400ms ease;
}
.mobile-menu.open ul a { transform: translateY(0); opacity: 1; }
.mobile-menu-foot { display: grid; gap: 0.375rem; color: var(--muted-on-dark); }

/* ---------- Hero ---------- */
.hero-standalone {
  position: relative;
  z-index: calc(var(--z-sections) + 1);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  overflow: hidden;
  padding: clamp(7rem, 16vh, 10rem) var(--gutter) 9rem;
}
.hero-watermark {
  position: absolute;
  top: 50%;
  right: -12vw;
  width: 58vw;
  transform: translateY(-50%);
  color: var(--brand);
  opacity: 0.07;
  pointer-events: none;
}
.hero-inner {
  width: min(var(--container), 100%);
  margin-inline: auto;
}
.hero-kicker {
  font-size: 0.9844rem;
  font-weight: 540;
  color: var(--brand-bright);
  margin-bottom: 1.75rem;
  max-width: 40ch;
}
.hero-heading {
  font-size: clamp(2.875rem, 8vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink-on-dark);
}
.hero-heading em { color: var(--brand); }
.hero-line { display: block; overflow: hidden; padding-block: 0.06em; }
.hero-word { display: inline-block; }
.hero-tagline {
  margin-top: 2rem;
  max-width: 56ch;
  font-size: clamp(1.0313rem, 1.3vw, 1.125rem);
  line-height: 1.7;
  color: var(--muted-on-dark);
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.75rem;
}
.hero-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding-block: 1.375rem;
  border-top: 1px solid var(--hairline-dark);
  font-size: 0.8906rem;
  color: var(--muted-on-dark);
}
.hero-meta strong {
  display: block;
  font-size: 1.375rem;
  font-stretch: 80%;
  font-weight: 720;
  color: var(--brand-bright);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 7.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-on-dark);
  font-size: 0.8125rem;
}
.hero-scroll svg { animation: scroll-nudge 2.6s var(--ease-in-out) infinite; }
@keyframes scroll-nudge {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(7px); opacity: 0.55; }
}

/* ---------- Canvas / overlay / marquee ---------- */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: var(--z-canvas);
  background: var(--bg-dark);
  clip-path: circle(0% at 50% 50%);
  visibility: hidden;
}
#canvas { width: 100%; height: 100%; display: block; }
.canvas-wrap::after {
  /* Kinowa winieta: czytelność tekstu w bocznych strefach */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, oklch(0 0 0 / 0.52) 0%, transparent 34%, transparent 66%, oklch(0 0 0 / 0.52) 100%),
    linear-gradient(180deg, oklch(0 0 0 / 0.35) 0%, transparent 22%, transparent 72%, oklch(0 0 0 / 0.45) 100%);
}

#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: oklch(0.17 0.01 220);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.marquee-wrap {
  position: fixed;
  left: 0;
  bottom: 9vh;
  width: 100%;
  z-index: var(--z-marquee);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.marquee-text {
  white-space: nowrap;
  font-size: 11.5vw;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px oklch(0.62 0.038 102 / 0.5);
  will-change: transform;
}

/* ---------- Scroll experience ---------- */
#scroll-container {
  position: relative;
  z-index: var(--z-sections);
  height: 740vh;
  pointer-events: none;
  /* Strefy boczne liczone są w vw (56 + 38 + 6 = 100vw), a vw nie wie
     o pionowym pasku przewijania — bez tego strona łapie ~3px poziomego
     scrolla. Sekcje są pozycjonowane absolutnie, więc clip niczego nie psuje. */
  overflow-x: clip;
}

.scroll-section {
  position: absolute;
  left: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink-on-dark);
  pointer-events: none;
}
.scroll-section .section-inner { pointer-events: auto; }

/* Pozycje: środek sekcji = środek viewportu w połowie zakresu enter/leave */
.scroll-section[data-enter="10"] { top: 20.6%; transform: translateY(-50%); }
.scroll-section[data-enter="19"] { top: 29.4%; transform: translateY(-50%); }
.scroll-section[data-enter="38"] { top: 44.8%; transform: translateY(-50%); }
.scroll-section[data-enter="54"] { top: 58.7%; transform: translateY(-50%); }
.scroll-section[data-enter="66"] { top: 69%; transform: translateY(-50%); }
.scroll-section[data-enter="80"] { top: 88%; transform: translateY(-50%); }

.align-left { padding-left: 6vw; padding-right: 56vw; }
.align-right { padding-left: 56vw; padding-right: 6vw; }
.align-left .section-inner, .align-right .section-inner { max-width: 38vw; }

.section-label {
  font-size: 0.9375rem;
  font-style: italic;
  font-weight: 520;
  color: var(--brand-bright);
  margin-bottom: 1rem;
}
.section-heading {
  font-size: clamp(2.125rem, 4.2vw, 3.625rem);
  letter-spacing: -0.022em;
  color: var(--ink-on-dark);
  text-shadow: 0 2px 24px oklch(0 0 0 / 0.35);
}
.section-heading em { color: var(--brand-bright); }
.scroll-section .section-body {
  margin-top: 1.5rem;
  font-size: clamp(1.0313rem, 1.25vw, 1.125rem);
  line-height: 1.7;
  color: var(--ink-on-dark);
  text-shadow: 0 1px 16px oklch(0 0 0 / 0.45);
  text-wrap: pretty;
}
.scroll-section .section-note {
  margin-top: 1.125rem;
  font-size: 0.9531rem;
  line-height: 1.65;
  color: var(--muted-on-dark);
  text-shadow: 0 1px 12px oklch(0 0 0 / 0.45);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

/* Stats (jedyna wyśrodkowana sekcja — na pełnym ciemnym overlay) */
.section-stats {
  align-items: center;
  text-align: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  width: min(72rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  pointer-events: auto;
}
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  font-size: clamp(3rem, 6vw, 5.25rem);
  color: var(--brand-bright);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-suffix {
  font-size: 0.4em;
  font-weight: 640;
  color: var(--brand);
}
.stat-label {
  margin-top: 0.875rem;
  font-size: 0.9531rem;
  color: var(--muted-on-dark);
  line-height: 1.55;
  max-width: 26ch;
  margin-inline: auto;
}

/* ---------- Phase 2: sekcje produktowe ---------- */
.page {
  position: relative;
  z-index: calc(var(--z-sections) + 1);
  background: var(--bg-light);
  color: var(--ink-on-light);
  /* Stany startowe reveali (x: ±64) nie mogą poszerzać strony — clip
     (nie hidden) nie tworzy scroll containera, sticky działa dalej. */
  overflow-x: clip;
}
.section { padding-block: var(--section-pad); }
.section-head { margin-bottom: clamp(3rem, 7vh, 5rem); }
.section-head .lead { margin-top: 1.375rem; }
.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Ikony liniowe (lucide) — wspólna baza */
.ico {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  flex: none;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.link-arrow .ico { width: 1.05rem; height: 1.05rem; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover .ico { transform: translateX(5px); }
}

/* ==========================================================================
   Oferta — karty układające się w stos (stacking cards, scroll-driven)
   Sekcja jasna; karty to ciemne panele premium (czerń niesie ~50%).
   ========================================================================== */
.section-oferta { padding-bottom: 0; overflow: clip; }

.oferta-stack { margin-top: clamp(1rem, 4vh, 3rem); }

/* Domyślnie (także bez JS): czytelny pionowy układ — cała treść widoczna. */
.stack-slot + .stack-slot { margin-top: 1.5rem; }
.stack-card {
  position: relative;
  width: 100%;
  height: clamp(24rem, 60vh, 31rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  border: 1px solid var(--hairline-dark);
  box-shadow: 0 1.75rem 4.5rem oklch(0.12 0.01 220 / 0.5);
  transform-origin: 50% 0%;
}

/* Tryb „stos" włącza JS (desktop + ruch): sticky + schodkowy peek */
.oferta-stack.is-stacked .stack-slot {
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oferta-stack.is-stacked .stack-slot + .stack-slot { margin-top: 0; }
.oferta-stack.is-stacked .stack-card {
  top: calc(-4vh + var(--i, 0) * 1.75rem);   /* schodkowy „peek" stosu */
  width: min(100%, 66rem);
}
.stack-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.75rem, 3.5vw, 3.25rem);
}
.stack-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--hairline-dark);
  color: var(--brand-bright);
  margin-bottom: 0.25rem;
}
.stack-icon .ico { width: 1.35rem; height: 1.35rem; }
.stack-index {
  font-stretch: 80%;
  font-weight: 720;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--brand-bright);
  font-variant-numeric: tabular-nums;
}
.stack-card-body h3 { color: var(--ink-on-dark); }
.stack-card-body p { color: var(--muted-on-dark); max-width: 42ch; text-wrap: pretty; }
.stack-card-body .link-arrow { color: var(--brand-bright); margin-top: 0.5rem; }
.stack-card-media { position: relative; overflow: hidden; }
.stack-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.oferta-stack.is-stacked .stack-card-media img { will-change: transform; }

/* ==========================================================================
   Projekty — poziomy karuzel scroll-driven (pinned, hover-reveal)
   ========================================================================== */
.section-projekty {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}
.section-projekty .lead { color: var(--muted-on-dark); }
.section-projekty .h2 em { color: var(--brand-bright); }
.section-projekty .btn-outline { border-color: var(--hairline-dark); color: var(--ink-on-dark); }
@media (hover: hover) and (pointer: fine) {
  .section-projekty .btn-outline:hover { border-color: var(--brand); color: var(--brand-bright); }
}

.projekty-carousel {
  position: relative;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
}
.carousel-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 3vh, 2.25rem);
  position: relative;
}

/* Domyślnie (także bez JS): natywne przewijanie palcem — cała treść dostępna. */
.carousel-track {
  display: flex;
  gap: clamp(1rem, 1.6vw, 1.5rem);
  max-width: 100%;                /* domyślnie (natywny swipe) — kontener przewijania, NIE rozpychaj strony */
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(18rem, 32vw, 29rem);
  aspect-ratio: 5 / 6;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hairline-dark);
  background: var(--bg-dark-2);
  isolation: isolate;
  scroll-snap-align: center;
}

/* Tryb pinned włącza JS (desktop + ruch): GSAP przesuwa track transformem */
.projekty-carousel.is-pinned .carousel-stage { height: 100vh; overflow: hidden; }
.projekty-carousel.is-pinned .carousel-stage::before,
.projekty-carousel.is-pinned .carousel-stage::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(2rem, 8vw, 7rem);
  z-index: 3;
  pointer-events: none;
}
.projekty-carousel.is-pinned .carousel-stage::before { left: 0;  background: linear-gradient(90deg, var(--bg-dark) 14%, transparent); }
.projekty-carousel.is-pinned .carousel-stage::after  { right: 0; background: linear-gradient(270deg, var(--bg-dark) 14%, transparent); }
.projekty-carousel.is-pinned .carousel-track {
  width: max-content;            /* pinned (desktop) — pełna szerokość, GSAP przesuwa transformem */
  max-width: none;
  overflow-x: visible;
  scroll-snap-type: none;
  padding-bottom: 0;
  will-change: transform;
}
.carousel-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.carousel-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(200deg, transparent 28%, oklch(0.12 0.01 220 / 0.82));
}
@media (hover: hover) and (pointer: fine) {
  .carousel-card:hover img { transform: scale(1.04); }
}
.carousel-reveal {
  position: absolute;
  inset: auto 0.85rem 0.85rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.125rem 1.25rem;
  border-radius: 9px;
  background: oklch(0.15 0.01 220 / 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid oklch(1 0 0 / 0.08);
}
@media (hover: hover) and (pointer: fine) {
  .carousel-reveal {
    translate: 0 calc(100% + 0.85rem);
    opacity: 0;
    transition: translate 520ms var(--ease-out), opacity 360ms ease;
  }
  .carousel-card:hover .carousel-reveal,
  .carousel-card:focus-within .carousel-reveal { translate: 0 0; opacity: 1; }
}
.carousel-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge .ico { width: 0.85rem; height: 0.85rem; }
.badge-brand { background: var(--brand); color: var(--bg-dark); }
.badge-secondary { background: oklch(1 0 0 / 0.1); color: var(--ink-on-dark); }
.carousel-reveal h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--ink-on-dark); }
.carousel-reveal p { color: var(--muted-on-dark); font-size: 0.92rem; max-width: 34ch; text-wrap: pretty; }
.carousel-reveal .link-arrow { color: var(--brand-bright); margin-top: 0.15rem; }

.carousel-foot {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-inline: var(--gutter);
}
.carousel-progress {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--hairline-dark);
  overflow: hidden;
}
.carousel-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
}
.carousel-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted-on-dark);
  white-space: nowrap;
}
.carousel-hint .ico { width: 1.15rem; height: 1.15rem; color: var(--brand-bright); }

/* ==========================================================================
   Dlaczego warto — feature carousel (auto-rotujące atuty + galeria)
   Lewy panel: koło chipów (ciemny). Prawy: karuzela zdjęć prev/active/next.
   Domyślnie (bez JS) statyczna lista + pierwsza karta; JS dodaje .is-live.
   ========================================================================== */
.feature-carousel { width: 100%; }
.fc-shell {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline-light);
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  background: var(--bg-dark);
  min-height: 34rem;
}
@media (min-width: 900px) {
  .fc-shell { flex-direction: row; height: clamp(30rem, 56vh, 40rem); min-height: 0; }
}

/* --- Lewy panel: chipy --- */
.fc-chips {
  position: relative;
  flex: none;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
}
@media (min-width: 900px) {
  .fc-chips { width: 42%; display: flex; align-items: center; }
}
.fc-fade { position: absolute; inset-inline: 0; height: 3.5rem; z-index: 2; pointer-events: none; }
.fc-fade-top { top: 0; background: linear-gradient(to bottom, var(--bg-dark), transparent); }
.fc-fade-bottom { bottom: 0; background: linear-gradient(to top, var(--bg-dark), transparent); }

.fc-chips-track { position: relative; display: flex; flex-direction: column; gap: 0.75rem; width: 100%; }
.fc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  width: fit-content;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-dark);
  background: transparent;
  color: var(--muted-on-dark);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 560;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 400ms var(--ease-out), background-color 400ms var(--ease-out), border-color 400ms var(--ease-out);
}
.fc-chip-ico { display: inline-flex; opacity: 0.55; }
.fc-chip-ico .ico { width: 1.05rem; height: 1.05rem; }
.fc-chip.is-active,
.feature-carousel:not(.is-live) .fc-chip:first-child {
  background: var(--brand);
  color: var(--bg-dark);
  border-color: var(--brand);
}
.fc-chip.is-active .fc-chip-ico,
.feature-carousel:not(.is-live) .fc-chip:first-child .fc-chip-ico { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .fc-chip:not(.is-active):hover { color: var(--ink-on-dark); border-color: oklch(1 0 0 / 0.35); }
}

/* tryb live: koło chipów (pozycjonowanie Y ustawia JS) */
.feature-carousel.is-live .fc-chips { min-height: 21rem; }
@media (min-width: 900px) { .feature-carousel.is-live .fc-chips { min-height: 0; } }
.feature-carousel.is-live .fc-chips-track { display: block; height: 100%; min-height: 18rem; }
.feature-carousel.is-live .fc-chip {
  position: absolute;
  left: 0;
  top: 50%;
  height: 3.25rem;
  margin-top: -1.625rem;
  will-change: transform, opacity;
  transition: transform 650ms var(--ease-out), opacity 650ms var(--ease-out),
              color 400ms var(--ease-out), background-color 400ms var(--ease-out), border-color 400ms var(--ease-out);
}

/* przycisk pauzy/wznowienia (WCAG 2.2.2 — sterowanie auto-rotacją z klawiatury i dotyku) */
.fc-toggle {
  position: absolute;
  z-index: 5;
  bottom: clamp(1.25rem, 2.5vw, 2rem);
  left: clamp(2rem, 4vw, 3.5rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--hairline-dark);
  background: oklch(1 0 0 / 0.05);
  color: var(--ink-on-dark);
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .fc-toggle:hover { border-color: var(--brand); color: var(--brand-bright); }
}
.fc-toggle .ico { width: 0.9rem; height: 0.9rem; fill: currentColor; stroke: none; }
.fc-toggle .fc-ico-play { display: none; }
.fc-toggle[data-state="paused"] .fc-ico-pause { display: none; }
.fc-toggle[data-state="paused"] .fc-ico-play { display: inline-block; }

/* --- Prawy panel: galeria --- */
.fc-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--bg-light-2);
  border-top: 1px solid var(--hairline-light);
  overflow: hidden;
}
@media (min-width: 900px) { .fc-stage { border-top: none; border-left: 1px solid var(--hairline-dark); } }
.fc-cards { position: relative; width: min(100%, 23rem); aspect-ratio: 4 / 5; }
.fc-card {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: clamp(1.25rem, 2.5vw, 2rem);
  overflow: hidden;
  border: 6px solid var(--bg-light);
  background: var(--bg-light);
  box-shadow: 0 1.5rem 3.5rem oklch(0.2 0.01 220 / 0.25);
}
.fc-card:not(:first-child) { display: none; }          /* bez JS: tylko pierwsza karta */
.feature-carousel.is-live .fc-card { display: block; }
.fc-card img { width: 100%; height: 100%; object-fit: cover; transition: filter 700ms var(--ease-out); }

.feature-carousel.is-live .fc-card {
  opacity: 0;
  transform: scale(0.7);
  z-index: 0;
  pointer-events: none;
  transition: transform 600ms var(--ease-out), opacity 600ms var(--ease-out);
}
.feature-carousel.is-live .fc-card[data-status="active"] { opacity: 1; transform: none; z-index: 20; pointer-events: auto; }
.feature-carousel.is-live .fc-card[data-status="prev"]  { opacity: 0.4; transform: translateX(-26%) scale(0.85) rotate(-3deg); z-index: 10; }
.feature-carousel.is-live .fc-card[data-status="next"]  { opacity: 0.4; transform: translateX(26%) scale(0.85) rotate(3deg); z-index: 10; }
.feature-carousel.is-live .fc-card:not([data-status="active"]) img { filter: grayscale(1) blur(2px) brightness(0.75); }

.fc-tag { /* czytelność nad dowolnym kadrem */
  position: absolute; top: 1.4rem; left: 1.4rem; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: oklch(1 0 0 / 0.85);
  font-size: 0.6875rem; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 620;
  transition: opacity 400ms ease;
  text-shadow: 0 1px 10px oklch(0 0 0 / 0.7);
}
.fc-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: oklch(1 0 0); box-shadow: 0 0 0.6rem oklch(1 0 0); }
.feature-carousel.is-live .fc-card:not([data-status="active"]) .fc-tag { /* czytelność nad dowolnym kadrem */ opacity: 0; }

.fc-caption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  padding-top: 6rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  background: linear-gradient(to top, oklch(0.12 0.01 220 / 0.94), oklch(0.12 0.01 220 / 0.35) 45%, transparent);
  pointer-events: none;
  transition: opacity 500ms ease;
}
.feature-carousel.is-live .fc-card:not([data-status="active"]) .fc-caption { opacity: 0; }
.fc-badge {
  align-self: flex-start;
  background: var(--bg-light); color: var(--ink-on-light);
  padding: 0.3rem 0.75rem; border-radius: 999px;
  font-size: 0.66rem; font-weight: 660; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--hairline-light);
}
.fc-caption p { color: var(--ink-on-dark); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.3; font-weight: 460; text-wrap: pretty; }

/* Mobile (<900px): pionowe koło chipów → poziomy pasek zakładek; tylko aktywna karta */
@media (max-width: 899px) {
  .feature-carousel.is-live .fc-chip { padding: 0.75rem 1.05rem; font-size: 0.78rem; }
  .feature-carousel.is-live .fc-chips {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.25rem, 5vw, 2rem);
  }
  .fc-fade { display: none; }
  .feature-carousel.is-live .fc-chips-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    height: auto;
    min-height: 0;
    gap: 0.6rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }
  .feature-carousel.is-live .fc-chips-track::-webkit-scrollbar { display: none; }
  .feature-carousel.is-live .fc-chip {
    position: static;
    top: auto;
    margin-top: 0;
    height: auto;
    flex: 0 0 auto;
    padding: 0.6rem 1.05rem;
    font-size: 0.72rem;
    scroll-snap-align: center;
    transition: color 300ms var(--ease-out), background-color 300ms var(--ease-out), border-color 300ms var(--ease-out);
  }
  .feature-carousel.is-live .fc-toggle { position: static; align-self: flex-start; }
  .feature-carousel.is-live .fc-card[data-status="prev"],
  .feature-carousel.is-live .fc-card[data-status="next"] { opacity: 0; transform: scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
  .feature-carousel.is-live .fc-chip { transition-duration: 1ms; }
  .feature-carousel.is-live .fc-card { transition: opacity 200ms ease; }
  .feature-carousel.is-live .fc-card[data-status="prev"],
  .feature-carousel.is-live .fc-card[data-status="next"] { transform: scale(0.85); opacity: 0.3; }
}

/* ==========================================================================
   Konfigurator — band konwersji (CTA do narzędzia)
   ========================================================================== */
.section-konfigurator { background: var(--bg-dark); color: var(--ink-on-dark); text-align: center; }
.section-konfigurator .h2 { color: var(--ink-on-dark); }
.section-konfigurator .h2 em { color: var(--brand-bright); }
.konfig-inner {
  max-width: 46rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.125rem;
}
.konfig-inner .section-label { color: var(--brand-bright); }
.konfig-inner .lead { color: var(--muted-on-dark); margin-inline: auto; }
.konfig-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  border: 1px solid var(--hairline-dark); color: var(--brand-bright);
  margin-bottom: 0.25rem;
}
.konfig-ico .ico { width: 1.6rem; height: 1.6rem; }
.konfig-cta { margin-top: 0.75rem; }
.konfig-cta .ico { width: 1.05rem; height: 1.05rem; }

/* Technologia */
.section-technologia { background: var(--bg-light-2); overflow-x: clip; }
.tech-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: stretch;
  min-height: clamp(28rem, 64vh, 42rem);
}
.tech-copy { align-self: center; }
.tech-copy p { color: var(--muted-on-light); margin-top: 1.375rem; text-wrap: pretty; max-width: 52ch; }
.tech-list { margin-top: 2rem; display: grid; gap: 0.875rem; }
.tech-list li {
  position: relative;
  padding-left: 1.875rem;
  font-weight: 480;
}
.tech-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 1.0625rem;
  height: 0.5625rem;
  border-left: 2px solid var(--brand-deep);
  border-bottom: 2px solid var(--brand-deep);
  transform: rotate(-45deg);
}
/* Zdjęcie pełnokadrowe — wychodzi poza kontener do prawej krawędzi viewportu, pełna wysokość */
.tech-media {
  position: relative;
  align-self: stretch;
  margin-right: calc(var(--bleed) * -1);
  margin-block: 0;
  border-radius: 4px 0 0 4px;
  overflow: hidden;
  isolation: isolate;
}
.tech-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
}
.tech-media figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  margin: 0;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: 0.8906rem;
  color: var(--ink-on-dark);
  background: linear-gradient(to top, oklch(0.13 0.01 220 / 0.85), oklch(0.13 0.01 220 / 0) 100%);
}

.standards {
  margin-top: clamp(4rem, 9vh, 6.5rem);
  padding-top: clamp(2.5rem, 5vh, 3.5rem);
  border-top: 1px solid var(--hairline-light);
}
.standards-title {
  font-size: 1.0625rem;
  font-weight: 640;
  margin-bottom: 2.25rem;
}
.standards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.standard-name {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--brand-deep);
  margin-bottom: 0.625rem;
}
.standard p:last-child { color: var(--muted-on-light); font-size: 0.9531rem; }
.standards-note {
  margin-top: 2.5rem;
  font-size: 0.9531rem;
  color: var(--muted-on-light);
  max-width: 72ch;
}

/* Realizacje */
.real-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.real-tile {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 11;
  isolation: isolate;
}
.real-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 900ms var(--ease-out);
}
.real-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(200deg, transparent 42%, oklch(0.13 0.01 220 / 0.85) 88%);
}
@media (hover: hover) and (pointer: fine) {
  .real-tile:hover img { transform: scale(1.04); }
}
.real-info {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--ink-on-dark);
}
.real-info h3 { font-size: clamp(1.375rem, 2vw, 1.875rem); font-stretch: 80%; font-weight: 700; letter-spacing: -0.02em; }
.real-info .link-arrow { margin-top: 0.75rem; color: var(--brand-bright); }

/* Partnerzy */
.section-partnerzy { padding-bottom: 0; }
.section-partnerzy .lead { margin-top: 1.375rem; }
.partners-marquee {
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-block: clamp(2rem, 4vh, 3rem);
  border-top: 1px solid var(--hairline-light);
  border-bottom: 1px solid var(--hairline-light);
  overflow: hidden;
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: partners-slide 28s linear infinite;
}
.partners-track span {
  font-size: clamp(1.75rem, 3.2vw, 2.625rem);
  font-stretch: 80%;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-on-light);
  opacity: 0.82;
}
@keyframes partners-slide {
  to { transform: translateX(-50%); }
}
@media (hover: hover) and (pointer: fine) {
  .partners-marquee:hover .partners-track { animation-play-state: paused; }
}


/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: calc(var(--z-sections) + 1);
  background: oklch(0.17 0.01 220);
  color: var(--muted-on-dark);
  padding-top: clamp(4rem, 9vh, 6.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 3.4fr 2fr 2fr 2fr 2.4fr;
  gap: clamp(2.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 7vh, 5rem);
}
.footer-brand svg { color: var(--brand); margin-bottom: 1.5rem; }
.footer-brand p { font-size: 0.9531rem; max-width: 44ch; text-wrap: pretty; }
.footer-title {
  font-weight: 660;
  color: var(--ink-on-dark);
  margin-bottom: 1.375rem;
}
.footer-col ul { display: grid; gap: 0.375rem; }
.footer-col a:not(.btn) {
  font-size: 0.9531rem;
  transition: color 180ms ease;
  /* Cel dotykowy: link listy = pełny wiersz z oddechem (WCAG 2.5.8) */
  display: inline-block;
  padding-block: 0.25rem;
}
@media (hover: hover) and (pointer: fine) {
  .footer-col a:not(.btn):hover { color: var(--brand-bright); }
}
.footer-col address { display: grid; gap: 0.5rem; font-size: 0.9531rem; }
.footer-col address a { font-weight: 540; color: var(--ink-on-dark); }
.footer-social { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.75rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid oklch(1 0 0 / 0.25);
  color: var(--muted-on-dark);
  transition: background 200ms ease, border-color 200ms ease;
}
.footer-social .ico { width: 1.1875rem; height: 1.1875rem; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .footer-social a:hover {
    color: var(--bg-dark);
    background: var(--brand);
    border-color: var(--brand);
  }
}
.footer-social a:focus-visible { outline-color: var(--brand); }
/* Przycisk w stopce: pełne style .btn (flex, padding) + własny odstęp.
   Jawny kolor na hover, żeby żaden link-hover stopki go nie przefarbował. */
.footer-cta { margin-top: 1.75rem; }
@media (hover: hover) and (pointer: fine) {
  .footer-cta:hover { color: var(--bg-dark); }
}

.footer-bottom {
  padding-block: 1.75rem;
  border-top: 1px solid var(--hairline-dark);
  font-size: 0.8594rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-legal a { color: var(--muted-on-dark); transition: color 180ms ease;   display: inline-block;
  padding-block: 0.375rem;
  margin-block: -0.125rem;
}
@media (hover: hover) and (pointer: fine) {
  .footer-legal a:hover { color: var(--brand-bright); }
}

/* ---------- Reveal: stany startowe ustawia wyłącznie JS (gsap.from) ---------- */
/* Bez JS wszystko jest widoczne — sekcje nie znikają w headless/no-JS. */

/* ==========================================================================
   Responsywność
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --section-pad: clamp(4rem, 10vh, 6rem); }

  /* Scroll experience: wyśrodkowane strefy z ciemnym scrimem */
  #scroll-container { height: 540vh; }
  .align-left, .align-right { padding-inline: var(--gutter); }
  .align-left .section-inner, .align-right .section-inner {
    max-width: 34rem;
    background: oklch(0.17 0.01 220 / 0.78);
    padding: 1.75rem 1.625rem;
    border-radius: 6px;
  }
  .scroll-section[data-enter="10"] { top: 22.3%; }
  .scroll-section[data-enter="19"] { top: 30.5%; }
  .scroll-section[data-enter="38"] { top: 45.1%; }
  .scroll-section[data-enter="54"] { top: 58.2%; }
  .scroll-section[data-enter="66"] { top: 68%; }
  .scroll-section[data-enter="80"] { top: 85%; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2.25rem; }

  .hero-meta { grid-template-columns: 1fr 1fr; row-gap: 1.25rem; }
  .hero-scroll { display: none; }
  .hero-standalone { padding-bottom: 17rem; }

  /* Oferta: stos rozkłada się w pionowy układ jedno­kolumnowy */
  .section-oferta { padding-bottom: var(--section-pad); }   /* statyczny stos potrzebuje oddechu od następnej sekcji */
  .stack-card { grid-template-columns: 1fr; grid-template-rows: 13rem 1fr; height: auto; min-height: 27rem; }
  .stack-card-media { order: -1; }
  .oferta-stack .stack-slot:last-child { margin-bottom: clamp(1rem, 4vw, 2rem); }

  /* Projekty: karuzel przechodzi w natywne przewijanie palcem */
  .carousel-card { width: clamp(16rem, 78vw, 22rem); aspect-ratio: 4 / 5; }

  .tech-grid { grid-template-columns: 1fr; min-height: 0; gap: 2rem; }
  .tech-media {
    order: -1;
    margin-right: 0;
    margin-inline: calc(var(--bleed) * -1);
    align-self: stretch;
    aspect-ratio: 16 / 10;
    border-radius: 0;
  }
  .standards-row { grid-template-columns: 1fr; gap: 2rem; }
  .real-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .hero-standalone { padding-bottom: 19rem; }
  .section-head-split .btn { width: 100%; }
}

/* ==========================================================================
   Reduced motion — mniej i łagodniej, nie zero
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll svg { animation: none; }
  .partners-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .marquee-wrap { display: none; }
  .carousel-card img, .real-tile img, .stack-card-media img { transition: none; }
  /* Karuzel: treść zawsze widoczna, bez animacji wjazdu */
  .carousel-reveal { translate: 0; opacity: 1; transition: none; }
  #loader { transition: opacity 300ms ease; }
  #loader.done { clip-path: none; opacity: 0; pointer-events: none; }
  .mobile-menu ul a { transition: opacity 250ms ease; transform: none; }
  .nav-submenu { transition: opacity 150ms ease; transform: none; }
}

/* ==========================================================================
   Druk — treść nigdy nie może zostać w stanie „przed animacją"
   (reveale GSAP gatują opacity/transform; drukarka nie odpala JS-owych tween)
   ========================================================================== */
@media print {
  [data-reveal],
  .scroll-section .section-label,
  .scroll-section .section-heading,
  .scroll-section .section-body,
  .scroll-section .section-note,
  .scroll-section .cta-row,
  .scroll-section .stat {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .site-header, .mobile-menu, #loader, .marquee-wrap, .canvas-wrap, #dark-overlay { display: none !important; }
}
