/* ══════════════════════════════════════════════════════════════
   Максим & Анастасия — свадебное приглашение
   Палитра: тёмно-синий / жемчуг / кремовая бумага
   ══════════════════════════════════════════════════════════════ */

/* ── 1. ТОКЕНЫ ───────────────────────────────────────────────── */
:root{
  --navy-900:#060E1B;
  --navy-800:#0A1526;
  --navy-700:#101E33;
  --navy-600:#17273F;
  --navy-500:#22334F;

  --paper:#FBF8F3;
  --cream:#F1E9DC;
  --cream-2:#E7DCCC;

  --ink:#1A2330;
  --ink-soft:#5A6473;
  --ink-mute:#8B949F;

  --pearl:#EFE6D7;
  --pearl-deep:#C4B096;
  --pearl-glow:rgba(239,230,215,.55);

  --line:rgba(26,35,48,.14);
  --line-light:rgba(243,238,230,.22);

  --serif:"Cormorant Garamond","Times New Roman",serif;
  --sans:"Montserrat","Segoe UI",system-ui,sans-serif;

  --ease:cubic-bezier(.22,.72,.16,1);
  --ease-soft:cubic-bezier(.33,.11,.16,1);

  --shell:520px;
}

/* ── 2. БАЗА ─────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box}

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

body{
  margin:0;
  font-family:var(--sans);
  font-size:16px;
  line-height:1.65;
  color:var(--ink);
  background:var(--navy-800);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

body.is-locked{overflow:hidden;height:100%}

img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}

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

::selection{background:var(--navy-600);color:#fff}

/* ── 3. УТИЛИТЫ ──────────────────────────────────────────────── */
.shell{
  width:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding-inline:26px;
}
.shell--center{text-align:center}

.pearl{width:1em;height:1em;flex:none;display:block}
.pearl--dot{width:12px;height:12px}
.pearl--sm{width:9px;height:9px}
.pearl--mid{width:14px;height:14px}
.pearl--big{width:44px;height:44px;margin:0 auto 22px}
.pearl--hint{width:14px;height:14px}

/* полоска жемчуга — ряд SVG-бусин */
.pearl-strip{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  width:100%;
  max-width:250px;
  margin:28px auto 0;
  filter:drop-shadow(0 3px 5px rgba(6,14,27,.45));
}
.pearl-strip::before,
.pearl-strip::after{
  content:"";
  flex:1;
  max-width:62px;
  height:1px;
  background:linear-gradient(90deg,rgba(196,176,150,0),rgba(196,176,150,.42));
}
.pearl-strip::after{
  background:linear-gradient(90deg,rgba(196,176,150,.42),rgba(196,176,150,0));
}
.pearl-strip i{
  display:block;
  width:13px;
  height:13px;
  border-radius:50%;
  background:
    radial-gradient(circle at 34% 28%,
      #ffffff 0 18%,
      #fdf9f2 34%,
      #f0e7d8 58%,
      #d8c9b2 82%,
      #bdab91 100%);
  box-shadow:inset 0 -1px 1px rgba(160,140,110,.35);
  flex:none;
}
.pearl-strip i:nth-child(odd){transform:translateY(-1px)}
.pearl-strip i:nth-child(3n){width:11px;height:11px;opacity:.92}
.pearl-strip--sm i{width:10px;height:10px}
.pearl-strip--sm::before,
.pearl-strip--sm::after{max-width:38px}

/* ряд из 3 жемчужин */
.pearl-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:38px;
  color:var(--pearl-deep);
}

/* разделитель с жемчужиной */
.divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:30px auto;
  width:100%;
  color:var(--pearl-deep);
}
.divider__rule{
  flex:1;
  max-width:74px;
  height:1px;
  background:linear-gradient(90deg,rgba(196,176,150,0),rgba(196,176,150,.7));
}
.divider__rule:last-child{
  background:linear-gradient(90deg,rgba(196,176,150,.7),rgba(196,176,150,0));
}

/* ── 4. ТИПОГРАФИКА ──────────────────────────────────────────── */
.eyebrow{
  margin:0 0 18px;
  font-family:var(--sans);
  font-size:11px;
  font-weight:500;
  letter-spacing:.26em;
  text-transform:uppercase;
  color:var(--ink-mute);
}
.eyebrow--light{color:rgba(243,238,230,.6)}

.title{
  margin:0;
  font-family:var(--serif);
  font-size:clamp(34px,10vw,46px);
  font-weight:400;
  line-height:1.1;
  letter-spacing:-.01em;
  color:var(--ink);
}
.title--md{font-size:clamp(28px,8vw,38px)}
.title--light{color:#F5F0E8}

.lead{
  margin:24px 0 0;
  font-family:var(--serif);
  font-size:clamp(18px,4.9vw,21px);
  font-weight:400;
  line-height:1.58;
  color:var(--ink-soft);
}
.lead--tight{margin-top:18px}
.lead strong{
  font-weight:600;
  color:var(--ink);
  white-space:nowrap;
}

/* ── 5. ШТОРКА ───────────────────────────────────────────────── */
.curtain{
  position:fixed;
  inset:0;
  z-index:100;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:var(--navy-900);
  cursor:pointer;
  transition:visibility 0s linear 1.5s;
}
.curtain.is-open{
  visibility:hidden;
  pointer-events:none;
}

.curtain__half{
  position:absolute;
  top:0;
  bottom:0;
  width:50.4%;               /* перекрытие, чтобы не было щели */
  overflow:hidden;
  transition:
    transform 1.35s var(--ease),
    opacity 1.35s ease,
    filter 1.35s ease;
  will-change:transform;
}
.curtain__half--l{left:0}
.curtain__half--r{right:0}

.curtain__img{
  position:absolute;
  top:0;
  height:100%;
  width:199%;                /* половинки одной картинки */
  background:url("../img/hero.jpg") center/cover no-repeat;
  transform:scale(1.06);
}
.curtain__img--l{left:0;background-position:left center}
.curtain__img--r{right:0;background-position:right center}

.curtain__shade{
  position:absolute;
  inset:0;
  background:
    radial-gradient(120% 80% at 50% 42%, rgba(6,14,27,.34) 0%, rgba(6,14,27,.72) 62%, rgba(6,14,27,.92) 100%),
    linear-gradient(180deg, rgba(6,14,27,.55) 0%, rgba(6,14,27,.15) 40%, rgba(6,14,27,.8) 100%);
  pointer-events:none;
}

.curtain__panel{
  position:relative;
  z-index:2;
  text-align:center;
  padding:0 28px;
  max-width:560px;
  transition:opacity .8s ease, transform .9s var(--ease);
}
.curtain.is-open .curtain__panel{
  opacity:0;
  transform:translateY(-14px) scale(.97);
}

.curtain__eyebrow{
  margin:0 0 26px;
  font-size:10px;
  font-weight:400;
  letter-spacing:.36em;
  text-transform:uppercase;
  color:rgba(243,238,230,.62);
}

.curtain__names{
  margin:0;
  font-family:var(--serif);
  font-size:clamp(38px,12.5vw,58px);
  font-weight:300;
  line-height:1.02;
  letter-spacing:.005em;
  color:#F7F3EC;
}
.curtain__names span{display:block}
.curtain__names em{
  display:block;
  margin:6px 0 8px;
  font-size:.58em;
  font-style:italic;
  font-weight:300;
  color:var(--pearl-deep);
}

.curtain__date{
  margin:20px 0 0;
  font-family:var(--sans);
  font-size:12px;
  font-weight:400;
  letter-spacing:.42em;
  color:rgba(243,238,230,.78);
  text-indent:.42em;
}

.curtain__hint{
  position:absolute;
  bottom:max(42px,env(safe-area-inset-bottom,0px) + 34px);
  left:0;
  right:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  font-size:10px;
  font-weight:400;
  letter-spacing:.3em;
  text-transform:uppercase;
  color:rgba(243,238,230,.55);
  transition:opacity .6s ease;
}
.curtain__hint .pearl{
  animation:pearlPulse 2.4s ease-in-out infinite;
}
@keyframes pearlPulse{
  0%,100%{transform:translateY(0) scale(1);opacity:.55}
  50%{transform:translateY(-6px) scale(1.12);opacity:1}
}

/* раскрытие */
.curtain.is-open .curtain__half--l{
  transform:translateX(-46%) rotate(-6deg) scale(1.04);
  opacity:0;
  filter:blur(14px);
}
.curtain.is-open .curtain__half--r{
  transform:translateX(46%) rotate(6deg) scale(1.04);
  opacity:0;
  filter:blur(14px);
}
.curtain.is-open .curtain__shade{opacity:0;transition:opacity .9s ease}
.curtain.is-open .curtain__hint{opacity:0}

/* ── 6. САЙТ ─────────────────────────────────────────────────── */
.site{
  opacity:0;
  transition:opacity 1s ease .25s;
}
.site.is-visible{opacity:1}

/* ── 7. ГЕРОЙ ────────────────────────────────────────────────── */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  overflow:hidden;
  background:var(--navy-900);
  isolation:isolate;
}
.hero__media{position:absolute;inset:0;z-index:-2}
.hero__img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 32%;
  animation:heroZoom 26s ease-out forwards;
}
@keyframes heroZoom{
  from{transform:scale(1.09)}
  to{transform:scale(1)}
}

.hero__veil{
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(180deg,
      rgba(6,14,27,.66) 0%,
      rgba(6,14,27,.16) 26%,
      rgba(6,14,27,.34) 58%,
      rgba(6,14,27,.86) 88%,
      rgba(6,14,27,.97) 100%),
    radial-gradient(90% 60% at 50% 88%, rgba(23,39,63,.5), transparent 70%);
}

.hero__body{
  position:relative;
  padding:0 26px calc(92px + env(safe-area-inset-bottom,0px));
  text-align:center;
  max-width:calc(var(--shell) + 40px);
  margin-inline:auto;
  width:100%;
}

.names{
  margin:22px 0 0;
  font-family:var(--serif);
  font-weight:300;
  font-size:clamp(40px,13.5vw,66px);
  line-height:1.02;
  letter-spacing:.004em;
  color:#FBF7F0;
}
.names__item{display:block}
.names__amp{
  display:block;
  margin:4px 0 6px;
  font-size:.52em;
  font-style:italic;
  font-weight:300;
  color:var(--pearl-deep);
}

.hero__meta{
  margin:26px 0 0;
  font-family:var(--sans);
  font-size:11.5px;
  font-weight:400;
  letter-spacing:.2em;
  line-height:2;
  text-transform:uppercase;
  color:rgba(243,238,230,.72);
}

.hero__scroll{
  position:absolute;
  bottom:calc(26px + env(safe-area-inset-bottom,0px));
  left:50%;
  transform:translateX(-50%);
  width:22px;
  height:38px;
  border:1px solid rgba(243,238,230,.35);
  border-radius:14px;
  display:grid;
  place-items:start center;
  padding-top:7px;
}
.hero__scroll span{
  width:2px;
  height:8px;
  border-radius:2px;
  background:rgba(243,238,230,.75);
  animation:scrollDot 1.9s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{transform:translateY(0);opacity:1}
  70%{transform:translateY(13px);opacity:0}
  100%{transform:translateY(0);opacity:0}
}

/* ── 8. СЕКЦИИ ───────────────────────────────────────────────── */
.s{
  position:relative;
  padding:78px 0;
}
.s--paper{background:var(--paper)}
.s--cream{background:var(--cream)}
.s--night{
  background:var(--navy-800);
  color:#F3EEE6;
}

/* ── 9. КАЛЕНДАРЬ ────────────────────────────────────────────── */
.cal{
  margin-top:34px;
  border:1px solid rgba(26,35,48,.13);
  border-radius:3px;
  padding:22px 16px 18px;
  background:rgba(255,255,255,.42);
  box-shadow:0 14px 34px -22px rgba(26,35,48,.4);
}
.cal__grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:2px 0;
  text-align:center;
}
.cal__wd{
  font-family:var(--sans);
  font-size:10px;
  font-weight:500;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ink-mute);
  padding-bottom:12px;
}
.cal__d{
  position:relative;
  display:grid;
  place-items:center;
  aspect-ratio:1;
  font-family:var(--serif);
  font-size:17px;
  font-weight:400;
  color:var(--ink);
  font-variant-numeric:lining-nums;
  font-feature-settings:"lnum" 1;
}
.cal__d--skip{visibility:hidden}

.cal__d--target{
  color:#fff;
  font-weight:600;
  isolation:isolate;
}
.cal__d--target::before{
  content:"";
  position:absolute;
  inset:11%;
  border-radius:50%;
  background:
    radial-gradient(circle at 34% 26%, #2C3F60 0%, #16263F 42%, #0A1526 78%, #060E1B 100%);
  box-shadow:
    0 6px 16px -6px rgba(6,14,27,.9),
    inset 0 1px 0 rgba(255,255,255,.22);
  z-index:-1;
}
.cal__d--target::after{
  content:"";
  position:absolute;
  inset:-9%;
  border-radius:50%;
  border:1px solid rgba(196,176,150,.55);
  animation:calRing 3.4s ease-out infinite;
}
@keyframes calRing{
  0%{transform:scale(.94);opacity:0}
  35%{opacity:.9}
  100%{transform:scale(1.18);opacity:0}
}
.cal__heart{
  position:absolute;
  bottom:14%;
  width:7px;
  height:7px;
  color:var(--pearl-deep);
  opacity:.9;
}

.cal__note{
  margin:20px 0 0;
  text-align:center;
  font-family:var(--sans);
  font-size:11px;
  font-weight:400;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--ink-mute);
}

/* ── 10. ФОТО ────────────────────────────────────────────────── */
.photo{
  margin:36px 0 0;
  position:relative;
  overflow:hidden;
  background:var(--cream-2);
}
.photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform 1.2s var(--ease);
}
.photo--arch{
  border-radius:220px 220px 3px 3px;
  aspect-ratio:4/5;
}
.photo--wide{
  border-radius:3px;
  aspect-ratio:4/5;
}
.photo--wide img{object-position:50% 42%}

.photo::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(6,14,27,.06) 0%,rgba(6,14,27,0) 40%,rgba(6,14,27,.14) 100%);
  pointer-events:none;
}

/* ── 11. МЕСТО ───────────────────────────────────────────────── */
.venue{
  margin-top:32px;
  text-align:center;
}
.venue__name{
  margin:0;
  font-family:var(--serif);
  font-size:clamp(24px,6.4vw,30px);
  font-weight:500;
  line-height:1.24;
  color:var(--ink);
}
.venue__addr{
  margin:14px 0 26px;
  font-family:var(--sans);
  font-size:13px;
  font-weight:400;
  line-height:1.85;
  letter-spacing:.02em;
  color:var(--ink-soft);
}

/* ── 12. КНОПКИ ──────────────────────────────────────────────── */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:15px 34px;
  font-family:var(--sans);
  font-size:11px;
  font-weight:500;
  letter-spacing:.22em;
  text-transform:uppercase;
  border-radius:2px;
  transition:
    background .35s ease,
    color .35s ease,
    border-color .35s ease,
    transform .25s var(--ease);
  cursor:pointer;
}
.btn:active{transform:scale(.985)}

.btn--ghost{
  border:1px solid rgba(26,35,48,.28);
  color:var(--ink);
  background:transparent;
}
.btn--ghost:hover{
  background:var(--navy-800);
  border-color:var(--navy-800);
  color:#F7F3EC;
}

.btn--solid{
  width:100%;
  padding:18px 24px;
  background:var(--navy-800);
  color:#F7F3EC;
  border:1px solid var(--navy-800);
  margin-top:34px;
}
.btn--solid:hover{background:var(--navy-600);border-color:var(--navy-600)}
.btn--solid[disabled]{opacity:.55;cursor:default}

/* ── 13. ФОТО-ПОЛОСА ─────────────────────────────────────────── */
.band{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1px;
  background:var(--navy-900);
}
.band__item{
  margin:0;
  position:relative;
  overflow:hidden;
  aspect-ratio:1;
  background:var(--navy-800);
}
.band__item img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(.92) contrast(1.05);
  transition:transform 1.4s var(--ease), filter .6s ease;
}
.band__item::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(6,14,27,.22),rgba(6,14,27,.5));
  pointer-events:none;
}

/* ── 14. ТАЙМИНГ ─────────────────────────────────────────────── */
.tl{
  position:relative;
  margin:48px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:44px;
}

.tl__thread{
  position:absolute;
  left:31px;
  top:6px;
  bottom:6px;
  width:1px;
  background:linear-gradient(180deg,
    rgba(239,230,215,0) 0%,
    rgba(239,230,215,.28) 8%,
    rgba(239,230,215,.28) 92%,
    rgba(239,230,215,0) 100%);
}

/* бегущая жемчужина по линии */
.tl__runner{
  position:absolute;
  left:31px;
  top:0;
  width:14px;
  height:14px;
  margin-left:-7px;
  color:var(--pearl);
  opacity:0;
  transition:opacity .6s ease;
  will-change:transform;
}
.tl.is-run .tl__runner{opacity:1}
.tl__runner .pearl{
  width:100%;
  height:100%;
  filter:drop-shadow(0 0 6px rgba(239,230,215,.85)) drop-shadow(0 0 14px rgba(239,230,215,.45));
}

.tl__item{
  position:relative;
  display:grid;
  grid-template-columns:62px 1fr;
  align-items:center;
  min-height:56px;
}
.tl__node{
  grid-column:1;
  position:relative;
  z-index:2;
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  border-radius:50%;
  background:var(--navy-800);
  border:1px solid rgba(239,230,215,.16);
  color:var(--pearl);
}
.tl__node .pearl{
  width:13px;
  height:13px;
  transition:transform .5s var(--ease);
}
.tl__item.is-hit .tl__node{
  border-color:rgba(239,230,215,.5);
  box-shadow:0 0 0 5px rgba(239,230,215,.05), 0 0 22px -4px rgba(239,230,215,.5);
}
.tl__item.is-hit .tl__node .pearl{transform:scale(1.35)}

.tl__body{
  grid-column:2;
  display:flex;
  flex-direction:column;
  gap:3px;
  padding-left:26px;
}
.tl__time{
  font-family:var(--serif);
  font-size:27px;
  font-weight:400;
  line-height:1.1;
  letter-spacing:.02em;
  color:var(--pearl);
  font-variant-numeric:lining-nums;
  font-feature-settings:"lnum" 1;
}
.tl__label{
  font-family:var(--sans);
  font-size:12px;
  font-weight:400;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(243,238,230,.66);
}

/* ── 15. ДРЕСС-КОД ───────────────────────────────────────────── */
.palette{
  display:flex;
  justify-content:center;
  align-items:flex-end;
  gap:10px;
  margin:38px 0 4px;
}
.palette__chip{
  width:38px;
  height:78px;
  border-radius:40px;
  background:linear-gradient(180deg,var(--b) 0%,var(--a) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 10px 22px -14px rgba(6,14,27,.9);
}
.palette__chip:nth-child(2){height:88px}
.palette__chip:nth-child(3){height:82px}
.palette__chip:nth-child(5){
  background:linear-gradient(180deg,#EDE5D8 0%,#C4B096 100%);
}

/* ── 16. ПОЖЕЛАНИЯ ───────────────────────────────────────────── */
.wish{text-align:center}
.wish__title{
  margin:0 0 14px;
  font-family:var(--serif);
  font-size:clamp(22px,6vw,27px);
  font-weight:500;
  letter-spacing:.01em;
  color:var(--ink);
}
.wish__text{
  margin:0;
  font-family:var(--serif);
  font-size:clamp(17px,4.6vw,19px);
  line-height:1.62;
  color:var(--ink-soft);
}

/* ── 17. АНКЕТА ──────────────────────────────────────────────── */
.form{margin-top:38px}

.field{margin:0 0 30px;padding:0;border:0}
.field--group{margin-bottom:30px}

.field__label{
  display:block;
  padding:0;
  margin:0 0 12px;
  font-family:var(--sans);
  font-size:13px;
  font-weight:500;
  line-height:1.55;
  letter-spacing:.005em;
  color:var(--ink);
}
.field__hint{
  display:block;
  margin-top:4px;
  font-size:11px;
  font-weight:400;
  letter-spacing:.04em;
  color:var(--ink-mute);
}

.field__input{
  width:100%;
  padding:15px 18px;
  font-family:var(--sans);
  font-size:15px;
  font-weight:400;
  color:var(--ink);
  background:#fff;
  border:1px solid rgba(26,35,48,.16);
  border-radius:2px;
  outline:none;
  transition:border-color .3s ease, box-shadow .3s ease, background .3s ease;
  appearance:none;
}
.field__input::placeholder{color:#A8AEB8;font-size:14px}
.field__input:focus{
  border-color:var(--navy-600);
  box-shadow:0 0 0 3px rgba(23,39,63,.09);
}

.field__err{
  display:none;
  margin:8px 0 0;
  font-family:var(--sans);
  font-size:12px;
  color:#A6382F;
}
.field.has-error .field__input{border-color:#C0867E;background:#FDF8F7}
.field.has-error .field__err{display:block}
.field--group.has-error .field__err{display:block}

/* варианты */
.opt{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:13px;
  padding:12px 16px;
  margin-bottom:8px;
  border:1px solid rgba(26,35,48,.13);
  border-radius:2px;
  background:rgba(255,255,255,.6);
  cursor:pointer;
  transition:border-color .25s ease, background .25s ease;
  -webkit-tap-highlight-color:transparent;
}
.opt:hover{border-color:rgba(26,35,48,.28);background:#fff}

.opt input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
  margin:0;
  z-index:2;
}

.opt__mark{
  flex:none;
  width:17px;
  height:17px;
  margin-top:2px;
  border:1px solid rgba(26,35,48,.35);
  border-radius:50%;
  display:grid;
  place-items:center;
  transition:border-color .25s ease, background .25s ease;
}
.opt__mark::after{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--navy-800);
  transform:scale(0);
  transition:transform .22s var(--ease);
}
input[type="checkbox"] + .opt__mark{border-radius:2px}
input[type="checkbox"] + .opt__mark::after{
  width:9px;
  height:9px;
  border-radius:1px;
  background:transparent;
  border-right:1.5px solid #fff;
  border-bottom:1.5px solid #fff;
  transform:rotate(45deg) scale(0);
  margin-top:-2px;
}

.opt input:checked ~ .opt__mark{
  border-color:var(--navy-800);
  background:var(--navy-800);
}
.opt input:checked ~ .opt__mark::after{transform:scale(1)}
input[type="checkbox"]:checked + .opt__mark::after{transform:rotate(45deg) scale(1)}

.opt input:checked ~ .opt__text{font-weight:500;color:var(--ink)}
.opt:has(input:checked){
  border-color:var(--navy-700);
  background:#fff;
  box-shadow:0 6px 18px -14px rgba(6,14,27,.7);
}
.opt input:focus-visible ~ .opt__mark{
  box-shadow:0 0 0 3px rgba(23,39,63,.18);
}

.opt__text{
  font-family:var(--sans);
  font-size:14.5px;
  line-height:1.5;
  color:var(--ink-soft);
  transition:color .25s ease;
}

.form__note{
  margin:16px 0 0;
  text-align:center;
  font-family:var(--sans);
  font-size:11.5px;
  letter-spacing:.02em;
  color:var(--ink-mute);
}

/* благодарность */
.done{
  margin-top:46px;
  padding:44px 26px;
  text-align:center;
  border:1px solid rgba(26,35,48,.13);
  border-radius:3px;
  background:#fff;
  box-shadow:0 20px 44px -34px rgba(6,14,27,.55);
  animation:doneIn .7s var(--ease) both;
}
@keyframes doneIn{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:none}
}
.done__title{
  margin:0 0 12px;
  font-family:var(--serif);
  font-size:30px;
  font-weight:500;
  color:var(--ink);
}
.done__text{
  margin:0;
  font-family:var(--serif);
  font-size:18px;
  line-height:1.6;
  color:var(--ink-soft);
}

/* ── 18. ФИНАЛ + ТАЙМЕР ──────────────────────────────────────── */
.final{
  position:relative;
  overflow:hidden;
  padding:86px 0 calc(64px + env(safe-area-inset-bottom,0px));
  background:var(--navy-900);
  text-align:center;
}
.final__glow{
  position:absolute;
  left:50%;
  top:-30%;
  width:130%;
  aspect-ratio:1;
  transform:translateX(-50%);
  background:radial-gradient(circle,rgba(34,51,79,.72) 0%,rgba(10,21,38,0) 62%);
  pointer-events:none;
}

.cd{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:2px;
  margin-top:26px;
}
.cd__cell{
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:56px;
}
.cd__cell b{
  font-family:var(--serif);
  font-size:clamp(30px,9vw,40px);
  font-weight:400;
  line-height:1;
  letter-spacing:.02em;
  color:#F7F3EC;
  font-variant-numeric:lining-nums tabular-nums;
  font-feature-settings:"lnum" 1,"tnum" 1;
}
.cd__cell span{
  margin-top:9px;
  font-family:var(--sans);
  font-size:9.5px;
  font-weight:400;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(243,238,230,.5);
}
.cd__sep{
  font-family:var(--serif);
  font-size:clamp(22px,6vw,28px);
  line-height:1;
  padding-top:5px;
  color:rgba(239,230,215,.32);
}

.final__names{
  margin:34px 0 0;
  font-family:var(--serif);
  font-size:clamp(28px,8.4vw,38px);
  font-weight:300;
  letter-spacing:.01em;
  color:#F7F3EC;
}
.final__names em{
  font-style:italic;
  font-size:.72em;
  color:var(--pearl-deep);
  padding:0 2px;
}
.final__date{
  margin:12px 0 0;
  font-family:var(--sans);
  font-size:10.5px;
  font-weight:400;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:rgba(243,238,230,.5);
  text-indent:.32em;
}

/* ── 19. КНОПКА МУЗЫКИ ───────────────────────────────────────── */
.sound{
  position:fixed;
  right:18px;
  bottom:calc(18px + env(safe-area-inset-bottom,0px));
  z-index:60;
  width:46px;
  height:46px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(10,21,38,.72);
  border:1px solid rgba(239,230,215,.25);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 8px 24px -12px rgba(0,0,0,.8);
  transition:opacity .4s ease, transform .3s var(--ease);
}
.sound[hidden]{display:none}
.sound:active{transform:scale(.94)}

.sound__bars{
  display:flex;
  align-items:flex-end;
  gap:2.5px;
  height:15px;
}
.sound__bars i{
  display:block;
  width:2.5px;
  border-radius:2px;
  background:var(--pearl);
  animation:bar 1.05s ease-in-out infinite;
}
.sound__bars i:nth-child(1){height:6px;animation-delay:0s}
.sound__bars i:nth-child(2){height:14px;animation-delay:.16s}
.sound__bars i:nth-child(3){height:9px;animation-delay:.32s}
.sound__bars i:nth-child(4){height:12px;animation-delay:.48s}

.sound.is-muted .sound__bars i{
  animation-play-state:paused;
  height:4px;
  opacity:.5;
}

@keyframes bar{
  0%,100%{transform:scaleY(.4)}
  50%{transform:scaleY(1)}
}

/* ── 20. REVEAL ──────────────────────────────────────────────── */
.reveal,
.s .title,
.s .lead,
.s .eyebrow,
.s .divider,
.s .pearl-row,
.s .photo,
.s .venue,
.s .wish,
.s .palette,
.s .cal,
.s .cal__note,
.s .form,
.tl__item,
.final .eyebrow,
.cd,
.final .pearl-strip,
.final__names,
.final__date,
.hero .names,
.hero .pearl-strip,
.hero__meta{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .95s var(--ease), transform .95s var(--ease);
}
.is-in{
  opacity:1 !important;
  transform:none !important;
}

/* каскад внутри секций */
.s .lead:nth-of-type(2){transition-delay:.09s}

/* ── 21. АДАПТИВ ─────────────────────────────────────────────── */
@media (min-width:560px){
  .shell{padding-inline:32px}
  .s{padding:96px 0}
  .band__item{aspect-ratio:4/5}
  .cd__cell{min-width:72px}
}

@media (min-width:900px){
  :root{--shell:600px}
  body{background:#060E1B}
  .hero{min-height:100vh}
  .hero__img{object-position:50% 28%}
  .s{padding:110px 0}
  .s--paper,.s--cream{box-shadow:0 0 80px -40px rgba(0,0,0,.6)}
  .photo--arch{aspect-ratio:4/5}
  .band{grid-template-columns:1fr 1fr;max-width:1100px;margin-inline:auto}
  .band__item{aspect-ratio:1}
  .palette{gap:14px}
  .palette__chip{width:46px;height:94px}
}

@media (min-width:1200px){
  .band{max-width:1240px}
}

/* отключение анимаций */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .reveal,.s .title,.s .lead,.s .eyebrow,.s .divider,.s .pearl-row,.s .photo,
  .s .venue,.s .wish,.s .palette,.s .cal,.s .cal__note,.s .form,.tl__item,
  .final .eyebrow,.cd,.final .pearl-strip,.final__names,.final__date,
  .hero .names,.hero .pearl-strip,.hero__meta{
    opacity:1;transform:none;
  }
}
