/* ==========================================================================
   Zaproszenie na ślub – Natalka & Mariusz
   --------------------------------------------------------------------------
   Układ: jedna długa strona jak papierowe zaproszenie – wyśrodkowana kolumna,
   zdjęcia w łukach, złote linie i ornament plumerii jako separatory.
   Mobile-first: reguły bez @media dotyczą telefonu, większe ekrany są niżej.

   Spis treści:
    1. Tokeny (kolory, fonty, wymiary)     8. Tydzień ślubny + pejzaż wysp
    2. Podstawy                            9. Pas „klimat”
    3. Elementy wspólne                   10. Informacje (zakładki, polaroidy)
    4. Intro                              11. Potwierdź obecność
    5. Nawigacja (pasek, kropki, menu)     12. Zakończenie i stopka
    6. Hero                               13. Ograniczony ruch / bez JS
    7. Szczegóły
   ========================================================================== */

/* Zarejestrowana zmienna – dzięki temu przeglądarka umie płynnie animować „błysk” */
@property --blysk {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -60%;
}

/* ---------------------------------------------------------------- 1. Tokeny */
:root {
  /* Kolory – tylko biel, beż i złoto. Zmieniasz tutaj, zmienia się wszędzie. */
  --bialy: #FFFFFF;
  --kosc-sloniowa: #FBF8F3;   /* główne tło */
  --bez: #EFE6D8;             /* tła sekcji, karty */
  --piasek: #D9C8AE;          /* ramki, linie pomocnicze */
  --zloto: #B8925A;           /* akcenty, ikony, duże nagłówki */
  --zloto-jasne: #D4AF6A;     /* hover, ozdobniki */
  --zloto-gleboki: #94703A;   /* tło przycisków i drobne złote napisy (kontrast AA z bielą) */
  --tekst: #3A322A;           /* tekst główny – ciepły ciemny brąz */
  --tekst-miekki: #6B5E50;    /* podpisy, drobny tekst */
  --szalwia: #A9B49A;         /* wyłącznie liście w ilustracjach */
  --platek: #FFFDF8;          /* wypełnienie płatków plumerii i żagli w ilustracjach */

  /* Fonty */
  --font-szeryf: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-pismo: 'Pinyon Script', 'Great Vibes', 'Snell Roundhand', cursive;
  --font-tekst: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Wymiary */
  --pasek-h: 64px;
  --margines: clamp(20px, 6vw, 32px);
  --szer: 1160px;
  --gora: env(safe-area-inset-top, 0px);

  /* Ruch */
  --miekko: cubic-bezier(.22, 1, .36, 1);
  --kurtyna: cubic-bezier(.76, 0, .24, 1);

  interpolate-size: allow-keywords; /* płynne rozwijanie zakładek do height: auto */
}

@media (min-width: 1024px) {
  :root {
    --pasek-h: 76px;
    --margines: 48px;
  }
}

/* -------------------------------------------------------------- 2. Podstawy */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

/* Płynne przewijanie CSS tylko wtedy, gdy nie działa GSAP/Lenis */
html:not(.js-anim) {
  scroll-behavior: smooth;
}

/* Lenis – minimalne style zalecane przez bibliotekę */
html.lenis,
html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: clip;
}

body {
  margin: 0;
  background: var(--kosc-sloniowa);
  color: var(--tekst);
  font-family: var(--font-tekst);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

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

img {
  height: auto;
}

a {
  color: var(--zloto-gleboki);
}

strong {
  font-weight: 500;
}

::selection {
  background: var(--zloto-jasne);
  color: var(--tekst);
}

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

[data-sekcja] {
  scroll-margin-top: calc(var(--pasek-h) + var(--gora) + 16px);
}

#start {
  scroll-margin-top: 0;
}

/* Po kliknięciu w menu fokus przechodzi do sekcji – bez widocznej ramki wokół całej sekcji */
[data-sekcja]:focus {
  outline: none;
}

/* Otwarte menu blokuje przewijanie strony pod spodem */
html.menu-otwarte {
  overflow: hidden;
}

/* Tylko dla czytników ekranu */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skok {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 90;
  padding: 10px 16px;
  background: var(--bialy);
  border: 1px solid var(--zloto);
  border-radius: 999px;
  font-size: .8125rem;
  text-decoration: none;
  transform: translateY(-200%);
}

.skok:focus {
  transform: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Krótkie przenikanie treści przy zmianie języka */
main,
.stopka,
.pasek__linki,
.kropki,
.menu__linki,
.menu__stopka {
  transition: opacity .22s ease;
}

.zmiana-jezyka :is(main, .stopka, .pasek__linki, .kropki, .menu__linki, .menu__stopka) {
  opacity: 0;
}

/* ------------------------------------------------------ 3. Elementy wspólne */

/* Mała etykieta wersalikami (np. GDZIE, KIEDY) */
.etykieta {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .26em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--tekst-miekki);
}

/* Wyróżniony akapit szeryfową kursywą */
.lead {
  font-family: var(--font-szeryf);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4375rem, 1.2rem + 1vw, 1.75rem);
  line-height: 1.4;
}

.podtytul {
  margin-top: 12px;
  font-family: var(--font-szeryf);
  font-style: italic;
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem);
  line-height: 1.3;
}

.hashtag {
  font-family: var(--font-szeryf);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  line-height: 1.3;
  color: var(--zloto-gleboki);
  overflow-wrap: anywhere;
}

/* Nagłówek „w duecie”: małe słowo pismem odręcznym nad dużym wersalikami */
.duet {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-weight: 400;
  color: var(--zloto);
}

.duet__pismo {
  display: block;
  padding: .1em .2em 0;
  font-family: var(--font-pismo);
  font-size: clamp(2.5rem, 2rem + 2.4vw, 3.7rem);
  line-height: 1.05;
}

.duet__wersaliki {
  display: block;
  margin-top: .1em;
  padding-left: .13em; /* wyrównuje odstęp po ostatniej literze */
  font-family: var(--font-szeryf);
  font-weight: 500;
  font-size: clamp(2.05rem, 1.5rem + 2.5vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Maski SplitText – trochę zapasu, żeby nie przycinać akcentów (Ś, Ż, Ć) */
.linia-mask {
  padding-block: .14em;
  margin-block: -.14em;
}

.znak-mask {
  padding-block: .1em;
  margin-block: -.1em;
}

/* Separator: złota linia – ornament plumerii – złota linia */
.separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--zloto);
}

.separator__linia {
  width: clamp(52px, 9vw, 110px);
  height: 1px;
  background: currentColor;
  transform-origin: right center;
}

.separator__linia:last-child {
  transform-origin: left center;
}

.separator__ornament,
.klimat__ornament,
.menu__ornament {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--zloto);
}

.separator--maly .separator__linia {
  width: clamp(48px, 8vw, 90px);
}

/* Ikona liniowa w okrągłej obwódce */
.ikona {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border: 1px solid var(--zloto-jasne);
  border-radius: 50%;
  background: var(--kosc-sloniowa);
  color: var(--zloto);
}

.ikona svg,
.przycisk__ikona {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ikona--mala {
  width: 44px;
  height: 44px;
}

.ikona--mala svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 1024px) {
  .ikona {
    width: 64px;
    height: 64px;
  }

  .ikona svg {
    width: 28px;
    height: 28px;
  }

  .ikona--mala {
    width: 48px;
    height: 48px;
  }

  .ikona--mala svg {
    width: 24px;
    height: 24px;
  }
}

/* Przyciski – pigułki */
.przycisk {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 28px;
  border: 1px solid var(--zloto-gleboki);
  border-radius: 999px;
  background: var(--zloto-gleboki);
  color: var(--bialy);
  font-family: var(--font-tekst);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .45s ease, border-color .45s ease, color .45s ease;
}

/* Złoty błysk przesuwający się po przycisku przy najechaniu */
.przycisk::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent calc(var(--blysk) - 22%), rgba(255, 255, 255, .34) var(--blysk), transparent calc(var(--blysk) + 22%));
  transition: --blysk 1s var(--miekko);
}

.przycisk:hover {
  background: #A47E46;
}

.przycisk:hover::after {
  --blysk: 160%;
}

.przycisk--obrys {
  border-color: var(--zloto);
  background: transparent;
  color: var(--zloto-gleboki);
}

.przycisk--obrys::after {
  background: linear-gradient(110deg, transparent calc(var(--blysk) - 22%), rgba(212, 175, 106, .32) var(--blysk), transparent calc(var(--blysk) + 22%));
}

.przycisk--obrys:hover {
  background: rgba(212, 175, 106, .1);
}

.przycisk__ikona {
  width: 18px;
  height: 18px;
}

/* Link tekstowy wyglądający jak link (także na elemencie <button>) */
.link {
  padding: 10px 4px;
  border: 0;
  background: none;
  font-family: var(--font-tekst);
  font-size: .8125rem;
  letter-spacing: .06em;
  line-height: 1.4;
  color: var(--zloto-gleboki);
  text-decoration: underline;
  text-decoration-color: var(--zloto-jasne);
  text-underline-offset: 5px;
  cursor: pointer;
  transition: color .3s ease;
}

.link:hover {
  color: var(--zloto);
}

/* Łuk – rama na zdjęcie zakończona półkolem, z cienką linią dookoła */
.luk {
  padding: 8px 8px 0;
  border: 1px solid var(--piasek);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.luk__okno {
  position: relative;
  aspect-ratio: 226 / 292;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  isolation: isolate;
}

.luk__okno picture,
.luk__okno img {
  width: 100%;
  height: 100%;
}

.luk__okno img {
  object-fit: cover;
}

/* Ilustracje liniowe wklejone w index.html (gałązki, katamaran):
   linie biorą kolor z „color” elementu (złoto), wypełnienia – z tokenów poniżej */
.il-platek,
.il-zagiel {
  fill: var(--platek);
}

.il-lisc {
  fill: var(--szalwia);
}

.il-kadlub {
  fill: var(--bez);
}

/* Cienie liści palmy: każdy liść to osobny element (kształt z maski SVG, kolor z --tekst),
   który kołysze się wokół swojej nasady w innym rytmie, jakby bujał nim wiatr. */
.liscie {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.liscie--odbite {
  scale: -1 1;
}

.lisc-palmy {
  --kat: 0deg;
  position: absolute;
  width: clamp(330px, 46vw, 680px);
  aspect-ratio: 640 / 380;
  background: var(--tekst);
  opacity: .1;
  -webkit-mask: url(../assets/svg/lisc-palmy-a.svg) center / 100% 100% no-repeat;
  mask: url(../assets/svg/lisc-palmy-a.svg) center / 100% 100% no-repeat;
  transform-origin: 0 50%;   /* nasada liścia */
  rotate: var(--kat);
  animation: wiatr 6s ease-in-out infinite alternate;
  will-change: transform;
}

/* nasada w lewym górnym rogu, liść opada w prawo */
.lisc-palmy--1 {
  --kat: 26deg;
  left: -6%;
  top: -34%;
  animation-duration: 5.4s;
}

/* z lewej krawędzi, lekko w górę */
.lisc-palmy--2 {
  --kat: -24deg;
  left: -12%;
  top: 38%;
  width: clamp(280px, 36vw, 520px);
  -webkit-mask-image: url(../assets/svg/lisc-palmy-b.svg);
  mask-image: url(../assets/svg/lisc-palmy-b.svg);
  animation-duration: 7.2s;
  animation-delay: -2.5s;
}

/* z prawego górnego rogu w lewo w dół */
.lisc-palmy--3 {
  --kat: 152deg;
  left: 104%;
  top: -40%;
  -webkit-mask-image: url(../assets/svg/lisc-palmy-b.svg);
  mask-image: url(../assets/svg/lisc-palmy-b.svg);
  animation-duration: 6.4s;
  animation-delay: -1.2s;
}

/* z prawego dolnego rogu w lewo w górę */
.lisc-palmy--4 {
  --kat: 206deg;
  left: 106%;
  top: 62%;
  animation-duration: 4.8s;
  animation-delay: -3.4s;
}

@keyframes wiatr {
  0% {
    transform: rotate(-2.6deg);
  }

  55% {
    transform: rotate(1.2deg) skewY(.5deg);
  }

  100% {
    transform: rotate(3.2deg);
  }
}

/* ----------------------------------------------------------------- 4. Intro */
.intro {
  display: none;
}

html.intro-trwa .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: var(--kosc-sloniowa);
  /* Zabezpieczenie: gdyby skrypty nie ruszyły, ekran sam zniknie po kilku sekundach */
  animation: intro-awaryjne .6s 5s forwards;
}

.intro__monogram {
  width: min(48vw, 220px);
  opacity: 0;
  color: var(--zloto);
}

.intro__monogram svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.intro__linia {
  width: 120px;
  height: 1px;
  background: var(--piasek);
  overflow: hidden;
}

.intro__postep {
  display: block;
  height: 100%;
  background: var(--zloto);
  transform: scaleX(0);
  transform-origin: left center;
  animation: intro-ladowanie 2.4s var(--miekko) forwards;
}

html.intro-krotkie .intro__monogram,
html.intro-krotkie .intro__linia {
  display: none;
}

@keyframes intro-ladowanie {
  to {
    transform: scaleX(.6);
  }
}

@keyframes intro-awaryjne {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ------------------------------------------------------------- 5. Nawigacja */

/* 5a. Górny pasek */
.pasek {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: calc(var(--pasek-h) + var(--gora));
  padding: var(--gora) var(--margines) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform .7s var(--miekko);
}

/* Szklane tło pojawia się po przewinięciu poza początek strony */
.pasek::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 248, 243, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(184, 146, 90, .35);
  opacity: 0;
  transition: opacity .45s ease;
}

.pasek--szklo::before {
  opacity: 1;
}

.pasek--ukryty {
  transform: translateY(-102%);
}

.menu-otwarte .pasek {
  transform: none;
}

.menu-otwarte .pasek::before {
  opacity: 0;
}

.pasek__monogram {
  display: block;
  width: 60px;
  color: var(--zloto);
}

.pasek__monogram svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pasek__linki {
  display: none;
}

.pasek__prawa {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pasek__postep {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  pointer-events: none;
  transition: opacity .4s ease;
}

.menu-otwarte .pasek__postep {
  opacity: 0;
}

#postep {
  display: block;
  height: 100%;
  background: var(--zloto);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Przełącznik języka – pigułka ze złotym suwakiem */
.jezyk {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--piasek);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
}

.jezyk__suwak {
  position: absolute;
  inset: 3px auto 3px 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--zloto-gleboki);
  transition: transform .55s var(--miekko);
}

.jezyk[data-aktywny="en"] .jezyk__suwak {
  transform: translateX(100%);
}

.jezyk__opcja {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: var(--font-tekst);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tekst-miekki);
  cursor: pointer;
  transition: color .4s ease;
}

.jezyk__opcja[aria-pressed="true"] {
  color: var(--bialy);
}

.jezyk--duzy .jezyk__opcja {
  min-width: 84px;
  height: 36px;
  letter-spacing: .14em;
}

/* Przycisk menu: dwie cienkie linie, które zamieniają się w × */
.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tekst);
  cursor: pointer;
}

.hamburger__napis {
  display: none;
  font-family: var(--font-tekst);
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hamburger__linie {
  position: relative;
  width: 26px;
  height: 14px;
}

.hamburger__linie span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--zloto);
  transition: transform .6s var(--miekko), top .6s var(--miekko);
}

.hamburger__linie span:nth-child(1) {
  top: 2px;
}

.hamburger__linie span:nth-child(2) {
  top: 10px;
}

.hamburger[aria-expanded="true"] .hamburger__linie span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger__linie span:nth-child(2) {
  top: 6px;
  transform: rotate(-45deg);
}

@media (min-width: 1024px) {
  .pasek__monogram {
    width: 72px;
  }

  .pasek__monogram svg {
    stroke-width: 3.6;
  }

  .pasek__linki {
    position: relative;
    display: flex;
    gap: clamp(20px, 2.8vw, 42px);
  }

  .pasek__link {
    padding: 10px 0;
    font-size: .75rem;
    letter-spacing: .22em;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--tekst);
    transition: color .35s ease;
  }

  .pasek__link:hover,
  .pasek__link[aria-current="true"] {
    color: var(--zloto-gleboki);
  }

  /* Jedna złota kreska, która płynnie przesuwa się pod aktywny link */
  .pasek__kreska {
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 1px;
    height: 1px;
    background: var(--zloto);
    transform-origin: left center;
    transition: transform .7s var(--miekko);
  }

  .pasek__prawa {
    gap: 18px;
  }

  .hamburger__napis {
    display: inline;
  }
}

/* 5b. Kropki boczne (desktop) */
.kropki {
  display: none;
}

@media (min-width: 1024px) {
  .kropki {
    position: fixed;
    right: 18px;
    top: 50%;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-50%);
  }

  .kropka {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    text-decoration: none;
  }

  .kropka::after {
    content: '';
    width: 7px;
    height: 7px;
    border: 1px solid var(--zloto);
    border-radius: 50%;
    transition: transform .5s var(--miekko), background-color .35s ease;
  }

  .kropka[aria-current="true"]::after {
    background: var(--zloto);
    transform: scale(1.6);
  }

  .kropka__nazwa {
    position: absolute;
    right: 100%;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(251, 248, 243, .92);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--zloto-gleboki);
    opacity: 0;
    transform: translateX(10px);
    transition: opacity .3s ease, transform .5s var(--miekko);
    pointer-events: none;
  }

  .kropka:hover .kropka__nazwa,
  .kropka:focus-visible .kropka__nazwa {
    opacity: 1;
    transform: none;
  }
}

/* 5c. Menu wysuwane – kremowa warstwa odsłaniana kołem z miejsca przycisku */
.menu {
  --menu-x: calc(100% - 44px);
  --menu-y: 32px;
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: calc(var(--pasek-h) + var(--gora) + clamp(20px, 5vh, 56px)) var(--margines) calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--kosc-sloniowa);
  overflow: hidden auto;
  overscroll-behavior: contain;
  visibility: hidden;
  clip-path: circle(0 at var(--menu-x) var(--menu-y));
  transition: clip-path .85s var(--kurtyna), visibility 0s .85s;
}

.menu--otwarte {
  visibility: visible;
  clip-path: circle(150vmax at var(--menu-x) var(--menu-y));
  transition: clip-path 1.05s var(--kurtyna), visibility 0s;
}

.menu > * {
  width: 100%;
  max-width: var(--szer);
  margin-inline: auto;
}

.menu__galazka {
  position: absolute;
  right: -44px;
  bottom: -26px;
  width: min(72vw, 360px);
  max-width: none;
  margin: 0;
  scale: 1 -1;
  opacity: .5;
  color: var(--zloto);
  pointer-events: none;
}

.menu__galazka svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.menu__linki {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2.2vh, 20px);
  margin-block: auto;
}

.menu__link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: fit-content;
  color: var(--tekst);
  text-decoration: none;
}

.menu__nr {
  flex: 0 0 24px;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--zloto-gleboki);
}

.menu__maska {
  display: block;
  overflow: hidden;
  padding-block: .06em;
}

.menu__nazwa {
  display: block;
  font-family: var(--font-szeryf);
  font-weight: 500;
  font-size: clamp(2.2rem, 1.4rem + 4.6vw, 4.4rem);
  line-height: 1.14;
  transition: color .35s ease;
}

.menu__link:hover .menu__nazwa,
.menu__link[aria-current="true"] .menu__nazwa {
  color: var(--zloto);
}

.menu__ornament {
  align-self: center;
  opacity: 0;
  transform: scale(.4) rotate(-50deg);
  transition: opacity .4s ease, transform .7s var(--miekko);
}

.menu__link[aria-current="true"] .menu__ornament {
  opacity: 1;
  transform: none;
}

.menu__stopka {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 28px;
}

.menu__kreska {
  width: 56px;
  height: 1px;
  margin-bottom: 10px;
  background: var(--zloto);
}

.menu__stopka .jezyk {
  margin-top: 12px;
}

/* ------------------------------------------------------------------ 6. Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--pasek-h) + var(--gora) + 14px) var(--margines) 56px;
  overflow: clip;
}

/* Płatki opadają w tle – pod treścią hero */
.hero__platki {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.platek {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: auto;
  fill: var(--bialy);
  fill-opacity: .85;
  stroke: var(--zloto-jasne);
  stroke-width: 1.4;
  opacity: 0;
  will-change: transform;
}

/* Telefon: jedna kolumna jak papierowe zaproszenie */
.hero__uklad {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "gora"
    "luk"
    "data"
    "akcja";
  justify-items: center;
  max-width: var(--szer);
  margin-inline: auto;
  text-align: center;
}

.hero__gora {
  grid-area: gora;
}

.hero__nadtytul {
  letter-spacing: .34em;
  padding-left: .34em;
}

.hero__imiona {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  font-family: var(--font-szeryf);
  font-weight: 500;
  line-height: 1;
  color: var(--zloto);
}

.hero__imie {
  display: block;
  padding-left: .15em;
  font-size: clamp(2.5rem, 11.6vw, 3rem);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero__amp {
  display: block;
  padding: .04em 0 .02em;
  font-family: var(--font-szeryf);   /* klasyczny znak & (szeryfowy), w tym samym kroju co imiona */
  font-size: clamp(2.3rem, 10.4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--zloto-jasne);
}

.hero__luk {
  grid-area: luk;
  position: relative;
  z-index: 1;
  width: clamp(210px, 62vw, 250px);
  margin-top: 26px;
}

/* Gałązki plumerii: na telefonie „obejmują” łuk (lewa u góry, prawa u dołu) */
.hero__galazka {
  grid-area: luk;
  z-index: 2;
  width: clamp(140px, 41vw, 172px);
  color: var(--zloto);
  pointer-events: none;
}

.hero__galazka svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero__galazka--lewa {
  justify-self: start;
  align-self: start;
  margin: -8px 0 0 calc(-1 * var(--margines) - 34px);
}

.hero__galazka--prawa {
  justify-self: end;
  align-self: end;
  margin: 0 calc(-1 * var(--margines) - 30px) -24px 0;
  scale: 1 -1; /* odbicie w pionie – gałązka „wyrasta” z dolnego rogu */
}

.hero__data {
  grid-area: data;
  width: 100%;
  margin-top: 30px;
}

/* Data w podziale: ŚRODA | 3 | MARCA 2027 */
.data {
  display: grid;
  /* boki nigdy nie są węższe niż napis (np. angielskie WEDNESDAY), cyfra zostaje na środku */
  grid-template-columns: minmax(max-content, 1fr) auto auto auto minmax(max-content, 1fr);
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 20px);
  max-width: 400px;
  margin-inline: auto;
  font-family: var(--font-szeryf);
  font-weight: 500;
}

.data__bok {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.data__bok--l {
  text-align: right;
}

.data__bok--p {
  text-align: left;
}

.data__linia {
  width: 1px;
  height: 46px;
  background: var(--zloto);
}

.data__cyfra {
  font-size: 3.75rem;
  line-height: 1;
  color: var(--zloto);
}

.hero__miejsce {
  margin-top: 16px;
  font-family: var(--font-szeryf);
  font-weight: 500;
  font-size: 1.4375rem;
  line-height: 1.3;
}

.hero__pora {
  margin-top: 4px;
  font-size: .8125rem;
  letter-spacing: .06em;
  color: var(--tekst-miekki);
}

.hero__akcja {
  grid-area: akcja;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 22px;
}

.hero__zdanie {
  max-width: 21em;
  font-family: var(--font-szeryf);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
}

.hero__przyciski {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 290px);
  margin-top: 30px;
}

.odliczanie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  min-height: 46px;
  margin-top: 32px;
  font-size: .6875rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--tekst-miekki);
}

.odliczanie__liczba {
  font-family: var(--font-szeryf);
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: 0;
  color: var(--zloto);
  font-variant-numeric: lining-nums;
}

/* Po dacie ślubu zamiast odliczania pokazuje się podziękowanie */
.odliczanie--po {
  font-family: var(--font-szeryf);
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tekst);
}

@media (min-width: 600px) {
  .hero__luk {
    width: 300px;
  }

  .hero__galazka {
    width: clamp(172px, 30vw, 240px);
  }
}

/* Desktop: data – łuk – zaproszenie w trzech kolumnach, gałązki w rogach sekcji */
@media (min-width: 1024px) {
  .hero {
    padding-bottom: 76px;
  }

  .hero__uklad {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      "gora gora gora"
      "data luk akcja";
    align-items: center;
    column-gap: clamp(32px, 5vw, 72px);
  }

  .hero__nadtytul {
    margin-top: 12px;
    font-size: .75rem;
    letter-spacing: .4em;
  }

  .hero__imiona {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 28px;
    margin-top: 20px;
  }

  .hero__gora {
    position: relative;
    z-index: 3; /* imiona zawsze nad gałązką */
  }

  .hero__imie {
    font-size: clamp(3.1rem, 4.9vw, 4.5rem);
    line-height: 1.1;
  }

  .hero__amp {
    padding: 0;
    font-size: clamp(3rem, 4.7vw, 4.3rem);
    line-height: 1.1;
  }

  .hero__luk {
    width: clamp(280px, 25vw, 360px);
    margin-top: 44px;
    padding: 10px 10px 0;
  }

  .hero__luk .luk__okno {
    aspect-ratio: 340 / 450;
  }

  .hero__data,
  .hero__akcja {
    width: 100%;
    max-width: 340px;
    margin-top: 44px;
    justify-self: center;
  }

  .data {
    gap: clamp(12px, 1.5vw, 22px);
  }

  .data__bok {
    font-size: clamp(.75rem, 1.05vw, .9375rem);
    letter-spacing: .22em;
  }

  .data__linia {
    height: 60px;
  }

  .data__cyfra {
    font-size: clamp(4.2rem, 6vw, 5.4rem);
  }

  .hero__miejsce {
    margin-top: 26px;
    font-size: 1.75rem;
  }

  .hero__pora {
    margin-top: 6px;
    font-size: .875rem;
  }

  .hero__zdanie {
    font-size: 1.4375rem;
  }

  .hero__galazka {
    position: absolute;
    width: clamp(190px, 19vw, 290px);
    margin: 0;
  }

  .hero__galazka--lewa {
    left: -14px;
    top: calc(var(--pasek-h) + 4px);
  }

  .hero__galazka--prawa {
    right: -36px;
    bottom: -30px;
  }
}

/* ------------------------------------------------------------- 7. Szczegóły */
.szczegoly {
  padding: clamp(68px, 11vw, 104px) var(--margines);
  background: var(--bialy);
  text-align: center;
}

.fakty {
  display: grid;
  gap: 26px;
  max-width: 1040px;
  margin: 44px auto 0;
  padding: 0;
  list-style: none;
}

.fakt {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Na telefonie fakty rozdziela krótka pozioma linia, na większych ekranach – pionowa */
.fakt + .fakt::before {
  content: '';
  width: 44px;
  height: 1px;
  margin-bottom: 26px;
  background: var(--piasek);
}

.fakt .etykieta {
  margin-top: 14px;
}

.fakt__tresc {
  margin-top: 4px;
  font-family: var(--font-szeryf);
  font-weight: 500;
  font-size: clamp(1.375rem, 1.2rem + .5vw, 1.5625rem);
  line-height: 1.3;
  text-wrap: balance;
}

.szczegoly__tekst {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 680px;
  margin: clamp(52px, 7vw, 68px) auto 0;
}

.szczegoly__tekst .przycisk {
  margin-top: 14px;
}

@media (min-width: 768px) {
  .fakty {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    max-width: 720px;
    margin-top: 56px;
  }

  .fakt {
    padding: 6px 24px;
  }

  .fakt + .fakt {
    border-left: 1px solid var(--piasek);
  }

  .fakt + .fakt::before {
    display: none;
  }

  .fakt .etykieta {
    margin-top: 18px;
    font-size: .75rem;
  }
}

/* -------------------------------------------------------- 8. Tydzień ślubny */
.tydzien {
  position: relative;
  padding-top: clamp(76px, 11vw, 128px);
  overflow: clip;
}

.tydzien__uklad {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "naglowek"
    "foto"
    "tresc";
  justify-items: center;
  gap: 36px;
  max-width: 1216px;
  margin-inline: auto;
  padding-inline: var(--margines);
  text-align: center;
}

.tydzien__naglowek {
  grid-area: naglowek;
}

.tydzien__foto {
  grid-area: foto;
  width: clamp(220px, 70vw, 290px);
}

.tydzien__foto .luk__okno {
  aspect-ratio: 250 / 322;
}

.tydzien__foto figcaption {
  margin-top: 12px;
  font-family: var(--font-szeryf);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--tekst-miekki);
  text-wrap: balance;
}

.tydzien__tresc {
  grid-area: tresc;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
}

/* Cztery ikonki-zajawki */
.zajawki {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.zajawka {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.zajawka .etykieta {
  font-size: .625rem;
  letter-spacing: .16em;
  line-height: 1.4;
}

/* Pejzaż wysp przy dolnej krawędzi sekcji – trzy warstwy w lekkim parallax */
.pejzaz {
  position: relative;
  height: clamp(200px, 30vw, 380px);
  margin-top: clamp(-70px, 28px - 6.8vw, -4px);
  pointer-events: none;
}

.pejzaz__warstwa {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 62% 100%;
}

@media (min-width: 1024px) {
  .tydzien__uklad {
    grid-template-columns: minmax(0, 420px) minmax(0, 560px);
    grid-template-areas:
      "foto naglowek"
      "foto tresc";
    justify-content: center;
    justify-items: start;
    align-content: center;
    gap: 34px clamp(56px, 7vw, 96px);
    text-align: left;
  }

  .tydzien__naglowek .duet {
    align-items: flex-start;
    text-align: left;
  }

  .tydzien__naglowek .duet__pismo {
    padding-left: 0;
  }

  .tydzien__naglowek .duet__wersaliki {
    padding-left: 0;
  }

  .tydzien__foto {
    width: 100%;
    align-self: center;
    text-align: center;
  }

  .tydzien__foto .luk {
    padding: 10px 10px 0;
  }

  .tydzien__foto .luk__okno {
    aspect-ratio: 400 / 530;
  }

  .tydzien__foto figcaption {
    margin-top: 16px;
    font-size: 1.125rem;
  }

  .zajawki {
    display: flex;
    gap: 30px;
    margin-top: 26px;
  }

  .zajawka {
    width: 96px;
  }

  .zajawka .etykieta {
    font-size: .6875rem;
    letter-spacing: .18em;
  }

  .pejzaz__warstwa {
    object-position: 50% 100%;
  }
}

/* ---------------------------------------------------------- 9. Pas „klimat” */
.klimat {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(60px, 9vw, 104px) clamp(22px, 6vw, 48px);
  background: var(--bez);
  overflow: hidden;
}

.klimat__ramka {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 3vw, 28px);
  width: 100%;
  max-width: 920px;
  padding: clamp(44px, 7vw, 68px) clamp(22px, 6vw, 72px);
  border: 1px solid var(--zloto);
  font-family: var(--font-szeryf);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.375rem, 1.1rem + 1.3vw, 1.9rem);
  line-height: 1.5;
  text-align: center;
}

/* ------------------------------------------------------------ 10. Informacje */
.info {
  padding: clamp(80px, 11vw, 128px) var(--margines);
}

.info__uklad {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "naglowek"
    "foto"
    "zakladki";
  gap: 40px;
  max-width: var(--szer);
  margin-inline: auto;
}

.info__naglowek {
  grid-area: naglowek;
}

/* Kolaż polaroidów: telefon – poziomy rząd nad zakładkami */
.polaroidy {
  grid-area: foto;
  display: flex;
  justify-content: center;
  padding-block: 4px 12px;
}

.polaroid {
  width: clamp(104px, 31vw, 176px);
  padding: 7px 7px 6px;
  background: var(--bialy);
  box-shadow: 0 10px 24px rgba(58, 50, 42, .16);
  rotate: var(--obrot, 0deg);
  animation: unoszenie var(--czas, 7s) ease-in-out infinite alternate;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* krótki podpis w białym polu pod zdjęciem */
.polaroid figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5em;
  padding: 5px 7px 0;
  font-family: var(--font-szeryf);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(.72rem, .55rem + .8vw, 1.0625rem);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  color: var(--tekst-miekki);
}

.polaroid--1 {
  --obrot: -4deg;
  --czas: 7s;
  margin-top: 6px;
}

.polaroid--2 {
  --obrot: 3deg;
  --czas: 8.5s;
  position: relative;
  z-index: 1;
  margin-inline: -8px;
}

.polaroid--3 {
  --obrot: -2deg;
  --czas: 6.2s;
  margin-top: 10px;
}

/* Bardzo powolne unoszenie się zdjęć (osobna właściwość „translate”, nie koliduje z animacją wejścia) */
@keyframes unoszenie {
  from {
    translate: 0 0;
  }

  to {
    translate: 0 -7px;
  }
}

/* Rozwijane zakładki */
.zakladki {
  grid-area: zakladki;
  border-top: 1px solid var(--piasek);
}

.zakladka {
  border-bottom: 1px solid var(--piasek);
}

.zakladka__przycisk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 68px;
  padding: 14px 0;
  border: 0;
  background: none;
  color: var(--tekst);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.zakladka__blok {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.zakladka__tytul {
  font-family: var(--font-szeryf);
  font-weight: 500;
  font-size: clamp(1.4375rem, 1.25rem + .7vw, 1.75rem);
  line-height: 1.25;
  transition: color .35s ease;
}

.zakladka__przycisk:hover .zakladka__tytul {
  color: var(--zloto-gleboki);
}

/* Złota pigułka „wkrótce” z powolnym połyskiem co kilka sekund */
.pigulka {
  padding: 3px 11px;
  border: 1px solid var(--zloto-jasne);
  border-radius: 999px;
  background-color: rgba(212, 175, 106, .14);
  background-image: linear-gradient(110deg, transparent calc(var(--blysk) - 26%), rgba(255, 255, 255, .9) var(--blysk), transparent calc(var(--blysk) + 26%));
  font-family: var(--font-tekst);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--zloto-gleboki);
  animation: lsnienie 6s ease-in-out infinite;
}

@keyframes lsnienie {
  0%,
  60% {
    --blysk: -60%;
  }

  100% {
    --blysk: 160%;
  }
}

/* Złoty „+”, który obraca się w „×” */
.zakladka__plus {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  transition: transform .7s var(--miekko);
}

.zakladka__plus::before,
.zakladka__plus::after {
  content: '';
  position: absolute;
  background: var(--zloto);
}

.zakladka__plus::before {
  inset: calc(50% - .75px) 0 auto;
  height: 1.5px;
}

.zakladka__plus::after {
  inset: 0 auto 0 calc(50% - .75px);
  width: 1.5px;
}

.zakladka--otwarta .zakladka__plus {
  transform: rotate(135deg);
}

/* Płynne rozwijanie wysokości (interpolate-size), a w starszych przeglądarkach – siatka 0fr → 1fr */
.zakladka__panel {
  height: 0;
  overflow: hidden;
  transition: height .7s var(--miekko);
}

.zakladka--otwarta .zakladka__panel {
  height: auto;
}

@supports not (interpolate-size: allow-keywords) {
  .zakladka__panel {
    display: grid;
    grid-template-rows: 0fr;
    height: auto;
    transition: grid-template-rows .7s var(--miekko);
  }

  .zakladka--otwarta .zakladka__panel {
    grid-template-rows: 1fr;
  }

  .zakladka__wnetrze {
    min-height: 0;
  }
}

/* Treść pojawia się z lekkim opóźnieniem */
.zakladka__wnetrze {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 2px 0 30px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .6s var(--miekko);
}

.zakladka--otwarta .zakladka__wnetrze {
  opacity: 1;
  transform: none;
  transition-delay: .18s;
}

.zakladka__tresc {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zakladka__wnetrze .lead {
  font-size: clamp(1.3125rem, 1.2rem + .5vw, 1.5rem);
}

.zakladka__wnetrze ul {
  margin: 0;
  padding-left: 1.2em;
}

/* Stan „wkrótce” po rozwinięciu: mała iskierka i tekst, wyrównane do lewej */
.wkrotce-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 6px;
  font-family: var(--font-szeryf);
  font-style: italic;
  font-size: clamp(1.25rem, 1.15rem + .4vw, 1.4375rem);
  line-height: 1.4;
  color: var(--tekst-miekki);
}

.wkrotce-info .znaczek {
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  margin: 0;
}

/* Ilustracja do zakładki „Dress code” */
.dress {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.dress__ikony {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dress__katamaran {
  flex: 0 0 auto;
  width: clamp(104px, 30vw, 190px);
  color: var(--zloto);
}

.dress__katamaran svg {
  width: 100%;
  height: auto;
}

@media (min-width: 1024px) {
  .info__uklad {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-areas:
      "naglowek foto"
      "zakladki foto";
    align-items: start;
    gap: 48px clamp(48px, 6vw, 88px);
  }

  .info__naglowek {
    align-items: flex-start;
    text-align: left;
  }

  .info__naglowek .duet__pismo,
  .info__naglowek .duet__wersaliki {
    padding-left: 0;
  }

  /* Desktop: kolaż po prawej, „przyklejony” podczas przewijania zakładek */
  .polaroidy {
    position: sticky;
    top: calc(var(--pasek-h) + 36px);
    display: block;
    justify-self: end;
    width: 100%;
    max-width: 440px;
    height: 720px;
    margin-top: 36px;
    padding: 0;
  }

  .polaroid {
    position: absolute;
    width: 60%;
    margin: 0;
    padding: 12px 12px 10px;
    box-shadow: 0 16px 38px rgba(58, 50, 42, .16);
  }

  .polaroid--1 {
    left: 0;
    top: 0;
    z-index: 2;
  }

  .polaroid--2 {
    left: 40%;
    top: 205px;
  }

  .polaroid--3 {
    left: 4%;
    top: 410px;
  }

  .zakladka__przycisk {
    min-height: 78px;
    padding: 16px 0;
  }

  .zakladka__wnetrze {
    padding-bottom: 36px;
  }
}

/* ----------------------------------------------------- 11. Potwierdź obecność */
.rsvp {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(64px, 9vw, 112px) clamp(20px, 6vw, 48px);
  background: var(--bez);
  overflow: hidden;
}

/* Papierowa karta z cienką złotą ramką */
.karta {
  position: relative;
  width: 100%;
  max-width: 780px;
  padding: clamp(8px, 1vw, 10px);
  background: var(--bialy);
  box-shadow: 0 22px 54px rgba(58, 50, 42, .12);
}

.karta__ramka {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: clamp(44px, 6vw, 64px) clamp(22px, 5vw, 48px) clamp(40px, 6vw, 60px);
  border: 1px solid var(--zloto);
  text-align: center;
}

.karta .separator {
  margin-top: 24px;
}

.rsvp__tekst {
  max-width: 520px;
  margin-top: 26px;
  font-family: var(--font-szeryf);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 1.95rem);
  line-height: 1.4;
  text-wrap: balance;
}

/* ---------------------------------------------------- 12. Zakończenie, stopka */
.koniec {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "tekst"
    "foto";
  padding-top: clamp(72px, 10vw, 96px);
  overflow: clip;
}

.koniec__tekst {
  grid-area: tekst;
  position: relative;
  z-index: 2;
  padding-inline: var(--margines);
}

.koniec .duet__pismo {
  font-size: clamp(2.2rem, 1.8rem + 2.2vw, 3.4rem);
}

.koniec .duet__wersaliki {
  font-size: clamp(1.9rem, 1.4rem + 2.3vw, 3.4rem);
  line-height: 1.2;
}

.koniec__separator {
  margin-top: 22px;
}

.koniec__foto {
  grid-area: foto;
  position: relative;
  height: clamp(520px, 150vw, 700px);
  margin-top: 8px;
  overflow: hidden;
}

.koniec__foto picture,
.koniec__foto img {
  width: 100%;
  height: 100%;
}

.koniec__foto img {
  object-fit: cover;
  object-position: 50% 0%;
}

/* Ciepły gradient: u góry zdjęcie wyłania się z kremowego tła, u dołu ciemnieje pod podpis */
.koniec__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--kosc-sloniowa) 0%, rgba(251, 248, 243, .72) 12%, rgba(251, 248, 243, 0) 34%, rgba(58, 50, 42, 0) 62%, rgba(58, 50, 42, .62) 100%);
}

.koniec__podpis {
  grid-area: foto;
  align-self: end;
  justify-self: center;
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
  padding: .1em .2em;
  font-family: var(--font-pismo);
  font-size: clamp(2.5rem, 11vw, 3.5rem);
  line-height: 1.1;
  white-space: nowrap;
  color: var(--bialy);
}

/* w podpisie znak & też jest klasyczny (szeryfowy), a nie odręczny */
.koniec__amp {
  font-family: var(--font-szeryf);
  font-size: .62em;
  font-weight: 500;
  padding-inline: .12em;
}

@media (min-width: 1024px) {
  .koniec {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "tekst foto"
      "podpis foto";
    grid-template-rows: 1fr 1fr;
    height: clamp(640px, 88vh, 820px);
    padding-top: 0;
  }

  .koniec__tekst {
    align-self: end;
    padding: 0 48px;
  }

  .koniec__separator {
    margin-top: 36px;
  }

  .koniec__foto {
    height: 100%;
    margin-top: 0;
  }

  .koniec__foto picture {
    position: absolute;
    inset: 0;
  }

  .koniec__foto img {
    object-position: 50% 22%;
  }

  .koniec__gradient {
    background:
      linear-gradient(90deg, var(--kosc-sloniowa) 0%, rgba(251, 248, 243, .55) 14%, rgba(251, 248, 243, 0) 36%),
      linear-gradient(180deg, rgba(184, 146, 90, .1) 0%, rgba(58, 50, 42, .22) 100%);
  }

  .koniec__podpis {
    grid-area: podpis;
    align-self: start;
    margin: 26px 0 0;
    font-size: clamp(3rem, 4.2vw, 3.9rem);
    color: var(--tekst);
  }
}

.stopka {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: clamp(52px, 7vw, 76px) var(--margines) calc(48px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.stopka__milosc {
  margin-top: 6px;
  font-size: .8125rem;
  color: var(--tekst-miekki);
}

/* --------------------------------------------- 13. Ograniczony ruch / bez JS */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .2s !important;
    transition-delay: 0s !important;
  }
}

/* Gdy JavaScript jest wyłączony: chowamy elementy, które bez niego nie działają */
html:not(.js) :is(.hamburger, .jezyk, .odliczanie, .kropki) {
  display: none;
}

.noscript {
  position: relative;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: calc(var(--pasek-h) + 8px) var(--margines) 0;
  padding: 18px 20px;
  border: 1px solid var(--zloto);
  background: var(--bialy);
  font-size: .9375rem;
  text-align: center;
}

/* ==========================================================================
   14. Ornamenty ślubne i malunki (wersja 2)
   ========================================================================== */

/* Mały rysunek w tekście zamiast emoji: {serce} {palma} {slonce} {iskra} */
.znaczek {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-left: .12em;
  vertical-align: -.16em;
  fill: none;
  stroke: var(--zloto);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--zloto);
}

/* Złote romby po bokach napisu „Zaproszenie na ślub” */
.hero__nadtytul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-left: 0;
}

.romb {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  background: var(--zloto);
  rotate: 45deg;
}

/* Ozdoby z plumerii w kolejnych sekcjach (rysunki SVG wstawione jako obrazki) */
.ozdoba--girlanda {
  width: clamp(210px, 34vw, 310px);
  height: auto;
  margin-top: clamp(14px, 3vw, 26px);
}

/* Plumeria w rogu ramki lub karty */
.rog-kwiat {
  position: absolute;
  z-index: 2;
  width: clamp(112px, 22vw, 180px);
  height: auto;
  pointer-events: none;
}

.rog-kwiat--lg {
  left: clamp(-36px, -3.2vw, -22px);
  top: clamp(-38px, -3.4vw, -24px);
}

.rog-kwiat--pd {
  right: clamp(-36px, -3.2vw, -22px);
  bottom: clamp(-38px, -3.4vw, -24px);
  scale: -1 -1;
}

.rog-kwiat--maly {
  width: clamp(74px, 13vw, 136px);
}

/* Emblemat z obrączkami */
.emblemat {
  fill: none;
  stroke: var(--zloto);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.separator--emblemat .separator__ornament {
  width: 60px;
  height: 40px;
  stroke-width: 1.2;
}

.separator__ornament--serce {
  stroke-width: 1.3;
}

.separator__ornament--serca {
  width: 42px;
  height: 28px;
  stroke-width: 1.2;
}

.klimat__ornament {
  stroke-width: 1.3;
  color: var(--zloto);
}

/* Narożniki ramek */
.naroznik {
  position: absolute;
  width: clamp(34px, 6vw, 54px);
  height: clamp(34px, 6vw, 54px);
  fill: none;
  stroke: var(--zloto);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.naroznik--lg {
  left: 9px;
  top: 9px;
}

.naroznik--pg {
  right: 9px;
  top: 9px;
  scale: -1 1;
}

.naroznik--ld {
  left: 9px;
  bottom: 9px;
  scale: 1 -1;
}

.naroznik--pd {
  right: 9px;
  bottom: 9px;
  scale: -1 -1;
}

/* Monogram w wieńcu z kwiatów plumerii (jak tajska girlanda) */
.wieniec {
  position: relative;
  width: clamp(116px, 19vw, 146px);
  aspect-ratio: 1;
  color: var(--zloto);
}

.wieniec__kwiaty {
  width: 100%;
  height: 100%;
}

.wieniec__monogram {
  position: absolute;
  left: 32%;
  top: 50%;
  width: 36%;
  height: auto;
  margin-top: -9.2%;
  fill: none;
  stroke: currentColor;
  stroke-width: 5.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.karta .duet {
  margin-top: 10px;
}

/* Sekcja „Informacje”: plumeria w lewym dolnym rogu */
.info {
  position: relative;
  overflow: clip;
}

.info__ozdoba {
  position: absolute;
  left: -30px;
  bottom: -46px;
  width: clamp(104px, 13vw, 172px);
  height: auto;
  scale: 1 -1;
  pointer-events: none;
}

.info__uklad {
  position: relative;
}

.rsvp__obraczki {
  width: 60px;
  height: 40px;
  margin-top: 26px;
}

/* Stopka */
.wieniec--stopka {
  margin-bottom: 14px;
}

/* Harmonogram w rozwijanej zakładce: złota data i opis dnia */
.plan {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--bez);
}

.plan li:first-child {
  padding-top: 2px;
  border-top: 0;
}

.plan strong {
  font-family: var(--font-szeryf);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--zloto-gleboki);
}

@media (min-width: 600px) {
  .plan li {
    grid-template-columns: 6.2em minmax(0, 1fr);
    gap: 18px;
  }
}
