/* ============================================================
   SITE.CSS — strona dla gości (też zaproszenie, podziękowania, 404)
   Język wizualny „papeterii”: ostre narożniki, złote hairline'y,
   podwójne ramki jak na drukowanym zaproszeniu, mało ruchu.
   ============================================================ */

/* Narożniki kart, pól i przycisków — panel zostaje przy zaokrągleniach z base.css. */
:root { --r-sm: 2px; --r-md: 3px; --r-lg: 4px; --r-xl: 6px; --r-btn: 2px; }

/* Ikona karty jako złoty okrąg (hairline) zamiast wypełnionego koła */
.card__icon { background: none; border: 1px solid var(--line-gold); }

/* Podwójna ramka: wewnętrzna złota linia odsunięta od krawędzi karty. */
.rsvp-card, .contact-card, .album-cta, .card--framed {
  outline: 1px solid var(--line-gold);
  outline-offset: -9px;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  background: var(--burgundy-deep); color: var(--cream);
  transition: opacity .8s var(--ease-out), visibility .8s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader__monogram {
  font-family: var(--font-display); font-size: clamp(2.5rem, 9vw, 5rem);
  letter-spacing: .12em; color: var(--gold-light);
}
.preloader__bar { width: min(220px, 60vw); height: 2px; background: rgba(255,255,255,.16); margin: var(--s-5) auto 0; overflow: hidden; border-radius: 2px; }
.preloader__bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: shimmer 1.2s linear infinite; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 950;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--dur) var(--ease-out), box-shadow var(--dur), backdrop-filter var(--dur);
}
/* UWAGA: w stanie spoczynku nagłówek NIE może mieć `transform`.
   Element z transformem staje się blokiem zawierającym dla potomków
   z `position: fixed` — a menu mobilne (.nav) jest fixed i musi
   pozycjonować się względem okna, nie względem nagłówka. */
.site-header.is-scrolled {
  background: rgba(var(--ivory-rgb),.86);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(var(--ink-rgb),.06);
}
.site-header:not(.is-scrolled) { --focus: var(--gold-light); }
@media (min-width: 901px) {
  .site-header { transition: background var(--dur) var(--ease-out), box-shadow var(--dur), backdrop-filter var(--dur), transform var(--dur) var(--ease-out); }
  .site-header.is-hidden { transform: translateY(-100%); }
}
.site-header__inner { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }

.brand { display: flex; align-items: center; gap: .6em; font-family: var(--font-display); font-size: clamp(.95rem, .8rem + .3vw, 1.1rem); letter-spacing: .12em; text-transform: uppercase; color: var(--burgundy); white-space: nowrap; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-soft));
  color: var(--gold-light); font-size: .82rem; letter-spacing: .04em;
  box-shadow: var(--shadow-sm);
}
.site-header:not(.is-scrolled) .brand,
.site-header:not(.is-scrolled) .nav__link { color: var(--cream); }
.site-header:not(.is-scrolled) .brand__mark { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px var(--line-light); }
.site-header:not(.is-scrolled) .burger span { background: var(--cream); }

.nav { display: flex; align-items: center; gap: clamp(.35rem, 1.1vw, 1rem); }
.nav__link {
  position: relative; font-size: clamp(.7rem, .62rem + .22vw, .82rem); font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft);
  padding: .4em .15em; transition: color var(--dur);
  white-space: nowrap;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link:hover { color: var(--gold-deep); }
.site-header:not(.is-scrolled) .nav__link:hover { color: var(--gold-light); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; gap: 5px; flex-direction: column; }
.burger span { display: block; width: 22px; height: 2px; background: var(--burgundy); border-radius: 2px; transition: transform var(--dur) var(--ease-out), opacity var(--dur); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    --focus: var(--gold-light);
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: var(--s-4); padding: var(--s-8) var(--s-6);
    background: var(--burgundy-deep);
    transform: translateX(105%); visibility: hidden;
    transition: transform .55s var(--ease-out), visibility 0s linear .55s;
    box-shadow: -20px 0 60px rgba(0,0,0,.3);
  }
  /* visibility: zamknięte menu nie może łapać fokusu klawiatury (Tab) poza ekranem */
  .nav.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease-out), visibility 0s; }
  .nav__link, .site-header:not(.is-scrolled) .nav__link { color: var(--cream); font-size: 1.05rem; }
  .nav.is-open .nav__link { animation: fade-left .5s var(--ease-out) both; }
  .nav.is-open .nav__link:nth-child(1) { animation-delay: .1s } .nav.is-open .nav__link:nth-child(2) { animation-delay: .16s }
  .nav.is-open .nav__link:nth-child(3) { animation-delay: .22s } .nav.is-open .nav__link:nth-child(4) { animation-delay: .28s }
  .nav.is-open .nav__link:nth-child(5) { animation-delay: .34s } .nav.is-open .nav__link:nth-child(6) { animation-delay: .4s }
  .nav.is-open .nav__link:nth-child(7) { animation-delay: .46s } .nav.is-open .nav__link:nth-child(8) { animation-delay: .52s }
}

/* ---------- HERO ---------- */
.hero {
  --focus: var(--gold-light);
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  text-align: center; color: var(--cream);
  overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 1.5rem) 1rem clamp(6rem, 12vh, 9rem);
}
.hero__bg {
  position: absolute; inset: -6%; z-index: -3;
  background: var(--hero-background);
}
.hero__bg::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .07; }
.hero__vignette { position: absolute; inset: 0; z-index: -2; background: var(--vignette-background); }

/* Jedno wysokie łukowe okno (portal kościoła) w podwójnej złotej linii — obramowuje
   imiona i licznik jak ramka tłoczona na zaproszeniu. U dołu wtapia się w tło. */
.hero__arch {
  --arch-w: min(100% - 1.5rem, 700px);
  --arch-gap: 9px;
  position: absolute; z-index: -1; pointer-events: none;
  left: 50%; transform: translateX(-50%);
  top: calc(var(--header-h) + clamp(.25rem, 2.5vh, 1.75rem)); bottom: 0;
  width: var(--arch-w);
  border: 1px solid rgba(var(--gold-light-rgb), .4); border-bottom: 0;
  border-radius: calc(var(--arch-w) / 2) calc(var(--arch-w) / 2) 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent 98%);
          mask-image: linear-gradient(180deg, #000 65%, transparent 98%);
}
.hero__arch::before {
  content: ''; position: absolute; inset: var(--arch-gap) var(--arch-gap) 0;
  border: 1px solid rgba(var(--gold-light-rgb), .2); border-bottom: 0;
  border-radius: calc(var(--arch-w) / 2 - var(--arch-gap)) calc(var(--arch-w) / 2 - var(--arch-gap)) 0 0;
}
body.has-guest-banner .hero__arch { top: calc(var(--header-h) + var(--banner-h, 3.5rem) + .75rem); }

.hero__content { position: relative; z-index: 2; width: min(100%, 660px); }
.hero .cd-unit { min-width: clamp(64px, 17vw, 108px); }
@media (max-width: 560px) {
  .hero__date::before, .hero__date::after { display: none; }
  .hero .flex-center .btn { width: min(100%, 17.5rem); }
}
.hero__eyebrow { color: var(--gold-light); margin-bottom: var(--s-3); }
.hero__names {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 12vw, 7rem);
  line-height: .95; font-weight: 300; letter-spacing: .01em;
  margin-bottom: var(--s-4);
}
.hero__amp { display: block; font-family: var(--font-hand); font-size: .42em; color: var(--gold); margin: .04em 0 .02em; }
.hero__date {
  display: inline-flex; align-items: center; gap: var(--s-4);
  font-size: clamp(.8rem, 2vw, 1.05rem); letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-light); margin: var(--s-3) 0 var(--s-2);
}
.hero__date::before, .hero__date::after { content: ''; height: 1px; width: clamp(20px, 5vw, 48px); background: rgba(var(--gold-light-rgb), .55); }
.hero__place { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--sand); margin-bottom: var(--s-6); }

.hero__scroll {
  position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; gap: .5rem;
  font-size: var(--step--2); letter-spacing: .28em; text-transform: uppercase; color: var(--sand);
}
.hero__scroll i { display: block; width: 1px; height: 46px; background: linear-gradient(180deg, var(--gold), transparent); animation: bob 2.2s var(--ease-in-out) infinite; }
/* Na niskich ekranach wskaźnik przewijania nachodziłby na treść — chowamy go */
@media (max-height: 900px) { .hero__scroll { display: none; } }

/* ---------- LICZNIK ---------- */
.countdown { display: flex; justify-content: center; gap: clamp(.5rem, 2.4vw, 1.6rem); flex-wrap: wrap; margin-top: var(--s-5); }
.cd-unit { position: relative; min-width: clamp(74px, 20vw, 132px); }
.cd-unit__val {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7.5vw, 3.8rem);
  line-height: 1; font-weight: 300; color: var(--cream);
  display: block; perspective: 800px;
}
/* Na niskich ekranach licznik lekko maleje, żeby hero zmieściło się bez przewijania */
@media (max-height: 820px) {
  .hero__names { font-size: clamp(2.4rem, 9vw, 5.2rem); }
  .cd-unit__val { font-size: clamp(1.9rem, 6.5vw, 3.2rem); }
  .cd-unit__label { margin-top: .35em; }
  .hero .cd-progress { margin-top: 1.5rem; }
}
.cd-unit__val span { display: inline-block; transform-origin: 50% 50%; backface-visibility: hidden; }
.cd-unit__val.is-tick span { animation: tick-flip .62s var(--ease-out); }
.cd-unit__label { display: block; margin-top: .55em; font-size: var(--step--2); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
/* Separator jako pionowy złoty hairline zamiast dwukropka */
.cd-sep { align-self: stretch; width: 1px; font-size: 0; color: transparent; background: rgba(var(--gold-light-rgb), .28); }
.countdown--panel .cd-sep { background: var(--line); }
@media (max-width: 560px) { .cd-sep { display: none; } }

.countdown--panel .cd-unit__val { color: var(--burgundy); text-shadow: none; }
.countdown--panel .cd-unit__label { color: var(--ink-mute); }

/* Pasek postępu oczekiwania */
.cd-progress { width: min(100%, 520px); margin: var(--s-6) auto 0; }
.cd-progress__bar { height: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.cd-progress__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width 1.4s var(--ease-out); position: relative; }
.cd-progress__bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: shine 2.4s linear infinite; background-size: 200% 100%; }
.cd-progress__meta { display: flex; justify-content: space-between; margin-top: .7em; font-size: var(--step--2); letter-spacing: .16em; text-transform: uppercase; color: var(--sand); }
.countdown--panel .cd-progress__meta { color: var(--ink-mute); }
.countdown--panel .cd-progress__bar { background: var(--sand); }

.cd-done { font-family: var(--font-display); font-size: var(--step-3); color: var(--gold-light); }

/* ---------- Sekcja: cytat / intro ---------- */
.quote-block { text-align: center; max-width: 720px; margin-inline: auto; }
.quote-block__mark { font-family: var(--font-display); font-size: 5rem; line-height: .6; color: var(--gold-light); opacity: .6; }
.quote-block p { font-family: var(--font-display); font-size: var(--step-2); font-style: italic; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Najważniejsze w jednej linii (data / ślub / wesele) ----------
   Jak wiersz szczegółów na drukowanym zaproszeniu: trzy kolumny rozdzielone
   złotymi hairline'ami, bez osobnych kart. */
.details {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 7vw, 4.5rem);
  border-block: 1px solid var(--line-gold);
  text-align: center;
}
.details__item { padding: clamp(1.5rem, 4vw, 2.25rem) clamp(.75rem, 2vw, 1.5rem); }
.details__item + .details__item { border-left: 1px solid var(--line-gold); }
.details__icon { display: block; width: 26px; height: 26px; margin: 0 auto .8rem; color: var(--gold-deep); }
.details__icon svg { width: 100%; height: 100%; }
.details__title { font-size: var(--step-2); margin-bottom: .35em; }
.details__item p { font-size: var(--step--1); color: var(--ink-mute); }
@media (max-width: 640px) {
  .details { grid-template-columns: 1fr; }
  .details__item + .details__item { border-left: 0; border-top: 1px solid var(--line-gold); }
}

/* ---------- Para młoda ---------- */
.couple { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1rem, 4vw, 3rem); max-width: 820px; margin-inline: auto; }
@media (max-width: 760px) { .couple { grid-template-columns: 1fr; } }
.couple__person { text-align: center; padding: clamp(.5rem, 2vw, 1.5rem); }
/* Monogram w podwójnym złotym okręgu — jak tłoczenie na kopercie */
.couple__avatar {
  width: clamp(140px, 30vw, 184px); aspect-ratio: 1; border-radius: 50%;
  margin: 0 auto var(--s-5); position: relative;
  display: grid; place-items: center;
  background: var(--ivory);
  border: 1px solid var(--line-gold);
  color: var(--burgundy); font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 4rem); line-height: 1;
}
.couple__avatar::before {
  content: ''; position: absolute; inset: 7px; border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), .3);
}
.couple__name { font-size: var(--step-3); margin-bottom: .1em; }
.couple__role { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--gold-deep); }
.couple__amp { font-family: var(--font-hand); font-size: clamp(2.5rem, 8vw, 4.5rem); color: var(--gold-deep); line-height: 1; text-align: center; }

/* ---------- Kiedy i gdzie (karty miejsc) ---------- */
.venue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--s-5); }
.venue {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color var(--dur);
}
.venue:hover { border-color: var(--line-gold); }
.venue__map { position: relative; height: 210px; overflow: hidden; background: var(--cream); border-bottom: 1px solid var(--line-gold); }
.venue__map iframe, .venue__map .venue__mapimg { width: 100%; height: 100%; border: 0; object-fit: cover; filter: sepia(.18) saturate(.7) contrast(1.02); transition: filter var(--dur); }
.venue:hover .venue__map iframe, .venue:hover .venue__map .venue__mapimg { filter: none; }
.venue__map::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,.75)); }
.venue__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; }
.venue__body { padding: clamp(1.2rem, 3vw, 2rem); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.venue__time { position: absolute; top: 1rem; right: 1rem; z-index: 3; background: var(--burgundy); color: var(--gold-light); padding: .35em .9em; border-radius: var(--r-sm); font-family: var(--font-display); font-size: var(--step-1); line-height: 1.2; box-shadow: var(--shadow-sm); }
.venue__name { font-size: var(--step-2); }
.venue__addr { color: var(--ink-soft); font-size: var(--step--1); display: flex; gap: .5rem; }
.venue__addr svg { width: 16px; height: 16px; margin-top: 4px; }
.venue__plus { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: var(--step--1); background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .5em .8em; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.venue__note { font-size: var(--step--1); color: var(--ink-mute); border-left: 1px solid var(--gold); padding-left: var(--s-3); }
.venue__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; padding-top: var(--s-3); }
.map-btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .6em 1.1em; border-radius: var(--r-btn);
  font-size: var(--step--2); font-weight: 500; letter-spacing: .06em;
  border: 1px solid var(--line); background: var(--white);
  transition: border-color var(--dur), background var(--dur), color var(--dur);
}
.map-btn:hover { border-color: var(--gold); background: var(--cream); }
.map-btn svg { width: 16px; height: 16px; }
.map-btn--primary { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }
.map-btn--primary:hover { background: var(--burgundy-soft); color: var(--cream); }

/* ---------- Oś czasu (harmonogram) ---------- */
.timeline { position: relative; padding-left: clamp(2.5rem, 7vw, 4.5rem); }
.timeline::before {
  content: ''; position: absolute; left: clamp(.9rem, 2.6vw, 1.6rem); top: .6rem; bottom: .6rem; width: 1px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold), transparent);
  transform-origin: 50% 0; transform: scaleY(var(--tl-progress, 0));
  transition: transform .3s linear;
}
.tl-item { position: relative; padding-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item__dot {
  position: absolute; left: calc(clamp(2.5rem, 7vw, 4.5rem) * -1 + clamp(.9rem, 2.6vw, 1.6rem) - 17px);
  top: .35rem; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ivory);
  border: 1px solid var(--gold); color: var(--gold-deep);
  transition: background var(--dur), color var(--dur);
  z-index: 2;
}
.tl-item__dot svg { width: 17px; height: 17px; }
.tl-item:hover .tl-item__dot, .tl-item.is-visible .tl-item__dot { background: var(--burgundy); color: var(--gold-light); border-color: var(--burgundy); }
.tl-item__time { font-family: var(--font-display); font-size: var(--step-2); font-weight: 400; color: var(--gold-deep); line-height: 1; }
.tl-item__title { font-size: var(--step-1); margin: .25em 0 .2em; }
.tl-item__desc { color: var(--ink-soft); font-size: var(--step--1); max-width: 60ch; }
.section--dark .timeline::before { background: linear-gradient(180deg, var(--gold-light), var(--gold), rgba(var(--gold-rgb), .1)); }
.section--dark .tl-item__dot { background: var(--burgundy-deep); border-color: rgba(var(--gold-rgb), .7); color: var(--gold-light); }
.section--dark .tl-item__time { color: var(--gold); }
.section--dark .tl-item__desc { color: var(--rose-light); }
.section--dark .tl-item:hover .tl-item__dot { background: var(--gold); color: var(--burgundy-deep); }

/* ---------- Narzędzia gościa (kafle) ---------- */
/* Spis jak w programie uroczystości: każda pozycja pod złotym hairline'em,
   bez pudełek. Po najechaniu linia zapełnia się burgundem. */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); }
.tool {
  position: relative; text-align: left;
  padding: var(--s-5) 0 0;
  background: none; border-top: 1px solid var(--line-gold);
  display: flex; flex-direction: column; gap: var(--s-3);
  cursor: pointer;
}
.tool::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--burgundy); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease-out);
}
.tool:hover::before, .tool:focus-visible::before { transform: scaleX(1); }
.tool__icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-gold); color: var(--burgundy);
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.tool:hover .tool__icon { background: var(--burgundy); border-color: var(--burgundy); color: var(--gold-light); }
.tool__icon svg { width: 21px; height: 21px; }
.tool__title { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; }
.tool__desc { font-size: var(--step--1); color: var(--ink-soft); }
.tool__cta { margin-top: auto; font-size: var(--step--2); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); display: inline-flex; align-items: center; gap: .5em; }
.tool__cta svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease-out); }
.tool:hover .tool__cta svg { transform: translateX(4px); }

/* ---------- RSVP ---------- */
.rsvp-shell { position: relative; }
.rsvp-card { background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-md); padding: clamp(1.75rem, 5vw, 3.5rem); border: 1px solid var(--line); }
.rsvp-steps { display: flex; gap: var(--s-2); margin-bottom: var(--s-6); }
.rsvp-steps__item { flex: 1; text-align: center; font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); transition: color var(--dur), border-color var(--dur); }
.rsvp-steps__item.is-active { color: var(--burgundy); border-color: var(--burgundy); }
.rsvp-steps__item.is-done { color: var(--burgundy); border-color: var(--rose); }
.rsvp-panel { display: none; }
.rsvp-panel.is-active { display: block; animation: fade-up .6s var(--ease-out) both; }
.rsvp-nav { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-6); flex-wrap: wrap; }
.rsvp-done { text-align: center; }
.rsvp-done__check { width: 88px; height: 88px; margin: 0 auto var(--s-5); border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--burgundy-soft), var(--burgundy)); color: var(--cream); animation: zoom-in .7s var(--ease-spring) both; }
.rsvp-done__check svg { width: 44px; height: 44px; }
.rsvp-done__check svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw-line 1s var(--ease-out) .35s forwards; }
.stepper { display: flex; align-items: center; gap: var(--s-3); }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-gold); display: grid; place-items: center; font-size: 1.3rem; line-height: 1; transition: background var(--dur), color var(--dur), border-color var(--dur); }
.stepper button:hover { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }
.stepper__val { font-family: var(--font-display); font-size: var(--step-2); min-width: 2.5ch; text-align: center; }
.rsvp-summary { background: var(--cream); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); font-size: var(--step--1); }
.rsvp-summary dt { color: var(--ink-mute); letter-spacing: .08em; text-transform: uppercase; font-size: var(--step--2); }
.rsvp-summary dd { margin-bottom: var(--s-3); font-weight: 500; }
.rsvp-summary dd:last-child { margin-bottom: 0; }

/* ---------- Informacje praktyczne ---------- */
/* Lista z hairline'ami zamiast osobnych pudełek */
.info-list { display: grid; border-top: 1px solid var(--line-gold); }
.info-row { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.info-row__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-gold); color: var(--burgundy); }
.info-row__icon svg { width: 19px; height: 19px; }

/* ---------- 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: var(--s-4);
  padding: var(--s-5) 0; text-align: left; font-family: var(--font-display);
  font-size: var(--step-1); transition: color var(--dur), padding var(--dur);
}
.faq__q:hover { color: var(--gold-deep); padding-left: var(--s-2); }
.faq__q i { flex: none; width: 18px; height: 18px; position: relative; color: var(--gold-deep); transition: transform var(--dur) var(--ease-out); }
.faq__q i::before, .faq__q i::after { content: ''; position: absolute; inset: 50% 0 auto 0; height: 1px; background: currentColor; transform: translateY(-50%); }
.faq__q i::after { transform: translateY(-50%) rotate(90deg); transition: transform var(--dur) var(--ease-out); }
.faq__item.is-open .faq__q i { transform: rotate(90deg); }
.faq__item.is-open .faq__q i::after { transform: translateY(-50%) rotate(0); }
.faq__a { overflow: hidden; height: 0; transition: height .5s var(--ease-out); }
.faq__a > div { padding-bottom: var(--s-5); color: var(--ink-soft); font-size: var(--step--1); max-width: 70ch; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s-5); }
.contact-card { text-align: center; padding: clamp(2rem, 4vw, 2.6rem); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-card__avatar { width: 72px; height: 72px; margin: 0 auto var(--s-4); border-radius: 50%; display: grid; place-items: center; background: var(--burgundy); color: var(--gold-light); font-family: var(--font-display); font-weight: 300; font-size: 1.9rem; box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line-gold); }
.contact-card__name { font-size: var(--step-2); }
.contact-card__role { font-family: var(--font-display); font-style: italic; font-size: var(--step-0); color: var(--gold-deep); margin-bottom: var(--s-4); }
.contact-card__phone { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: .04em; display: block; margin-bottom: var(--s-4); transition: color var(--dur); }
.contact-card__phone:hover { color: var(--gold-deep); }
.contact-card__actions { display: flex; justify-content: center; gap: var(--s-2); flex-wrap: wrap; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-gold); background: var(--white); color: var(--burgundy); transition: background var(--dur), color var(--dur), border-color var(--dur); }
.icon-btn:hover { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }
.icon-btn--primary { background: var(--burgundy); color: var(--gold-light); border-color: var(--burgundy); }
.icon-btn--primary:hover { background: var(--burgundy-deep); color: var(--gold-light); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- Księga gości / życzenia ---------- */
.wish-form { display: grid; gap: var(--s-4); }
.wishes { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: var(--s-6); }
.wish { position: relative; padding: var(--s-5); border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); animation: fade-in .5s var(--ease-out) both; }
.wish__text { font-family: var(--font-display); font-size: var(--step-1); font-style: italic; color: var(--ink-soft); }
.wish__meta { margin-top: var(--s-3); font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.wish__del { position: absolute; top: .6rem; right: .6rem; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; opacity: 0; color: var(--ink-mute); transition: opacity var(--dur), background var(--dur); }
.wish__del svg { width: 14px; height: 14px; }
.wish:hover .wish__del, .wish__del:focus-visible { opacity: 1; }
@media (hover: none) { .wish__del { opacity: .6; } }
.wish__del:hover { background: var(--cream); color: var(--wine); }

/* ---------- Piosenki ---------- */
.song-list { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.song { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); color: var(--ink); animation: fade-up .5s var(--ease-out) both; }
.song__num { font-family: var(--font-display); color: var(--gold-deep); min-width: 2ch; }
.song__title { flex: 1; color: var(--ink); font-size: var(--step--1); font-weight: 500; }
.song__by { font-size: var(--step--2); color: var(--ink-mute); }
.song__del { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-mute); transition: all var(--dur); }
.song__del svg { width: 14px; height: 14px; }
.song__del:hover { background: var(--cream); color: var(--wine); }

/* ---------- Stolik (wyszukiwarka) ---------- */
.seat-result { margin-top: var(--s-5); padding: var(--s-5); border-radius: var(--r-md); background: var(--cream); border: 1px solid var(--line-gold); text-align: center; animation: fade-in .5s var(--ease-out) both; }
.seat-result__table { font-family: var(--font-display); font-size: var(--step-3); color: var(--burgundy); }

/* ---------- Galeria / album ---------- */
.album-cta { --focus: var(--gold-light); text-align: center; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem); border-radius: var(--r-xl); background: var(--hero-background); color: var(--cream); position: relative; overflow: hidden; outline-color: rgba(var(--gold-light-rgb), .35); }
.album-cta::before { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .07; pointer-events: none; }
.album-cta > * { position: relative; }

/* ---------- Stopka ---------- */
.site-footer { --focus: var(--gold-light); background: var(--burgundy-deep); color: var(--sand); padding: var(--s-9) 0 var(--s-6); text-align: center; }
.site-footer a { transition: color var(--dur); }
.site-footer a:hover { color: var(--gold-light); }
.footer__monogram { font-family: var(--font-display); font-weight: 300; font-size: var(--step-4); color: var(--gold-light); letter-spacing: .1em; }
.footer__nav { display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap; margin: var(--s-5) 0; font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; }
.footer__meta { font-size: var(--step--2); opacity: .6; margin-top: var(--s-5); }

/* ---------- Dock (szybka nawigacja) ---------- */
.dock {
  --focus: var(--gold-light);
  position: fixed; z-index: 940; left: 50%; bottom: clamp(.75rem, 2.5vw, 1.5rem);
  transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: .3rem;
  padding: .5rem .6rem; border-radius: var(--r-full);
  background: rgba(var(--burgundy-deep-rgb),.9); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-light);
  transition: transform .6s var(--ease-spring), opacity var(--dur);
  max-width: calc(100vw - 1.5rem); overflow-x: auto; scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }
.dock.is-visible { transform: translate(-50%, 0); }
.dock__btn {
  position: relative; display: flex; align-items: center; gap: .5em;
  padding: .6em .95em; border-radius: var(--r-full); color: var(--sand);
  font-size: var(--step--2); font-weight: 500; letter-spacing: .06em;
  white-space: nowrap; transition: background var(--dur), color var(--dur), transform var(--dur) var(--ease-spring);
}
.dock__btn:hover { background: rgba(255,255,255,.1); color: var(--gold-light); }
.dock__btn svg { width: 17px; height: 17px; }
.dock__btn--accent { background: var(--gold); color: var(--burgundy-deep); }
.dock__btn--accent:hover { background: var(--gold-light); color: var(--burgundy-deep); }
@media (max-width: 640px) { .dock__btn span { display: none } .dock__btn { padding: .7em } .dock__btn--accent span { display: inline } }

/* ---------- Do góry ---------- */
.to-top {
  position: fixed; right: clamp(.75rem, 2.5vw, 1.5rem); bottom: clamp(4.5rem, 9vw, 6rem); z-index: 940;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-md); color: var(--burgundy);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all var(--dur) var(--ease-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--burgundy); color: var(--cream); transform: translateY(-3px); }
.to-top svg { width: 19px; height: 19px; }

/* ---------- Baner zaproszenia (dla gościa z linku) ---------- */
.guest-banner {
  display: none; align-items: center; gap: var(--s-4); justify-content: center;
  --focus: var(--gold-light);
  padding: var(--s-3) var(--s-4); background: rgba(var(--burgundy-deep-rgb), .55);
  border-block: 1px solid rgba(var(--gold-light-rgb), .25);
  color: var(--cream); font-size: var(--step--1); letter-spacing: .02em;
  text-align: center; flex-wrap: wrap;
}
.guest-banner svg { width: 18px; height: 18px; color: var(--gold); }
.guest-banner strong { color: var(--gold-light); font-weight: 500; }
.guest-banner .btn { --btn-bg: var(--gold); --btn-fg: var(--burgundy-deep); }
/* Baner leży tuż pod (przezroczystym) nagłówkiem i przewija się razem ze stroną;
   hero odsuwa treść o jego wysokość (--banner-h ustawia site.js). */
.guest-banner.is-visible {
  display: flex; position: absolute; top: var(--header-h); left: 0; right: 0; z-index: 900;
  animation: fade-down .7s var(--ease-out) both;
}
body.has-guest-banner .hero { padding-top: calc(var(--header-h) + var(--banner-h, 3.5rem) + 1.5rem); }

/* ---------- Sekcja "odliczanie" w hero ---------- */
.hero .countdown { margin-top: 0; }

/* ---------- Drobne ---------- */
/* Dopisek pod licznikiem („364 dni do ślubu”) — kursywą, bez pigułki */
.badge-soft { display: inline-block; font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--gold-light); }
.copy-feedback { color: var(--burgundy); font-size: var(--step--2); margin-left: .5em; opacity: 0; transition: opacity var(--dur); }
.copy-feedback.is-on { opacity: 1; }
