:root {
  --bg: #fdfdfc;
  --bg-soft: #f6f5f2;
  --paper: rgba(255, 252, 247, 0.92);
  --text: #302625;
  --muted: #716866;
  --accent: #426e8f;
  --accent-soft: #8db5cf;
  --mint: #d9e8df;
  --butter: #f1e4c3;
  --pink: #eb8b7f;
  --violet: #b79bd8;
  --green: #7fa98c;
  --yellow: #e7c56b;
  --burgundy: #7e1026;
  --burgundy-soft: #b34b63;
  --line: rgba(82, 74, 70, 0.1);
  --shadow: 0 18px 50px rgba(109, 99, 89, 0.09);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(141, 181, 207, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(217, 232, 223, 0.1), transparent 22%),
    linear-gradient(180deg, #fafafa 0%, #ffffff 42%, #f5f4f1 100%);
  background-attachment: fixed;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  z-index: 0;
  opacity: 0.22;
  pointer-events: none;
}

.page-shell::before {
  top: 100px;
  left: 24px;
  width: 170px;
  height: 90px;
  border: 3px solid rgba(141, 181, 207, 0.22);
  border-color: rgba(141, 181, 207, 0.22) transparent transparent transparent;
  border-radius: 50% / 100% 100% 0 0;
  transform: rotate(-10deg);
}

.page-shell::after {
  right: 34px;
  bottom: 120px;
  width: 150px;
  height: 78px;
  border: 3px solid rgba(183, 155, 216, 0.2);
  border-color: transparent transparent rgba(183, 155, 216, 0.2) transparent;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: rotate(8deg);
}

main {
  position: relative;
  z-index: 1;
}

.section,
.hero {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto 28px;
}

.floating-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 18;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(calc(100% - 28px), 760px);
  padding: 10px 14px;
  border: 1px solid rgba(126, 16, 38, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(62, 40, 39, 0.08);
  transform: translateX(-50%) translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  --scroll-progress: 0%;
}

.floating-nav::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--burgundy), var(--burgundy)) left / var(--scroll-progress) 100% no-repeat,
    rgba(126, 16, 38, 0.08);
  pointer-events: none;
}

.floating-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.floating-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.floating-nav a:hover,
.floating-nav a.is-active {
  color: var(--burgundy);
  background: rgba(126, 16, 38, 0.08);
}

.hero {
  padding: 24px 0 8px;
  position: relative;
}

.hero__banner {
  position: relative;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.hero__video-wrap {
  position: relative;
  aspect-ratio: 16 / 6.5;
  min-height: 0;
  border-radius: calc(var(--radius-xl) + 10px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(42, 34, 33, 0.06), rgba(42, 34, 33, 0.16)),
    linear-gradient(135deg, #f4efe6, #e8e0d2 42%, #dde7de);
  box-shadow: var(--shadow);
}

.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.hero__video {
  z-index: 1;
}

.hero__poster {
  z-index: 0;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.04), rgba(34, 28, 27, 0.14)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 18%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 24px));
  padding: 40px;
  margin: 18px auto 0;
  background: rgba(255, 252, 247, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
}

.hero__badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(66, 42, 40, 0.1);
  font-family: "Neucha", cursive;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.hero__badge--left {
  left: 22px;
  bottom: 22px;
  transform: rotate(-4deg);
}

.hero__badge--right {
  right: 22px;
  top: 22px;
  transform: rotate(5deg);
  background: rgba(255, 255, 255, 0.98);
}

.hero__audio-control {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.hero__sound {
  position: relative;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(48, 38, 37, 0.55);
  color: #fffdf9;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero__sound:hover {
  transform: translateY(-1px);
}

.hero__sound.is-muted {
  background: rgba(60, 43, 42, 0.3);
}

.hero__sound.is-prompting {
  animation: sound-prompt 2.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255, 252, 247, 0.32);
}

.hero__sound-visualizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.hero__sound-visualizer span {
  display: block;
  width: 2px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.95);
  transform-origin: center bottom;
  opacity: 0.85;
}

.hero__sound.is-playing .hero__sound-visualizer span:nth-child(1) {
  animation: sound-bar 0.95s ease-in-out infinite;
}

.hero__sound.is-playing .hero__sound-visualizer span:nth-child(2) {
  animation: sound-bar 0.82s ease-in-out 0.1s infinite;
}

.hero__sound.is-playing .hero__sound-visualizer span:nth-child(3) {
  animation: sound-bar 1.05s ease-in-out 0.18s infinite;
}

.hero__sound.is-playing .hero__sound-visualizer span:nth-child(4) {
  animation: sound-bar 0.78s ease-in-out 0.06s infinite;
}

.hero__sound.is-muted .hero__sound-visualizer span,
.hero__sound:not(.is-playing) .hero__sound-visualizer span {
  height: 4px;
  opacity: 0.52;
}

@keyframes sound-bar {
  0%,
  100% {
    transform: scaleY(0.45);
    opacity: 0.6;
  }

  50% {
    transform: scaleY(1.35);
    opacity: 1;
  }
}

@keyframes sound-prompt {
  0%,
  100% {
    transform: scale(1);
    background: rgba(60, 43, 42, 0.3);
    box-shadow: 0 0 0 0 rgba(255, 252, 247, 0.24);
  }

  50% {
    transform: scale(1.04);
    background: rgba(255, 252, 247, 0.22);
    box-shadow: 0 0 0 10px rgba(255, 252, 247, 0);
  }
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 8;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(126, 16, 38, 0.92);
  color: #fffdf9;
  box-shadow: 0 10px 30px rgba(66, 42, 40, 0.18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.audio-fab {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 8;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.95);
  color: var(--burgundy);
  box-shadow: 0 10px 30px rgba(66, 42, 40, 0.16);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.audio-fab.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.audio-fab.is-playing {
  background: rgba(255, 252, 247, 0.95);
  color: var(--burgundy);
}

.audio-fab.is-muted {
  background: rgba(126, 16, 38, 0.92);
  color: #fffdf9;
}

.audio-fab__bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 15px;
}

.audio-fab__bars span {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center bottom;
  opacity: 0.9;
}

.audio-fab.is-playing .audio-fab__bars span:nth-child(1) {
  animation: sound-bar 0.95s ease-in-out infinite;
}

.audio-fab.is-playing .audio-fab__bars span:nth-child(2) {
  animation: sound-bar 0.82s ease-in-out 0.1s infinite;
}

.audio-fab.is-playing .audio-fab__bars span:nth-child(3) {
  animation: sound-bar 1.05s ease-in-out 0.18s infinite;
}

.audio-fab.is-playing .audio-fab__bars span:nth-child(4) {
  animation: sound-bar 0.78s ease-in-out 0.06s infinite;
}

.audio-fab.is-muted .audio-fab__bars span,
.audio-fab:not(.is-playing) .audio-fab__bars span {
  height: 4px;
  opacity: 0.6;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Forum", serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
}

.name {
  color: var(--text);
  font-family: "Forum", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.name--gleb {
  color: var(--burgundy);
  text-shadow: 2px 2px 0 rgba(141, 181, 207, 0.12);
}

.name--arina {
  color: var(--burgundy);
  text-shadow: 2px 2px 0 rgba(217, 232, 223, 0.4);
}

.plus-sign {
  color: var(--burgundy);
  font-family: "Forum", serif;
}

h1::after {
  content: "приглашают родных";
  display: block;
  margin-top: 16px;
  font-family: "Nunito Sans", sans-serif;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
}

p {
  margin: 0;
  line-height: 1.65;
}

.hero__date {
  margin-top: 18px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: var(--burgundy);
  font-weight: 800;
  font-family: "Nunito Sans", sans-serif;
}

.hero__place,
.hero__lead {
  margin-top: 16px;
  max-width: 58ch;
  font-family: "Nunito Sans", sans-serif;
}

.hero__lead {
  color: rgba(60, 43, 42, 0.8);
}

.hero__actions,
.hero__meta,
.details__grid,
.story__cards,
.contacts__cards,
.countdown__grid,
.form-grid,
.tags,
.story__hybrid,
.location__grid {
  display: grid;
}

.hero__actions {
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-soft));
  color: #fff;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border-color: rgba(60, 43, 42, 0.12);
}

.hero__meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero__meta-card,
.countdown__item,
.detail-card,
.contact-card,
.memory-card,
.gallery__item,
.rsvp-form,
.timeline__item,
.story__text-card,
.venue-slider,
.map-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero__meta-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
}

.hero__meta-title {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero__meta-value {
  display: block;
  margin-top: 8px;
  font-weight: 700;
}

.section {
  position: relative;
  padding: 44px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(115, 79, 67, 0.1);
  backdrop-filter: blur(8px);
}

.section__heading {
  max-width: 760px;
  margin-bottom: 28px;
}

#countdown,
#story,
#location,
#program,
#rsvp,
#contacts {
  scroll-margin-top: 92px;
}

.section__heading p:last-child {
  margin-top: 14px;
  color: rgba(60, 43, 42, 0.82);
}

.section__heading--center {
  max-width: none;
  text-align: center;
}

.section__heading--center h2 {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

.section__heading--center p:last-child {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

.countdown__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.countdown__item {
  padding: 28px 18px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.countdown__value {
  display: block;
  font-family: "Forum", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
}

.countdown__label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.countdown__note {
  color: rgba(60, 43, 42, 0.72);
}

.story__hybrid {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: center;
}

.story__intro {
  display: none;
}

.story__notes {
  display: grid;
  gap: 14px;
  align-content: center;
}

.story__note-handwritten {
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: 2rem;
  line-height: 1.35;
  color: var(--text);
}

.story__note-text {
  color: rgba(60, 43, 42, 0.8);
}

.polaroid-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.polaroid {
  width: 100%;
  margin: 0;
  padding: 12px 12px 18px;
  background: #fffdf9;
  border-radius: 12px;
  box-shadow: 0 18px 34px rgba(87, 59, 46, 0.14);
}

.polaroid__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
}

.polaroid__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.polaroid__photo.is-active {
  opacity: 1;
}

.polaroid figcaption {
  margin-top: 10px;
  font-family: "Neucha", cursive;
  color: var(--text);
  font-size: 1.15rem;
}

.polaroid--gleb {
  transform: rotate(-8deg);
}

.polaroid--arina {
  transform: rotate(7deg);
}

.memory-slider {
  display: flex;
  justify-content: center;
}

.memory-slider__stage {
  position: relative;
  min-height: 620px;
  width: min(100%, 760px);
}

.memory-slide,
.gallery-card {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: rgba(255, 251, 245, 0.9);
}

.memory-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: rotate(-1deg) scale(0.985);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.memory-slide.is-active {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  z-index: 1;
}

.memory-slide img,
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__title,
.location__title,
.rsvp-title,
.contacts__title {
  max-width: none;
}

.location__title,
.contacts__title {
  display: inline-block;
}

.section__heading--center .location__title::after,
.section__heading--center .contacts__title::after {
  left: 10%;
  right: 10%;
}

.location__grid {
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 18px;
  align-items: stretch;
}

.feature-list {
  margin: 16px 0 0;
  padding-left: 20px;
}

.feature-list li + li {
  margin-top: 8px;
}

.details__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.details__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.details__grid--centered .detail-card {
  text-align: center;
}

.details__grid--centered .detail-card p {
  margin-left: auto;
  margin-right: auto;
}

.detail-card,
.contact-card {
  padding: 28px;
  border-radius: 28px;
}

.contact-card__intro {
  max-width: 42ch;
  margin: 0 auto;
  color: rgba(60, 43, 42, 0.74);
}

.contact-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  text-align: left;
}

.contact-pill {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(126, 16, 38, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.contact-pill--wide {
  grid-column: 1 / -1;
}

.contact-pill__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(60, 43, 42, 0.5);
}

.contact-pill__link {
  color: var(--burgundy);
  font-family: "Forum", serif;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  text-decoration: none;
}

.contact-pill__meta {
  color: var(--muted);
  text-decoration: none;
  line-height: 1.45;
}

.detail-card p:not(.eyebrow) {
  margin-top: 12px;
}

.venue-slider {
  position: relative;
  padding: 18px;
  border-radius: 28px;
}

.venue-slider__stage--square {
  position: relative;
  min-height: 424px;
  border-radius: 24px;
  overflow: hidden;
}

.venue-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  margin: 0;
}

.venue-slide.is-active {
  opacity: 1;
}

.venue-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.slider-button:hover {
  transform: translateY(-50%);
}

.slider-button--overlay {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.slider-button--left {
  left: 14px;
}

.slider-button--right {
  right: 14px;
}

.map-card {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
  margin-top: 22px;
  padding: 18px;
}

.map-card__copy {
  padding: 12px 4px 12px 0;
}

.map-card__frame {
  overflow: hidden;
  border-radius: 24px;
  min-height: 420px;
  border: 1px solid var(--line);
}

.map-card__frame--placeholder {
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(141, 181, 207, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 244, 239, 0.96));
}

.map-card__placeholder {
  max-width: 320px;
  text-align: center;
}

.map-card__placeholder h4 {
  margin: 6px 0 12px;
  font-family: "Forum", serif;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
}

.map-card__placeholder p:not(.eyebrow) {
  margin: 0 0 18px;
  color: rgba(60, 43, 42, 0.74);
}

.map-card__frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
}

.timeline__time {
  font-family: "Forum", serif;
  font-size: 2rem;
  color: var(--accent);
}

.timeline__content p {
  margin-top: 8px;
  color: rgba(60, 43, 42, 0.8);
}

.rsvp-form {
  padding: 28px;
  border-radius: 28px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.field span,
.fieldset legend {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 16px 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(60, 43, 42, 0.12);
  border-radius: 18px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(126, 16, 38, 0.42);
  box-shadow: 0 0 0 4px rgba(126, 16, 38, 0.1);
}

.fieldset {
  padding: 0;
  border: 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  margin-top: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(60, 43, 42, 0.1);
}

.choice input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.button--submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--muted);
}

.contacts__cards {
  grid-template-columns: 1fr;
  gap: 18px;
}

.contact-card {
  text-align: center;
}

.contact-card p {
  margin-top: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

code {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  font-family: inherit;
  font-weight: 700;
}

.playful-hashtag {
  display: inline-flex;
  gap: 0.01em;
}

.playful-word {
  display: inline-flex;
  gap: 0.01em;
  white-space: nowrap;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  transform: none;
}

.playful-hashtag span:nth-child(5n + 1),
.playful-word span:nth-child(5n + 1) {
  color: var(--pink);
}

.playful-hashtag span:nth-child(5n + 2),
.playful-word span:nth-child(5n + 2) {
  color: var(--accent);
}

.playful-hashtag span:nth-child(5n + 3),
.playful-word span:nth-child(5n + 3) {
  color: var(--green);
}

.playful-hashtag span:nth-child(5n + 4),
.playful-word span:nth-child(5n + 4) {
  color: var(--violet);
}

.playful-hashtag span:nth-child(5n),
.playful-word span:nth-child(5n) {
  color: var(--yellow);
}

.section__heading h2 {
  position: relative;
  display: inline-block;
}

.section__heading h2::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 12%;
  bottom: -10px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M3 11C32 17 60 6 89 9C118 12 149 13 177 10C206 7 236 12 265 9C278 8 289 8 297 6' stroke='%23eb8b7f' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  transform: rotate(-1.5deg);
  pointer-events: none;
}

.countdown__line {
  white-space: nowrap;
}

.countdown .section__heading h2::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M3 11C32 17 60 6 89 9C118 12 149 13 177 10C206 7 236 12 265 9C278 8 289 8 297 6' stroke='%238db5cf' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.story .section__heading h2::after,
.location .section__heading h2::after,
.program .section__heading h2::after,
.rsvp .section__heading h2::after,
.contacts .section__heading h2::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M3 11C32 17 60 6 89 9C118 12 149 13 177 10C206 7 236 12 265 9C278 8 289 8 297 6' stroke='%237e1026' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.gallery .section__heading h2::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M3 11C32 17 60 6 89 9C118 12 149 13 177 10C206 7 236 12 265 9C278 8 289 8 297 6' stroke='%23b79bd8' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.hero::before {
  content: ":)";
  position: absolute;
  left: -6px;
  top: 160px;
  z-index: 1;
  font-family: "Neucha", cursive;
  font-size: 2rem;
  color: rgba(235, 139, 127, 0.55);
  transform: rotate(-12deg);
}

.countdown {
  overflow: visible;
}

.countdown::after {
  content: "";
  display: block;
  position: absolute;
  left: -62px;
  top: 36px;
  width: 74px;
  height: 74px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='74' height='74' viewBox='0 0 74 74' fill='none'%3E%3Ccircle cx='37' cy='37' r='15' stroke='%23f0c34e' stroke-width='2.8'/%3E%3Cpath d='M37 8V0M55 13L61 7M66 37H74M55 61L61 67M37 66V74M13 61L7 67M8 37H0M13 13L7 7' stroke='%23f0c34e' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0.72;
  pointer-events: none;
}

.story,
.gallery,
.program,
.location,
.contacts {
  overflow: visible;
}

.story::after {
  content: "";
  display: block;
  position: absolute;
  right: -118px;
  top: 128px;
  width: 72px;
  height: 78px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='78' viewBox='0 0 72 78' fill='none'%3E%3Cpath d='M10 35L35 14L60 35' stroke='%238db5cf' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 34V62H54V34' stroke='%238db5cf' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M30 62V45H40V62' stroke='%23eb8b7f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0.66;
  pointer-events: none;
}

.gallery::after {
  content: "";
  display: block;
  position: absolute;
  left: -60px;
  top: 160px;
  width: 70px;
  height: 70px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70' viewBox='0 0 70 70' fill='none'%3E%3Cpath d='M35 17C39 10 49 10 53 17C58 24 54 33 47 35C54 37 58 46 53 53C49 60 39 60 35 53C31 60 21 60 17 53C12 46 16 37 23 35C16 33 12 24 17 17C21 10 31 10 35 17Z' stroke='%23eb8b7f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='35' cy='35' r='4' fill='%23f0c34e'/%3E%3C/svg%3E");
  opacity: 0.64;
  pointer-events: none;
}

.program::after {
  content: "";
  display: block;
  position: absolute;
  right: -126px;
  top: 208px;
  width: 78px;
  height: 54px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='78' height='54' viewBox='0 0 78 54' fill='none'%3E%3Cpath d='M8 42C14 36 21 34 28 38C34 42 41 41 47 36C53 31 60 31 66 36' stroke='%23b79bd8' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M10 16C16 10 22 10 28 15C34 20 41 20 47 15C53 10 59 10 66 15' stroke='%238db5cf' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0.58;
  pointer-events: none;
}

.details {
  overflow: visible;
}

.details::before {
  content: ":)";
  display: block;
  position: absolute;
  left: -34px;
  top: 82px;
  width: auto;
  height: auto;
  background: none;
  font-family: "Neucha", cursive;
  font-size: 1.8rem;
  color: rgba(127, 169, 140, 0.72);
  transform: rotate(-10deg);
  pointer-events: none;
}

.details::after {
  content: "";
  position: absolute;
  left: -44px;
  top: 86px;
  width: 44px;
  height: 44px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: none;
  opacity: 0.72;
  pointer-events: none;
}

.rsvp {
  overflow: visible;
}

.rsvp::after {
  content: "";
  display: block;
  position: absolute;
  right: -18px;
  top: 34px;
  width: 112px;
  height: 78px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='64' viewBox='0 0 92 64' fill='none'%3E%3Cpath d='M14 20H66C72 20 77 25 77 31V40C77 46 72 51 66 51H14C8 51 3 46 3 40V31C3 25 8 20 14 20Z' stroke='%23f0c34e' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M18 20V11C18 7 21 4 25 4H55C59 4 62 7 62 11V20' stroke='%23f0c34e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 29H26M33 29H44M51 29H62' stroke='%238db5cf' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='24' cy='52' r='6' stroke='%238db5cf' stroke-width='2.5'/%3E%3Ccircle cx='58' cy='52' r='6' stroke='%238db5cf' stroke-width='2.5'/%3E%3Cpath d='M81 26C84 29 87 29 90 26' stroke='%23eb8b7f' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0.92;
  pointer-events: none;
  z-index: 2;
}

.contacts::after {
  content: "";
  display: block;
  position: absolute;
  left: -62px;
  top: 54px;
  width: 76px;
  height: 52px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='52' viewBox='0 0 76 52' fill='none'%3E%3Cpath d='M8 28C15 20 22 18 29 22C36 26 43 25 50 20C57 15 64 17 70 24' stroke='%238db5cf' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M11 40C18 34 26 33 33 37C40 41 47 40 54 35' stroke='%23f0c34e' stroke-width='2.3' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0.56;
  pointer-events: none;
}

@media (max-width: 980px) {
  .floating-nav {
    top: 10px;
    gap: 8px;
    width: min(calc(100% - 20px), 680px);
    padding: 10px 12px;
  }

  .floating-nav a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 16px;
  }

  .hero__video-wrap {
    aspect-ratio: 16 / 9;
  }

  .hero__content {
    width: auto;
    margin: 14px 12px 0;
    padding: 28px;
  }

  .section__heading h2 {
    display: block;
    width: fit-content;
    max-width: min(100%, 18ch);
    line-height: 1.06;
    text-wrap: balance;
  }

  .section__heading--center h2 {
    margin-left: auto;
    margin-right: auto;
  }

  .countdown .section__heading h2 { max-width: 15ch; }
  .story .section__heading h2 { max-width: 17ch; }
  .gallery .section__heading h2 { max-width: 16ch; }
  .location .section__heading h2 { max-width: 18ch; }
  .program .section__heading h2 { max-width: 17ch; }
  .rsvp .section__heading h2 { max-width: 15ch; }
  .contacts .section__heading h2 { max-width: 16ch; }

  .hero__actions,
  .hero__meta,
  .story__hybrid,
  .polaroid-pair,
  .details__grid,
  .details__grid--two,
  .contacts__cards,
  .countdown__grid,
  .form-grid,
  .memory-slider,
  .location__grid,
  .map-card {
    grid-template-columns: 1fr;
  }

  .contact-card__grid {
    grid-template-columns: 1fr;
  }

  .timeline__item {
    grid-template-columns: 1fr;
  }

  .memory-slider__stage {
    min-height: 440px;
  }

  .section {
    padding: 28px 20px;
  }
}

@media (max-width: 720px) {
  .floating-nav {
    width: min(calc(100% - 14px), 560px);
    left: 50%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 10px 16px;
    border-radius: 24px;
  }

  .floating-nav::-webkit-scrollbar {
    display: none;
  }

  .floating-nav::after {
    left: 10px;
    right: 10px;
    bottom: 7px;
  }

  .floating-nav a {
    justify-content: center;
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.82rem;
  }

  .section,
  .hero {
    width: min(calc(100% - 18px), var(--container));
    margin-bottom: 18px;
  }

  .hero__video-wrap {
    aspect-ratio: 4 / 5;
    border-radius: 30px;
  }

  .hero__content {
    margin: 12px 10px 0;
    padding: 22px 18px;
    border-radius: 28px;
  }

  h2 {
    font-size: clamp(1.48rem, 6vw, 1.92rem);
    line-height: 1.1;
  }

  .section__heading h2 {
    max-width: min(100%, 18ch);
    text-wrap: balance;
  }

  .countdown .section__heading h2 {
    max-width: 15.5ch;
  }

  .story .section__heading h2 { max-width: 18ch; }
  .gallery .section__heading h2 { max-width: 17ch; }
  .location .section__heading h2 { max-width: 19ch; }
  .program .section__heading h2 {
    max-width: 21ch;
    font-size: clamp(1.42rem, 5.8vw, 1.82rem);
  }
  .rsvp .section__heading h2 {
    max-width: 17ch;
    font-size: clamp(1.44rem, 5.8vw, 1.84rem);
  }
  .contacts .section__heading h2 {
    max-width: 17ch;
    font-size: clamp(1.44rem, 5.8vw, 1.84rem);
  }

  .countdown .section__heading h2::after {
    left: 0;
    right: 0;
    bottom: -8px;
    height: 14px;
  }

  .program .section__heading h2::after {
    left: 1%;
    right: 8%;
  }

  .rsvp .section__heading h2::after {
    left: 9%;
    right: 3%;
  }

  .contacts .section__heading h2::after {
    left: 8%;
    right: 8%;
  }

  .contacts__title br {
    display: none;
  }

  .countdown__note {
    max-width: 28ch;
  }

  .hero__badge {
    min-height: 42px;
    padding: 0 14px;
    font-size: 1rem;
  }

  .hero__badge--left {
    left: 14px;
    bottom: 14px;
  }

  .hero__badge--right {
    right: 14px;
    top: 14px;
  }

  .hero__audio-control {
    right: 14px;
    bottom: 14px;
    gap: 0;
  }

  .hero__sound {
    min-height: 36px;
    padding: 0 10px;
  }

  .scroll-top {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
  }

  .audio-fab {
    right: 14px;
    bottom: 68px;
    width: 46px;
    height: 46px;
  }

  .hero__actions,
  .hero__meta,
  .details__grid--two,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .memory-slider__stage {
    min-height: 320px;
  }

  .venue-slider__stage--square {
    min-height: 300px;
  }

  .hero::before,
  .countdown::after,
  .story::after,
  .gallery::after,
  .program::after,
  .details::before,
  .details::after,
  .rsvp::after,
  .contacts::after,
  .page-shell::before,
  .page-shell::after {
    display: none;
  }
}
