:root {
  --red: #b3132b;
  --red-dark: #861020;
  --ink: #1f1f1f;
  --muted: #6f6f6f;
  --soft: #faf7f7;
  --line: #eadfe1;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* NAVIGATION */

.nav-wrap {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(179, 19, 43, 0.08);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.brand span {
  color: var(--red);
  margin: 0 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-rsvp {
  padding: 9px 17px;
  border: 1px solid var(--red);
  border-radius: 999px;
  color: var(--red);
}

.menu-button {
  display: none;
  border: 0;
  background: none;
  font-size: 1.4rem;
}

/* HERO */

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 130px 0 70px;
  text-align: center;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(179, 19, 43, 0.05),
      transparent 28%
    ),
    radial-gradient(circle at 80% 75%, rgba(179, 19, 43, 0.04), transparent 24%);
}

.eyebrow {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
}

h1 {
  font-size: clamp(3.3rem, 9vw, 7rem);
  line-height: 1;
  margin-bottom: 22px;
  font-weight: 600;
}

h1 span {
  color: var(--red);
  font-style: italic;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 28px;
}

.date {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.1rem;
}

.divider {
  width: 170px;
  height: 1px;
  background: var(--line);
  margin: 30px auto;
  position: relative;
}

.divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: white;
  color: var(--red);
  padding: 0 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 26px;
  border: 0;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
  transition: 0.2s ease;
}

.primary {
  background: var(--red);
  color: white;
  box-shadow: 0 12px 30px rgba(179, 19, 43, 0.18);
}

.primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 5vw, 54px);
  margin-top: 55px;
}

.countdown div {
  display: grid;
  gap: 2px;
  min-width: 60px;
}

.countdown strong {
  color: var(--red);
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

.countdown span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* GENERAL SECTIONS */

.section {
  padding: 110px 0;
}

.soft {
  background: var(--soft);
}

.story {
  font-size: 1.15rem;
  color: var(--muted);
}

.quote {
  margin-top: 36px;
  color: var(--red);
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-style: italic;
}

/* DETAIL CARDS */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 45px auto 0;
}

.card {
  background: white;
  border: 1px solid var(--line);
  padding: 48px 34px;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(35, 20, 22, 0.05);
}

.card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
}

.card p {
  color: var(--muted);
}

.card a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.icon {
  color: var(--red);
  font-size: 1.7rem;
  margin-bottom: 15px;
}

/* TIMELINE */

.timeline {
  max-width: 760px;
  margin: 45px auto 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item > span {
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.timeline-item h3 {
  margin-bottom: 2px;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

/* RSVP SECTION */

.form-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

/* nowy układ lewej części RSVP */

.rsvp-intro {
  max-width: 700px;
}

.rsvp-intro .eyebrow {
  margin: 0 0 22px;
}

.rsvp-intro h2 {
  max-width: 620px;
  margin: 0 0 36px;
  font-size: clamp(2.8rem, 4.8vw, 4.7rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.rsvp-description {
  max-width: 620px;
}

.rsvp-description p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.rsvp-description p:last-child {
  margin-bottom: 0;
}

/* formularz */

.rsvp-form {
  display: grid;
  gap: 17px;
  background: white;
  padding: 34px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8cbcd;
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  background: white;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(179, 19, 43, 0.15);
  border-color: var(--red);
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--red);
}

/* FAQ */

.faq-list {
  border-top: 1px solid var(--line);
  text-align: left;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  position: relative;
  padding-right: 30px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--red);
  font-size: 1.4rem;
}

details[open] summary::after {
  content: "−";
}

details p {
  color: var(--muted);
  margin-bottom: 0;
}

/* CLOSING */

.closing {
  padding: 100px 0;
  text-align: center;
  background: var(--red);
  color: white;
}

.closing .eyebrow {
  color: white;
  opacity: 0.8;
}

.closing h2 {
  margin-bottom: 12px;
}

.closing p {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin: 0 0 5px;
}

.closing span {
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

footer {
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* LANGUAGE SWITCHER */

.language-switcher {
  display: flex;
  gap: 4px;
  margin-left: 18px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switcher button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px 8px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
}

.language-switcher button.active {
  background: var(--red);
  color: white;
}

/* TABLET */

@media (max-width: 800px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav {
    gap: 10px;
  }

  .language-switcher {
    margin-left: auto;
  }

  .menu-button {
    order: 3;
  }

  .cards,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .form-layout {
    gap: 52px;
  }

  .section {
    padding: 82px 0;
  }

  .rsvp-intro {
    max-width: 680px;
  }

  .rsvp-intro h2 {
    max-width: 620px;
    font-size: clamp(2.8rem, 8vw, 4.2rem);
  }

  .rsvp-description {
    max-width: 650px;
  }
}

/* MOBILE */

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .countdown {
    gap: 10px;
  }

  .countdown div {
    min-width: 52px;
  }

  .countdown strong {
    font-size: 1.55rem;
  }

  .timeline-item {
    grid-template-columns: 76px 1fr;
    gap: 16px;
  }

  .rsvp-form {
    padding: 22px;
  }

  .form-layout {
    gap: 42px;
  }

  .rsvp-intro .eyebrow {
    margin-bottom: 18px;
  }

  .rsvp-intro h2 {
    font-size: clamp(2.45rem, 11vw, 3.25rem);
    line-height: 1.02;
    margin-bottom: 28px;
    max-width: 100%;
  }

  .rsvp-description {
    max-width: 100%;
  }

  .rsvp-description p {
    font-size: 1rem;
    line-height: 1.72;
    margin-bottom: 18px;
  }
}
