:root {
  --cream: #fef9f1;
  --cream-soft: #fef9f1;
  --plate-bg: #fef9f1;
  --blue: #1f63b7;
  --blue-deep: #174881;
  --blue-soft: #dceeff;
  --lemon: #f5c949;
  --lemon-soft: #fff0b8;
  --olive: #7f8a5b;
  --ink: #263143;
  --muted: #687386;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(23, 72, 129, 0.18);
  --shadow-soft: 0 18px 44px rgba(145, 110, 36, 0.12);
  --radius-xl: 34px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #FBF8F3;
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: none;
}

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

a {
  color: inherit;
}

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

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 96px 20px 72px;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(39deg, rgb(18 11 7 / 50%), rgb(20 30 22 / 54%)),
    url("assets/hero.png") center / cover no-repeat;
}

.nav {
  position: absolute;
  top: 24px;
  left: 50%;
  width: min(1120px, calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.nav__brand,
.footer__monogram {
  font-family: "Great Vibes", "Marck Script", cursive;
  font-size: 34px;
  text-decoration: none;
  letter-spacing: 0.03em;
  color: inherit;
  cursor: pointer;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: 0.25s ease;
}

.nav__links a:hover {
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.88);
}

.hero__content {
  width: min(920px, 100%);
  animation: reveal 0.9s ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--lemon);
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(66px, 12vw, 148px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hero h1 span {
  color: var(--lemon-soft);
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  text-shadow: 0 0 30px rgba(245, 201, 73, 0.48);
}

.hero__script {
  margin: 18px 0 0;
  color: #fff2c8;
  font-family: "Marck Script", "Cormorant Garamond", cursive;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 1;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.hero__text {
  width: min(680px, 100%);
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(36px, 5vw, 48px);
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  padding: 13px 26px 13px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(254, 249, 241, 0.96);
  color: #1a1a1a;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  appearance: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.hero__btn:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(245, 201, 73, 0.55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.hero__btn-png {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.82;
}

.hero__btn-text {
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 14px/1 "Inter", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.button--primary {
  color: var(--white);
  background: linear-gradient(135deg, #2f78d7 0%, var(--blue) 45%, var(--blue-deep) 100%);
  box-shadow: 0 16px 38px rgba(31, 99, 183, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.button--outline {
  color: var(--blue);
  border-color: rgba(31, 99, 183, 0.3);
  background: var(--white);
}

.button--telegram {
  gap: 10px;
  color: var(--white);
  border-color: rgba(42, 171, 238, 0.32);
  background: linear-gradient(135deg, #2aabee 0%, #1f8bd1 48%, #1769b2 100%);
  box-shadow: 0 16px 34px rgba(31, 139, 209, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.telegram-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.18));
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 34px;
  height: 54px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
}

.scroll-hint span {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}

.scroll-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(20px, 4vw, 32px);
  z-index: 100;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background: rgba(254, 249, 241, 0.96);
  color: #1a1a1a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #fff;
  border-color: rgba(245, 201, 73, 0.55);
}

.scroll-top span {
  margin-top: -2px;
}

main {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.wave-section {
  position: relative;
  margin-top: clamp(-80px, -11vw, -116px);
  clip-path: url(#wave-clip);
  -webkit-clip-path: url(#wave-clip);
}

.wave-section--arch {
  margin-top: clamp(-64px, -9vw, -92px);
  clip-path: url(#arch-clip);
  -webkit-clip-path: url(#arch-clip);
}

.wave-section--zigzag {
  margin-top: 0;
  clip-path: url(#zigzag-clip);
  -webkit-clip-path: url(#zigzag-clip);
}

main {
  position: relative;
  z-index: 2;
  overflow: visible;
  background: transparent;
}

.plate-section {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(56px, 9vw, 88px) clamp(20px, 5vw, 32px);
  background: #fef9f1;
}

.plate-section__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

#rsvp.wave-section {
  margin-top: clamp(-96px, -13vw, -140px);
  clip-path: url(#wave-clip-hero);
  -webkit-clip-path: url(#wave-clip-hero);
}

.plate-section.rsvp {
  z-index: 2;
  padding: clamp(100px, 14vw, 148px) clamp(20px, 5vw, 32px) clamp(72px, 11vw, 108px);
  background: #fef9f1;
}

.plate-section.rsvp .plate-section__card {
  max-width: 720px;
}

.plate-section.rsvp .plate-section__script {
  font-size: clamp(34px, 5.5vw, 52px);
}

.plate-section.rsvp .plate-section__lead {
  margin-top: clamp(28px, 5vw, 40px);
  font-size: clamp(26px, 3.8vw, 36px);
}

.plate-section.rsvp .plate-section__note {
  font-size: clamp(22px, 3.2vw, 30px);
}

.plate-section__script {
  margin: 0 0 10px;
  color: #205393;
  font-family: "Marck Script", "Great Vibes", cursive;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 400;
  line-height: 1.2;
}

.plate-section__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(220px, 70%);
  margin: clamp(18px, 3vw, 24px) auto 0;
}

.plate-section__ornament::before,
.plate-section__ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 201, 73, 0.85), transparent);
}

.plate-section__ornament span {
  color: var(--lemon);
  font-size: 11px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(245, 201, 73, 0.45);
}

.plate-section__title {
  margin: 0;
  color: #000;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(38px, 5.8vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.plate-section__title::after {
  content: none;
}

.plate-section__lead {
  margin: clamp(24px, 4vw, 32px) 0 0;
  color: #000;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}

.plate-section__note {
  margin: clamp(16px, 3vw, 22px) 0 0;
  max-width: 42ch;
  color: rgba(0, 0, 0, 0.78);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  text-wrap: pretty;
}

.plate-section__accent {
  display: inline-block;
  margin-top: 6px;
  color: #0044bc;
  font-weight: 600;
}

.plate-section__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(32px, 5vw, 44px);
  padding: 8px 8px 8px 34px;
  border: none;
  border-radius: 999px;
  background: #205393;
  color: #fff;
  box-shadow: 0 12px 28px rgba(32, 83, 147, 0.22);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.plate-section__button:hover {
  transform: translateY(-2px);
  background: #1a4680;
  box-shadow: 0 16px 36px rgba(32, 83, 147, 0.28);
}

.plate-section__button-text {
  font: 600 13px/1 "Inter", Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plate-section__button-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 18px;
  line-height: 1;
}

#timing.image-block {
  margin-top: 0;
  clip-path: none;
  -webkit-clip-path: none;
}

.image-block {
  position: relative;
  z-index: 3;
  background-color: #fef9f1;
}

#place.image-block {
  z-index: 4;
}

.image-block__picture,
.image-block__picture img {
  display: block;
  width: 100%;
  height: auto;
}

.rsvp__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

h2 {
  margin: 0;
  color: var(--blue-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

h2::after {
  content: "";
  display: block;
  width: 82px;
  height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, transparent, var(--lemon), transparent);
}

.section-head h2::after {
  margin-inline: auto;
}

.rsvp__panel > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.section-head {
  margin-bottom: 28px;
  text-align: center;
}

.section-head .section-kicker {
  color: var(--olive);
}

.image-section {
  position: relative;
  padding: clamp(64px, 8vw, 110px) 0;
  background:
    radial-gradient(circle at 8% 5%, rgba(245, 201, 73, 0.18), transparent 24rem),
    var(--cream-soft);
}

.image-section--blue {
  background:
    radial-gradient(circle at 90% 10%, rgba(31, 99, 183, 0.14), transparent 26rem),
    linear-gradient(180deg, #eef7ff, #fff8ec);
}

.art-card {
  position: relative;
  margin: 0;
  padding: clamp(8px, 1.5vw, 16px);
  border: 1px solid rgba(31, 99, 183, 0.14);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 242, 0.66)),
    rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow), var(--shadow-soft);
  overflow: hidden;
}

.art-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(245, 201, 73, 0.34);
  border-radius: calc(var(--radius-xl) - 12px);
  pointer-events: none;
}

.art-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 32%, rgba(31, 99, 183, 0.06));
}

.art-card img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 16px);
}

.art-card figcaption {
  position: absolute;
  right: clamp(28px, 5vw, 72px);
  bottom: clamp(28px, 5vw, 72px);
}

.rsvp__media {
  padding: 10px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.rsvp__media img {
  border-radius: calc(var(--radius-xl) - 12px);
}

.rsvp__panel {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(31, 99, 183, 0.13);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 242, 0.82)),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.rsvp__panel .section-kicker {
  color: var(--olive);
}

.rsvp__panel h2 {
  margin-bottom: 18px;
}

.rsvp__panel .rsvp-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.rsvp__panel .rsvp-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-deep);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.rsvp__panel .rsvp-form input,
.rsvp__panel .rsvp-form select,
.rsvp__panel .rsvp-form textarea {
  width: 100%;
  border: 1px solid rgba(31, 99, 183, 0.18);
  border-radius: 18px;
  padding: 15px 16px;
  color: var(--ink);
  background: #fffdf8;
  font: 500 16px/1.4 "Inter", Arial, sans-serif;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rsvp__panel .rsvp-form textarea {
  resize: vertical;
}

.rsvp__panel .rsvp-form input:focus,
.rsvp__panel .rsvp-form select:focus,
.rsvp__panel .rsvp-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 99, 183, 0.12);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--olive);
  font-weight: 700;
}

.chat-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(245, 201, 73, 0.42);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 8% 18%, rgba(42, 171, 238, 0.18), transparent 12rem),
    linear-gradient(135deg, rgba(245, 201, 73, 0.16), rgba(220, 238, 255, 0.62));
  overflow: hidden;
}

.chat-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -38px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(42, 171, 238, 0.16);
}

.chat-card span {
  display: block;
  color: var(--blue-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
}

.chat-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.chat-card > * {
  position: relative;
  z-index: 1;
}

.footer {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 36px 20px;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 201, 73, 0.22), transparent 18rem),
    linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer__monogram {
  color: var(--white);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollDot {
  0%,
  100% {
    opacity: 0.35;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 16px);
  }
}

@media (max-width: 900px) {
  .nav {
    align-items: center;
    border-radius: 999px;
  }

  .nav__links {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

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

  .art-card figcaption {
    position: static;
    display: flex;
    justify-content: center;
    padding: 18px 8px 4px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .hero {
    min-height: 92svh;
    padding: 118px 14px 70px;
    background-position: 52% center;
  }

  .nav {
    top: 12px;
    width: calc(100% - 24px);
    padding: 10px;
  }

  .nav__brand {
    font-size: 28px;
  }

  .nav__links {
    gap: 2px;
  }

  .nav__links a {
    padding: 7px 8px;
    font-size: 12px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero__btn {
    width: 100%;
    max-width: 320px;
    white-space: normal;
    text-align: center;
    padding: 14px 24px;
  }

  .hero__btn-text {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding-inline: 18px;
    font-size: 12px;
  }

  .telegram-icon {
    width: 18px;
    height: 18px;
  }

  .section {
    padding: 56px 0;
  }

  .plate-section {
    padding-inline: 16px;
  }

  .image-section {
    padding: 54px 0;
  }

  .art-card,
  .rsvp__media,
  .rsvp__panel {
    border-radius: 24px;
  }

  .art-card {
    padding: 6px;
  }

  .art-card::before {
    inset: 10px;
    border-radius: 18px;
  }

  .art-card img,
  .rsvp__media img {
    border-radius: 18px;
  }

  .rsvp__panel {
    padding: 22px;
  }
}

/* Финальная раскладка: картинки заказчика являются основными секциями сайта. */
.image-section {
  padding: 0;
  background: var(--cream-soft);
}

.image-section .container {
  width: 100%;
  max-width: none;
}

.image-section .section-head {
  display: none;
}

.art-card {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.art-card::before,
.art-card::after {
  display: none;
}

.art-card img {
  width: 100%;
  max-width: none;
  border-radius: 0;
}

.art-card figcaption {
  right: clamp(24px, 5vw, 72px);
  bottom: clamp(24px, 5vw, 72px);
}

.plate-section.rsvp,
.rsvp.section {
  background: #FCF8F3;
}

.rsvp .container {
  width: 100%;
  max-width: none;
}

.rsvp__grid {
  display: block;
}

.rsvp__media {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rsvp__media img {
  width: 100%;
  max-width: none;
  border-radius: 0;
}

.rsvp__panel {
  width: min(820px, calc(100% - 32px));
  margin: clamp(28px, 5vw, 54px) auto 0;
}

@media (max-width: 900px) {
  .art-card figcaption {
    position: static;
    padding: 16px 12px 28px;
    background: var(--cream-soft);
  }

  .art-card figcaption .button {
    width: min(420px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  body {
    min-width: 0;
  }

  .container {
    width: min(100% - 24px, 1160px);
  }

  .nav {
    top: 12px;
    width: calc(100% - 24px);
    align-items: center;
    justify-content: center;
    border-radius: 999px;
  }

  .nav__links {
    display: none;
  }

  .nav__brand {
    font-size: 30px;
  }

  .hero {
    min-height: 100svh;
    padding: 94px 14px 58px;
    background-position: center;
  }

  .eyebrow,
  .section-kicker {
    letter-spacing: 0.18em;
  }

  .hero h1 {
    font-size: clamp(48px, 18vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.03em;
  }

  .hero__script {
    margin-top: 12px;
    font-size: clamp(38px, 14vw, 56px);
  }

  .hero__text {
    margin-top: 20px;
    font-size: 22px;
  }

  .hero__actions {
    margin-top: 28px;
  }

  .scroll-hint {
    display: none;
  }

  h2 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .rsvp__panel {
    width: calc(100% - 24px);
    padding: 22px;
    border-radius: 24px;
  }

  .rsvp__panel h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .chat-card {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

/* RSVP modal */
.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

.rsvp-modal--open {
  opacity: 1;
  visibility: visible;
}

.rsvp-modal[hidden] {
  display: none;
}

.rsvp-modal:not([hidden]) {
  display: flex;
}

.rsvp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 34, 0.52);
  backdrop-filter: blur(8px);
}

.rsvp-modal__sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: translateY(100%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.rsvp-modal--open .rsvp-modal__sheet {
  transform: translateY(0);
}

.rsvp-modal__topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding:
    calc(14px + env(safe-area-inset-top, 0px))
    calc(18px + env(safe-area-inset-right, 0px))
    14px
    calc(20px + env(safe-area-inset-left, 0px));
  border-bottom: 1px solid rgba(32, 83, 147, 0.1);
  background: linear-gradient(180deg, #fffdf8 0%, var(--cream) 100%);
}

.rsvp-modal__topbar-text {
  min-width: 0;
}

.rsvp-modal__kicker {
  margin: 0 0 4px;
  color: #b8921f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.rsvp-modal__title {
  margin: 0;
  color: var(--blue-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 7vw, 34px);
  font-weight: 600;
  line-height: 1.05;
}

.rsvp-modal__x {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(32, 83, 147, 0.14);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rsvp-modal__x:hover {
  color: var(--blue-deep);
  border-color: rgba(245, 201, 73, 0.65);
}

.rsvp-modal .rsvp-form:not([hidden]) {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}

.rsvp-modal .rsvp-form[hidden],
.rsvp-modal__success[hidden] {
  display: none !important;
}

.rsvp-form__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 12px;
}

.rsvp-form__grid {
  display: grid;
  gap: 18px;
}

.rsvp-field--full,
.rsvp-group--full {
  grid-column: 1 / -1;
}

.rsvp-field__label,
.rsvp-group__title {
  display: block;
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.rsvp-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  transition: opacity 0.22s ease, filter 0.22s ease;
}

.rsvp-group--disabled {
  opacity: 0.42;
  pointer-events: none;
  filter: grayscale(0.15);
}

.rsvp-group--disabled .rsvp-group__title::after {
  content: " — не требуется";
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 500;
}

.rsvp-field__input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(32, 83, 147, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 500 16px/1.35 "Inter", Arial, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-field__input::placeholder {
  color: rgba(104, 115, 134, 0.65);
}

.rsvp-field__input:focus {
  outline: none;
  border-color: rgba(32, 83, 147, 0.45);
  box-shadow: 0 0 0 3px rgba(220, 238, 255, 0.95);
}

.rsvp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rsvp-chips--radio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.rsvp-chip {
  position: relative;
  display: block;
  cursor: pointer;
}

.rsvp-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rsvp-chip__text {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(32, 83, 147, 0.14);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.rsvp-chip:hover .rsvp-chip__text {
  border-color: rgba(32, 83, 147, 0.28);
}

.rsvp-chip input:checked + .rsvp-chip__text {
  border-color: var(--blue);
  background: linear-gradient(135deg, #205393, #174881);
  color: #fff;
  box-shadow: 0 8px 20px rgba(32, 83, 147, 0.22);
}

.rsvp-chips--check .rsvp-chip__text {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}

.rsvp-form__error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(220, 53, 69, 0.08);
  color: #a52834;
  font-size: 13px;
  line-height: 1.35;
}

.rsvp-form__footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex-shrink: 0;
  padding:
    12px 20px
    calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(32, 83, 147, 0.1);
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(10px);
}

.rsvp-form__submit,
.rsvp-form__close {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  font: 600 11px/1 "Inter", Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rsvp-form__submit {
  border: none;
  background: linear-gradient(135deg, #205393, #174881);
  color: #fff;
  box-shadow: 0 10px 24px rgba(32, 83, 147, 0.22);
}

.rsvp-form__submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.rsvp-form__submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.rsvp-form__submit--solo {
  width: 100%;
  max-width: 280px;
  margin-top: 8px;
}

.rsvp-form__close {
  border: 1px solid rgba(32, 83, 147, 0.18);
  background: #fff;
  color: var(--blue-deep);
}

.rsvp-form__close:hover {
  border-color: rgba(245, 201, 73, 0.65);
}

.rsvp-modal__success:not([hidden]) {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}

.rsvp-modal__success-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  width: min(360px, 100%);
  text-align: center;
}

.rsvp-modal__success-mark {
  margin: 0;
  color: var(--lemon);
  font-size: 26px;
}

.rsvp-modal__success-title {
  margin: 0;
  color: var(--blue-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 600;
}

.rsvp-modal__success-text {
  margin: 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.35;
}

body.rsvp-modal-open {
  overflow: hidden;
}

@media (min-width: 769px) {
  .rsvp-modal {
    align-items: center;
    padding: 20px;
  }

  .rsvp-modal__sheet {
    width: min(700px, 100%);
    height: auto;
    max-height: calc(100dvh - 40px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 28px;
    overflow: hidden;
    transform: translateY(12px) scale(0.97);
  }

  .rsvp-modal--open .rsvp-modal__sheet {
    transform: translateY(0) scale(1);
  }

  .rsvp-modal__topbar {
    padding: 18px 22px 14px;
  }

  .rsvp-modal__title {
    font-size: 32px;
  }

  .rsvp-form__body {
    overflow: visible;
    padding: 12px 24px 8px;
  }

  .rsvp-form__grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
  }

  .rsvp-chips--radio {
    grid-template-columns: 1fr 1fr;
  }

  .rsvp-chips--check {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .rsvp-chips--check .rsvp-chip__text {
    min-height: 38px;
    font-size: 12px;
  }

  .rsvp-field__label,
  .rsvp-group__title {
    margin-bottom: 6px;
    font-size: 17px;
  }

  .rsvp-field__input {
    padding: 11px 14px;
    font-size: 15px;
  }

  .rsvp-form__footer {
    padding: 12px 24px 16px;
  }
}

@media (min-width: 769px) and (max-height: 760px) {
  .rsvp-form__body {
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  .rsvp-modal__backdrop {
    display: none;
  }

  .rsvp-chips--check {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rsvp-group--transfer .rsvp-chips--radio {
    grid-template-columns: 1fr 1fr;
  }
}
