/* =============================================================================
   METROPOLIA: LAST DANCE · system projektowy (czerń i biel)
   Kolejność: tokeny → reset → typografia → układ → komponenty → nagłówek/stopka
              → koszyk → efekty (grain, progress, transition) → stany animacji
   ============================================================================= */

:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --bg-3: #131313;
  --bg-4: #1b1b1b;
  --fg: #f4f4f4;
  --fg-2: #c6c6c6;
  --fg-3: #8d8d8d;
  --fg-4: #5d5d5d;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.26);
  --paper: #ececec;

  --font-display: 'Archivo Variable', 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Newsreader Variable', 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  --gutter: clamp(20px, 4.2vw, 72px);
  --maxw: 1480px;
  --header-h: 72px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scrollbar-gutter: stable; /* otwarcie koszyka/menu (blokada przewijania) nie przesuwa układu o szerokość paska */
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-display);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
::selection { background: var(--fg); color: var(--bg); }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
[hidden] { display: none !important; }

/* Lenis (płynne przewijanie): reguły z oficjalnego lenis.css */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200; padding: 12px 18px;
  background: var(--fg); color: var(--bg); font: 600 12px var(--font-display); letter-spacing: 0.16em;
  text-transform: uppercase; transform: translateY(-200%); transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- typografia ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.012em;
}
.t-mega { font-size: clamp(72px, 19vw, 340px); }
.t-xl { font-size: clamp(52px, 10.5vw, 190px); }
.t-lg { font-size: clamp(40px, 7vw, 124px); }
.t-md { font-size: clamp(30px, 4.2vw, 68px); }
.t-sm { font-size: clamp(24px, 2.6vw, 40px); }

.wide {
  font-weight: 500;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}
.mono {
  font: 500 11px/1.5 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: -0.01em;
}
.serif { font-family: var(--font-serif); font-stretch: 100%; }
.lead { font-size: clamp(18px, 1.55vw, 23px); line-height: 1.55; color: var(--fg-2); max-width: 48ch; }
.muted { color: var(--fg-3); }
.nowrap { white-space: nowrap; }
.is-missing { outline: 1px dashed var(--fg-3); outline-offset: 2px; color: var(--fg-3); }

/* ---------- układ ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(88px, 13vw, 200px); }

/* Sekcje "papierowe": odwrócona paleta. Komponenty używają zmiennych, więc inwertują się same. */
.paper {
  --bg: var(--paper);
  --fg: #0a0a0a;
  --fg-2: #2a2a2a;
  --fg-3: #5b5b5b;
  --fg-4: #8f8f8f;
  --line: rgba(0, 0, 0, 0.14);
  --line-2: rgba(0, 0, 0, 0.32);
  background: var(--paper);
  color: var(--fg);
  color-scheme: light;
}

.section-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 7vw, 110px); }
.section-head .mono { color: var(--fg-3); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- ikony ---------- */
.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- przyciski ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.9em;
  padding: 1.15em 1.9em; border-radius: 999px; border: 1px solid var(--fg);
  font: 700 12px/1 var(--font-display); font-stretch: 112%; letter-spacing: 0.2em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  transition: color 0.5s var(--ease-out), border-color 0.5s var(--ease-out), opacity 0.3s, transform 0.5s var(--ease-out);
}
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  transform: translateY(102%); transition: transform 0.65s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn .icon { transition: transform 0.5s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }

.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary::before { background: var(--bg); }
.btn--primary:hover, .btn--primary:focus-visible { color: var(--fg); }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--bg); border-color: var(--fg); }

.btn--sm { padding: 0.95em 1.4em; font-size: 11px; }
.btn--lg { padding: 1.45em 2.5em; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.35; pointer-events: none; }
.btn[aria-busy='true'] { pointer-events: none; }
.btn[aria-busy='true'] > span { opacity: 0.5; }
.btn[aria-busy='true']::after {
  content: ''; position: absolute; right: 1.1em; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite;
}

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.icon-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.icon-btn .icon { width: 19px; height: 19px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.8em; padding-bottom: 6px; position: relative;
  font: 700 12px/1 var(--font-display); font-stretch: 112%; letter-spacing: 0.2em; text-transform: uppercase;
}
.link-arrow::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(0.35); }
.link-arrow .icon { transition: transform 0.5s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(6px); }

.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line-2);
  font: 500 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2);
}
.tag--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- formularze ---------- */
.field { display: grid; gap: 4px; }
.field > label, .field-label {
  font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3);
}
.input, .select {
  width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; color: var(--fg); font: 400 18px/1.3 var(--font-display);
  transition: border-color 0.3s; appearance: none;
}
.input::placeholder { color: var(--fg-4); }
.input:hover, .select:hover { border-color: var(--fg-3); }
.input:focus, .select:focus { outline: none; border-color: var(--fg); box-shadow: 0 1px 0 0 var(--fg); }
.input[aria-invalid='true'] { border-color: var(--fg); background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); }
.textarea { display: block; min-height: 120px; padding: 14px; border: 1px solid var(--line-2); border-radius: 0; resize: vertical; font-size: 16px; line-height: 1.6; }
.textarea:focus { box-shadow: none; }
.field-hint { font-size: 13px; color: var(--fg-3); line-height: 1.5; }
.field-error { font-size: 13px; color: var(--fg); }
.field-error::before { content: '× '; }
.select {
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%), linear-gradient(135deg, var(--fg-3) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.select option { background: var(--bg-2); color: var(--fg); }

.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.check input {
  appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; display: grid; place-content: center;
  border: 1px solid var(--line-2); transition: border-color 0.25s, background-color 0.25s; cursor: pointer;
}
.check input::after {
  content: ''; width: 10px; height: 10px; background: var(--fg); transform: scale(0); transition: transform 0.25s var(--ease-out);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.check input:checked { border-color: var(--fg); }
.check input:checked::after { transform: scale(1); }
.check a { text-decoration: underline; text-underline-offset: 3px; color: var(--fg); }

.alert {
  padding: 14px 16px; border: 1px solid var(--line-2); font-size: 14px; line-height: 1.5;
  background: repeating-linear-gradient(135deg, transparent 0 9px, var(--line) 9px 10px);
}

/* ---------- avatar ---------- */
.avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--fg); }
.avatar--initial {
  display: inline-grid; place-items: center; background: var(--fg); color: var(--bg);
  font: 800 12px/1 var(--font-display); font-stretch: 100%;
}

/* ---------- nagłówek ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent;
  transition: transform 0.7s var(--ease-out), background-color 0.4s, border-color 0.4s;
}
.site-header.is-solid {
  background: rgba(5, 5, 5, 0.72); border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.site-header.is-hidden { transform: translateY(-102%); }
.site-header__inner {
  height: var(--header-h); padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand__mark { width: 34px; height: 34px; }
.brand__word { font: 800 14px/1 var(--font-display); font-stretch: 114%; letter-spacing: 0.34em; text-transform: uppercase; }

.site-nav { display: flex; gap: clamp(16px, 2.4vw, 44px); white-space: nowrap; }
.site-nav__link {
  position: relative; padding-block: 8px; color: var(--fg-2);
  font: 600 12px/1 var(--font-display); font-stretch: 112%; letter-spacing: 0.22em; text-transform: uppercase;
  transition: color 0.3s;
}
.site-nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.55s var(--ease-out);
}
.site-nav__link:hover, .site-nav__link.is-active { color: var(--fg); }
.site-nav__link:hover::after, .site-nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.site-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.site-header__account { display: inline-flex; gap: 10px; align-items: center; }
.account-btn { gap: 10px; padding-inline: 1.1em 1.4em; }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 16px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap;
  font: 500 11px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2);
  transition: border-color 0.3s, color 0.3s;
}
.status-pill:hover { border-color: var(--fg); color: var(--fg); }
.status-pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--fg-3); flex: none; }
.is-online .status-pill__dot { background: var(--fg); border-color: var(--fg); animation: pulse 2.4s ease-out infinite; }

.cart-btn__count {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  display: grid; place-items: center; background: var(--fg); color: var(--bg); font: 700 11px/1 var(--font-display);
}
.cart-btn__count.is-bump { animation: bump 0.5s var(--ease-out); }

.burger { display: none; }
.burger__lines { display: grid; gap: 6px; width: 20px; }
.burger__lines i { display: block; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease-out); }
.burger[aria-expanded='true'] .burger__lines i:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__lines i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px; background: #000;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.8s var(--ease-in-out), visibility 0s 0.8s;
}
.mobile-menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.8s var(--ease-in-out), visibility 0s; }
.mobile-menu__nav { display: grid; }
.mobile-menu__link {
  display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line);
  font: 900 clamp(38px, 11vw, 76px)/1 var(--font-display); font-stretch: 62%; text-transform: uppercase; letter-spacing: -0.01em;
}
.mobile-menu__link .mono { color: var(--fg-3); font-size: 11px; }
.mobile-menu__link.is-active { color: var(--fg-3); }
.mobile-menu__foot { display: grid; gap: 18px; justify-items: start; }
.mobile-menu__foot .mono { color: var(--fg-3); display: flex; align-items: center; gap: 10px; }

/* ---------- stopka ---------- */
.site-footer { position: relative; padding-top: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 72px); }
.footer__brand { display: grid; gap: 22px; align-content: start; justify-items: start; }
.footer__tagline { font-size: clamp(26px, 3vw, 44px); line-height: 1.1; color: var(--fg-2); }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h3 { color: var(--fg-3); margin-bottom: 8px; }
.footer__col a { width: fit-content; color: var(--fg-2); transition: color 0.3s, transform 0.4s var(--ease-out); }
.footer__col a:hover { color: var(--fg); transform: translateX(6px); }
.site-footer .container { container-type: inline-size; }
.footer__wordmark {
  margin-top: clamp(40px, 7vw, 100px); text-align: center; white-space: nowrap; user-select: none;
  font: 900 17.5vw/0.8 var(--font-display); font-stretch: 62%; letter-spacing: -0.015em;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
}
@supports (width: 1cqw) {
  /* rozmiar liczony od szerokości kontenera, więc napis zawsze mieści się w całości */
  .footer__wordmark { font-size: 19.6cqw; }
}
.footer__wordmark .char { display: inline-block; }
.footer__legal {
  display: grid; gap: 10px; padding-block: 36px 44px; margin-top: clamp(20px, 3vw, 40px); border-top: 1px solid var(--line);
  color: var(--fg-3); font-size: 13px; line-height: 1.6; max-width: 90ch;
}
.footer__legal a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.footer__disclaimer strong { color: var(--fg-2); font: 600 12px/1.6 var(--font-mono); letter-spacing: 0.08em; }
.footer__copy { color: var(--fg-4); }

/* ---------- koszyk ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.5s;
}
.cart-overlay.is-open { opacity: 1; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(480px, 100vw);
  display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line-2);
  transform: translateX(102%); visibility: hidden; transition: transform 0.75s var(--ease-out), visibility 0s 0.75s;
}
.cart.is-open { transform: none; visibility: visible; transition: transform 0.75s var(--ease-out), visibility 0s; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.cart__head h2 { color: var(--fg-2); }
.cart__body { flex: 1; overflow-y: auto; padding: 8px 28px; overscroll-behavior: contain; }
.cart__foot { padding: 22px 28px 28px; border-top: 1px solid var(--line); display: grid; gap: 18px; background: var(--bg-2); }
.cart__empty { display: grid; place-items: center; gap: 22px; padding: 64px 0; text-align: center; color: var(--fg-3); }
.cart__empty .display { color: var(--fg-4); font-size: 64px; }

.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line__art { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--fg); background: var(--bg-3); }
.cart-line__art svg { width: 70%; height: 70%; }
.cart-line__name { font: 700 14px/1.25 var(--font-display); font-stretch: 105%; letter-spacing: 0.04em; text-transform: uppercase; }
.cart-line__unit { margin-top: 4px; color: var(--fg-3); font-size: 13px; }
.cart-line__side { display: grid; gap: 10px; justify-items: end; }
.cart-line__price { font: 600 15px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); }
.qty button { width: 30px; height: 30px; display: grid; place-items: center; transition: background-color 0.25s, color 0.25s; }
.qty button:hover:not([disabled]) { background: var(--fg); color: var(--bg); }
.qty button[disabled] { opacity: 0.3; cursor: default; }
.qty button .icon { width: 14px; height: 14px; }
.qty output { min-width: 28px; text-align: center; font: 600 13px/1 var(--font-mono); }
.cart-line__remove { font: 500 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.cart-line__remove:hover { color: var(--fg); }

.cart-total { display: flex; align-items: baseline; justify-content: space-between; }
.cart-total strong { font: 800 clamp(28px, 3vw, 36px)/1 var(--font-display); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.cart-note { font-size: 12px; line-height: 1.55; color: var(--fg-3); }
.cart-ticket { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line-2, rgba(255,255,255,.18)); font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.cart-ticket strong { color: var(--fg); }
.cart-ticket__title { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg); }
.cart-ticket__steps { margin: 0; padding-left: 18px; list-style: decimal; display: grid; gap: 4px; font-size: 13px; }
.cart-line__ticket { color: var(--fg); }
.product__via { margin-top: 8px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.product:hover .product__via { color: rgba(5,5,5,.6); }

/* ---------- toasty ---------- */
.toasts { position: fixed; z-index: 130; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 10px; width: min(92vw, 460px); pointer-events: none; }
.toast {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--fg); color: #050505;
  font-size: 14px; line-height: 1.45; pointer-events: auto; box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
  animation: toast-in 0.6s var(--ease-out) both;
}
.toast .icon { margin-top: 2px; flex: none; }
.toast.is-leaving { animation: toast-out 0.4s var(--ease-in-out) both; }
/* Błąd: to samo białe tło, ale z grubym czarnym znacznikiem i wzorem: czytelne także bez koloru */
.toast--error {
  background: #fff repeating-linear-gradient(135deg, transparent 0 8px, rgba(0, 0, 0, 0.08) 8px 9px);
  box-shadow: inset 6px 0 0 #050505, 0 14px 44px rgba(0, 0, 0, 0.55); padding-left: 24px; font-weight: 600;
}

/* ---------- efekty globalne ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }

.grain {
  position: fixed; z-index: 110; width: 200%; height: 200%; top: -50%; left: -50%; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(1) infinite;
}

/* Znaczniki "celownika" w rogach: motyw kamery / monitoringu */
.crop { position: absolute; width: 18px; height: 18px; pointer-events: none; opacity: 0.7; }
.crop::before, .crop::after { content: ''; position: absolute; background: var(--fg); }
.crop::before { width: 100%; height: 1px; }
.crop::after { width: 1px; height: 100%; }
.crop--tl { top: 0; left: 0; } .crop--tr { top: 0; right: 0; transform: scaleX(-1); }
.crop--bl { bottom: 0; left: 0; transform: scaleY(-1); } .crop--br { bottom: 0; right: 0; transform: scale(-1); }

/* ---------- baner przewijany (marquee) ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(18px, 2.4vw, 34px); }
.marquee__track { display: flex; width: max-content; align-items: center; will-change: transform; }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 56px); padding-right: clamp(24px, 3vw, 56px);
  font: 900 clamp(34px, 6vw, 96px)/1 var(--font-display); font-stretch: 62%; text-transform: uppercase; letter-spacing: -0.005em; white-space: nowrap;
}
.marquee__item .serif-italic { font-weight: 300; font-size: 1.05em; }
.marquee__item i { display: block; width: 0.28em; height: 0.28em; background: currentColor; transform: rotate(45deg); flex: none; }
.marquee--outline .marquee__item { color: transparent; -webkit-text-stroke: 1px var(--fg-4); }

/* ---------- akordeon (FAQ) ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; gap: 16px; padding: 28px 0; cursor: pointer; list-style: none;
  font: 700 clamp(18px, 2vw, 26px)/1.25 var(--font-display); font-stretch: 100%;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .mono { color: var(--fg-3); }
.accordion summary .icon { transition: transform 0.5s var(--ease-out); }
.accordion details[open] summary .icon { transform: rotate(45deg); }
.accordion summary:hover { color: var(--fg-2); }
.accordion__body { padding: 0 0 32px 72px; max-width: 72ch; color: var(--fg-2); line-height: 1.7; }
.accordion__body p + p { margin-top: 14px; }
.accordion__body a { text-decoration: underline; text-underline-offset: 3px; color: var(--fg); }

/* ---------- strona wewnętrzna: nagłówek ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(64px, 11vw, 170px)) 0 clamp(56px, 8vw, 120px); overflow: hidden; }
.page-hero__inner { display: grid; gap: clamp(22px, 3vw, 40px); position: relative; z-index: 1; }
.page-hero .mono { color: var(--fg-3); }
.page-hero__title { max-width: 14ch; }
.page-hero__lead { max-width: 52ch; }
.page-hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(255, 255, 255, 0.09), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), rgba(255, 255, 255, 0.045) calc(100% / 12 - 1px) calc(100% / 12));
  mask-image: linear-gradient(#000 40%, transparent);
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
}

/* ---------- prose (teksty prawne, lore) ---------- */
.prose { font-family: var(--font-serif); font-stretch: 100%; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.75; color: var(--fg-2); }
.prose h2 { font: 800 clamp(26px, 2.6vw, 38px)/1.15 var(--font-display); font-stretch: 85%; text-transform: uppercase; color: var(--fg); margin: 2.2em 0 0.6em; letter-spacing: 0.01em; }
.prose h3 { font: 700 18px/1.3 var(--font-display); color: var(--fg); margin: 1.8em 0 0.5em; letter-spacing: 0.04em; text-transform: uppercase; font-stretch: 105%; }
.prose p, .prose ul, .prose ol { margin-block: 1em; }
.prose ul { list-style: none; display: grid; gap: 0.5em; }
.prose ul li { padding-left: 1.4em; position: relative; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 0.5em; height: 1px; background: var(--fg-3); }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.prose strong { color: var(--fg); font-weight: 600; }

/* ---------- przekierowania stron (View Transitions, tylko w przeglądarkach, które je mają) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.5s var(--ease-in-out) both; }
  ::view-transition-new(root) { animation: vt-in 0.85s var(--ease-out) both; }
  .site-header { view-transition-name: site-header; }
  .grain { view-transition-name: grain; }
  .progress { view-transition-name: progress; }
}
::view-transition-group(site-header), ::view-transition-group(grain), ::view-transition-group(progress) { animation-duration: 0s; }

/* ---------- preloader (tylko strona główna, raz na sesję) ---------- */
.preloader { display: none; }
.preloading .preloader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: #000;
}
.preloading body { overflow: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 26px; width: min(260px, 60vw); }
.preloader__mark { width: 84px; height: 84px; color: var(--fg); }
.preloader__count { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.preloader__bar { width: 100%; height: 1px; background: var(--line-2); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }

/* ---------- stany początkowe animacji (ukrywamy tylko, gdy JS na pewno zadziała) ---------- */
.js:not(.motion-failed) [data-reveal] { opacity: 0; transform: translate3d(0, 38px, 0); }
.js:not(.motion-failed) [data-reveal='fade'] { transform: none; }
.js:not(.motion-failed) [data-reveal='left'] { transform: translate3d(-56px, 0, 0); }
.js:not(.motion-failed) [data-reveal='right'] { transform: translate3d(56px, 0, 0); }
.js:not(.motion-failed) [data-reveal='scale'] { transform: scale(0.94); }
.js:not(.motion-failed) [data-stagger] > * { opacity: 0; transform: translate3d(0, 44px, 0); }
.js:not(.motion-failed) [data-split], .js:not(.motion-failed) [data-words] { visibility: hidden; }
/* Maski SplitText (linie/słowa/litery) przycinają tekst do pudełka linii. Polskie wersaliki z akcentami (Ó, Ś, Ć, Ź)
   i ogonki (Ą, Ę) wystają poza ciasną interlinię nagłówków, więc maska dostaje zapas z góry i z dołu
   (padding + ujemny margines nie zmieniają układu strony). */
[data-split] div[style*='overflow: clip'],
[data-hero-word] div[style*='overflow: clip'],
[data-footer-word] div[style*='overflow: clip'] {
  padding-block: 0.26em; margin-block: -0.26em; overflow-clip-margin: 0.26em;
}
.js:not(.motion-failed) [data-reveal].is-in { opacity: 1; transform: none; }
.js:not(.motion-failed) [data-stagger].is-in > * { opacity: 1; transform: none; }
html.is-locked { overflow: hidden; }

/* ---------- animacje ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
}
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-6%, 4%); } 33% { transform: translate(5%, -7%); }
  50% { transform: translate(-3%, 8%); } 67% { transform: translate(7%, 3%); } 83% { transform: translate(-8%, -4%); }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-3vh) scale(0.99); filter: blur(5px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(4vh); clip-path: inset(5% 0 0 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }

/* ---------- responsywność ---------- */
@media (max-width: 1199px) {
  .status-pill { display: none; } /* status jest też w hero i na stronie Connect; w wąskim nagłówku brakuje miejsca */
}
@media (max-width: 1099px) {
  .site-nav, .site-header__account .btn--admin { display: none; }
  .burger { display: inline-grid; }
  .site-header__inner { grid-template-columns: auto 1fr; }
}
@media (min-width: 1100px) and (max-width: 1399px) {
  .site-nav__link { letter-spacing: 0.16em; }
}
@media (max-width: 1023px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  :root { --header-h: 64px; }
  .site-header__account, .status-pill { display: none; }
  .brand__word { font-size: 12px; letter-spacing: 0.28em; }
  .cart__head, .cart__body, .cart__foot { padding-inline: 20px; }
  .accordion summary { grid-template-columns: 40px 1fr 24px; }
  .accordion__body { padding-left: 56px; }
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- ograniczenie ruchu (dostępność) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-stagger] > *, [data-split], [data-words] { opacity: 1 !important; transform: none !important; visibility: visible !important; }
  .grain { display: none; }
}
