/* ===== Design tokens (ui-design-brain: Creative + restrained) ===== */
:root {
  --cream: #f7f4ef;
  --white: #ffffff;
  --black: #1a1a1a;
  --red: #b42338;
  --red-dark: #8f1c2d;
  --blue: #1e3a5f;
  --blue-light: #2c5282;
  --eco: #5c6b4f;
  --eco-dark: #4a5740;
  --gray: #6b6560;
  --gray-light: #e8e4de;

  --font-script: "Caveat", cursive;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 8px 32px rgba(26, 26, 26, 0.08);
  --transition: 0.2s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 2rem, 560px);
  margin-inline: auto;
}

/* ===== Typography ===== */
.section__title {
  font-family: var(--font-script);
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 600;
  color: var(--red);
  text-align: center;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

.section__title--light {
  color: var(--white);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.35) 0%,
    rgba(26, 26, 26, 0.5) 50%,
    rgba(26, 26, 26, 0.65) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 2rem 1.5rem 4rem;
}

.hero__tagline {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
  opacity: 0.95;
}

.hero__names {
  font-family: var(--font-script);
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.hero__amp {
  display: inline-block;
  font-weight: 500;
  opacity: 0.9;
}

.hero__date {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1rem 0 0.75rem;
}

.hero__phrase {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  margin: 1.25rem 0 0.75rem;
  opacity: 0.95;
  max-width: none;
  margin-inline: auto;
}

.hero__countdown {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.35rem, 2vw, 0.75rem);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  max-width: 100%;
}

.hero__countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(3.5rem, 14vw, 5.5rem);
}

.hero__countdown-num {
  font-family: var(--font-script);
  color: var(--white);
  font-size: clamp(2.75rem, 12vw, 4.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.hero__countdown-label {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.75rem, 2.5vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.hero__countdown-sep {
  color: var(--white);
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1;
  opacity: 0.85;
  margin-bottom: 1.35rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero__bottom {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  pointer-events: none;
}

.hero__progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.95;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(26, 26, 26, 0.45);
  backdrop-filter: blur(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero__progress--done {
  opacity: 0;
  transform: translateY(4px);
}

.hero__progress progress {
  display: block;
  width: 72px;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.hero__progress progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
}

.hero__progress progress::-webkit-progress-value {
  background: var(--white);
  border-radius: var(--radius-pill);
  transition: width 0.15s ease-out;
}

.hero__progress progress::-moz-progress-bar {
  background: var(--white);
  border-radius: var(--radius-pill);
}

.hero__progress-value {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 420px) {
  .hero__bottom {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .hero__countdown-sep {
    margin-bottom: 1.1rem;
  }

  .hero__progress {
    gap: 0.45rem;
  }

  .hero__progress progress {
    width: 88px;
    height: 7px;
  }
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--white);
  opacity: 0.8;
  animation: bounce 2s ease-in-out infinite;
}

.hero__scroll:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Sections ===== */
.section {
  padding: 4rem 0;
}

.section--date {
  text-align: center;
  background: var(--white);
}

.date-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 2rem;
}

.date-display__day {
  font-family: var(--font-script);
  font-size: clamp(4rem, 15vw, 6rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.date-display__month {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  color: var(--black);
  text-transform: lowercase;
}

.date-display__year {
  font-size: 1.125rem;
  color: var(--gray);
  letter-spacing: 0.2em;
}

.calendar-strip {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
  color: var(--gray);
}

.calendar-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 52px);
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: rgba(247, 244, 239, 0.6);
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.06);
  backdrop-filter: blur(6px);
}

.calendar-strip__dow {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(107, 101, 96, 0.9);
  text-align: center;
}

.calendar-strip__day {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}

.calendar-strip__day--heart {
  position: relative;
  color: var(--red);
}

.calendar-strip__day--heart::before {
  content: "";
  position: absolute;
  inset: -6px -6px -8px -6px;
  background: no-repeat center / contain;
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 58'%3E%3Cpath d='M32 55S3 36 3 19C3 9 10 2 20 2c6 0 10 3 12 7 2-4 6-7 12-7 10 0 17 7 17 17 0 17-29 36-29 36Z' fill='none' stroke='%23b42338' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ===== Invitation ===== */
.section--invite {
  background: var(--cream);
}

.invite-postcard {
  perspective: 1200px;
}

.invite-postcard__inner {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: inherit;
  font: inherit;
  position: relative;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 900ms cubic-bezier(0.2, 0.9, 0.2, 1);
  border-radius: var(--radius);
}

.invite-postcard__inner:focus-visible {
  outline: 3px solid rgba(180, 35, 56, 0.35);
  outline-offset: 6px;
}

.invite-postcard__face {
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.invite-postcard__front {
  transform: rotateY(0deg) translateZ(1px);
  -webkit-transform: rotateY(0deg) translateZ(1px);
  min-height: 420px;
  padding: 2.25rem 1.75rem;
  background:
    radial-gradient(1200px 420px at 50% 0%, rgba(180, 35, 56, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(247, 244, 239, 0.18)),
    url("../assets/photo_2026-05-26_23-12-25.jpg") center / cover no-repeat;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(232, 228, 222, 0.9);
}

.invite-postcard__front::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.invite-postcard__front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.12), rgba(26, 26, 26, 0.38));
}

.invite-postcard__front-top,
.invite-postcard__front-names,
.invite-postcard__front-hint {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.invite-postcard__front-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.invite-postcard__stamp {
  display: block;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(180, 35, 56, 0.9);
  color: var(--white);
  flex-shrink: 0;
}

.invite-postcard__front-label {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.95;
}

.invite-postcard__front-names {
  display: block;
  margin-top: 10.5rem;
  font-family: var(--font-script);
  font-size: clamp(2.75rem, 10vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
}

.invite-postcard__front-hint {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
}

.invite-postcard__back {
  transform: rotateY(180deg) translateZ(1px);
  -webkit-transform: rotateY(180deg) translateZ(1px);
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.invite-postcard.is-open .invite-postcard__inner {
  transform: rotateY(180deg);
}

/* iOS Safari: backface-visibility иногда не скрывает лицевую сторону после flip */
.invite-postcard.is-flipped .invite-postcard__front {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.invite-card__text {
  display: grid;
  gap: 1rem;
}

.invite-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--gray-light);
}

.invite-card__seal {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--red);
}

.invite-card__text p {
  margin: 0;
  color: var(--black);
}

.couple-photo {
  margin: 2rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--red);
  box-shadow: var(--shadow);
}

.couple-photo img {
  width: 100%;
  filter: grayscale(100%);
  transition: filter var(--transition);
}

.couple-photo:hover img {
  filter: grayscale(30%);
}

/* ===== Location ===== */
.section--location {
  background: var(--cream);
  color: var(--black);
}

.location-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.location-card__visual {
  width: min(320px, 85vw);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--gray-light);
  box-shadow: var(--shadow);
}

.location-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-card__venue {
  font-family: var(--font-script);
  font-size: 2rem;
  margin: 0;
}

.location-card__hall {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0.25rem 0;
}

.location-card__address {
  margin: 0 0 1.25rem;
  color: var(--gray);
}

/* ===== Schedule ===== */
.section--schedule {
  background: var(--white);
}

.schedule-registry {
  max-width: 22rem;
  margin: 0 auto 2rem;
  padding: 1.5rem 1.75rem;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--red);
}

.schedule-registry__badge {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.schedule-registry__time {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.schedule-registry__label {
  margin: 0.35rem 0 0;
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 4.5vw, 1.85rem);
  font-weight: 600;
  color: var(--red);
  line-height: 1.15;
}

.schedule-registry__place {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.schedule-registry__place a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.schedule-registry__place a:hover {
  color: var(--red);
}

.schedule-registry__note {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--gray-light);
  font-size: 0.9rem;
  color: var(--gray);
}

.schedule-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 2rem;
  max-width: 20rem;
  color: var(--gray);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.schedule-divider::before,
.schedule-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-light);
}

.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline__path {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 60px;
  transform: translateX(-50%);
  color: var(--red);
  opacity: 0.5;
}

.timeline__events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 45%;
}

.timeline__item--left {
  align-self: flex-start;
  text-align: right;
  padding-right: 2rem;
}

.timeline__item--right {
  align-self: flex-end;
  text-align: left;
  padding-left: 2rem;
}

.timeline__item time {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue);
}

.timeline__label {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--red);
}

/* ===== Text blocks ===== */
.section--gifts,
.section--dress,
.section--kids {
  background: var(--cream);
}

.section--dress {
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.section--dress::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: url("../assets/dress-code-bg.jpg") center calc(50% + var(--parallax-bg, 0%)) / cover no-repeat;
  will-change: background-position;
  z-index: 0;
  filter: saturate(1.05) contrast(1.05) brightness(0.92);
}

.section--dress::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 85% 70% at 50% 45%,
      rgba(26, 26, 26, 0.5) 0%,
      rgba(26, 26, 26, 0.35) 100%
    ),
    linear-gradient(
      180deg,
      rgba(26, 26, 26, 0.35) 0%,
      rgba(26, 26, 26, 0.25) 50%,
      rgba(26, 26, 26, 0.4) 100%
    );
}

.section--dress .container {
  position: relative;
  z-index: 1;
}

.section--dress .section__title {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.section--dress .text-block p {
  color: var(--white);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .section--dress::before {
    inset: 0;
    background-position: center center;
    will-change: auto;
  }
}

.text-block {
  text-align: center;
  max-width: 42ch;
  margin-inline: auto;
}

.text-block p {
  margin: 0 0 1rem;
}

.text-block p:last-child {
  margin-bottom: 0;
}

.adult-banner {
  margin: 2rem auto 0;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.08);
}

.adult-banner__badge {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.25rem;
  box-shadow: 0 10px 22px rgba(180, 35, 56, 0.25);
}

.adult-banner__text {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.05;
}

.gift-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  color: var(--blue);
}

.gift-icons svg {
  width: 56px;
  height: 56px;
  opacity: 0.7;
}

.palette {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.palette__swatch {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--gray-light);
}

.palette__swatch--red { background: var(--red); }
.palette__swatch--blue { background: var(--blue); }
.palette__swatch--eco { background: var(--eco); }
.palette__swatch--black { background: var(--black); }
.palette__swatch--white { background: var(--white); }

/* ===== RSVP ===== */
.section--rsvp {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding-bottom: 5rem;
}

.rsvp-deadline {
  text-align: center;
  color: var(--gray);
  margin: -0.5rem 0 2rem;
}

.rsvp-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
}

.form-field {
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}

.form-field legend,
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--blue);
}

.form-field input[type="text"] {
  width: 100%;
  padding: 0.875rem 1rem;
  font: inherit;
  border: 1.5px solid var(--gray-light);
  border-radius: 12px;
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input[type="text"]:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(180, 35, 56, 0.15);
}

.radio-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.radio-pill,
.checkbox-pill {
  cursor: pointer;
}

.radio-pill input,
.checkbox-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-pill span,
.checkbox-pill span {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-pill);
  background: var(--cream);
  transition: all var(--transition);
  min-height: 44px;
  line-height: 1.4;
}

.radio-pill input:checked + span,
.checkbox-pill input:checked + span {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.radio-pill input:focus-visible + span,
.checkbox-pill input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.checkbox-pill--full {
  flex-basis: 100%;
}

.checkbox-pill--full span {
  width: 100%;
  text-align: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 2rem;
  font-family: var(--font-script);
  font-size: 1.375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.btn--primary {
  width: 100%;
  background: var(--red);
  color: var(--white);
  margin-top: 0.5rem;
}

.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--light {
  background: var(--white);
  color: var(--eco-dark);
}

.btn--light:hover {
  background: var(--cream);
}

.form-message {
  text-align: center;
  margin: 1rem 0 0;
  min-height: 1.5rem;
}

.form-message--success {
  color: var(--eco-dark);
  font-weight: 600;
}

.form-message--error {
  color: var(--red);
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  background: var(--blue);
  color: var(--white);
}

.footer__love {
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.04em;
}

.footer__love::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin: 0.65rem auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
}

.footer__names {
  font-family: var(--font-script);
  font-size: 2rem;
  margin: 0;
}

.footer__date {
  margin: 0.25rem 0 0;
  letter-spacing: 0.3em;
  font-size: 0.875rem;
  opacity: 0.85;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }

  .invite-card {
    padding: 3rem 2.5rem;
  }

  .location-card {
    flex-direction: row;
    text-align: left;
    gap: 2.5rem;
  }

  .location-card__info {
    flex: 1;
  }

  .checkbox-grid {
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__scroll {
    animation: none;
  }

  .hero__video {
    display: none;
  }

  .hero {
    background: url("../assets/IMG_5887.PNG") center / cover no-repeat;
    min-height: 80vh;
  }
}
