/* ════════════════════════════════════════════════
   ROOT & RESET
════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #F9F3EC;
  --cream-dark: #F2EAE0;
  --cream-mid:  #E8DDD2;
  --burgundy:   #A87878;
  --wine:       #8B6060;
  --gold:       #C8A880;
  --gold-light: #E0C8A8;
  --lavender:   #9BA5C5;
  --lilac:      #C2AABC;
  --dark:       #2A2020;
  --mid:        #5A4848;
  --muted:      #8A7878;
  --white:      #FFFFFF;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-accent: 'Philosopher', Georgia, serif;
  --font-body:   'Jost', system-ui, sans-serif;

  --max-w: 860px;
  --section-py: 5rem;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  font-optical-sizing: auto;
}

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

/* ════════════════════════════════════════════════
   UTILITIES
════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding: var(--section-py) 0; }

.cormorant { font-family: var(--font-serif); }
.dancing   { font-family: var(--font-accent); font-style: italic; }

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  text-align: center;
  color: var(--dark);
  margin-bottom: 1rem;
  letter-spacing: .02em;
}

.section-subtitle {
  text-align: center;
  color: var(--mid);
  font-size: .95rem;
  font-weight: 300;
  letter-spacing: .02em;
  margin-bottom: 2.5rem;
}

.section-ornament {
  text-align: center;
  font-size: 1.75rem;
  color: var(--burgundy);
  margin-bottom: .5rem;
  opacity: .6;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
  margin: 1rem 0 2rem;
}
.divider__line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.divider__line:last-child { background: linear-gradient(to left, transparent, var(--gold)); }
.divider__heart { color: var(--burgundy); font-size: 1rem; }

/* ════════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s ease;
}
.btn--burgundy {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}
.btn--burgundy:hover {
  background: var(--wine);
  border-color: var(--wine);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168,120,120,.35);
}
.btn--large {
  padding: 1rem 3rem;
  font-size: 1rem;
  width: 100%;
  justify-content: center;
}

/* ════════════════════════════════════════════════
   POLAROID
════════════════════════════════════════════════ */
.polaroid {
  background: var(--white);
  padding: 12px 12px 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  position: relative;
  max-width: 180px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.04) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
  z-index: 2;
}
.polaroid__img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream-dark);
}
.polaroid__img--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.polaroid__initial {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--burgundy);
  line-height: 1;
}
.polaroid__hearts {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: .2rem;
}
.polaroid__caption {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  text-align: center;
  font-size: 1.1rem;
  color: var(--dark);
}

.polaroid__img--venue-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
  padding: 1rem;
}
.polaroid__img--venue-placeholder span { font-size: 2rem; }

/* ════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  background: var(--cream);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(155,165,197,.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(194,170,188,.10) 0%, transparent 50%),
    radial-gradient(var(--cream-mid) .6px, transparent .6px);
  background-size: auto, auto, 28px 28px;
  background-position: 0 0, 0 0, 0 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 2rem;
  text-align: center;
  gap: .5rem;
  position: relative;
  z-index: 1;
}

.hero__pre {
  font-size: clamp(1.1rem, 3.2vw, 1.6rem);
  color: var(--burgundy);
  letter-spacing: 0.06em;
  animation: fadeDown .9s ease both;
}

.hero__names {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: .04em;
  color: var(--dark);
  animation: fadeDown .9s .2s ease both;
}

.hero__names .amp {
  color: var(--burgundy);
  font-style: italic;
  display: inline-block;
  margin: 0 .15em;
}

.polaroids {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-start;
  margin: 1.5rem 0;
  animation: fadeUp .9s .5s ease both;
}

.polaroid--left  { transform: rotate(-4deg); }
.polaroid--right { transform: rotate(3deg); }

.hero__we {
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  color: var(--burgundy);
  letter-spacing: 0.04em;
  animation: fadeUp .9s .7s ease both;
}

/* Scroll hint */
.hero__scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  animation: fadeUp 1s 1.2s ease both;
  color: var(--burgundy);
  opacity: .65;
}
.hero__scroll-hint svg {
  animation: scrollChevron 1.8s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(168,120,120,.25));
}

/* Hero canvas bokeh */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Petals */
.petals-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -40px;
  opacity: 0;
  animation: petalFall linear infinite;
  will-change: transform, opacity;
}

.petal--rose  { border-radius: 50% 0 50% 50%; }
.petal--leaf  { border-radius: 0 50% 50% 50%; }
.petal--round { border-radius: 50%; }
.petal--long  { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }

/* Marquee */
.marquee-wrap {
  background: var(--burgundy);
  padding: .6rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.marquee {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 22s linear infinite;
}
.marquee span {
  padding: 0 2rem;
  font-size: .88rem;
  color: var(--white);
  opacity: .92;
  letter-spacing: .14em;
}

/* ════════════════════════════════════════════════
   INVITE TEXT
════════════════════════════════════════════════ */
.invite-text { background: var(--cream); }

.invite-text__body {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 2;
  letter-spacing: .015em;
}
.invite-text__body + .invite-text__body { margin-top: 1rem; }

/* ════════════════════════════════════════════════
   DATE & VENUE
════════════════════════════════════════════════ */
.date-venue {
  background: var(--cream-dark);
}

.date-display {
  text-align: center;
  margin: 1.5rem 0;
}
.date-display__part {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 300;
  letter-spacing: .12em;
  color: var(--burgundy);
}

/* Calendar */
.calendar {
  max-width: 340px;
  margin: 0 auto 2.5rem;
  background: var(--white);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.calendar__header {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--burgundy);
  margin-bottom: 1rem;
  letter-spacing: .06em;
}
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar__weekday {
  text-align: center;
  font-size: .7rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 0;
  letter-spacing: .05em;
}
.calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--dark);
  border-radius: 50%;
}
.calendar__day--empty { visibility: hidden; }
.calendar__day--today {
  background: var(--burgundy);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(168,120,120,.4);
}

/* Venue */
.venue {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.venue__info { flex: 1; min-width: 220px; }
.venue__name {
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: .5rem;
  color: var(--dark);
}
.venue__address {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.polaroid--venue {
  transform: rotate(2deg);
  max-width: 200px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════
   SCHEDULE
════════════════════════════════════════════════ */
.schedule { background: var(--cream); }

.timeline {
  display: flex;
  flex-direction: column;
  max-width: 540px;
  margin-inline: auto;
  padding-top: 1rem;
}

.timeline__item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 2rem;
  transition-delay: var(--delay, 0s);
}
.timeline__item:last-child { padding-bottom: 0; }

/* Vertical wavy connector */
.timeline__item::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--gold) 0, var(--gold) 6px,
    transparent 6px, transparent 12px
  );
}
.timeline__item:last-child::before { display: none; }

.timeline__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: var(--mid);
  box-shadow: 0 2px 10px rgba(200,168,128,.25);
  position: relative;
  z-index: 1;
}
.timeline__icon svg { width: 22px; height: 22px; display: block; }

.timeline__content {
  display: flex;
  flex-direction: column;
  padding-top: .6rem;
}
.timeline__time {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--burgundy);
  line-height: 1;
}
.timeline__event {
  font-size: .95rem;
  color: var(--mid);
  margin-top: .2rem;
}

/* ════════════════════════════════════════════════
   WISHES
════════════════════════════════════════════════ */
.wishes {
  background: var(--burgundy);
  position: relative;
  overflow: hidden;
}
.wishes::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wishes .section-title { color: var(--white); }
.wishes .section-subtitle { color: rgba(255,255,255,.7); }

.wishes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.wish-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 1.75rem;
  color: var(--white);
  transition-delay: var(--delay, 0s);
}
.wish-card__icon { font-size: 0; margin-bottom: .75rem; display: flex; align-items: center; justify-content: center; }
.wish-card__icon svg { width: 2.5rem; height: 2.5rem; color: var(--gold-light); }
.wish-card__title {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: .75rem;
  color: var(--gold-light);
}
.wish-card__text {
  font-size: .9rem;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
}

/* Color swatches */
.palette-block {
  margin-top: 1.5rem;
}
.palette-block__sep {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.1rem;
}
.palette-block__line {
  flex: 1;
  height: 1px;
}
.palette-block__sep .palette-block__line:first-child {
  background: linear-gradient(to right, transparent, rgba(200,168,128,.5));
}
.palette-block__sep .palette-block__line:last-child {
  background: linear-gradient(to left, transparent, rgba(200,168,128,.5));
}
.palette-block__tag {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 500;
  white-space: nowrap;
}

.color-swatches {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  cursor: default;
}
.swatch__circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transition: transform .2s, box-shadow .2s;
}
.swatch:hover .swatch__circle {
  transform: scale(1.12);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.swatch__name {
  font-size: .67rem;
  color: #C0B4B4;
  text-align: center;
  letter-spacing: .02em;
  line-height: 1.3;
  max-width: 58px;
}

/* ════════════════════════════════════════════════
   RSVP FORM
════════════════════════════════════════════════ */
.rsvp { background: var(--cream-dark); }

.rsvp__card {
  background: var(--white);
  border-radius: 20px;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: 0 8px 40px rgba(0,0,0,.1);
  max-width: 640px;
  margin-inline: auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--mid);
  margin-bottom: .5rem;
}

.req { color: var(--burgundy); }

.form-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--cream-mid);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--dark);
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(168,120,120,.12);
}
.form-input.error {
  border-color: #DC2626;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Toggle buttons */
.toggle-group {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.toggle-btn {
  flex: 1;
  min-width: 160px;
  padding: .75rem 1rem;
  border: 2px solid var(--cream-mid);
  border-radius: 50px;
  background: var(--cream);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.toggle-btn:hover { border-color: var(--burgundy); color: var(--burgundy); }
.toggle-btn.selected {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(168,120,120,.3);
}

/* Companion field slide */
.companion-field {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, margin .35s ease;
  margin-bottom: 0;
}
.companion-field.visible {
  max-height: 120px;
  margin-bottom: 1.5rem;
}

/* Alcohol chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.chip input[type="checkbox"] { display: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem 1rem;
  border: 1.5px solid var(--cream-mid);
  border-radius: 50px;
  font-size: .875rem;
  color: var(--muted);
  cursor: pointer;
  background: var(--cream);
  transition: all .2s ease;
  user-select: none;
}
.chip span:hover { border-color: var(--burgundy); color: var(--burgundy); }
.chip input:checked + span {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
}

/* Form error */
.form-error {
  color: #DC2626;
  font-size: .875rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* ── RSVP Success (attending = yes) ── */
.rsvp__success {
  text-align: center;
  padding: 3rem 1rem;
}
.success-icon { font-size: 0; margin-bottom: 1rem; animation: popIn .5s ease; display: flex; align-items: center; justify-content: center; }
.success-icon svg { width: 3.5rem; height: 3.5rem; color: var(--burgundy); }
.rsvp__success h3 {
  font-size: 2rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: .5rem;
}
.rsvp__success p { font-size: 1.5rem; color: var(--burgundy); }

/* ── RSVP Sorry (attending = no) ── */
.rsvp__sorry {
  text-align: center;
  padding: 2.75rem 1rem 2.25rem;
  position: relative;
  overflow: hidden;
}

.sorry-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sorry-bubble {
  position: absolute;
  bottom: -24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(200,168,128,.55), rgba(200,168,128,.06));
  border: 1px solid rgba(200,168,128,.38);
  animation: bubbleRise linear infinite;
}

.sorry-icon {
  position: relative;
  z-index: 1;
  font-size: 0;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn .55s .05s ease both;
}

.sorry-icon svg {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--gold);
  filter: drop-shadow(0 4px 18px rgba(200,168,128,.5));
}

.sorry-title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: .9rem;
  letter-spacing: .02em;
  animation: fadeUp .65s .18s ease both;
  opacity: 0;
}

.sorry-divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0 auto 1.15rem;
  max-width: 200px;
  animation: fadeUp .65s .3s ease both;
  opacity: 0;
}

.sorry-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,168,128,.7));
}
.sorry-divider__line:last-child {
  background: linear-gradient(to left, transparent, rgba(200,168,128,.7));
}
.sorry-divider__sym { color: var(--burgundy); font-size: .85rem; }

.sorry-body {
  position: relative;
  z-index: 1;
  font-size: .975rem;
  line-height: 2;
  color: var(--mid);
  max-width: 370px;
  margin: 0 auto 1.5rem;
  font-weight: 300;
  letter-spacing: .01em;
  animation: fadeUp .75s .44s ease both;
  opacity: 0;
}

.sorry-toast {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  color: var(--burgundy);
  animation: fadeUp .75s .62s ease both;
  opacity: 0;
}

@keyframes bubbleRise {
  0%   { transform: translateY(0)      translateX(0);                opacity: 0; }
  7%   { opacity: .7; }
  88%  { opacity: .28; }
  100% { transform: translateY(-520px) translateX(var(--drift, 16px)); opacity: 0; }
}

/* ════════════════════════════════════════════════
   CONTACTS
════════════════════════════════════════════════ */
.contacts { background: var(--cream); }

.contacts__grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex: 1;
  min-width: 240px;
  max-width: 360px;
  transition: transform .25s, box-shadow .25s;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.contact-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--burgundy), var(--wine));
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(168,120,120,.35);
}

.contact-card__name {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: .15rem;
}
.contact-card__role { font-size: .8rem; color: var(--muted); margin-bottom: .75rem; }
.contact-card__phone {
  display: block;
  color: var(--dark);
  text-decoration: none;
  font-size: .9rem;
  margin-bottom: .5rem;
}
.contact-card__phone:hover { color: var(--burgundy); }
.contact-card__tg {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #0088CC;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
}
.contact-card__tg:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════
   FINAL / COUNTDOWN
════════════════════════════════════════════════ */
.final {
  background: var(--burgundy);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.06) 0%, transparent 70%);
}

.final__deco {
  position: absolute;
  font-size: 4rem;
  color: rgba(255,255,255,.08);
  line-height: 1;
}
.final__deco--tl { top: 2rem; left: 2rem; transform: rotate(-15deg); }
.final__deco--tr { top: 2rem; right: 2rem; transform: rotate(15deg); }
.final__deco--bl { bottom: 2rem; left: 2rem; transform: rotate(10deg); }
.final__deco--br { bottom: 2rem; right: 2rem; transform: rotate(-10deg); }

.final__pre {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: .25rem;
  display: block;
  letter-spacing: .1em;
}
.final__title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: 2.5rem;
  display: block;
  letter-spacing: .06em;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.countdown__box {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  min-width: 90px;
  text-align: center;
}
.countdown__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.countdown__label {
  display: block;
  font-size: .7rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .35rem;
}
.countdown__sep {
  font-size: 2rem;
  color: rgba(255,255,255,.4);
  font-family: var(--font-serif);
  margin-bottom: 1.2rem;
}

.final__love {
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  color: rgba(255,255,255,.92);
  letter-spacing: .05em;
}

/* ════════════════════════════════════════════════
   KEYFRAMES
════════════════════════════════════════════════ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollChevron {
  0%, 100% { transform: translateY(0);   opacity: .5; }
  50%       { transform: translateY(8px); opacity: 1; }
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes petalFall {
  0%   { opacity: 0;   transform: translateY(0)     translateX(0)              rotate(0deg); }
  8%   { opacity: .85; }
  25%  {               transform: translateY(25vh)  translateX(var(--sx1, 25px)) rotate(120deg); }
  50%  {               transform: translateY(52vh)  translateX(var(--sx2, -18px)) rotate(245deg); }
  75%  {               transform: translateY(78vh)  translateX(var(--sx1, 25px)) rotate(355deg); }
  92%  { opacity: .5;  }
  100% { opacity: 0;   transform: translateY(115vh) translateX(0)              rotate(460deg); }
}
@keyframes popIn {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes countOut {
  from { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
  to   { opacity: 0; transform: translateY(-9px) scale(0.82); filter: blur(1.5px); }
}
@keyframes countIn {
  from { opacity: 0; transform: translateY(11px) scale(0.82); filter: blur(1.5px); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}


/* ════════════════════════════════════════════════
   TEXT HIGHLIGHT
════════════════════════════════════════════════ */
.text-highlight {
  display: inline;
  background: rgba(200, 168, 128, .18);
  color: var(--wine);
  padding: .08em .42em .1em;
  border-radius: 4px;
  font-weight: 500;
  border-bottom: 1.5px solid rgba(200, 168, 128, .5);
}

/* ════════════════════════════════════════════════
   MUSIC BUTTON
════════════════════════════════════════════════ */
.music-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--cream);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(200,168,128,.25), 0 0 0 0 rgba(200,168,128,.4);
  transition: transform .2s ease, box-shadow .3s ease, background .2s;
  padding: 0;
}
.music-btn:hover {
  transform: scale(1.08);
  background: var(--cream-dark);
  box-shadow: 0 6px 24px rgba(200,168,128,.4), 0 0 0 6px rgba(200,168,128,.1);
}
.music-btn.playing {
  animation: musicPulse 2.8s ease-in-out infinite;
}
@keyframes musicPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(200,168,128,.25), 0 0 0 0 rgba(200,168,128,.35); }
  50%       { box-shadow: 0 4px 20px rgba(200,168,128,.35), 0 0 0 9px rgba(200,168,128,.0); }
}

/* Note icon (shown when paused) */
.music-btn__note { display: flex; align-items: center; justify-content: center; }
.music-btn.playing .music-btn__note { display: none; }

/* Sound bars (shown when playing) */
.music-btn__bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}
.music-btn.playing .music-btn__bars { display: flex; }
.music-btn__bars span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
  animation: barBounce 1s ease-in-out infinite;
}
.music-btn__bars span:nth-child(1) { height: 10px; animation-delay: 0s; }
.music-btn__bars span:nth-child(2) { height: 18px; animation-delay: .18s; }
.music-btn__bars span:nth-child(3) { height: 14px; animation-delay: .36s; }
.music-btn__bars span:nth-child(4) { height: 8px;  animation-delay: .54s; }
@keyframes barBounce {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(.35); }
}

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }

  .form-row { grid-template-columns: 1fr; }

  .toggle-btn { min-width: 0; }

  .venue { flex-direction: column; align-items: center; }
  .polaroid--venue { align-self: center; max-width: 260px; }

  .countdown__box { min-width: 70px; padding: 1rem; }

  /* Hero: убираем большой отступ сверху, контент по центру */
  .hero__inner { padding: 1.5rem 1.5rem 1.5rem; }

  /* Поляроиды крупнее */
  .polaroids { gap: 1rem; }
  .polaroid { max-width: 160px; }
  .polaroid__initial { font-size: 2rem; }

  /* ── Мобильная яркость ── */

  /* Hero: насыщенные цветные пятна вместо едва видимых */
  .hero {
    background-image:
      radial-gradient(circle at 12% 18%, rgba(155,165,197,.28) 0%, transparent 52%),
      radial-gradient(circle at 88% 78%, rgba(194,170,188,.28) 0%, transparent 52%),
      radial-gradient(circle at 55% 45%, rgba(200,168,128,.12) 0%, transparent 60%),
      radial-gradient(var(--cream-mid) .6px, transparent .6px);
    background-size: auto, auto, auto, 22px 22px;
  }

  /* Имена чуть насыщеннее */
  .hero__names { color: #1A1212; }
  .hero__pre   { color: #9A6868; }

  /* Поляроиды: тень ярче */
  .polaroid {
    box-shadow: 3px 6px 22px rgba(120,80,80,.22), 0 1px 4px rgba(0,0,0,.1);
  }

  /* Секция расписания: точечный фон виднее */
  .schedule {
    background-image: radial-gradient(var(--cream-mid) 1px, transparent 1px);
    background-size: 20px 20px;
  }

  /* Разделители: линии ярче */
  .divider__line {
    opacity: .7;
  }

  /* Карточки wish: тень более выразительная */
  .wish-card {
    box-shadow: 0 4px 24px rgba(168,120,120,.14);
  }
}

@media (max-width: 480px) {
  /* Поляроиды — почти на всю ширину */
  .polaroids { gap: .6rem; }
  .polaroid { max-width: 44vw; padding: 8px 8px 36px; }

  /* Countdown: сетка 4 колонки, разделители убраны */
  .countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .4rem;
    align-items: start;
  }
  .countdown__sep { display: none; }
  .countdown__box { padding: .85rem .4rem; min-width: 0; }
  .countdown__num { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .countdown__label { font-size: .58rem; letter-spacing: .04em; }

  /* Поляроид площадки на полную ширину */
  .polaroid--venue { max-width: 100%; }
}
