/* ==========================================================================
   MasterCraft Polska — style
   Paleta: woda o zmierzchu (głębia, piana, złota godzina) + czerwień MasterCraft
   Krój: Archivo Variable (oś szerokości 62–125 % i wagi 100–900)
   ========================================================================== */

/* ---------- Fonty (hostowane lokalnie, bez Google Fonts) ---------- */
@font-face {
  font-family: 'Archivo MC';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations'), url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo MC';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations'), url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo MC';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-italic.woff2) format('woff2-variations'), url(../fonts/archivo-latin-ext-wdth-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo MC';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-italic.woff2) format('woff2-variations'), url(../fonts/archivo-latin-wdth-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeny ---------- */
:root {
  --deep: #06110e;          /* głębia — tło strony */
  --deep-2: #0b1a16;        /* toń — podniesione powierzchnie */
  --deep-3: #12251f;
  --foam: #edf2ef;          /* piana — tekst */
  --mist: #93a69f;          /* mgła — tekst drugorzędny */
  --gold: #e9a94f;          /* złota godzina — dane, wyróżnienia */
  --red: #d4152f;           /* czerwień MasterCraft — akcje */
  --red-hi: #ec2a44;
  --line: rgba(237, 242, 239, .13);
  --line-strong: rgba(237, 242, 239, .3);
  --err: #ff8a98;

  --f: 'Archivo MC', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --gut: clamp(20px, 5vw, 88px);
  --sec: clamp(96px, 14vh, 180px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --hdr-h: 76px;
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--deep);
  overflow-x: clip;
  color: var(--foam);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 24px;
}
html:not(.has-lenis) { scroll-behavior: smooth; }
html.has-lenis, html.has-lenis body { height: auto; }
.has-lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  background: var(--deep);
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 300;
  background: var(--foam); color: var(--deep); padding: 12px 18px; border-radius: 99px; font-weight: 650;
  transition: top .3s var(--ease);
}
.skip:focus { top: 16px; }

/* ziarno filmowe */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 95; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { width: 100%; max-width: 1720px; margin-inline: auto; padding-inline: var(--gut); }

/* ---------- Typografia ---------- */
.sl-mask { padding: .22em .14em .12em 0; margin: -.22em -.14em -.12em 0; }
.h2 {
  font-weight: 760;
  font-stretch: 74%;
  font-size: clamp(2.5rem, 5.4vw, 5.4rem);
  line-height: .95;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.h2--xl {
  font-style: italic;
  font-weight: 830;
  font-stretch: 66%;
  font-size: clamp(3rem, 7.6vw, 8.6rem);
  line-height: .88;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.lead {
  font-size: clamp(1.0625rem, 1.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--mist);
  max-width: 46ch;
  margin-top: 1.1em;
  text-wrap: pretty;
}
.note { font-size: .8125rem; line-height: 1.5; color: var(--mist); max-width: 76ch; margin-top: 40px; }
.link { color: var(--foam); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--gold); }

/* ---------- Przyciski ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: var(--h);
  padding: 0 1.55em;
  border-radius: 999px;
  font-weight: 640;
  font-size: .9375rem;
  font-stretch: 92%;
  letter-spacing: .005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn--red { background: var(--red); color: #fff; }
.btn--red::before { background: var(--red-hi); }
.btn--ghost { background: rgba(237, 242, 239, .08); color: var(--foam); box-shadow: inset 0 0 0 1px rgba(237, 242, 239, .32); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--ghost::before, .btn--line::before { background: var(--foam); }
.btn--ghost:hover, .btn--ghost:focus-visible, .btn--line:hover, .btn--line:focus-visible { color: var(--deep); }
.btn--line { color: var(--foam); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--sm { --h: 42px; padding: 0 1.2em; font-size: .875rem; }
.btn--lg { --h: 60px; padding: 0 2em; font-size: 1rem; }

/* ---------- Ekran startowy ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: var(--deep);
  clip-path: inset(0 0 0 0);
  animation: loader-fallback .5s ease 6s forwards;
}
@keyframes loader-fallback { to { opacity: 0; visibility: hidden; } }
.loader__inner { display: grid; justify-items: center; gap: 26px; }
.loader__badge svg { width: 70px; height: auto; color: var(--foam); }
.loader__num {
  font-weight: 260;
  font-stretch: 62%;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
  text-align: center;
}
.loader__line {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 12vh;
  height: 1px; background: rgba(237, 242, 239, .12);
}
.loader__line i { display: block; height: 100%; background: var(--foam); transform-origin: left center; transform: scaleX(0); }

/* ---------- Nagłówek ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
  height: var(--hdr-h);
  padding: 0 var(--gut);
  transition: transform .6s var(--ease), background-color .5s, box-shadow .5s;
}
.hdr.is-scrolled {
  background: rgba(6, 17, 14, .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 1px 0 var(--line);
}
.hdr.is-hidden { transform: translateY(-105%); }
.hdr__logo { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--foam); }
.hdr__wordmark svg { width: clamp(124px, 10.5vw, 158px); height: auto; }
.hdr__pl {
  font-size: .75rem; font-weight: 620; font-stretch: 86%; letter-spacing: .02em;
  padding: 3px 9px 3px; border-radius: 99px;
  box-shadow: inset 0 0 0 1px rgba(237, 242, 239, .36);
}
.hdr__nav { display: flex; gap: clamp(18px, 2.2vw, 34px); font-size: .9375rem; font-weight: 540; }
.hdr__nav a { position: relative; padding: 6px 0; opacity: .78; transition: opacity .3s; }
.hdr__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.hdr__nav a:hover, .hdr__nav a.is-active { opacity: 1; }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.hdr__burger { display: none; align-items: center; gap: 12px; height: 44px; padding: 0 4px 0 16px; border-radius: 99px; font-weight: 600; font-size: .9375rem; box-shadow: inset 0 0 0 1px var(--line-strong); }
.hdr__burger-icon { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--foam); }
.hdr__burger-icon i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--deep); transition: transform .45s var(--ease); }
.hdr__burger-icon i:first-child { top: 14px; }
.hdr__burger-icon i:last-child { top: 20px; }
.hdr__burger[aria-expanded='true'] .hdr__burger-icon i:first-child { transform: translateY(3px) rotate(45deg); }
.hdr__burger[aria-expanded='true'] .hdr__burger-icon i:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 1080px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__burger { display: inline-flex; }
}
@media (max-width: 420px) { .hdr__pl { display: none; } }

/* ---------- Menu mobilne ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--hdr-h) + 24px) var(--gut) calc(32px + env(safe-area-inset-bottom));
  background: var(--deep);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu__nav { display: grid; gap: 2px; }
.menu__nav a {
  font-style: italic; font-weight: 830; font-stretch: 66%; text-transform: uppercase;
  font-size: clamp(2.8rem, 12vw, 5rem); line-height: 1.02;
}
.menu__nav a:active { color: var(--gold); }
.menu__foot { display: grid; gap: 6px; color: var(--mist); font-size: 1.0625rem; }

/* ---------- Szyna postępu ---------- */
.rail {
  position: fixed; z-index: 40;
  left: clamp(14px, 1.6vw, 30px); top: 50%;
  width: 24px; height: min(60vh, 560px);
  transform: translateY(-50%);
  display: none;
  opacity: 0; transition: opacity .6s;
}
.is-ready .rail { opacity: 1; }
@media (min-width: 1280px) and (hover: hover) { .js .rail { display: block; } }
.rail__svg { width: 100%; height: 100%; overflow: visible; }
.rail__track, .rail__wake { fill: none; }
.rail__track { stroke: rgba(237, 242, 239, .14); stroke-width: 1; }
.rail__wake { stroke: var(--foam); stroke-width: 1.5; }
.rail__boat { position: absolute; left: 0; top: 0; width: 34px; height: auto; pointer-events: none; will-change: transform; filter: brightness(1.9) saturate(.6) drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.rail__marks { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.rail__marks li { position: absolute; left: var(--x, 50%); top: var(--y, 0); transform: translate(-50%, -50%); }
.rail__marks a {
  position: relative; display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--deep); box-shadow: inset 0 0 0 1.5px rgba(237, 242, 239, .45);
  transition: background-color .4s, box-shadow .4s;
}
.rail__marks a::before { content: ''; position: absolute; inset: -10px; }
.rail__marks a.is-past { background: var(--foam); box-shadow: none; }
.rail__marks span {
  position: absolute; left: 22px; top: 50%;
  transform: translate(-6px, -50%); opacity: 0; pointer-events: none;
  white-space: nowrap; font-size: .8125rem; font-weight: 600;
  padding: 5px 11px; border-radius: 99px; background: rgba(6, 17, 14, .86); box-shadow: inset 0 0 0 1px var(--line);
  transition: opacity .3s, transform .4s var(--ease);
}
.rail__marks a:hover span, .rail__marks a:focus-visible span { opacity: 1; transform: translate(0, -50%); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: var(--deep); }
.hero__stage { position: absolute; inset: 0; }
.hero__bg, .hero__fg { position: absolute; inset: 0; transform-origin: 50% 46%; }
.hero__bg-in, .hero__fg-in { position: absolute; inset: -2.5%; }
.hero__bg img, .hero__fg img, .hero__water { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__water { opacity: 0; transition: opacity .8s; }
.hero.has-water .hero__water { opacity: 1; }
.hero__fg { z-index: 3; pointer-events: none; }
.hero__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 34% 52% at 50% 44%, rgba(6, 17, 14, 0) 0%, rgba(6, 17, 14, .38) 100%),
    linear-gradient(180deg, rgba(6, 17, 14, .6) 0%, rgba(6, 17, 14, .1) 22%, rgba(6, 17, 14, .1) 55%, rgba(6, 17, 14, .92) 100%);
}
.hero__title {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  font-style: italic;
  font-weight: 860;
  text-transform: uppercase;
  font-size: clamp(4.6rem, 13.4vw, 15.5rem);
  line-height: .8;
  letter-spacing: -.01em;
  color: var(--foam);
}
.hero__line {
  --wdth: 64;
  position: absolute;
  display: block;
  overflow: hidden;
  padding: .2em .1em .08em;
  font-variation-settings: 'wdth' var(--wdth);
  white-space: nowrap;
  text-shadow: 0 .02em .3em rgba(6, 17, 14, .25);
}
.hero__line-in { display: inline-block; will-change: transform; }
.hero__line--a { left: calc(var(--gut) - .1em); top: 50%; transform: translateY(-80%); }
.hero__line--b { right: calc(var(--gut) - .1em); top: 50%; transform: translateY(-22%); }

.hero__info {
  position: absolute; z-index: 4;
  left: var(--gut); right: var(--gut); bottom: clamp(28px, 6vh, 64px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
}
.hero__lead { max-width: 40ch; font-size: clamp(1rem, 1.15vw, 1.1875rem); line-height: 1.55; color: rgba(237, 242, 239, .9); text-wrap: pretty; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hero__scroll {
  position: absolute; z-index: 4; left: 50%; bottom: clamp(28px, 6vh, 64px);
  width: 26px; height: 42px; margin-left: -13px;
  border-radius: 99px; box-shadow: inset 0 0 0 1.5px rgba(237, 242, 239, .55);
}
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--foam); animation: scrollcue 2.2s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 1180px) { .hero__scroll { display: none; } }
@media (max-width: 900px) {
  .hero { height: auto; min-height: 0; overflow: visible; }
  .hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
  .hero__bg-in, .hero__fg-in {
    inset: auto -3%;
    top: 50%;
    aspect-ratio: 4 / 3;
    transform: translateY(-50%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 84%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 84%, transparent 100%);
  }
  .hero__title { font-size: clamp(4.2rem, 26vw, 9rem); }
  .hero__line--a { left: 50%; top: 9.5%; transform: translateX(-50%); }
  .hero__line--b { left: 50%; right: auto; top: auto; bottom: 13%; transform: translateX(-50%); }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(6, 17, 14, .7) 0%, rgba(6, 17, 14, .15) 26%, rgba(6, 17, 14, .1) 60%, var(--deep) 100%);
  }
  .hero__info { position: relative; left: auto; right: auto; bottom: auto; flex-direction: column; align-items: flex-start; padding: 32px var(--gut) 8px; }
  .hero__actions { justify-content: flex-start; }
}

/* ---------- SHOWREEL ---------- */
.reel { position: relative; }
.reel__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.reel__frame {
  --ci: 20%; --cx: 27%; --cr: 22px; --vs: 1.05;
  position: absolute; inset: 0;
  clip-path: inset(var(--ci) var(--cx) round var(--cr));
  background: #0c1714;
}
.reel__video { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--vs)); }
.reel__word {
  position: absolute; z-index: 2;
  font-style: italic; font-weight: 840; font-stretch: 64%; text-transform: uppercase;
  font-size: clamp(3rem, 9.4vw, 11rem); line-height: .82;
  pointer-events: none;
}
.reel__word--a { left: var(--gut); top: 11%; }
.reel__word--b { right: var(--gut); bottom: 11%; text-align: right; }
.reel__caption {
  position: absolute; z-index: 2; right: var(--gut); top: 12%;
  max-width: 34ch; color: var(--mist); font-size: .9375rem; line-height: 1.55;
}
@media (max-width: 900px) {
  .reel__frame { --ci: 26%; --cx: 7%; --cr: 16px; }
  .reel__word--a { top: 12%; }
  .reel__word--b { bottom: 17%; }
  .reel__caption { top: auto; bottom: 6%; left: var(--gut); right: var(--gut); max-width: none; font-size: .875rem; }
}
.no-motion .reel__pin, html:not(.js) .reel__pin { height: auto; padding: var(--sec) var(--gut); display: grid; gap: 28px; }
.no-motion .reel__frame, html:not(.js) .reel__frame { position: relative; clip-path: none; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; }
.no-motion .reel__video, html:not(.js) .reel__video { transform: none; }
.no-motion .reel__word, .no-motion .reel__caption, html:not(.js) .reel__word, html:not(.js) .reel__caption { position: static; text-align: left; }
@media (max-width: 900px) {
  .reel__pin { height: auto; padding: var(--sec) var(--gut); display: grid; gap: 28px; }
  .reel__frame, .no-motion .reel__frame, html:not(.js) .reel__frame { position: relative; clip-path: none; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; }
  .reel__video { transform: none; object-fit: contain; }
  .reel__word, .reel__caption { position: static; text-align: left; }
}


/* ---------- Manifest ---------- */
.manifest { padding: var(--sec) var(--gut); max-width: 1720px; margin-inline: auto; }
.manifest__text {
  font-weight: 560;
  font-stretch: 84%;
  font-size: clamp(1.85rem, 4vw, 4.35rem);
  line-height: 1.13;
  letter-spacing: -.012em;
  max-width: 1500px;
  text-wrap: pretty;
}
.manifest__text .w { display: inline; }
.pill {
  display: inline-block;
  height: .8em; width: 1.7em;
  object-fit: cover;
  border-radius: 999px;
  vertical-align: -.06em;
  margin: 0 .06em;
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: clamp(18px, 3vw, 36px) 0; border-block: 1px solid var(--line); }
.marquee__row { display: flex; width: max-content; will-change: transform; animation: marquee 48s linear infinite; }
.anim .marquee__row { animation: none; }
.marquee__row span {
  font-style: italic; font-weight: 830; font-stretch: 64%; text-transform: uppercase;
  font-size: clamp(3rem, 8.6vw, 8.2rem); line-height: 1;
  padding-right: .45em;
  color: transparent; -webkit-text-stroke: 1px rgba(237, 242, 239, .42);
}
.marquee__row span:nth-child(3n+1) { color: var(--foam); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Rodziny ---------- */
.fam { position: relative; }
.fam__intro { padding-top: var(--sec); padding-bottom: clamp(40px, 6vh, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42ch); gap: 32px; align-items: end; }
.fam__intro .lead { margin-top: 0; }
.fam__pin { position: relative; }
.fam__tabs {
  position: relative; z-index: 6;
  display: flex; gap: clamp(14px, 2.2vw, 36px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  padding: 0 var(--gut) 14px;
}
.fam__tabs::-webkit-scrollbar { display: none; }
.fam__tabs button {
  flex: none;
  font-weight: 700; font-stretch: 80%; font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--mist); padding: 8px 0; transition: color .3s;
}
.fam__tabs button[aria-current='true'] { color: var(--foam); }
.fam__tabs-bar { position: absolute; left: var(--gut); right: var(--gut); bottom: 6px; height: 1px; background: var(--line); }
.fam__tabs-bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--foam); transform-origin: left; transform: scaleX(var(--p, .2)); border-radius: 3px; transition: transform .3s; }

.fam__viewport { position: relative; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.fam__viewport::-webkit-scrollbar { display: none; }
.fam__track { display: flex; width: max-content; }
.fam__panel {
  --accent: #9db9cc;
  position: relative; flex: none;
  width: 100vw;
  scroll-snap-align: start;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 24px var(--gut) 56px;
  isolation: isolate;
}
.fam__amb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .3; filter: saturate(.75); }
.fam__panel::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 70% 55%, rgba(6, 17, 14, .2), rgba(6, 17, 14, .85) 75%),
    linear-gradient(90deg, rgba(6, 17, 14, .94) 0%, rgba(6, 17, 14, .45) 45%, rgba(6, 17, 14, .5) 82%, rgba(6, 17, 14, .94) 100%);
}
.fam__name {
  --wdth: 62;
  font-style: italic; font-weight: 880; text-transform: uppercase;
  font-variation-settings: 'wdth' var(--wdth);
  font-size: clamp(6rem, 30vw, 12rem);
  line-height: .8;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  opacity: .55;
  pointer-events: none;
}
.fam__boat { position: relative; z-index: 2; margin: -1.2em 0 8px; }
.fam__boat img {
  width: 100%; height: auto;
  -webkit-box-reflect: below -6px linear-gradient(transparent 62%, rgba(255, 255, 255, .16));
}
.fam__boat::after {
  content: ''; position: absolute; z-index: -1;
  left: 70%; right: -40%; bottom: 14%; height: 2px;
  background: linear-gradient(90deg, rgba(237, 242, 239, .55), rgba(237, 242, 239, 0));
  border-radius: 2px;
  filter: blur(.5px);
}
.fam__info { position: relative; z-index: 3; max-width: 560px; }
.fam__title { display: grid; gap: 6px; font-style: italic; font-weight: 840; font-stretch: 66%; text-transform: uppercase; font-size: clamp(2.6rem, 4.6vw, 4.6rem); line-height: .85; }
.fam__title span { font-style: normal; text-transform: none; font-weight: 600; font-stretch: 90%; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.3; color: var(--accent); }
.fam__info > p:not(.fam__models) { margin-top: 18px; color: rgba(237, 242, 239, .8); max-width: 52ch; }
.fam__specs { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px clamp(18px, 2.4vw, 36px); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.fam__specs div { display: grid; gap: 2px; }
.fam__specs dt { font-size: .8125rem; color: var(--mist); }
.fam__specs dd { font-weight: 700; font-stretch: 84%; font-size: 1.1875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fam__models { margin-top: 16px; font-size: .9375rem; color: var(--mist); }
.fam__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 899px) {
  .fam__intro { grid-template-columns: 1fr; }
  .fam__panel { width: 90vw; }
  .fam__panel:last-child { width: 100vw; }
  .fam__specs { grid-template-columns: repeat(2, auto); }
}

/* pinned (desktop) */
.fam.is-pinned .fam__pin { height: 100vh; height: 100svh; overflow: hidden; }
.fam.is-pinned .fam__viewport { position: absolute; inset: 0; overflow: visible; scroll-snap-type: none; }
.fam.is-pinned .fam__track { height: 100%; will-change: transform; }
.fam.is-pinned .fam__panel { width: 100vw; height: 100%; padding: 0; display: block; }
.fam.is-pinned .fam__amb { left: -8%; width: 116%; }
.fam.is-pinned .fam__tabs { position: absolute; left: 0; right: 0; bottom: clamp(18px, 3.4vh, 34px); padding-bottom: 14px; justify-content: center; }
.fam.is-pinned .fam__tabs-bar { left: 50%; right: auto; width: min(520px, 60vw); transform: translateX(-50%); }
.fam.is-pinned .fam__name { position: absolute; left: calc(var(--gut) - .06em); top: 9vh; font-size: clamp(9rem, 25vw, 30rem); }
.fam.is-pinned .fam__boat { position: absolute; right: 3vw; top: 20vh; width: 58vw; margin: 0; }
.fam.is-pinned .fam__boat--low { top: 30vh; }
.fam.is-pinned .fam__info { position: absolute; left: var(--gut); bottom: 15vh; width: min(560px, 40vw); }

/* ---------- Porównywarka ---------- */
.explore { padding-block: var(--sec); }
.explore__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44ch); gap: 32px; align-items: end; margin-bottom: 44px; }
.explore__head .lead { margin-top: 0; }
.explore__controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 99px; background: var(--deep-2); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; flex: none; height: 42px; padding: 0 18px; border-radius: 99px; font-weight: 640; font-stretch: 88%; font-size: .9375rem; color: var(--mist); transition: color .4s var(--ease); }
.seg button[aria-pressed='true'] { color: var(--deep); }
.seg__pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 99px; background: var(--foam); transition: transform .55s var(--ease), width .55s var(--ease); }
.explore__models { display: flex; flex-wrap: wrap; gap: 8px; }
.explore__models button { height: 42px; padding: 0 18px; border-radius: 99px; font-weight: 620; font-stretch: 90%; font-size: .9375rem; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .35s, color .35s, box-shadow .35s; }
.explore__models button:hover { box-shadow: inset 0 0 0 1px var(--foam); }
.explore__models button[aria-pressed='true'] { background: var(--gold); color: var(--deep); box-shadow: none; }
.explore__body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: center; padding-top: 44px; }
.explore__fig { display: grid; gap: 12px; }
.explore__stage { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.explore__stage::after {
  content: ''; position: absolute; left: 12%; right: 12%; bottom: 6%; height: 14%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(233, 169, 79, .18), rgba(233, 169, 79, 0) 70%);
  filter: blur(10px);
}
.explore__stage img { width: 100%; height: 100%; object-fit: contain; }
.explore__fig figcaption { font-size: .8125rem; color: var(--mist); }
.explore__name { font-style: italic; font-weight: 850; font-stretch: 64%; text-transform: uppercase; font-size: clamp(3rem, 6vw, 6.4rem); line-height: .86; margin-bottom: 28px; }
.bars { display: grid; gap: 18px; }
.bar { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px; align-items: end; }
.bar dt { color: var(--mist); font-size: .9375rem; padding-bottom: 2px; }
.bar dd { display: grid; gap: 8px; }
.bar__val { font-weight: 720; font-stretch: 84%; font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-variant-numeric: tabular-nums; line-height: 1.1; }
.bar__track { position: relative; height: 4px; border-radius: 4px; background: rgba(237, 242, 239, .1); overflow: hidden; }
.bar__track i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #f4cf93); transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform 1.1s var(--ease); }
.explore__engine { margin: 26px 0 28px; color: var(--mist); }
@media (max-width: 899px) {
  .explore__head, .explore__body { grid-template-columns: 1fr; }
  .explore__controls { flex-direction: column; align-items: stretch; }
  .seg { align-self: flex-start; }
}

/* ---------- Fala ---------- */
.wave { position: relative; padding-bottom: var(--sec); }
.wave__hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.wave__bg { position: absolute; inset: -12% 0; }
.wave__bg img { width: 100%; height: 100%; object-fit: cover; }
.wave__hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 17, 14, .55) 0%, rgba(6, 17, 14, .05) 30%, rgba(6, 17, 14, .2) 55%, var(--deep) 100%); }
.wave__intro { position: relative; z-index: 2; padding-bottom: clamp(48px, 10vh, 120px); }
.wave__logo { width: 150px; height: auto; margin-bottom: 26px; }
.wave__intro .lead { color: rgba(237, 242, 239, .86); }

.lab { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: stretch; margin-top: clamp(24px, 4vh, 48px); }
.lab__screen { position: relative; min-height: 360px; border-radius: 18px; overflow: hidden; background: #071a16; box-shadow: inset 0 0 0 1px var(--line); }
.lab__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.lab__badge {
  position: absolute; left: 22px; top: 20px;
  font-style: italic; font-weight: 840; font-stretch: 64%; text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.6rem); line-height: .9;
  pointer-events: none;
}
.lab__badge::before { content: 'Fala'; display: block; font-style: normal; text-transform: none; font-weight: 600; font-stretch: 90%; font-size: .875rem; line-height: 1.4; color: var(--mist); letter-spacing: 0; }
.lab__panel { display: grid; align-content: start; gap: 24px; padding: clamp(24px, 3vw, 40px); border-radius: 18px; background: var(--deep-2); box-shadow: inset 0 0 0 1px var(--line); }
.lab__title { font-weight: 760; font-stretch: 78%; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1; }
.range { display: grid; gap: 10px; }
.range__label { display: flex; justify-content: space-between; color: var(--mist); font-size: .9375rem; }
.range [data-lab-out] { color: var(--foam); font-weight: 700; font-variant-numeric: tabular-nums; }
.range input {
  --fill: 60%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer;
}
.range input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--fill), rgba(237, 242, 239, .14) var(--fill)); }
.range input::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(237, 242, 239, .14); }
.range input::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--foam); box-shadow: 0 0 0 6px rgba(233, 169, 79, .22); transition: box-shadow .3s; }
.range input::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--foam); box-shadow: 0 0 0 6px rgba(233, 169, 79, .22); }
.range input:focus-visible { outline: none; }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--deep), 0 0 0 5px var(--gold); }
.range input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--deep), 0 0 0 5px var(--gold); }
.switch { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.switch legend { grid-column: 1 / -1; color: var(--mist); font-size: .9375rem; margin-bottom: 10px; padding: 0; }
.switch label { position: relative; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.switch span { display: grid; place-items: center; height: 44px; border-radius: 12px; font-weight: 640; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .3s, color .3s, box-shadow .3s; }
.switch input:checked + span { background: var(--foam); color: var(--deep); box-shadow: none; }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.lab__note { font-size: .875rem; color: var(--mist); }
.lab__panel .btn { justify-self: start; }
@media (max-width: 899px) {
  .lab { grid-template-columns: 1fr; }
  .lab__screen { min-height: 0; aspect-ratio: 4 / 3; }
}

.feats { list-style: none; padding-block: 0; margin-top: var(--sec); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); }
.feats__item { padding-top: 26px; border-top: 1px solid var(--line-strong); }
.feats__item h3 { font-weight: 740; font-stretch: 82%; font-size: 1.375rem; line-height: 1.1; margin-bottom: 12px; }
.feats__item p { color: var(--mist); font-size: .96875rem; }
@media (max-width: 1100px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 44px); } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; gap: 32px; } }

.wave__duo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; margin-top: var(--sec); }
.wave__duo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.wave__duo img:last-child { margin-top: 14vh; aspect-ratio: 4 / 5; }
@media (max-width: 700px) { .wave__duo { grid-template-columns: 1fr; } .wave__duo img:last-child { margin-top: 0; aspect-ratio: 3 / 2; } }

/* ---------- Technologia ---------- */
.tech { padding-block: var(--sec); position: relative; }
.tech__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40ch); gap: 32px; align-items: end; margin-bottom: 48px; }
.tech__head .lead { margin-top: 0; }
.tech__list { position: relative; z-index: 31; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tech__row h3, .tech__row p { position: relative; text-shadow: 0 1px 18px rgba(6, 17, 14, .55); }
.tech__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px 32px; align-items: baseline;
  padding: clamp(22px, 3vh, 32px) 0;
  border-bottom: 1px solid var(--line);
}
.tech__row h3 {
  font-weight: 760; font-stretch: 72%;
  font-size: clamp(2rem, 4.4vw, 4.4rem); line-height: .95;
  transition: transform .6s var(--ease), color .35s;
}
.tech__row p { color: var(--mist); max-width: 54ch; }
.tech__thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .tech__row:hover h3 { transform: translateX(22px); color: var(--gold); }
}
.tech__float {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: clamp(240px, 22vw, 360px); aspect-ratio: 4 / 3;
  border-radius: 8px; overflow: hidden;
  pointer-events: none; opacity: 0; visibility: hidden;
}
.tech__float img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) {
  .tech__thumb { display: block; grid-column: 2; width: min(100%, 460px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-top: 6px; }
  .tech__float { display: none; }
}
@media (max-width: 899px) {
  .tech__head { grid-template-columns: 1fr; }
  .tech__row { grid-template-columns: 1fr; }
  .tech__thumb { display: block; grid-column: auto; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-top: 6px; }
  .tech__float { display: none; }
}

/* ---------- Rekordy ---------- */
.records { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-block: var(--sec); }
.records__media { position: absolute; inset: 0; }
.records__video { width: 100%; height: 100%; object-fit: cover; }
.records__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--deep) 0%, rgba(6, 17, 14, .45) 22%, rgba(6, 17, 14, .55) 70%, var(--deep) 100%), linear-gradient(90deg, rgba(6, 17, 14, .6), rgba(6, 17, 14, 0) 70%); }
.records__inner { position: relative; z-index: 2; }
.records__inner .h2 { max-width: 17ch; }
.records__toggle { margin-top: 24px; }
.records__list { list-style: none; padding: 0; margin-top: clamp(40px, 8vh, 88px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.records__num { font-style: italic; font-weight: 850; font-stretch: 64%; font-size: clamp(4.4rem, 9.6vw, 10rem); line-height: .84; font-variant-numeric: tabular-nums; white-space: nowrap; }
.records__num small { font-size: .36em; font-style: normal; font-stretch: 80%; font-weight: 700; color: var(--gold); margin-left: .14em; }
.records__list li > p:last-child { margin-top: 16px; color: rgba(237, 242, 239, .84); max-width: 32ch; }
@media (max-width: 899px) { .records__list { grid-template-columns: 1fr; } }

/* ---------- Historia ---------- */
.history { position: relative; padding-block: var(--sec); overflow: clip; }
.history__bg { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; pointer-events: none; }
.history__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.history__sticky img { width: 100%; height: auto; opacity: .72; will-change: transform; }
.history__sticky::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--deep) 0%, rgba(6, 17, 14, 0) 42%),
    linear-gradient(180deg, var(--deep) 0%, rgba(6, 17, 14, 0) 16%, rgba(6, 17, 14, 0) 84%, var(--deep) 100%);
}
.history__head { position: relative; z-index: 2; }
.history__head .h2 { max-width: 11ch; }
.tl { list-style: none; padding: 0; margin-top: clamp(56px, 10vh, 120px); position: relative; z-index: 2; }
.tl::before, .tl::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--gut); width: 1px; background: var(--line); }
.tl::after { background: var(--foam); transform-origin: top center; transform: scaleY(var(--tlp, 0)); }
.tl__item { position: relative; display: grid; grid-template-columns: minmax(150px, 22vw) minmax(0, 520px); gap: clamp(20px, 4vw, 64px); padding: clamp(36px, 7vh, 72px) 0 clamp(36px, 7vh, 72px) clamp(28px, 3.4vw, 56px); }
.tl__item::before { content: ''; position: absolute; left: -5px; top: calc(clamp(36px, 7vh, 72px) + .42em); width: 11px; height: 11px; border-radius: 50%; background: var(--deep); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color .4s, box-shadow .4s; font-size: clamp(3.2rem, 7.4vw, 8rem); }
.tl__item.is-active::before { background: var(--foam); box-shadow: 0 0 0 6px rgba(237, 242, 239, .12); }
.tl__item--pl.is-active::before { background: var(--red); box-shadow: 0 0 0 6px rgba(212, 21, 47, .2); }
.tl__year {
  --wdth: 62;
  font-style: italic; font-weight: 860;
  font-variation-settings: 'wdth' var(--wdth);
  font-size: clamp(3.2rem, 7.4vw, 8rem); line-height: .84;
  font-variant-numeric: tabular-nums;
  color: transparent; -webkit-text-stroke: 1px rgba(237, 242, 239, .5);
  transition: color .5s, -webkit-text-stroke-color .5s;
}
.tl__item.is-active .tl__year { color: var(--foam); -webkit-text-stroke-color: transparent; }
.tl__item--pl .tl__year { -webkit-text-stroke-color: rgba(236, 42, 68, .8); }
.tl__item--pl.is-active .tl__year { color: var(--red-hi); }
.tl__body h3 { font-weight: 740; font-stretch: 84%; font-size: clamp(1.375rem, 1.9vw, 1.75rem); line-height: 1.1; margin: .2em 0 .5em; }
.tl__body p { color: var(--mist); max-width: 50ch; }
.tl__body img { width: min(100%, 460px); aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; margin-top: 22px; }
.tl .tl__item { padding-left: calc(var(--gut) + clamp(28px, 3.4vw, 56px)); }
.tl .tl__item::before { left: calc(var(--gut) - 5px); }
.tl.wrap { padding-inline: 0 var(--gut); }
@media (max-width: 899px) {
  .history__bg { width: 100%; }
  .history__sticky img { opacity: .28; }
  .tl__item { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Ciekawostki ---------- */
.facts { padding-block: var(--sec); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px clamp(32px, 6vw, 120px); align-items: center; }
.facts__head { grid-row: span 2; }
.deck { position: relative; height: clamp(380px, 52vh, 470px); }
.card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(26px, 3.6vw, 48px);
  border-radius: 22px;
  background: var(--card-bg, linear-gradient(155deg, #143a31 0%, #0b1d18 72%));
  box-shadow: inset 0 0 0 1px rgba(237, 242, 239, .12), 0 40px 80px -40px rgba(0, 0, 0, .75);
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
  will-change: transform;
}
.card:nth-child(3n+2) { --card-bg: linear-gradient(155deg, #3b2a12 0%, #1a140b 75%); }
.card:nth-child(3n+3) { --card-bg: linear-gradient(155deg, #3b0f18 0%, #1a090d 75%); }
.card__fig { font-style: italic; font-weight: 870; font-stretch: 62%; font-size: clamp(4.6rem, 10vw, 9.4rem); line-height: .82; color: var(--gold); white-space: nowrap; }
.card__txt { font-size: clamp(1.125rem, 1.45vw, 1.4rem); line-height: 1.4; max-width: 30ch; font-weight: 500; }
.card--badge img { position: absolute; top: clamp(22px, 3vw, 36px); right: clamp(22px, 3vw, 36px); width: clamp(72px, 8vw, 104px); height: auto; }
.card.is-dragging { cursor: grabbing; }
.deck__nav { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.deck__count { font-weight: 700; font-stretch: 84%; font-variant-numeric: tabular-nums; color: var(--mist); }
/* bez JS: lista przewijana */
html:not(.js) .deck { height: auto; display: flex; gap: 16px; overflow-x: auto; }
html:not(.js) .card { position: relative; flex: 0 0 min(86vw, 520px); min-height: 380px; }
html:not(.js) .deck__nav { display: none; }
@media (max-width: 899px) {
  .facts { grid-template-columns: 1fr; }
  .facts__head { grid-row: auto; }
  .deck__nav { grid-column: 1; }
}

/* ---------- Rzemiosło ---------- */
.craft { padding-block: var(--sec); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 96px); align-items: start; overflow: hidden; max-width: 1720px; margin-inline: auto; }
.craft__text { position: sticky; top: 22vh; padding-right: 0; }
.craft__text .wrap { padding: 0; }
.craft__text > p:last-child { margin-top: 1.2em; color: rgba(237, 242, 239, .82); max-width: 44ch; }
.craft__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-right: var(--gut); }
.craft__col { display: grid; gap: 14px; align-content: start; will-change: transform; }
.craft__col:nth-child(2) { margin-top: 12vh; }
.craft__col img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
@media (max-width: 899px) {
  .craft { grid-template-columns: 1fr; }
  .craft__text { position: static; }
  .craft__cols { padding-left: var(--gut); }
  .craft__col:nth-child(3) { display: none; }
  .craft__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Oferta ---------- */
.offer { padding-block: var(--sec); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.offer__head { position: sticky; top: 20vh; }
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(20px, 2.8vh, 28px) 0;
  font-weight: 720; font-stretch: 78%; font-size: clamp(1.5rem, 2.5vw, 2.4rem); line-height: 1.05;
  transition: color .3s;
}
.acc__btn:hover { color: var(--gold); }
.acc__icon { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .4s, box-shadow .4s; }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .5s var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-open .acc__icon { background: var(--foam); color: var(--deep); box-shadow: none; }
.acc__item.is-open .acc__icon::after { transform: rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; visibility: hidden; transition: visibility 0s .6s; }
.acc__item.is-open .acc__inner { visibility: visible; transition-delay: 0s; }
html:not(.js) .acc__panel { grid-template-rows: 1fr; }
html:not(.js) .acc__inner { visibility: visible; }
html:not(.js) .acc__icon { display: none; }
.acc__inner p { color: var(--mist); max-width: 56ch; padding-bottom: 20px; }
.acc__inner .btn { margin-bottom: 28px; }
@media (max-width: 899px) {
  .offer { grid-template-columns: 1fr; }
  .offer__head { position: static; }
}

/* ---------- Galeria ---------- */
.gallery { padding-top: var(--sec); }
.gallery__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40ch); gap: 32px; align-items: end; }
.gallery__head .lead { margin-top: 0; }
.gal { margin-top: clamp(32px, 5vh, 56px); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 0 var(--gut) 8px; cursor: grab; overscroll-behavior-x: contain; }
.gal::-webkit-scrollbar { display: none; }
.gal.is-dragging { cursor: grabbing; }
.gal.is-dragging .gal__item { pointer-events: none; }
.gal__track { display: flex; align-items: center; gap: 14px; width: max-content; }
.gal__item { position: relative; flex: none; height: clamp(260px, 54vh, 580px); aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: var(--deep-2); }
.gal__item:nth-child(4n+2) { height: clamp(220px, 44vh, 480px); }
.gal__item--w { aspect-ratio: 3 / 2; }
.gal__item--t { aspect-ratio: 4 / 5; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gal__item:hover img { transform: scale(1.05); }
@media (max-width: 899px) { .gallery__head { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { padding-block: var(--sec); display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 120px); align-items: start; }
.contact__info .h2 { max-width: 10ch; }
.contact__list { list-style: none; padding: 0; margin-top: clamp(32px, 5vh, 56px); border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__k { color: var(--mist); font-size: .875rem; }
.contact__v { font-style: normal; font-weight: 640; font-stretch: 92%; font-size: clamp(1.0625rem, 1.5vw, 1.4rem); line-height: 1.35; overflow-wrap: anywhere; }
a.contact__v:hover { color: var(--gold); }
.contact__copy { font-size: .8125rem; color: var(--mist); text-decoration: underline; text-underline-offset: 4px; }
.contact__copy:hover { color: var(--foam); }
.contact__copy.is-done { color: var(--gold); text-decoration: none; }
.contact__company { margin-top: 28px; color: var(--mist); font-size: .9375rem; }
.social { list-style: none; padding: 0; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-flex; height: 38px; align-items: center; padding: 0 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: .875rem; font-weight: 600; transition: background-color .3s, color .3s; }
.social a:hover { background: var(--foam); color: var(--deep); }

.contact__formwrap { position: relative; border-radius: 22px; background: var(--deep-2); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(22px, 3.4vw, 52px); }
.form { display: grid; gap: 22px; }
.form__topics { border: 0; margin: 0; padding: 0; min-width: 0; }
.form__topics legend, .field > label { font-size: .9375rem; color: var(--mist); padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chip span { display: inline-flex; align-items: center; height: 42px; padding: 0 17px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 620; font-size: .9375rem; transition: background-color .3s, color .3s, box-shadow .3s; }
.chip input:hover + span { box-shadow: inset 0 0 0 1px var(--foam); }
.chip input:checked + span { background: var(--foam); color: var(--deep); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.field { display: grid; }
.field > label { margin-bottom: 8px; }
.opt { opacity: .7; }
.field input, .field textarea, .select select {
  width: 100%; height: 54px;
  padding: 0 16px;
  border: 0; border-radius: 12px;
  background: rgba(237, 242, 239, .05);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--foam);
  font: inherit; font-size: 1rem;
  transition: box-shadow .25s, background-color .25s;
}
.field textarea { height: auto; min-height: 124px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(147, 166, 159, .75); }
.field input:focus, .field textarea:focus, .select select:focus { outline: none; background: rgba(237, 242, 239, .08); box-shadow: inset 0 0 0 1.5px var(--gold); }
.field.has-error input { box-shadow: inset 0 0 0 1.5px var(--err); }
.field__err { color: var(--err); font-size: .8125rem; line-height: 1.4; }
.field__err:not(:empty) { margin-top: 8px; }
.select { position: relative; }
.select select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; }
.select select option, .select select optgroup { background: #0f211c; color: var(--foam); }
.select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--mist); border-bottom: 1.5px solid var(--mist); transform: rotate(45deg); pointer-events: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .875rem; line-height: 1.5; color: var(--mist); cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-content: center; cursor: pointer; transition: background-color .25s, box-shadow .25s; }
.check input::after { content: ''; width: 11px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .25s var(--ease); }
.check input:checked { background: var(--red); box-shadow: none; }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.field--check.has-error .check input { box-shadow: inset 0 0 0 1.5px var(--err); }
.form__submit { width: 100%; margin-top: 4px; }
.form__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
.form.is-sending .form__spinner { display: inline-block; }
.form.is-sending .form__submit { pointer-events: none; opacity: .85; }
.form :disabled { cursor: wait; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status { font-size: .9375rem; line-height: 1.5; color: var(--mist); }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--err); }
.form__status .btn { margin-top: 12px; }
.done { display: grid; justify-items: start; gap: 14px; padding: 12px 0; }
.done[hidden] { display: none; }
.done:focus { outline: none; }
.done__mark { width: 170px; height: auto; overflow: visible; }
.done__mark path { fill: none; stroke: var(--foam); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.2s var(--ease) forwards; }
.done__mark .done__check { stroke: var(--gold); stroke-width: 3; stroke-dasharray: 60; stroke-dashoffset: 60; animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__title { font-style: italic; font-weight: 840; font-stretch: 66%; text-transform: uppercase; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: .9; }
.done p { color: var(--mist); max-width: 42ch; }
@media (max-width: 899px) {
  .contact { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 1fr auto; }
  .contact__k { grid-column: 1 / -1; }
}

/* ---------- Stopka ---------- */
.foot { padding-top: var(--sec); padding-bottom: calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); overflow: hidden; }
.foot__giant {
  --wdth: 62;
  display: flex; justify-content: space-between; gap: .2em;
  padding-inline: var(--gut);
  font-style: italic; font-weight: 880; text-transform: uppercase;
  font-variation-settings: 'wdth' var(--wdth);
  font-size: clamp(3rem, 8.8vw, 13rem); line-height: .82;
  white-space: nowrap;
}
.foot__giant span:last-child { color: transparent; -webkit-text-stroke: 1.5px rgba(237, 242, 239, .55); }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(48px, 8vh, 96px); }
.foot__k { font-size: .875rem; color: var(--mist); margin-bottom: 14px; }
.foot__cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9688rem; }
.foot__cols a:hover { color: var(--gold); }
.foot__base { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: clamp(48px, 8vh, 96px); padding-top: 24px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--mist); }
.foot__base .link { color: var(--mist); }
@media (max-width: 899px) {
  .foot__giant { flex-direction: column; font-size: clamp(2.6rem, 13.5vw, 6rem); }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__base { flex-direction: column; padding-bottom: 76px; }
}

/* ---------- Pasek mobilny ---------- */
.mbar {
  position: fixed; z-index: 50;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; grid-template-columns: 1fr 1.45fr; gap: 6px;
  padding: 6px; border-radius: 99px;
  background: rgba(11, 26, 22, .88);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -18px rgba(0, 0, 0, .8);
  transition: transform .6s var(--ease), opacity .4s;
}
.mbar a { display: grid; place-items: center; height: 48px; border-radius: 99px; font-weight: 660; font-size: .9375rem; }
.mbar__call { box-shadow: inset 0 0 0 1px var(--line-strong); }
.mbar__cta { background: var(--red); color: #fff; }
.mbar.is-hidden { transform: translateY(160%); opacity: 0; }
@media (max-width: 899px) { .mbar { display: grid; } }

/* ---------- Kursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) { .js .cursor { display: block; } }
.cursor__ring { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(237, 242, 239, .55); transition: transform .45s var(--ease), background-color .4s, box-shadow .4s, opacity .3s; }
.cursor.is-hover .cursor__ring { transform: scale(1.5); box-shadow: inset 0 0 0 1px var(--gold); }
.cursor.is-label .cursor__ring { transform: scale(2.8); background: var(--foam); box-shadow: none; }
.cursor.is-hidden .cursor__ring { opacity: 0; }
.cursor__label { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-size: .75rem; font-weight: 720; font-stretch: 90%; color: var(--deep); opacity: 0; transition: opacity .3s; }
.cursor.is-label .cursor__label { opacity: 1; }

/* ---------- Okna dialogowe ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--foam); overflow: hidden; }
.lightbox::backdrop { background: rgba(3, 9, 7, .94); }
.lightbox img { position: absolute; left: 6vw; right: 6vw; top: 8vh; bottom: 10vh; width: 88vw; height: 82vh; object-fit: contain; }
.lightbox__close, .lightbox__nav { position: absolute; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 99px; font-weight: 620; font-size: .875rem; background: rgba(237, 242, 239, .1); box-shadow: inset 0 0 0 1px var(--line-strong); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--foam); color: var(--deep); }
.lightbox__close { right: 20px; top: 20px; }
.lightbox__nav--prev { left: 20px; bottom: 20px; }
.lightbox__nav--next { right: 20px; bottom: 20px; }
.lightbox__count { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--mist); }
.privacy { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 20px; background: var(--deep-2); color: var(--foam); box-shadow: inset 0 0 0 1px var(--line), 0 40px 120px -20px rgba(0, 0, 0, .8); }
.privacy::backdrop { background: rgba(3, 9, 7, .8); }
.privacy__inner { display: grid; gap: 14px; padding: clamp(24px, 4vw, 44px); }
.privacy h2 { font-weight: 760; font-stretch: 78%; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; margin-bottom: 6px; }
.privacy p { color: var(--mist); font-size: .9375rem; }
.privacy strong { color: var(--foam); font-weight: 650; }
.privacy .btn { justify-self: start; margin-top: 8px; }

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .loader { display: none; }
}

/* Podstawowa nawigacja i treść pozostają dostępne bez JavaScript. */
html:not(.js) .loader,
html:not(.js) .hdr__burger,
html:not(.js) .contact__copy[data-copy],
html:not(.js) .fam__tabs { display: none; }
@media (max-width: 1080px) {
  html:not(.js) .hdr { position: relative; flex-wrap: wrap; height: auto; min-height: var(--hdr-h); gap: 14px; padding-block: 18px; }
  html:not(.js) .hdr__nav { display: flex; flex-wrap: wrap; width: 100%; gap: 8px 20px; }
}
