/* ==========================================================
   Rafał & Marta — strona ślubna
   Paleta: złoto · szałwiowa zieleń · biel · beż
   ========================================================== */

:root {
  --gold: #b08d3e;
  --gold-light: #cfb26b;
  --gold-pale: #f3ead6;
  --sage: #7d8f74;
  --sage-deep: #5c6e54;
  --sage-pale: #eef1ea;
  --ivory: #fdfcf8;
  --beige: #f6f1e7;
  --ink: #3d3a33;
  --ink-soft: #6f6a5e;

  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-script: "Great Vibes", cursive;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 10px 34px rgba(97, 86, 60, 0.12);
  --shadow-soft: 0 4px 18px rgba(97, 86, 60, 0.08);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background-color: var(--ivory);
  /* subtelna tekstura: delikatna kratka + kwiatowe plamy koloru */
  background-image:
    radial-gradient(ellipse 60% 40% at 8% 12%, rgba(125, 143, 116, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 35% at 95% 30%, rgba(176, 141, 62, 0.05), transparent 60%),
    radial-gradient(ellipse 55% 40% at 15% 85%, rgba(176, 141, 62, 0.04), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(97, 86, 60, 0.014) 2px 4px);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ---------- Nawigacja ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
  transition: color 0.4s;
}
.nav__logo span { color: var(--gold-light); font-style: italic; }
.nav.is-scrolled .nav__logo { color: var(--ink); }
.nav.is-scrolled .nav__logo span { color: var(--gold); }

.nav__menu { display: flex; gap: 1rem; }
.nav__menu a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.75rem;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.4s;
}
.nav.is-scrolled .nav__menu a { color: var(--ink-soft); }
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s var(--ease);
}
.nav__menu a:hover::after, .nav__menu a:focus-visible::after { right: 0; }
.nav__menu a:hover { color: var(--gold-light); }
.nav.is-scrolled .nav__menu a:hover { color: var(--gold); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav.is-scrolled .nav__toggle span, .nav.menu-open .nav__toggle span { background: var(--ink); }
.nav.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    url("../images/hero.jpg") center 30% / cover no-repeat,
    linear-gradient(160deg, #6d7d64 0%, #8a9a7d 35%, #b3a377 70%, #8f7c4e 100%);
  transform: scale(1.05);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 40, 30, 0.45) 0%, rgba(35, 40, 30, 0.25) 45%, rgba(35, 40, 30, 0.55) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 6.5rem 1.25rem 4rem; max-width: 900px; }

.hero__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--gold-pale);
}
.hero__names {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  line-height: 1.15;
  margin: 1rem 0 0.4rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero__names .amp {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.55em;
  color: var(--gold-light);
  vertical-align: 8%;
  margin: 0 0.1em;
}
.hero__divider { color: var(--gold-light); }
.hero__divider svg { width: 220px; height: 24px; }
.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-style: italic;
  margin-top: 0.6rem;
  letter-spacing: 0.04em;
}
.hero__date {
  margin-top: 0.8rem;
  font-size: 1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-pale);
}

/* Odliczanie */
.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.4rem, 2vw, 1.1rem);
  margin-top: 2.4rem;
}
.countdown__item {
  background: rgba(253, 252, 248, 0.12);
  border: 1px solid rgba(207, 178, 107, 0.45);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 1rem 0.4rem 0.8rem;
  min-width: clamp(72px, 18vw, 108px);
}
.countdown__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-top: 0.25rem;
}
.countdown__sep {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold-light);
  align-self: center;
  padding-bottom: 1rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  background: var(--gold-light);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite var(--ease);
}
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Sekcje ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--tinted { background: linear-gradient(180deg, var(--beige) 0%, var(--sage-pale) 100%); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 760px; }

.section__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.6rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3rem);
  letter-spacing: 0.02em;
}
.section__ornament { color: var(--gold); margin-top: 0.9rem; }
.section__ornament svg { width: 160px; height: 20px; }
.section__desc { max-width: 540px; margin: 1.1rem auto 0; color: var(--ink-soft); }

/* ---------- Karty ---------- */
.card {
  background: #fff;
  border: 1px solid rgba(176, 141, 62, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.8rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* ---------- O nas ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(176, 141, 62, 0.25);
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--sage-pale), var(--gold-pale));
}
.about__frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(176, 141, 62, 0.45);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--sage);
  text-align: center;
  font-size: 0.95rem;
}
.about__frame.is-empty .about__placeholder { display: flex; }
.about__lead {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.about__text p + p { margin-top: 1rem; }
.about__sign {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--sage-deep);
  margin-top: 1.4rem !important;
}

/* ---------- Informacje ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.info-grid .card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.info-grid .card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon {
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: var(--gold-pale);
  margin-bottom: 1.1rem;
}
.info-grid h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.card__big { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.card__muted { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.3rem; }
.info-grid .btn { margin-top: auto; }
.info-grid .card__muted + .btn { margin-top: 1.2rem; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.btn--outline {
  color: var(--sage-deep);
  border: 1px solid var(--sage);
  background: transparent;
}
.btn--outline:hover { background: var(--sage); color: #fff; }
.btn--gold {
  color: #fff;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 6px 20px rgba(176, 141, 62, 0.35);
  width: 100%;
  padding: 1rem 1.7rem;
  font-size: 0.95rem;
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(176, 141, 62, 0.45); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Formularz RSVP ---------- */
.rsvp { padding: clamp(1.8rem, 4vw, 2.8rem); }
.field { margin-bottom: 1.5rem; border: 0; }
.field label, .field legend {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.55rem;
}
.optional { text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-size: 0.8rem; }

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid rgba(125, 143, 116, 0.4);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 62, 0.15);
}

.pills { display: flex; gap: 0.7rem; }
.pills--wrap { flex-wrap: wrap; }
.pill { position: relative; cursor: pointer; }
.pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.pill span {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 143, 116, 0.45);
  background: var(--ivory);
  font-size: 0.93rem;
  transition: all 0.3s var(--ease);
  user-select: none;
}
.pill:hover span { border-color: var(--sage); }
.pill input:checked + span {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
  box-shadow: 0 4px 14px rgba(125, 143, 116, 0.35);
}
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.field--hidden {
  display: none;
  animation: fieldIn 0.45s var(--ease);
}
.field--hidden.is-visible { display: block; }
@keyframes fieldIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.rsvp__error { color: #a3552f; font-size: 0.9rem; margin-top: 1rem; text-align: center; }

.rsvp-thanks {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--ink);
  animation: fieldIn 0.6s var(--ease);
}
.rsvp-thanks svg { color: var(--gold); margin: 0 auto 1rem; display: block; }
.rsvp-thanks h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.rsvp-thanks p { color: var(--ink-soft); max-width: 420px; margin: 0 auto; }
.rsvp-thanks__sign {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--sage-deep);
  margin-top: 1.2rem !important;
}

/* ---------- Harmonogram ---------- */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 89px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
}
.timeline__item {
  display: flex;
  gap: 2.2rem;
  padding: 1.1rem 0;
  position: relative;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 84.5px;
  top: 1.75rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(176, 141, 62, 0.15);
}
.timeline__time {
  flex: 0 0 64px;
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--sage-deep);
  padding-top: 0.35rem;
}
.timeline__body {
  background: #fff;
  border: 1px solid rgba(176, 141, 62, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.5rem;
  flex: 1;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.timeline__item:hover .timeline__body { transform: translateX(4px); box-shadow: var(--shadow); }
.timeline__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}
.timeline__body p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.15rem; }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.contact__person { text-align: center; }
.contact__name {
  font-family: var(--font-script);
  font-size: 2.1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sage-deep);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.contact__link:hover { color: var(--gold); border-color: var(--gold); }
.contact__mail { text-align: center; margin-top: 1.8rem; }

/* ---------- Stopka ---------- */
.footer {
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  background: linear-gradient(180deg, var(--sage-pale), var(--beige));
  border-top: 1px solid rgba(176, 141, 62, 0.15);
}
.footer__names { font-family: var(--font-script); font-size: 2.4rem; color: var(--sage-deep); }
.footer__names span { color: var(--gold); }
.footer__date { letter-spacing: 0.5em; color: var(--ink-soft); font-size: 0.85rem; margin-top: 0.4rem; }

/* ---------- Galeria (podstrona) ---------- */
.page-hero {
  position: relative;
  padding: 9rem 1.5rem 4.5rem;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(35, 40, 30, 0.5), rgba(35, 40, 30, 0.35)),
    url("../images/hero.jpg") center 35% / cover no-repeat,
    linear-gradient(160deg, #6d7d64, #8f7c4e);
}
.page-hero h1 { font-family: var(--font-script); font-weight: 400; font-size: clamp(2.6rem, 7vw, 4.5rem); }
.page-hero p { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; margin-top: 0.4rem; color: var(--gold-pale); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(176, 141, 62, 0.2);
  aspect-ratio: 3 / 4;
  background: linear-gradient(150deg, var(--sage-pale), var(--gold-pale));
  cursor: zoom-in;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gallery__item:nth-child(3n + 2) { aspect-ratio: 3 / 3.6; }
.gallery__item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--sage);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* Warianty tła podstron */
.page-hero--gosci {
  background:
    linear-gradient(180deg, rgba(35, 40, 30, 0.5), rgba(35, 40, 30, 0.35)),
    url("../images/dla-gosci.jpg") center 60% / cover no-repeat,
    linear-gradient(160deg, #6d7d64, #8f7c4e);
}
.page-hero--ksiega {
  background:
    linear-gradient(180deg, rgba(35, 40, 30, 0.55), rgba(35, 40, 30, 0.4)),
    url("../images/ksiega.jpg") center 45% / cover no-repeat,
    linear-gradient(160deg, #6d7d64, #8f7c4e);
}
.page-hero--historia {
  background:
    linear-gradient(180deg, rgba(35, 40, 30, 0.5), rgba(35, 40, 30, 0.35)),
    url("../images/sesja/02.jpg") center 40% / cover no-repeat,
    linear-gradient(160deg, #6d7d64, #8f7c4e);
}

/* ---------- Nasza historia ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}
.story + .story {
  border-top: 1px solid rgba(176, 141, 62, 0.18);
}
.story--reverse .story__photo { order: 2; }
.story--reverse .story__text { order: 1; }
.story__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(176, 141, 62, 0.25);
  aspect-ratio: 4 / 3;
}
.story__frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(253, 252, 248, 0.55);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}
.story__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.story:hover .story__frame img { transform: scale(1.04); }
.story__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}
.story__text h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 0.9rem;
}
.story__text p + p { margin-top: 0.9rem; }
.story__text .btn { margin-top: 1.4rem; }

/* ---------- FAQ (Dla gości) ---------- */
.faq { display: grid; gap: 0.9rem; }
.faq__item {
  background: #fff;
  border: 1px solid rgba(176, 141, 62, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease);
}
.faq__item[open] { box-shadow: var(--shadow); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3.2rem 1.1rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  position: relative;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq__item summary:hover { color: var(--gold); }
.faq__item p {
  padding: 0 1.5rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.faq__item a { color: var(--gold); }
.faq__more { text-align: center; margin-top: 2rem; color: var(--ink-soft); }
.faq__more a { color: var(--gold); }

/* ---------- Księga gości ---------- */
.guestbook { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
.guestbook__entry {
  padding: 1.6rem 1.8rem 1.3rem;
  position: relative;
  animation: fieldIn 0.5s var(--ease);
}
.guestbook__entry::before {
  content: "\201D";
  position: absolute;
  top: 0.2rem;
  right: 1.2rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold-pale);
}
.guestbook__message { font-size: 1.02rem; position: relative; z-index: 1; }
.guestbook__meta {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.guestbook__name {
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: var(--sage-deep);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(30, 32, 26, 0.92);
  padding: 2rem;
}
.lightbox.is-open { display: flex; animation: fieldIn 0.3s var(--ease); }
.lightbox img {
  max-width: min(92vw, 1000px);
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 1.2rem; right: 1.6rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-display);
}

/* ---------- Animacje przewijania ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-load {
  opacity: 0;
  transform: translateY(20px);
  animation: revealLoad 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes revealLoad { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-load { opacity: 1; transform: none; transition: none; animation: none; }
  .hero__bg { animation: none; transform: none; }
  .hero__scroll span { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 960px) {
  .info-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .about { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .story--reverse .story__photo { order: 0; }
  .story--reverse .story__text { order: 1; }
}

@media (max-width: 1240px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--ivory);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav.menu-open .nav__menu { transform: none; }
  .nav__menu a { color: var(--ink-soft) !important; font-size: 1rem; }
  .nav__toggle { position: relative; z-index: 110; }
}

@media (max-width: 760px) {
  .countdown__item { min-width: 0; flex: 1; max-width: 90px; }
  .countdown__sep { display: none; }
  .countdown { gap: 0.6rem; }

  .timeline::before { left: 63px; }
  .timeline__item::before { left: 58.5px; }
  .timeline__time { flex-basis: 44px; font-size: 1.1rem; }
  .timeline__item { gap: 1.6rem; }

  .contact { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item, .gallery__item:nth-child(3n + 2) { aspect-ratio: 4 / 5; }
}
