/* ===== Zmienne ===== */
:root {
  --bg: #faf7f2;
  --bg-accent: #f1ece3;
  --ink: #3a342c;
  --muted: #7c7468;
  --gold: #b89b6e;
  --gold-dark: #7a6a55;
  --line: #e3dccf;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Segoe UI", sans-serif;
  --shadow: 0 12px 40px rgba(58, 52, 44, 0.10);
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Nawigacja ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav--scrolled { border-color: var(--line); box-shadow: 0 2px 20px rgba(0,0,0,.05); }
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-dark);
  text-decoration: none;
}
.nav__menu { display: flex; gap: 28px; }
.nav__menu a {
  text-decoration: none;
  color: var(--ink);
  font-size: .82rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .25s;
}
.nav__menu a:hover { color: var(--gold-dark); }
.nav__menu a:hover::after { width: 100%; }

/* Przełącznik języka */
.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 16px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
}
.nav__lang a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.nav__lang .flag {
  border: 1px solid var(--line);
  border-radius: 2px;
  display: block;
  flex: 0 0 auto;
}
.nav__lang a:hover { color: var(--gold-dark); }
.nav__lang a.is-active { color: var(--gold-dark); border-bottom: 2px solid var(--gold); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--gold-dark);
  transition: .3s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: linear-gradient(rgba(40,34,28,.4), rgba(40,34,28,.5)),
    url("tlo.webp") center/cover no-repeat fixed;
  padding: 100px 24px 60px;
}
.hero__content { position: relative; z-index: 2; max-width: 720px; animation: fadeUp 1.2s ease both; }
.hero__pre {
  font-size: .95rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 18px;
}
.hero__names {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 12vw, 7rem);
  font-weight: 500;
  line-height: 1.05;
  color: #f0dcae;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px 0;
  color: #f0dcae;
  font-size: 1.1rem;
}
.hero__divider span { width: 60px; height: 1px; background: rgba(255,255,255,.6); }
.hero__date { font-size: 1.15rem; letter-spacing: 1px; font-weight: 400; }
.hero__place { font-size: 1rem; color: #f0e8da; margin-top: 6px; }
.hero__btn { margin-top: 34px; }
.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 2.4rem;
  text-decoration: none;
  z-index: 2;
  animation: bounce 2s infinite;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ===== Sekcje ===== */
.section { padding: 90px 24px; }
.section--accent { background: var(--bg-accent); }
.container { max-width: var(--maxw); margin: 0 auto; }
.container--narrow { max-width: 720px; }

.section__pre {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.section__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: 14px;
  color: var(--ink);
}
.section__title::after {
  content: "";
  display: block;
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 18px auto 0;
}
.section__lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===== Historia (timeline pionowa kafelki) ===== */
.story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin-top: 50px;
}
.story__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.story__item:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(58,52,44,.15); }
.story__year {
  font-family: var(--serif);
  font-size: 1.85rem;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.story__item h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; }
.story__item p { color: var(--muted); font-size: .95rem; }

/* ===== Odliczanie ===== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 50px;
}
.countdown__box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 120px;
  padding: 28px 18px;
  box-shadow: var(--shadow);
}
.countdown__num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 600;
  color: var(--gold-dark);
  display: block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  display: block;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .75rem;
  color: var(--muted);
}
.countdown__done {
  text-align: center;
  margin-top: 40px;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-dark);
}

/* ===== Odliczanie w hero ===== */
.hero__cd-pre {
  margin-top: 30px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .75rem;
  color: #f0dcae;
}
.countdown--hero { margin-top: 16px; gap: 14px; }
.countdown--hero .countdown__box {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
  backdrop-filter: blur(4px);
  min-width: 96px;
  padding: 18px 14px;
  box-shadow: none;
}
.countdown--hero .countdown__num { color: #fff; font-size: clamp(2rem, 6vw, 3rem); }
.countdown--hero .countdown__label { color: #f0e8da; margin-top: 6px; }
.hero .countdown__done { color: #f0dcae; font-size: 1.3rem; margin-top: 18px; }

/* ===== Karty ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 50px;
}
/* Cztery bloki w jednej linii (desktop) */
.cards--row { grid-template-columns: repeat(4, 1fr); }
.cards--row .card { padding: 30px 20px; }
@media (max-width: 900px) { .cards--row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards--row { grid-template-columns: 1fr; } }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 38px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.card:hover { transform: translateY(-6px); }
.card__icon { font-size: 2.6rem; margin-bottom: 14px; line-height: 1; }
.icon-rings { color: var(--gold); display: inline-block; vertical-align: middle; }
.card h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 8px; }
.card__time { font-size: 1.3rem; color: var(--gold); font-weight: 500; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card__meta { font-size: .9rem; color: var(--gold-dark); margin-top: 10px; font-weight: 500; }
.card__meta a { color: var(--gold-dark); text-decoration: none; }
.card__meta a:hover { color: var(--gold); text-decoration: underline; }
.card__link {
  display: inline-block;
  margin-top: 14px;
  color: var(--gold-dark);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.card__link:hover { color: var(--gold); }

/* ===== Galeria ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.gallery__item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: var(--bg);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--placeholder {
  border: 2px dashed var(--gold);
  box-shadow: none;
  background: var(--white);
}
.gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: .9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.gallery__placeholder-icon { font-size: 2.4rem; }
@media (max-width: 768px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.faq { margin-top: 50px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  position: relative;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-dark); }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform .25s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__answer { padding: 0 24px 22px; }
.faq__answer p { color: var(--muted); font-size: .98rem; }
.faq__answer p + p { margin-top: 12px; }

/* ===== Plan dnia (timeline) ===== */
.timeline {
  max-width: 640px;
  margin: 50px auto 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 70px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line);
}
.timeline__item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 34px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__time {
  flex: 0 0 58px;
  text-align: right;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-dark);
  padding-top: 2px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 64px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-accent);
  z-index: 1;
}
.timeline__body { padding-left: 18px; }
.timeline__body h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-bottom: 4px; }
.timeline__body p { color: var(--muted); font-size: .95rem; }
.plan__day {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 54px 0 4px;
}
.plan__day::before, .plan__day::after { content: "✦"; color: var(--gold); margin: 0 12px; font-size: 1rem; vertical-align: middle; }

/* ===== RSVP ===== */
.rsvp {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: .85rem;
  letter-spacing: .5px;
  color: var(--gold-dark);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,155,110,.15);
}
.field textarea { resize: vertical; }
.radio-row { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 4px; }
.radio { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 300; color: var(--ink); }
.radio input { width: auto; }
.rsvp__msg {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 9px;
  background: #eef4ea;
  color: #45663a;
  text-align: center;
  font-weight: 400;
}

/* ===== Przycisk ===== */
.btn {
  display: inline-block;
  background: var(--gold-dark);
  color: var(--white);
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, transform .15s, box-shadow .25s;
  box-shadow: 0 8px 24px rgba(122,106,85,.3);
}
.btn:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(122,106,85,.4); }
.btn:active { transform: translateY(0); }

/* ===== Stopka ===== */
.footer {
  background: var(--ink);
  color: #e9e2d6;
  text-align: center;
  padding: 70px 24px 50px;
}
.footer__names {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 500;
  color: #f0dcae;
}
.footer__date { letter-spacing: 2px; margin-top: 6px; color: #c9c0b2; }
.footer__contact { margin: 30px 0; }
.footer__contact a { color: #f0dcae; text-decoration: none; border-bottom: 1px solid rgba(240,220,174,.4); }
.footer__contact a:hover { color: var(--white); }
.footer__credit { font-family: var(--serif); font-size: 1.3rem; margin-top: 24px; color: #f0dcae; }

/* ===== Responsywność ===== */
@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav__menu.is-open { max-height: 520px; }
  .nav__menu a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }
  .nav__menu a::after { display: none; }
  .nav__lang {
    justify-content: center;
    gap: 18px;
    padding: 12px 24px;
    margin: 0;
    border-left: none;
  }
  .nav__lang a { padding: 6px 10px; }

  /* Na telefonach kadruj na obrączki i bukiet (lewa część zdjęcia) */
  .hero { background-attachment: scroll; background-position: 30% center; }
  .section { padding: 64px 20px; }

  .timeline::before { left: 54px; }
  .timeline__item::before { left: 48px; }
  .timeline__time { flex-basis: 46px; font-size: 1.05rem; }
  .timeline__item { gap: 18px; }

  .rsvp { padding: 28px 20px; }
  .countdown__box { min-width: 72px; padding: 20px 10px; flex: 1; }
  .countdown { gap: 10px; }
}

@media (max-width: 380px) {
  .countdown__box { min-width: 64px; }
  .countdown__label { font-size: .65rem; letter-spacing: 1px; }
}

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