/* ==========================================================================
   Patrycja & Łukasz — strona ślubna
   ========================================================================== */

:root {
  --ivory: #F8F4EE;
  --cream: #F2E8DC;
  --ecru: #E9DDCF;
  --champagne: #DCC6AD;
  --blush: #E8CBC7;
  --blush-soft: #F3E1DD;
  --cappuccino: #A88970;
  --gold: #B79861;
  --gold-soft: #D9C497;
  --brown: #594638;
  --brown-deep: #46362A;
  --text: #4E3E32;
  --muted: #7A6656;          /* 5.3:1 na ivory */
  --line: rgba(168, 137, 112, .28);
  --white: #FFFCF8;

  --f-script: 'Great Vibes', 'Brush Script MT', cursive;
  --f-serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --f-sans: 'Jost', 'Segoe UI', system-ui, sans-serif;

  --radius: 18px;
  --shadow-soft: 0 18px 50px -24px rgba(89, 70, 56, .35);
  --shadow-card: 0 1px 0 rgba(255,255,255,.6) inset, 0 20px 45px -30px rgba(89, 70, 56, .45);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--f-sans);
  font-weight: 350;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brown); text-decoration-color: var(--gold); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 500; color: var(--brown); line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 300;
  background: var(--brown); color: var(--ivory); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- utils -- */

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  font-family: var(--f-sans); font-size: .76rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--cappuccino); font-weight: 450;
}
.script { font-family: var(--f-script); font-weight: 400; color: var(--brown); line-height: 1; }

.todo {
  display: inline-block; padding: .05em .55em; border-radius: 999px;
  background: var(--blush-soft); color: #8A5F57; border: 1px dashed #D5AFA9;
  font-family: var(--f-sans); font-size: .82em; letter-spacing: .02em; font-weight: 450;
  line-height: 1.6;
}

.divider {
  display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold);
  margin: 18px auto;
}
.divider::before, .divider::after { content: ''; height: 1px; width: min(90px, 22vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { transform: scaleX(-1); }
.divider svg { width: 22px; height: 22px; }

/* -------------------------------------------------------------- buttons -- */

.btn {
  --bg: var(--brown); --fg: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .8em 1.6em; border-radius: 999px; border: 1px solid var(--bg);
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 450;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { box-shadow: 0 10px 24px -12px rgba(89, 70, 56, .6); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--brown); border-color: rgba(89,70,56,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.5); }
.btn--light { --bg: var(--white); --fg: var(--brown); border-color: var(--white); }
.btn--small { min-height: 40px; padding: .5em 1.1em; font-size: .72rem; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.link-btn {
  background: none; border: 0; padding: .4em .2em; cursor: pointer; color: var(--muted);
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: underline;
  text-decoration-color: var(--line); text-underline-offset: 5px;
}
.link-btn:hover { color: var(--brown); text-decoration-color: var(--gold); }

/* ============================================================== INTRO ==== */

.intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 45%, rgba(255, 244, 226, .95), transparent 70%),
    radial-gradient(ellipse 60% 40% at 15% 90%, rgba(232, 203, 199, .35), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(220, 198, 173, .45), transparent 70%),
    var(--cream);
  transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.intro.is-leaving { opacity: 0; visibility: hidden; }
.intro__grain {
  position: absolute; inset: 0; opacity: .35; pointer-events: none; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .36 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.intro__skip { position: absolute; top: 14px; right: 14px; z-index: 5; }
.intro__stage {
  position: relative; z-index: 2; width: min(520px, 100% - 32px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.intro__top { margin-bottom: clamp(18px, 4vh, 34px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.intro__top .eyebrow { display: block; margin-bottom: 8px; }
.intro__names { font-family: var(--f-script); font-size: clamp(2.6rem, 9vw, 3.6rem); color: var(--brown); line-height: 1.1; }
.intro__names span { font-family: var(--f-serif); font-size: .5em; color: var(--gold); margin: 0 .2em; vertical-align: middle; }
.intro__actions { margin-top: clamp(22px, 5vh, 40px); display: flex; flex-direction: column; align-items: center; gap: 10px; transition: opacity .5s var(--ease); }
.intro.is-opening .intro__top,
.intro.is-opening .intro__actions { opacity: 0; transform: translateY(-8px); pointer-events: none; }

/* --- koperta --- */
/* Delikatne unoszenie się koperty — na osobnym elemencie, by przy otwieraniu tylko je zatrzymać (bez przeskoku). */
.envelope-float { animation: env-float 5s ease-in-out infinite; }
.intro.is-opening .envelope-float { animation-play-state: paused; }
@keyframes env-float { 50% { transform: translateY(-6px); } }

.envelope {
  --w: min(460px, 86vw);
  position: relative; width: var(--w); aspect-ratio: 1.5;
  perspective: 1100px; perspective-origin: 50% 0;
  transition: transform 1.4s cubic-bezier(.33, .1, .25, 1);
}

/* wnętrze koperty (widoczne po otwarciu) + cień pod kopertą */
.envelope__back {
  position: absolute; inset: 0; border-radius: 5px;
  background: linear-gradient(180deg, #D9C6AF, #E6D6C3 55%, #EADCCB);
  box-shadow: 0 26px 40px -20px rgba(89, 70, 56, .45), 0 2px 6px rgba(89, 70, 56, .08);
}

/* kieszeń sięga wysoko ponad kopertę, ale przycina kartę na dolnej krawędzi */
.envelope__pocket { position: absolute; left: 0; right: 0; bottom: 0; top: -300%; overflow: hidden; z-index: 2; pointer-events: none; }
.envelope__card {
  /* kieszeń = 400% wysokości koperty: top 76.5% ≈ 6% poniżej górnej krawędzi koperty, wysokość ≈ 116% koperty */
  position: absolute; left: 5%; right: 5%; top: 76.5%; height: 29%;
  border-radius: 4px; overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(183, 152, 97, .25), 0 -6px 18px -8px rgba(89, 70, 56, .25);
  transform: translateY(0);
  transition: transform 1.5s cubic-bezier(.3, .05, .2, 1);
  display: flex; flex-direction: column; align-items: center; padding: 6% 7% 8%;
  text-align: center;
}
.envelope__card::after {
  content: ''; position: absolute; inset: 8px; border: 1px solid rgba(183, 152, 97, .45); border-radius: 3px; pointer-events: none;
}
.envelope__card .photo-slot { width: 62%; aspect-ratio: 4 / 5; border-radius: 999px 999px 8px 8px; }
.envelope__card .card-names { font-family: var(--f-script); font-size: clamp(1.7rem, 6vw, 2.3rem); color: var(--brown); margin-top: 6%; line-height: 1.1; }
.envelope__card .card-date { font-family: var(--f-serif); letter-spacing: .3em; color: var(--cappuccino); font-size: clamp(.8rem, 2.8vw, .95rem); margin-top: 2%; }

/* przód: boczne skrzydełka i dolna zakładka (SVG) */
.envelope__front { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; border-radius: 5px; }

/* pole na kod — na dolnej zakładce */
.envelope__code {
  position: absolute; left: 50%; bottom: 7%; z-index: 6; transform: translateX(-50%);
  width: min(74%, 280px); text-align: center; transition: opacity .35s var(--ease);
}
.envelope__code label { display: block; font-family: var(--f-script); font-size: clamp(1.2rem, 4.4vw, 1.65rem); color: var(--brown); line-height: 1.1; margin-bottom: 4px; }
.envelope__input {
  width: 100%; height: clamp(34px, 7.5vw, 42px); border: 0; border-bottom: 1px solid var(--gold); background: rgba(255, 252, 248, .6);
  border-radius: 6px 6px 0 0; text-align: center; font-family: var(--f-serif); font-size: clamp(1rem, 3.6vw, 1.2rem);
  letter-spacing: .28em; text-transform: uppercase; color: var(--brown); padding: 0 8px;
}
.envelope__input::placeholder { letter-spacing: .12em; text-transform: none; color: #B9A796; font-size: .85em; }
.envelope__input:focus { outline: none; background: var(--white); box-shadow: 0 0 0 3px rgba(183, 152, 97, .2); }
.intro.is-opening .envelope__code { opacity: 0; pointer-events: none; }
.intro__error { margin: 14px 0 0; color: #9C4A40; font-size: .92rem; max-width: 420px; }
.intro__error[hidden] { display: none; }
.intro.is-checking #intro-open { opacity: .6; pointer-events: none; }

/* górna klapka — zawias na górnej krawędzi, prawdziwy obrót 3D */
.envelope__flap {
  position: absolute; left: 0; right: 0; top: 0; height: 56%; z-index: 4;
  transform-origin: 50% 0; transform: rotateX(0deg);
  transform-style: preserve-3d;
  transition: transform .95s cubic-bezier(.45, .05, .3, 1);
}
.flap-face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flap-face--out { overflow: visible; filter: drop-shadow(0 2px 2px rgba(122, 95, 62, .12)); }
.flap-face--in {
  /* wewnętrzna strona klapki — widoczna po otwarciu, podstawą przy zawiasie */
  background: linear-gradient(0deg, #E3D3BF, #D8C5AE);
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
  transform: rotateX(180deg);
}

.seal {
  position: absolute; left: 50%; top: 54%; z-index: 5; width: 16%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  transition: transform .45s cubic-bezier(.5, 0, .5, 1), opacity .4s ease;
  border: 0; padding: 0; background: none; cursor: pointer;
}
.seal svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 4px rgba(89, 70, 56, .35)); }
.seal:hover { transform: translate(-50%, -50%) scale(1.04); }
@media (max-width: 520px) { .seal { width: 14%; top: 52%; } }

/* sekwencja otwierania (klasy dodawane przez JS) */
.intro.step-seal .seal { transform: translate(-50%, -44%) scale(.9); opacity: 0; }
.intro.step-flap .envelope__flap { transform: rotateX(180deg); }
.intro.step-flap-behind .envelope__flap { z-index: 1; }
.intro.step-card .envelope { transform: translateY(14%); }
.intro.step-card .envelope__card { transform: translateY(-74%); }
.intro.step-zoom .envelope__front,
.intro.step-zoom .envelope__back,
.intro.step-zoom .envelope__flap { opacity: 0; transition: opacity .8s ease; }
.intro.step-zoom .envelope__card { transform: translateY(-74%) scale(1.04); transition: transform 1s var(--ease); }

/* =============================================================== NAV ===== */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, transform .35s var(--ease);
}
.nav.is-solid { background: rgba(248, 244, 238, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__brand { font-family: var(--f-script); font-size: 1.7rem; color: var(--brown); text-decoration: none; line-height: 1; white-space: nowrap; }
.nav__links { display: flex; gap: clamp(12px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text);
  padding: 6px 0; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { background-size: 100% 1px; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; }
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--brown); margin: 4px auto; transition: transform .3s var(--ease), opacity .3s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (min-width: 961px) { .nav__mobile-only { display: none; } }
@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__cta .btn { display: none; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(248, 244, 238, .98); backdrop-filter: blur(12px); padding: 8px 24px 24px;
    box-shadow: 0 20px 40px -20px rgba(89,70,56,.3);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open { background: rgba(248, 244, 238, .98); }
  .nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); background: none; font-size: .8rem; }
}

.fab-rsvp {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90;
  box-shadow: 0 14px 30px -12px rgba(70, 54, 42, .7);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.fab-rsvp.is-visible { transform: none; }
@media (min-width: 961px) { .fab-rsvp { display: none; } }

/* ============================================================== HERO ===== */

.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 24px) 0 64px; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 78% 40%, rgba(255, 242, 222, .9), transparent 70%),
    radial-gradient(ellipse 40% 45% at 8% 85%, rgba(232, 203, 199, .35), transparent 70%),
    linear-gradient(180deg, var(--ivory), var(--cream));
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__text { text-align: left; }
.hero__greeting { font-family: var(--f-serif); font-style: italic; font-size: 1.25rem; color: var(--cappuccino); margin-bottom: 10px; min-height: 1.5em; }
.hero__names { font-family: var(--f-script); font-weight: 400; font-size: clamp(3.6rem, 9vw, 7rem); line-height: .95; color: var(--brown); margin: 14px 0 4px; }
.hero__names .amp { display: block; font-family: var(--f-serif); font-size: .38em; color: var(--gold); margin: .15em 0 .1em .15em; font-style: italic; }
.hero__date { font-family: var(--f-serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: .12em; color: var(--brown); margin-top: 18px; }
.hero__date small { display: block; font-family: var(--f-sans); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.hero__welcome { max-width: 46ch; margin: 22px 0 0; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__visual { position: relative; justify-self: center; width: min(400px, 100%, calc((100svh - var(--nav-h) - 110px) * .77)); }
.hero__visual .photo-slot { aspect-ratio: 4 / 5.2; border-radius: 999px 999px 18px 18px; box-shadow: var(--shadow-soft); }
.hero__visual::before {
  content: ''; position: absolute; inset: -14px; border: 1px solid rgba(183, 152, 97, .5); border-radius: 999px 999px 26px 26px; pointer-events: none;
}
.hero__sprig { position: absolute; width: 130px; color: var(--cappuccino); opacity: .8; pointer-events: none; }
.hero__sprig--a { left: -64px; bottom: 40px; transform: rotate(-18deg); }
.hero__sprig--b { right: -50px; top: 30px; transform: scaleX(-1) rotate(-30deg); }

.countdown { display: flex; gap: clamp(8px, 2vw, 18px); margin-top: 34px; flex-wrap: wrap; }
.countdown__item {
  min-width: 76px; padding: 12px 10px 10px; text-align: center; border-radius: 14px;
  background: rgba(255, 252, 248, .7); border: 1px solid var(--line); backdrop-filter: blur(4px);
}
.countdown__num { display: block; font-family: var(--f-serif); font-size: 2rem; line-height: 1; color: var(--brown); font-variant-numeric: tabular-nums; }
.countdown__num.tick { animation: tick .6s var(--ease); }
@keyframes tick { from { opacity: .35; transform: translateY(-4px); } }
.countdown__label { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.countdown__note { width: 100%; font-size: .8rem; color: var(--muted); margin-top: 2px; }

.quicklinks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding: 0; list-style: none; }
.quicklinks a { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.quicklinks a::before { content: ''; width: 16px; height: 1px; background: var(--gold); transition: width .3s var(--ease); }
.quicklinks a:hover { color: var(--brown); }
.quicklinks a:hover::before { width: 26px; }

.hero__scroll { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--cappuccino); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero__scroll::after { content: ''; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: scrollcue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 860px) {
  .hero { padding-top: calc(var(--nav-h) + 16px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__text { text-align: center; order: 2; }
  .hero__visual { order: 1; width: min(250px, 62vw, calc((100svh - var(--nav-h)) * .34)); }
  .hero__welcome { margin-inline: auto; }
  .hero__actions, .countdown, .quicklinks { justify-content: center; }
  .hero__names .amp { margin-left: 0; }
  .hero__sprig { width: 90px; }
  .hero__sprig--a { left: -40px; }
  .hero__sprig--b { right: -36px; }
  .hero__scroll { display: none; }
}
@media (max-width: 420px) {
  .countdown__item { min-width: 0; flex: 1; padding-inline: 4px; }
  .countdown__num { font-size: 1.6rem; }
  .countdown__label { font-size: .56rem; letter-spacing: .12em; }
  .hero__actions .btn { width: 100%; }
}

/* wejście sekcji głównej po otwarciu zaproszenia */
.hero__text > *, .hero__visual { transition: opacity 1s var(--ease), transform 1s var(--ease); }
body:not(.is-ready) .hero__text > *, body:not(.is-ready) .hero__visual { opacity: 0; transform: translateY(22px); }
body.is-ready .hero__visual { transition-delay: .15s; }
body.is-ready .hero__text > :nth-child(2) { transition-delay: .2s; }
body.is-ready .hero__text > :nth-child(3) { transition-delay: .3s; }
body.is-ready .hero__text > :nth-child(4) { transition-delay: .4s; }
body.is-ready .hero__text > :nth-child(n+5) { transition-delay: .5s; }

/* ------------------------------------------------------------ photo slot -- */

.photo-slot {
  position: relative; overflow: hidden; width: 100%;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 250, 242, .9), transparent 70%),
    linear-gradient(160deg, var(--cream), var(--champagne));
  display: grid; place-items: center;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--cappuccino); text-align: center; padding: 12px; }
.photo-slot__mono { font-family: var(--f-script); font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1; color: var(--brown); opacity: .75; }
.photo-slot__hint { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; }

/* ========================================================== SECTIONS ===== */

.section { position: relative; padding: clamp(80px, 12vw, 140px) 0; }
.section--cream { background: var(--cream); }
.section--soft { background: linear-gradient(180deg, var(--ivory), var(--cream)); }
.section--blush { background: linear-gradient(180deg, var(--ivory), var(--blush-soft) 60%, var(--ivory)); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__title { font-size: clamp(2.4rem, 5.5vw, 3.6rem); margin-top: 10px; }
.section__title em { font-family: var(--f-script); font-style: normal; font-weight: 400; color: var(--cappuccino); font-size: 1.15em; }
.section__lead { color: var(--muted); margin-top: 16px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ story ------ */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story .photo-slot { aspect-ratio: 4 / 5; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.story__text { font-size: 1.08rem; }
.story__text > p:first-of-type::first-letter { font-family: var(--f-serif); font-size: 3.4em; float: left; line-height: .8; margin: .08em .1em 0 0; color: var(--cappuccino); }
.story__empty { padding: 28px; border: 1px dashed var(--champagne); border-radius: var(--radius); background: rgba(255,255,255,.4); color: var(--muted); }
.milestones { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.milestones li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.milestones b { font-family: var(--f-serif); font-size: 1.3rem; color: var(--gold); font-weight: 700; line-height: 1.35; }
.milestones li > div, .milestones li > div strong { font-family: var(--f-serif); font-size: 1.15rem; color: var(--gold); font-weight: 500; line-height: 1.4; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story .photo-slot { max-width: 380px; margin: 0 auto; } }

/* ------------------------------------------------------------ events ----- */
.events { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 1180px) { .events { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; } }
.event {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 38px 28px 30px; text-align: center;
  box-shadow: var(--shadow-card); border: 1px solid rgba(220, 198, 173, .6);
  display: flex; flex-direction: column; align-items: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.event:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(89, 70, 56, .5); }
.event::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(183, 152, 97, .22); border-radius: 12px; pointer-events: none; }
.event__icon { width: 54px; height: 54px; color: var(--gold); margin-bottom: 14px; }
.event__label { font-family: var(--f-script); font-size: 2.6rem; color: var(--brown); line-height: 1; }
.event__title { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-family: var(--f-sans); margin-top: 6px; font-weight: 450; }
.event__rows { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 10px; width: 100%; }
.event__rows li { display: grid; gap: 2px; }
.event__rows span { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cappuccino); }
.event__rows strong { font-weight: 450; font-family: var(--f-serif); font-size: 1.2rem; color: var(--brown); }
.event__note { font-size: .92rem; color: var(--muted); }
.event__desc { font-family: var(--f-serif); font-style: italic; font-size: 1.1rem; color: var(--text); margin: 10px 0 0; }
.practical__intro { text-align: center; max-width: 720px; margin: clamp(36px, 5vw, 56px) auto 0; font-size: 1.05rem; }
.contact-h { font-size: 1.5rem; margin: 26px 0 12px; }
.contact-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px; }
.contact-person { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 200px; }
.contact-person b { font-family: var(--f-serif); font-size: 1.3rem; font-weight: 500; color: var(--brown); }
.contact-person small { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cappuccino); }
.contact-person__links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 4px; }
.gallery__item { position: relative; }
.gallery__cap { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 252, 248, .88); font-size: .78rem; color: var(--brown); text-align: center; }
.rich h2, .rich h3, .rich h4 { margin: 1em 0 .4em; }
.rich img { max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0; }
.rich blockquote { margin: 1em 0; padding-left: 16px; border-left: 3px solid var(--gold); font-style: italic; }
.rich .ql-align-center { text-align: center; } .rich .ql-align-right { text-align: right; } .rich .ql-align-justify { text-align: justify; }
.event__actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.event__actions .btn { width: 100%; }
.event__map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 12px; margin-bottom: 14px; filter: sepia(.25) saturate(.8); }
@media (max-width: 640px) { .events { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

.practical { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.practical__item { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: rgba(255, 252, 248, .6); border: 1px solid var(--line); }
.practical__item svg { width: 30px; height: 30px; flex: none; color: var(--gold); margin-top: 2px; }
.practical__item h3 { font-size: 1.35rem; margin-bottom: 4px; }
.practical__item p { margin: 0; color: var(--text); }
@media (max-width: 760px) { .practical { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- timeline ----- */
.timeline { position: relative; margin: 0 auto; max-width: 820px; }
.timeline__list { list-style: none; margin: 0; padding: 0; }
.timeline__rail { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); transform: translateX(-50%); }
.timeline__progress { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(var(--gold-soft), var(--gold)); transition: height .2s linear; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: start; margin-bottom: 26px; }
.tl-item__dot {
  grid-column: 2; justify-self: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--champagne); display: grid; place-items: center; color: var(--gold);
  position: relative; z-index: 1; transition: background .4s, border-color .4s, color .4s, transform .4s var(--ease);
}
.tl-item__dot svg { width: 24px; height: 24px; }
.tl-item.is-passed .tl-item__dot { background: var(--brown); border-color: var(--brown); color: var(--gold-soft); }
.tl-item__card {
  grid-row: 1; text-align: left; background: var(--white); border: 1px solid rgba(220, 198, 173, .6); border-radius: 14px;
  padding: 16px 20px; width: 100%; font: inherit; color: inherit; box-shadow: var(--shadow-card);
}
.tl-item:nth-child(odd) .tl-item__card { grid-column: 1; text-align: right; }
.tl-item:nth-child(even) .tl-item__card { grid-column: 3; }
.tl-item__time { font-family: var(--f-serif); font-size: 1.5rem; color: var(--brown); line-height: 1.1; display: block; }
.tl-item__title { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 4px; }
.tl-item__badge { display: inline-block; margin-top: 8px; font-size: .68rem; padding: 2px 10px; border-radius: 999px; background: var(--blush-soft); color: #8A5F57; }
.tl-item__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.tl-item__more > span { overflow: hidden; display: block; }
.tl-item__desc { display: block; margin-top: 10px; font-size: .95rem; color: var(--text); }
.tl-item.is-open .tl-item__more { grid-template-rows: 1fr; }
.tl-item__desc.is-empty { font-style: italic; color: var(--muted); font-size: .88rem; }
.timeline__note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 10px; }
@media (max-width: 700px) {
  .timeline__rail { left: 26px; }
  .tl-item { grid-template-columns: 52px 1fr; gap: 14px; }
  .tl-item__dot { grid-column: 1; }
  .tl-item:nth-child(odd) .tl-item__card, .tl-item:nth-child(even) .tl-item__card { grid-column: 2; text-align: left; }
}

/* ============================================================== RSVP ===== */
.rsvp-card {
  position: relative; background: var(--white); border-radius: 24px; padding: clamp(24px, 5vw, 52px);
  box-shadow: 0 40px 80px -50px rgba(89, 70, 56, .55); border: 1px solid rgba(220, 198, 173, .7);
}
.rsvp-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(183, 152, 97, .25); border-radius: 16px; pointer-events: none; }
.rsvp-card > * { position: relative; }
.rsvp-note { padding: 14px 18px; border-radius: 12px; background: var(--blush-soft); color: #7A4F48; font-size: .92rem; margin-bottom: 22px; }
.rsvp-note--info { background: var(--cream); color: var(--brown); }

.progress { margin-bottom: 28px; }
.progress__bar { height: 3px; background: var(--ecru); border-radius: 3px; overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--champagne), var(--gold)); transition: width .5s var(--ease); }
.progress__steps { display: flex; justify-content: space-between; margin-top: 10px; list-style: none; padding: 0; }
.progress__steps li { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: #A7978A; transition: color .3s; }
.progress__steps li.is-current { color: var(--brown); font-weight: 500; }
.progress__steps li.is-done { color: var(--cappuccino); }
@media (max-width: 520px) { .progress__steps li:not(.is-current) { display: none; } .progress__steps { justify-content: center; } }

.step { animation: stepin .5s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateX(16px); } }
.step__title { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: 6px; }
.step__lead { color: var(--muted); margin-bottom: 24px; }

.field { margin-bottom: 20px; }
.field > label, .field > .field__label { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); margin-bottom: 8px; font-weight: 450; }
.field__hint { font-size: .85rem; color: var(--muted); margin: -2px 0 8px; }
.input, .textarea, .select {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--champagne);
  background: var(--ivory); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(183, 152, 97, .15); }
.input--code { text-transform: uppercase; letter-spacing: .3em; font-family: var(--f-serif); font-size: 1.4rem; text-align: center; }
.field-error { color: #9C4A40; font-size: .88rem; margin-top: 6px; }

.choice-group { display: grid; gap: 10px; }
.event-choice { margin: 0; min-width: 0; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--ivory); }
.event-choice__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.event-choice__name { font-family: var(--f-serif); font-size: 1.35rem; color: var(--brown); }
.event-choice__meta { font-size: .82rem; color: var(--muted); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; min-height: 44px; border-radius: 999px; border: 1px solid var(--champagne);
  background: var(--white); cursor: pointer; font-size: .92rem; transition: all .25s var(--ease); user-select: none;
}
.pill span::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--cappuccino); transition: all .25s; flex: none; }
.pill input:checked + span { background: var(--brown); color: var(--ivory); border-color: var(--brown); }
.pill input:checked + span::before { background: var(--gold-soft); border-color: var(--gold-soft); box-shadow: inset 0 0 0 3px var(--brown); }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pill:active span { transform: scale(.97); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--champagne); border-radius: 999px; background: var(--ivory); }
.stepper button { width: 46px; height: 46px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--brown); border-radius: 50%; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 34px; text-align: center; font-family: var(--f-serif); font-size: 1.4rem; }
.counts { display: flex; gap: 28px; flex-wrap: wrap; }

.names-list { display: grid; gap: 8px; }
.names-list__row { display: flex; gap: 8px; }
.names-list__row .input { flex: 1; }
.icon-btn { width: 50px; min-width: 50px; border-radius: 12px; border: 1px solid var(--champagne); background: var(--white); cursor: pointer; color: var(--muted); font-size: 1.2rem; }
.icon-btn:hover { color: var(--brown); border-color: var(--cappuccino); }

.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row > .field { flex: 1 1 180px; margin-bottom: 12px; }
.form-row > .field--age { flex: 0 1 120px; }
.kid { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--champagne); }
.kid__title { font-family: var(--f-serif); font-size: 1.15rem; color: var(--brown); margin: 0 0 8px; }
.checks-list { display: grid; gap: 10px; }
.diet-row { display: grid; grid-template-columns: 1fr 190px; gap: 8px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.diet-row .input { grid-column: 1 / -1; min-height: 44px; }
.diet-row__name { font-family: var(--f-serif); font-size: 1.2rem; color: var(--brown); }
@media (max-width: 520px) { .diet-row { grid-template-columns: 1fr; } }
.optional { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 350; }
.summary__title { font-size: 1.3rem; margin: 26px 0 8px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cappuccino) 50%), linear-gradient(135deg, var(--cappuccino) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }

/* Twoje miejsce przy stole */
.seat-view { background: var(--white); border-radius: 24px; border: 1px solid rgba(220, 198, 173, .7); padding: clamp(14px, 3vw, 28px); box-shadow: var(--shadow-card); }
.seat-view svg { width: 100%; height: auto; display: block; }
/* Zapowiedź sekcji, która pojawi się później */
.soon { grid-column: 1 / -1; max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(26px, 5vw, 44px) clamp(20px, 4vw, 40px); border-radius: 24px; background: var(--white); border: 1px solid rgba(220, 198, 173, .7); box-shadow: var(--shadow-card); position: relative; }
.soon::before { content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(183, 152, 97, .35); border-radius: 18px; pointer-events: none; }
.soon__icon { width: 34px; height: 34px; color: var(--gold, #B79861); display: block; margin: 0 auto 10px; }
.soon__eyebrow { margin: 0; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.soon__title { margin: 6px 0 10px; font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.1rem); color: var(--brown); }
.soon__text { margin: 12px auto 0; max-width: 480px; color: var(--text); line-height: 1.6; }
.soon__date { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin: 20px 0 0; padding: 12px 26px; border-radius: 16px; background: #FFF8EA; border: 1px solid #E4CFA6; }
.soon__date span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.soon__date b { font-family: var(--f-serif); font-weight: 600; font-size: 1.35rem; color: #8A6A2F; font-variant-numeric: lining-nums; }
.soon__date small { font-size: .82rem; color: var(--muted); }
.soon__date--plain { padding: 10px 22px; }
.seat-view .soon__icon { width: 34px; height: 34px; }
.seat-view--soon { background: none; border: 0; box-shadow: none; padding: 0; }
.seat-view__empty { text-align: center; margin: 0; font-family: var(--f-serif); font-size: 1.3rem; color: var(--brown); }
.seat-view__cards { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.seat-card { flex: 1 1 260px; max-width: 460px; text-align: center; background: #FFF8EA; border: 1px solid #E4CFA6; border-radius: 18px; padding: 18px 20px; }
.seat-card__table { margin: 0; font-family: var(--f-serif); font-size: 1.5rem; color: var(--brown); }
.seat-card__table b { font-variant-numeric: lining-nums; font-size: 2.2rem; color: #9C7A3C; font-weight: 600; }
.seat-card__name { margin: 2px 0 10px; color: var(--muted); font-size: .95rem; }
.seat-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.seat-card li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; background: var(--white); border-radius: 10px; }
.seat-card li b { color: #9C7A3C; font-weight: 600; white-space: nowrap; }
.seat-view__zooms { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 22px 0 8px; }
.seat-zoom { flex: 1 1 320px; max-width: 640px; margin: 0; }
.seat-zoom .st-label { font-size: 13px; }
.seat-zoom .st-name { font-size: 24px; }
.seat-zoom .st-sub { font-size: 11px; }
.seat-zoom figcaption { text-align: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.seat-view__h { text-align: center; font-family: var(--f-serif); font-weight: 500; font-size: 1.35rem; color: var(--brown); margin: 26px 0 10px; padding-top: 22px; border-top: 1px solid rgba(220, 198, 173, .6); }
.seat-view__hall { max-width: 980px; margin: 0 auto; }
.seat-view__legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 12px; }
.seat-view__legend .lg { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.lg--mine { background: #FFF3D6; border: 2px solid #B79861; }
.lg--m { background: #6F9BC4; } .lg--f { background: #E09AB0; } .lg--x { background: #D9CFC4; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brown); flex: none; }

.step__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap-reverse; }
.step__nav .btn { flex: 0 1 auto; }
@media (max-width: 520px) { .step__nav .btn { flex: 1 1 100%; } }

.summary { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.summary li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.summary li span { color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
@media (max-width: 520px) { .summary li { grid-template-columns: 1fr; gap: 2px; } }

.success { text-align: center; padding: 10px 0; }
.success__icon { width: 84px; height: 84px; margin: 0 auto 18px; color: var(--gold); }
.success__icon circle { stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw 1s var(--ease) forwards; }
.success__icon path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { font-size: 2.2rem; margin-bottom: 8px; }
.editlink { display: flex; gap: 8px; margin: 16px auto 0; max-width: 520px; }
.editlink .input { font-size: .85rem; }

/* ---------------------------------------------------------- stays -------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.info-card { background: var(--white); border-radius: var(--radius); padding: 26px; border: 1px solid rgba(220, 198, 173, .6); box-shadow: var(--shadow-card); }
.info-card h3 { font-size: 1.55rem; margin-bottom: 8px; }
.info-card dl { margin: 12px 0 0; display: grid; gap: 6px; font-size: .95rem; }
.info-card dt { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cappuccino); }
.info-card dd { margin: 0 0 6px; }
.subhead { font-size: 1.8rem; margin: 48px 0 18px; text-align: center; }
.subhead:first-child { margin-top: 0; }
.text-block { text-align: center; max-width: 640px; margin: 0 auto 22px; }

/* ------------------------------------------------------------ faq -------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  padding: 22px 4px; background: none; border: 0; cursor: pointer; font-family: var(--f-serif); font-size: 1.35rem; color: var(--brown);
}
.faq__q:hover { color: var(--brown-deep); }
.faq__icon { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--champagne); position: relative; flex: none; transition: transform .4s var(--ease), background .3s; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--brown); transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq__item.is-open .faq__icon { background: var(--cream); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 4px 22px; margin: 0; color: var(--text); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__pending { color: var(--muted); font-style: italic; }

/* --------------------------------------------------------- gallery ------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery__item { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 14px; overflow: hidden; }
.gallery__item .photo-slot { aspect-ratio: 1; transition: transform .6s var(--ease); }
.gallery__item:hover .photo-slot { transform: scale(1.03); }
.gallery__item:disabled { cursor: default; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(70, 54, 42, .92); display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lightbox img { max-height: 86vh; max-width: min(1000px, 100%); border-radius: 10px; transition: opacity .3s; }
.lightbox button { position: absolute; background: rgba(255,252,248,.12); color: var(--ivory); border: 1px solid rgba(255,252,248,.3); width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------- contact / foot */
.contact-card { text-align: center; }
.contact-card .btn { margin-top: 10px; }

.privacy { font-size: .92rem; color: var(--text); }
.privacy details { background: rgba(255,252,248,.6); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; }
.privacy summary { cursor: pointer; padding: 16px 0; font-family: var(--f-serif); font-size: 1.25rem; color: var(--brown); }
.privacy ul { padding-left: 1.2em; }

.footer { padding: 70px 0 110px; text-align: center; background: var(--cream); border-top: 1px solid var(--line); }
.footer__names { font-family: var(--f-script); font-size: 3rem; color: var(--brown); line-height: 1; }
.footer__date { letter-spacing: .3em; color: var(--muted); font-size: .8rem; margin-top: 10px; }
.footer__admin { margin-top: 28px; font-size: .74rem; color: var(--muted); }
.footer__admin a { color: var(--muted); }

/* ------------------------------------------------------------ ornaments -- */
.ornament { color: var(--gold); width: 120px; margin: 0 auto; display: block; opacity: .8; }

/* ---------------------------------------------------------- menu (goście) */
.menu-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); justify-content: center; gap: 20px; }
.menu-card { background: var(--white); border: 1px solid rgba(220, 198, 173, .6); border-radius: var(--radius); padding: 26px 26px 18px; box-shadow: var(--shadow-card); text-align: center; }
.menu-card h3 { font-family: var(--f-script); font-weight: 400; font-size: 2.2rem; color: var(--brown); }
.menu-card__note { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cappuccino); margin: 4px 0 0; }
.menu-card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.menu-card li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.menu-card__name { font-family: var(--f-serif); font-size: 1.2rem; color: var(--brown); }
.menu-card__tags { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.menu-card__desc { font-size: .9rem; color: var(--muted); }

/* -------------------------------------------------------- gazetka (goście) */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.news-item { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(220, 198, 173, .6); box-shadow: var(--shadow-card); }
.news-item--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 760px) { .news-item--lead { grid-template-columns: 1fr; } }
.news-item figure { margin: 0; }
.news-item img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; }
.news-item figcaption { font-size: .78rem; color: var(--muted); padding: 6px 14px 0; font-style: italic; }
.news-item__text { padding: 22px 24px; }
.news-item h3 { font-size: 1.7rem; }
.news-item__author { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cappuccino); margin: 6px 0 0; }
.news-item__lead { font-weight: 450; margin: 12px 0; }
.news-item details summary { cursor: pointer; color: var(--brown); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 8px 0; }
.news-item details[open] summary { color: var(--muted); }

/* -------------------------------------------------- reduced motion ------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* formularz otwarty z panelu (wypełnianie za gościa) */
body.admin-embed .nav, body.admin-embed .fab-rsvp, body.admin-embed .hero, body.admin-embed footer { display: none !important; }
body.admin-embed #rsvp::before { content: 'Tryb Pary Młodej — wypełniacie odpowiedź za gości'; display: block; text-align: center; background: #F3E6C6; color: #6B5528; padding: 8px; font-size: .85rem; }
.rich li[data-list="bullet"] { list-style-type: disc; }
.rich ol, .rich ul { padding-left: 1.3em; }

/* wspomnienia: przyciski i ściana życzeń */
.memo-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 30px; }
.memo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 16px; border-radius: var(--radius); background: var(--white); border: 1px solid rgba(220, 198, 173, .7); box-shadow: var(--shadow-card); text-decoration: none; color: var(--text); transition: transform .3s var(--ease); }
.memo:hover { transform: translateY(-3px); }
.memo span { font-size: 2rem; }
.memo b { font-family: var(--f-serif); font-size: 1.35rem; font-weight: 500; color: var(--brown); }
.memo small { color: var(--muted); }
.wall__grid { columns: 3 260px; column-gap: 16px; }
.wall__item { break-inside: avoid; margin: 0 0 16px; padding: 16px; border-radius: var(--radius); background: var(--white); border: 1px solid rgba(220, 198, 173, .6); }
.wall__item img, .wall__item video { width: 100%; border-radius: 10px; margin-bottom: 10px; }
.wall__item audio { width: 100%; margin-bottom: 10px; }
.wall__item blockquote { margin: 0; font-family: var(--f-serif); font-size: 1.15rem; line-height: 1.45; color: var(--brown); }
.wall__item figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
