/* ============================================================
   Oliwia & Patryk — Toskania 2027
   Paleta: kremowy papier, zieleń cyprysa z koperty, zgaszony
   błękit paszportu, złoto folii i odrobina toskańskiej terakoty.
   ============================================================ */

:root {
  color-scheme: light;

  --paper: #f7f2e9;
  --paper-2: #efe6d6;
  --card: #fffdf8;
  --ink: #2b3833;
  --ink-soft: #5b6560;
  --line: #ddd2bf;

  --cypress: #34463f;
  --cypress-2: #2a3833;
  --sage: #6f8783;
  --sage-light: #c9d4cf;
  --gold: #a07b45;        /* złoto na jasnym tle (czytelne) */
  --gold-light: #d2b07a;  /* złoto na ciemnym tle */
  --terracotta: #b5623f;
  --ryanair: #2f5d9e;
  --wizz: #c53d80;
  --olive: #8a8a5c;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 56, 51, .06), 0 10px 30px -12px rgba(43, 56, 51, .22);
  --gutter: 16px;
  --max: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Na laptopach i większych ekranach wszystko proporcjonalnie większe */
@media (min-width: 1100px) { html { font-size: 112.5%; } }
@media (min-width: 1400px) { html { font-size: 125%; } }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  -webkit-text-size-adjust: 100%;
  /* Bez przesuwania strony na boki (Safari na iPhonie ignoruje to na samym body) */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  overflow-x: clip; /* clip, nie hidden: inaczej przestałoby działać przyklejone menu */
  position: relative;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
strong { font-weight: 600; }

.eyebrow {
  font-family: var(--sans);
  font-size: .84rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold-light); color: var(--cypress-2); }
.btn--gold:hover { background: #e0c290; color: var(--cypress-2); }
.btn--outline { border-color: var(--gold); color: var(--gold); background: transparent; margin-top: 1rem; }
.btn--outline:hover { background: var(--gold); color: var(--card); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* ============================================================
   BRAMKA Z HASŁEM (okładka paszportu)
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px var(--gutter);
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,.7), transparent 60%),
    var(--paper-2);
  overflow-y: auto;
}
.unlocked .gate { display: none; }
.site { display: none; }
.unlocked .site { display: block; }

.passport {
  width: 100%;
  max-width: 24rem;
  padding: 2.5rem 2rem 2rem;
  border-radius: 10px 22px 22px 10px;
  background: linear-gradient(160deg, #7d9593, #637c7a);
  color: var(--gold-light);
  text-align: center;
  box-shadow: inset 6px 0 0 rgba(0,0,0,.08), 0 30px 60px -25px rgba(43,56,51,.6);
}
.passport__title {
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: .3em;
  margin-right: -.3em;
  text-transform: uppercase;
  line-height: 1;
}
.passport__subtitle {
  font-family: var(--sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-top: .5rem;
}
.passport__plane { width: 80px; height: 80px; fill: var(--gold-light); margin: 1.4rem auto .6rem; display: block; transform: rotate(45deg); }
.passport__names { font-family: var(--script); font-size: 2.6rem; color: #f3e6cd; line-height: 1.2; }
.passport__date { font-size: 1rem; color: #eef1ee; margin-bottom: 1.8rem; }
.passport__label {
  display: block;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #eef1ee;
  margin-bottom: .4rem;
}
.passport__input {
  width: 100%;
  min-height: 48px;
  padding: .6rem 1rem;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font: 500 1.15rem var(--serif);
  text-align: center;
  letter-spacing: .08em;
}
.passport__hint { font-size: .95rem; color: #eef1ee; margin: .6rem 0 1.2rem; line-height: 1.35; }
.passport__error { color: #fff; background: rgba(181, 98, 63, .85); border-radius: 8px; padding: .4rem .8rem; font-size: .95rem; margin-bottom: 1rem; }
.passport .btn { width: 100%; }
.passport__loading {
  display: none;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #f3e6cd;
  margin-top: 1rem;
  animation: pulse 1.4s ease-in-out infinite;
}
.passport.is-loading .passport__loading { display: block; }
.passport.is-loading .btn { opacity: .6; pointer-events: none; }
/* Powracający gość: zamiast formularza tylko "Trwa odprawa…" */
.restoring .passport__label,
.restoring .passport__input,
.restoring .passport__hint,
.restoring .passport .btn { display: none; }
.restoring .passport__loading { display: block; }
/* Niskie ekrany laptopów: paszport ciaśniej, żeby zmieścił się w całości */
@media (max-height: 860px) {
  .gate { padding-top: 16px; padding-bottom: 16px; }
  .passport { padding: 1.7rem 2rem 1.5rem; }
  .passport__plane { width: 3.2rem; height: 3.2rem; margin: .8rem auto .2rem; }
  .passport__date { margin-bottom: 1.1rem; }
  .passport__hint { margin: .5rem 0 .9rem; }
}
@keyframes pulse { 50% { opacity: .45; } }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ============================================================
   NAWIGACJA
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--gutter);
  height: 3.75rem;
  background: var(--cypress);
  color: var(--gold-light);
}
.nav__brand {
  font-family: var(--script);
  font-size: 1.7rem;
  color: var(--gold-light);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__links {
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  display: flex;
  gap: .25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}
.nav__links::-webkit-scrollbar { display: none; }
@media (max-width: 899px) {
  .nav__links { mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
}
.nav__links a {
  display: block;
  padding: .55rem .8rem;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #e8ece9;
  border-radius: 999px;
}
.nav__links a:hover, .nav__links a.active { color: var(--cypress-2); background: var(--gold-light); }

/* ============================================================
   HERO — karta pokładowa
   ============================================================ */
.hero {
  position: relative;
  padding: 3rem var(--gutter) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #fff8ec 0%, transparent 70%),
    linear-gradient(180deg, #f9ecd9 0%, var(--paper) 70%);
  overflow: hidden;
}

.hero__names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.4rem, 13vw, 6rem);
  color: var(--ink);
  line-height: 1.1;
  margin-top: .8rem;
}
.hero__names span { color: var(--gold); font-size: .75em; }
.hero__lead { font-style: italic; color: var(--ink-soft); font-size: 1.3rem; margin-top: .3rem; }
.hero__meta { margin-top: 1rem; font-size: 1.15rem; line-height: 1.5; }
.hero__meta strong { color: var(--cypress); }
.hero__dot { display: none; }
@media (min-width: 640px) {
  .hero__dot { display: inline; }
  .hero__br { display: none; }
}

/* ---------- Nasze zdjęcia (polaroidy) ---------- */
.polaroids {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem .7rem;
  max-width: 26rem;
  margin: 2.2rem auto 0;
}
.polaroid {
  margin: 0;
  padding: 5px 5px 20px;
  background: #fffdf8;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(43, 56, 51, .12), 0 14px 26px -14px rgba(43, 56, 51, .5);
  transform: rotate(var(--r, 0deg));
  transition: transform .35s ease;
}
.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-2);
  opacity: 0;
  transition: opacity .6s ease;
}
.polaroid img.is-loaded { opacity: 1; }
.polaroid:nth-child(1) { --r: -4deg; }
.polaroid:nth-child(2) { --r: 2.5deg; }
.polaroid:nth-child(3) { --r: -1.5deg; }
.polaroid:nth-child(4) { --r: 3deg; }
.polaroid:nth-child(5) { --r: -2.5deg; }
.polaroid:nth-child(6) { --r: 1.8deg; }

@media (min-width: 760px) {
  .polaroids { display: flex; justify-content: center; max-width: 66rem; gap: 0; margin-top: 2.8rem; }
  .polaroid { width: min(11rem, 15.5vw); padding: 8px 8px 30px; margin: 0 -.45rem; }
  .polaroid:nth-child(even) { margin-top: 1.6rem; }
  .polaroid:hover { transform: rotate(0deg) translateY(-6px) scale(1.05); position: relative; z-index: 3; }
}

/* ---------- Odliczanie ---------- */
.countdown { position: relative; z-index: 2; margin: 2.5rem auto 0; max-width: 33rem; }
.countdown__label { font-family: var(--sans); font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .8rem; }
.countdown__grid div {
  background: rgba(255,253,248,.75);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .7rem .3rem;
}
.countdown__grid span { display: block; font-size: 2rem; font-weight: 600; color: var(--cypress); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown__grid small { font-family: var(--sans); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Toskańskie wzgórza ---------- */
.hills { display: block; width: calc(100% + 2 * var(--gutter)); height: 140px; margin: -10px calc(-1 * var(--gutter)) 0; position: relative; z-index: 1; }
.hills__far { fill: #d9dccb; }
.hills__mid { fill: #b7c0a6; }
.hills__near { fill: var(--paper); }
.cypresses { position: absolute; left: 0; right: 0; bottom: 18px; height: 90px; z-index: 1; pointer-events: none; }
.cypresses svg { position: absolute; bottom: 0; width: 18px; fill: #5d6f55; }

@media (min-width: 760px) {
  .hills { height: 200px; margin-top: -40px; }
  .cypresses { bottom: 26px; }
}

/* ============================================================
   SEKCJE
   ============================================================ */
.section { padding: 4.5rem var(--gutter); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--tinted { background: var(--paper-2); }
.section--dark { background: var(--cypress); color: #eef1ee; }
.section--dark .eyebrow { color: var(--gold-light); }
.section--dark .section__head h2 { color: #fbf6ec; }
.section--dark .section__intro { color: #dfe5e1; }
.section--dark strong { color: var(--gold-light); }

.section__head { text-align: center; margin-bottom: 2.6rem; }
.section__head h2 { font-size: clamp(2.1rem, 6vw, 3rem); color: var(--cypress); }
.section__head h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 14px;
  margin: .9rem auto 0;
  background:
    radial-gradient(circle, var(--gold) 2px, transparent 2.5px) center / 14px 14px no-repeat,
    linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 42%, transparent 42%, transparent 58%, var(--gold) 58%, var(--gold) 80%, transparent) center / 100% 1px no-repeat;
}
.section__intro { max-width: 42rem; margin: 1rem auto 0; color: var(--ink-soft); }

.card__label {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

.cards { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 760px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card--accent { border-color: var(--terracotta); box-shadow: inset 4px 0 0 var(--terracotta); }
.card--accent .card__label { color: var(--terracotta); }

/* ---------- Plan dnia ---------- */
.days { list-style: none; padding: 0; display: grid; gap: 1.2rem; }
.day {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
}
.day--main { border-color: var(--gold); box-shadow: var(--shadow); }
.day__stamp {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  border: 2px solid var(--sage);
  outline: 1px dashed var(--sage);
  outline-offset: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cypress);
  transform: rotate(-8deg);
}
.day--main .day__stamp { border-color: var(--terracotta); outline-color: var(--terracotta); color: var(--terracotta); }
.day__num { font-size: 1.9rem; font-weight: 600; line-height: 1; }
.day__wk { font-family: var(--sans); font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; }
.day__badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--card);
  background: var(--terracotta);
  padding: .2rem .7rem;
  border-radius: 999px;
  margin-bottom: .4rem;
}
.day h3 { font-size: 1.7rem; color: var(--cypress); margin-bottom: .8rem; padding-right: 5rem; }
.day__badge { margin-right: 5rem; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.timeline li {
  display: grid;
  grid-template-columns: 1fr;
  gap: .1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--sage-light);
}
.timeline time {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.timeline strong { font-size: 1.2rem; }
.timeline p { color: var(--ink-soft); font-size: 1.08rem; }

@media (min-width: 760px) {
  .day { grid-template-columns: 7rem 1fr; padding: 1.8rem 2rem; }
  .day__stamp { position: static; width: 92px; height: 92px; }
  .day__wk { font-size: .64rem; letter-spacing: .14em; }
  .day h3 { padding-right: 0; }
  .day__num { font-size: 2.4rem; }
  .timeline li { grid-template-columns: 9rem 1fr; gap: 1rem; }
  .timeline time { padding-top: .3rem; }
}

/* ---------- Mapa ---------- */
.map {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: none; /* na telefonie bez podglądu mapy: wystarczy przycisk „Otwórz w Mapach Google” */
  background: var(--paper-2);
}
@media (min-width: 760px) { .map { display: block; aspect-ratio: 16 / 9; } }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.75) sepia(.12); }

/* ---------- Lotniska ---------- */
.airports { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; max-width: 44rem; }
.airport {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
}
.airport__code { font-family: var(--sans); font-size: 1.9rem; letter-spacing: .12em; color: var(--cypress); font-weight: 500; }
.airport__name { line-height: 1.25; margin: .3rem 0 .5rem; }
.airport__name small { color: var(--ink-soft); font-size: .9rem; }
.airport__time { font-family: var(--sans); font-size: .8rem; letter-spacing: .06em; color: var(--gold); }

.flights {
  margin-top: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem;
  box-shadow: var(--shadow);
}
.flights__head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.flights__icon { flex-shrink: 0; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--cypress); fill: var(--gold-light); transform: rotate(45deg); }
.flights__head h3 { font-size: 1.6rem; color: var(--cypress); }
.flights__head p { color: var(--ink-soft); }

.flights__form { display: grid; max-width: 24rem; }
.flights__form label { display: grid; gap: .3rem; min-width: 0; }
.flights__form span { font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.flights__form select, .flights__form input {
  width: 100%;
  min-height: 48px;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 500 1.1rem var(--serif);
  appearance: none;
  -webkit-appearance: none;
}
.flights__form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}


/* ---------- Ryanair: ceny na żywo ---------- */
.live {
  margin-top: 1.3rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.live__dest + .live__dest { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); }
.live__dest h4 { margin: 0 0 .6rem; font-size: 1.3rem; font-weight: 600; color: var(--cypress); }
.live__dest h4 small { font-family: var(--sans); font-size: .8rem; font-weight: 400; letter-spacing: .1em; color: var(--ink-soft); }
.live__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; margin-bottom: .8rem; }
.live__head .card__label { margin: 0; }
.live__hint { margin: -.4rem 0 .9rem; font-size: 1rem; font-style: italic; color: var(--ink-soft); }
.live__legend { display: flex; gap: 1rem; font-family: var(--sans); font-size: .8rem; letter-spacing: .06em; color: var(--ink-soft); }
.live__key { display: inline-flex; align-items: center; gap: .4rem; }
.live__key::before { content: ""; width: 1rem; height: .75rem; border-radius: 3px; border: 2px solid var(--key); background: var(--card); }
.live__key--ryanair { --key: var(--ryanair); }
.live__key--wizz { --key: var(--wizz); }
.live__leg + .live__leg { margin-top: .9rem; }
.live__title { font-family: var(--sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; }
.live__days {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(6.5rem, 1fr);
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .2rem;
  scrollbar-width: thin;
}
.live__day {
  display: grid;
  gap: .1rem;
  padding: .6rem .5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  text-align: center;
}
.live__day.is-empty { opacity: .55; }
.live__day--ryanair { border: 2px solid var(--ryanair); }
.live__day--wizz { border: 2px solid var(--wizz); }
.live__date { font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.live__time { font-family: var(--sans); font-size: .78rem; color: var(--ink-soft); white-space: nowrap; }
.live__price { font-size: 1.3rem; font-weight: 600; line-height: 1.2; color: var(--terracotta); }
.live.is-loading .live__days { opacity: .45; }
.live__msg { color: var(--ink-soft); font-size: 1.05rem; }
.flights__note { margin-top: 1.2rem; font-size: 1.02rem; color: var(--ink-soft); }

/* ---------- Okolica ---------- */
.places { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .places { grid-template-columns: repeat(3, 1fr); } }
.place {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.place__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.place__body { padding: 1.2rem 1.4rem 1.5rem; }
.place + .gallery__credit, .places + .gallery__credit { margin-top: .5rem; text-align: right; }
.place:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.place__time {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: .15rem .65rem;
  margin-bottom: .7rem;
}
.place h3 { font-size: 1.55rem; color: var(--cypress); margin-bottom: .35rem; }
.place p { color: var(--ink-soft); font-size: 1.05rem; }


/* ---------- Potwierdzenie obecności (na górze strony) ---------- */
.invite {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  margin: 2.8rem auto 0;
  padding: 1.8rem 1.6rem 1.9rem;
  background: rgba(255, 253, 248, .92);
  border: 1px solid var(--gold-light);
  border-radius: 6px;
  outline: 1px solid rgba(210, 176, 122, .45);
  outline-offset: -9px;
  box-shadow: var(--shadow);
  text-align: center;
}
.invite__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: var(--gold);
  font-size: .9rem;
}
.invite__ornament::before, .invite__ornament::after { content: ""; width: 3rem; height: 1px; background: var(--gold-light); }
.invite__title { font-size: clamp(1.9rem, 5.5vw, 2.4rem); color: var(--cypress); line-height: 1.2; margin-top: .5rem; }
.invite__date { font-size: 1.15rem; color: var(--ink); margin-top: .4rem; }
.invite__date strong { color: var(--cypress); }
.invite__text { max-width: 28rem; margin: .9rem auto 1.3rem; color: var(--ink-soft); font-size: 1.1rem; }
.invite__sms { margin-top: 1.3rem; color: var(--ink-soft); font-size: 1.05rem; }
.rsvp__phones { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; justify-content: center; gap: .4rem; }
.rsvp__phones li { display: grid; grid-template-columns: 4.5rem auto; align-items: baseline; gap: .8rem; text-align: left; }
.rsvp__name { color: var(--ink-soft); text-align: right; }
.rsvp__phone { font-family: var(--sans); font-size: 1.1rem; font-weight: 500; letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; color: var(--cypress); text-decoration: none; white-space: nowrap; }
.rsvp__phone:hover { color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; display: grid; gap: .7rem; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 1.3rem;
}
.faq details[open] { border-color: var(--gold-light); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 2rem 1.05rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cypress);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; color: var(--ink-soft); }

/* ---------- Stopka ---------- */
.footer {
  text-align: center;
  padding: 3.5rem var(--gutter) 3rem;
  background: var(--paper-2);
  color: var(--ink-soft);
}
.footer__plane { width: 32px; height: 32px; fill: var(--gold); transform: rotate(45deg); }
.footer__names { font-family: var(--script); font-size: 2.6rem; color: var(--cypress); line-height: 1.3; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Galeria Tenuty ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 8.5rem;
  gap: .5rem;
  margin-bottom: .4rem;
}
.gallery__item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper);
}
.gallery__item:first-child { grid-column: 1 / -1; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.04); }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 11rem; gap: .7rem; }
  .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(2) { grid-row: span 2; }
  .gallery__item:nth-child(7) { grid-column: span 2; }
}
.gallery__credit { text-align: right; font-family: var(--sans); font-size: .78rem; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 1.5rem; }
.gallery__credit a { color: inherit; }

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(30, 40, 36, .94);
  color: #fbf6ec;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(30, 40, 36, .94); }
.lightbox figure { margin: 0; padding: 56px 12px 16px; max-width: 100%; text-align: center; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100dvh - 120px); border-radius: 8px; display: block; margin: 0 auto; }
.lightbox figcaption { margin-top: .7rem; font-style: italic; color: #dfe5e1; }
.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 28, 25, .55);
  color: #fbf6ec;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__btn:hover { background: rgba(20, 28, 25, .8); }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
