:root {
  --ink: #17251f;
  --muted: #68736c;
  --paper: #fffaf3;
  --cream: #f2e7da;
  --sage: #496d5d;
  --sage-dark: #173c32;
  --gold: #c6a15a;
  --rose: #8f3948;
  --line: rgba(38, 50, 45, 0.16);
  --font-body: "Montserrat", "Inter", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-title: "Prata", "Playfair Display", Georgia, serif;
  --font-accent: "Marck Script", cursive;
  --font-light: "Poiret One", "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
}

body:not(.invitation-open) {
  overflow: hidden;
}

.page {
  overflow: hidden;
}

.start-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 42px 18px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(23, 60, 50, 0.18), rgba(23, 60, 50, 0.54)),
    radial-gradient(circle at 50% 34%, rgba(255, 250, 243, 0.92), transparent 24%),
    radial-gradient(circle at 50% 68%, rgba(198, 161, 90, 0.32), transparent 42%),
    linear-gradient(135deg, #173c32, #fff3e9 48%, #8f3948);
  transition: opacity 700ms ease, visibility 700ms ease, transform 700ms ease;
}

.start-screen.is-opening {
  background: transparent;
}

.start-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
}

.start-screen__doors {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  pointer-events: none;
}

.start-screen__door {
  min-width: 0;
  background:
    linear-gradient(135deg, rgba(23, 60, 50, 0.96), rgba(73, 109, 93, 0.84) 52%, rgba(91, 38, 52, 0.9)),
    repeating-linear-gradient(115deg, rgba(255, 250, 243, 0.1) 0 1px, transparent 1px 22px);
  box-shadow: inset 0 0 0 1px rgba(198, 161, 90, 0.24);
  transition: transform 900ms cubic-bezier(0.76, 0, 0.24, 1);
}

.start-screen__door--left {
  transform-origin: left center;
}

.start-screen__door--right {
  transform-origin: right center;
}

.start-screen.is-opening .start-screen__door--left {
  transform: translateX(-102%);
}

.start-screen.is-opening .start-screen__door--right {
  transform: translateX(102%);
}

.start-screen::before {
  content: "";
  position: absolute;
  inset: auto -8% 0;
  height: min(46vh, 360px);
  background:
    linear-gradient(135deg, rgba(23, 60, 50, 0.72), rgba(143, 57, 72, 0.34)),
    linear-gradient(90deg, rgba(198, 161, 90, 0), rgba(198, 161, 90, 0.2), rgba(198, 161, 90, 0)),
    url("assets/kelshi-photo-2.png") center bottom / contain no-repeat;
  background-blend-mode: multiply, screen, normal;
  opacity: 0.78;
  filter: drop-shadow(0 24px 34px rgba(23, 60, 50, 0.28));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  z-index: 2;
  pointer-events: none;
  transition: opacity 420ms ease, transform 700ms ease;
}

.start-screen.is-opening::before {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
}

.start-screen__ornament {
  position: absolute;
  width: min(74vw, 620px);
  opacity: 0.46;
  pointer-events: none;
  z-index: 2;
  transition: opacity 420ms ease, transform 700ms ease;
  filter: drop-shadow(0 18px 34px rgba(198, 161, 90, 0.2));
}

.start-screen__ornament img {
  display: block;
  width: 100%;
}

.start-screen__content {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 4vh, 34px);
  width: min(980px, 100%);
  text-shadow: 0 2px 22px rgba(255, 250, 243, 0.82);
  transition: opacity 360ms ease, transform 700ms ease;
}

.start-screen__content .eyebrow {
  position: relative;
  margin-bottom: 4px;
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 3vw, 2.3rem);
  line-height: 1.1;
  color: transparent;
  background:
    linear-gradient(105deg, #7f6128 0%, #f9dc82 24%, #fff6bd 38%, #c69337 55%, #fff0a8 72%, #9f7934 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 2px 20px rgba(248, 231, 167, 0.38), 0 1px 0 rgba(255, 250, 243, 0.28);
}

.start-screen__content .eyebrow::after {
  content: "";
  position: absolute;
  inset: -30% -18%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0) 64%, transparent 100%);
  transform: translateX(-120%);
  animation: gold-sheen 3.8s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes gold-sheen {
  0%, 34% {
    transform: translateX(-120%);
  }

  68%, 100% {
    transform: translateX(120%);
  }
}

.start-screen.is-opening .start-screen__ornament,
.start-screen.is-opening .start-screen__content {
  opacity: 0;
  transform: scale(0.94);
}

.start-names {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: clamp(4.8rem, 17vw, 12rem);
  font-weight: 400;
  line-height: 0.82;
}

.start-names span:nth-child(2) {
  color: var(--sage-dark);
  font-family: var(--font-accent);
  font-size: 0.58em;
  line-height: 0.95;
}

.start-screen .button {
  width: clamp(124px, 15vw, 154px);
  height: clamp(124px, 15vw, 154px);
  min-height: 0;
  border-radius: 50%;
  border: 1px solid rgba(248, 231, 167, 0.72);
  padding: 18px;
  text-align: center;
  line-height: 1.15;
  color: #fff8dc;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 250, 220, 0.16), transparent 28%),
    linear-gradient(145deg, #102f28, #17483a 54%, #0d2a24);
  box-shadow:
    0 22px 48px rgba(23, 60, 50, 0.34),
    inset 0 0 0 1px rgba(255, 250, 220, 0.12),
    inset 0 -18px 34px rgba(0, 0, 0, 0.14);
  position: relative;
  isolation: isolate;
}

.start-screen .button::before,
.start-screen .button::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(198, 161, 90, 0.58);
  pointer-events: none;
}

.start-screen .button::before {
  animation: invite-pulse 2.4s ease-in-out infinite;
}

.start-screen .button::after {
  inset: 9px;
  border-color: rgba(255, 242, 182, 0.22);
}

.start-screen .button span {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.86rem, 1.25vw, 1rem);
  font-weight: 700;
  line-height: 1.16;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.start-screen .button:hover {
  transform: translateY(-2px);
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 250, 220, 0.2), transparent 28%),
    linear-gradient(145deg, #12372f, #1b5646 54%, #0f3029);
}

.start-screen .button:focus-visible {
  outline: 2px solid rgba(248, 231, 167, 0.8);
  outline-offset: 7px;
}

@keyframes invite-pulse {
  0%, 100% {
    opacity: 0.9;
    transform: scale(1);
  }

  50% {
    opacity: 0.36;
    transform: scale(1.12);
  }
}

.hero {
  min-height: 94vh;
  display: grid;
  place-items: center;
  padding: 40px 18px 64px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 250, 243, 0.08), rgba(255, 250, 243, 0.86)),
    radial-gradient(circle at 50% 30%, rgba(255, 253, 249, 0.96), transparent 26%),
    radial-gradient(circle at 50% 72%, rgba(198, 161, 90, 0.26), transparent 42%),
    radial-gradient(circle at 18% 18%, rgba(143, 57, 72, 0.24), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(23, 60, 50, 0.18), transparent 34%),
    linear-gradient(135deg, #e8eee5 0%, #fff3e9 50%, #dfe8df 100%);
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: min(38vw, 260px);
  aspect-ratio: 1;
  border: 1px solid rgba(185, 155, 97, 0.36);
  transform: rotate(45deg);
}

.hero::before {
  top: 10%;
  left: -96px;
}

.hero::after {
  right: -96px;
  bottom: 9%;
}

.hero__visual {
  position: absolute;
  width: min(72vw, 600px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 16px 30px rgba(198, 161, 90, 0.16));
}

.hero__visual img {
  display: block;
  width: 100%;
}

.hero__hands {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: min(92vw, 960px);
  transform: translateX(-50%);
  opacity: 0.84;
  pointer-events: none;
  z-index: 1;
}

.hero__hands::before {
  content: "";
  position: absolute;
  inset: 12% 4% 6%;
  background:
    linear-gradient(135deg, rgba(23, 60, 50, 0.9), rgba(73, 109, 93, 0.58) 48%, rgba(143, 57, 72, 0.58)),
    linear-gradient(90deg, rgba(198, 161, 90, 0), rgba(198, 161, 90, 0.28), rgba(198, 161, 90, 0)),
    repeating-linear-gradient(115deg, rgba(255, 250, 243, 0.12) 0 1px, transparent 1px 18px);
  border: 1px solid rgba(198, 161, 90, 0.32);
  border-radius: 999px;
  box-shadow: 0 28px 70px rgba(23, 60, 50, 0.28);
  filter: blur(0.2px);
  transform: translateY(8%) scale(0.96);
}

.hero__hands img {
  position: relative;
  display: block;
  width: 100%;
  filter:
    drop-shadow(0 18px 26px rgba(38, 50, 45, 0.16))
    saturate(1.04)
    contrast(1.03)
    brightness(1.03);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  width: min(760px, 100%);
  text-shadow: 0 2px 20px rgba(255, 253, 249, 0.86);
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: var(--font-light);
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.music-toggle {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 20;
  min-height: 42px;
  border: 1px solid rgba(255, 250, 243, 0.64);
  border-radius: 999px;
  padding: 0 16px;
  color: #fffaf3;
  background: rgba(23, 60, 50, 0.86);
  box-shadow: 0 14px 34px rgba(23, 60, 50, 0.22);
  font: 600 0.78rem/1 var(--font-body);
  letter-spacing: 0;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: opacity 240ms ease, transform 240ms ease, background 240ms ease;
}

body:not(.invitation-open) .music-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.music-toggle.is-playing {
  color: var(--ink);
  background: rgba(198, 161, 90, 0.92);
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  position: relative;
  margin: 0;
  display: grid;
  gap: 0;
  color: transparent;
  background:
    linear-gradient(105deg, #102f28 0%, #245c4d 18%, #b88934 38%, #fff0a8 50%, #c28d2f 62%, #173c32 82%, #6f4e1c 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: clamp(4.9rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 0.78;
  text-shadow:
    0 0 16px rgba(255, 231, 155, 0.34),
    0 7px 26px rgba(23, 60, 50, 0.18),
    0 0 28px rgba(255, 250, 243, 0.74);
  transform: scaleX(0.94);
  transform-origin: center;
  animation: hero-gold-shine 5.2s ease-in-out infinite;
}

h1::after {
  content: "";
  position: absolute;
  inset: -6% -10%;
  background: linear-gradient(105deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.68) 50%, transparent 62%, transparent 100%);
  transform: translateX(-118%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: hero-gold-sweep 4.2s ease-in-out infinite;
}

h1 span:nth-child(2) {
  color: transparent;
  background: linear-gradient(105deg, #7f6128, #fff2b8 48%, #b88934);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--font-accent);
  font-size: 0.62em;
  line-height: 0.92;
  transform: translateY(0.12em) scaleX(1.06);
}

@keyframes hero-gold-shine {
  0%, 100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes hero-gold-sweep {
  0%, 32% {
    transform: translateX(-118%);
  }

  68%, 100% {
    transform: translateX(118%);
  }
}

.date {
  position: relative;
  display: inline-block;
  margin: 28px 0 0;
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 400;
  color: transparent;
  background: linear-gradient(105deg, #7a571d 0%, #d2a64a 22%, #fff2b8 42%, #bf8a2f 58%, #ffe18a 76%, #7f6128 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 16px rgba(255, 231, 155, 0.42),
    0 2px 12px rgba(255, 250, 243, 0.82);
  animation: date-gold-shine 4.4s ease-in-out infinite;
}

.date::after {
  content: "";
  position: absolute;
  inset: -36% -28%;
  background: linear-gradient(105deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.72) 50%, transparent 60%, transparent 100%);
  transform: translateX(-120%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: date-gold-sweep 3.8s ease-in-out infinite;
}

@keyframes date-gold-shine {
  0%, 100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes date-gold-sweep {
  0%, 34% {
    transform: translateX(-120%);
  }

  70%, 100% {
    transform: translateX(120%);
  }
}

.scroll-link {
  position: absolute;
  bottom: 26px;
  z-index: 2;
  color: var(--sage-dark);
  font-family: var(--font-light);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

section {
  padding: 76px max(18px, calc((100vw - 980px) / 2));
}

.intro,
.hosts,
.rsvp {
  text-align: center;
}

.intro {
  background:
    linear-gradient(180deg, #fffaf3, #f7efe4),
    radial-gradient(circle at 50% 0%, rgba(198, 161, 90, 0.16), transparent 30%);
}

.intro-title {
  margin: 0 auto 20px;
  color: var(--sage-dark);
  font-family: var(--font-title);
  font-size: clamp(3.4rem, 10vw, 6.7rem);
  font-weight: 400;
  line-height: 0.92;
  text-shadow: 0 10px 34px rgba(23, 60, 50, 0.12);
}

.intro-title::after {
  content: "";
  display: block;
  width: min(180px, 38vw);
  height: 1px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, rgba(198, 161, 90, 0.86), transparent);
}

.intro p {
  margin: 0 auto;
  max-width: 780px;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  line-height: 1.28;
}

.intro .kicker {
  margin-bottom: 20px;
  color: var(--sage-dark);
}

.countdown {
  width: min(820px, calc(100% - 76px));
  min-height: clamp(240px, 34vw, 390px);
  margin: 54px auto;
  padding: clamp(18px, 4vw, 42px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(198, 161, 90, 0.58);
  border-radius: 999px;
  background: #173c32;
  box-shadow: 0 34px 90px rgba(23, 60, 50, 0.26);
  overflow: hidden;
  position: relative;
}

.countdown__video,
.countdown__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.countdown__video {
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05) brightness(0.78);
}

.countdown__shade {
  background:
    radial-gradient(ellipse at center, rgba(255, 250, 243, 0.44), transparent 31%),
    linear-gradient(135deg, rgba(23, 60, 50, 0.76), rgba(23, 60, 50, 0.22) 46%, rgba(91, 38, 52, 0.62)),
    linear-gradient(90deg, rgba(198, 161, 90, 0.18), transparent 22%, transparent 78%, rgba(198, 161, 90, 0.18));
}

.countdown__content {
  position: relative;
  z-index: 1;
  align-self: start;
  margin-top: 0;
  width: min(620px, 100%);
  display: grid;
  gap: clamp(12px, 2.4vw, 22px);
  justify-items: center;
  padding: clamp(14px, 3vw, 28px);
  border: 1px solid rgba(255, 250, 243, 0.34);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.2);
  box-shadow: inset 0 0 0 1px rgba(198, 161, 90, 0.18), 0 18px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.countdown__content .section-label {
  margin: 0;
  color: #f4d796;
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 2.6vw, 1.08rem);
  font-weight: 600;
  text-transform: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.countdown__items {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(7px, 1.4vw, 13px);
}

.countdown__items div {
  min-height: clamp(68px, 9vw, 96px);
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(255, 250, 243, 0.28);
  border-radius: 999px;
  background: rgba(23, 60, 50, 0.48);
}

.countdown strong {
  color: #fffaf3;
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 5.2vw, 3.35rem);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.38);
}

.countdown span {
  margin-top: 4px;
  color: #f4d796;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 1fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(23, 60, 50, 0.08), rgba(143, 57, 72, 0.08)),
    var(--cream);
}

.story__text h2 {
  margin: 0 auto 18px;
  max-width: 620px;
  font-size: clamp(2.55rem, 7vw, 4.7rem);
  line-height: 0.96;
  text-align: center;
}

.story__text .section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--gold);
  background: none;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 400;
  line-height: 0.92;
  text-transform: none;
  text-shadow: none;
  transform: translateY(-8px);
}

.story__text p:not(.section-label) {
  margin-left: auto;
  margin-right: auto;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: center;
}

.photo-card {
  margin: 0;
  border: 1px solid rgba(185, 155, 97, 0.34);
  background:
    linear-gradient(rgba(251, 250, 246, 0.54), rgba(251, 250, 246, 0.84)),
    radial-gradient(circle at 54% 34%, rgba(216, 184, 170, 0.58), transparent 31%),
    linear-gradient(145deg, #fffdf9, #e7ece4);
  padding: 18px;
  position: relative;
  box-shadow: 0 26px 60px rgba(38, 50, 45, 0.16);
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(38, 50, 45, 0.16);
  pointer-events: none;
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  position: relative;
  filter: saturate(1.02) contrast(1.04) brightness(1.02);
}

.photo-strip {
  padding-top: 0;
  padding-bottom: 0;
  background:
    linear-gradient(180deg, rgba(23, 60, 50, 0.96), rgba(73, 109, 93, 0.84)),
    linear-gradient(90deg, rgba(198, 161, 90, 0), rgba(198, 161, 90, 0.22), rgba(198, 161, 90, 0));
}

.photo-strip img {
  display: block;
  width: min(100%, 1100px);
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.2)) saturate(1.06) contrast(1.04);
}

.video-section {
  display: grid;
  gap: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(198, 161, 90, 0.24), transparent 32%),
    linear-gradient(135deg, #173c32, #264f42 52%, #5b2634);
}

.video-section__text h2 {
  margin: 0;
  color: #fffaf3;
  font-size: clamp(2.35rem, 8vw, 4.5rem);
  line-height: 1;
}

.wedding-video {
  display: block;
  width: min(100%, 860px);
  max-height: 76vh;
  margin: 0 auto;
  border: 1px solid rgba(198, 161, 90, 0.62);
  background: #102b24;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.details {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(72px, 9vw, 112px);
  padding-bottom: clamp(72px, 9vw, 112px);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 142, 174, 0.42), transparent 26%),
    radial-gradient(circle at 88% 84%, rgba(255, 220, 139, 0.38), transparent 24%),
    radial-gradient(circle at 48% 18%, rgba(255, 250, 243, 0.3), transparent 33%),
    linear-gradient(135deg, #12382f 0%, #2f6a5d 48%, #8f3948 100%);
}

.details::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(248, 231, 167, 0.24);
  border-radius: 38px;
  pointer-events: none;
  z-index: 0;
}

.details::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 34%, rgba(255, 255, 255, 0.18) 44%, transparent 56% 100%),
    repeating-linear-gradient(115deg, rgba(255, 250, 243, 0.08) 0 1px, transparent 1px 24px);
  opacity: 0.48;
  pointer-events: none;
  z-index: 0;
}

.details__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.detail-block {
  position: relative;
  text-align: center;
}

.detail-block--calendar {
  overflow: hidden;
  padding: clamp(34px, 6vw, 58px) clamp(16px, 5vw, 54px) clamp(28px, 5vw, 44px);
  border: 1px solid rgba(255, 241, 190, 0.64);
  border-radius: 46px 46px 30px 30px;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 190, 209, 0.46), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(255, 221, 144, 0.44), transparent 24%),
    linear-gradient(180deg, rgba(255, 254, 249, 0.94), rgba(255, 244, 235, 0.91));
  box-shadow:
    0 28px 72px rgba(12, 35, 30, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.detail-block--calendar::before,
.detail-block--calendar::after {
  content: "";
  position: absolute;
  width: min(220px, 44vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 232, 161, 0.92) 0 7%, transparent 8%),
    radial-gradient(ellipse at 50% 18%, rgba(244, 99, 143, 0.55) 0 18%, transparent 19%),
    radial-gradient(ellipse at 82% 50%, rgba(255, 154, 174, 0.46) 0 19%, transparent 20%),
    radial-gradient(ellipse at 50% 82%, rgba(198, 64, 106, 0.4) 0 18%, transparent 19%),
    radial-gradient(ellipse at 18% 50%, rgba(255, 190, 207, 0.44) 0 20%, transparent 21%);
  filter: blur(0.2px);
  opacity: 0.62;
  pointer-events: none;
}

.detail-block--calendar::before {
  top: -92px;
  left: -82px;
  transform: rotate(-18deg);
}

.detail-block--calendar::after {
  right: -86px;
  bottom: -98px;
  transform: rotate(22deg);
}

.detail-block h2,
.hosts h2,
.rsvp h2 {
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 8vw, 4.2rem);
  line-height: 1;
}

.detail-block--calendar h2 {
  position: relative;
  z-index: 1;
  color: transparent;
  background: linear-gradient(110deg, #173c32, #2d6558 40%, #8f3948 76%, #c6a15a);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 12px 34px rgba(23, 60, 50, 0.08);
}

.details__mini {
  display: grid;
  grid-template-columns: minmax(180px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(14px, 2vw, 20px);
  align-items: stretch;
}

.details__mini .detail-block {
  overflow: hidden;
  min-height: 210px;
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 241, 190, 0.5);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 197, 213, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(255, 240, 231, 0.84));
  box-shadow: 0 22px 54px rgba(12, 35, 30, 0.18);
}

.details__mini .detail-block::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(198, 161, 90, 0.28);
  border-radius: 22px;
  pointer-events: none;
}

.detail-block p,
.rsvp p {
  color: var(--muted);
  line-height: 1.7;
}

.details .section-label {
  color: #b88740;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  font-weight: 500;
  text-transform: none;
}

.detail-block--calendar .section-label,
.time .section-label,
.detail-block--place .section-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 10px;
  background: none;
  font-family: var(--font-title);
  font-size: clamp(0.95rem, 2.4vw, 1.14rem);
  text-shadow: none;
}

.time .section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-transform: uppercase;
  width: min(300px, 100%);
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

.detail-block--calendar .section-label::before,
.detail-block--calendar .section-label::after,
.time .section-label::before,
.time .section-label::after,
.detail-block--place .section-label::before,
.detail-block--place .section-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(34px, 10vw, 96px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 161, 90, 0.82));
}

.detail-block--calendar .section-label::before,
.time .section-label::before,
.detail-block--place .section-label::before {
  right: calc(100% + 14px);
}

.detail-block--calendar .section-label::after,
.time .section-label::after,
.detail-block--place .section-label::after {
  left: calc(100% + 14px);
  transform: scaleX(-1);
}

.time .section-label::before,
.time .section-label::after {
  position: static;
  flex: 1 1 44px;
  width: auto;
  background: linear-gradient(90deg, transparent, rgba(198, 161, 90, 0.9));
}

.time .section-label::before {
  right: auto;
}

.time .section-label::after {
  left: auto;
  transform: scaleX(-1);
}

.time h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--sage-dark);
  font-family: var(--font-title);
  font-size: clamp(3rem, 9vw, 5.1rem);
  line-height: 1;
  text-align: center;
}

.time::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: clamp(150px, 24vw, 230px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 236, 175, 0.92) 0 7%, transparent 8%),
    radial-gradient(ellipse at 50% 16%, rgba(244, 96, 142, 0.58) 0 19%, transparent 20%),
    radial-gradient(ellipse at 84% 50%, rgba(255, 154, 180, 0.52) 0 20%, transparent 21%),
    radial-gradient(ellipse at 50% 84%, rgba(178, 49, 90, 0.42) 0 18%, transparent 19%),
    radial-gradient(ellipse at 16% 50%, rgba(255, 194, 210, 0.56) 0 21%, transparent 22%),
    radial-gradient(ellipse at 28% 28%, rgba(255, 222, 231, 0.48) 0 16%, transparent 17%),
    radial-gradient(ellipse at 72% 28%, rgba(244, 92, 137, 0.48) 0 16%, transparent 17%);
  opacity: 0.58;
  filter: blur(0.2px) drop-shadow(0 18px 24px rgba(143, 57, 72, 0.16));
  pointer-events: none;
}

.time .section-label {
  position: relative;
  z-index: 1;
}

.detail-block--place h2 {
  position: relative;
  z-index: 1;
  color: var(--sage-dark);
}

.details__mini .detail-block.detail-block--place {
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.2), rgba(255, 245, 232, 0.36)),
    radial-gradient(circle at 50% 26%, rgba(255, 250, 220, 0.14), transparent 38%),
    url("assets/astana-gold-bg.png") 50% bottom / cover no-repeat;
  box-shadow:
    0 22px 54px rgba(12, 35, 30, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.detail-block--place .section-label,
.detail-block--place p {
  position: relative;
  z-index: 1;
}

.detail-block--place p {
  margin: 0 auto 20px;
  max-width: 420px;
  color: rgba(23, 60, 50, 0.78);
  text-shadow: 0 1px 12px rgba(255, 250, 243, 0.72);
}

.detail-block--place .button {
  position: relative;
  z-index: 1;
}

.details .button {
  border-color: rgba(23, 60, 50, 0.58);
  border-radius: 999px;
  color: #fffaf3;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 250, 220, 0.18), transparent 28%),
    linear-gradient(145deg, #17483a, #102f28);
  box-shadow: 0 14px 30px rgba(23, 60, 50, 0.2);
}

.calendar {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin: 26px auto 0;
  padding: clamp(8px, 2vw, 14px);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(5px, 1.1vw, 8px);
  border: 1px solid rgba(198, 161, 90, 0.28);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.76), transparent 48%),
    rgba(255, 250, 243, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}

.calendar span,
.calendar b {
  display: grid;
  place-items: center;
  min-height: clamp(38px, 5vw, 48px);
  border-radius: 18px;
  font-size: clamp(0.78rem, 2vw, 0.95rem);
}

.calendar span {
  color: #835f27;
  background: rgba(255, 238, 185, 0.5);
  font-weight: 700;
}

.calendar b {
  color: #1e4a40;
  background: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.calendar .empty {
  background: transparent;
  pointer-events: none;
}

.calendar .active {
  width: clamp(42px, 6vw, 52px);
  min-height: clamp(42px, 6vw, 52px);
  justify-self: center;
  color: #fffaf3;
  background: linear-gradient(145deg, #8f3948 0%, #e0618a 46%, #c6a15a 100%);
  border-radius: 0;
  clip-path: polygon(50% 92%, 11% 56%, 6% 38%, 12% 19%, 28% 10%, 43% 18%, 50% 30%, 57% 18%, 72% 10%, 88% 19%, 94% 38%, 89% 56%);
  filter: drop-shadow(0 12px 16px rgba(143, 57, 72, 0.28));
  font-size: clamp(0.86rem, 2.2vw, 1rem);
  text-shadow: 0 2px 8px rgba(74, 21, 36, 0.35);
  transform: translateY(-2px);
}

.details__flower {
  position: absolute;
  width: clamp(170px, 28vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, #ffeab5 0 8%, transparent 9%),
    radial-gradient(ellipse at 50% 16%, rgba(255, 111, 154, 0.96) 0 19%, transparent 20%),
    radial-gradient(ellipse at 84% 50%, rgba(255, 151, 177, 0.88) 0 20%, transparent 21%),
    radial-gradient(ellipse at 50% 84%, rgba(179, 48, 89, 0.82) 0 18%, transparent 19%),
    radial-gradient(ellipse at 16% 50%, rgba(255, 194, 210, 0.9) 0 21%, transparent 22%),
    radial-gradient(ellipse at 28% 28%, rgba(255, 220, 230, 0.72) 0 16%, transparent 17%),
    radial-gradient(ellipse at 72% 28%, rgba(244, 92, 137, 0.72) 0 16%, transparent 17%);
  filter: drop-shadow(0 28px 30px rgba(60, 14, 31, 0.28));
  opacity: 0.9;
}

.details__flower::before,
.details__flower::after {
  content: "";
  position: absolute;
  width: 54%;
  height: 28%;
  border-radius: 999px 0 999px 0;
  background: linear-gradient(135deg, rgba(91, 132, 92, 0.86), rgba(30, 83, 69, 0.78));
  z-index: -1;
}

.details__flower::before {
  left: -18%;
  bottom: 4%;
  transform: rotate(-32deg);
}

.details__flower::after {
  right: -18%;
  bottom: 10%;
  transform: rotate(32deg) scaleX(-1);
}

.details__flower--left {
  left: max(-72px, calc((100vw - 980px) / 2 - 150px));
  top: 42px;
  transform: rotate(-18deg);
}

.details__flower--right {
  right: max(-86px, calc((100vw - 980px) / 2 - 172px));
  bottom: 30px;
  transform: rotate(22deg) scale(1.12);
}

.details__petals {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 17% 30%, rgba(255, 220, 229, 0.8) 0 5px, transparent 6px),
    radial-gradient(circle at 32% 72%, rgba(255, 199, 213, 0.68) 0 4px, transparent 5px),
    radial-gradient(circle at 64% 19%, rgba(255, 231, 170, 0.74) 0 4px, transparent 5px),
    radial-gradient(circle at 78% 64%, rgba(255, 180, 201, 0.66) 0 6px, transparent 7px),
    radial-gradient(circle at 88% 34%, rgba(255, 243, 204, 0.7) 0 3px, transparent 4px);
  opacity: 0.85;
}

.button,
.rsvp button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sage-dark);
  border-radius: 4px;
  padding: 0 20px;
  color: var(--sage-dark);
  background: transparent;
  font: 600 0.9rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

.button--dark,
.rsvp button.selected {
  color: #fff;
  background: var(--sage-dark);
}

.hosts {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: min(560px, calc(100% - 28px));
  margin: 28px auto;
  padding: clamp(30px, 5vw, 42px) 18px;
  border: 1px solid rgba(198, 161, 90, 0.32);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 238, 176, 0.45), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 243, 0.96), rgba(238, 244, 235, 0.9));
  box-shadow: 0 20px 52px rgba(23, 60, 50, 0.12);
}

.hosts::before,
.hosts::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.hosts::before {
  inset: 10px;
  border: 1px solid rgba(198, 161, 90, 0.22);
  border-radius: 20px;
}

.hosts::after {
  width: min(220px, 62vw);
  height: 1px;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent, rgba(198, 161, 90, 0.72), transparent);
}

.hosts .section-label {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
  color: #b88740;
  background: none;
  font-family: var(--font-title);
  font-size: clamp(0.95rem, 2.4vw, 1.14rem);
  text-shadow: none;
}

.hosts .section-label::before,
.hosts .section-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(34px, 10vw, 96px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 161, 90, 0.82));
}

.hosts .section-label::before {
  right: calc(100% + 14px);
}

.hosts .section-label::after {
  left: calc(100% + 14px);
  transform: scaleX(-1);
}

.hosts h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: transparent;
  background: linear-gradient(105deg, #6f4e1c 0%, #d5a84a 20%, #fff5bd 37%, #c28d2f 54%, #ffdf83 72%, #805c20 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--font-title);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 400;
  text-shadow:
    0 0 12px rgba(255, 231, 155, 0.28),
    0 8px 26px rgba(90, 58, 22, 0.12);
  animation: host-gold-shine 10s ease-in-out infinite;
}

.hosts h2::after {
  content: "";
  display: block;
  width: min(190px, 46vw);
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, rgba(198, 161, 90, 0.92), transparent);
  box-shadow: 0 0 18px rgba(198, 161, 90, 0.45);
}

@keyframes host-gold-shine {
  0%, 100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.rsvp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(52px, 7vw, 78px);
  padding-bottom: clamp(52px, 7vw, 78px);
  background:
    linear-gradient(145deg, #fffaf3 0%, #f7eadc 48%, #e8eee5 100%);
}

.rsvp::before {
  content: "";
  position: absolute;
  inset: 16px max(18px, calc((100vw - 700px) / 2));
  border: 1px solid rgba(198, 161, 90, 0.36);
  border-radius: 40px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(255, 238, 226, 0.28)),
    repeating-linear-gradient(115deg, rgba(198, 161, 90, 0.09) 0 1px, transparent 1px 24px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.36),
    0 26px 80px rgba(23, 60, 50, 0.1);
  z-index: -1;
}

.rsvp::after {
  content: none;
}

.rsvp .section-label {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
  color: #b88740;
  background: none;
  font-family: var(--font-title);
  font-size: clamp(0.9rem, 2.2vw, 1.08rem);
  text-shadow: none;
}

.rsvp h2 {
  width: min(460px, 100%);
  margin: 0 auto 8px;
  color: var(--sage-dark);
  background: none;
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 400;
  line-height: 0.94;
  text-shadow: none;
}

.rsvp__lead {
  width: min(420px, 100%);
  margin: 0 auto 18px;
  color: #496d5d;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.4vw, 1.22rem);
  line-height: 1.24;
}

.rsvp__form {
  position: relative;
  z-index: 1;
}

.rsvp__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rsvp label {
  max-width: 430px;
  margin: 0 auto 14px;
  display: grid;
  gap: 7px;
  text-align: left;
  color: var(--sage-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.rsvp input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(198, 161, 90, 0.46);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    0 16px 34px rgba(23, 60, 50, 0.08);
  font: 500 1rem/1 var(--font-body);
}

.rsvp__actions {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: 9px;
  margin: 14px auto 14px;
}

.rsvp button {
  min-height: 48px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.62);
  box-shadow: 0 14px 28px rgba(23, 60, 50, 0.08);
}

.rsvp button.selected {
  border-color: rgba(198, 161, 90, 0.7);
  color: #fff8dc;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 250, 220, 0.2), transparent 28%),
    linear-gradient(145deg, #12372f, #17483a 54%, #0f3029);
  box-shadow:
    0 16px 34px rgba(23, 60, 50, 0.22),
    inset 0 0 0 1px rgba(255, 250, 220, 0.12);
}

.rsvp__send {
  width: min(430px, 100%);
  display: grid;
  gap: 10px;
  margin: 0 auto;
}

.rsvp #rsvpSubmit,
.rsvp #whatsappLink {
  width: min(430px, 100%);
  min-height: 50px;
  border-color: rgba(198, 161, 90, 0.72);
  border-radius: 999px;
  color: #fff8dc;
  background:
    linear-gradient(110deg, rgba(255, 235, 160, 0.18), transparent 22%, rgba(255, 235, 160, 0.16)),
    linear-gradient(145deg, #17483a, #102f28);
  box-shadow:
    0 18px 40px rgba(23, 60, 50, 0.24),
    0 0 26px rgba(198, 161, 90, 0.22);
}

.rsvp #whatsappLink {
  color: #12372f;
  background:
    linear-gradient(110deg, rgba(255, 235, 160, 0.16), transparent 24%, rgba(255, 235, 160, 0.14)),
    rgba(255, 253, 249, 0.74);
}

.rsvp #rsvpSubmit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.rsvp__status {
  min-height: 20px;
  margin: 12px auto 0;
  color: #315948;
  font: 600 0.86rem/1.35 var(--font-body);
}

.rsvp__status[data-type="error"] {
  color: #9b3c3c;
}

.rsvp__status[data-type="success"] {
  color: #17483a;
}

@media (max-width: 760px) {
  .hero {
    min-height: 88vh;
  }

  .start-screen__content .eyebrow {
    font-size: clamp(1.05rem, 5.2vw, 1.7rem);
  }

  .music-toggle {
    right: 12px;
    top: 12px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hosts {
    width: calc(100% - 28px);
    margin: 16px auto;
    padding: 28px 12px;
    border-radius: 22px;
  }

  .hosts::before {
    inset: 8px;
    border-radius: 16px;
  }

  .hosts h2 {
    font-size: clamp(2rem, 8.6vw, 2.65rem);
    line-height: 1.04;
  }

  .rsvp {
    padding: 40px 18px;
  }

  .rsvp::before {
    inset: 10px 14px;
    border-radius: 24px;
  }

  .rsvp h2 {
    width: min(330px, 100%);
    font-size: clamp(1.8rem, 7.2vw, 2.18rem);
    line-height: 0.98;
    margin-bottom: 6px;
  }

  .rsvp__lead {
    width: min(330px, 100%);
    margin-bottom: 14px;
    font-size: clamp(0.96rem, 3.9vw, 1.08rem);
  }

  .rsvp label {
    margin-bottom: 10px;
    font-size: 0.82rem;
  }

  .rsvp__actions {
    grid-template-columns: 1fr;
    width: min(330px, 100%);
    gap: 8px;
    margin: 10px auto 12px;
  }

  .rsvp input,
  .rsvp button,
  .rsvp #rsvpSubmit,
  .rsvp #whatsappLink {
    min-height: 46px;
  }

  .rsvp__send,
  .rsvp #rsvpSubmit,
  .rsvp #whatsappLink {
    width: min(330px, 100%);
  }

  .details {
    padding: 66px 14px;
  }

  .details::before {
    inset: 10px;
    border-radius: 28px;
  }

  .details__panel {
    gap: 14px;
  }

  .detail-block--calendar {
    padding: 32px 12px 22px;
    border-radius: 30px 30px 24px 24px;
  }

  .detail-block--calendar::before {
    top: -84px;
    left: -94px;
  }

  .detail-block--calendar::after {
    right: -98px;
    bottom: -96px;
  }

  .details__mini {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .details__mini .detail-block {
    min-height: 0;
    padding: 26px 16px;
    border-radius: 24px;
  }

  .details__mini .detail-block::before {
    inset: 10px;
    border-radius: 18px;
  }

  .time::after {
    right: -54px;
    bottom: -64px;
    width: 178px;
    opacity: 0.5;
  }

  .details__mini .detail-block.detail-block--place {
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.18), rgba(255, 245, 232, 0.34)),
      radial-gradient(circle at 50% 30%, rgba(255, 250, 220, 0.12), transparent 38%),
      url("assets/astana-gold-bg.png") 50% bottom / cover no-repeat;
  }

  .calendar {
    margin-top: 20px;
    padding: 8px;
    gap: 4px;
    border-radius: 22px;
  }

  .calendar span,
  .calendar b {
    min-height: 34px;
    border-radius: 13px;
    font-size: 0.75rem;
  }

  .calendar .active {
    width: 38px;
    min-height: 38px;
    font-size: 0.82rem;
  }

  .details__flower {
    width: 190px;
    opacity: 0.72;
  }

  .details__flower--left {
    left: -104px;
    top: 34px;
  }

  .details__flower--right {
    right: -112px;
    bottom: 18px;
  }

  .countdown {
    width: calc(100% - 28px);
    min-height: 420px;
    margin: 40px auto;
    padding: 0 0 16px;
    border-radius: 34px;
  }

  .countdown__content {
    align-self: start;
    margin-top: 0;
    width: 100%;
    border-radius: 34px;
    padding: 20px 12px;
  }

  .countdown__items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .countdown__items div {
    min-height: 64px;
    padding: 4px 2px;
  }

  .countdown strong {
    font-size: clamp(1.35rem, 8.2vw, 2rem);
  }

  .countdown span {
    margin-top: 2px;
    font-size: 0.54rem;
  }

  .story {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .story__text {
    width: 100%;
  }

  .story__text h2 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(1.52rem, 6.2vw, 1.95rem);
    line-height: 1.05;
  }

  .hero__hands {
    bottom: 10%;
    width: 124vw;
    opacity: 0.68;
  }

  .photo-card {
    padding: 12px;
  }

  .wedding-video {
    max-height: 70vh;
  }

  .rsvp button,
  .button {
    width: 100%;
  }
}

.guest-album {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(58px, 8vw, 92px) 18px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(245, 235, 220, 0.9)),
    radial-gradient(circle at 14% 18%, rgba(232, 168, 181, 0.28), transparent 28%),
    radial-gradient(circle at 86% 70%, rgba(199, 155, 70, 0.18), transparent 30%);
}

.guest-album::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(198, 161, 90, 0.32);
  border-radius: 34px;
  pointer-events: none;
}

.guest-album h2 {
  width: min(680px, 100%);
  margin: 0 auto;
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  font-weight: 700;
  line-height: 0.95;
}

.guest-album__lead {
  width: min(560px, 100%);
  margin: 16px auto 28px;
  color: #5f766d;
  font-size: clamp(0.98rem, 2.3vw, 1.16rem);
  line-height: 1.62;
}

.upload-form,
.login-panel,
.empty-state {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 32px);
  border: 1px solid rgba(198, 161, 90, 0.36);
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.86);
  box-shadow: 0 22px 60px rgba(23, 60, 50, 0.12);
}

.upload-field,
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  text-align: left;
  color: var(--sage-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.upload-field input,
.upload-field textarea,
.field input {
  width: 100%;
  border: 1px solid rgba(198, 161, 90, 0.42);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  font: 500 1rem/1.35 var(--font-body);
  outline: none;
}

.upload-field textarea {
  min-height: 92px;
  resize: vertical;
}

.upload-field input:focus,
.upload-field textarea:focus,
.field input:focus {
  border-color: rgba(198, 161, 90, 0.82);
  box-shadow: 0 0 0 3px rgba(198, 161, 90, 0.16);
}

.upload-dropzone {
  min-height: 168px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px dashed rgba(23, 60, 50, 0.42);
  border-radius: 26px;
  padding: 24px;
  color: var(--sage-dark);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 244, 229, 0.78)),
    radial-gradient(circle at 22% 18%, rgba(232, 168, 181, 0.18), transparent 30%);
  cursor: pointer;
}

.upload-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-dropzone strong {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1;
}

.upload-dropzone span {
  color: #6d8278;
  line-height: 1.45;
}

.file-list {
  margin: 16px 0;
}

.file-list__summary {
  margin: 0 0 8px;
  color: var(--sage-dark);
  font-weight: 700;
}

.file-list ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.file-list li {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(23, 60, 50, 0.12);
  border-radius: 16px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.58);
}

.file-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list small {
  flex: 0 0 auto;
  color: #6d8278;
}

.upload-status,
.status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--sage-dark);
  font-weight: 700;
  line-height: 1.45;
}

.upload-status[data-type="error"],
.status[data-type="error"],
.status--error {
  color: #9b3c3c;
}

.upload-status[data-type="success"],
.status[data-type="success"] {
  color: #1d6b50;
}

.gallery-link,
.back-link,
.download-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--sage-dark);
  font-weight: 800;
}

.gallery-page {
  padding: 28px 18px 72px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(246, 239, 230, 0.92)),
    url("assets/astana-gold-bg.png") center top / cover fixed;
}

.login-panel {
  margin-top: min(14vh, 120px);
  text-align: center;
}

.login-panel h1,
.gallery-header h1,
.empty-state h2 {
  margin: 0;
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.96;
}

.login-form {
  width: min(420px, 100%);
  margin: 24px auto 0;
}

.gallery-header {
  width: min(1180px, 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 22px;
}

.gallery-header h1 {
  max-width: 760px;
}

.gallery-header nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button--ghost {
  background: transparent;
}

.stats {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto 22px;
}

.stats div {
  border: 1px solid rgba(198, 161, 90, 0.34);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 252, 247, 0.88);
}

.stats strong {
  display: block;
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.stats span {
  color: #6d8278;
  font-weight: 700;
}

.media-grid {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.media-card {
  overflow: hidden;
  border: 1px solid rgba(198, 161, 90, 0.34);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.92);
  box-shadow: 0 16px 36px rgba(23, 60, 50, 0.12);
}

.media-card__preview {
  aspect-ratio: 4 / 5;
  background: rgba(23, 60, 50, 0.12);
}

.media-card__preview img,
.media-card__preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card__body {
  padding: 16px;
}

.media-card h2 {
  margin: 0 0 8px;
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}

.media-card p {
  margin: 0 0 14px;
  color: #6d8278;
  line-height: 1.5;
}

.media-card dl {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
}

.media-card dl div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
}

.media-card dt {
  color: var(--gold);
  font-weight: 800;
}

.media-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .guest-album {
    padding: 54px 14px;
  }

  .guest-album::before {
    inset: 10px;
    border-radius: 28px;
  }

  .upload-form,
  .login-panel,
  .empty-state {
    padding: 18px;
    border-radius: 20px;
  }

  .gallery-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-header nav,
  .gallery-header .button {
    width: 100%;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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