/* ============================================================
   SCHERDIEN — prywatna prezentacja dla restauratora
   Świat wizualny: głęboki GRANAT + stare złoto, wszystko
   wycentrowane, z dużym oddechem. Tło żyje wyłącznie cieniem
   przy krawędziach. Zero poświat, ram i ozdobników.
   Typografia: EB Garamond (pliki lokalne, bez Google Fonts).
   ============================================================ */

/* ---------- Czcionki (lokalne, RODO-bezpieczne) ---------- */
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ebgaramond-normal-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ebgaramond-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ebgaramond-normal-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ebgaramond-normal-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ebgaramond-italic-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ebgaramond-italic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cormorant: krój wielkoformatowy (nagłówki, tezy, motto) */
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-normal-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-normal-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-normal-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-normal-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-italic-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-italic-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Zmienne ---------- */
:root {
  --navy:      #070d1a;  /* głęboki granat, przyciemniony 2026-07-20 */
  --navy-dark: #03060e;  /* cień przy krawędziach */

  --gold:      #c9a24b;
  --gold-hi:   #e7ce8c;

  --ivory:       #eae5d5;
  --ivory-dim:   rgba(234, 229, 213, 0.64);
  --ivory-faint: rgba(234, 229, 213, 0.34);
  --ivory-line:  rgba(234, 229, 213, 0.26);
  --ivory-label: rgba(234, 229, 213, 0.56); /* etykiety niosące treść: kontrast ~5:1 */

  --font: "EB Garamond", "Georgia", "Times New Roman", serif;
  /* Rola wielkoformatowa: wysoki kontrast kresek, biżuteryjne detale */
  --font-display: "Cormorant", "EB Garamond", "Georgia", serif;
  --ease:          cubic-bezier(0.25, 0.6, 0.35, 1);
  --ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);   /* osiadanie na wejściu */
  --ease-exit:     cubic-bezier(0.55, 0, 0.9, 0.35);
  --ease-hover:    cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }

html {
  /* Cienki, ciemny pasek przewijania (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: rgba(234, 229, 213, 0.22) var(--navy-dark);
  /* Płynne przejścia do sekcji z menu; margines na pasek górny */
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
/* Cienki, ciemny pasek przewijania (Chrome / Edge / Safari) */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--navy-dark); }
::-webkit-scrollbar-thumb {
  background: rgba(234, 229, 213, 0.22);
  border-radius: 4px;
  border: 2px solid var(--navy-dark);
}
::-webkit-scrollbar-thumb:hover { background: rgba(234, 229, 213, 0.35); }

/* Zaznaczanie tekstu w barwach marki */
::selection { background: rgba(201, 162, 75, 0.35); color: var(--ivory); }

body {
  font-family: var(--font);
  color: var(--ivory);
  overflow-x: hidden;
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; height: 100vh; height: 100dvh; }
body.menu-open { overflow: hidden; }

/* Sterowanie cyframi OpenType — świadomy skład serifowy.
   Mediewałowe w tekście czytanym, wersalikowe w etykietach,
   tabularne+wersalikowe na żywym wyniku kalkulatora (zero dygotu). */
.section__body p, .section__lead, .spec__desc, .faq__a,
.who__list li, .step__text {
  font-variant-numeric: oldstyle-nums proportional-nums;
}
.spec__term, .gate__baseline, .footer__legal {
  font-variant-numeric: lining-nums;
}
.calc__number, .calc__input, #calc-guests, #calc-per100 {
  font-variant-numeric: tabular-nums lining-nums;
}

/* Tło jako stała warstwa pod treścią: winieta działa też na iOS,
   gdzie background-attachment: fixed jest ignorowane */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(130% 105% at 50% 42%,
    var(--navy) 52%,
    var(--navy-dark) 100%);
}

/* Ledwo wyczuwalna faktura papieru */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 260px 260px;
}

/* ---------- Ekrany pełnoekranowe (bramka, powitanie) ---------- */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  overflow-y: auto;
  z-index: 10;
}
.screen[hidden] { display: none; }

/* ---------- Współdzielone ---------- */
.rule {
  display: block;
  width: 52px;
  height: 1px;
  margin: 0 auto;
  background: var(--ivory-line);
}
/* Grawerowana kreska: pełne, matowe złoto zamiast rozbłysku ze środka */
.rule--gold {
  background: var(--gold);
  opacity: 0.55;
}

/* ============================================================
   BRAMKA — rytm pionowy z dużym oddechem
   ============================================================ */
.gate {
  flex-direction: column;
  padding-top: clamp(3.5rem, 9vh, 5.5rem);
  padding-bottom: clamp(3.2rem, 8vh, 5rem);
  transition: opacity 0.7s var(--ease);
}
.gate.is-leaving { opacity: 0; pointer-events: none; }

.gate__baseline {
  position: absolute;
  bottom: clamp(1.8rem, 4.8vh, 3rem);
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  color: var(--ivory-faint);
}

.gate__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: min(640px, 100%);
  margin: 0 auto;
}

.gate__mark {
  display: block;
  width: clamp(190px, 23vw, 250px);
  max-height: 24vh;
  height: auto;
  object-fit: contain;
}

.gate__content > .rule {
  margin-top: clamp(1.8rem, 4.5vh, 2.8rem);
}

.gate__headline {
  margin-top: clamp(1.8rem, 4.5vh, 2.8rem);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.1vw, 1.66rem);
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--ivory);
  max-width: 30ch;
  text-wrap: balance;
}

.gate__lede {
  margin-top: clamp(1rem, 2.6vh, 1.5rem);
  font-size: clamp(1.02rem, 2.3vw, 1.16rem);
  line-height: 1.65;
  color: var(--ivory-dim);
  max-width: 46ch;
}

/* ---------- Formularz ---------- */
.gate__form {
  margin-top: clamp(2.6rem, 6.5vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.7rem;
  width: 100%;
}

.gate__input {
  width: min(280px, 100%);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ivory-line);
  color: var(--ivory);
  caret-color: var(--ivory);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 0.45rem 0.5rem 0.6rem;
  transition: border-color 0.4s var(--ease);
}
.gate__input::placeholder {
  color: var(--ivory-faint);
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
}
.gate__input:focus {
  outline: none;
  border-bottom-color: rgba(201, 162, 75, 0.6);
}
.gate__form.is-error .gate__input { animation: nudge 0.5s var(--ease); }

/* Przycisk: jasna złota linia, spokojne litery */
.btn {
  font-family: var(--font);
  cursor: pointer;
  background: rgba(231, 206, 140, 0.05);
  color: var(--gold-hi);
  border: 1px solid rgba(231, 206, 140, 0.42);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1rem 2rem 0.95rem;
  max-width: 100%;
  white-space: nowrap;
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn--gate { width: min(280px, 100%); }
.btn--gate:hover, .btn--gate:focus-visible {
  background: rgba(231, 206, 140, 0.12);
  border-color: rgba(231, 206, 140, 0.8);
  outline: none;
}

.gate__note {
  margin-top: clamp(1.7rem, 4.2vh, 2.6rem);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ivory-label);
}

.gate__error {
  margin-top: 1.4rem;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ivory-dim);
  max-width: 48ch;
}
.gate__error[hidden] { display: none; }
.gate__error p[hidden] { display: none; }
#gate-error-final { margin-top: 0.6rem; color: var(--ivory); }

/* ============================================================
   POWITANIE — potwierdzenie, personalizacja, podziękowanie
   ============================================================ */
.welcome { opacity: 0; transition: opacity 0.9s var(--ease); }
.welcome.is-entering { opacity: 1; }
.welcome.is-leaving  { opacity: 0; }

.welcome__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: min(720px, 100%);
  padding: 0 clamp(1.5rem, 5vw, 2rem);
}

.welcome__confirmed {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ivory-faint);
}
.welcome__confirmed[hidden] { display: none; }

.welcome__restaurant {
  margin-top: clamp(1.9rem, 5vh, 2.8rem);
  font-size: clamp(0.78rem, 1.8vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(201, 162, 75, 0.85);
  padding-left: 0.26em;
}

.welcome__greeting {
  margin-top: clamp(1.4rem, 3.8vh, 2.1rem);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.8vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.008em;
  color: var(--ivory);
  text-wrap: balance;
}

.welcome__content > .rule {
  margin-top: clamp(1.8rem, 4.6vh, 2.6rem);
}

.welcome__thanks {
  margin-top: clamp(1.6rem, 4.2vh, 2.4rem);
  font-size: clamp(1.02rem, 2.3vw, 1.18rem);
  font-style: italic;
  color: var(--ivory-dim);
}
.welcome__thanks[hidden] { display: none; }

.welcome.is-entering .welcome__content > * { animation: rise 1s var(--ease-entrance) both; }
.welcome.is-entering .welcome__confirmed  { animation-delay: 0.15s; }
.welcome.is-entering .welcome__restaurant { animation-delay: 0.5s; }
/* Zawieszony takt ciszy przed imieniem gościa — szczyt personalizacji:
   dłuższy, wolniejszy rise wynosi nazwisko ponad potwierdzenia. */
.welcome.is-entering .welcome__greeting   {
  animation: rise-name 1.3s var(--ease-entrance) both;
  animation-delay: 1.25s;
}
.welcome.is-entering .rule                { animation-delay: 1.95s; }
.welcome.is-entering .welcome__thanks     { animation-delay: 2.25s; }

/* ============================================================
   PASEK GÓRNY — hamburger z cienkich kresek po lewej, wordmark
   w centrum. Bez linii i bez tła-belki: litery leżą wprost na
   materiale hero, pod nimi tylko miękki gradient granatu,
   w który wtapia się film. Pojawia się razem z prezentacją.
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  pointer-events: none; /* klikalne są tylko hamburger i wordmark */
  background: linear-gradient(180deg,
    var(--navy) 0%,
    var(--navy) 82%,
    rgba(7, 13, 26, 0) 100%);
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.topbar[hidden] { display: none; }
.topbar.is-shown { opacity: 1; }

/* Hamburger: dwie poziome kreski, po otwarciu składają się w X */
.topbar__menu {
  position: absolute;
  left: clamp(0.7rem, 3vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 12px;
  pointer-events: auto;
}
.topbar__menu-line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ivory);
  transition: transform 0.45s var(--ease), background-color 0.45s var(--ease);
}
.topbar__menu:hover .topbar__menu-line { background: var(--gold-hi); }
.topbar__menu.is-open .topbar__menu-line:first-child { transform: translateY(4px) rotate(45deg); }
.topbar__menu.is-open .topbar__menu-line:last-child  { transform: translateY(-4px) rotate(-45deg); }
.topbar__menu:focus-visible {
  outline: 1px solid rgba(234, 229, 213, 0.4);
  outline-offset: 2px;
}

.topbar__brand {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  padding: 0.9rem 1.2rem 0.9rem calc(1.2rem + 0.42em); /* kompensacja trackingu */
  text-transform: uppercase;
  color: var(--ivory);
  pointer-events: auto;
  transition: color 0.5s var(--ease);
}
.topbar__brand:hover { color: var(--gold-hi); }
.topbar__brand:focus-visible {
  outline: 1px solid rgba(234, 229, 213, 0.4);
  outline-offset: 4px;
}

/* ============================================================
   MENU — pełnoekranowa, cicha nakładka. Pasek górny zostaje
   nad nią: hamburger zamienia się w X, wordmark trwa.
   ============================================================ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 1.5rem 3rem;
  background: radial-gradient(130% 105% at 50% 42%,
    var(--navy) 55%,
    var(--navy-dark) 100%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }

.menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.35rem, 3.6vh, 2.1rem);
  text-align: center;
}
.menu__link {
  display: inline-block;
  font-size: clamp(1rem, 2.4vw, 1.22rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  padding-left: 0.22em; /* kompensacja trackingu */
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory-dim);
  transition: color 0.45s var(--ease);
}
.menu__link:hover, .menu__link:focus-visible { color: var(--gold-hi); outline: none; }

.menu.is-open .menu__list li { animation: rise 0.8s var(--ease-entrance) both; }
.menu.is-open .menu__list li:nth-child(1) { animation-delay: 0.05s; }
.menu.is-open .menu__list li:nth-child(2) { animation-delay: 0.11s; }
.menu.is-open .menu__list li:nth-child(3) { animation-delay: 0.17s; }
.menu.is-open .menu__list li:nth-child(4) { animation-delay: 0.23s; }
.menu.is-open .menu__list li:nth-child(5) { animation-delay: 0.29s; }
.menu.is-open .menu__list li:nth-child(6) { animation-delay: 0.35s; }
.menu.is-open .menu__list li:nth-child(7) { animation-delay: 0.41s; }
.menu.is-open .menu__list li:nth-child(8) { animation-delay: 0.47s; }

/* ============================================================
   PREZENTACJA — długa strona przewijana
   ============================================================ */
.stage {
  position: relative;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  padding-bottom: clamp(4rem, 10vh, 7rem);
}
.stage[hidden] { display: none; }
.stage.is-entering { opacity: 1; }

/* ---------- Hero: pełnoekranowe miejsce na film ----------
   Materiał leży pod paskiem górnym od krawędzi do krawędzi
   (jak hero na stronach domów mody), a u dołu miękko gaśnie
   w granat strony. Po dodaniu filmu: .hero__video kryje całość. */
.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
}
.hero__media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(95% 75% at 50% 44%,
    rgba(19, 30, 52, 0.75),
    rgba(4, 8, 14, 0.9));
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Zasłona: wyrównuje film do świata granatu i daje czytelność treści */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(85% 70% at 50% 52%, rgba(7, 13, 26, 0.28), rgba(7, 13, 26, 0.58)),
    rgba(7, 13, 26, 0.2);
}
/* Górne wtopienie: przedłużenie gradientu paska w materiał */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(90px, 16vh, 160px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(7, 13, 26, 0.72), rgba(7, 13, 26, 0));
}
/* Dolne wtopienie: film przechodzi w granat strony bez krawędzi */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(130px, 24vh, 240px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 19, 34, 0), var(--navy));
}
/* Treść hero: nad filmem i zasłonami, wycentrowana */
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 1.5rem 4rem;
  max-width: 980px;
  margin: 0 auto;
}
.hero__eyebrow {
  font-size: clamp(0.74rem, 1.7vw, 0.84rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  text-transform: uppercase;
  color: rgba(201, 162, 75, 0.88);
}
.hero__headline {
  margin-top: clamp(1.4rem, 3.6vh, 2.2rem);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  line-height: 1.14;
  letter-spacing: -0.008em;
  color: var(--ivory);
  max-width: 26ch;
  text-wrap: balance;
}
.hero__sub {
  margin-top: clamp(1.2rem, 3vh, 1.8rem);
  font-size: clamp(1.04rem, 2.3vw, 1.24rem);
  line-height: 1.65;
  color: var(--ivory-dim);
  max-width: 50ch;
}
/* Dyskretne wejście do akcji wprost z hero */
.hero__cta {
  margin-top: clamp(2rem, 5vh, 3rem);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-hi);
  border-bottom: 1px solid rgba(231, 206, 140, 0.4);
  padding-bottom: 0.45rem;
  transition: border-color 0.45s var(--ease);
}
.hero__cta:hover, .hero__cta:focus-visible {
  border-bottom-color: rgba(231, 206, 140, 0.9);
  outline: none;
}

/* Sygnał przewijania: cienka złota nitka u dołu */
.hero__scroll {
  position: absolute;
  bottom: clamp(1.6rem, 5vh, 3rem);
  left: 50%;
  width: 1px;
  height: clamp(38px, 6.5vh, 56px);
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(201, 162, 75, 0.85));
}

/* ---------- Sekcje prezentacji ---------- */
.stage__section {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 3rem) clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Pełne sekcje: editorial, cisza, numeracja ---------- */
.section {
  padding-top: clamp(4.5rem, 11vh, 7.5rem);
  padding-bottom: clamp(4.5rem, 11vh, 7.5rem);
  text-align: center;
}

.section__head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
/* Numer-widmo: ogromna cyfra rozdziału w tle nagłówka.
   Ledwie widoczna, czysto typograficzna głębia. */
.section__head::before {
  content: attr(data-num);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(7rem, 16vw, 11rem);
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: lining-nums;
  color: rgba(234, 229, 213, 0.07);
  pointer-events: none;
  user-select: none;
}
.section--paper .section__head::before { color: rgba(11, 19, 34, 0.075); }
/* Numer rozdziału pada RAZ — jako pojedyncze folio-widmo, nie zdublowany. */
.section__index { display: none; }
.section__title {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  text-transform: uppercase;
  color: rgba(201, 162, 75, 0.85);
}
.section__lead {
  margin: clamp(2.2rem, 5.5vh, 3.4rem) auto 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--ivory);
  max-width: 30ch;
  text-wrap: balance;
}
.section__body {
  margin: clamp(1.8rem, 4.5vh, 2.6rem) auto 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 3vh, 1.7rem);
  max-width: 60ch;
}
.section__body p {
  font-size: clamp(1.02rem, 2.2vw, 1.16rem);
  line-height: 1.75;
  color: var(--ivory-dim);
  text-wrap: pretty;
}
.section__statement {
  position: relative;
  margin: clamp(2.6rem, 6.5vh, 4rem) auto 0;
  padding-top: clamp(1.8rem, 4.5vh, 2.6rem);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.9vw, 1.7rem);
  line-height: 1.4;
  color: var(--ivory);
  max-width: 40ch;
  text-wrap: balance;
}
.section__statement::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

/* Wjazd treści przy przewijaniu (obsługa w script.js).
   Powściągliwy: krótszy, bliższy, tylko na otwarciu rozdziału —
   proza renderuje się od razu, bez tarcia w lekturze. */
.rise-on-scroll {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease-entrance), transform 0.55s var(--ease-entrance);
}
.rise-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Warianty sekcji: rytm strony ----------
   Strona nie może być jednym ciągłym granatem. Sekcja o systemie
   staje się papierem (krem Munken), sekcja o wyłączności ciemnieje.
   Pasy biegną od krawędzi do krawędzi ekranu. */
.section--paper {
  max-width: none;
  /* Krem Munken: ciepły beż bez oliwkowego podtonu, nie biel */
  background:
    radial-gradient(120% 80% at 50% 0%,
      rgba(244, 236, 214, 0.28), rgba(244, 236, 214, 0) 60%),
    linear-gradient(180deg, #dccfa8 0%, #d3c59d 100%);
  padding-top: clamp(5rem, 12vh, 8rem);
  padding-bottom: clamp(5rem, 12vh, 8rem);
}
.section--paper .section__index { color: rgba(120, 92, 30, 0.7); }
.section--paper .section__title { color: #6f5417; }
.section--paper .section__lead { color: #16233f; }
.section--paper .section__body p { color: rgba(22, 35, 63, 0.82); }
.section--paper .section__statement { color: #16233f; }
.section--paper ::selection { background: rgba(156, 122, 46, 0.3); color: #16233f; }
/* Letterpress: druk wtłoczony w papier Munken (wyłącznie na kremie) */
.section--paper .section__lead,
.section--paper .section__title,
.section--paper .section__statement,
.section--paper .calc__number,
.section--paper .spec__term {
  text-shadow: 0 1px 0 rgba(255, 251, 240, 0.5), 0 -1px 0 rgba(11, 19, 34, 0.11);
}

/* Pas uniesiony: granat o pół tonu jaśniejszy, jak światło na scenie.
   Trzeci stopień drabiny tonalnej (baza / uniesiony / głęboki). */
.section--raised {
  max-width: none;
  /* Inky midnight, nie denim — kanał niebieski ściągnięty */
  background: linear-gradient(180deg, #101a2c 0%, #0a1220 100%);
  padding-top: clamp(5rem, 12vh, 8rem);
  padding-bottom: clamp(5rem, 12vh, 8rem);
}

.section--dark {
  max-width: none;
  /* Matowa pustka głębsza niż krawędź bazy, by szczebel realnie pulsował */
  background:
    radial-gradient(130% 100% at 50% 35%,
      rgba(2, 4, 10, 0) 30%, rgba(2, 4, 10, 0.9) 100%),
    #02040a;
  padding-top: clamp(5rem, 12vh, 8rem);
  padding-bottom: clamp(5rem, 12vh, 8rem);
}
.section--dark .section__lead {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  max-width: 24ch;
}
.section--dark .section__statement { color: var(--gold-hi); }

/* ---------- Specyfikacja edycji (sekcja 02) ---------- */
.spec {
  margin: clamp(2.6rem, 6.5vh, 4rem) auto 0;
  max-width: 760px;
  text-align: left;
}
.spec__row {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  padding: clamp(1.2rem, 3vh, 1.6rem) 0;
  border-top: 1px solid rgba(234, 229, 213, 0.13);
}
.spec__row:last-child { border-bottom: 1px solid rgba(234, 229, 213, 0.13); }
.spec__term {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
  color: rgba(201, 162, 75, 0.88);
}
.spec__desc {
  font-size: clamp(0.98rem, 2.1vw, 1.08rem);
  line-height: 1.7;
  color: var(--ivory-dim);
}
/* Specyfikacja na papierze: granatowy druk, ciemne złoto, cienie tuszu */
.section--paper .spec__row { border-color: rgba(11, 19, 34, 0.18); }
.section--paper .spec__row:last-child { border-bottom-color: rgba(11, 19, 34, 0.18); }
.section--paper .spec__term { color: #79591c; }
.section--paper .spec__desc { color: rgba(22, 35, 63, 0.8); }

/* ---------- Kroki (sekcja 03) ---------- */
.steps {
  margin: clamp(2.6rem, 6.5vh, 4rem) auto 0;
  max-width: 860px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.4rem, 6vh, 3.6rem) clamp(2.4rem, 5vw, 4rem);
  text-align: left;
}
.step__num {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  color: rgba(201, 162, 75, 0.5);
}
.step__title {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.7vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ivory);
}
.step__text {
  margin-top: 0.8rem;
  font-size: clamp(0.98rem, 2.1vw, 1.06rem);
  line-height: 1.7;
  color: var(--ivory-dim);
}

/* ---------- Fotografia znaku (sekcja 05) ---------- */
.figure {
  margin: clamp(2.6rem, 6.5vh, 4rem) auto 0;
  max-width: 820px;
}
.figure__img {
  display: block;
  width: 100%;
  height: auto;
  /* Krawędzie fotografii gasną w granat strony, bez widocznej ramki:
     dwie maski liniowe (pozioma i pionowa) przecięte ze sobą */
  -webkit-mask-image:
    linear-gradient(90deg,  transparent 0, #000 16%, #000 84%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg,  transparent 0, #000 16%, #000 84%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
.figure__caption {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ivory-faint);
}

/* ---------- Kalkulator progu (sekcja 06) ---------- */
.calc {
  margin: clamp(2.6rem, 6.5vh, 4rem) auto 0;
  max-width: 640px;
}
.calc__fields {
  display: flex;
  justify-content: center;
  gap: clamp(2.4rem, 6vw, 4.5rem);
  flex-wrap: wrap;
}
.calc__field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.calc__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-label);
}
.calc__input {
  width: 130px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ivory-line);
  color: var(--ivory);
  caret-color: var(--ivory);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.5rem;
  text-align: center;
  padding: 0.35rem 0.4rem 0.5rem;
  transition: border-color 0.4s var(--ease);
}
.calc__input:focus {
  outline: none;
  border-bottom-color: rgba(201, 162, 75, 0.6);
}
.calc__input::-webkit-inner-spin-button,
.calc__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc__input { -moz-appearance: textfield; appearance: textfield; }

.calc__result { margin-top: clamp(2.2rem, 5.5vh, 3.2rem); }
.calc__number {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8.5vw, 5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-hi);
}
.calc__caption {
  margin-top: 0.9rem;
  font-size: clamp(1.02rem, 2.2vw, 1.14rem);
  color: var(--ivory);
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.calc__per100 {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--ivory-dim);
}
.calc__note {
  margin-top: clamp(1.6rem, 4vh, 2.2rem);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ivory-faint);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* Kalkulator na papierze: granatowy druk, ciemne złoto wyniku */
.section--paper .calc__label { color: rgba(22, 35, 63, 0.55); }
.section--paper .calc__input {
  color: #16233f;
  caret-color: #16233f;
  border-bottom-color: rgba(11, 19, 34, 0.3);
}
.section--paper .calc__input:focus { border-bottom-color: rgba(140, 108, 40, 0.7); }
.section--paper .calc__number { color: #8c6c28; }
.section--paper .calc__caption { color: #16233f; }
.section--paper .calc__per100 { color: rgba(22, 35, 63, 0.7); }
.section--paper .calc__note { color: rgba(22, 35, 63, 0.55); }

/* ---------- Dla kogo (sekcja 08): selekcja wprost ---------- */
.who {
  margin: clamp(2.6rem, 6.5vh, 4rem) auto 0;
  max-width: 860px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.4rem, 6vh, 3.5rem) clamp(2.4rem, 5vw, 4.5rem);
  text-align: left;
}
.who__head {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.6;
}
.who__head--yes { color: rgba(201, 162, 75, 0.88); }
.who__head--no  { color: var(--ivory-faint); }
.who__list {
  list-style: none;
  margin-top: 0.4rem;
}
.who__list li {
  padding: clamp(0.9rem, 2.2vh, 1.15rem) 0.1rem;
  border-bottom: 1px solid rgba(234, 229, 213, 0.13);
  font-size: clamp(0.98rem, 2.1vw, 1.08rem);
  line-height: 1.6;
  color: var(--ivory-dim);
}
.who__list--no li { color: var(--ivory-faint); }
@media (max-width: 640px) {
  .who { grid-template-columns: 1fr; }
}

/* ---------- Strony prawne (impressum, datenschutz) ---------- */
.legal {
  padding: clamp(3.5rem, 9vh, 5.5rem) 1.5rem clamp(3rem, 8vh, 5rem);
}
.legal__wrap {
  max-width: 72ch;
  margin: 0 auto;
  text-align: left;
}
.legal__brand {
  display: block;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.legal h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 500;
  color: var(--ivory);
}
.legal h2 {
  margin-top: clamp(2rem, 5vh, 2.8rem);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 162, 75, 0.85);
}
.legal p, .legal li {
  margin-top: 0.9rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ivory-dim);
}
.legal ul { list-style: none; }
.legal a { color: var(--gold-hi); }
.legal__todo {
  font-style: italic;
  color: var(--ivory-faint);
}

/* ---------- Pytania (sekcja 09): ciche akordeony ---------- */
.faq {
  margin: clamp(2.6rem, 6.5vh, 4rem) auto 0;
  max-width: 760px;
  text-align: left;
  border-top: 1px solid rgba(234, 229, 213, 0.13);
}
.faq__item { border-bottom: 1px solid rgba(234, 229, 213, 0.13); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.2rem, 3vh, 1.6rem) 0.2rem;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.04rem, 2.3vw, 1.2rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ivory);
  transition: color 0.4s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--gold-hi); }
.faq__q:focus-visible {
  outline: 1px solid rgba(234, 229, 213, 0.4);
  outline-offset: 4px;
}
/* Złoty znak plus, po otwarciu składa się w minus */
.faq__mark {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.faq__mark::before,
.faq__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 1px;
  background: rgba(201, 162, 75, 0.85);
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.faq__mark::after { transform: rotate(90deg); }
.faq__item[open] .faq__mark::after { transform: rotate(0deg); opacity: 0; }
.faq__a {
  padding: 0 2.5rem clamp(1.3rem, 3vh, 1.7rem) 0.2rem;
  max-width: 62ch;
  font-size: clamp(0.98rem, 2.1vw, 1.08rem);
  line-height: 1.75;
  color: var(--ivory-dim);
}
/* Płynne rozwijanie akordeonu zamiast skoku wysokości natywnego <details>.
   Degraduje bezpiecznie do zachowania domyślnego tam, gdzie brak wsparcia. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq__item::details-content {
    height: 0;
    overflow: hidden;
    content-visibility: hidden;
    transition: height 0.5s var(--ease-entrance), content-visibility 0.5s allow-discrete;
  }
  .faq__item[open]::details-content { height: auto; content-visibility: visible; }
}

/* ---------- Formularz kontaktu (sekcja 08) ---------- */
.contact {
  margin: clamp(2.4rem, 6vh, 3.6rem) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  max-width: 460px;
}
.contact__field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
}
.contact__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-label);
}
.contact__input {
  width: min(320px, 100%);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ivory-line);
  color: var(--ivory);
  caret-color: var(--ivory);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.15rem;
  text-align: center;
  padding: 0.4rem 0.5rem 0.55rem;
  transition: border-color 0.4s var(--ease);
}
.contact__input:focus {
  outline: none;
  border-bottom-color: rgba(201, 162, 75, 0.6);
}
.contact__submit { width: min(320px, 100%); margin-top: 0.4rem; }
.contact__consent {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ivory-label);
  max-width: 40ch;
  line-height: 1.65;
}
.contact__error {
  font-size: 0.95rem;
  color: var(--ivory-dim);
}
.contact__error[hidden] { display: none; }
.contact__done[hidden] { display: none; }

/* ---------- Wąskie ekrany: specyfikacja i kroki w jednej kolumnie ---------- */
@media (max-width: 640px) {
  .spec__row { grid-template-columns: 1fr; gap: 0.5rem; }
  .steps { grid-template-columns: 1fr; }
}

/* ============================================================
   STOPKA — zamknięcie prezentacji jak listu: złota linia,
   pieczęć z korony, jedno zdanie, dyskretne wezwanie i baza
   informacyjna. Dużo ciszy, wszystko wycentrowane.
   ============================================================ */
.footer {
  position: relative;
  margin-top: clamp(4rem, 10vh, 7rem);
  padding: clamp(3.5rem, 9vh, 6rem) 1.5rem clamp(2.2rem, 5vh, 3.2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Strona domyka się w najgłębszym tonie drabiny */
  background: linear-gradient(180deg,
    rgba(3, 6, 14, 0) 0%, rgba(3, 6, 14, 0.65) 45%, var(--navy-dark) 100%);
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 72vw);
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(201, 162, 75, 0.55) 30%,
    rgba(231, 206, 140, 0.7) 50%,
    rgba(201, 162, 75, 0.55) 70%, transparent);
}

/* Motto: dwa zdania jak inskrypcja, potem złota sygnatura kategorii */
.footer__manifest {
  margin-top: clamp(0.6rem, 1.5vh, 1rem);
  max-width: 760px;
}
.footer__motto {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0;
  color: var(--ivory);
  text-wrap: balance;
}
.footer__creed {
  margin-top: clamp(1.6rem, 4vh, 2.3rem);
  font-size: clamp(0.82rem, 1.9vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  text-transform: uppercase;
  color: rgba(201, 162, 75, 0.9);
}

.footer__cta {
  margin-top: clamp(2rem, 5vh, 3rem);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-hi);
  border-bottom: 1px solid rgba(231, 206, 140, 0.4);
  padding-bottom: 0.5rem;
  transition: border-color 0.45s var(--ease), color 0.45s var(--ease);
}
.footer__cta:hover, .footer__cta:focus-visible {
  border-bottom-color: rgba(231, 206, 140, 0.9);
  outline: none;
}

.footer__nav {
  margin-top: clamp(2.6rem, 6.5vh, 4rem);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__navlink {
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ivory-faint);
  transition: color 0.45s var(--ease);
}
.footer__navlink:hover, .footer__navlink:focus-visible { color: var(--ivory); outline: none; }
.footer__dot { color: rgba(234, 229, 213, 0.22); }

.footer__legal {
  margin-top: clamp(1.4rem, 3.5vh, 2rem);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ivory-label);
  max-width: 52ch;
  line-height: 1.7;
}

/* ---------- Animacje ---------- */
.reveal { animation: rise 1s var(--ease-entrance) both; animation-delay: var(--d, 0s); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rise-name {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ---------- Telefon ---------- */
@media (max-width: 600px) {
  .gate__mark { width: clamp(150px, 46vw, 200px); }
  .gate__headline { font-size: 1.24rem; }
  .btn { letter-spacing: 0.18em; font-size: 0.8rem; }
  .topbar { height: 60px; }
  .topbar__brand {
    font-size: 0.84rem;
    letter-spacing: 0.34em;
    padding-left: calc(1.2rem + 0.34em);
  }
}

/* ---------- Niskie ekrany (np. laptop 1366x768) ---------- */
@media (max-height: 800px) {
  .gate { padding-top: 3rem; padding-bottom: 3rem; }
  .gate__mark { width: clamp(140px, 19vh, 185px); max-height: 20vh; }
  .gate__content > .rule { margin-top: 1.3rem; }
  .gate__headline { margin-top: 1.3rem; font-size: clamp(1.14rem, 2.6vw, 1.4rem); }
  .gate__lede { margin-top: 0.8rem; font-size: 1rem; }
  .gate__form { margin-top: 1.8rem; gap: 1.15rem; }
  .gate__note { margin-top: 1.2rem; font-size: 0.84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .welcome.is-entering .welcome__content > *,
  .menu.is-open .menu__list li,
  .faq__item[open] .faq__a,
  .gate__form.is-error .gate__input {
    animation: none !important;
  }
  .gate, .welcome, .stage, .menu { transition: opacity 0.25s linear; }
  .rise-on-scroll { opacity: 1; transform: none; transition: none; }
}
