/* Мидийный бал: лендинг встречи партнёров 2026.
   Гарнитура и цвета по брендбуку ГК «Мидийное место» (Montserrat, #DC373C).
   Золото и тёмная тема заданы концепцией вечера (бал-маскарад), поэтому страница только тёмная.
   Скругления: кнопки и чипы — пилюля, карточки — 28px, поля — 14px. */

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Italic-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}


/* Бальные шрифты только для блока «До открытия бала» (подмножества латиница + кириллица) */
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond-600-cyrillic.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond-500i-latin.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond-500i-cyrillic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #070506;
  --bg-2: #0f0a0b;
  --bg-3: #171012;
  --line: rgba(244, 239, 232, .12);
  --text: #f4efe8;
  --muted: #b3aba6;
  --red: #DC373C;
  --red-hi: #ef4a4f;
  --red-deep: #5c1014;
  --gold: #D4AF6A;
  --gold-hi: #f2dca6;
  --gold-lo: #9b7a3d;
  --gold-grad: linear-gradient(100deg, #9b7a3d 0%, #f2dca6 38%, #D4AF6A 60%, #8d6c33 100%);
  --r-card: 28px;
  --r-field: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --z-nav: 40; --z-menu: 45; --z-dock: 35; --z-curtain: 90; --z-fx: 80;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: #111; padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 16px; }

.eyebrow {
  margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}
.h2 {
  margin: 0; font-weight: 800; font-size: clamp(36px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.02em;
}
.h2 em, .ball__title em {
  font-style: italic; font-weight: 300; padding-right: .06em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Кнопки ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease), background-color .3s, border-color .3s, color .3s, box-shadow .3s;
}
.btn:active { transform: translate(var(--bx), calc(var(--by) + 1px)) scale(.98); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 40px -12px rgba(220, 55, 60, .7); }
.btn--red:hover { background: var(--red-hi); }
.btn--ghost { border-color: rgba(212, 175, 106, .55); color: var(--gold-hi); background: rgba(7, 5, 6, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--gold); background: rgba(212, 175, 106, .1); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text);
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color .25s, background-color .25s, color .25s;
}
.chip:hover { border-color: var(--gold); color: var(--gold-hi); }
.chip--line { border-color: rgba(212, 175, 106, .4); color: var(--gold-hi); }
.link-gold { display: inline-block; margin-top: 22px; color: var(--gold-hi); font-weight: 600; text-underline-offset: 5px; }

/* ---------- Занавес ---------- */
.curtain { position: fixed; inset: 0; z-index: var(--z-curtain); pointer-events: none; display: none; }
.js-curtain .curtain { display: block; pointer-events: auto; cursor: pointer; }
.curtain { background: #0b0405; }
.curtain.is-opening { background: transparent; }
.curtain__half { position: absolute; top: 0; bottom: 0; width: 50.6%; overflow: hidden; will-change: transform; }
.curtain__half--l { left: 0; transform-origin: 0% 0%; }
.curtain__half--r { right: 0; transform-origin: 100% 0%; }
.curtain__half picture, .curtain__half img { display: block; width: 100%; height: 100%; }
.curtain__half img { object-fit: cover; }
.curtain__half--l img { object-position: 100% 100%; }
.curtain__half--r img { object-position: 0% 100%; }
/* Тень у внутреннего края и общая глубина: при сборке складок ткань темнеет */
.curtain__shade { position: absolute; inset: 0; pointer-events: none; opacity: var(--gather, 0);
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.15) 50%, rgba(0,0,0,.6)); }
.curtain__half--l::after, .curtain__half--r::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; pointer-events: none; }
.curtain__half--l::after { right: 0; background: linear-gradient(90deg, transparent, rgba(0,0,0,.45)); }
.curtain__half--r::after { left: 0; background: linear-gradient(270deg, transparent, rgba(0,0,0,.45)); }
.curtain__seal { position: absolute; z-index: 2; left: 50%; top: 46%; transform: translate(-50%, -50%); width: clamp(160px, 17vw, 240px); }
/* Тёмный ореол за эмблемой, чтобы красный пин не сливался с бархатом */
.curtain__seal::before { content: ""; position: absolute; inset: -38%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(10,3,4,.72) 0%, rgba(10,3,4,.35) 45%, transparent 70%); }
.curtain__seal img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(242,220,166,.18)); }

/* ---------- Прогресс и навигация ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: calc(var(--z-nav) + 1); pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold-grad); transform-origin: 0 50%; transform: scaleX(0); }

.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav); height: 76px; transform: translateY(0);
  display: flex; align-items: center; gap: 32px; padding-inline: var(--pad);
  transition: background-color .4s, backdrop-filter .4s, transform .5s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(7, 5, 6, .38); backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%); border-bottom-color: rgba(244,239,232,.07); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: block; flex: none; line-height: 0; }
.nav__logo img { width: auto; height: 34px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); transition: transform .35s var(--ease); }
.nav__logo:hover img { transform: scale(1.04); }
.nav__links { display: flex; gap: 34px; margin-left: auto; }
@media (min-width: 1081px) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav__links { margin-left: 0; justify-self: center; }
  .nav__cta { justify-self: end; }
}
.nav__links a { display: inline-flex; align-items: center; gap: 10px; }
.nav__links a::before { content: ""; width: 5px; height: 5px; flex: none; background: var(--gold); transform: rotate(45deg); opacity: .75; transition: opacity .3s, transform .4s var(--ease), background-color .3s; }
.nav__links a:hover::before, .nav__links a.is-current::before { opacity: 1; background: var(--gold-hi); transform: rotate(45deg) scale(1.3); }
.nav__links a { position: relative; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 15px; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav__links a:hover, .nav__links a.is-current { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7,5,6,.5); cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger span:first-child { top: 19px; }
.nav__burger span:last-child { top: 27px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: var(--z-menu); background: rgba(7,5,6,.96); display: grid; place-items: center; }
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 22px; text-align: center; }
.menu a { font-size: 30px; font-weight: 700; text-decoration: none; }
.menu .menu__cta { margin-top: 18px; font-size: 18px; color: #fff; background: var(--red); border-radius: 999px; padding: 16px 30px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: -6% 0 -6% 0; z-index: -3; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(7,5,6,.94) 0%, rgba(7,5,6,.78) 34%, rgba(7,5,6,.25) 64%, rgba(7,5,6,.45) 100%),
    linear-gradient(180deg, rgba(7,5,6,.55) 0%, transparent 22%, transparent 70%, var(--bg) 100%);
}
.hero__dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__glow {
  position: absolute; z-index: -1; width: 720px; height: 720px; left: 0; top: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(212,175,106,.16) 0%, rgba(220,55,60,.07) 40%, transparent 68%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .6s;
}
.hero:hover .hero__glow { opacity: 1; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero__text { position: relative; z-index: 2; }
.hero__title { margin: 0; font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: -.035em; font-size: clamp(54px, 9.6vw, 156px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .word { display: inline-block; }
.hero__title .line--gold { text-transform: lowercase; font-style: italic; font-weight: 300; letter-spacing: -.02em; font-size: 1.32em; line-height: .86; padding: 0 .08em .14em 0; }
.hero__title .line--gold .word { background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero__sub { max-width: 34ch; margin: 28px 0 0; font-size: clamp(17px, 1.5vw, 20px); color: #ddd5cf; }
.hero__sub strong { color: var(--text); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__mask { position: absolute; z-index: 1; right: max(0px, calc(var(--pad) - 40px)); top: 50%; margin-top: calc(min(600px, 46vw) / -2 + 20px); width: min(600px, 46vw); aspect-ratio: 1; will-change: transform; pointer-events: none; }
.hero__title .line:first-child .word { text-shadow: 0 6px 40px rgba(7,5,6,.55); }
.hero__mask img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)) drop-shadow(0 0 40px rgba(212,175,106,.18)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(-1deg); } }


/* Заголовок-картинка: надпись «Мидийный бал» с пином из перьев */
.hero__title--art { width: clamp(300px, 46vw, 700px); margin: -6px 0 0 -10px; line-height: 0; text-transform: none; }
.hero__title--art img { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); }
@media (max-width: 900px) { .hero__title--art { width: min(100% + 12px, 520px); margin: -4px 0 0 -6px; } }

/* Надпись-логотип с пином из лепестков и переливом по слову «Мидийный» */
.hero__title--logo { position: relative; width: clamp(280px, 30vw, 430px); margin: 0 0 0 -8px; }
.hero__title--logo .shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--src) center / 100% 100% no-repeat; mask: var(--src) center / 100% 100% no-repeat;
  -webkit-mask-mode: luminance; mask-mode: luminance;
  clip-path: inset(60% 6% 10% 6%);
  background: linear-gradient(105deg, transparent 38%, rgba(255,246,214,.0) 42%, rgba(255,246,214,.95) 50%, rgba(255,246,214,0) 58%, transparent 62%) 0 0 / 300% 100% no-repeat;
  mix-blend-mode: screen; animation: shine 4.8s ease-in-out infinite;
}
@keyframes shine { 0% { background-position: 120% 0; } 55%, 100% { background-position: -40% 0; } }
@media (max-width: 900px) {
  .hero__title--logo { width: min(70vw, 300px); margin: 0 auto; }
  /* На телефоне маска маленькая, над логотипом, чтобы кнопки помещались на первом экране */
  .hero .hero__mask { width: 116px; margin: 0 auto -6px; }
  .hero .hero__title--logo { width: min(78vw, 330px); }
  .hero .hero__sub { margin-top: 12px; }
  .hero .hero__cta { margin-top: 18px; gap: 10px; }
  .hero .cta-cartouche { width: min(300px, 82vw); font-size: 15px; }
  .hero .hero__inner { padding-top: clamp(84px, 13svh, 120px); }
  main .hero { align-items: flex-start; }

}
@media (prefers-reduced-motion: reduce) { .hero__title--logo .shine { display: none; } }

/* ---------- Кнопки первого экрана: картуш (вариант 1) и двойная нить (вариант 11) ---------- */
.hero__cta { align-items: center; gap: 22px; }
.cta-cartouche {
  position: relative; display: inline-grid; place-items: center; width: 340px; aspect-ratio: 1200 / 320; margin-left: -14px;
  text-decoration: none; color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .02em; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.5); transition: transform .45s var(--ease), filter .45s;
}
.cta-cartouche img { grid-area: 1 / 1; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 12px 26px rgba(0,0,0,.6)) drop-shadow(0 0 18px rgba(220,55,60,.25)); }
.cta-cartouche span { grid-area: 1 / 1; position: relative; }
.cta-cartouche:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.12); }
.cta-cartouche:active { transform: scale(.98); }
.cta-cartouche:focus-visible { outline-offset: -6px; border-radius: 14px; }
.cta-hair {
  position: relative; display: inline-flex; align-items: center; min-height: 54px; padding: 0 36px; border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi);
  border: 1px solid rgba(212,175,106,.8); background: rgba(7,5,6,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  isolation: isolate; overflow: hidden; transition: color .35s, letter-spacing .5s var(--ease);
}
.cta-hair::before { content: ""; position: absolute; inset: 3px; border-radius: inherit; border: 1px solid rgba(212,175,106,.3); transition: border-color .4s, inset .4s var(--ease); }
.cta-hair::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 50% 50%, rgba(212,175,106,.28), transparent 70%); opacity: 0; transform: scaleX(.3); transition: opacity .5s, transform .6s var(--ease); }
.cta-hair:hover { letter-spacing: .28em; color: #fff; }
.cta-hair:hover::before { inset: 5px; border-color: rgba(242,220,166,.7); }
.cta-hair:hover::after { opacity: 1; transform: scaleX(1); }
.cta-hair i { position: absolute; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--gold); transform: rotate(45deg); }
.cta-hair i:first-child { left: 13px; } .cta-hair i:last-child { right: 13px; }
@media (max-width: 900px) {
  .hero__cta { flex-direction: column; align-items: stretch; gap: 14px; }
  .cta-cartouche { width: min(380px, 100% + 24px); margin: 0 -12px; justify-self: center; align-self: center; font-size: 16px; }
  .cta-hair { justify-content: center; min-height: 54px; }
}


/* ---------- Свеча у программы ---------- */
.candle-glow {
  position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0;
  background:
    radial-gradient(38vw 58vh at calc(100% - 90px) 22%, rgba(255,178,82,.30), rgba(255,130,50,.12) 42%, transparent 72%),
    radial-gradient(14vw 18vh at calc(100% - 90px) 16%, rgba(255,220,150,.22), transparent 70%);
  mix-blend-mode: screen; transition: opacity 1.4s var(--ease);
}
.candle {
  --ch: min(64vh, 560px);
  position: fixed; z-index: 31; right: clamp(0px, 1.2vw, 22px); top: 16vh; width: calc(var(--ch) * .29); pointer-events: none;
  transform: translateX(170%); opacity: 1; filter: none;
  transition: transform 1.8s var(--ease), opacity 1.2s ease, filter 1.2s ease;
}
.candle-on .candle { transform: translateX(0); }
.candle-on .candle-glow { opacity: 1; animation: glowFlick 2.6s ease-in-out infinite; }
.candle-gone .candle { transform: translateX(0) translateY(-30px) scale(.96); opacity: 0; filter: blur(12px); transition-duration: 1.6s, 1.6s, 1.6s; }
.candle-gone .candle-glow { opacity: 0; animation: none; }
@keyframes glowFlick { 0%, 100% { opacity: 1; } 18% { opacity: .82; } 22% { opacity: .95; } 47% { opacity: .78; } 53% { opacity: 1; } 76% { opacity: .88; } }

/* Картинка 709×2443: фитиль по центру у самого верха, воск ~4-32% высоты */
.candle__sway { position: relative; transform-origin: 50% 100%; animation: candleSway 7s ease-in-out infinite; }
@keyframes candleSway { 50% { transform: rotate(-1deg); } }
.candle__img { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.65)) drop-shadow(0 0 1px rgba(255,200,120,.3)); }
.candle__flame { --lean: 0deg; position: absolute; left: 49.4%; top: calc(var(--ch) * .014 - 60px); width: 32px; height: 64px; margin-left: -16px; transform: skewX(var(--lean)); transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.candle__flame::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 45% 45% / 64% 64% 36% 36%;
  background: radial-gradient(55% 42% at 50% 74%, #fff 0%, #fff1b8 22%, #ffc35a 48%, #ff7a26 72%, rgba(220,55,60,0) 100%);
  filter: blur(.5px); transform-origin: 50% 92%; animation: flick 1.5s ease-in-out infinite; }
.candle__flame i { position: absolute; left: 50%; bottom: 5px; width: 10px; height: 20px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 50% 70%, rgba(80,120,255,.55), transparent 70%); }
.candle__flame::after { content: ""; position: absolute; left: 50%; top: 40%; width: 280px; height: 280px; margin: -140px 0 0 -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,180,80,.34), rgba(255,140,60,.09) 45%, transparent 66%); animation: halo 2.2s ease-in-out infinite; }
.candle__drop { position: absolute; left: 41%; top: calc(var(--ch) * .045); width: 8px; height: 10px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: radial-gradient(circle at 40% 35%, #fffdf6, #eedcbc); box-shadow: 0 0 6px rgba(255,200,120,.6); opacity: 0; animation: drip 7s ease-in infinite; }
.candle__drop--late { left: 55%; animation-delay: 3.6s; animation-duration: 8.5s; }
@keyframes drip {
  0%, 8% { transform: translateY(0) scale(.4); opacity: 0; }
  14% { transform: translateY(0) scale(1); opacity: 1; }
  62% { transform: translateY(calc(var(--ch) * .24)) scale(1, 1.15); opacity: 1; }
  70% { transform: translateY(calc(var(--ch) * .262)) scale(1.15, .75); opacity: .85; }
  100% { transform: translateY(calc(var(--ch) * .265)) scale(1.3, .45); opacity: 0; }
}
.candle__smoke { position: absolute; left: 49.4%; top: -30px; width: 0; height: 0; opacity: 0; transition: opacity .6s; }
.candle-gone .candle__smoke { opacity: 1; }
.candle__smoke i { position: absolute; left: -10px; width: 20px; height: 60px; border-radius: 50%; background: radial-gradient(ellipse, rgba(220,210,200,.35), transparent 70%); filter: blur(4px); animation: smoke 2.4s ease-out infinite; }
.candle__smoke i:nth-child(2) { animation-delay: .6s; } .candle__smoke i:nth-child(3) { animation-delay: 1.2s; }
@keyframes smoke { from { transform: translateY(0) scale(.6); opacity: .9; } to { transform: translateY(-90px) translateX(14px) scale(1.6); opacity: 0; } }

/* Тёплый отсвет на карточках, пока горит свеча */
.ev { transition: box-shadow 1.2s ease; }
.candle-on:not(.candle-gone) .ev { box-shadow: 0 -30px 80px -40px rgba(0,0,0,.9), 30px 0 80px -30px rgba(255,160,70,.22), inset -1px 0 0 rgba(255,190,110,.25); }

@media (max-width: 900px) {
  .candle { --ch: 240px; right: -32px; top: auto; bottom: 84px; transform: translateX(170%); }
  .candle-on .candle { transform: translateX(0); }
  .candle-gone .candle { transform: translateY(-20px) scale(.96); }
  .candle__flame { transform: skewX(var(--lean)) scale(.7); }
  .candle-glow { background: radial-gradient(70vw 50vh at 100% 70%, rgba(255,178,82,.26), rgba(255,130,50,.1) 45%, transparent 75%); }
}
@media (prefers-reduced-motion: reduce) {
  .candle, .candle-glow { transition: opacity .01ms; }
  .candle__drop, .candle__smoke { display: none; }
}

/* ---------- Отсчёт: «Афиша» ---------- */
.count { padding: 80px 0 72px; }
.poster { position: relative; max-width: 1060px; margin: 0 auto; padding: 56px 40px 44px; text-align: center;
  border: 1px solid rgba(212,175,106,.75); outline: 1px solid rgba(212,175,106,.35); outline-offset: 7px; }
.poster::before, .poster::after { content: "\2726"; position: absolute; left: 50%; transform: translateX(-50%); padding: 0 16px; background: var(--bg); color: var(--gold); font-size: 18px; line-height: 1; }
.poster::before { top: -10px; } .poster::after { bottom: -10px; }
.poster .cn { position: absolute; width: 34px; height: 34px; border: 1px solid var(--gold); }
.poster .cn:nth-of-type(1) { left: 12px; top: 12px; border-right: 0; border-bottom: 0; }
.poster .cn:nth-of-type(2) { right: 12px; top: 12px; border-left: 0; border-bottom: 0; }
.poster .cn:nth-of-type(3) { left: 12px; bottom: 12px; border-right: 0; border-top: 0; }
.poster .cn:nth-of-type(4) { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
.poster__kicker { margin: 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 15px; letter-spacing: .5em; text-transform: uppercase; color: var(--gold-hi); }
.poster__row { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; }
.poster__row > div { display: grid; justify-items: center; overflow: hidden; }
.poster__row > div + div { border-left: 1px solid rgba(212,175,106,.3); }
.p6 { display: inline-block; font-family: "Playfair Display", serif; font-weight: 900; font-size: clamp(64px, 10vw, 150px); line-height: 1.02; color: transparent; -webkit-text-stroke: 1.5px var(--gold); text-shadow: 6px 6px 0 rgba(220,55,60,.55); font-variant-numeric: lining-nums tabular-nums; }
.poster__row small { margin-top: 6px; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 14px; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); }
.poster__foot { margin: 26px 0 0; font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500; font-size: 20px; color: var(--gold-hi); font-variant-numeric: lining-nums; }

/* ---------- Программа ---------- */
/* Холст эффектов (дым, искры) лежит под карточками */
.program { position: relative; isolation: isolate; }
.program > .wrap { position: relative; z-index: 1; }
.program .ev { z-index: 1; }
.program { padding: 120px 0 40px; }
.program .h2 { margin-bottom: 56px; max-width: 12ch; }
.stack { display: grid; gap: 28px; }
.ev {
  position: sticky; top: 100px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(640px, calc(100dvh - 130px));
  border-radius: var(--r-card); overflow: hidden; background: var(--bg-3); border: 1px solid var(--line);
  box-shadow: 0 -30px 80px -40px rgba(0,0,0,.9);
  transform-origin: 50% 0;
}
.ev::before { content: ""; position: absolute; inset: 0; z-index: 3; background: #050304; opacity: var(--dim, 0); pointer-events: none; border-radius: inherit; }
.ev:nth-child(2) { top: 116px; }
.ev:nth-child(3) { top: 132px; }
.ev__media { position: relative; overflow: hidden; }
.ev__media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.ev__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--bg-3)); }
.ev__body { display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 52px); gap: 18px; }
.ev__date { display: flex; align-items: center; gap: 16px; }
.ev__date b { font-weight: 800; font-size: 72px; line-height: .9; letter-spacing: -.04em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ev__date span { font-size: 14px; line-height: 1.35; color: var(--muted); text-transform: lowercase; }
.ev__date--art img { display: block; width: auto; height: clamp(70px, 7vw, 96px); margin: -6px 0 -4px -4px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.ev__title { margin: 0; font-weight: 800; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.01em; }
.ev__lead { margin: 0; color: #d8d0ca; max-width: 52ch; }
.ev__time { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.ev__time li { display: grid; grid-template-columns: 76px 1fr; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ev__time time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold-hi); }
.ev__place { margin-top: auto; display: grid; gap: 22px; }
.ev__place p { margin: 0; color: var(--muted); font-size: 15px; }
.ev__place b { color: var(--text); font-size: 17px; }
.ev__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ev--gala { background: linear-gradient(135deg, #2a0b0e 0%, var(--bg-3) 60%); }
.ev--gala .ev__media::after { background: linear-gradient(90deg, transparent 55%, #1f0b0d); }




/* ---------- Деловая программа ---------- */
.agenda { padding: 120px 0; }
.agenda__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.agenda__head { position: sticky; top: 110px; }
.agenda__note { margin: 20px 0 32px; color: var(--muted); max-width: 36ch; }
.tabs { position: relative; display: inline-flex; padding: 6px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); }
.tab { position: relative; z-index: 1; border: 0; background: none; padding: 12px 22px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--muted); transition: color .3s; display: grid; line-height: 1.2; text-align: left; }
.tab small { font-weight: 500; font-size: 12px; opacity: .8; }
.tab.is-active { color: #160e06; }
.tabs__ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; border-radius: 999px; background: var(--gold-grad); transition: transform .5s var(--ease), width .5s var(--ease); }
.talks { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.talks li { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 22px 8px; border-bottom: 1px solid var(--line); transition: background-color .3s, padding .4s var(--ease); border-radius: 14px; }
.talks li:hover { background: rgba(255,255,255,.03); padding-left: 18px; }
.talks time { font-weight: 700; color: var(--gold-hi); font-variant-numeric: tabular-nums; padding-top: 2px; }
.talks b { display: block; font-size: 19px; font-weight: 700; line-height: 1.3; }
.talks span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.talks__break b { color: var(--muted); font-weight: 500; font-style: italic; }
.talks[hidden] { display: none; }

/* ---------- Бал ---------- */
.ball { position: relative; min-height: 110dvh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 140px 0; }
.ball__media { position: absolute; inset: 0; z-index: -2; }
.ball__media img { position: absolute; right: 0; top: -15%; height: 130%; width: min(62%, 900px); object-fit: cover; object-position: 50% 30%; }
.ball::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, rgba(7,5,6,.92) 38%, rgba(7,5,6,.35) 70%, rgba(7,5,6,.6) 100%), linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.ball__inner { max-width: var(--max); }
.ball__title { margin: 0; max-width: 11ch; font-weight: 800; font-size: clamp(42px, 6.4vw, 96px); line-height: 1; letter-spacing: -.025em; }
.ball__quote { margin: 36px 0 0; padding: 0; max-width: 46ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: #e6ded8; }
.ball__quote .w { opacity: .18; transition: opacity .2s; }
.dress {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: inline-grid; gap: 6px; margin-top: 44px; padding: 26px 34px 24px; border-radius: var(--r-card);
  background: linear-gradient(135deg, rgba(212,175,106,.16), rgba(212,175,106,.03)); border: 1px solid rgba(212,175,106,.55);
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .4s var(--ease);
  box-shadow: inset 0 1px 0 rgba(242,220,166,.25), 0 30px 60px -30px rgba(0,0,0,.8);
}
.dress__label { font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.dress__code { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -.01em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dress__palette { display: flex; gap: 8px; margin-top: 8px; }
.dress__palette i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 1px solid rgba(255,255,255,.25); }

/* ---------- Образы гостей ---------- */
.looks { padding: 120px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.looks__head { display: grid; gap: 22px; justify-items: start; margin-bottom: 40px; }
.looks__text { margin: 0; color: var(--muted); max-width: 58ch; }
.seg { position: relative; display: inline-flex; padding: 6px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); }
.seg__btn { position: relative; z-index: 1; touch-action: manipulation; -webkit-tap-highlight-color: transparent; border: 0; background: none; padding: 12px 26px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; transition: color .3s; }
.seg__btn.is-active { color: #fff; }
.seg__ink { pointer-events: none; position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 999px; background: var(--red); transition: transform .5s var(--ease), width .5s var(--ease); }

/* ---------- Проживание ---------- */
.stay { padding: 120px 0; }
.stay__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.stay__text { margin: 24px 0 32px; color: #d8d0ca; max-width: 40ch; font-size: 19px; }
.stay__dates { display: flex; align-items: center; gap: 22px; margin-bottom: 36px; }
.stay__dates b { display: block; font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; }
.stay__dates span { color: var(--muted); font-size: 14px; }
.stay__dates i { flex: 1; max-width: 140px; height: 1px; background: var(--gold-grad); position: relative; }
.stay__dates i::after { content: ""; position: absolute; right: 0; top: -4px; width: 9px; height: 9px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); transform: rotate(45deg); }
.promo { position: relative; padding-top: 150px; }
/* Конверт со скидкой */
.env { --open: 0; position: relative; width: 100%; max-width: 480px; aspect-ratio: 1.5; margin: 0 auto; }
.env__back, .env__front, .env__flap { position: absolute; inset: 0; border-radius: 14px; }
.env__back { z-index: 1; background: linear-gradient(160deg, #5c1014, #2c0709 70%); box-shadow: 0 30px 60px -20px rgba(0,0,0,.85); }
.env__front { z-index: 3; border-radius: 0 0 14px 14px;
  /* Передняя часть с вырезом — SVG, а не clip-path: в Chrome обрезка пропадала, пока карточка двигалась */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='.55' y2='1'%3E%3Cstop offset='0' stop-color='%237a1419'/%3E%3Cstop offset='.6' stop-color='%234d0c10'/%3E%3Cstop offset='1' stop-color='%23330709'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0 L150 132 L300 0 V200 H0 Z' fill='url(%23g)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.env__front::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to top right, transparent 49.6%, rgba(242,220,166,.35) 50%, transparent 50.4%) left bottom / 50% 34% no-repeat,
  linear-gradient(to top left, transparent 49.6%, rgba(242,220,166,.35) 50%, transparent 50.4%) right bottom / 50% 34% no-repeat; }
.env__flap { z-index: 4; clip-path: polygon(0 0, 100% 0, 50% 64%); transform-origin: 50% 0; background: linear-gradient(180deg, #8a171c, #5c1014);
  transform: perspective(1400px) rotateX(calc(var(--open) * 178deg)); transition: transform 1s cubic-bezier(.6,.05,.3,1), z-index 0s .6s; backface-visibility: visible; }
.env__flap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 49.5%, rgba(242,220,166,.4) 50%, transparent 50.5%) left / 50% 64% no-repeat, linear-gradient(to bottom left, transparent 49.5%, rgba(242,220,166,.4) 50%, transparent 50.5%) right / 50% 64% no-repeat; }
.env.is-open .env__flap { z-index: 0; }
.env__card { position: absolute; z-index: 2; left: 6%; right: 6%; top: 6%; height: 88%; padding: 22px 26px; border-radius: 10px; text-align: center;
  display: grid; align-content: center; justify-items: center; gap: 6px; color: #2b1a0a;
  background: linear-gradient(135deg, #f6ead0, #efdcb2 45%, #f8eed8 60%, #e6cf9e);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transform: translateY(calc(var(--open) * -58%)); transition: transform 1.1s .35s cubic-bezier(.2,.8,.2,1); }
.env__card::before { content: ""; position: absolute; inset: 8px; border: 1px solid #a9843f; outline: 1px solid rgba(169,132,63,.45); outline-offset: -5px; border-radius: 6px; pointer-events: none; }
.env__card .promo__pct { font-family: "Playfair Display", serif; font-weight: 900; font-size: clamp(56px, 7vw, 84px); line-height: .95; color: #7d0d12; background: none; -webkit-text-fill-color: currentColor; }
.env__card .promo__title { margin: 0 0 8px; font-weight: 700; font-size: 16px; color: #4a2c10; }
.promo__code { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.promo__value { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.promo[data-state="soon"] .promo__value { letter-spacing: .02em; text-transform: none; font-weight: 600; }
.promo__copy { padding: 0 18px; border-radius: 999px; border: 0; font-weight: 700; cursor: pointer; }
.env__card .promo__value { min-height: 40px; padding: 0 18px; background: rgba(125,13,18,.08); border-color: rgba(125,13,18,.35); color: #7d0d12; font-size: 14px; }
.promo[data-state="soon"] .env__card .promo__value { color: #6b4a1e; }
.env__card .promo__copy { min-height: 40px; background: #7d0d12; color: #fff; }
.env__card .promo__hint { margin: 6px 0 0; font-size: 12.5px; color: #6b4a1e; max-width: 34ch; }
.env__seal { position: absolute; z-index: 5; left: 50%; top: 64%; width: 74px; height: 74px; margin: -37px 0 0 -37px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ef5a5e, #b0262b 55%, #6d1013);
  box-shadow: 0 8px 22px rgba(0,0,0,.55), inset 0 -5px 10px rgba(0,0,0,.35), 0 0 0 3px rgba(242,220,166,.25);
  transition: transform .8s cubic-bezier(.6,.05,.3,1), opacity .5s; }
.env__seal img { width: 34px; height: 34px; }
.env__seal:hover { transform: scale(1.06); }
.env.is-open .env__seal { transform: translateY(-120%) scale(.6) rotate(-20deg); opacity: 0; pointer-events: none; }
.env.is-open { --open: 1; }
.env:not(.is-open) .env__card { opacity: 0; transition: transform 1.1s .35s cubic-bezier(.2,.8,.2,1), opacity .2s .6s; }
.env.is-open .env__card { opacity: 1; transition: transform 1.1s .6s cubic-bezier(.2,.8,.2,1), opacity .15s .55s; }
.env.is-open .env__card { box-shadow: 0 24px 50px rgba(0,0,0,.45); }
@media (max-width: 900px) { .promo { padding-top: clamp(190px, 52vw, 260px); } .env__card { padding: 16px 18px; } .env__card .promo__hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .env__flap, .env__card, .env__seal { transition: none; } }

/* Телефон: «Деловая программа» на 5 px дальше от кнопок над ней (было 8, стало 13) */
@media (max-width: 900px) { #conf .ev__actions { row-gap: 13px; } }

/* Кнопка в шапке на компьютере: вариант 11, красный, как плавающая кнопка на телефоне */
.nav__cta--hair { position: relative; overflow: hidden; isolation: isolate; padding: 0 30px; border: 1px solid rgba(242,220,166,.75);
  background: linear-gradient(180deg, #d63a3f, #9d1f24); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 10px 30px -12px rgba(220,55,60,.7); transition: letter-spacing .5s var(--ease), transform .35s var(--ease); }
.nav__cta--hair::before { content: ""; position: absolute; inset: 3px; border-radius: inherit; border: 1px solid rgba(212,175,106,.38); pointer-events: none; transition: inset .4s var(--ease), border-color .4s; }
.nav__cta--hair::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 50% 50%, rgba(255,255,255,.2), transparent 70%); opacity: 0; transform: scaleX(.3); transition: opacity .5s, transform .6s var(--ease); }
.nav__cta--hair i { position: absolute; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--gold-hi); transform: rotate(45deg); }
.nav__cta--hair i:first-child { left: 13px; } .nav__cta--hair i:last-child { right: 13px; }
.nav__cta--hair:hover { letter-spacing: .26em; }
.nav__cta--hair:hover::before { inset: 4px; border-color: rgba(242,220,166,.7); }
.nav__cta--hair:hover::after { opacity: 1; transform: scaleX(1); }

/* Каллиграфические слова в заголовках (как цифры даты) */
.h2 .hw, .ball__title .hw { display: inline-block; height: 1.32em; width: auto; vertical-align: -.36em; margin: 0 .04em; filter: drop-shadow(0 4px 12px rgba(0,0,0,.45)); }
.picks--food .pick span { align-content: center; justify-items: center; text-align: center; min-height: 54px; }

/* Кнопка формы «Отправить заявку»: вариант 11, как в шапке */
.btn--hair { position: relative; overflow: hidden; isolation: isolate; border: 1px solid rgba(242,220,166,.75);
  background: linear-gradient(180deg, #d63a3f, #9d1f24); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  box-shadow: 0 12px 34px -12px rgba(220,55,60,.7); transition: letter-spacing .5s var(--ease), transform .35s var(--ease), filter .3s; }
.btn--hair::before { content: ""; position: absolute; inset: 4px; border-radius: inherit; border: 1px solid rgba(212,175,106,.38); pointer-events: none; transition: inset .4s var(--ease), border-color .4s; }
.btn--hair::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 50% 50%, rgba(255,255,255,.2), transparent 70%); opacity: 0; transform: scaleX(.3); transition: opacity .5s, transform .6s var(--ease); }
.btn--hair i { position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--gold-hi); transform: rotate(45deg); }
.btn--hair i:first-of-type { left: 18px; } .btn--hair i:last-of-type { right: 18px; }
.btn--hair:hover { letter-spacing: .28em; }
.btn--hair:hover::before { inset: 5px; border-color: rgba(242,220,166,.7); }
.btn--hair:hover::after { opacity: 1; transform: scaleX(1); }

/* Телефон: вкладки деловой программы и кружки дресс-кода по центру */
@media (max-width: 900px) {
  .tab { justify-items: center; text-align: center; }
  .dress { justify-items: center; text-align: center; }
  .dress__palette { justify-content: center; }
}

/* Плавающая кнопка на телефоне: вариант 11, красный */
@media (max-width: 900px) {
  .dock { overflow: hidden; isolation: isolate; border: 1px solid rgba(242,220,166,.75);
    background: linear-gradient(180deg, #d63a3f, #9d1f24); color: #fff;
    font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    box-shadow: 0 14px 40px -10px rgba(220,55,60,.75), 0 0 0 1px rgba(0,0,0,.35); }
  .dock::before { content: ""; position: absolute; inset: 4px; border-radius: inherit; border: 1px solid rgba(212,175,106,.38); pointer-events: none; }
  .dock i { position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--gold-hi); transform: rotate(45deg); }
  .dock i:first-child { left: 16px; } .dock i:last-child { right: 16px; }
  .dock:active { filter: brightness(1.1); }
}

/* ---------- Кнопки «Маршрут» (вариант 11, красный) и «В календарь» (вариант 4, тёмный) ---------- */
.chip.chip--route { position: relative; gap: 0; padding: 0 26px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #d63a3f, #9d1f24); color: #fff; border: 1px solid rgba(242,220,166,.75);
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; transition: letter-spacing .5s var(--ease), color .3s; }
.chip--route::before { content: ""; position: absolute; inset: 3px; border-radius: inherit; border: 1px solid rgba(212,175,106,.35); transition: inset .4s var(--ease), border-color .4s; }
.chip--route::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 50% 50%, rgba(255,255,255,.2), transparent 70%); opacity: 0; transform: scaleX(.3); transition: opacity .5s, transform .6s var(--ease); }
.chip--route i { position: absolute; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--gold-hi); transform: rotate(45deg); }
.chip--route i:first-child { left: 11px; } .chip--route i:last-child { right: 11px; }
.chip.chip--route:hover { color: #fff; letter-spacing: .24em; border-color: rgba(242,220,166,.95); }
.chip--route:hover::before { inset: 4px; border-color: rgba(242,220,166,.7); }
.chip--route:hover::after { opacity: 1; transform: scaleX(1); }
.chip.chip--cal { position: relative; overflow: hidden; isolation: isolate; border: 0; border-radius: 999px; padding: 0 22px;
  background: rgba(7,5,6,.5); color: var(--gold-hi); font-weight: 800; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(212,175,106,.75), 0 10px 30px -14px rgba(0,0,0,.8); }
.chip--cal::before { content: ""; position: absolute; inset: 4px; border-radius: inherit; border: 1px solid rgba(212,175,106,.35); z-index: -1; }
.chip--cal::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,240,200,.35), transparent); transform: skewX(-20deg); transition: left .8s var(--ease); }
.chip.chip--cal:hover { color: #fff; }
.chip--cal:hover::after { left: 130%; }

/* ---------- Заявка ---------- */
.apply { position: relative; padding: 130px 0; overflow: hidden; isolation: isolate; background: radial-gradient(90% 60% at 0% 0%, rgba(220,55,60,.18), transparent 60%), var(--bg-2); border-top: 1px solid var(--line); }
.apply__pattern { position: absolute; inset: 0; z-index: -1; opacity: .09; background: url("assets/img/pattern-lettering.png") 0 0 / 520px auto repeat; mask-image: linear-gradient(180deg, #000, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); }
.apply__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.apply__intro { position: sticky; top: 110px; }
.apply__intro p { color: #d8d0ca; max-width: 40ch; margin: 24px 0 32px; }
.apply__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.apply__list li { display: flex; gap: 16px; align-items: baseline; font-weight: 600; }
.apply__list b { color: var(--gold-hi); font-variant-numeric: tabular-nums; }

.form { padding: clamp(24px, 3vw, 44px); border-radius: var(--r-card); background: rgba(23, 16, 18, .86); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; gap: 22px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label, .picks legend, .stepper > span { font-size: 14px; font-weight: 600; color: #e2dad4; }
.field label small { color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: var(--r-field);
  background: #0c0809; border: 1px solid rgba(244,239,232,.2); color: var(--text); font: inherit; font-size: 16px;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #8f8783; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,106,.18); }
.field.is-bad input { border-color: #ff6b6f; }
.field__err { margin: 0; min-height: 0; font-size: 13px; color: #ff8a8d; }
.field__err:empty { display: none; }

.picks { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.picks legend { margin-bottom: 10px; padding: 0; }
.picks .field__err { grid-column: 1 / -1; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: grid; gap: 4px; height: 100%; padding: 16px; border-radius: 18px; border: 1px solid rgba(244,239,232,.2); background: #0c0809; transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.pick b { font-weight: 700; }
.pick small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.pick input:checked + span { border-color: var(--gold); background: linear-gradient(135deg, rgba(212,175,106,.16), rgba(212,175,106,.04)); }
.pick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.pick:active span { transform: scale(.98); }

.form__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.stepper { display: flex; align-items: center; gap: 16px; }
.stepper__ctrl { display: inline-flex; align-items: center; border: 1px solid rgba(244,239,232,.2); border-radius: 999px; background: #0c0809; }
.stepper__ctrl button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; border-radius: 999px; }
.stepper__ctrl button:hover { color: var(--gold-hi); }
.stepper__ctrl output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 15px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { position: relative; width: 52px; height: 30px; border-radius: 999px; background: #2a2224; border: 1px solid rgba(244,239,232,.2); transition: background-color .3s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform .4s var(--ease); }
.switch input:checked + .switch__ui { background: var(--red); }
.switch input:checked + .switch__ui::after { transform: translateX(22px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--gold); outline-offset: 3px; }

.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #d0c8c2; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.form__status { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.form__status:empty { display: none; }
.form__status.is-error { color: #ff8a8d; }

.thanks { display: grid; justify-items: center; text-align: center; gap: 16px; padding: 56px 32px; border-radius: var(--r-card); border: 1px solid rgba(212,175,106,.45); background: linear-gradient(160deg, rgba(212,175,106,.12), rgba(23,16,18,.9)); }
.thanks[hidden] { display: none; }
.thanks img { width: 180px; height: auto; animation: float 6s ease-in-out infinite; }
.thanks h3 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; }
.thanks p { margin: 0 0 12px; color: #d8d0ca; max-width: 40ch; }

/* ---------- Подвал ---------- */
.foot { padding: 80px 0 110px; border-top: 1px solid var(--line); }
.foot__inner { display: grid; grid-template-columns: auto 1fr 1fr; gap: 40px 64px; align-items: start; }
.foot__logo { width: 150px; height: auto; }
.foot__nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 40px; }
.foot__nav a { text-decoration: none; color: var(--muted); transition: color .25s; }
.foot__nav a:hover { color: var(--text); }
.foot__contacts p { margin: 0 0 12px; color: var(--muted); font-size: 15px; max-width: 36ch; }
.foot__contacts a { color: var(--gold-hi); font-weight: 600; }
.foot__copy { grid-column: 1 / -1; margin: 0; padding-top: 28px; border-top: 1px solid var(--line); color: #8c8c8c; font-size: 13px; }

/* ---------- Плавающая кнопка (телефон) ---------- */
.dock { display: none; }

/* ---------- Конфетти ---------- */
.petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: calc(var(--z-nav) + 2); }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: var(--z-fx); }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav { height: 64px; }
  .nav__logo img { width: auto; height: 28px; }
  .hero { align-items: flex-end; }
  .hero__bg img { object-position: 70% 50%; }
  .hero__shade { background: linear-gradient(180deg, rgba(7,5,6,.55) 0%, rgba(7,5,6,.2) 30%, rgba(7,5,6,.82) 62%, var(--bg) 100%); }
  .hero__inner { grid-template-columns: 1fr; padding-top: 88px; padding-bottom: 40px; gap: 0; }
  .hero__mask { position: relative; right: auto; top: auto; margin: 0 auto 4px; order: -1; justify-self: center; width: min(300px, 70vw); }
  .hero__title { font-size: clamp(46px, 13vw, 84px); }
  .hero__sub { margin-top: 20px; }
  .hero__cta { margin-top: 26px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .count { padding: 56px 0 48px; }
  .poster { padding: 44px 14px 34px; }
  .poster__row { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .poster__row > div:nth-child(3) { border-left: 0; }
  .p6 { font-size: 22vw; }
  .poster__row small { letter-spacing: .2em; font-size: 11px; }
  .poster__kicker { letter-spacing: .32em; }
  .poster__foot { font-size: 18px; }
  .program { padding: 88px 0 24px; }
  .program .h2 { margin-bottom: 36px; }
  .ev, .ev:nth-child(2), .ev:nth-child(3) { position: relative; top: 0; grid-template-columns: 1fr; min-height: 0; }
  .ev__media { aspect-ratio: 16 / 10; }
  .ev__media::after { background: linear-gradient(180deg, transparent 55%, var(--bg-3)); }
  .ev--gala .ev__media::after { background: linear-gradient(180deg, transparent 55%, #230b0e); }
  .ev__body { padding: 24px 22px 28px; }
  .ev__date b { font-size: 56px; }
  .ev__date--art img { height: 72px; margin-left: 0; }
  .agenda { padding: 88px 0; }
  .agenda__inner { grid-template-columns: 1fr; gap: 28px; }
  .agenda__head { position: static; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 12px 14px; }
  .talks li { grid-template-columns: 58px 1fr; gap: 14px; padding: 18px 4px; }
  .talks b { font-size: 17px; }
  .ball { min-height: 0; padding: 0 0 88px; flex-direction: column; align-items: stretch; }
  .ball__media { position: relative; height: 70vh; max-height: 560px; }
  .ball__media img { width: 100%; top: -10%; height: 120%; }
  .ball::before { background: linear-gradient(180deg, transparent 30%, var(--bg) 62%), linear-gradient(180deg, var(--bg) 0%, transparent 12%); }
  .ball__inner { margin-top: -120px; }
  .dress { display: grid; padding: 22px 24px; }
  .looks { padding: 88px 0; }
  .stay { padding: 88px 0; }
  .stay__inner { grid-template-columns: 1fr; gap: 48px; }
  .promo__card { padding: 36px 26px 30px; }
  .promo__seal { right: 8px; top: -30px; width: 76px; height: 76px; }
  .promo__seal img { width: 36px; height: 36px; }
  .apply { padding: 88px 0 100px; }
  .apply__inner { grid-template-columns: 1fr; gap: 36px; }
  .apply__intro { position: static; }
  .form__grid { grid-template-columns: 1fr; }
  .picks { grid-template-columns: 1fr; }
  .foot { padding: 56px 0 120px; }
  .foot__inner { grid-template-columns: 1fr; gap: 32px; }
  .dock {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: var(--z-dock);
    align-items: center; justify-content: center; min-height: 56px; border-radius: 999px; background: var(--red); color: #fff;
    font-weight: 700; text-decoration: none; box-shadow: 0 14px 40px -10px rgba(220,55,60,.8);
    transform: translateY(140%); transition: transform .5s var(--ease);
  }
  .dock.is-on { transform: translateY(0); }
}
@media (max-width: 420px) {
  .seg { width: 100%; }
  .seg__btn { flex: 1; }
}

/* На телефоне коллаж мелкий: даём листать его по горизонтали крупнее */
@media (max-width: 640px) {
}


/* Телефон: выравнивание по центру */
@media (max-width: 900px) {
  .hero__text { text-align: center; display: grid; justify-items: center; }
  .hero__title--art { margin: -4px auto 0; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { align-items: center; width: 100%; }
  .program .h2, .agenda__head, .looks__head, .stay__info, .apply__intro, .ball__inner, .count { text-align: center; }
  .program .h2 { margin-inline: auto; }
  .agenda__note, .looks__text, .stay__text, .apply__intro p, .ball__quote { margin-inline: auto; }
  .looks__head { justify-items: center; }
  .stay__info { display: grid; justify-items: center; }
  .stay__dates { justify-content: center; }
  .apply__list { justify-items: center; }
  .ball__title { margin-inline: auto; }
  .ev__body { text-align: center; align-items: center; }
  .ev__date { justify-content: center; }
  .ev__time { width: 100%; text-align: left; }
  .ev__actions { justify-content: center; }
  .foot__inner { justify-items: center; text-align: center; }
  .foot__nav { justify-content: center; }
  .promo__card { text-align: center; }
  .promo__code { justify-content: center; }
  .promo__hint { margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ball__quote .w { opacity: 1; }
}

/* Питание: два варианта в ряд и на компьютере, и на телефоне */
fieldset.picks.picks--food { grid-template-columns: repeat(2, 1fr); }

/* Шторы: вместо пина белый логотип «Мидийный Бал» в одну строку */
.curtain .curtain__seal { width: clamp(260px, 38vw, 560px); }
.curtain .curtain__seal::before { inset: -60% -18%; }
.curtain .curtain__seal img { filter: drop-shadow(0 6px 20px rgba(0,0,0,.6)); }

/* «Образы гостей»: каллиграфия вплотную, «г» чуть заходит на «ы» */
#looks-title .hw { margin-left: -.42em; position: relative; z-index: 1; }

/* «Два дня, три события» на компьютере в одну строку, надпись вплотную к запятой */
@media (min-width: 901px) {
  .program .h2#program-title { max-width: none; white-space: nowrap; }
  #program-title .hw { margin-left: -.16em; }
}

/* «Подать заявку» на телефоне: каллиграфия вплотную, почти заходит на «ь» */
@media (max-width: 900px) {
  #apply-title .hw { margin-left: -.36em; position: relative; z-index: 1; }
}

/* Искры конференции поверх карточек */
.fx-over { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

/* Первый экран: подсказка «листайте вниз», только на компьютере */
.hero__scroll { display: none; }
@media (min-width: 901px) {
  .hero__scroll {
    position: absolute; left: calc(50% + 28px); top: calc(100dvh - 82px); z-index: 3; transform: translateX(-50%);
    display: grid; justify-items: center; gap: 8px; text-decoration: none;
    color: rgba(242,220,166,.75); font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
    transition: color .3s, opacity .4s;
  }
  .hero__scroll span { padding-left: .26em; }
  .hero__scroll i {
    position: relative; width: 22px; height: 34px; border: 1px solid rgba(212,175,106,.55); border-radius: 12px;
  }
  .hero__scroll i::before {
    content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px;
    background: var(--gold-hi, #f2dca6); animation: heroScrollDot 1.8s var(--ease, ease) infinite;
  }
  .hero__scroll i::after {
    content: ""; position: absolute; left: 50%; bottom: -16px; width: 8px; height: 8px; margin-left: -4px;
    border-right: 1px solid rgba(212,175,106,.8); border-bottom: 1px solid rgba(212,175,106,.8);
    transform: rotate(45deg); animation: heroScrollArrow 1.8s ease-in-out infinite;
  }
  .hero__scroll:hover { color: var(--gold-hi, #f2dca6); }
  .hero__scroll.is-gone { opacity: 0; pointer-events: none; }
}
@keyframes heroScrollDot { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 70% { opacity: 0; transform: translateY(11px); } 100% { opacity: 0; } }
@keyframes heroScrollArrow { 0%, 100% { opacity: .35; transform: translateY(0) rotate(45deg); } 50% { opacity: 1; transform: translateY(5px) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll i::before, .hero__scroll i::after { animation: none; } }

/* «Встреча партнёров 2026» на компьютере по левому краю, как текст под логотипом */
@media (min-width: 901px) {
  .hero__text .eyebrow { position: relative; width: auto; margin-left: 0; text-align: left; padding-left: 0; }
}

/* Гала-ужин платный: первый экран, карточка, форма */
.hero__paid { display: inline-block; line-height: 1.45; margin: 16px 0 0; padding: 8px 16px 8px 12px; border: 1px solid rgba(212,175,106,.45); border-radius: 999px; background: rgba(7,5,6,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 14px; color: #e6ded8; }
.hero__paid b { color: var(--gold-hi); font-weight: 700; }
.hero__paid i { display: inline-block; width: 7px; height: 7px; margin: 0 10px 2px 0; vertical-align: middle; background: var(--gold); transform: rotate(45deg); }
.ev__price { display: grid; gap: 2px; width: fit-content; margin: 0; padding: 9px 14px; border: 1px solid rgba(212,175,106,.4); border-radius: 10px; background: none; max-width: 100%; }
.ev__price b { font-size: 16px; font-weight: 800; color: var(--gold-hi); letter-spacing: -.01em; }
.ev__price span { font-size: 12.5px; color: #d8d0ca; }
.paid-note { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid rgba(212,175,106,.4); border-radius: 14px; background: rgba(212,175,106,.07); font-size: 14px; color: #d8d0ca; }
.paid-note b { color: var(--gold-hi); font-size: 15px; }
fieldset.picks.picks--pay { grid-template-columns: repeat(2, 1fr); }

/* Анкеты гостей */
.guests { display: grid; gap: 12px; }
.guests:empty { display: none; }
.guest { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin: 0; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02); }
.guest legend { padding: 0 6px; margin-left: -6px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 900px) {
  .hero__paid { font-size: 13px; padding: 8px 16px; border-radius: 16px; }
  .ev__price { margin-inline: auto; text-align: center; }
  .guest { grid-template-columns: 1fr; }
}

/* Образы гостей: лента карточек, на каждой вид спереди и сзади */
.looks__rail { position: relative; margin-top: 8px; }
.looks__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 46%); gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.looks__track::-webkit-scrollbar { display: none; }
.look { margin: 0; scroll-snap-align: start; display: grid; gap: 14px; }
.look__img { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid rgba(212,175,106,.35); background: #120c0d; aspect-ratio: 1400 / 1045; }
.look__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.look:hover .look__img img { transform: scale(1.03); }
.look__tag { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(7,5,6,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }
.look__tag--r { left: calc(50% + 12px); }
.look figcaption { display: flex; align-items: baseline; gap: 12px; font-size: 17px; font-weight: 700; color: var(--text); }
.look figcaption i { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--gold); }
.looks__nav { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 18px; }
.looks__arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(212,175,106,.5); background: rgba(7,5,6,.4); color: var(--gold-hi); font-size: 18px; cursor: pointer; touch-action: manipulation; transition: background .3s, border-color .3s; }
.looks__arrow:hover { background: rgba(212,175,106,.14); border-color: var(--gold); }
.looks__count { min-width: 52px; text-align: center; font-size: 14px; color: var(--muted); letter-spacing: .08em; }
.looks__count b { color: var(--gold-hi); }
@media (max-width: 900px) {
  .looks__track { grid-auto-columns: 86%; gap: 12px; }
  .look figcaption { justify-content: center; font-size: 16px; }
  .looks__nav { justify-content: center; }
}
.picks--pay .pick span { align-content: center; justify-items: center; text-align: center; min-height: 54px; }
/* Логотип первого экрана плоский: без тени под картинкой */
.hero .hero__title--logo img { filter: drop-shadow(0 0 10px rgba(0,0,0,.85)) drop-shadow(0 0 28px rgba(0,0,0,.6)); }

@media (min-width: 901px) { .hero .hero__cta { margin-top: 18px; } .hero__paid { margin-top: 12px; } }

/* ===== Типографика под логотип: антиква как «МИДИЙНЫЙ», тонкий курсив как «Бал» ===== */
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond-var-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond-var-cyrillic.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Great Vibes"; src: url("assets/fonts/GreatVibes-latin.woff2") format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Great Vibes"; src: url("assets/fonts/GreatVibes-cyrillic.woff2") format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
:root {
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --gold-flat: linear-gradient(180deg, #f7e0b6 0%, #e7bd86 55%, #c98f55 100%);
}
.h2, .ball__title, .ev__title, .thanks h3, .stay__dates b, .dress__code, .p6, .env__card .promo__pct, .ev__num, .ev__time time, .ev__price b, .foot__tel, .apply__list b {
  font-family: var(--serif); letter-spacing: 0; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}
.apply__list b { font-weight: 700; font-size: 1.15em; }
.h2 { font-weight: 600; font-size: clamp(42px, 6vw, 84px); line-height: 1.06; }
.ball__title { font-weight: 600; font-size: clamp(46px, 6.8vw, 100px); line-height: 1.04; }
.ev__title { font-weight: 600; font-size: clamp(30px, 2.9vw, 42px); line-height: 1.1; }
.thanks h3 { font-weight: 600; font-size: clamp(34px, 3.8vw, 50px); }
.stay__dates b { font-weight: 600; }
.dress__code { font-weight: 600; background: var(--gold-flat); -webkit-background-clip: text; background-clip: text; }
.ev__time time { font-weight: 700; font-size: 1.15em; }
.ev__price b { font-weight: 700; font-size: 19px; }
/* Акцентные слова — тонкий курсив, плоское золото без объёма */
.sc {
  font-family: var(--script); font-style: normal; font-weight: 400; font-size: 1.24em; line-height: .9; letter-spacing: 0;
  white-space: nowrap; padding: .4em .14em .34em .45em; margin-left: -.41em; margin-right: -.14em;
  background: var(--gold-flat); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* Числа дат — антиква, плоское золото */
.ev__date b.ev__num {
  font-weight: 500; font-size: clamp(96px, 8.4vw, 124px); line-height: .82; letter-spacing: 0; font-variant-numeric: lining-nums;
  background: var(--gold-flat); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Обратный отсчёт и скидка — тем же шрифтом */
.p6 { font-weight: 500; -webkit-text-stroke: 0; text-shadow: none; background: var(--gold-flat); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: lining-nums tabular-nums; }
.env__card .promo__pct { font-weight: 700; }
/* Шапка и заставка: надпись из логотипа */
.nav__logo img { height: 46px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.7)); }
.curtain .curtain__seal { width: min(92vw, clamp(360px, 45vw, 660px)); }
.curtain .curtain__seal img { filter: drop-shadow(0 6px 20px rgba(0,0,0,.7)); }
/* Подвал: контакты Анастасии */
.foot__contacts .foot__who { margin: 0 0 6px; }
.foot__contacts .foot__tel { display: inline-block; font-size: 28px; font-weight: 600; color: var(--gold-hi); text-decoration: none; }
.foot__msg { display: flex; gap: 12px; margin-top: 14px; }
.foot__msg a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(212,175,106,.45); border-radius: 50%; color: var(--gold-hi); transition: background .25s, color .25s; }
.foot__msg a:hover { background: var(--gold-hi); color: #120a0b; }
.foot__msg svg { width: 20px; height: 20px; }
/* Узор из надписи в фоне формы — едва заметный */
.apply__pattern { opacity: .05; }
.nav__logo img { height: 52px; }
@media (max-width: 900px) {
  .nav__logo img { height: 42px; }
  .foot__msg { justify-content: center; }
}

/* Акценты вплотную к основному слову */
#looks-title .sc { margin-left: -.6em; }
#program-title .sc { margin-left: -.53em; }
@media (max-width: 900px) {
  /* Парящую маску над логотипом на телефоне не показываем */
  .hero .hero__mask { display: none; }
  #program-title .sc { margin-left: -.23em; }
}
/* На телефоне заголовки разделов крупнее */
@media (max-width: 900px) {
  #program-title, #looks-title, #apply-title, #stay-title { font-size: clamp(50px, 14.5vw, 64px); line-height: 1.02; }
}

/* Переключатель «Для неё / Для него» в стиле красных кнопок */
.seg__btn { font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: 13px 30px; }
.seg__ink { overflow: hidden; background: linear-gradient(180deg, #d63a3f, #9d1f24); border: 1px solid rgba(242,220,166,.75);
  box-shadow: 0 10px 30px -10px rgba(220,55,60,.7); }
.seg__ink::before { content: ""; position: absolute; inset: 3px; border-radius: inherit; border: 1px solid rgba(212,175,106,.35); }
.seg__ink i { position: absolute; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--gold-hi); transform: rotate(45deg); }
.seg__ink i:first-child { left: 11px; } .seg__ink i:last-child { right: 11px; }

/* «Подать заявку»: акцент ближе к первому слову */
#apply-title .sc { margin-left: -.54em; }
@media (max-width: 900px) {
  .ball__title { font-size: clamp(56px, 16vw, 72px); line-height: 1.02; }
}

/* Кнопка в мобильном меню — как остальные красные кнопки */
.menu .menu__cta { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  margin-top: 18px; min-height: 56px; padding: 0 44px; border-radius: 999px; border: 1px solid rgba(242,220,166,.75);
  background: linear-gradient(180deg, #d63a3f, #9d1f24); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 14px 40px -10px rgba(220,55,60,.75); }
.menu .menu__cta::before { content: ""; position: absolute; inset: 4px; border-radius: inherit; border: 1px solid rgba(212,175,106,.38); pointer-events: none; }
.menu .menu__cta i { position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--gold-hi); transform: rotate(45deg); }
.menu .menu__cta i:first-child { left: 18px; } .menu .menu__cta i:last-child { right: 18px; }
@media (max-width: 900px) {
  /* Надпись на шторах на телефоне меньше */
  .curtain .curtain__seal { width: min(64vw, 260px); }
}
/* Невысокие телефоны: логотип чуть меньше, чтобы кнопки помещались на первом экране */
@media (max-width: 900px) and (max-height: 700px) {
  .hero .hero__title--logo { width: min(66vw, 280px); }
}

/* Фон первого экрана: на телефоне отдельный вертикальный кадр */
.hero__bg picture { display: block; width: 100%; height: 100%; }
@media (max-width: 700px) { .hero__bg img { object-position: 50% 50%; } }

/* «Проживание» целиком золотым курсивом */
#stay-title .sc { margin-left: -.45em; font-size: 1.2em; }

/* Без скриптов (просмотр HTML-файла в Telegram или «Файлах» на iPhone): нет нулей в отсчёте, конверт сразу открыт */
html:not(.js) .poster__row { display: none; }
html:not(.js) .poster__foot { margin-top: 10px; }
html:not(.js) .env { --open: 1; }
html:not(.js) .env__flap { z-index: 0; }
html:not(.js) .env:not(.is-open) .env__card { opacity: 1; box-shadow: 0 24px 50px rgba(0,0,0,.45); }
html:not(.js) .env__seal { display: none; }

/* Промокод: код показываем точно как у отеля, подсказка под конвертом, чтобы её не закрывал клапан */
.env__card .promo__value { text-transform: none; }
.promo > .promo__hint b { font-weight: 700; }
.promo > .promo__hint { margin: 20px auto 0; max-width: 46ch; line-height: 1.5; text-align: center; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) {
  .env__card { padding-top: 12px; }
  .env__card .promo__pct { font-size: 46px; }
  .env__card .promo__title { margin-bottom: 6px; font-size: 14px; }
  .env__card .promo__code { flex-wrap: nowrap; gap: 6px; }
  .env__card .promo__value, .env__card .promo__copy { min-height: 34px; padding: 0 12px; font-size: 13px; }
}
@media (max-width: 360px) {
  .env__card .promo__value, .env__card .promo__copy { padding: 0 9px; font-size: 12px; letter-spacing: 0; }
}
html:not(.js) .promo__copy { display: none; }

/* Примечание про счёт и оферту в анкете */
.field__note { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.field__note a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }

/* Договор оферты */
.foot__doc { margin-top: 16px; }
.doc { display: none; position: fixed; inset: 0; z-index: calc(var(--z-curtain) + 5); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #0b0506; }
.doc:target { display: block; }
.doc__inner { width: min(760px, 100%); margin: 0 auto; padding: 24px 20px 64px; }
.doc__back { position: sticky; top: 16px; z-index: 1; margin-bottom: 28px; background: #0b0506; }
.doc__body { margin: 28px 0 0; color: var(--text); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.doc__body p { margin: 0 0 10px; }
.doc__body h3 { margin: 32px 0 12px; font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.25; text-align: center; color: var(--gold-hi); }
.doc__body .doc__c { text-align: center; font-weight: 600; }
.doc__body .doc__l2 { padding-left: 20px; }
.doc__body p > span { color: var(--gold-hi); font-weight: 600; }
html.doc-open { overflow: hidden; }
