/* sicililove.ru · Евгений и Виталина · 24.07.2027
   Шрифты локальные (fontsource, OFL). Внешних подключений нет. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-300-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/jost-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Токены ---------- */
:root {
  --paper: #F6F2E8;
  --sky: #DCEAF4;
  --surface: #FFFCF4;
  --ink: #1B2E3F;
  --muted: #4D6275;
  --lemon: #EFC33B;
  --lemon-rgb: 239, 195, 59;
  --lemon-deep: #E2AE1F;
  --majolica: #2C5A94;
  --dusk: #0F1D30;
  --cream: #F3EEE2;
  --muted-night: #C9D3DE;
  --brass: #B08A3E;
  --brass-text: #83621A;
  --leaf: #56723F;
  --line: rgba(27, 46, 63, .14);

  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --tshadow-dark: 0 1px 2px rgba(8, 10, 18, .85), 0 3px 14px rgba(8, 10, 18, .6), 0 10px 44px rgba(8, 10, 18, .55);
  --tshadow-light: 0 0 2px rgba(246, 242, 232, .9), 0 2px 18px rgba(246, 242, 232, .85), 0 8px 48px rgba(246, 242, 232, .7);

  --pad-x: clamp(16px, 5vw, 64px);
  --radius: 28px;
  --radius-sm: 16px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --bg-pos: 50% 50%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: var(--majolica); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--lemon); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--lemon-rgb), .45); color: var(--ink); }

/* ---------- Фон ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--sky); }
.bg__layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--bg-pos);
}
.bg__video { opacity: 0; transition: opacity .6s ease; }
body.video-ready .bg__video { opacity: 1; }
body.video-ready .bg__sky { opacity: 0; transition: opacity .6s ease; }
body.video-failed .bg__video { display: none; }
.bg__still { opacity: 0; will-change: opacity; }
.bg__veil { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.bg__veil--light {
  opacity: 1;
  background:
    radial-gradient(90% 70% at 50% 46%, rgba(246, 242, 232, .78) 0%, rgba(246, 242, 232, .5) 45%, rgba(246, 242, 232, .12) 80%),
    linear-gradient(to bottom, rgba(220, 234, 244, .35), rgba(246, 242, 232, 0) 40%);
}
.bg__veil--dark {
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(10, 14, 22, .25) 0%, rgba(10, 14, 22, .62) 100%),
    linear-gradient(to bottom, rgba(10, 14, 22, .15), rgba(10, 14, 22, .35));
}
/* плёночное зерно: лёгкая живая фактура поверх SD-фильма */
.bg__grain {
  position: absolute; inset: -60px;
  opacity: .055; /* без mix-blend-mode: смешивание с видео на каждом кадре дорого для видеокарты */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-18px, 12px); }
  40% { transform: translate(14px, -20px); } 60% { transform: translate(-10px, -8px); }
  80% { transform: translate(20px, 16px); } 100% { transform: translate(0, 0); }
}

#page, .finale { position: relative; z-index: 10; }

/* ---------- Общие элементы ---------- */
.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: clamp(72px, 12vw, 160px) 0; }

.label {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--majolica);
  line-height: 1.4;
}
.label--brass { color: var(--brass-text); letter-spacing: .16em; text-transform: none; font-family: var(--font-head); font-style: italic; font-weight: 400; font-size: 22px; }
.label--on-photo, .h2--on-photo { color: var(--cream); text-shadow: var(--tshadow-dark); }
.label--on-photo {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: rgba(12, 16, 26, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  text-shadow: none;
}

.h2 {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 14px 0 22px;
  text-wrap: balance;
}
.lead { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; font-weight: 500; margin-bottom: 14px; }
p + p { margin-top: 12px; }

.card {
  position: relative;
  background: rgba(252, 249, 241, .9);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(12, 18, 30, .45), 0 2px 0 rgba(255, 255, 255, .6) inset;
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  backdrop-filter: blur(20px) saturate(1.15);
  padding: clamp(24px, 4vw, 56px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background: rgba(252, 249, 241, .97); }
}

/* заглушки [ЗАПОЛНИТЬ] видны сразу */
.fill {
  background: rgba(var(--lemon-rgb), .32);
  border-bottom: 1px dashed var(--brass);
  padding: 0 .25em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* кнопки */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--font);
  letter-spacing: .01em;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .3s ease, box-shadow .35s var(--ease), color .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lemon {
  background: linear-gradient(160deg, #FAF1CF, #F0E2A4);
  color: var(--ink);
  border-color: rgba(199, 164, 91, .45);
  box-shadow: 0 8px 22px -12px rgba(150, 120, 40, .55), 0 1px 0 rgba(255, 255, 255, .8) inset;
}
.btn--lemon:hover { color: var(--ink); background: linear-gradient(160deg, #F7EBBE, #EBD98F); box-shadow: 0 12px 28px -12px rgba(150, 120, 40, .6), 0 1px 0 rgba(255, 255, 255, .8) inset; }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #10202e; color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: rgba(27, 46, 63, .35); }
.btn--outline:hover { background: rgba(27, 46, 63, .06); color: var(--ink); border-color: var(--ink); }
.btn--glass {
  background: rgba(252, 249, 241, .55); color: var(--ink); border-color: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--glass:hover { background: rgba(252, 249, 241, .8); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn--lg { min-height: 60px; padding: 18px 36px; font-size: 18px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--majolica); text-decoration: none; margin-top: 10px; }
.link-arrow::after { content: "↓"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateY(3px); }

/* ---------- Шапка ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px var(--pad-x); pointer-events: none; }
.topbar__inner {
  pointer-events: auto;
  width: min(1200px, 100%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  background: rgba(252, 249, 241, .72);
  border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 40px -18px rgba(12, 18, 30, .45);
}
.monogram {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--brass);
  font: 400 19px/1 var(--font-head); color: var(--ink); text-decoration: none;
  letter-spacing: -.02em;
}
.monogram i { font-style: italic; color: var(--brass-text); margin: 0 1px; }
.topbar__links { display: flex; gap: 4px; }
.topbar__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.topbar__links a:hover { background: rgba(27, 46, 63, .07); }

/* ---------- 1. Герой ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 110px var(--pad-x) 90px;
  text-align: center;
}
.hero__copy { position: relative; max-width: 980px; text-shadow: var(--tshadow-light); will-change: transform, opacity; }
.hero__copy .btn { text-shadow: none; }
.hero__copy .label { color: var(--ink); }
.hero__names {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(60px, min(12vw, 17vh), 190px);
  line-height: .86;
  letter-spacing: -.02em;
  margin: 18px 0 6px;
  color: var(--ink);
}
.hero__name { display: block; }
.hero__and {
  display: block;
  font-style: italic; font-weight: 400;
  font-size: .42em; line-height: 1.2;
  color: var(--brass-text);
}
.hero__date {
  font-family: var(--font-head);
  font-size: clamp(28px, min(3.4vw, 5vh), 44px);
  letter-spacing: .08em;
  margin-top: 12px;
  font-feature-settings: "lnum", "tnum";
}
.hero__place { font-weight: 600; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.hero__count { margin-top: 10px; font-size: 18px; }
.hero .btn-row { margin-top: 22px; }
.hero__count b { font-family: var(--font-head); font-weight: 600; font-size: 1.7em; color: var(--ink); font-feature-settings: "lnum"; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  text-shadow: var(--tshadow-light);
}
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 2. Обращение ---------- */
.impact { position: relative; }
.impact__pin {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 100px var(--pad-x);
}
.impact__text {
  position: relative;
  max-width: 1100px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 1.04;
  text-align: center;
  color: var(--cream);
  text-shadow: var(--tshadow-dark);
  text-wrap: balance;
}
.impact__text::before {
  content: ""; position: absolute; inset: -18% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(8, 12, 20, .55) 0%, rgba(8, 12, 20, .3) 50%, rgba(8, 12, 20, 0) 78%);
}
.impact__text .word { display: inline-block; will-change: opacity, transform; }
.impact__text .word--accent { font-style: italic; color: #FBE7A6; }

/* ---------- 3. История ---------- */
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
}
.arch {
  position: relative;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(10, 14, 22, .6);
}
.arch::after {
  content: ""; position: absolute; inset: 10px; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(255, 244, 214, .75);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.story__photo { aspect-ratio: 4 / 5.4; z-index: 1; }
.story__card { margin-left: -64px; z-index: 2; }
.story__card .h2 { max-width: 16ch; }
.sign { margin-top: 26px !important; font-family: var(--font-head); font-style: italic; font-size: 28px; color: var(--brass-text); }

/* ---------- 4. Когда и где ---------- */
.section-head { margin-bottom: clamp(24px, 4vw, 44px); }
.section-head--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.tile { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 40px); }
.tile--date { grid-column: span 5; }
.tile--time { grid-column: span 7; }
.tile--place { grid-column: span 5; }
.tile--count { grid-column: span 7; }
.tile__big {
  font-family: var(--font-head); font-weight: 300;
  font-size: clamp(56px, 7vw, 104px); line-height: .95;
  margin: 14px 0 8px;
  font-feature-settings: "lnum";
}
.tile__big--sm { font-size: clamp(44px, 5vw, 72px); }
.tile__sub { color: var(--muted); max-width: 42ch; }
.tile .btn { margin-top: auto; }
.tile--date .tile__sub { margin-bottom: 24px; }
.count { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 16px 0 14px; }
.count__cell {
  display: grid; justify-items: center; gap: 2px;
  padding: 16px 8px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(220, 234, 244, .7), rgba(220, 234, 244, .35));
  border: 1px solid rgba(44, 90, 148, .14);
}
.count__cell b { font-family: var(--font-head); font-weight: 400; font-size: clamp(44px, 5.2vw, 76px); line-height: 1; font-feature-settings: "lnum", "tnum"; }
.count__cell span { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

/* ---------- 5. Программа ---------- */
.program { position: relative; }
.program__pin {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 100px var(--pad-x) 40px;
}
.program__panel {
  position: relative;
  width: min(560px, 100%);
  margin-left: max(0px, calc((100vw - 1200px) / 2));
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) clamp(24px, 3vw, 36px) clamp(40px, 4vw, 56px);
}
.program__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.program__clock {
  font-family: var(--font-head); font-weight: 300;
  font-size: clamp(56px, 6vw, 88px); line-height: .9;
  font-feature-settings: "lnum", "tnum";
  color: var(--ink);
  overflow: hidden; height: 1em;
  white-space: nowrap; flex: none;
}
.program__clock span { display: block; }
.stop {
  display: grid; grid-template-columns: 76px 1fr; gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  opacity: .5;
  transition: opacity .5s ease;
}
.stop:first-child { border-top: 0; }
.stop.is-active, .stop.is-past { opacity: 1; }
.stop.is-past { opacity: .78; }
.stop__time { font-family: var(--font-head); font-size: 26px; font-weight: 600; line-height: 1.2; font-feature-settings: "lnum", "tnum"; }
.stop h3 { font-family: var(--font); font-size: 18px; font-weight: 700; line-height: 1.35; }
.stop p { font-size: 16px; color: var(--muted); margin-top: 2px; }
.stop.is-active .stop__time { color: var(--brass-text); }
.program__note { margin-top: 10px; font-size: 15px; color: var(--muted); }
.program__rail {
  position: absolute; left: clamp(18px, 2vw, 26px); top: 36px; bottom: 36px; width: 2px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.program__rail i { position: absolute; inset: 0; background: linear-gradient(var(--lemon), var(--brass)); transform-origin: top; transform: scaleY(0); }

/* ---------- 6. Как добраться ---------- */
.route__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.route__addr { font-size: 19px; font-weight: 500; }
.route__note { margin-top: 14px; color: var(--muted); }
.route__ways { display: grid; gap: 14px; margin-top: 22px; }
.route__ways div { display: grid; grid-template-columns: 116px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.route__ways dt { font-weight: 700; }
.route__ways dd { color: var(--muted); }
.route__map {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 16 / 9; align-self: center; width: 100%;
  background: #E3E6E3;
}
.route__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link { position: absolute; inset: 0; display: block; }
.map-link img { width: 100%; height: 100%; object-fit: cover; object-position: 5% 60%; display: block; }
.map-link__cta {
  position: absolute; right: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--ink, #1c2a33); font-weight: 600; font-size: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15); transition: background .2s;
}
.map-link:hover .map-link__cta { background: #fff; }

/* ---------- 7. Дресс-код ---------- */
.dress__card { text-align: center; }
.swatches {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px 12px;
  max-width: 900px; margin: 36px auto 44px;
}
.swatches li { display: grid; justify-items: center; align-content: start; gap: 12px; font-size: 15px; line-height: 1.3; }
.swatches b { font-weight: 500; }
.swatch {
  width: clamp(64px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .5), transparent 44%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .03) 0 1px, transparent 1px 3px),
    var(--c);
  box-shadow: 0 14px 30px -14px rgba(12, 18, 30, .4), 0 0 0 5px rgba(255, 255, 255, .75), 0 0 0 6px var(--line);
  animation: breathe 8s ease-in-out infinite;
}
.swatch--light { box-shadow: inset 0 0 0 1px rgba(27, 46, 63, .14), 0 14px 30px -14px rgba(12, 18, 30, .3), 0 0 0 5px rgba(255, 255, 255, .75), 0 0 0 6px var(--line); }
.swatches li:nth-child(2n) .swatch { animation-delay: -2.7s; }
.swatches li:nth-child(3n) .swatch { animation-delay: -5.1s; }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.looks__label { margin-bottom: 16px; }
.looks {
  display: flex; justify-content: flex-start; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px 2px 10px; margin: 0 -2px;
  scrollbar-width: thin;
}
.looks > :first-child { margin-left: auto; }   /* по центру, пока ряд помещается; иначе листается с первого образа */
.looks > :last-child { margin-right: auto; }
.looks img {
  height: clamp(240px, 24vw, 310px); width: auto; flex: none;
  border-radius: 14px; scroll-snap-align: center;
  box-shadow: 0 16px 34px -18px rgba(12, 18, 30, .45);
}

/* ---------- 8. Фото ---------- */
.moment { display: grid; place-items: center; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.moment__frame {
  width: min(560px, 86vw); aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden; position: relative;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 244, 214, .35);
}
.moment__frame img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }

/* ---------- 9. Анкета ---------- */
.rsvp__card { text-align: center; max-width: 880px; margin: 0 auto; padding-top: clamp(56px, 7vw, 84px); }
.rsvp__card .h2 { max-width: 15ch; margin-left: auto; margin-right: auto; }
.rsvp__lemon {
  position: absolute; top: -52px; left: 50%; width: 110px; height: auto; margin-left: -55px;
  filter: drop-shadow(0 14px 18px rgba(40, 30, 0, .3));
  animation: float 8s ease-in-out infinite; animation-delay: -3s;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
.rsvp__deadline { font-size: 20px; font-weight: 500; }
.rsvp__deadline b { color: var(--ink); background: rgba(233, 214, 107, .35); padding: 0 .3em; border-radius: 4px; }
.rsvp__todo { margin-top: 16px; font-size: 14px; color: var(--muted); }
.rsvp__todo[hidden] { display: none; }

/* ---------- 10. Контакты ---------- */
.contacts__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 16px; align-items: stretch; }
.contacts__head { grid-column: 1 / -1; align-self: center; padding-right: 12px; }
.contacts__head .h2 { font-size: clamp(34px, 3.6vw, 52px); }
.contact { padding: clamp(24px, 3vw, 36px); }
.contact__name { font-family: var(--font-head); font-size: 32px; font-weight: 400; line-height: 1.1; }
.contact__role { color: var(--muted); margin-top: 6px; }
.contact__phone { font-weight: 600; font-size: 18px; margin-top: 10px !important; font-feature-settings: "tnum"; }
.contact .btn-row { margin-top: 20px; }

/* ---------- 11. Финал ---------- */
.finale {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  padding: 16vh var(--pad-x) 40px;
  text-align: center;
  color: var(--cream);
  text-shadow: var(--tshadow-dark);
}
.finale::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(15, 29, 48, 0) 0%, rgba(15, 29, 48, .55) 45%, rgba(15, 29, 48, .92) 100%);
}
.finale__glow {
  position: absolute; left: 50%; top: 42%; width: min(720px, 90vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--lemon-rgb), .22), rgba(var(--lemon-rgb), 0) 62%);
  z-index: -1; pointer-events: none;
  animation: glow 6s ease-in-out infinite; animation-delay: -2s;
}
@keyframes glow { 0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
.finale__quote {
  font-family: var(--font-head); font-weight: 300;
  font-size: clamp(44px, min(7.4vw, 11vh), 120px); line-height: .98;
  max-width: 13ch; text-wrap: balance;
}
.finale__quote em { color: #FBE7A6; }
.finale__meta { font-size: 17px; font-weight: 500; color: var(--muted-night); letter-spacing: .02em; }
.finale__names { font-family: var(--font-head); font-size: 34px; margin-top: 18px; }
.finale__names i { color: var(--lemon); }

/* ---------- Появления ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
.bento [data-reveal]:nth-child(2) { transition-delay: .08s; }
.bento [data-reveal]:nth-child(3) { transition-delay: .16s; }
.bento [data-reveal]:nth-child(4) { transition-delay: .24s; }
.contacts__grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
.contacts__grid [data-reveal]:nth-child(3) { transition-delay: .16s; }
.contacts__grid [data-reveal]:nth-child(4) { transition-delay: .24s; }
.bento .in.done, .contacts__grid .in.done { transition-delay: 0s; }

body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .contacts__grid { grid-template-columns: 1fr 1fr; }
  .contacts__head { padding-right: 0; }
}
@media (max-width: 900px) {
  .topbar__links { display: none; }
  .story__grid { grid-template-columns: 1fr; }
  .story__photo { width: min(420px, 82%); margin: 0 auto; }
  .story__card { margin: -72px 0 0; }
  .bento { grid-template-columns: 1fr; }
  .tile--date, .tile--time, .tile--place, .tile--count { grid-column: auto; }
  .route__card { grid-template-columns: 1fr; }
  .route__map { aspect-ratio: 4 / 3; }
  .program__pin { min-height: 0; padding: clamp(72px, 12vw, 120px) var(--pad-x); }
  .program__panel { margin-left: 0; width: 100%; }
}
@media (max-width: 768px), (hover: none), (prefers-reduced-motion: reduce) {
  :root { --bg-pos: 66% 50%; }
  .bg__video { display: none; }
  .bg__grain { animation: none; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .topbar { padding: 10px 12px; }
  .hero { padding-top: 96px; }
  .hero__place { font-size: 14px; letter-spacing: .1em; }
  .hero .btn-row .btn { width: 100%; }
  .impact__pin { min-height: 0; padding: 22vh var(--pad-x); }
  .count__cell span { font-size: 13px; }
  .contacts__grid { grid-template-columns: 1fr; }
  .route__ways div { grid-template-columns: 1fr; gap: 2px; }
  .swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 6px; margin: 28px 0 36px; }
  .swatches li { width: calc((100% - 12px) / 3); font-size: 14px; }
  .swatch { width: 64px; }
  .looks { justify-content: flex-start; margin: 0 calc(-1 * clamp(24px, 4vw, 56px)); padding-left: 20px; padding-right: 20px; scroll-padding: 0 20px; }
  .btn-row .btn { flex: 1 1 auto; }
  .card { border-radius: 22px; }
  .stop { grid-template-columns: 64px 1fr; gap: 12px; }
  .stop__time { font-size: 22px; }
  .program__panel { padding-left: 40px; }
  .program__clock { font-size: 46px; }
  .program__head .label { font-size: 13px; letter-spacing: .14em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* невысокие экраны ноутбуков */
@media (max-height: 820px) {
  .scroll-cue { display: none; }
  .program__pin { padding-top: 84px; padding-bottom: 16px; }
  .program__panel { padding-top: 22px; padding-bottom: 20px; }
  .program__head { margin-bottom: 8px; }
  .program__clock { font-size: 60px; }
  .stop { padding: 9px 0; }
  .stop p { font-size: 15px; }
  .program__note { margin-top: 4px; }
}
