/* ============================================================
   DULCE DE LECHE — Design System v1.0
   Źródło: homepage.html (kanon zaakceptowany 20.05.2026)
   Design kit: design-system-extracted.md (Etap 2, 23.05.2026)
   Motyw: dulcedeleche-theme (klasyczny PHP, nie FSE)

   ZASADA: Nie modyfikuj wartości tokenów bez Etapu 3+.
   System DWÓCH przycisków — twardy wymóg projektu:
     .btn          → wypełniony (primary)
     .btn--outline → obrys (secondary)
   Wszystkie inne warianty z mockupów zmapowane na te dwa.
============================================================ */

/* ============================================================
   SEKCJA 1 — Design Tokens (:root)
============================================================ */
:root {

  /* --- KOLORY --- */
  --cream-50:  #F7F0E1;
  --cream-100: #F2EAD9;
  --cream-200: #EFE0CC;
  --paper:     #FDF8EE;
  --karmel:    #8A4B1F;
  --espresso:  #3D2817;
  --ink:       #1A1410;
  --burgund:   #7A2A2E;
  --gold:      #C9A24A;
  --forest:    #1F2A24;
  --ember:     #C97B2A;
  --accent:    var(--gold);

  /* --- FONTY --- */
  --display: "Fraunces", "Times New Roman", serif;
  --body:    "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;

  /* --- TYPOGRAFIA — zamknięta drabina (8 poziomów) --- */
  --text-h1:      clamp(56px, 10.5vw, 144px);
  --text-h2:      clamp(42px,  5.6vw,  84px);
  --text-h3:      clamp(34px,  4.2vw,  60px);
  --text-h4:      clamp(26px,  2.6vw,  36px);
  --text-body:    18px;
  --text-lede:    clamp(20px,  1.8vw,  28px);
  --text-caption: 11px;
  --text-eyebrow: 12px;

  /* Tokeny specjalne (dekoracyjne, poza drabiną treściową) */
  --text-display:     clamp(48px, 7.6vw, 112px);
  --text-section-num: clamp(80px, 13vw,  180px);

  /* --- SPACING — zamknięta skala 8 kroków --- */
  --space-1: 12px;
  --space-2: clamp(16px, 1.5vw,  24px);
  --space-3: clamp(24px, 2.5vw,  40px);
  --space-4: clamp(32px, 3.5vw,  56px);
  --space-5: clamp(40px,   5vw,  72px);
  --space-6: clamp(48px,   6vw,  96px);
  --space-7: clamp(56px,   7vw,  96px);
  --space-8: clamp(80px,  12vw, 160px);

  /* Aliasy rytmu sekcji */
  --section-y:    var(--space-8);
  --section-y-sm: clamp(48px,  7vw,  88px);

  /* Layout */
  --max:    1440px;
  --gutter: clamp(24px, 5vw, 80px);

  /* --- BORDER RADIUS --- */
  --radius-none: 2px;
  --radius-sm:   4px;
  --radius-card: 12px;
  --radius-pill: 999px;

  /* --- BORDERS & DIVIDERS --- */
  --border-subtle: 1px solid color-mix(in srgb, var(--karmel) 18%, transparent);
  --border-mid:    1px solid color-mix(in srgb, var(--karmel) 30%, transparent);
  --border-gold:   1px solid color-mix(in srgb, var(--gold)   50%, transparent);
  --border-dark:   1px solid color-mix(in srgb, var(--cream-50) 12%, transparent);

  /* --- CIENIE --- */
  --shadow-panel: 0 18px 40px rgba(26, 20, 16, 0.18);

  /* --- ANIMACJE --- */
  --ease-out-expo:  cubic-bezier(0.22, 1, 0.36, 1);
  --transition-base: 0.25s ease;
  --transition-slow: 0.8s var(--ease-out-expo);
}

/* Mobile overrides */
@media (max-width: 720px) {
  :root {
    --gutter:    20px;
    --section-y: 80px;
  }
}

/* ============================================================
   SEKCJA 2 — Reset i baza
============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--text-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "tnum" 0;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* Paper grain — subtelna tekstura przez gradient overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(201,162,74,0.06), transparent 60%),
    radial-gradient(900px  700px at 110% 30%, rgba(122,42,46,0.04), transparent 60%);
  mix-blend-mode: multiply;
}

/* ============================================================
   SEKCJA 3 — Utility i layout
============================================================ */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   SEKCJA 4 — System TRZECH przycisków

   .btn          — primary: espresso fill, strzałka → zawsze
   .btn--outline — secondary: obrys, bez strzałki
   .filter-btn   — toggle: filtry sekcji (downloads, FAQ, przepisy)

   Wszystkie: border-radius: 0, uppercase, letter-spacing 0.18em
============================================================ */

/* ── Primary ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--espresso);
  color: var(--paper);
  border: 1px solid var(--espresso);
  border-radius: 0;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

/* Strzałka — zawsze, via pseudo-element */
.btn::after {
  content: '→';
  display: inline-block;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn:hover::after {
  transform: translateX(4px);
}

/* ── Secondary (obrys) ───────────────────────────────────── */
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--outline::after {
  content: none; /* bez strzałki */
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Auto-adjust na ciemnym tle */
.hero-cover--showcase .btn--outline,
.hero-cover--standard .btn--outline,
.hero-cover--plain .btn--outline,
.manifest .btn--outline,
.manifest--editorial .btn--outline,
.usp--on-dark .btn--outline,
.final-cta .btn--outline,
.cta--dark .btn--outline {
  color: var(--cream-50);
  border-color: color-mix(in srgb, var(--cream-50) 55%, transparent);
}

.hero-cover--showcase .btn--outline:hover,
.hero-cover--standard .btn--outline:hover,
.hero-cover--plain .btn--outline:hover,
.manifest .btn--outline:hover,
.manifest--editorial .btn--outline:hover,
.usp--on-dark .btn--outline:hover,
.final-cta .btn--outline:hover,
.cta--dark .btn--outline:hover {
  background: color-mix(in srgb, var(--cream-50) 15%, transparent);
  border-color: var(--cream-50);
  color: var(--cream-50);
}

/* ── Toggle / Filter ─────────────────────────────────────── */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 8px 18px;
  background: transparent;
  color: var(--espresso);
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 0;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--espresso);
  color: var(--cream-50);
  border-color: var(--espresso);
}

/* ============================================================
   SEKCJA 5 — Typografia utility
============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--karmel);
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--accent);
  flex: none;
}

.eyebrow.on-dark {
  color: var(--gold);
}

.eyebrow.on-dark::before {
  background: var(--gold);
}

.section-num {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: var(--text-section-num);
  line-height: 0.85;
  color: var(--karmel);
  opacity: 0.12;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
  user-select: none;
  pointer-events: none;
}

.section-num.on-dark {
  color: var(--gold);
  opacity: 0.16;
}

.hero-num {
  position: absolute;
  top: -10px;
  right: var(--gutter);
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "opsz" 144;
  font-size: clamp(64px, 8vw, 120px);
  color: var(--karmel);
  opacity: 0.12;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

.hero-num.on-dark {
  color: var(--gold);
  opacity: 0.16;
}

.disp {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.italic {
  font-style: italic;
}

.smallcaps {
  font-family: var(--body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: var(--text-eyebrow);
  font-weight: 500;
}

/* Chapter marker v2 — zastępuje .hero-seal i pionowe paski numer+lista */
.chapter {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--body);
  font-size: var(--text-caption);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--karmel);
}

.chapter .roman {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--karmel);
  font-variation-settings: "opsz" 18;
}

.chapter .bar {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: color-mix(in srgb, var(--karmel) 60%, transparent);
}

.chapter.on-dark {
  color: var(--gold);
}

.chapter.on-dark .roman {
  color: var(--gold);
}

.chapter.on-dark .bar {
  background: color-mix(in srgb, var(--gold) 60%, transparent);
}

/* Section header (chapter + sec-title + lede) */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: var(--space-7);
}

.sec-head .chap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sec-head .lede {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-variation-settings: "opsz" 24;
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--espresso);
  line-height: 1.45;
  margin: 0;
  max-width: 46ch;
}

@media (max-width: 900px) {
  .sec-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.sec-title {
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: var(--text-h2);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.sec-title em {
  font-style: italic;
  color: var(--karmel);
  font-weight: 300;
}

/* ============================================================
   SEKCJA 6 — Znaczniki i pieczątki
   Uwaga: .pill i .stamp — TYLKO na ciemnym tle (espresso/ink)
============================================================ */
.stamp {
  display: inline-block;
  border: none;
  border-radius: 0;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 12px;
}

/* .stamp w stopce (ciemne tło) */
.foot .stamp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  background: transparent;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  border-radius: var(--radius-pill);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.foot .stamp .dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  padding: 4px 0;
  font-family: var(--body);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pill .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 0;
}

/* USP tag — na jasnym tle zamiast .pill/.stamp */
.usp-item .body .tag {
  display: inline-block;
  margin-top: 16px;
  font-family: ui-monospace, monospace;
  font-size: var(--text-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--karmel);
  padding: 4px 10px;
  border: var(--border-mid);
}

/* ============================================================
   SEKCJA 7 — Placeholder foto
============================================================ */
.ph {
  background: repeating-linear-gradient(
    135deg,
    var(--cream-200) 0 12px,
    var(--cream-100) 12px 24px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: var(--text-caption);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--karmel);
}

/* ============================================================
   SEKCJA 8 — Nawigacja
============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 55;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: var(--border-subtle);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: 18px var(--gutter);
}

/* Logo / brand */
.brand {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "opsz" 14;
  white-space: nowrap;
  text-decoration: none;
}

.brand .it {
  font-style: italic;
  font-weight: 300;
  color: var(--karmel);
}

.brand .ampersand {
  font-style: italic;
  font-weight: 300;
  color: var(--karmel);
  margin: 0 4px;
}

/* Menu główne — trójpoziomowe (numer rzymski + nazwa + podpis) */
.menu {
  display: flex;
  gap: 6px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  position: relative;
}

.menu a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 18px;
  text-align: center;
  position: relative;
  transition: color var(--transition-base);
}

.menu a .roman {
  font-family: var(--display);
  font-style: italic;
  font-size: 12px;
  color: var(--karmel);
  margin-bottom: 4px;
  font-variation-settings: "opsz" 9;
  transition: color var(--transition-base), transform 0.35s var(--ease-out-expo);
}

.menu a .label {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 22;
}

.menu a .sub {
  margin-top: 4px;
  font-family: var(--body);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--karmel) 70%, transparent);
}

.menu a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 1px;
  background: var(--karmel);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out-expo);
}

.menu a:hover::after,
.menu a.is-current::after,
.menu .current-menu-item > a::after,
.menu .current-page-ancestor > a::after {
  transform: scaleX(1);
}

.menu a:hover .roman { color: var(--burgund); transform: translateY(-1px); }
.menu a:hover .label { color: var(--karmel); }

/* Przycisk CTA w nav */
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink);
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background var(--transition-base), color var(--transition-base);
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-cta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201,162,74,0.5);
  animation: dl-pulse 2.4s ease-out infinite;
}

@keyframes dl-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(201,162,74,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(201,162,74,0); }
  100% { box-shadow: 0 0 0 0   rgba(201,162,74,0); }
}

/* Przełącznik języka */
.lang {
  display: inline-flex;
  gap: 6px;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--espresso);
}

.lang a,
.lang button {
  background: none;
  border: 0;
  padding: 4px 2px;
  color: inherit;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.lang a.is-active,
.lang a[aria-current="true"],
.lang button[aria-current="true"] {
  border-bottom-color: var(--karmel);
  color: var(--ink);
}

/* ── Hamburger button ─────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition:
    transform 0.35s var(--ease-out-expo),
    opacity   0.2s  ease,
    background 0.2s ease;
  transform-origin: center center;
}

/* ── Mobile menu overlay ──────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--espresso);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 96px var(--gutter) 60px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

/* Decorative radial glow na ciemnym tle */
.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 40% at 90% 5%,  color-mix(in srgb, var(--gold) 10%, transparent), transparent 60%),
    radial-gradient(45% 35% at 5%  95%, color-mix(in srgb, var(--burgund) 12%, transparent), transparent 60%);
  pointer-events: none;
}

.mobile-menu-list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}

.mobile-menu-list li {
  border-bottom: 1px solid color-mix(in srgb, var(--cream-50) 10%, transparent);
}

.mobile-menu-list li:first-child {
  border-top: 1px solid color-mix(in srgb, var(--cream-50) 10%, transparent);
}

.mobile-menu-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  text-decoration: none;
  color: var(--cream-50);
  transition: color 0.2s ease;
}

.mobile-menu-list a:hover,
.mobile-menu-list .current-menu-item > a {
  color: var(--gold);
}

.mobile-menu-list .roman {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  font-variation-settings: "opsz" 9;
  width: 24px;
  flex-shrink: 0;
  opacity: 0.8;
}

.mobile-menu-list .label {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 48;
}

.mobile-menu-list .sub {
  display: none;
}

.mobile-menu-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid color-mix(in srgb, var(--cream-50) 38%, transparent);
  color: var(--cream-50);
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-menu-cta:hover {
  border-color: var(--cream-50);
  background: color-mix(in srgb, var(--cream-50) 8%, transparent);
}

.mobile-menu-cta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: dl-pulse 2.4s ease-out infinite;
}

/* ── Nav responsive ───────────────────────────────────────── */
@media (max-width: 1180px) {
  .menu a .sub   { display: none; }
  .menu a        { padding: 10px 12px; }
  .menu a .label { font-size: 18px; }
}

@media (max-width: 920px) {
  .nav { z-index: 1000; } /* above mobile-menu overlay */

  .nav-inner { grid-template-columns: 1fr auto; }

  .menu { display: none; }

  /* Schowaj desktop-only elementy nav-right */
  .nav-right .lang,
  .nav-right .nav-cta { display: none; }

  /* Pokaż hamburger */
  .nav-toggle { display: flex; }

  /* Hamburger → X gdy menu otwarte */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
    transform: translateY(4.25px) rotate(45deg);
    background: var(--cream-50);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
    transform: translateY(-4.25px) rotate(-45deg);
    background: var(--cream-50);
  }

  /* Nav bar kolor gdy menu otwarte (żeby hamburger był widoczny) */
  .nav.menu-is-open {
    background: var(--espresso);
    border-bottom-color: color-mix(in srgb, var(--cream-50) 10%, transparent);
  }

  .nav.menu-is-open .brand { color: var(--cream-50); }
  .nav.menu-is-open .brand .it { color: color-mix(in srgb, var(--gold) 80%, transparent); }
  .nav.menu-is-open .brand .ampersand { color: color-mix(in srgb, var(--gold) 80%, transparent); }
}

/* ============================================================
   SEKCJA 9 — Hero cover (warianty A / B / C)
============================================================ */

/* --- Baza: .hero-cover --- */
.hero-cover {
  position: relative;
  min-height: clamp(600px, 88vh, 940px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--espresso);
}

.hero-cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 58%;
  transform: scale(1.03);
}

.hero-cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26,20,16,0.58) 0%,
    rgba(26,20,16,0.14) 30%,
    rgba(26,20,16,0.32) 60%,
    rgba(26,20,16,0.90) 100%
  );
}

.hero-cover-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(120px, 18vh, 230px);
  padding-bottom: var(--space-6);
}

.hero-cover h1.hero-title {
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--paper);
  max-width: 17ch;
  margin: 22px 0 0;
}

.hero-cover h1.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-cover .hero-sub {
  font-family: var(--body);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: color-mix(in srgb, var(--paper) 84%, transparent);
  max-width: 54ch;
  margin: 28px 0 0;
}

.hero-cover .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-cover-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 26px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}

.hero-cover-scroll .line {
  width: 46px;
  height: 1px;
  background: color-mix(in srgb, var(--paper) 50%, transparent);
}

@media (max-width: 700px) {
  .hero-cover         { min-height: 92vh; }
  .hero-cover-scroll  { display: none; }
}

/* --- Wariant B: .hero-cover--standard — strony treściowe --- */
.hero-cover--standard {
  min-height: clamp(560px, 70vh, 740px);
  background-size: cover;
  background-position: center;
  padding: var(--space-6) 0;
  align-items: flex-end;
}

.hero-cover--standard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26,20,16,0.10) 0%,
    rgba(26,20,16,0.65) 100%
  );
  pointer-events: none;
}

/* --- Wariant C: .hero-cover--plain — strony użytkowe --- */
.hero-cover--plain {
  min-height: clamp(320px, 40vh, 480px);
  background: var(--espresso);
  padding: var(--space-6) 0;
  display: flex;
  align-items: flex-end;
}

.hero-cover--plain.is-light {
  background: var(--cream-50);
}

/* ============================================================
   SEKCJA 10 — Sekcja Manifest
============================================================ */
.manifest {
  background: var(--espresso);
  color: var(--cream-50);
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}

.manifest::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 10% 0%,   rgba(201,162,74,0.10), transparent 60%),
    radial-gradient(60% 60% at 100% 100%, rgba(122,42,46,0.18), transparent 60%);
  pointer-events: none;
}

.manifest .wrap {
  position: relative;
  z-index: 1;
}

.manifest-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.manifest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
}

.manifest-quote {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "wght" 300;
  font-size: var(--text-display);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream-50);
  margin: 0;
  text-wrap: balance;
}

.manifest-quote em    { font-style: italic; color: var(--gold); }
.manifest-quote .e-mark { font-family: var(--display); font-style: italic; color: var(--gold); }

.manifest-tail {
  margin-top: var(--space-3);
  max-width: 60ch;
  font-size: 19px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--cream-50) 80%, transparent);
}

.manifest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-3);
}

.manifest-photo {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ink);
  overflow: hidden;
}

.manifest-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.05) saturate(1.05);
}

@media (max-width: 720px) {
  .manifest-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SEKCJA 11 — Sekcja Paths (interaktywne drzwi)
============================================================ */
.paths {
  background: var(--paper);
  padding: var(--section-y) 0;
  position: relative;
}

.paths-rail {
  display: grid;
  grid-template-columns: var(--c1, 2.4fr) var(--c2, 0.6fr) var(--c3, 0.6fr);
  gap: clamp(16px, 1.4vw, 24px);
  height: clamp(560px, 70vh, 740px);
  transition: grid-template-columns 0.85s var(--ease-out-expo);
}

.door {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  border: 0;
  padding: 0;
  text-align: left;
  background: var(--cream-100);
  color: var(--ink);
  transition: background 0.5s ease;
}

.door .photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity var(--transition-slow), transform 1.2s var(--ease-out-expo);
}

.door[data-active="true"] .photo {
  opacity: 1;
  transform: scale(1);
}

.door::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,20,16,0.05) 0%, rgba(26,20,16,0.75) 100%);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.door[data-active="true"]::after { opacity: 1; }

.door .strip {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 18px;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-100) 0%, var(--cream-200) 100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.door[data-active="true"] .strip { opacity: 0; pointer-events: none; transform: translateY(-8px); }

.door .strip .num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: 22px;
  color: var(--karmel);
  font-variation-settings: "opsz" 18;
}

.door .strip .vert {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(26px, 2.6vw, 34px);
  font-variation-settings: "opsz" 36;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}

.door .strip .vert em { color: var(--karmel); font-style: italic; }
.door .strip .foot-label {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--karmel);
}

.door:hover .strip {
  background: linear-gradient(180deg, var(--cream-50) 0%, var(--cream-100) 100%);
}

.door:hover .strip .vert { color: var(--karmel); }

.door .body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-4);
  color: var(--cream-50);
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow) 0.15s, transform var(--transition-slow) 0.15s;
  display: grid;
  gap: 18px;
}

.door[data-active="true"] .body { opacity: 1; transform: translateY(0); }

.door .body .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.door .body .kicker .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
}

.door .body h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-variation-settings: "opsz" 72;
  font-size: var(--text-h3);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
}

.door .body h3 em { color: var(--gold); font-style: italic; }

.door .body .lines {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: end;
  max-width: 1100px;
}

.door .body .lines p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--cream-50) 88%, transparent);
  max-width: 42ch;
}

.door .body .lines .products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.door .body .lines .products span {
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  border-radius: var(--radius-pill);
  color: var(--cream-50);
}

.door .body .cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Door CTA — specjalny złoty pill (tylko w kontekście .door .body) */
.door .body .cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--gold);
  color: var(--forest);
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.door .body .cta:hover {
  background: var(--cream-50);
  transform: translateY(-2px);
}

.door .body .meta-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream-50) 70%, transparent);
}

.door .body .meta-line .bar {
  width: 24px;
  height: 1px;
  background: color-mix(in srgb, var(--gold) 70%, transparent);
}

.paths-prog {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: var(--text-caption);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--karmel);
}

.paths-prog .dots { display: flex; gap: 8px; }

.paths-prog .dot {
  width: 28px;
  height: 1px;
  background: color-mix(in srgb, var(--karmel) 30%, transparent);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
  border: 0;
  padding: 0;
}

.paths-prog .dot.is-active {
  background: var(--karmel);
  transform: scaleY(2);
}

.paths-prog .hint { margin-left: auto; opacity: 0.7; }

@media (max-width: 1080px) {
  .paths-rail {
    grid-template-columns: 1fr !important;
    grid-auto-rows: minmax(180px, auto);
    height: auto;
  }
  .paths-rail[data-active="0"] > :nth-child(1),
  .paths-rail[data-active="1"] > :nth-child(2),
  .paths-rail[data-active="2"] > :nth-child(3) { min-height: 460px; }
  .door .strip .vert { writing-mode: horizontal-tb; transform: none; font-size: 26px; }
  .door .strip       { flex-direction: row; justify-content: space-between; align-items: center; padding: 22px 24px; }
}

/* ============================================================
   SEKCJA 12 — Sekcja USP
============================================================ */
.usp {
  background: var(--cream-50);
  padding: var(--section-y) 0;
  position: relative;
}

.usp-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.usp-title {
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: var(--text-h2);
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.usp-title em { font-style: italic; color: var(--karmel); font-weight: 300; }

.usp-rail {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}

.usp-rail::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: color-mix(in srgb, var(--karmel) 22%, transparent);
}

.usp-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  padding: var(--space-5) 0;
  align-items: start;
  border-top: var(--border-subtle);
}

.usp-item:last-child { border-bottom: var(--border-subtle); }

.usp-item .num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(72px, 10vw, 144px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--karmel);
}

.usp-item .body h4 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  font-size: var(--text-h4);
  margin: 6px 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}

.usp-item .body p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--espresso);
  max-width: 38ch;
}

/* Naprzemienność: nieparzyste — num lewo, body prawo */
.usp-item:nth-child(odd)  .num  { grid-column: 1; text-align: left; }
.usp-item:nth-child(odd)  .body { grid-column: 2; text-align: left; padding-left: clamp(0px, 2vw, 24px); }
.usp-item:nth-child(even) .num  { grid-column: 2; text-align: right; }
.usp-item:nth-child(even) .body { grid-column: 1; text-align: right; padding-right: clamp(0px, 2vw, 24px); }
.usp-item:nth-child(even) .body p { margin-left: auto; }

@media (max-width: 720px) {
  .usp-item                  { grid-template-columns: 1fr !important; }
  .usp-item .num,
  .usp-item .body            { grid-column: 1 !important; text-align: left !important; padding: 0 !important; }
  .usp-head                  { grid-template-columns: 1fr; }
}

/* ============================================================
   SEKCJA 13 — Sekcja Przepisy
============================================================ */
.recipes {
  background: var(--paper);
  padding: var(--section-y) 0;
  position: relative;
}

.recipes-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.recipes-title {
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: var(--text-h2);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
}

.recipes-title em { font-style: italic; color: var(--karmel); font-weight: 300; }

.recipes-link {
  justify-self: end;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--karmel);
  padding-bottom: 4px;
  align-self: end;
  text-decoration: none;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.recipe {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}

.recipe .photo {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.recipe .meta {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-family: var(--body);
  font-size: var(--text-caption);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--karmel);
}

.recipe h4 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(26px, 2.6vw, 34px);
  margin: 10px 0 12px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.recipe .author {
  font-family: var(--body);
  font-size: var(--text-caption);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--espresso);
}

.recipe .author b { font-weight: 600; color: var(--ink); }

@media (max-width: 720px) {
  .recipes-grid  { grid-template-columns: 1fr; }
  .recipes-head  { grid-template-columns: 1fr; }
}

/* ============================================================
   SEKCJA 14 — Galeria (stripe pattern)
============================================================ */
.gallery {
  position: relative;
  padding: var(--section-y) 0;
  background: repeating-linear-gradient(
    90deg,
    var(--cream-50)  0, var(--cream-50)  80px,
    var(--cream-100) 80px, var(--cream-100) 160px
  );
}

.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  gap: var(--space-4);
}

.gallery-title {
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: var(--text-h2);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.gallery-title em { font-style: italic; color: var(--karmel); font-weight: 300; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 60px;
  gap: clamp(12px, 1.4vw, 22px);
}

.gallery-grid .tile {
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.gallery-grid .tile::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(26,20,16,0.08);
}

.t1 { grid-column: span 4; grid-row: span 7; }
.t2 { grid-column: span 3; grid-row: span 5; }
.t3 { grid-column: span 5; grid-row: span 5; }
.t4 { grid-column: span 3; grid-row: span 6; }
.t5 { grid-column: span 4; grid-row: span 6; }
.t6 { grid-column: span 5; grid-row: span 4; }
.t7 { grid-column: span 4; grid-row: span 4; }

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 40px; }
  .t1, .t3, .t5 { grid-column: span 6; grid-row: span 5; }
  .t2, .t4, .t6, .t7 { grid-column: span 3; grid-row: span 4; }
}

/* ============================================================
   SEKCJA 15 — Testimoniale
============================================================ */
.tests {
  background: var(--cream-100);
  padding: var(--section-y) 0;
  position: relative;
}

.tests-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.tests-title {
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: var(--text-h2);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
}

.tests-title em { font-style: italic; color: var(--karmel); font-weight: 300; }

.tests-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: start;
}

.tests-grid .col-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-top: var(--space-5);
}

.test { position: relative; }

.test .quote-mark {
  font-family: var(--display);
  font-style: italic;
  font-size: 96px;
  line-height: 0.6;
  color: var(--burgund);
  display: block;
  margin-bottom: -16px;
}

.test blockquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-variation-settings: "opsz" 60;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.3;
  margin: 0 0 24px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.test .who {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--text-caption);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--espresso);
}

.test .who .line { width: 28px; height: 1px; background: var(--karmel); }
.test .who b     { color: var(--ink); font-weight: 600; }

@media (max-width: 1080px) {
  .tests-grid { grid-template-columns: 1fr; }
  .tests-head { grid-template-columns: 1fr; }
}

/* ============================================================
   SEKCJA 16 — Final CTA
============================================================ */
.final-cta {
  background: var(--espresso);
  color: var(--cream-50);
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 90% 10%,  rgba(201,162,74,0.14), transparent 60%),
    radial-gradient(50% 60% at 0% 100%,  rgba(122,42,46,0.18), transparent 60%);
  pointer-events: none;
}

.final-cta .wrap { position: relative; z-index: 1; }

.final-cta-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-5);
  gap: var(--space-3);
}

.final-cta h2 {
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: var(--text-display);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--cream-50);
  max-width: 16ch;
  text-wrap: balance;
}

.final-cta h2 em { font-style: italic; color: var(--gold); font-weight: 300; }

.final-cta-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

.final-cta .phone {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 42px);
  color: var(--cream-50);
  letter-spacing: -0.01em;
}

.final-cta .phone span {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-size: var(--text-caption);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ============================================================
   SEKCJA 17 — Newsletter
============================================================ */
.news {
  background: var(--cream-50);
  padding: var(--section-y-sm) 0;
  border-top: 1px solid color-mix(in srgb, var(--karmel) 20%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--karmel) 20%, transparent);
}

.news-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4);
  align-items: center;
}

.news h3 {
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 60;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 8px 0 0;
  max-width: 24ch;
}

.news h3 em { font-style: italic; color: var(--karmel); font-weight: 300; }

.news form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-1);
  align-items: center;
}

.news input[type="email"] {
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 14px 4px;
  color: var(--ink);
  outline: none;
  letter-spacing: 0.02em;
}

.news input[type="email"]::placeholder {
  color: color-mix(in srgb, var(--espresso) 60%, transparent);
}

.news input[type="email"]:focus { border-bottom-color: var(--karmel); }

.news .btn {
  background: var(--ink);
  color: var(--cream-50);
  border: 1px solid var(--ink);
  padding: 14px 24px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.news .btn:hover { background: var(--karmel); border-color: var(--karmel); }

.news .rodo {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--espresso);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 8px;
  line-height: 1.45;
}

.news .rodo input { margin-top: 3px; accent-color: var(--karmel); }

@media (max-width: 1080px) {
  .news-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   SEKCJA 18 — Stopka (footer) v2
============================================================ */
.foot {
  background: var(--ink);
  color: color-mix(in srgb, var(--cream-50) 85%, transparent);
  padding: clamp(80px, 10vw, 140px) 0 0;
  position: relative;
  overflow: hidden;
}

.foot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 60% at 20% 0%,   rgba(201,162,74,0.10), transparent 60%),
    radial-gradient(60% 50% at 90% 90%,  rgba(138,75,31,0.18),  transparent 60%);
}

.foot .wrap { position: relative; z-index: 1; }

/* Nagłówek stopki */
.foot-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-6);
  align-items: end;
  padding-bottom: var(--space-6);
  border-bottom: var(--border-dark);
}

.foot-headline {
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(56px, 9.5vw, 152px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--cream-50);
  text-wrap: balance;
}

.foot-headline em { font-style: italic; color: var(--gold); font-weight: 300; }

.foot-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.foot-aside .lede {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  color: color-mix(in srgb, var(--cream-50) 80%, transparent);
  max-width: 32ch;
}

.foot-aside .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Kontakty w stopce */
.foot-contacts {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: var(--border-dark);
}

.foot-person {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}

.person-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--karmel), var(--burgund));
  color: var(--cream-50);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  font-variation-settings: "opsz" 18;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  flex-shrink: 0;
}

.foot-person .role {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.foot-person .name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--cream-50);
  margin: 4px 0;
  letter-spacing: -0.01em;
}

.foot-person .phone {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.foot-person .email {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: color-mix(in srgb, var(--cream-50) 70%, transparent);
  margin-top: 4px;
}

.foot-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--cream-50) 12%, transparent);
  border-radius: var(--radius-card);
}

.foot-card .lab {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.foot-card .val {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: 19px;
  color: var(--cream-50);
  line-height: 1.3;
}

.foot-card .addr {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: color-mix(in srgb, var(--cream-50) 75%, transparent);
}

/* Tape (marquee dekoracyjny) */
.foot-tape {
  margin: 0 calc(var(--gutter) * -1);
  border-bottom: var(--border-dark);
  overflow: hidden;
  padding: 22px 0;
}

.foot-tape .track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: dl-marquee 50s linear infinite;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--cream-50) 18%, transparent);
}

.foot-tape .track i {
  color: var(--gold);
  font-style: normal;
  font-size: 0.5em;
  align-self: center;
}

@keyframes dl-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Sitemap stopki */
.foot-sitemap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding: var(--space-4) 0;
}

.foot-col h5 {
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 600;
}

.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot-col a {
  color: color-mix(in srgb, var(--cream-50) 78%, transparent);
  font-size: 14px;
  transition: color var(--transition-base), padding-left 0.25s ease;
  text-decoration: none;
}

.foot-col a:hover { color: var(--cream-50); padding-left: 6px; }

/* Duży brand na dole stopki */
.foot-stamp {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--space-4);
  padding: var(--space-4) 0 var(--space-3);
  border-top: var(--border-dark);
}

.foot-brand {
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "wght" 350;
  font-size: clamp(64px, 12vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--cream-50) 95%, transparent);
  margin: 0;
}

.foot-brand .it  { font-style: italic; font-weight: 300; color: var(--gold); }
.foot-brand .amp { font-style: italic; font-weight: 300; color: var(--karmel); margin: 0 0.05em; }

/* Legal bar */
.foot-legal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 20px 0 28px;
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--cream-50) 55%, transparent);
  border-top: var(--border-dark);
}

.foot-legal a       { color: inherit; text-decoration: none; }
.foot-legal a:hover { color: var(--cream-50); }
.foot-legal .links  { display: flex; gap: 22px; flex-wrap: wrap; }

/* Stopka — logo w stopce */
.foot .brand {
  color: var(--cream-50);
  font-size: 32px;
  margin-bottom: 16px;
}

/* Responsive stopki */
@media (max-width: 1080px) {
  .foot-hero     { grid-template-columns: 1fr; gap: 28px; }
  .foot-contacts { grid-template-columns: 1fr 1fr; }
  .foot-sitemap  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .foot-contacts { grid-template-columns: 1fr; }
  .foot-stamp    { grid-template-columns: 1fr; }
}

/* ============================================================
   SEKCJA 19 — Scroll reveal (IntersectionObserver)
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   SEKCJA 20 — Strony treściowe (page.php, 404.php)
============================================================ */
.page-content {
  padding: var(--section-y) 0;
  background: var(--paper);
}

.page-content .entry-header {
  margin-bottom: var(--space-5);
}

.page-content h1 {
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: var(--text-h2);
  letter-spacing: -0.025em;
  margin: 0;
}

.page-content h1 em {
  font-style: italic;
  color: var(--karmel);
}

.page-content .entry-body {
  max-width: 72ch;
}

.page-content .entry-body h2 {
  font-family: var(--display);
  font-weight: 350;
  font-size: var(--text-h3);
  letter-spacing: -0.02em;
  margin-top: var(--space-5);
}

.page-content .entry-body h3 {
  font-family: var(--display);
  font-weight: 350;
  font-size: var(--text-h4);
  letter-spacing: -0.01em;
}

.page-content .entry-body p {
  line-height: 1.7;
  color: var(--espresso);
}

.page-content .entry-body a {
  color: var(--karmel);
  border-bottom: 1px solid color-mix(in srgb, var(--karmel) 40%, transparent);
  transition: border-color var(--transition-base);
}

.page-content .entry-body a:hover {
  border-bottom-color: var(--karmel);
}

/* 404 */
.error-404 {
  text-align: center;
  padding: var(--section-y) 0;
}

.error-404 .err-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-section-num);
  color: var(--karmel);
  opacity: 0.18;
  line-height: 0.85;
  display: block;
  margin-bottom: var(--space-4);
}

/* ============================================================
   SEKCJA 21 — Ikonografia (reguły globalne)
   Wyłącznie inline SVG. Zakaz Font Awesome, emoji.
============================================================ */
svg {
  display: inline-block;
  vertical-align: middle;
}

.bar {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--karmel);
}
