.roses-bg {
  display: none;
}

/* ═══════════════════════════════════════════════
   LOADER
═══════════════════════════════════════════════ */
.loader {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  z-index: 9999;
  background: #f5ede0;
  overflow: hidden;
  transition: opacity 0.6s ease, background-color 0.45s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader.revealing {
  background: transparent;
}

/* ── Стены из роз ── */
.loader__wall {
  position: absolute;
  will-change: transform;
}

.loader__wall--left  { animation: wallBreathLeft  5s ease-in-out infinite; }
.loader__wall--right { animation: wallBreathRight 5s ease-in-out infinite 0.8s; }
.loader__wall--bottom{ animation: wallBreathBottom 5s ease-in-out infinite 1.4s; }

@keyframes wallBreathLeft {
  0%, 100% { transform: translateX(0) scale(1); }
  50%       { transform: translateX(-4px) scale(1.012); }
}
@keyframes wallBreathRight {
  0%, 100% { transform: translateX(0) scale(1); }
  50%       { transform: translateX(4px) scale(1.012); }
}
@keyframes wallBreathBottom {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50%       { transform: translateX(-50%) translateY(4px) scale(1.01); }
}

.loader__wall--left {
  left: -5%;
  top: -16%;
  z-index: 3;
}

.loader__wall--left img {
  height: 95vh;
  width: auto;
  display: block;
}

.loader__wall--left::after {
  content: '';
  position: absolute;
  left: 0;
  top: calc(95vh - 10px);
  height: 65vh;
  aspect-ratio: 849 / 1536;
  background: url('assets/leftwall.webp') no-repeat left top / 100% 100%;
  transform: scaleY(-1);
  transform-origin: top left;
}

.loader__wall--right {
  right: -5%;
  top: -16%;
  z-index: 2;
}

.loader__wall--right img {
  position: absolute;
  right: 0;
  top: 0;
  height: 110vh;
  width: auto;
  display: block;
}

.loader__wall--right::after {
  content: '';
  position: absolute;
  right: 0;
  top: calc(110vh - 10px);
  height: 65vh;
  aspect-ratio: 1028 / 1857;
  background: url('assets/rightwall.webp') no-repeat right top / 100% 100%;
  transform: scaleY(-1);
  transform-origin: top right;
}

.loader__wall--bottom {
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  z-index: 1;
}

.loader__wall--bottom img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Занавес открывается ── */
.loader.opening .loader__wall--left {
  animation: wallOpenLeft 2.1s ease-in forwards;
}

.loader.opening .loader__wall--right {
  animation: wallOpenRight 2.1s ease-in forwards;
}

.loader.opening .loader__wall--bottom {
  animation: wallOpenBottom 2.1s ease-in forwards;
}

@keyframes wallOpenLeft {
  0%   { transform: translateX(0)    rotate(0deg); }
  7%   { transform: translateX(4px)  rotate(0.25deg); }
  14%  { transform: translateX(-3px) rotate(-0.2deg); }
  21%  { transform: translateX(3px)  rotate(0.15deg); }
  28%  { transform: translateX(-2px) rotate(-0.1deg); }
  36%  { transform: translateX(0)    rotate(0deg); }
  100% { transform: translateX(-130vw) rotate(-6deg); }
}

@keyframes wallOpenRight {
  0%   { transform: translateX(0)    rotate(0deg); }
  7%   { transform: translateX(-4px) rotate(-0.25deg); }
  14%  { transform: translateX(3px)  rotate(0.2deg); }
  21%  { transform: translateX(-3px) rotate(-0.15deg); }
  28%  { transform: translateX(2px)  rotate(0.1deg); }
  36%  { transform: translateX(0)    rotate(0deg); }
  100% { transform: translateX(130vw) rotate(6deg); }
}

@keyframes wallOpenBottom {
  0%   { transform: translateX(-50%) translateY(0); }
  7%   { transform: translateX(-50%) translateY(-4px); }
  14%  { transform: translateX(-50%) translateY(3px); }
  21%  { transform: translateX(-50%) translateY(-3px); }
  28%  { transform: translateX(-50%) translateY(2px); }
  36%  { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(130%); }
}

/* ── Затемнение поверх стен ── */
.loader::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.loader.clearing::after {
  opacity: 0;
}

/* ── Прогресс ── */
.loader__ui {
  position: absolute;
  z-index: 10;
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.loader__ui.hidden {
  opacity: 0;
}

.loader__ring-wrap {
  position: relative;
  width: 91px;
  height: 130px;
  margin: 0 auto;
}

.loader__ring-bw {
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(1) opacity(0.35);
}

.loader__ring-color {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.7s ease-out;
}

.loader__year {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 1px;
  pointer-events: none;
  z-index: 2;
}

.loader__digit {
  overflow: hidden;
  height: 1.25em;
  width: 0.62em;
  position: relative;
  display: inline-block;
  font-family: 'Cormorant', serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  letter-spacing: 0.02em;
}

.loader__digit span {
  display: block;
  text-align: center;
  line-height: 1.25em;
}

.d-appear {
  animation: dAppear 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.d-out {
  animation: dOut 0.25s ease-in forwards;
}

.d-in {
  animation: dIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes dAppear {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes dOut {
  from { transform: translateY(0);     opacity: 1; }
  to   { transform: translateY(-120%); opacity: 0; }
}

@keyframes dIn {
  from { transform: translateY(120%);  opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* ── Текст приглашения ── */
.loader__invite {
  position: absolute;
  z-index: 10;
  inset: 0;
  pointer-events: none;
}

.loader__invite-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82vw;
  max-width: calc(100% - 48px);
  text-align: center;
}

.loader__invite-line {
  opacity: 0;
}

.loader__invite-line.visible {
  animation: loaderTextIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.loader__invite-line.hiding {
  animation: loaderTextOut 1.0s ease-in forwards;
}

@keyframes loaderTextIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(0.95); filter: blur(6px); }
  to   { opacity: 1; transform: translate(-50%, -50%)               scale(1);    filter: blur(0);   }
}

@keyframes loaderTextOut {
  from { opacity: 1; transform: translate(-50%, -50%)                scale(1);    filter: blur(0);   }
  to   { opacity: 0; transform: translate(-50%, calc(-50% - 16px))  scale(0.95); filter: blur(6px); }
}

.loader__invite-line {
  font-family: 'Cormorant', serif;
  font-size: clamp(20px, 5.5vw, 28px);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}

/* ═══════════════════════════════════════════════
   ШРИФТ — Propisi (рукописный)
═══════════════════════════════════════════════ */
@font-face {
  font-family: 'Propisi';
  src: url('assets/font/ofont.ru_Propisi.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Denistina';
  src: url('assets/font/ofont.ru_Denistina.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

/* ═══════════════════════════════════════════════
   TOKENS — Warm Sepia / Daylight
═══════════════════════════════════════════════ */
:root {
  --c-ink:      #3a2010;   /* тёмная сепия — основной текст */
  --c-wine:     #610D08;   /* бордовый — имена */
  --c-sepia:    #7a5c3a;   /* сепия — вторичный текст */
  --c-olive:    #8C8A45;   /* оливковый — «и», орнаменты */
  --c-gold:     #c8a96e;   /* золото — линии */
  --c-cream:    #FAF6F0;   /* кремовый */

  --font-infant:  'Cormorant Infant', serif;
  --font-upright: 'Cormorant Upright', serif;
  --font-unicase: 'Cormorant Unicase', serif;
  --font-body:    'Cormorant', serif;
  --font-script:   'Propisi', cursive;
  --font-denistina: 'Denistina', cursive;
}

html {
  background: #2a1f14;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: #f0e8d8;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 0;
}

@media (min-width: 641px) {
  html {
    background:
      radial-gradient(circle at center, rgba(244, 223, 186, 0.18) 0%, rgba(244, 223, 186, 0.06) 18%, rgba(42, 31, 20, 0) 38%),
      linear-gradient(90deg, #24170f 0%, #342114 18%, #3c2718 50%, #342114 82%, #24170f 100%);
  }

  body::before,
  body::after {
    display: none;
  }

  .roses-bg {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    z-index: -1;
  }

}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.layer {
  position: absolute;
  pointer-events: none;
}

.layer img {
  display: block;
}

/* ═══════════════════════════════════════════════
   ЦВЕТЫ СВЕРХУ HERO
   Перевёрнуты, едва видны (opacity ~0.18)
═══════════════════════════════════════════════ */
.hero__roses-top {
  position: absolute;
  top: -22%;
  left: 50%;
  transform: translateX(-50%) scaleY(-1); /* переворачиваем — свисают сверху */
  z-index: 8; /* поверх неба, под текстом */
  pointer-events: none;
}

.hero__roses-top img {
  width: min(130vw, 1100px);
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════════════
   СЛОЙ 1: НЕБО — sky2.png 1026×1238
   Тёплый золотой акварельный фон
═══════════════════════════════════════════════ */
.layer--sky {
  inset: 0;
  z-index: 1;
}

.layer--sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center calc(85% - 55px);
}

/* ═══════════════════════════════════════════════
   СЛОЙ 2: СОЛНЦЕ — sun2.png 638×497
   Мягкое свечение вверху, пульсирует
═══════════════════════════════════════════════ */
.layer--sun {
  z-index: 2;
  top: -4vh;
  left: 62%;
  animation: sunFloat 8s ease-in-out infinite;
  opacity: 0.55;
}

.layer--sun img {
  width: clamp(130px, 31vw, 260px);
  height: auto;
}

@keyframes sunFloat {
  0%   { transform: rotate(-4deg); }
  50%  { transform: rotate( 4deg); }
  100% { transform: rotate(-4deg); }
}

/* ═══════════════════════════════════════════════
   СЛОЙ 3: ПАНОРАМА — panorama2.png 821×964
   Чёрный фон → mix-blend-mode: multiply
   (чёрное исчезает, остаётся только рисунок)
═══════════════════════════════════════════════ */
/* outer: только позиция + fade-in */
.layer--panorama {
  z-index: 3;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  animation: heroFadeIn 2s ease forwards 0.3s;
  opacity: 0;
}

/* inner: только плавный float — отдельный GPU-слой */
.layer--panorama-inner {
  will-change: transform;
  animation: panoramaFloat 9s ease-in-out infinite;
}

/* blend — на img, не мешает transform на родителях */
.layer--panorama img {
  display: block;
  mix-blend-mode: multiply;
}

@keyframes panoramaFloat {
  0%   { transform: translateY(0px)   scale(1.00); }
  50%  { transform: translateY(-12px) scale(1.03); }
  100% { transform: translateY(0px)   scale(1.00); }
}

.layer--panorama img {
  height: 80vh;
  width: auto;
  min-height: 360px;
}

/* ═══════════════════════════════════════════════
   СЛОЙ 4: ЛОДКА — boat2.png 897×369
   Покачивается, в воде перед кольцом
═══════════════════════════════════════════════ */
.layer--boat {
  z-index: 4;
  bottom: 4.5vh;
  left: -20vw;
  animation:
    heroFadeIn 1.8s ease forwards 1s,
    boatBob    6s ease-in-out 2.8s infinite;
  opacity: 0;
}

.layer--boat img {
  width: clamp(800px, 240vw, 2000px);
  height: auto;
}

@keyframes boatBob {
  0%   { transform: translateY(0px)   rotate( 0.0deg); }
  20%  { transform: translateY(-7px)  rotate( 0.8deg); }
  40%  { transform: translateY(-3px)  rotate(-0.4deg); }
  60%  { transform: translateY(-10px) rotate( 1.1deg); }
  80%  { transform: translateY(-4px)  rotate(-0.5deg); }
  100% { transform: translateY(0px)   rotate( 0.0deg); }
}

/* ═══════════════════════════════════════════════
   СЛОЙ 5: САМОЛЁТ — plane2.png 1143×285
   Медленно летит слева направо (ratio 4.01:1)
═══════════════════════════════════════════════ */
.layer--plane {
  z-index: 5;
  top: 26vh;
  animation: planeFly 83s linear infinite;
  animation-delay: 4s;
  animation-fill-mode: backwards; /* держит начальный keyframe 0% до старта */
}

.layer--plane img {
  width: clamp(40px, 7.2vw, 76px);
  height: auto;
  opacity: 0.82;
  transform: scaleX(-1); /* нос смотрит влево → зеркалим, летит влево→вправо носом вперёд */
}

@keyframes planeFly {
  0%   { transform: translateX(-40vw); }
  100% { transform: translateX(130vw); }
}

/* ═══════════════════════════════════════════════
   ТЕКСТ — ИМЕНА
   Позиционируем в верхней части, над кольцом
═══════════════════════════════════════════════ */
.hero__content {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  margin-top: 12vh;
  padding: 0 24px;
}


.hero__eyebrow {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.4vw, 16px);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6b4a2a;
  margin-bottom: 6px;
  animation: heroSlideUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
  opacity: 0;
}

.hero__line {
  width: clamp(60px, 8vw, 110px);
  height: auto;
  display: block;
  margin: 14px 0;
  animation: heroSlideUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.hero__content .hero__line:nth-of-type(1) { animation-delay: 0.3s; }
.hero__content .hero__line:nth-of-type(2) { animation-delay: 1.2s; }

.hero__ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  width: clamp(100px, 14vw, 180px);
  margin: 8px 0;
  animation: heroSlideUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.hero__content .hero__ornament:nth-child(2) { animation-delay: 0.3s; }
.hero__content .hero__ornament:nth-child(6) { animation-delay: 1.2s; }

.hero__ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-gold), transparent);
  display: block;
}

.hero__ornament-gem {
  font-size: 7px;
  color: var(--c-gold);
  line-height: 1;
  flex-shrink: 0;
}

.hero__name {
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--c-wine);
  text-shadow: 0 2px 18px rgba(240, 220, 180, 0.8);
  animation: heroSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.hero__name--groom {
  font-family: var(--font-denistina);
  font-size: clamp(42px, 7vw, 96px);
  animation-delay: 0.65s;
}

.hero__name--bride {
  font-family: var(--font-denistina);
  font-size: clamp(42px, 7vw, 96px);
  animation-delay: 1.0s;
}

.hero__and {
  font-family: 'Zen Loop', cursive;
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 400;
  color: var(--c-olive);
  line-height: 1.5;
  display: block;
  animation: heroSlideUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.82s;
  opacity: 0;
}

.hero__date {
  font-family: var(--font-denistina);
  font-size: 1.5vw;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-wine);
  margin-top: 4px;
  animation: heroSlideUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.35s;
  opacity: 0;
}

/* ═══════════════════════════════════════════════
   СКРОЛЛ-ИНДИКАТОР
═══════════════════════════════════════════════ */
.hero__scroll {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  animation: heroFadeIn 1.5s ease forwards 2.5s;
  opacity: 0;
  width: 46px;
  height: 46px;
  border: 2.5px solid rgba(97, 13, 8, 0.75);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* пульсирующее кольцо вокруг */
.hero__scroll::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(97, 13, 8, 0.22);
  animation: scrollRingPulse 2.2s ease-out infinite;
}

/* chevron внутри круга */
.hero__scroll-line {
  display: block;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--c-wine);
  border-bottom: 2.5px solid var(--c-wine);
  transform: rotate(45deg) translate(0, 0);
  margin-top: -4px;
  background: none;
  overflow: visible;
  animation: scrollChevronBounce 2.2s ease-in-out infinite;
}

.hero__scroll-line::after {
  content: none;
}

.hero__scroll::after {
  content: none;
}

@keyframes scrollRingPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

@keyframes scrollChevronBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%       { transform: rotate(45deg) translate(2px, 2px); }
}

/* ═══════════════════════════════════════════════
   ENTER ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ═══════════════════════════════════════════════
   РАЗДЕЛИТЕЛЬ — РОЗЫ
   roses.png 805×410, ratio 1.96:1
   Накладывается на стык hero и section-invite
═══════════════════════════════════════════════ */
.roses-divider {
  position: relative;
  z-index: 10;
  /* Отрицательные отступы — тянем вверх и вниз чтобы перекрыть оба раздела */
  margin-top: -200px;
  margin-bottom: -80px;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.roses-divider img {
  width: min(130vw, 600);
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════════════
   СЕКЦИЯ 2 — ПРИГЛАШЕНИЕ
═══════════════════════════════════════════════ */
.section-invite {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Фон: sky2.png — тот же тёплый тон что и hero */
.section-invite__bg {
  position: absolute;
  inset: 0 0 50px 0;
  background-image: url('assets/sky3.webp');
  background-size: cover;
  background-position: center 85%;
  z-index: 0;
}

/* Лёгкий кремовый оверлей поверх фона для читаемости */
.section-invite__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* background: rgba(250, 246, 240, 0.55); */
}

.section-invite__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 48px 80px;
  margin-top: -220px;
  background: radial-gradient(ellipse at center, rgba(250,242,232,0.55) 0%, transparent 75%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.section-invite__label {
  font-family: var(--font-script);
  font-size: clamp(11px, 1.3vw, 15px);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-olive);
}

.section-invite__title {
  font-family: var(--font-denistina);
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 900;
  color: #4a0e08;
  line-height: 1;
  letter-spacing: 0.1em;
}

.section-invite__body {
  font-family: var(--font-denistina); 
  /* --font-denistina */
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  color: var(--c-sepia);
  max-width: 520px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-invite__underline {
  width: clamp(160px, 30vw, 280px);
  height: auto;
  display: block;
  margin-top: -20px;
}

.section-invite__title + .section-invite__underline {
  margin-top: -3px;
}

.section-invite__weekday {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-sepia);
  margin-top: 8px;
}

.section-invite__rose {
  width: clamp(80px, 14vw, 140px);
  height: auto;
  opacity: 0.85;
  margin-top: 20px;
}

.section-invite__venue {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.section-invite__venue-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-invite__venue-icon {
  width: 32px;
  height: auto;
}

.section-invite__venue-label {
  font-family: var(--font-script);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  color: var(--c-wine);
  /* text-shadow: 0 1px 10px rgba(250, 240, 225, 0.8); */
}

.section-invite__venue-address {
  font-family: var(--font-body);
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-sepia);
  text-shadow: none;
}

@keyframes shimmer {
  0%, 56%  { background-position: 100% center; }  /* покой — сепия справа, 4s */
  100%     { background-position: 0% center; }   /* блик слева направо, 3.1s */
}

.section-invite__venue-link {
  text-decoration: none;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-shadow: none;
  color: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
  animation: none;
}

/* ═══════════════════════════════════════════════
   ЛЕПЕСТКИ
═══════════════════════════════════════════════ */
.petal {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  width: 48px;
  height: auto;
}

@keyframes petalFloat {
  0%   { transform: translateY(0px)   rotate(0deg); }
  30%  { transform: translateY(-14px) rotate(6deg); }
  60%  { transform: translateY(8px)   rotate(-4deg); }
  100% { transform: translateY(0px)   rotate(0deg); }
}

.petal--2 { left: 5%;  top: 32%; opacity: 0.7;  width: 36px; animation: petalFloat 8s ease-in-out infinite 1s; }
.petal--3 { left: 3%;  top: 68%; opacity: 0.8;  width: 50px; animation: petalFloat 7s ease-in-out infinite 2.5s; }
.petal--5 { right: 4%; top: 46%; opacity: 0.85; width: 44px; animation: petalFloat 6.5s ease-in-out infinite 3s; left: unset; }
.petal--6 { right: 2%; top: 75%; opacity: 0.7;  width: 32px; animation: petalFloat 8.5s ease-in-out infinite 1.5s; left: unset; }

.section-invite__hotel {
  position: absolute;
  bottom: 0;
  left: 50%;
  /* начальный translateY задаётся через JS */
  z-index: 1;
  will-change: transform;
  contain: layout;
}

.section-invite__hotel img {
  width: min(130vw, 1000px);
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* ═══════════════════════════════════════════════
   СЕКЦИЯ 3 — ПАУЗА / LINE
═══════════════════════════════════════════════ */
.section-quote {
  padding: 60px 16px;
  margin-top: -120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.section-quote__bg {
  position: absolute;
  inset: 0;
  background: url('assets/sky5.webp') top center / cover no-repeat;
  z-index: 0;
}

.schedule__timeline {
  position: relative;
  z-index: 1;
  display: inline-block;
  transform: translateY(-100px);
  margin-left: 8vw;
}

.section-quote__line-img {
  display: block;
  width: min(62vw, 260px);
  height: auto;
  mix-blend-mode: multiply;
}

/* Заголовок — слева от ленты, чуть ниже верха */
.schedule__title {
  position: absolute;
  top: 20%;
  right: calc(100% - 90px);
  font-family: var(--font-denistina);
  font-size: clamp(35px, 4.5vw, 44px);
  font-weight: 400;
  color: var(--c-wine);
  white-space: nowrap;
  text-align: right;
}

.schedule__event {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: min(32vw, 140px);
}

.schedule__event--left {
  right: calc(100% - 50px);
  text-align: left;
}

.schedule__event--right {
  left: calc(100% - 120px);
  text-align: left;
}

.schedule__icon {
  position: absolute;
  width: clamp(42px, 14vw, 62px);
  height: auto;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.schedule__icon--right {
  right: -24px;
  transform: translateY(-50%) rotate(14deg);
}

.schedule__icon--left {
  left: -55px;
  transform: translateY(-50%) rotate(-10deg);
}

.schedule__time {
  font-family: var(--font-denistina);
  font-size: clamp(30px, 2.8vw, 28px);
  font-weight: 700;
  color: var(--c-wine);
  line-height: 1;
}

.schedule__desc {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-sepia);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   СЕКЦИЯ 4 — ЦИТАТА
═══════════════════════════════════════════════ */
.section-text {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 0;
  margin-top: -80px;
  margin-bottom: -40px;
}

.section-text__bg {
  position: absolute;
  inset: 0;
  background: url('assets/sky5.webp') top center / cover no-repeat;
  transform: scale(-1, -1);
  z-index: 0;
}


.section-text__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 0px 40px 60px;
  width: 100%;
}

.section-text__dresscode-title {
  font-family: var(--font-denistina);
  font-size: clamp(32px, 5vw, 44px);
  color: var(--c-wine);
  text-align: center;
  font-weight: 400;
}

.section-text__color-intro {
  max-width: clamp(300px, 80vw, 580px);
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(14px, 2vw, 19px);
  letter-spacing: 0.08em;
  color: var(--c-sepia);
  opacity: 0.75;
  line-height: 1.7;
}

.section-text__swatches {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.section-text__swatches-row {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 5vw, 60px);
}

.section-text__color {
  width: clamp(80px, 14vw, 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.section-text__color img {
  width: 100%;
  height: clamp(70px, 12vw, 120px);
  /* object-fit: cover; */
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.section-text__color-label {
  font-family: var(--font-body);
  font-size: clamp(9px, 1.2vw, 12px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-sepia);
  opacity: 0.7;
  white-space: nowrap;
}

.section-text__church {
  position: relative;
  z-index: 2;
  display: block;
  width: min(110vw, 700px);
  height: auto;
  margin: 0 auto -35px;
  transform: translateY(15px);
}

.section-text__inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.section-quote__mark {
  font-family: var(--font-infant);
  font-size: 96px;
  line-height: 0.5;
  color: var(--c-gold);
  opacity: 0.5;
  display: block;
}

.section-quote__text {
  font-family: var(--font-script);
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 300;
  font-style: italic;
  color: var(--c-wine);
  line-height: 1.55;
}

.section-quote__ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 140px;
}

.section-quote__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-gold), transparent);
}

.section-quote__gem {
  font-size: 7px;
  color: var(--c-gold);
}

.section-quote__author {
  font-family: var(--font-script);
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-sepia);
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════
   АДАПТИВ
═══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .loader__wall--bottom {
    left: 50.8%;
    width: 128%;
  }

  .section-invite__hotel {
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero__content {
    margin-top: 10vh;
  }

  .layer--panorama img {
    height: 62vh;
  }

  .layer--boat img {
    width: 370px;
  }

  .layer--sun img {
    width: clamp(130px, 70vw, 286px);
  }

  .layer--plane {
    top: calc(14vh - 40px);
  }

  .layer--plane img {
    width: clamp(40px, 6vw, 68px);
  }

  .hero__scroll {
    bottom: 42px;
  }

  /* розы сверху */
  .hero__roses-top {
    top: -24vh;
  }

  /* розы снизу */
  .roses-divider {
    margin-top: -30vh;
    margin-bottom: -60px;
  }

  /* имена: меньше чтобы не теснились и отель не наезжал */
  .hero__name--groom,
  .hero__name--bride {
    font-size: 40px;
  }

  .hero__and {
    font-size: 30px;
  }

  .hero__content {
    gap: 0;
  }
}

/* ── Десктоп с контейнером 500px (те же стили что iPhone 14) ── */
@media (min-width: 641px) {
  .loader__wall--left {
    left: -1%;
  }

  .loader__wall--right {
    right: -3%;
  }

  .hero__roses-top {
    top: -20vh;
  }

  .hero__roses-top img {
    width: 590px;
  }

  .roses-divider img {
    width: min(120%, 580px);
  }

  .roses-divider {
    margin-top: -25vh;
    justify-content: center;
    width: 100%;
    overflow: hidden;
  }

  .layer--panorama img {
    height: 30vw;
  }

  /* лодка и солнце: базовые значения рассчитаны на full-width, переопределяем */
  .layer--boat {
    left: -20%;
  }

  .layer--boat img {
    width: 500px;
  }

  .layer--sun {
    left: 55%;
  }

  .layer--sun img {
    width: clamp(350px, 31%, 200px);
  }

  .section-invite__hotel img {
    width: 620px;
    max-width: none;
    position: relative;
  }

  .section-invite__hotel {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
  }

  .section-invite__body {
    font-size: clamp(28px, 4.2vw, 36px);
  }

  .section-invite__title {
    font-size: clamp(52px, 7vw, 62px);
  }

  .section-invite__underline {
    width: 190px;
  }

  .section-invite__weekday {
    font-size: clamp(12px, 1.8vw, 15px);
  }

  .section-invite__venue-label {
    font-size: clamp(34px, 5vw, 44px);
  }

  .section-invite__venue-address,
  .section-invite__venue-link {
    font-size: clamp(18px, 2.6vw, 22px);
  }

  .schedule__timeline {
    margin-left: 0;
    transform: translate(18px, -140px);
  }

  .section-text__swatches-row {
    gap: 24px;
  }

  .section-text__color {
    width: 104px;
  }

  .section-text__color img {
    height: 92px;
  }

  .section-text__church {
    width: min(100%, 620px);
  }

  .hero__name--groom,
  .hero__name--bride {
    font-size: 48px;
  }

  .hero__and {
    font-size: 34px;
  }
}

@media (min-width: 641px) and (max-height: 980px) {
  .section-invite__body {
    font-size: clamp(24px, 2.8vw, 26px);
  }

  .section-invite__title {
    font-size: clamp(42px, 5.4vw, 44px);
  }

  .section-invite__venue-label {
    font-size: clamp(30px, 3.8vw, 32px);
  }

  .section-invite__venue-address,
  .section-invite__venue-link {
    font-size: clamp(16px, 2vw, 19px);
  }
}

/* ── iPhone 14 Pro / Plus (391–640px) ── */
@media (min-width: 391px) and (max-width: 640px) {
  .section-video-scroll__map-stage {
    min-height: 100%;
  }

  .section-video-scroll__marquee {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
  }

  .hero__roses-top {
    top: -24vh;
  }

  .roses-divider {
    margin-top: -172px;
    margin-bottom: -72px;
    overflow: hidden;
  }

  .roses-divider img {
    width: 115vw;
    max-width: 480px;
  }

  .hero__content {
    transform: scale(1.05);
    transform-origin: center top;
  }

  .layer--panorama img {
    height: 63vh;
  }

  .layer--boat img {
    width: 450px;
  }

  .layer--plane {
    top: calc(16vh - 40px);
  }

  .layer--plane img {
    width: 72px;
  }

  /* имена крупнее */
  .hero__name--groom,
  .hero__name--bride {
    font-size: 48px;
  }

  .hero__and {
    font-size: 34px;
  }

  .hero__date {
    font-size: 16px;
    margin-top: 6px;
  }
}

/* ── iPhone 11 Pro и меньше (375–390px) ── */
@media (max-width: 390px) {
  /* roses-divider */
  .roses-divider {
    margin-top: -160px;
    margin-bottom: -40px;
  }

  .roses-divider img {
    width: 115vw;
  }

  .hero__date {
    font-size: 16px;
    margin-top: 6px;
  }

  /* section-invite: убираем агрессивный отрицательный margin */
  .section-invite__content {
    margin-top: -200px;
    padding: 24px 28px 60px;
  }

  .section-invite__body {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .section-invite__title {
    font-size: 42px;
  }

  .section-invite__venue {
    margin-top: 32px;
  }

  .section-invite__venue-label {
    font-size: 24px;
  }

  .section-invite__venue-address,
  .section-invite__venue-link {
    font-size: 20px;
  }

  /* hero: панорама и лодка компактнее */
  .layer--panorama img {
    height: 62vh;
  }

  .layer--boat img {
    width: 340px;
  }

  /* секция расписания — дать чуть больше воздуха */
  .schedule__timeline {
    padding: 0 8px;
  }

  .section-quote {
    min-height: 110vh;
  }
}

/* ═══════════════════════════════════════════════
   СЕКЦИЯ 5 — ЗАГЛУШКА
═══════════════════════════════════════════════ */
.section-video-scroll {
  position: relative;
  height: 100vh;
  margin-top: 20px;
  z-index: 1;
}

.section-video-scroll__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.section-video-scroll__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
}

.section-video-scroll__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(20, 10, 5, 0.52);
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.section-video-scroll__confirmation {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-video-scroll__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: calc(10vh + 60px);
  transform: translateY(10px);
  transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-video-scroll__overlay.visible .section-video-scroll__card {
  transform: translateY(-10px);
}

.section-video-scroll__overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.section-video-scroll__map-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}

.section-video-scroll__map-frame {
  width: 100%;
  max-width: none;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 237, 224, 0.22);
  background: rgba(245, 237, 224, 0.06);
  box-shadow: 0 26px 80px rgba(12, 7, 4, 0.34);
}

.section-video-scroll__map-image {
  display: block;
  width: 100%;
  height: auto;
}

.section-video-scroll__marquee {
  width: 100%;
  max-width: none;
  overflow: hidden;
  margin-top: -1px;
  padding: 20px 0;
  border-radius: 0;
  border: none;
  background: #000;
  box-shadow: none;
}

.section-video-scroll__marquee-track {
  display: flex;
  width: max-content;
  animation: section-video-scroll-marquee 16s linear infinite;
}

.section-video-scroll__marquee-track span {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.5vw, 15px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f5ede0;
  white-space: nowrap;
  padding-right: 52px;
}

.section-video-scroll__cancel-note {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #f5ede0;
  text-align: center;
  background: #000;
  padding: 14px 24px;
  margin: 0;
  width: 100%;
}

.section-video-scroll__title {
  font-family: var(--font-denistina);
  font-size: clamp(36px, 7vw, 68px);
  color: #f5ede0;
  text-align: center;
  letter-spacing: 0.03em;
}

.section-video-scroll__monogram {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.6vw, 15px);
  letter-spacing: 0.3em;
  color: #f5ede0;
  opacity: 0.6;
  margin-bottom: 8px;
}

.section-video-scroll__btn {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f5ede0;
  background: rgba(20, 10, 5, 0.35);
  border: 1px solid rgba(245, 237, 224, 0.6);
  border-radius: 60px;
  padding: 15px 44px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.section-video-scroll__btn:hover {
  background: rgba(245, 237, 224, 0.12);
}

.section-video-scroll__btn:disabled {
  cursor: default;
  background: rgba(245, 237, 224, 0.18);
}

.section-video-scroll__hint {
  font-family: var(--font-infant);
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 14px);
  color: #f5ede0;
  opacity: 0.55;
  margin: 2px;
}

.section-video-scroll__footer {
  position: absolute;
  bottom: 52px;
  font-family: var(--font-body);
  font-size: clamp(12px, 1.1vw, 13px);
  letter-spacing: 0.18em;
  color: #f5ede0;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.section-video-scroll__overlay.visible .section-video-scroll__footer {
  opacity: 0.6;
}

@keyframes section-video-scroll-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.section-video-scroll--confirmed .section-video-scroll__video {
  opacity: 0.08;
  transform: scale(1.03);
  filter: saturate(0.7) blur(1px);
}

.section-video-scroll--confirmed .section-video-scroll__confirmation {
  opacity: 0;
  transform: translateY(-24px);
  pointer-events: none;
}

.section-video-scroll--confirmed .section-video-scroll__map-stage {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section-video-scroll--confirmed .section-video-scroll__overlay {
  opacity: 1;
  pointer-events: auto;
  background: rgba(20, 10, 5, 0.28);
}

@media (max-width: 640px) {
  .section-video-scroll {
    margin-top: 0;
  }

  .section-video-scroll__map-frame,
  .section-video-scroll__marquee {
    width: 100%;
    max-width: none;
  }

  .section-video-scroll__map-stage {
    gap: 0;
    justify-content: flex-start;
    padding-inline: 0;
  }

  .section-video-scroll__marquee {
    padding: 14px 0;
    border-radius: 0;
  }

  .section-video-scroll__marquee-track {
    gap: 0;
  }

  .section-video-scroll__marquee-track span {
    font-size: 11px;
    letter-spacing: 0.18em;
    padding-right: 36px;
  }

  .section-video-scroll__map-frame {
    border-radius: 0;
  }
}
