/* Свадебное приглашение Эрлан & Татыбүбү — светлая палитра, цветы и кыргызский орнамент */

:root {
  --ivory: #FBF7F0;
  --paper: #FFFDF9;
  --cream: #F3EADF;
  --blush: #E8C6BE;
  --rose: #C98F86;
  --rose-deep: #8E554C;
  --sage: #B4C2A4;
  --sage-deep: #6F8462;
  --gold-line: #C4A46C;
  --gold-soft: #DCC89F;
  --gold-text: #7E6031;
  --gold-deep: #6E5228;
  --ink: #43362F;
  --ink-soft: #6A5A50;

  --f-script: "Great Vibes", "Segoe Script", cursive;
  --f-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 48px);
  --section-pad: clamp(80px, 13vw, 150px);
}

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

/* атрибут hidden сильнее любых display: grid/flex ниже (форма после отправки, сетка отсчёта после начала тоя) */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--ivory);
  background-image: url("../img/paper.svg");
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: clamp(1.125rem, 1rem + .5vw, 1.3rem);
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main, .hero, .finale { overflow-x: clip; }

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Общие элементы ---------- */

.eyebrow {
  margin: 0;
  font-family: var(--f-sans);
  font-size: clamp(.68rem, .62rem + .25vw, .8rem);
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.section-title {
  margin: 0 0 .5em;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.8rem);
  line-height: 1.1;
  color: var(--rose-deep);
  text-align: center;
}

.divider {
  display: block;
  width: min(240px, 66vw);
  height: auto;
  margin: 0 auto 1.4rem;
  fill: none;
  stroke: var(--gold-line);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.divider--small { width: min(200px, 56vw); margin-bottom: 1rem; }

.band {
  height: 30px;
  background: url("../img/band.svg") center / 56px 30px repeat-x;
  opacity: .75;
  margin-inline: var(--gutter);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: 1rem 2rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold-deep);
  color: #FFFBF5;
  font-family: var(--f-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px -16px rgba(110, 82, 40, .75);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.btn:hover { background: #5A4220; box-shadow: 0 18px 34px -16px rgba(110, 82, 40, .85); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn--wide { width: 100%; }
.btn--ghost {
  background: transparent;
  color: var(--gold-deep);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.btn--ghost:hover { background: rgba(196, 164, 108, .12); box-shadow: inset 0 0 0 1px var(--gold-deep); }
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- Герой ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6svh, 64px) var(--gutter) clamp(72px, 12svh, 110px);
  isolation: isolate;
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(42% 34% at 12% 10%, rgba(232, 198, 190, .55), transparent 70%),
    radial-gradient(38% 30% at 90% 92%, rgba(180, 194, 164, .45), transparent 70%),
    radial-gradient(50% 40% at 50% 46%, rgba(255, 253, 248, .9), transparent 75%),
    radial-gradient(30% 26% at 88% 16%, rgba(220, 200, 159, .28), transparent 70%),
    radial-gradient(30% 26% at 10% 86%, rgba(232, 198, 190, .3), transparent 70%);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/pattern.svg") center / 120px 120px repeat;
  opacity: .32;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, transparent 30%, #000 85%);
          mask-image: radial-gradient(70% 60% at 50% 50%, transparent 30%, #000 85%);
}

.hero__petals {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.petal {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 18px;
  will-change: transform;
}
.petal svg { width: 100%; height: 100%; display: block; }

.corner {
  position: absolute;
  z-index: -1;
  width: clamp(170px, 38vw, 560px);
  pointer-events: none;
}
.corner--tl { top: clamp(-70px, -7vw, -24px); left: clamp(-80px, -8vw, -30px); }
.corner--br { bottom: clamp(-70px, -7vw, -24px); right: clamp(-80px, -8vw, -30px); }
.corner .bouquet { width: 100%; height: auto; display: block; overflow: visible; }
.corner--br .bouquet { transform: rotate(180deg); }

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 760px;
}

.hero__eyebrow { margin-bottom: clamp(30px, 5svh, 52px); }

.arch {
  position: relative;
  width: min(52vw, 27svh, 330px);
  aspect-ratio: 3 / 4;
}
.arch__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--gold-line);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arch-line--thin { stroke-width: .7; stroke: var(--gold-soft); }
.arch-apex { stroke-width: 2.6; }
.arch-gem { fill: var(--paper); stroke-width: 1; }

.arch__inner {
  position: absolute;
  inset: 6%;
  border-radius: 999px 999px 10px 10px;
  overflow: hidden;
  background:
    radial-gradient(80% 55% at 50% 30%, #FFFAF5 0%, rgba(255, 250, 245, 0) 70%),
    linear-gradient(180deg, #F6E6DE 0%, #F1DCD2 55%, #EED8CC 100%);
  box-shadow: inset 0 0 0 1px rgba(196, 164, 108, .25);
}
.arch__inner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(251, 247, 240, 0), var(--ivory) 92%);
  pointer-events: none;
}
.arch__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* низ фото растворяется в фоне, без прямоугольного края */
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 97%);
          mask-image: linear-gradient(180deg, #000 58%, transparent 97%);
}
.arch.has-photo .arch__inner { background: none; box-shadow: none; }
.arch.has-photo .arch__inner::after { display: none; }
.arch.has-photo .monogram { display: none; }

.monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 22%;
  font-family: var(--f-script);
  color: var(--gold-text);
  line-height: 1;
}
.monogram__letter { font-size: clamp(3rem, 12vw, 6.4rem); }
.monogram__amp {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 4vw, 2rem);
  margin: 0 .15em;
  color: var(--rose);
  transform: translateY(.3em);
}
.monogram__wreath {
  position: absolute;
  left: 50%;
  bottom: 24%;
  width: 78%;
  transform: translateX(-50%);
  overflow: visible;
}

/* Имена — прямые капители Cormorant (в рукописных шрифтах Google нет буквы «ү»), амперсанд — Great Vibes */
.names {
  position: relative;
  z-index: 2;
  margin: clamp(16px, 2.8svh, 30px) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 1.3rem + 5vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.names__line {
  display: block;
  padding: 0 0 0 .12em; /* компенсирует хвост letter-spacing справа — строка стоит ровно по центру */
  background: linear-gradient(100deg, #7A5A2A 0%, #A9844A 38%, #8A6A35 62%, #6E5228 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.names__amp {
  display: block;
  margin: -.12em 0 -.22em;
  font-family: var(--f-script);
  font-size: 1.15em;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rose);
}

.hero__date {
  margin: clamp(14px, 2.4svh, 26px) 0 0;
  font-family: var(--f-serif);
  font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink);
}
.hero__time {
  margin: .25rem 0 0;
  font-family: var(--f-sans);
  font-size: clamp(.7rem, .64rem + .25vw, .82rem);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 3.4svh, 34px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--f-sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-text);
  text-decoration: none;
  white-space: nowrap;
}
.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 36px;
  background: rgba(196, 164, 108, .35);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-text);
  transform: translateY(-100%);
  animation: cue 2.2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* До старта вступления (класс ставит main.js, страховка — таймер в <head>) */
.js:not(.hero-ready) [data-hero] { opacity: 0; }
.js:not(.hero-ready) .corner { opacity: 0; }

/* ---------- Приглашение ---------- */

.invite {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  text-align: center;
}
.invite > :not(.invite__sprig) { position: relative; z-index: 1; }
.invite__text {
  max-width: 30ch;
  margin: 0 auto;
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}
.invite__sign {
  margin: 2rem 0 0;
  font-family: var(--f-sans);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.invite__sign span {
  display: inline-block;
  margin-top: .6rem;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
  letter-spacing: .1em;
  color: var(--gold-text);
}
.invite__sprig {
  position: absolute;
  width: clamp(120px, 22vw, 300px);
  height: auto;
  opacity: .9;
  pointer-events: none;
  overflow: visible;
}
.invite__sprig--left { left: clamp(-90px, -6vw, -30px); bottom: 6%; transform: rotate(-90deg); }
.invite__sprig--right { right: clamp(-90px, -6vw, -30px); top: 8%; transform: rotate(90deg); }

/* ---------- Той күнү ---------- */

.day {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
  overflow: hidden;
  text-align: center;
  background: radial-gradient(60% 50% at 50% 50%, rgba(243, 234, 223, .9), rgba(243, 234, 223, 0) 75%);
}
.medallion {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(94vw, 82svh, 680px);
  height: auto;
  translate: -50% -50%;
  overflow: visible;
}
.medal-lines { fill: none; stroke: var(--gold-soft); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.medal-lines .thin { stroke-width: .7; }
.medal-dots { fill: var(--gold-line); }

.day__content { position: relative; display: flex; flex-direction: column; align-items: center; }
/* мягкая подложка: линии медальона не спорят с цифрами */
.day__content::before {
  content: "";
  position: absolute;
  inset: -18% -22%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(251, 247, 240, .92) 55%, rgba(251, 247, 240, 0));
  pointer-events: none;
}
.day__number {
  margin: .1em 0 0;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(6.5rem, 4rem + 14vw, 12rem);
  line-height: .9;
  background: linear-gradient(160deg, #8A6A35 10%, #B8955A 50%, #6E5228 95%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.day__month {
  margin: -.12em 0 0;
  font-family: var(--f-script);
  font-size: clamp(2.8rem, 2rem + 4vw, 4.8rem);
  line-height: 1.1;
  color: var(--rose-deep);
}
.day__year {
  margin: .6rem 0 0;
  font-family: var(--f-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.day__time {
  margin: .5rem 0 0;
  font-size: clamp(1.25rem, 1.1rem + .8vw, 1.7rem);
  color: var(--ink);
}

/* ---------- Обратный отсчёт ---------- */

.countdown {
  padding: var(--section-pad) var(--gutter) calc(var(--section-pad) * .6);
  text-align: center;
}
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2.4vw, 22px);
  max-width: 640px;
  margin: 0 auto;
}
.cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  padding: 12% 4% 8%;
  border-radius: 999px 999px 14px 14px;
  background: linear-gradient(180deg, var(--paper), rgba(255, 253, 249, .6));
  box-shadow: inset 0 0 0 1px rgba(196, 164, 108, .45), inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgba(196, 164, 108, .22), 0 18px 34px -24px rgba(110, 82, 40, .35);
}
.cd-num {
  display: block;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 1.2rem + 3.6vw, 3.6rem);
  line-height: 1;
  color: var(--rose-deep);
  font-variant-numeric: lining-nums tabular-nums;
}
.cd-label {
  margin-top: .55em;
  font-family: var(--f-sans);
  font-size: clamp(.58rem, .52rem + .25vw, .72rem);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.countdown__done {
  max-width: 24ch;
  margin: 0 auto;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  color: var(--rose-deep);
}

/* ---------- Место ---------- */

.venue { padding: calc(var(--section-pad) * .5) var(--gutter) var(--section-pad); }
.venue__card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 72px) clamp(22px, 6vw, 56px) clamp(40px, 7vw, 56px);
  text-align: center;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(196, 164, 108, .5), inset 0 0 0 7px var(--paper), inset 0 0 0 8px rgba(196, 164, 108, .25), 0 30px 60px -40px rgba(110, 82, 40, .45);
}
.venue__flowers {
  position: absolute;
  top: -46px;
  left: -46px;
  width: clamp(130px, 30vw, 190px);
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.venue__name {
  margin: .9rem 0 0;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 1.8rem + 3vw, 3.6rem);
  line-height: 1.05;
  color: var(--rose-deep);
}
.venue__kind {
  margin: .2rem 0 1rem;
  font-size: 1.3rem;
  color: var(--ink-soft);
}
.venue__address {
  font-style: normal;
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
}
.venue__time {
  margin: .9rem 0 1.8rem;
  font-family: var(--f-sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* ---------- Фото ---------- */

.gallery { padding: calc(var(--section-pad) * .3) var(--gutter) var(--section-pad); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 28px);
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 12%;
}
/* Фото в светлой рамке-арке, как отпечаток в альбоме; вторая колонка сдвинута вниз */
.gallery__item {
  margin: 0;
  padding: clamp(6px, 1.2vw, 10px);
  border-radius: 999px 999px 20px 20px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(196, 164, 108, .5), 0 26px 50px -34px rgba(67, 54, 47, .55);
}
.gallery__item:nth-child(even) { transform: translateY(24%); }
.gallery__frame {
  overflow: hidden;
  border-radius: 999px 999px 14px 14px;
  background: var(--cream);
}
.gallery__frame img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- Ответ гостя ---------- */

.rsvp { padding: var(--section-pad) var(--gutter); }
.rsvp__card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(64px, 12vw, 96px) clamp(20px, 6vw, 56px) clamp(36px, 7vw, 56px);
  background: var(--paper);
  border-radius: 999px 999px 28px 28px / 200px 200px 28px 28px;
  box-shadow: inset 0 0 0 1px rgba(196, 164, 108, .5), inset 0 0 0 7px var(--paper), inset 0 0 0 8px rgba(196, 164, 108, .25), 0 30px 60px -40px rgba(110, 82, 40, .45);
  text-align: center;
}
.rsvp__lead {
  max-width: 34ch;
  margin: 0 auto 2rem;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem);
  color: var(--ink-soft);
}

.rsvp__form { text-align: left; display: grid; gap: 1.1rem; }

.field { display: grid; gap: .45rem; }
.field__label {
  font-family: var(--f-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.field__input {
  width: 100%;
  min-height: 52px;
  padding: .85rem 1rem;
  border: 1px solid #D8C6AA;
  border-radius: 14px;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.field__input::placeholder { color: #9C8E83; opacity: 1; }
.field__input:hover { border-color: var(--gold-line); }
.field__input:focus { outline: none; border-color: var(--gold-deep); background: #fff; box-shadow: 0 0 0 4px rgba(196, 164, 108, .25); }
.field__input[aria-invalid="true"] { border-color: #B4483B; box-shadow: 0 0 0 4px rgba(180, 72, 59, .12); }
.field__error {
  margin: 0;
  font-family: var(--f-sans);
  font-size: .82rem;
  font-weight: 500;
  color: #A23E32;
}

.choice { margin: .2rem 0 0; padding: 0; border: 0; display: grid; gap: .6rem; }
.choice legend { padding: 0; margin-bottom: .55rem; }
.choice__option { position: relative; display: block; cursor: pointer; }
.choice__option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice__option span {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 52px;
  padding: .75rem 1rem;
  border: 1px solid #D8C6AA;
  border-radius: 14px;
  background: var(--ivory);
  font-family: var(--f-sans);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .25s ease, background-color .25s ease;
}
.choice__option span::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-line);
  background: #fff;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.choice__option:hover span { border-color: var(--gold-line); }
.choice__option input:checked + span { border-color: var(--rose); background: #FBEFEB; }
.choice__option input:checked + span::before { border-color: var(--rose-deep); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--rose-deep); }
.choice__option input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rsvp__form .btn { margin-top: .6rem; }
.rsvp__status {
  min-height: 1.4em;
  margin: 0;
  font-family: var(--f-sans);
  font-size: .88rem;
  font-weight: 500;
  text-align: center;
  color: var(--ink-soft);
}
.rsvp__status.is-error { color: #A23E32; }

.rsvp__done { text-align: center; outline: none; }
.rsvp__done-flower { width: 92px; height: 92px; margin: 0 auto 1rem; display: block; overflow: visible; }
.rsvp__done-title {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(2rem, 1.6rem + 2vw, 2.8rem);
  line-height: 1.15;
  color: var(--gold-text);
}
.rsvp__done-text { margin: .6rem auto 1.8rem; max-width: 28ch; font-size: 1.25rem; color: var(--ink); }

/* ---------- Финал ---------- */

.finale {
  position: relative;
  padding: var(--section-pad) var(--gutter) 40px;
  text-align: center;
  isolation: isolate;
}
.finale__flowers {
  position: absolute;
  z-index: -1;
  bottom: 30px;
  width: clamp(150px, 30vw, 360px);
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.finale__flowers--left { left: clamp(-80px, -6vw, -30px); transform: rotate(-90deg); }
.finale__flowers--right { right: clamp(-80px, -6vw, -30px); transform: scaleX(-1) rotate(-90deg); }
.finale__lead {
  margin: 0;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.2;
  color: var(--rose-deep);
}
.finale__names {
  margin: 1.2rem 0 0;
  padding-left: .12em;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 1.2rem + 2.6vw, 3rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--gold-text);
}
.finale__names span { font-family: var(--f-script); font-size: 1.2em; letter-spacing: 0; text-transform: none; color: var(--rose); }
.finale__date {
  margin: .4rem 0 clamp(48px, 9vw, 80px);
  font-family: var(--f-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--ink-soft);
}
.band--footer { margin-inline: 0; }

/* ---------- Широкие экраны ---------- */

@media (min-width: 768px) {
  .arch { width: min(26vw, 30svh, 310px); }
  .names { font-size: clamp(3rem, 1.6rem + 3.4vw, 4.6rem); }
  .countdown__grid { gap: 20px; }
  .gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 8%; }
  .gallery__item:nth-child(even) { transform: translateY(18%); }
}

/* Невысокие телефоны: всё героическое помещается в первый экран */
@media (max-height: 620px) and (max-width: 767px) {
  .hero { padding-top: 22px; padding-bottom: 28px; }
  .hero__eyebrow { margin-bottom: 26px; }
  .arch { width: min(44vw, 24svh); }
  .names { font-size: 2rem; margin-top: 12px; }
  .scroll-cue { display: none; }
}

/* Невысокие ноутбуки: подсказка «листайте» не должна наезжать на дату */
@media (max-height: 760px) and (min-width: 768px) {
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue__line::after { animation: none; transform: none; }
}
