/* =========================================================
   Азат & Эльвира — приглашение на свадьбу · 03.07.2026 · Казань
   Концепция: «Цветочная акварель»
   Палитра: пудра/крем + пыльная роза + шалфей + золото
   Фоны: мягкие романтические градиенты + акварельные розы Редуте (PD)
   Шрифты: Playfair Display (заголовки) · Marck Script (рукопись) · Lora (текст)
   ========================================================= */

:root {
  --paper:    #FBF6F1;  /* база */
  --paper-2:  #F5ECE3;  /* глубже */
  --blush:    #F3DED9;  /* пудровая заливка */
  --blush-2:  #EBC9C3;
  --rose:     #C0837A;  /* пыльная роза — акцент */
  --rose-deep:#9E5A52;  /* кнопки / текст-акцент (бел.текст 5.2:1) */
  --wine:     #7B4A48;  /* глубокий акцент */
  --sage:     #93A284;  /* зелень */
  --sage-deep:#67745A;
  --gold:     #B2914F;  /* тонкие линии */
  --gold-soft:#D6BE86;
  --ink:      #463730;  /* текст (10:1) */
  --ink-2:    #6E5B50;  /* вторичный (5.6:1) */
  --card:     #FFFCF9;
  --line:     rgba(70, 55, 48, .16);
  --line-gold:rgba(178, 145, 79, .45);

  --sh-1: 0 3px 14px rgba(120, 80, 70, .08);
  --sh-2: 0 16px 40px -16px rgba(120, 70, 60, .26);
  --sh-3: 0 30px 70px -26px rgba(110, 60, 55, .34);

  --f-display: 'Playfair Display', Georgia, serif;
  --f-script:  'Marck Script', 'Segoe Script', cursive;
  --f-body:    'Lora', Georgia, serif;

  --wrap: 1180px;
  --gut: clamp(18px, 5vw, 44px);
  --radius: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  font-size: clamp(16px, 1vw + 14px, 18px);
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(243, 222, 217, .55), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  background-attachment: fixed;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--rose-deep); text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Каркас ---------- */
.wrap { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }
main { position: relative; z-index: 1; }
section { position: relative; overflow: clip; padding-block: clamp(66px, 9vw, 124px); }
[id] { scroll-margin-top: 84px; }

/* ---------- Торжественные градиентные фоны (washes) ---------- */
.wash-warm {
  background:
    radial-gradient(ellipse 78% 55% at 10% 6%, rgba(214,190,134,.30), transparent 60%),
    radial-gradient(ellipse 72% 58% at 92% 22%, rgba(240,213,206,.55), transparent 62%),
    radial-gradient(ellipse 80% 60% at 80% 100%, rgba(147,162,132,.20), transparent 64%);
}
.wash-sage {
  background:
    radial-gradient(ellipse 75% 55% at 8% 12%, rgba(147,162,132,.28), transparent 60%),
    radial-gradient(ellipse 70% 55% at 95% 80%, rgba(240,213,206,.45), transparent 62%),
    linear-gradient(180deg, transparent, rgba(245,236,227,.7));
}
.wash-blush {
  background:
    radial-gradient(ellipse 80% 55% at 90% 8%, rgba(235,201,195,.55), transparent 60%),
    radial-gradient(ellipse 70% 55% at 6% 70%, rgba(214,190,134,.24), transparent 62%),
    radial-gradient(ellipse 70% 60% at 70% 100%, rgba(147,162,132,.16), transparent 64%);
}
.wash-rose {
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(192,131,122,.30), transparent 60%),
    radial-gradient(ellipse 80% 60% at 12% 100%, rgba(240,213,206,.5), transparent 62%),
    radial-gradient(ellipse 60% 50% at 95% 60%, rgba(214,190,134,.20), transparent 62%);
}

/* ---------- Фоновые фото-фоны секций (с оверлеем для читаемости) ---------- */
.bg-peonies, .bg-waves, .bg-card-sec, .bg-dream { background-repeat: no-repeat; background-size: cover; }
.bg-peonies {
  background-image: linear-gradient(rgba(251,246,241,.80), rgba(251,246,241,.64)), url("images/web/bg-peonies.webp");
  background-position: center bottom;
}
.bg-waves {
  background-image: linear-gradient(rgba(251,246,241,.78), rgba(251,246,241,.82)), url("images/web/bg-waves.webp");
  background-position: center;
}
.bg-card-sec {
  background-image: linear-gradient(rgba(251,246,241,.72), rgba(251,246,241,.70)), url("images/web/bg-card.webp");
  background-position: center top;
}
.bg-dream {
  background-image: linear-gradient(rgba(251,246,241,.82), rgba(251,246,241,.78)), url("images/web/bg-dream.webp");
  background-position: center;
}
.footer.bg-room {
  background-image: linear-gradient(rgba(252,244,239,.74), rgba(244,224,219,.72)), url("images/web/bg-room.webp");
  background-size: cover; background-position: center; background-repeat: no-repeat;
}

/* ---------- Акварельные розы в углах ---------- */
.petal {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  opacity: .92; filter: saturate(.96);
  -webkit-user-drag: none;
}
@media (prefers-reduced-motion: no-preference) {
  .petal { transition: transform 1.2s var(--ease); }
}
/* положения (сдвинуты частично за край, секции их аккуратно обрезают) */
.petal.tl { top: -3%;  left: -7%;  width: clamp(120px, 20vw, 280px); transform: rotate(8deg); }
.petal.tr { top: -4%;  right: -7%; width: clamp(120px, 20vw, 280px); transform: scaleX(-1) rotate(8deg); }
.petal.bl { bottom: -5%; left: -8%; width: clamp(110px, 18vw, 250px); transform: scaleY(-1) rotate(6deg); }
.petal.br { bottom: -6%; right: -8%; width: clamp(110px, 18vw, 250px); transform: scale(-1) rotate(6deg); }
@media (max-width: 600px) {
  .petal.tl, .petal.tr { width: 116px; opacity: .8; }
  .petal.bl, .petal.br { width: 100px; opacity: .72; }
}

/* ---------- Типографика ---------- */
.eyebrow {
  font-family: var(--f-script);
  font-size: clamp(27px, 4.4vw, 40px);
  color: var(--rose); line-height: 1; margin-bottom: .35em;
}
.s-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(31px, 5.4vw, 56px); line-height: 1.1; letter-spacing: .004em;
  color: var(--ink);
}
.s-title em { font-style: italic; color: var(--wine); font-weight: 500; }
.s-lead { color: var(--ink-2); font-size: clamp(17px, 1.35vw, 20px); margin-top: 1rem; }
.center { text-align: center; }
.script-accent { font-family: var(--f-script); color: var(--rose); font-size: 1.45em; line-height: 1; }

/* Разделитель: золотая линия + роза/ромб */
.divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px auto 0; color: var(--gold); }
.divider::before, .divider::after { content: ""; height: 1px; width: min(110px, 20vw); background: linear-gradient(90deg, transparent, var(--line-gold)); }
.divider::after { background: linear-gradient(90deg, var(--line-gold), transparent); }
.divider svg { width: 22px; height: 22px; flex: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gut);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(251, 246, 241, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-gold); padding-block: 9px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 17px; letter-spacing: .14em; color: var(--ink); }
.brand .monogram { width: 30px; height: 30px; color: var(--rose); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav-links { display: none; }
.nav-links a { color: var(--ink-2); font-size: 15px; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--rose); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--rose-deep); }
.nav-links a:hover::after { width: 100%; }
@media (min-width: 900px) { .nav-links { display: flex; gap: clamp(16px, 2vw, 28px); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--rose-deep); color: #fff;
  padding: 13px 26px; border: 0; border-radius: 100px;
  font-family: var(--f-body); font-size: 15px; letter-spacing: .02em;
  box-shadow: var(--sh-1); min-height: 46px;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: var(--wine); transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--wine); border: 1px solid var(--line-gold); box-shadow: none; }
.btn--ghost:hover { background: var(--wine); color: #fff; border-color: var(--wine); }
.btn--lg { padding: 16px 38px; font-size: 16px; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

/* =========================================================
   HERO — арочное фото, имена, цветы по краям
   ========================================================= */
.hero { position: relative; padding: clamp(120px, 16vh, 170px) var(--gut) clamp(60px, 9vw, 96px); overflow: clip;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(240,213,206,.7), transparent 60%),
    radial-gradient(ellipse 60% 50% at 6% 30%, rgba(214,190,134,.28), transparent 60%),
    radial-gradient(ellipse 60% 50% at 96% 60%, rgba(147,162,132,.22), transparent 62%);
}
.hero__inner { position: relative; z-index: 2; max-width: 1000px; margin-inline: auto; display: grid; gap: clamp(26px, 4vw, 40px); justify-items: center; text-align: center; }
.hero__eyebrow { font-family: var(--f-script); font-size: clamp(30px, 6vw, 50px); color: var(--rose); line-height: 1; }
.hero__names { font-family: var(--f-display); font-weight: 500; font-size: clamp(50px, 12vw, 120px); line-height: 1; letter-spacing: .01em; color: var(--ink); }
.hero__names .amp { font-family: var(--f-script); color: var(--rose); font-weight: 400; font-size: .56em; vertical-align: .06em; margin: 0 .16em; }
.hero__meta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__date { display: inline-flex; align-items: center; gap: 16px; font-family: var(--f-display); font-size: clamp(17px, 2.3vw, 24px); letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }
.hero__date i { width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); display: inline-block; }
.hero__place { letter-spacing: .26em; text-transform: uppercase; font-size: 12.5px; color: var(--ink-2); }

/* Арка с фото */
.arch { position: relative; width: min(440px, 78vw); margin-top: 6px; }
.arch__img {
  position: relative; border-radius: 999px 999px 18px 18px; overflow: hidden;
  box-shadow: var(--sh-3); border: 6px solid var(--card); background: var(--blush);
}
.arch__img::after { content: ""; position: absolute; inset: 0; border-radius: 999px 999px 12px 12px; box-shadow: inset 0 0 0 1px var(--line-gold); pointer-events: none; }
.arch__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 22%; }
.hero__sub { color: var(--ink-2); max-width: 34ch; }
.hero__scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; color: var(--ink-2); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.hero__scroll svg { width: 22px; height: 22px; animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* =========================================================
   ОТСЧЁТ
   ========================================================= */
.countdown { text-align: center; }
.count-frame {
  position: relative; z-index: 2; margin: 30px auto 0; max-width: 680px;
  border: 1px solid var(--line-gold); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px) clamp(16px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(255,252,249,.7), rgba(255,252,249,.25));
  box-shadow: var(--sh-1);
}
.count-frame::before, .count-frame::after { content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid var(--gold); }
.count-frame::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.count-frame::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, 2vw, 24px); margin-top: 24px; }
.count-num { font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 8vw, 66px); line-height: 1; color: var(--rose-deep); font-variant-numeric: tabular-nums; }
.count-label { font-size: clamp(11px, 2vw, 14px); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-top: 10px; }

/* =========================================================
   ПРИГЛАШЕНИЕ
   ========================================================= */
.invite { text-align: center; }
.invite .s-lead + .s-lead { margin-top: 1.1rem; }

/* =========================================================
   ИСТОРИЯ
   ========================================================= */
.story-block { display: grid; gap: clamp(22px, 4vw, 54px); align-items: center; }
.story-block + .story-block { margin-top: clamp(40px, 7vw, 80px); }
@media (min-width: 820px) {
  .story-block { grid-template-columns: 1fr 1fr; }
  .story-block.reverse .story-text { order: 2; }
}
.story-text h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(25px, 3.4vw, 37px); color: var(--ink); margin-bottom: .5em; line-height: 1.15; }
.story-text h3 small { display: block; font-family: var(--f-script); font-size: .62em; color: var(--rose); margin-bottom: .1em; font-weight: 400; }
.story-text p { color: var(--ink-2); }
.photo-arch { position: relative; }
.photo-arch__in { position: relative; border-radius: 260px 260px 16px 16px; overflow: hidden; box-shadow: var(--sh-2); border: 6px solid var(--card); background: var(--blush); }
.photo-arch__in::after { content: ""; position: absolute; inset: 0; border-radius: 254px 254px 10px 10px; box-shadow: inset 0 0 0 1px var(--line-gold); pointer-events: none; }
.photo-arch__in img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* =========================================================
   ПРОГРАММА / таймлайн
   ========================================================= */
.timeline { position: relative; z-index: 2; max-width: 760px; margin: 44px auto 0; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 21px; width: 1px; background: linear-gradient(180deg, transparent, var(--line-gold) 8%, var(--line-gold) 92%, transparent); }
.tl-item { position: relative; padding: 0 0 clamp(30px, 5vw, 46px) 62px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 9px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--card); border: 1px solid var(--gold); color: var(--rose); display: grid; place-items: center; box-shadow: var(--sh-1); }
.tl-dot svg { width: 14px; height: 14px; }
.tl-time { font-family: var(--f-display); color: var(--rose-deep); font-size: clamp(21px, 3vw, 27px); letter-spacing: .03em; }
.tl-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(19px, 2.4vw, 23px); color: var(--ink); margin: 2px 0 4px; }
.tl-addr { color: var(--ink-2); font-size: .96em; }
.tl-note { color: var(--ink-2); margin-top: 6px; font-style: italic; }
@media (min-width: 720px) {
  .timeline::before { left: 50%; transform: translateX(-.5px); }
  .tl-item { width: 50%; padding: 0 42px clamp(34px, 5vw, 54px); text-align: right; }
  .tl-item:nth-child(even) { margin-left: 50%; text-align: left; }
  .tl-dot { left: auto; right: -13px; }
  .tl-item:nth-child(even) .tl-dot { left: -13px; right: auto; }
}

/* Декоративная рамка вокруг «Программы дня» (3 слайса: верх / середина-репит / низ).
   Паддинги в % от ширины — рамка и отступы масштабируются вместе на любом экране. */
.tl-wrap { max-width: 940px; margin-inline: auto; padding-inline: var(--gut); }
.tl-frame {
  position: relative;
  background-color: #fff;
  background-image:
    url("images/web/tl-frame-top.webp"),
    url("images/web/tl-frame-bottom.webp"),
    url("images/web/tl-frame-mid.webp");
  background-position: top center, bottom center, center;
  background-size: 100% auto, 100% auto, 100% auto;
  background-repeat: no-repeat, no-repeat, repeat-y;
  /* верх: 11.8% (высота верхнего слайса) + воздух; низ: 37.7% (декор с голубями) + воздух */
  padding: calc(11.8% + 22px) clamp(28px, 6%, 74px) calc(37.7% + 14px);
}
.tl-frame .timeline { margin-top: 30px; }
.tl-frame .s-lead { max-width: 60ch; margin-inline: auto; }

/* =========================================================
   КОТТЕДЖ + СЛАЙДЕР
   ========================================================= */
.amenities { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-top: 26px; position: relative; z-index: 2; }
.amenity { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,252,249,.7); border: 1px solid var(--line-gold); border-radius: 100px; padding: 9px 17px; color: var(--ink); font-size: 14px; }
.amenity svg { width: 16px; height: 16px; color: var(--sage-deep); flex: none; }

.slider { position: relative; z-index: 2; margin-top: 42px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-3); background: #2a201c; border: 6px solid var(--card); }
.slider__track { display: flex; transition: transform .6s var(--ease); }
@media (prefers-reduced-motion: reduce) { .slider__track { transition: none; } }
.slide { position: relative; flex: 0 0 100%; aspect-ratio: 16 / 9; background: var(--blush); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px clamp(16px, 4vw, 32px) clamp(15px, 3vw, 24px); background: linear-gradient(180deg, transparent, rgba(40,25,20,.8)); color: #fff; font-family: var(--f-display); font-size: clamp(16px, 2.4vw, 22px); display: flex; align-items: center; gap: 11px; }
.slide__cap i { width: 7px; height: 7px; background: var(--gold-soft); transform: rotate(45deg); flex: none; }
.slider__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(251,246,241,.9); color: var(--wine); display: grid; place-items: center; box-shadow: var(--sh-1); transition: background .25s var(--ease), transform .25s var(--ease); }
.slider__btn:hover { background: #fff; }
.slider__btn svg { width: 20px; height: 20px; }
.slider__btn.prev { left: 14px; } .slider__btn.next { right: 14px; }
.slider__btn.prev:hover { transform: translateY(-50%) translateX(-3px); }
.slider__btn.next:hover { transform: translateY(-50%) translateX(3px); }
.slider__count { position: absolute; top: 14px; right: 16px; z-index: 3; background: rgba(40,25,20,.55); color: #fff; border-radius: 100px; padding: 5px 13px; font-size: 13px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.slider__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 22px; position: relative; z-index: 2; }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--blush-2); transition: all .25s var(--ease); }
.dot.active { background: var(--rose); transform: scale(1.3); }

/* =========================================================
   ДРЕСС-КОД
   ========================================================= */
.dress { text-align: center; }
.dress .photo-arch { max-width: 380px; margin: 30px auto 0; }
.palette { display: inline-flex; gap: 12px; margin-top: 26px; }
.palette .sw { width: 40px; height: 40px; border-radius: 50%; box-shadow: var(--sh-1); border: 2px solid var(--card); }

/* =========================================================
   АНКЕТА — элегантная «карточка-приглашение»
   ========================================================= */
.form-card {
  position: relative; z-index: 2; max-width: 800px; margin: 42px auto 0;
  background: linear-gradient(180deg, var(--card), #FFF8F2);
  border-radius: calc(var(--radius) + 6px); box-shadow: var(--sh-3);
  padding: clamp(26px, 5vw, 56px); overflow: hidden;
}
.form-card__frame { position: absolute; inset: 12px; border: 1px solid var(--line-gold); border-radius: var(--radius); pointer-events: none; }
.form-card__frame::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(178,145,79,.22); border-radius: calc(var(--radius) - 4px); }
.form-inner { position: relative; }

.field { margin-bottom: 30px; }
.field > label, .field > legend { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(18px, 2vw, 21px); color: var(--ink); margin-bottom: 6px; }
.field .hint { color: var(--ink-2); font-size: 14.5px; margin-bottom: 14px; font-style: italic; }
fieldset { border: 0; }
.req { color: var(--rose); }

/* Подчёркнутые поля ввода — как на бумажной карточке */
.line-input {
  width: 100%; font-family: var(--f-body); font-size: 17px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--line);
  border-radius: 0; padding: 10px 2px; transition: border-color .2s var(--ease);
}
.line-input::placeholder { color: #b6a89c; font-style: italic; }
.line-input:focus { outline: none; border-bottom-color: var(--rose); }
textarea.line-input { resize: vertical; min-height: 84px; line-height: 1.65; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(255,252,249,.6); }
textarea.line-input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(192,131,122,.12); }

/* Элегантные теги выбора (без «пилюль с кружком») */
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: rgba(255,252,249,.5);
  border-radius: 100px; padding: 10px 19px; color: var(--ink); font-size: 15.5px;
  min-height: 44px; user-select: none; transition: all .2s var(--ease);
}
.opt span .ok { width: 15px; height: 15px; color: var(--rose-deep); opacity: 0; transform: scale(.5); margin-left: -22px; transition: all .22s var(--ease); }
.opt:hover span { border-color: var(--rose); color: var(--rose-deep); }
.opt input:checked + span { background: var(--blush); border-color: var(--rose); color: var(--rose-deep); box-shadow: var(--sh-1); }
.opt input:checked + span .ok { opacity: 1; transform: none; margin-left: 0; }
.opt input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }

.form-actions { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.form-actions .note { color: var(--ink-2); font-size: 13.5px; max-width: 48ch; font-style: italic; }
.prefs { transition: opacity .35s var(--ease); }
.prefs.muted { opacity: .4; pointer-events: none; }

.form-done { display: none; text-align: center; padding: clamp(30px, 6vw, 60px) 20px; position: relative; z-index: 2; }
.form-done.show { display: block; animation: rise .55s var(--ease) both; }
.form-done .seal { width: 80px; height: 80px; color: var(--rose); margin: 0 auto 18px; }
.form-done h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 4vw, 36px); color: var(--ink); margin-bottom: .4em; }
.form-done p { color: var(--ink-2); max-width: 42ch; margin: 0 auto; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* =========================================================
   ЛОКАЦИИ
   ========================================================= */
.places { display: grid; gap: clamp(20px, 4vw, 30px); margin-top: 42px; position: relative; z-index: 2; }
@media (min-width: 760px) { .places { grid-template-columns: 1fr 1fr; } }
.place { background: linear-gradient(180deg, var(--card), #FFF8F2); border: 1px solid var(--line-gold); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 12px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.place:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.place__ic { width: 48px; height: 48px; border-radius: 50%; background: var(--blush); color: var(--rose-deep); display: grid; place-items: center; }
.place__ic svg { width: 22px; height: 22px; }
.place__tag { font-family: var(--f-script); color: var(--rose); font-size: 23px; line-height: 1; }
.place h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 2.6vw, 26px); color: var(--ink); }
.place p { color: var(--ink-2); }
.place .time { color: var(--rose-deep); font-family: var(--f-display); letter-spacing: .03em; }
.place .btn { align-self: flex-start; margin-top: 6px; }

/* =========================================================
   ПОДВАЛ — светлый, романтичный
   ========================================================= */
.footer { position: relative; overflow: clip; text-align: center; padding: clamp(64px, 10vw, 110px) var(--gut);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(240,213,206,.7), transparent 60%),
    radial-gradient(ellipse 60% 60% at 10% 100%, rgba(147,162,132,.22), transparent 62%),
    linear-gradient(180deg, var(--paper-2), var(--blush)); }
.footer__in { position: relative; z-index: 2; }
.footer__names { font-family: var(--f-display); font-weight: 500; font-size: clamp(36px, 7vw, 60px); color: var(--ink); margin: 18px 0 8px; }
.footer__names .amp { font-family: var(--f-script); color: var(--rose); }
.footer__date { letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); font-size: 13.5px; }
.footer__msg { font-family: var(--f-script); color: var(--rose); font-size: clamp(28px, 5.4vw, 46px); margin: 26px 0 6px; }
.footer__contact { color: var(--ink-2); font-size: 14px; margin-top: 22px; }

/* =========================================================
   ПРАЗДНИЧНЫЙ ДЕКОР — шарики и фейерверки
   ========================================================= */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.balloon, .firework { position: absolute; z-index: 1; pointer-events: none; user-select: none; }
.balloon { width: var(--bw, 60px); opacity: .6; filter: drop-shadow(0 6px 10px rgba(120,70,60,.12)); }
.balloon.rose  { color: #CE978D; }
.balloon.blush { color: #E6B6AE; }
.balloon.sage  { color: #A4B492; }
.balloon.gold  { color: #DDC487; }
.firework { width: var(--fw, 92px); color: var(--gold); opacity: .5; }

@keyframes floatUp { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
@keyframes twinkle { 0%,100% { opacity: .22; transform: scale(.9); } 50% { opacity: .62; transform: scale(1.06); } }
@media (prefers-reduced-motion: no-preference) {
  .balloon  { animation: floatUp var(--dur, 9s) ease-in-out infinite; animation-delay: var(--d, 0s); }
  .firework { animation: twinkle var(--dur, 5s) ease-in-out infinite; animation-delay: var(--d, 0s); transform-origin: center; }
}
@media (max-width: 600px) {
  .balloon { opacity: .5; }
  .firework { opacity: .42; }
  .balloon.hide-sm, .firework.hide-sm { display: none; }
}

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; } .reveal.d2 { transition-delay: .18s; } .reveal.d3 { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero__scroll svg { animation: none; }
  .petal { display: none; }
}
