/* =========================================================================
   DUET — Design System
   Producent mebli tapicerowanych od 1990
   ========================================================================= */

/* ---------- 1. Tokens ---------- */

:root {
  /* Brand — wyciągnięte z oryginalnego logo (#D01020 / #404040) */
  --brand: oklch(52% 0.21 27);
  --brand-hover: oklch(45% 0.19 27);
  --brand-soft: oklch(94% 0.03 27);
  /* Tlo przycisku CTA. W trybie jasnym rowne --brand; w ciemnym rozjasniona
     czerwien akcentu dawala z bialym tekstem tylko 3.68, wiec przycisk
     dostaje wlasny, ciemniejszy odcien. */
  --brand-btn: var(--brand);
  --brand-btn-hover: var(--brand-hover);

  /* Neutrals — ciepłe, nie sterylne. Meble = dotyk, nie laboratorium. */
  --bg: oklch(97.5% 0.008 85);
  --bg-alt: oklch(94.5% 0.012 80);
  --surface: oklch(100% 0 0);
  --ink: oklch(21% 0.012 60);
  --ink-2: oklch(44% 0.012 60);
  /* 60% dawało kontrast 3.67 na jasnym tle — poniżej progu WCAG AA (4.5)
     dla drobnego tekstu (chipy, meta modeli, nadtytuły). Ściemnione. */
  --ink-3: oklch(50% 0.012 60);
  --line: oklch(88% 0.010 75);
  --line-2: oklch(82% 0.012 75);

  /* Typografia */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.89rem);
  --step-0:  clamp(0.97rem, 0.93rem + 0.19vw, 1.08rem);
  --step-1:  clamp(1.16rem, 1.08rem + 0.36vw, 1.38rem);
  --step-2:  clamp(1.39rem, 1.25rem + 0.63vw, 1.76rem);
  --step-3:  clamp(1.67rem, 1.44rem + 1.02vw, 2.25rem);
  --step-4:  clamp(2.0rem, 1.65rem + 1.58vw, 2.88rem);
  --step-5:  clamp(2.4rem, 1.87rem + 2.37vw, 3.68rem);
  --step-6:  clamp(2.88rem, 2.09rem + 3.5vw, 4.7rem);

  /* Rytm */
  --gutter: clamp(1.25rem, 0.9rem + 1.7vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --maxw: 82rem;
  --radius: 2px;
  --radius-lg: 4px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.55s;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: oklch(16% 0.008 70);
  --bg-alt: oklch(20% 0.010 70);
  --surface: oklch(22% 0.011 70);
  --ink: oklch(95% 0.008 80);
  --ink-2: oklch(76% 0.010 80);
  --ink-3: oklch(60% 0.010 80);
  --line: oklch(30% 0.010 70);
  --line-2: oklch(38% 0.012 70);
  --brand: oklch(64% 0.19 27);
  --brand-hover: oklch(72% 0.17 27);
  --brand-soft: oklch(28% 0.06 27);
  --brand-btn: oklch(47% 0.20 27);
  --brand-btn-hover: oklch(54% 0.21 27);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(16% 0.008 70);
    --bg-alt: oklch(20% 0.010 70);
    --surface: oklch(22% 0.011 70);
    --ink: oklch(95% 0.008 80);
    --ink-2: oklch(76% 0.010 80);
    --ink-3: oklch(60% 0.010 80);
    --line: oklch(30% 0.010 70);
    --line-2: oklch(38% 0.012 70);
    --brand: oklch(64% 0.19 27);
    --brand-hover: oklch(72% 0.17 27);
    --brand-soft: oklch(28% 0.06 27);
  --brand-btn: oklch(47% 0.20 27);
  --brand-btn-hover: oklch(54% 0.21 27);
    color-scheme: dark;
  }
}

/* ---------- 2. Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtelne ziarno — dodaje taktylności, której płaskie tła nie mają */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.08; font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--brand); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Cross-document view transitions (Chrome 126+) */
@view-transition { navigation: auto; }

/* ---------- 3. Layout ---------- */

.wrap {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}
.wrap--wide { width: min(100% - var(--gutter) * 2, 100rem); }

.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }

.skip {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -110%;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: translate 0.2s var(--ease);
}
.skip:focus { translate: -50% 0; }

/* ---------- 4. Typografia ---------- */

.display {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 40;
  font-weight: 350;
  letter-spacing: -0.022em;
}
.h-xl { font-size: var(--step-6); }
.h-lg { font-size: var(--step-5); }
.h-md { font-size: var(--step-4); }
.h-sm { font-size: var(--step-3); }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--brand);
  flex: none;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
}
.muted { color: var(--ink-2); }
.measure { max-width: 62ch; }

/* ---------- 5. Buttons ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), translate 0.3s var(--ease);
}
.btn:hover { translate: 0 -2px; }
.btn--brand { --btn-bg: var(--brand-btn); --btn-fg: #fff; }
.btn--brand:hover { --btn-bg: var(--brand-btn-hover); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn svg { width: 1em; height: 1em; transition: translate 0.3s var(--ease); }
.btn:hover svg { translate: 0.25rem 0; }

/* ---------- 6. Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header[data-stuck="true"] { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 4.75rem;
}

/* Logo — oryginalny znak firmowy wycięty ze źródłowego PNG (836×653)
   metodą sprite'a. Jeden plik, jedno żądanie, dwa niezależne elementy.
   Znak (koło) zostaje czerwony zawsze; wordmark przejmuje kolor motywu. */
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.logo__mark {
  --h: 2.3rem;
  flex: none;
  width: var(--h);
  height: var(--h);
  background-image: url("../img/duet-logo.png");
  background-repeat: no-repeat;
  background-size: calc(var(--h) * 2.96454) calc(var(--h) * 2.31560);
  background-position: calc(var(--h) * -0.98227) calc(var(--h) * -0.29433);
}
.logo__text { display: grid; gap: 0.24rem; }
.logo__word {
  --hw: 0.92rem;
  display: block;
  width: calc(var(--hw) * 4.03681);
  height: var(--hw);
  background-image: url("../img/duet-logo.png");
  background-repeat: no-repeat;
  background-size: calc(var(--hw) * 5.12883) calc(var(--hw) * 4.00613);
  background-position: calc(var(--hw) * -0.54601) calc(var(--hw) * -2.52761);
}
/* W ciemnym motywie grafitowy wordmark byłby nieczytelny — rozjaśniamy
   go filtrem. Czerwonego znaku filtr nie dotyka. */
[data-theme="dark"] .logo__word { filter: invert(1) brightness(1.75); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo__word { filter: invert(1) brightness(1.75); }
}
.logo__sub {
  font-size: 0.58rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  line-height: 1;
}
.footer .logo__mark { --h: 3rem; }
.footer .logo__word { --hw: 1.05rem; }

.nav { margin-inline-start: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  padding: 0;
}
.nav__link {
  font-size: var(--step--1);
  font-weight: 450;
  text-decoration: none;
  color: var(--ink-2);
  padding-block: 0.4rem;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.4s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { scale: 1 1; }

.header__tools { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink-2);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.icon-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }

.lang {
  display: flex;
  gap: 1px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang a {
  padding: 0.5rem 0.6rem;
  text-decoration: none;
  color: var(--ink-3);
  background: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang a[aria-current="true"] { background: var(--ink); color: var(--bg); }

.burger { display: none; }

@media (max-width: 62rem) {
  .burger { display: grid; }
  /* Logo + narzędzia nie mieszczą się w 375 px — przełącznik języka
     schodzi z paska (wróci wewnątrz menu, gdy powstanie wersja EN). */
  .lang { display: none; }
  .logo__sub { display: none; }
  .nav {
    position: fixed;
    inset: 4.75rem 0 auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: var(--gutter);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.45s var(--ease);
  }
  .nav[data-open="true"] { clip-path: inset(0 0 0 0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: var(--step-1); }
  .header__cta { display: none; }
}

/* ---------- 7. Hero ---------- */

.hero {
  position: relative;
  min-height: min(88svh, 52rem);
  display: grid;
  align-items: end;
  padding-block: clamp(3rem, 8vw, 7rem);
  overflow: clip;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom {
  from { scale: 1.08; }
  to { scale: 1; }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(12% 0.02 60 / 0.88) 0%,
    oklch(12% 0.02 60 / 0.55) 45%,
    oklch(12% 0.02 60 / 0.25) 100%
  );
}
.hero__content { color: oklch(97% 0.01 80); position: relative; }
.hero__content .eyebrow { color: oklch(85% 0.01 80); }
.hero h1 { margin-block: 1.25rem 1.5rem; max-width: 18ch; }
.hero__lead { color: oklch(88% 0.01 80); max-width: 44ch; font-size: var(--step-1); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero .btn--ghost { --btn-fg: #fff; border-color: oklch(100% 0 0 / 0.35); }
.hero .btn--ghost:hover { border-color: #fff; background: oklch(100% 0 0 / 0.08); }

/* ---------- 8. Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  border-top: 1px solid var(--line);
}
.stat {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 350;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}
.stat__label {
  font-size: var(--step--1);
  color: var(--ink-3);
  margin-top: 0.6rem;
  display: block;
}

/* ---------- 9. Section head ---------- */

.sec-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 56rem) {
  .sec-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .sec-head__text { max-width: 42ch; }
}
.sec-head h2 { margin-top: 0.9rem; }

/* ---------- 10. Kolekcje ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: none;
  font-size: var(--step--1);
  cursor: pointer;
  color: var(--ink-2);
  transition: all 0.3s var(--ease);
}
.filter:hover { border-color: var(--ink-3); color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.grid-models {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.model {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  container-type: inline-size;
}
.model[hidden] { display: none; }

.model__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}
.model__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.9s var(--ease), filter 0.6s var(--ease);
}
.model:hover .model__media img { scale: 1.05; }

.model__tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
}

.model__body {
  padding-top: 1.1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 1.1rem;
}
.model__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.model__meta { font-size: var(--step--1); color: var(--ink-3); white-space: nowrap; }
.model__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}
.chip {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-3);
}

/* ---------- 11. Split (o firmie) ---------- */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.split__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body > * + * { margin-top: 1.25rem; }

.awards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.award {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: var(--step--1);
  color: var(--ink-2);
}
.award svg { width: 0.9rem; height: 0.9rem; color: var(--brand); }

/* ---------- 12. Proces B2B ---------- */

.steps {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  counter-reset: step;
}
.step {
  counter-increment: step;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-2);
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--brand);
  display: block;
  margin-bottom: 0.9rem;
  line-height: 1;
}
.step h3 { font-size: var(--step-1); margin-bottom: 0.5rem; font-weight: 500; }
.step p { font-size: var(--step--1); color: var(--ink-2); }

/* ---------- 13. CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5rem);
  display: grid;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 56rem) {
  .cta-band { grid-template-columns: 1.3fr auto; }
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -50%;
  width: 45rem;
  height: 45rem;
  background: radial-gradient(circle, var(--brand) 0%, transparent 62%);
  opacity: 0.22;
  pointer-events: none;
}
.cta-band h2 { max-width: 20ch; }
/* Pasek odwraca się w trybie ciemnym (tło = --ink), więc kolor akapitu
   musi wynikać z koloru tekstu paska, a nie być zaszyty na sztywno —
   inaczej w ciemnym motywie robi się jasnoszary na jasnym tle. */
.cta-band p {
  color: color-mix(in oklab, var(--bg) 72%, var(--ink));
  margin-top: 1rem;
  max-width: 46ch;
}
.cta-band .btn { --btn-bg: var(--bg); --btn-fg: var(--ink); position: relative; }

/* ---------- 14. Formularz ---------- */

.form { display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

.field { display: grid; gap: 0.45rem; }
.field label { font-size: var(--step--1); font-weight: 500; }
.field .req { color: var(--brand); }
.field input, .field select, .field textarea {
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field__hint { font-size: 0.78rem; color: var(--ink-3); }
.field__error { font-size: 0.78rem; color: var(--brand); display: none; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-color: var(--brand); }
.field[data-invalid="true"] .field__error { display: block; }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.consent input { width: 1.05rem; height: 1.05rem; margin-top: 0.22rem; accent-color: var(--brand); }

.form__status {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-size: var(--step--1);
  display: none;
}
.form__status[data-state="ok"] { display: block; background: var(--brand-soft); border: 1px solid var(--brand); }
.form__status[data-state="error"] {
  display: block;
  background: color-mix(in oklab, var(--brand) 10%, var(--surface));
  border: 1px solid var(--brand);
  color: var(--brand);
}
.btn[data-busy="true"] { opacity: 0.6; pointer-events: none; }

/* ---------- 15. Kontakt ---------- */

.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }

.contact-list { display: grid; gap: 1.75rem; }
.contact-item { display: grid; gap: 0.35rem; }
.contact-item dt {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-item dd { margin: 0; font-size: var(--step-1); }
.contact-item a { text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color 0.25s var(--ease); }
.contact-item a:hover { border-color: var(--brand); }
.contact-item small { display: block; font-size: 0.78rem; color: var(--ink-3); margin-top: 0.15rem; }

/* ---------- 16. Footer ---------- */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  margin-top: var(--section);
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.footer__brand { max-width: 26ch; }
.footer__brand p { font-size: var(--step--1); color: var(--ink-2); margin-top: 1rem; }
.footer h3 {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
/* Cel dotykowy min. 32 px — WCAG 2.5.8 wymaga 24 px, dajemy zapas.
   Same litery mają 16 px, więc wysokość robi padding, nie rozmiar pisma. */
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
}
.footer a:hover { color: var(--ink); }
.contact-item a { display: inline-flex; align-items: center; min-height: 2rem; }
.footer__bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-3);
}

.eu-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--ink-3);
}
.eu-bar__flag {
  flex: none;
  width: 3rem;
  height: 2rem;
  background: #003399;
  border-radius: 2px;
  display: grid;
  place-items: center;
  color: #FFCC00;
  font-size: 0.8rem;
}

/* ---------- 17. Cookie consent ---------- */

.cookie {
  position: fixed;
  z-index: 300;
  inset-inline: var(--gutter);
  bottom: var(--gutter);
  max-width: 34rem;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 18px 50px -12px oklch(0% 0 0 / 0.25);
  display: none;
}
.cookie[data-open="true"] { display: block; animation: slideUp 0.5s var(--ease); }
@keyframes slideUp { from { opacity: 0; translate: 0 1.5rem; } to { opacity: 1; translate: 0 0; } }
.cookie h2 { font-size: var(--step-1); margin-bottom: 0.6rem; font-weight: 500; }
.cookie p { font-size: 0.82rem; color: var(--ink-2); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.cookie .btn { padding: 0.7rem 1.2rem; }

/* ---------- 18. Reveal ---------- */

[data-reveal] {
  transition: opacity 0.8s var(--ease), translate 0.8s var(--ease);
}
/* Ukrycie przed animacją stosuje się TYLKO gdy JS działa (klasa js-reveal
   dodawana przez main.js). Bez JS — i w edytorze Elementora — treść jest
   widoczna od razu, zamiast zostać na opacity:0. */
html.js-reveal [data-reveal] {
  opacity: 0;
  translate: 0 1.75rem;
}
html.js-reveal [data-reveal].is-in { opacity: 1; translate: 0 0; }
[data-reveal]:nth-child(2) { transition-delay: 0.07s; }
[data-reveal]:nth-child(3) { transition-delay: 0.14s; }
[data-reveal]:nth-child(4) { transition-delay: 0.21s; }

/* Edytor Elementora wstrzykuje widgety dynamicznie, po ustawieniu obserwatora —
   nowych elementów nie zdąży „złapać”, więc bez tego zostałyby niewidoczne.
   Wymuszamy pełną widoczność w trybie edycji. */
.elementor-editor-active [data-reveal] { opacity: 1 !important; translate: none !important; }

@media (prefers-reduced-motion: reduce) {
  html.js-reveal [data-reveal] { opacity: 1; translate: none; }
}

/* ---------- 19. Utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.page-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { margin-block: 1rem 1.25rem; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.prose strong { font-weight: 600; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }

/* ---------- 20. Strona produktu ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  font-size: var(--step--1);
  color: var(--ink-3);
  margin-bottom: 1.5rem;
}
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line-2); }
.crumbs a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
}
.crumbs a:hover { color: var(--ink); }

.product {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 60rem) {
  .product { grid-template-columns: 1.25fr 1fr; }
  .product__aside { position: sticky; top: 7rem; }
}

/* Galeria */
.gallery { display: grid; gap: 0.75rem; }
.gallery__stage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  cursor: zoom-in;
}
.gallery__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__stage img[hidden] { display: none; }
.gallery__zoom {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  pointer-events: none;
}
.gallery__zoom svg { width: 1.05rem; height: 1.05rem; }

.gallery__thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}
.thumb {
  flex: none;
  width: 5.5rem;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.85; }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--brand); }

/* Panel informacyjny */
.product__aside h1 { margin-bottom: 0.5rem; }
.product__fabric {
  font-size: var(--step-1);
  color: var(--ink-3);
  margin-bottom: 1.75rem;
}
.spec {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.75rem 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}
.spec dt { color: var(--ink-3); }
.spec dd { margin: 0; }
.spec:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; }

.variants { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem; }
.variant {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 0.72rem;
}

.order-box {
  padding: 1.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  margin-top: 1.75rem;
}
.order-box h2 { font-size: var(--step-1); font-weight: 500; margin-bottom: 0.6rem; }
.order-box p { font-size: var(--step--1); color: var(--ink-2); margin-bottom: 1.25rem; }

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
}
.lightbox::backdrop { background: oklch(8% 0.01 60 / 0.94); }
.lightbox__inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}
.lightbox__bar {
  position: fixed;
  inset: auto 0 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  color: oklch(92% 0.01 80);
  font-size: var(--step--1);
}
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid oklch(100% 0 0 / 0.28);
  background: oklch(100% 0 0 / 0.06);
  color: inherit;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox__btn:hover { background: oklch(100% 0 0 / 0.16); border-color: oklch(100% 0 0 / 0.5); }
.lightbox__btn svg { width: 1.1rem; height: 1.1rem; }
.lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
}
.lightbox__hint {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  color: oklch(75% 0.01 80);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
@media (max-width: 40rem) { .lightbox__hint { display: none; } }

/* ---------- 21. Zgodność z Elementorem ----------
   Nasze widgety renderują pełnoszerokościowe sekcje, a szerokość treści trzyma
   klasa .wrap (max 82rem, wyśrodkowana). Elementor domyślnie boksuje kontenery
   do ~1140 px i dokłada paddingi — znosimy to na stronach budowanych builderem,
   żeby tła (hero, pasek CTA) sięgały krawędzi ekranu, a nie urywały się w ramce. */
.duet-builder .elementor-section-boxed > .elementor-container { max-width: none; }
.duet-builder .elementor-section > .elementor-container { width: 100%; max-width: none; }
.duet-builder .elementor-widget-wrap { padding: 0; }
.duet-builder .elementor-column-gap-default > .elementor-row > .elementor-column > .elementor-element-populated { padding: 0; }
/* Nowszy Elementor (kontenery flex zamiast sekcji/kolumn). */
.duet-builder .e-con,
.duet-builder .e-con-inner { max-width: none; padding-inline: 0; }
