/* ============================================================
   ВЕЧЕРИНОЧКА — «бордо и золото»: бархат, ёлочные огни, диско-шары, блёстки.
   Палитра, шрифты и фоны меняются в блоке :root и в секциях .sec--*.
   ============================================================ */


/* ШРИФТЫ — только два семейства:
   1) Marck Script — «от руки»: заголовки, билет, подписи, цифры (--script)
   2) Graphik      — фирменный шрифт Skillbox из style pack: основной текст, бегущая строка, кнопки, меню, метки (--body и --ui) */
@font-face { font-family: "Marck Script"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/marck-script.ttf") format("truetype"); }
@font-face { font-family: "Graphik"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Graphik-Regular-Web.woff2") format("woff2"); }
@font-face { font-family: "Graphik"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Graphik-Medium-Web.woff2") format("woff2"); }
@font-face { font-family: "Graphik"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Graphik-Semibold-Web.woff2") format("woff2"); }
@font-face { font-family: "Graphik"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Graphik-Bold-Web.woff2") format("woff2"); }

:root {
  --wine-950: #16010a;
  --wine-900: #240208;
  --wine-800: #3a050e;
  --wine-700: #5a0b17;
  --red: #b3122b;
  --ruby: #d92b45;
  --gold-200: #fbe7b0;
  --gold-300: #f4d386;
  --gold: #e6b04f;
  --gold-600: #b9822a;
  --cream: #f8eddb;
  --paper: #fbf4e6;
  --fir-900: #06200f;
  --fir-700: #0e3b22;
  --fir: #1d6a40;
  --night: #0b1530;
  --ink: #240208;

  --script: "Marck Script", "Segoe Script", "Brush Script MT", cursive;
  --body: "Graphik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui: "Graphik", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gold-text: linear-gradient(180deg, #fff3cc 0%, #f1c86b 48%, #b9822a 100%);
  --glass: rgba(255, 238, 215, .09);
  --glass-line: rgba(255, 233, 196, .42);
  --glow: 0 0 22px rgba(244, 196, 98, .45);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .93  0 0 0 0 .85  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); color: var(--cream); background: var(--wine-900);
  line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
/* киноплёночное зерно поверх всего */
body::after { content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; background: var(--grain) 0 0 / 220px 220px; opacity: .1; mix-blend-mode: overlay; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; position: relative; z-index: 3; }
:focus-visible { outline: 2px dashed var(--gold-300); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--wine-900); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 13px/1 var(--ui); text-transform: uppercase; letter-spacing: .12em;
  padding: 17px 28px; border-radius: 999px; text-decoration: none; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--gold {
  background: linear-gradient(180deg, #ffe9ae, #e6b04f 55%, #c28a2f); color: var(--wine-900);
  box-shadow: 0 8px 26px rgba(230, 176, 79, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn--gold:hover { box-shadow: 0 12px 34px rgba(244, 196, 98, .6), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn--ghost, .btn--yellow { background: var(--glass); border-color: var(--glass-line); color: var(--cream); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 238, 215, .18); }
.btn--pink { background: var(--red); color: #fff; border-color: rgba(255, 220, 170, .5); }
.btn--yellow { background: linear-gradient(180deg, #ffe9ae, #e6b04f 55%, #c28a2f); color: var(--wine-900); border: 0; }
.btn--big { font-size: 14px; padding: 20px 34px; }

/* ---------- Чипы (контурные таблетки, как в референсе) ---------- */
.chip {
  display: inline-block; font: 600 13px/1 var(--ui); letter-spacing: .04em; text-decoration: none;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--glass-line); color: var(--cream);
  background: rgba(36, 2, 8, .25); backdrop-filter: blur(6px); white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.chip--link:hover { background: var(--gold); color: var(--wine-900); border-color: var(--gold); transform: translateY(-2px); }

/* ============================================================
   СЕКЦИИ: фон + затемнение
   ============================================================ */
.sec, .hero, .footer { position: relative; isolation: isolate; overflow: hidden; background-color: var(--wine-900); background-size: cover; background-position: center; }
.sec { padding: clamp(80px, 10vw, 140px) 0; }
.sec::before, .hero::before, .footer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.sec--velvet { background-image: url("../assets/bg-velvet.jpg"); }
.sec--velvet::before { background: radial-gradient(ellipse 90% 70% at 50% 40%, rgba(36, 2, 8, .35), rgba(22, 1, 10, .8)); }
.sec--fir { background-image: url("../assets/bg-fir.jpg"); }
.sec--fir::before { background: linear-gradient(180deg, rgba(4, 22, 10, .72), rgba(4, 22, 10, .55) 40%, rgba(4, 22, 10, .8)); }
.sec--disco { background-image: url("../assets/bg-disco.jpg"); }
.sec--disco::before { background: radial-gradient(ellipse 80% 60% at 50% 45%, rgba(22, 1, 10, .45), rgba(22, 1, 10, .85)); }
.sec--night {
  background-image: radial-gradient(ellipse 70% 55% at 85% 0%, rgba(30, 60, 140, .55), transparent 70%), radial-gradient(ellipse 70% 60% at 10% 100%, rgba(179, 18, 43, .5), transparent 70%), linear-gradient(180deg, #0b1530, #1a0610);
}

/* ---------- Заголовки секций ---------- */
.sec__head { margin-bottom: clamp(40px, 5.5vw, 72px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.strip {
  font: 400 clamp(56px, 9.5vw, 132px)/.92 var(--script); letter-spacing: -.01em; color: var(--cream);
  display: flex; flex-direction: column; align-items: flex-start; position: relative; text-shadow: 0 3px 30px rgba(0, 0, 0, .4);
}
.strip::before {
  content: attr(data-n); order: -1; font: 700 12px/1 var(--ui); letter-spacing: .2em; padding: 8px 14px; margin-bottom: 14px;
  border: 1px solid var(--glass-line); border-radius: 999px; color: var(--gold-300); background: rgba(36, 2, 8, .3);
}
.strip span {
  font: 700 clamp(28px, 4.6vw, 62px)/1 var(--ui); text-transform: uppercase; letter-spacing: -.01em;
  margin: .18em 0 0 .85em; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .45));
}
.sec__lead { max-width: 620px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(248, 237, 219, .86); }
.sec__lead em { font-style: normal; color: var(--gold-300); }
.optional {
  font: 400 clamp(20px, 2.3vw, 28px)/1 var(--script); color: var(--gold-300);
  padding: 8px 18px 10px; border: 1px dashed var(--gold); border-radius: 999px; transform: rotate(-1.5deg);
}

/* ---------- Кольца спирали (для блокнотов) ---------- */
.rings {
  position: absolute; left: -16px; top: 18px; bottom: 18px; width: 38px; z-index: 3; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='38' height='26'><rect x='1' y='5' width='36' height='10' rx='5' fill='%23e6b04f' stroke='%232a1004' stroke-width='1.6'/><rect x='3' y='6.5' width='20' height='2.6' rx='1.3' fill='%23fff3c4' opacity='.85'/><circle cx='30' cy='10' r='2.2' fill='%23221'/></svg>") 0 0 / 38px 26px repeat-y;
}

/* ============================================================
   ГИРЛЯНДА (рисуется в JS) и БЛЁСТКИ (canvas)
   ============================================================ */
.garland { position: absolute; top: 0; left: 0; right: 0; height: 84px; z-index: 6; pointer-events: none; }
.garland--edge { height: 64px; opacity: .95; }
.garland svg { width: 100%; height: 100%; overflow: visible; }
.garland .wire { fill: none; stroke: #0b0305; stroke-width: 2.2; }
.garland .cap { fill: #1a1008; }
.garland .bulb { transform-box: fill-box; transform-origin: 50% 0; animation: bulb 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bulb { 0%, 100% { opacity: 1; filter: brightness(1.25) drop-shadow(0 0 7px var(--c)); } 50% { opacity: .55; filter: brightness(.8) drop-shadow(0 0 2px var(--c)); } }
.glitter { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* ============================================================
   ВЕРХНЕЕ МЕНЮ
   ============================================================ */
.topnav {
  position: fixed; inset: 0 0 auto 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px clamp(14px, 3vw, 36px); background: rgba(22, 1, 10, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 233, 196, .18); transform: translateY(-110%); transition: transform .35s ease;
}
.topnav.show { transform: none; }
.topnav__brand { display: flex; align-items: center; gap: 16px; text-decoration: none; white-space: nowrap; }
.topnav__logo { height: 22px; width: auto; }
.topnav__name { font: 400 28px/1 var(--script); color: var(--cream); padding-left: 16px; border-left: 1px solid rgba(255, 233, 196, .35); }
.topnav__name i { font-style: normal; color: var(--gold); margin-left: 8px; font-size: 16px; }
.topnav__links { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.topnav__links::-webkit-scrollbar { display: none; }
.pill { font: 700 12px/1 var(--ui); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; padding: 10px 14px; border-radius: 999px; white-space: nowrap; color: var(--cream); border: 1px solid transparent; transition: .2s; }
.pill:hover { border-color: var(--glass-line); }
.pill.is-active { background: var(--gold); color: var(--wine-900); }

/* ============================================================
   ОБЛОЖКА
   ============================================================ */
.hero {
  --gw: min(clamp(150px, 17vw, 290px), 25vh);
  min-height: 100svh; display: flex; padding: 88px 0 0;
  background-image: url("../assets/bg-velvet.jpg");
}
.hero::before { background: radial-gradient(ellipse 70% 80% at 25% 55%, rgba(22, 1, 10, .15), rgba(22, 1, 10, .72)), linear-gradient(180deg, rgba(22, 1, 10, .55), transparent 25%, transparent 70%, rgba(22, 1, 10, .7)); }
.hero__inner { width: min(1240px, 100% - 40px); margin-inline: auto; position: relative; z-index: 4; flex: 1; display: flex; flex-direction: column; align-items: center; padding-bottom: calc(var(--gw) * .45 + 24px); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.hero__title { display: flex; flex-direction: column; align-items: flex-start; margin: clamp(10px, 1.6vh, 18px) 0 clamp(18px, 3vh, 30px); }
.hero__title .script {
  font: 400 clamp(58px, min(13.5vw, 22vh), 210px)/1.05 var(--script); letter-spacing: -.01em;
  background: linear-gradient(180deg, #fffaf0 0%, #f8e2b0 55%, #e6b04f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 28px rgba(230, 176, 79, .35)) drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}
.hero__title .sans { font: 700 clamp(16px, 2.6vw, 34px)/1 var(--ui); text-transform: uppercase; letter-spacing: .34em; color: var(--cream); margin: clamp(4px, .6vw, 10px) 0 0 clamp(6px, 6vw, 96px); text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }

/* ---------- Билет-приглашение (винтажный кинобилет) ---------- */
.hero__ticket { position: relative; width: min(960px, 100%); --tp: clamp(40px, 6vh, 64px); margin: auto 0; padding-top: var(--tp); display: flex; flex-direction: column; align-items: center; }
.hero__ticket .ticket { width: 100%; }
.ticket {
  --ink: #3a150e; --brick: #9a2216; --paper-1: #f5d994; --paper-2: #e3b562; --rim: #17110c;
  --stub: 208px; --pad: 11px; --gap: 16px; --r: 12px;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--stub); gap: var(--gap); padding: var(--pad);
  background: var(--rim); color: var(--ink); transform: rotate(-1.2deg);
  /* вырезы: «зубчики» по краю, круглые углы и выемки на перфорации */
  -webkit-mask:
    radial-gradient(circle var(--r) at calc(100% - var(--pad) - var(--stub) - var(--gap) / 2) 0, #0000 98%, #000) ,
    radial-gradient(circle var(--r) at calc(100% - var(--pad) - var(--stub) - var(--gap) / 2) 100%, #0000 98%, #000),
    radial-gradient(circle 11px at 0 0, #0000 98%, #000), radial-gradient(circle 11px at 100% 0, #0000 98%, #000),
    radial-gradient(circle 11px at 0 100%, #0000 98%, #000), radial-gradient(circle 11px at 100% 100%, #0000 98%, #000),
    radial-gradient(circle 4px at 0 11px, #0000 98%, #000) 0 0 / 100% 22px repeat-y,
    radial-gradient(circle 4px at 100% 11px, #0000 98%, #000) 0 0 / 100% 22px repeat-y,
    radial-gradient(circle 4px at 11px 0, #0000 98%, #000) 0 0 / 22px 100% repeat-x,
    radial-gradient(circle 4px at 11px 100%, #0000 98%, #000) 0 0 / 22px 100% repeat-x;
  -webkit-mask-composite: source-in;
          mask:
    radial-gradient(circle var(--r) at calc(100% - var(--pad) - var(--stub) - var(--gap) / 2) 0, #0000 98%, #000),
    radial-gradient(circle var(--r) at calc(100% - var(--pad) - var(--stub) - var(--gap) / 2) 100%, #0000 98%, #000),
    radial-gradient(circle 11px at 0 0, #0000 98%, #000), radial-gradient(circle 11px at 100% 0, #0000 98%, #000),
    radial-gradient(circle 11px at 0 100%, #0000 98%, #000), radial-gradient(circle 11px at 100% 100%, #0000 98%, #000),
    radial-gradient(circle 4px at 0 11px, #0000 98%, #000) 0 0 / 100% 22px repeat-y,
    radial-gradient(circle 4px at 100% 11px, #0000 98%, #000) 0 0 / 100% 22px repeat-y,
    radial-gradient(circle 4px at 11px 0, #0000 98%, #000) 0 0 / 22px 100% repeat-x,
    radial-gradient(circle 4px at 11px 100%, #0000 98%, #000) 0 0 / 22px 100% repeat-x;
          mask-composite: intersect;
}
.hero__ticket::before { content: ""; position: absolute; inset: 14px -2px -14px 6px; z-index: -1; background: rgba(0, 0, 0, .55); filter: blur(26px); transform: rotate(-1.2deg); }
.ticket__paper {
  position: relative; background: linear-gradient(135deg, var(--paper-1), var(--paper-2)) ; border: 1.5px solid var(--ink); outline: 1px solid rgba(58, 21, 14, .45); outline-offset: -6px;
  -webkit-mask: radial-gradient(circle 9px at 0 0, #0000 98%, #000) , radial-gradient(circle 9px at 100% 0, #0000 98%, #000), radial-gradient(circle 9px at 0 100%, #0000 98%, #000), radial-gradient(circle 9px at 100% 100%, #0000 98%, #000);
  -webkit-mask-composite: source-in;
          mask: radial-gradient(circle 9px at 0 0, #0000 98%, #000), radial-gradient(circle 9px at 100% 0, #0000 98%, #000), radial-gradient(circle 9px at 0 100%, #0000 98%, #000), radial-gradient(circle 9px at 100% 100%, #0000 98%, #000);
          mask-composite: intersect;
}
.ticket__paper::before { content: ""; position: absolute; inset: 0; background: var(--grain) 0 0 / 200px 200px; opacity: .22; mix-blend-mode: multiply; pointer-events: none; }
.ticket__paper > * { position: relative; }
.ticket__main { padding: clamp(18px, 2.2vw, 26px) clamp(22px, 3vw, 38px) clamp(20px, 2.4vw, 28px); text-align: center; }
.ticket__kicker { display: flex; align-items: center; justify-content: center; gap: 14px; font: 700 clamp(10px, 1vw, 12px)/1 var(--ui); letter-spacing: .26em; color: var(--ink); }
.ticket__kicker i { flex: 1; max-width: 90px; height: 1.5px; background: var(--ink); opacity: .75; }
.ticket__title { font: 400 clamp(56px, 7.6vw, 100px)/1.05 var(--script); margin-block: 0; color: var(--ink); margin: clamp(2px, .6vw, 8px) 0 clamp(8px, 1.4vw, 16px); letter-spacing: -.01em; text-shadow: 0 1px 0 rgba(255, 244, 214, .6); }
.ticket__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.ticket__facts > div { padding: clamp(10px, 1.2vw, 14px) clamp(12px, 1.8vw, 24px); }
.ticket__facts > div + div { border-left: 1.5px solid var(--ink); }
.ticket__facts dt { font: 400 clamp(15px, 1.4vw, 18px)/1 var(--script); color: var(--ink); opacity: .72; margin-bottom: 4px; }
.ticket__facts dd { font: 400 clamp(22px, 2.5vw, 32px)/1.05 var(--script); color: var(--brick); white-space: nowrap; }
.ticket__stub { padding: clamp(16px, 2vw, 22px) 14px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.ticket__stubhead { font: 400 clamp(20px, 1.9vw, 26px)/1 var(--script); color: var(--ink); opacity: .8; }
.ticket__no { font: 400 clamp(17px, 1.6vw, 21px)/1 var(--script); color: var(--ink); opacity: .75; }
.ticket .countdown { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.ticket .countdown div { min-width: 0; padding: 8px 4px 7px; border: 1.5px solid var(--ink); border-radius: 4px; background: rgba(255, 244, 214, .35); }
.ticket .countdown b { display: block; font: 400 clamp(30px, 3.2vw, 40px)/1 var(--script); font-variant-numeric: tabular-nums; background: none; color: var(--brick); }
.ticket .countdown span { display: block; margin-top: 2px; font: 400 clamp(14px, 1.3vw, 17px)/1 var(--script); color: var(--ink); opacity: .8; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: clamp(26px, 4vh, 38px); }
.hero__nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 38vw); min-width: min(100%, 560px); }

.hero__deco { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.deco { position: absolute; transition: translate .35s ease-out; }
.ball { height: auto; transform-origin: 50% 0; animation: swing 7s ease-in-out infinite alternate; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
.ball--big { top: -10px; right: clamp(10px, 4.5vw, 90px); width: clamp(110px, 16vw, 250px); }
.ball--small { top: -44px; right: clamp(150px, 22vw, 360px); width: clamp(54px, 6.5vw, 104px); animation-duration: 5.2s; animation-delay: -2s; opacity: .95; }
@keyframes swing { from { rotate: -3.2deg; } to { rotate: 3.2deg; } }
/* ---------- Звон бокалов (левый нижний угол) ---------- */
.toast { left: clamp(14px, 4.5vw, 90px); bottom: 34px; width: var(--gw); aspect-ratio: 1 / 1.12; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-9px); } }
.glass { position: absolute; bottom: 0; width: 56%; height: auto; transform-origin: 50% 100%; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 14px rgba(244, 196, 98, .18)); }
.glass--l { left: 0; rotate: 7deg; animation: clinkL 4.6s ease-in-out infinite; }
.glass--r { right: 0; transform: scaleX(-1); rotate: -7deg; animation: clinkR 4.6s ease-in-out infinite; }
@keyframes clinkL { 0%, 62%, 100% { rotate: 7deg; } 76% { rotate: 15deg; } 82% { rotate: 11deg; } 88% { rotate: 14deg; } }
@keyframes clinkR { 0%, 62%, 100% { rotate: -7deg; } 76% { rotate: -15deg; } 82% { rotate: -11deg; } 88% { rotate: -14deg; } }
.clink { position: absolute; left: 50%; top: 4%; width: 26%; height: auto; aspect-ratio: 1; margin-left: -13%; fill: #fff6d4; filter: drop-shadow(0 0 10px var(--gold)) drop-shadow(0 0 22px var(--gold)); opacity: 0; transform-origin: center; animation: clinkSpark 4.6s ease-out infinite; overflow: visible; }
@keyframes clinkSpark { 0%, 74% { opacity: 0; scale: .2; rotate: 0deg; } 77% { opacity: 1; scale: 1.15; rotate: 20deg; } 92%, 100% { opacity: 0; scale: .7; rotate: 60deg; } }
.bub { position: absolute; left: var(--x); top: 34%; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, rgba(255, 233, 170, .5) 60%, transparent 70%); opacity: 0; animation: bubble 3.4s ease-in infinite; animation-delay: var(--d); }
@keyframes bubble { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-110px) translateX(8px) scale(1.15); } }
.spark { fill: var(--gold-200); width: 28px; height: 28px; filter: drop-shadow(0 0 8px var(--gold)); animation: twinkle 3s ease-in-out infinite; }
.s1 { top: 30%; right: 44%; } .s2 { top: 62%; right: 18%; width: 20px; height: 20px; animation-delay: -1s; } .s3 { top: 20%; right: 5%; width: 36px; height: 36px; animation-delay: -2s; }
@keyframes twinkle { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: .55; opacity: .4; } }
.hero__scroll { position: absolute; bottom: 14px; left: 50%; translate: -50% 0; z-index: 5; font: 400 22px/1 var(--script); color: var(--gold-300); text-decoration: none; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { translate: -50% 7px; } }

/* ---------- бегущая лента ---------- */
.marquee { background: linear-gradient(180deg, #f6d98e, #d9a441); color: var(--wine-900); overflow: hidden; white-space: nowrap; position: relative; z-index: 7; box-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.marquee__track { display: inline-flex; animation: marq 36s linear infinite; }
.marquee__track span { font: 500 clamp(16px, 1.8vw, 22px)/1 var(--body); text-transform: uppercase; padding: 16px .7em 16px 0; letter-spacing: .16em; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ============================================================
   ПРОГРАММА — таймлайн-гирлянда
   ============================================================ */
.program { display: grid; gap: clamp(18px, 2.4vw, 28px); position: relative; }
.program::before { content: ""; position: absolute; left: 83px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(180deg, rgba(244, 211, 134, .8) 0 6px, transparent 6px 14px); }
.pi { display: grid; grid-template-columns: 168px 1fr; gap: 22px; align-items: center; position: relative; }
.pi__time {
  position: relative; z-index: 2; font: 400 clamp(40px, 4.4vw, 58px)/1 var(--script); text-align: center; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .5)); padding: 0 24px 0 0; text-align: right;
}
.pi__time::after { content: ""; position: absolute; right: -6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6d4, var(--c, #f4d386) 60%); box-shadow: 0 0 0 4px rgba(22, 1, 10, .7), 0 0 18px var(--c, #f4d386); -webkit-text-fill-color: initial; }
.pi--pink { --c: #ff6b84; } .pi--yellow { --c: #f4d386; } .pi--blue { --c: #7ed7a1; } .pi--red { --c: #ff4a5e; } .pi--black { --c: #fff2d0; }
.pi__card {
  position: relative; padding: 22px 26px 22px 78px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 238, 215, .13), rgba(255, 238, 215, .05));
  border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); transition: transform .25s ease, border-color .25s;
}
.pi:hover .pi__card { transform: translateX(6px); border-color: var(--gold); }
.pi__icon { position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--wine-900); font-size: 18px; box-shadow: var(--glow); }
.pi__card h3 { font: 400 clamp(28px, 3vw, 40px)/1.05 var(--script); color: var(--cream); }
.pi__card p { margin-top: 6px; font-size: clamp(15px, 1.5vw, 17px); max-width: 60ch; color: rgba(248, 237, 219, .82); }
.pi__map { display: inline-block; margin-top: 12px; font: 400 20px/1 var(--script); color: var(--gold-300); text-decoration: none; border-bottom: 1px dashed currentColor; }
.pi__map:hover { color: #fff; }

/* ============================================================
   ГОСТИ — один комок бумаги: сам раскрывается и показывает гостя
   ============================================================ */
.guest-showcase { position: relative; min-height: clamp(360px, 42vw, 500px); display: grid; place-items: center; padding: 18px 90px 48px; }
.guest-scene { position: relative; width: min(700px, 100%); height: clamp(260px, 28vw, 370px); display: grid; place-items: center; isolation: isolate; }
.guest-ball { position: absolute; z-index: 3; width: clamp(170px, 21vw, 280px); height: auto; object-fit: contain; pointer-events: none; animation: guest-bob 4.5s ease-in-out infinite; transition: opacity .65s ease, transform 1s cubic-bezier(.2, .8, .2, 1), filter .7s ease; }
@keyframes guest-bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.guest-note { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: min(660px, 100%); min-height: 220px; padding: 34px clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; text-align: center; color: var(--cream); opacity: 0; transform: scale(.2) rotate(-18deg); clip-path: polygon(43% 34%, 50% 27%, 57% 35%, 65% 42%, 62% 52%, 60% 65%, 50% 72%, 40% 66%, 37% 54%, 39% 43%); transition: clip-path 1s cubic-bezier(.65,.05,.2,1), transform 1s cubic-bezier(.65,.05,.2,1), opacity .25s; background: linear-gradient(135deg, rgba(136, 8, 29, .97), rgba(54, 2, 14, .98)); border: 1px solid rgba(244, 211, 134, .72); }
.guest-note::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/tex-creases.jpg") center / cover; opacity: .14; mix-blend-mode: screen; }
.guest-scene.is-opening .guest-note { opacity: 1; transform: translate(0,0) scale(1) rotate(0); clip-path: polygon(0 0, 33% 0, 66% 0, 100% 0, 100% 33%, 100% 66%, 100% 100%, 66% 100%, 33% 100%, 0 100%, 0 66%, 0 33%); }
.guest-scene.is-opening .guest-ball { opacity: 0; transform: scale(2.15) rotate(35deg); filter: blur(2px); }
.guest-scene.is-closing .guest-note { opacity: 0; transform: translate(0,0) scale(.2) rotate(18deg); clip-path: polygon(43% 34%, 50% 27%, 57% 35%, 65% 42%, 62% 52%, 60% 65%, 50% 72%, 40% 66%, 37% 54%, 39% 43%); }
.guest-scene.is-closing .guest-ball { opacity: 1; transform: scale(1) rotate(0); filter: none; transition-delay: .35s; }
.guest-note__eyebrow { font: 700 12px/1 var(--ui); text-transform: uppercase; letter-spacing: .2em; color: var(--gold-200); }
.guest-note h3 { margin: 0; font: 400 clamp(36px, 5vw, 62px)/1 var(--script); color: var(--gold-200); }
.guest-note p { max-width: 46ch; margin: 0; font: 400 clamp(16px, 1.8vw, 20px)/1.5 var(--body); }
.guest-note__when { font: 500 13px/1.3 var(--ui); letter-spacing: .06em; color: var(--gold-200); }
.guest-arrow { position: absolute; z-index: 5; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--glass-line); border-radius: 50%; background: rgba(22,1,10,.5); color: var(--gold-200); font: 400 38px/1 var(--script); transition: background .2s, color .2s, scale .2s; }
.guest-arrow:hover { background: var(--gold); color: var(--wine-900); scale: 1.08; }
.guest-arrow--prev { left: 18px; } .guest-arrow--next { right: 18px; }
.guest-hint { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; color: var(--gold-200); font: 400 22px/1 var(--script); }
@media (max-width: 600px) { .guest-showcase { min-height: 390px; padding: 18px 42px 50px; } .guest-scene { height: 280px; } .guest-ball { width: 190px; } .guest-note { min-height: 210px; padding: 24px 18px; } .guest-note p { font-size: 15px; } .guest-note__when { font-size: 11px; } .guest-arrow { width: 38px; height: 38px; font-size: 30px; } .guest-arrow--prev { left: 0; } .guest-arrow--next { right: 0; } .guest-hint { font-size: 18px; } }

/* ============================================================
   ГОСТИ — анкета (модальное окно)
   ============================================================ */
.gm { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; visibility: hidden; }
.gm.is-on { visibility: visible; }
.gm__backdrop { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(58, 5, 14, .9), rgba(14, 1, 6, .96)); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s ease; }
.gm.is-open .gm__backdrop { opacity: 1; }
.gm__close { position: absolute; top: 18px; right: 18px; z-index: 5; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(22, 1, 10, .6); color: var(--cream); font-size: 18px; font-weight: 700; backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s .2s, transform .2s, background .2s; }
.gm.is-open .gm__close { opacity: 1; } .gm__close:hover { transform: rotate(90deg); background: var(--gold); color: var(--wine-900); }
.gm__nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: var(--cream); font: 600 12px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .3s .3s; }
.gm.is-open .gm__nav { opacity: 1; }
.gm__nav span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(22, 1, 10, .6); color: var(--gold-200); font-size: 32px; line-height: 1; padding-bottom: 5px; transition: .2s; }
.gm__nav:hover span { background: var(--gold); color: var(--wine-900); transform: scale(1.1); }
.gm__nav--prev { left: clamp(6px, 2vw, 30px); } .gm__nav--next { right: clamp(6px, 2vw, 30px); }

.gm__stage { position: relative; z-index: 3; perspective: 2200px; width: 100%; display: grid; place-items: center; padding: 20px; }
.gm__book { position: relative; width: min(1080px, 100% - 150px); aspect-ratio: 1.82; container-type: inline-size; opacity: 0; transform: translateY(40px) scale(.72) rotate(-3deg); transition: opacity .4s ease, transform .6s cubic-bezier(.2, 1.1, .3, 1); }
.gm.is-open .gm__book { opacity: 1; transform: none; }
/* лист: из комка разворачивается в прямоугольник */
.gm__book { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .65)); }
.gm__page {
  position: absolute; inset: 0; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 1, 10, .55), rgba(22, 1, 10, .25) 50%, rgba(22, 1, 10, .6)), url("../assets/bg-disco.jpg") center / cover;
  clip-path: polygon(46% 31%, 52% 28%, 57% 34%, 60% 42%, 62% 52%, 59% 62%, 54% 70%, 47% 71%, 41% 66%, 38% 57%, 38% 46%, 41% 37%);
  transform: rotate(-14deg) scale(.55); opacity: 0;
  transition: clip-path 1.25s cubic-bezier(.65, .05, .2, 1), transform 1.25s cubic-bezier(.65, .05, .2, 1), opacity .2s;
}
.gm.is-open .gm__page { opacity: 1; }
.gm.is-flipped .gm__page { clip-path: polygon(0 0, 33% 0, 66% 0, 100% 0, 100% 33%, 100% 66%, 100% 100%, 66% 100%, 33% 100%, 0 100%, 0 66%, 0 33%); transform: none; }
.gm__page::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(244, 211, 134, .55); border-radius: 6px; pointer-events: none; z-index: 8; opacity: 0; transition: opacity .5s; }
.gm.is-flipped .gm__page::after { opacity: 1; transition-delay: .9s; }
/* красная бумага с заломами лежит поверх листа и «растворяется», когда лист разглажен */
.gm__paper { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 1; transition: opacity .35s ease;
  background: radial-gradient(ellipse at 30% 25%, rgba(255, 120, 130, .55), transparent 60%), linear-gradient(135deg, #c8172f, #7a0b1c 70%); }
.gm__paper::before { content: ""; position: absolute; inset: 0; background: url("../assets/tex-creases.jpg") center / 520px auto; mix-blend-mode: multiply; opacity: .95; }
.gm__paper::after { content: ""; position: absolute; inset: 0; background: url("../assets/tex-creases.jpg") 40% 30% / 760px auto; mix-blend-mode: screen; opacity: .28; }
.gm.is-flipped .gm__paper { opacity: 0; transition: opacity 1s ease .35s; }
.gm__ball { position: absolute; left: 50%; top: 50%; z-index: 9; width: 34cqw; height: auto; translate: -50% -50%; pointer-events: none; opacity: 0; scale: .2; rotate: -70deg; filter: drop-shadow(0 .8cqw 1.4cqw rgba(0, 0, 0, .6)); transition: opacity .3s; }
.gm.is-open .gm__ball { opacity: 1; scale: 1; rotate: 0deg; transition: scale .6s cubic-bezier(.2, 1.35, .35, 1), rotate .6s cubic-bezier(.2, 1.2, .35, 1), opacity .3s; }
.gm.is-flipped .gm__ball { opacity: 0; scale: 2.3; rotate: 38deg; transition: scale .85s cubic-bezier(.5, 0, .3, 1), rotate .85s cubic-bezier(.5, 0, .3, 1), opacity .5s ease .12s; }

/* страница-анкета */
.pg { position: absolute; inset: 0; --ac: var(--gold); }
.pg--pink { --ac: #ff8fa3; } .pg--blue { --ac: #7ed7a1; } .pg--yellow { --ac: var(--gold); } .pg--red { --ac: #ff5a5a; }
.pg__hl { position: absolute; left: 3.6cqw; top: 4cqw; z-index: 2; font: 400 calc(11.5cqw * var(--hs, 1))/.9 var(--script); max-width: 60cqw; }
.pg__hl .hl1 { display: block; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 .4cqw 1.6cqw rgba(0, 0, 0, .6)); }
.pg__hl .hl2 { display: block; font: 700 calc(3.4cqw * var(--hs, 1))/1 var(--ui); text-transform: uppercase; letter-spacing: .3em; color: var(--cream); margin: .6cqw 0 0 1.4cqw; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.pg__photo { position: absolute; left: 26cqw; bottom: 0; width: 38cqw; height: 100%; z-index: 3; display: flex; align-items: flex-end; justify-content: center; }
.pg__photo img { max-height: 98%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 0 1.2cqw rgba(244, 211, 134, .55)) drop-shadow(.8cqw 1.2cqw 1.6cqw rgba(0, 0, 0, .55)); }
.pg__sil { width: 88%; height: 92%; fill: rgba(179, 18, 43, .75); overflow: visible; filter: drop-shadow(0 0 .8cqw rgba(244, 211, 134, .6)) drop-shadow(.8cqw 1.2cqw 1.2cqw rgba(0, 0, 0, .5)); }
.pg__sil text { font: 700 24px var(--ui); letter-spacing: .3em; fill: var(--gold-200); stroke: none; }
.pg__burst { position: absolute; left: 8cqw; bottom: 12.5cqw; z-index: 4; width: 21cqw; aspect-ratio: 1; filter: drop-shadow(0 .5cqw 1cqw rgba(0, 0, 0, .5)); }
.pg__burst .bi { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 35% 30%, #fff1c2, #e6b04f 60%, #b9822a); color: var(--wine-900); font: 600 1.3cqw/1.25 var(--ui); padding: 3.2cqw; animation: wobble 6s ease-in-out infinite; }
.pg__burst b { display: block; font: 400 2.2cqw/1 var(--script); margin-bottom: .4cqw; }
@keyframes wobble { 50% { transform: rotate(6deg) scale(1.04); } }
.pg__labels { position: absolute; left: 3.6cqw; bottom: 3cqw; z-index: 4; display: flex; gap: .8cqw; flex-wrap: wrap; width: 30cqw; }
.pg__labels span { font: 700 1.2cqw/1 var(--ui); text-transform: uppercase; letter-spacing: .12em; padding: .8cqw 1.2cqw; border-radius: 99cqw; border: 1px solid rgba(255, 233, 196, .6); background: rgba(22, 1, 10, .5); color: var(--cream); backdrop-filter: blur(4px); }
.pg__labels span:first-child { background: var(--ac); color: var(--wine-900); border-color: transparent; }
.pg__fx { position: absolute; z-index: 1; fill: var(--gold-200); opacity: .95; height: auto; aspect-ratio: 1; overflow: visible; filter: drop-shadow(0 0 .8cqw var(--gold)); }
.pg__fx.f1 { left: 22cqw; top: 6cqw; width: 4.4cqw; animation: twinkle 3s infinite; } .pg__fx.f2 { left: 60cqw; top: 30cqw; width: 3.4cqw; animation: twinkle 2.5s .5s infinite; } .pg__fx.f3 { left: 14cqw; top: 40cqw; width: 3cqw; animation: twinkle 3.3s 1s infinite; }
.pg__profile {
  position: absolute; right: 2.6cqw; top: 5cqw; bottom: 5cqw; width: 33cqw; z-index: 3; padding: 2.2cqw 2.4cqw 2.2cqw 4.2cqw; border-radius: 1cqw; transform: rotate(.8deg);
  background: repeating-linear-gradient(180deg, transparent 0 2.6cqw, rgba(179, 18, 43, .16) 2.6cqw calc(2.6cqw + 1px)), var(--paper); color: var(--wine-900);
  box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .55); display: flex; flex-direction: column; overflow: hidden;
}
.pg__profile .rings { left: -.9cqw; top: 1cqw; bottom: 1cqw; background-size: 2.6cqw auto; width: 2.6cqw; }
.pg__profile h4 { font: 700 1.2cqw/1 var(--ui); letter-spacing: .24em; color: var(--red); margin-bottom: .8cqw; }
.pg__profile dl { display: grid; gap: .3cqw; font-size: 1.5cqw; line-height: 1.3; overflow: hidden; }
.pg__profile dt { font: 700 1cqw/1.2 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); margin-top: .7cqw; }
.pg__profile dd { font-weight: 500; }
.pg__profile dd.big { font: 400 2.8cqw/1.1 var(--script); color: var(--red); }
.pg__ctrl { margin-top: auto; display: flex; gap: 1.2cqw; justify-content: flex-end; padding-top: 1cqw; }
.pg__ctrl button { width: 7.5cqw; height: 3.4cqw; border: 0; background: var(--red); padding: 0; clip-path: polygon(0 28%, 62% 28%, 62% 0, 100% 50%, 62% 100%, 62% 72%, 0 72%); transition: transform .15s; }
.pg__ctrl button:first-child { transform: scaleX(-1); background: var(--wine-700); } .pg__ctrl button:first-child:hover { transform: scaleX(-1) scale(1.12); } .pg__ctrl button:last-child:hover { transform: scale(1.12); }
.pg > * { opacity: 0; }
.gm.is-flipped .pg > * { animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.gm.is-flipped .pg > *:nth-child(1) { animation-delay: .35s; } .gm.is-flipped .pg > *:nth-child(2) { animation-delay: .5s; } .gm.is-flipped .pg > *:nth-child(3) { animation-delay: .65s; }
.gm.is-flipped .pg > *:nth-child(4) { animation-delay: .75s; } .gm.is-flipped .pg > *:nth-child(5) { animation-delay: .6s; } .gm.is-flipped .pg > *:nth-child(n+6) { animation-delay: .8s; }
@keyframes pop { from { opacity: 0; scale: .6; translate: 0 22px; } to { opacity: 1; scale: 1; translate: 0 0; } }
.gm:not(.is-flipped) .pg > * { opacity: 0; transition: opacity .25s; }

/* ============================================================
   ДРЕСС-КОД и МУДБОРД
   ============================================================ */
.dc-rules { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); margin-bottom: clamp(44px, 6vw, 84px); }
.dc-box { padding: clamp(24px, 3vw, 38px); border-radius: 24px; position: relative; border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.dc-box h3 { font: 400 clamp(44px, 5vw, 70px)/1 var(--script); margin-bottom: 12px; }
.dc-box li { padding: 11px 0 11px 34px; position: relative; font-weight: 500; font-size: clamp(15px, 1.5vw, 18px); border-bottom: 1px solid rgba(255, 233, 196, .18); }
.dc-box li:last-child { border-bottom: 0; }
.dc-box li::before { position: absolute; left: 0; top: 11px; font-size: 16px; }
.dc-box--yes { background: linear-gradient(160deg, rgba(244, 211, 134, .22), rgba(244, 211, 134, .06)); }
.dc-box--yes h3 { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; } .dc-box--yes li::before { content: "✦"; color: var(--gold); }
.dc-box--no { background: rgba(14, 1, 6, .55); } .dc-box--no h3 { color: #ff8795; } .dc-box--no li::before { content: "✕"; color: #ff5a6e; }

.board {
  position: relative; border-radius: 28px; padding: clamp(24px, 4vw, 52px) clamp(16px, 3vw, 44px) clamp(44px, 5vw, 68px);
  background: linear-gradient(180deg, rgba(22, 1, 10, .62), rgba(22, 1, 10, .82)); border: 1px solid var(--glass-line); box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.board__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.board__title { font: 400 clamp(44px, 5.4vw, 76px)/.95 var(--script); }
.board__title small { display: block; font: 400 clamp(20px, 2.2vw, 28px)/1 var(--script); color: var(--gold-300); font-style: normal; margin-top: 8px; }
.board__hint { max-width: 420px; font-size: 14px; color: rgba(248, 237, 219, .75); }
.board__hint b { color: var(--gold-300); font-weight: 600; }
.board__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: clamp(30px, 3vw, 44px) clamp(18px, 2.4vw, 32px); align-items: start; }
.snap {
  position: relative; background: var(--paper); padding: 12px 12px 0; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); color: var(--wine-900);
  transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r, 0deg)); transition: transform .25s ease, box-shadow .25s ease; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.snap:hover { transform: translate(var(--dx, 0), var(--dy, 0)) rotate(calc(var(--r, 0deg) * .3)) scale(1.04); box-shadow: 0 24px 44px rgba(0, 0, 0, .6); z-index: 5; }
.snap.drag { cursor: grabbing; transition: none; z-index: 50; box-shadow: 0 30px 60px rgba(0, 0, 0, .65); }
.snap__tape { position: absolute; top: -13px; left: 50%; width: 84px; height: 26px; margin-left: -42px; background: rgba(244, 211, 134, .78); transform: rotate(var(--tr, -4deg)); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); z-index: 2; }
.snap:nth-child(3n) .snap__tape { background: rgba(217, 43, 69, .7); } .snap:nth-child(3n+1) .snap__tape { background: rgba(244, 211, 134, .78); } .snap:nth-child(3n+2) .snap__tape { background: rgba(120, 190, 150, .7); }
.snap__img { aspect-ratio: var(--ar, 4/5); position: relative; overflow: hidden; background: var(--wine-800); }
.snap__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.snap__ph { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--gold-200); gap: 6px; background: radial-gradient(circle at 30% 25%, var(--c, var(--red)), var(--wine-800)); }
.snap__ph svg { width: 44px; height: 44px; margin: 0 auto; fill: var(--gold-200); filter: drop-shadow(0 0 8px var(--gold)); }
.snap__ph span { font: 400 22px/1 var(--script); }
.snap--pink { --c: #a21a3a; } .snap--yellow { --c: #a8741f; } .snap--blue { --c: #1d6a40; } .snap--red { --c: #b3122b; } .snap--black { --c: #2a0a12; }
.snap figcaption { font: 400 26px/1 var(--script); padding: 10px 4px 12px; text-align: center; }
.snap__tag { position: absolute; right: -10px; top: 22px; z-index: 3; background: var(--gold); color: var(--wine-900); font: 700 11px/1 var(--ui); padding: 7px 10px; transform: rotate(7deg); box-shadow: 0 3px 8px rgba(0, 0, 0, .4); letter-spacing: .1em; border-radius: 3px; }
.snap__tag.no { background: var(--wine-900); color: #ff8795; }
.board__drop { position: absolute; inset: 8px; border: 2px dashed var(--gold); border-radius: 22px; background: rgba(22, 1, 10, .9); display: none; place-items: center; font: 400 clamp(30px, 5vw, 58px)/1 var(--script); color: var(--gold-300); z-index: 40; }
.board.is-over .board__drop { display: grid; }

.lb { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(14, 1, 6, .92); backdrop-filter: blur(6px); }
.lb__fig { position: relative; z-index: 2; background: var(--paper); color: var(--wine-900); padding: 16px 16px 8px; max-width: min(92vw, 640px); transform: rotate(-1.2deg); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); animation: pop .5s cubic-bezier(.2, 1.3, .4, 1) both; }
.lb__img { max-height: 70vh; overflow: hidden; } .lb__img img { max-height: 70vh; width: auto; margin: 0 auto; } .lb__img .snap__ph { position: relative; min-height: 360px; }
.lb figcaption { font: 400 34px/1 var(--script); text-align: center; padding: 12px; }
.lb .gm__close { opacity: 1; }

/* ============================================================
   ПАТИ-ГОРОСКОП
   ============================================================ */
.sec__stars {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9;
  background:
    radial-gradient(circle, rgba(255, 233, 170, .9) 1px, transparent 1.6px) 0 0 / 90px 90px,
    radial-gradient(circle, rgba(255, 233, 170, .55) 1px, transparent 1.6px) 37px 51px / 130px 130px,
    radial-gradient(circle, rgba(255, 255, 255, .5) .8px, transparent 1.4px) 70px 20px / 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 100%);
  animation: tw-bg 6s ease-in-out infinite alternate;
}
@keyframes tw-bg { from { opacity: .55; } to { opacity: 1; } }
.horo { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 2.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.horo__side { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; position: relative; }
.horo__note { padding: 20px 22px; font-size: clamp(14px, 1.3vw, 16px); line-height: 1.5; border: 1px solid var(--glass-line); border-radius: 18px; background: var(--glass); backdrop-filter: blur(10px); color: var(--cream); }
.sec__head--horo { flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: clamp(0px, 2vw, 30px); }
.horo__burst { flex: none; width: clamp(200px, 19vw, 250px); aspect-ratio: 1; margin: -10px 0 -30px -10px; transform: rotate(-8deg); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.horo__burst .bi { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 2.6em 2.2em; background: radial-gradient(circle at 35% 30%, #fff1c2, #e6b04f 60%, #b9822a); color: var(--wine-900); font: 700 11.5px/1.25 var(--ui); animation: wobble 6s ease-in-out infinite; }
.horo__date { display: grid; gap: 8px; font: 600 14px/1.3 var(--ui); color: var(--cream); }
.horo__date input { font: 700 16px var(--ui); padding: 12px 16px; border: 1px solid var(--glass-line); border-radius: 12px; background: rgba(22, 1, 10, .5); color: var(--cream); max-width: 240px; color-scheme: dark; }

.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 20px); padding: clamp(16px, 2.4vw, 30px); border: 1px solid var(--glass-line); border-radius: 26px; background: var(--glass); backdrop-filter: blur(10px); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.stamp { position: relative; padding: 0; border: 0; background: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); transition: transform .2s ease; transform: rotate(var(--r, 0deg)); }
.stamp:nth-child(3n+1) { --r: -1.2deg; } .stamp:nth-child(3n+2) { --r: .9deg; } .stamp:nth-child(3n) { --r: -.4deg; }
.stamp__in { display: grid; justify-items: center; align-content: center; gap: 2px; aspect-ratio: 1/.8; padding: 10px 6px 8px; color: var(--wine-900); background: var(--paper); transition: background .2s, color .2s; }
.stamp__sym { font: 400 clamp(36px, 5.2vw, 66px)/1 "DejaVu Sans", "Noto Sans Symbols", "Segoe UI Symbol", "Apple Symbols", "Arial Unicode MS", sans-serif; font-variant-emoji: text; }
.stamp__name { font: 700 clamp(10px, 1.1vw, 13px)/1 var(--ui); text-transform: uppercase; letter-spacing: .12em; }
.stamp:hover, .stamp:focus-visible { transform: rotate(0) translateY(-5px) scale(1.05); z-index: 3; }
.stamp:hover .stamp__in { background: var(--gold-200); }
.stamp.is-active { transform: rotate(0) scale(1.08); z-index: 4; filter: drop-shadow(0 0 14px rgba(244, 196, 98, .8)); }
.stamp.is-active .stamp__in { background: var(--red); color: var(--gold-200); }
.stamp.is-active .stamp__sym { animation: twinkle 1.8s ease-in-out infinite; }

.horo__res { margin-top: clamp(30px, 4vw, 54px); min-height: 220px; position: relative; scroll-margin-top: 90px; outline: none; }
.hr-empty { text-align: center; padding: clamp(26px, 4vw, 46px) 20px; font: 400 clamp(26px, 3.4vw, 42px)/1.15 var(--script); color: var(--gold-200); border: 1px dashed rgba(244, 211, 134, .55); border-radius: 22px; }
.hr-empty b { display: block; font-size: 1.5em; }
.hr-cast { display: grid; place-items: center; min-height: 260px; position: relative; overflow: hidden; }
.hr-cast__txt { font: 400 clamp(70px, 15vw, 180px)/1 var(--script); background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 26px rgba(244, 196, 98, .6)); animation: boom .85s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes boom { 0% { transform: scale(.2) rotate(-14deg); opacity: 0; } 55% { transform: scale(1.12) rotate(-3deg); opacity: 1; } 100% { transform: scale(1) rotate(-2deg); opacity: 1; } }
.hr-cast i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); background: var(--c); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: spark .9s ease-out both; animation-delay: var(--dl); }
@keyframes spark { 0% { transform: translate(0, 0) scale(0) rotate(0); opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(1) rotate(180deg); opacity: 0; } }
.hr-card {
  display: grid; grid-template-columns: minmax(220px, .8fr) 1.7fr; gap: clamp(18px, 3vw, 40px); align-items: center; padding: clamp(24px, 3vw, 44px); padding-left: clamp(62px, 7vw, 88px); position: relative; border-radius: 10px; color: var(--wine-900);
  background: linear-gradient(90deg, transparent 46px, rgba(179, 18, 43, .4) 46px 47px, transparent 47px), repeating-linear-gradient(180deg, transparent 0 27px, rgba(179, 18, 43, .14) 27px 28px), var(--paper);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6); animation: pop .55s cubic-bezier(.2, 1.3, .4, 1) both; transform: rotate(-.4deg);
}
.hr-card .rings { left: -18px; }
.hr-card__big { display: grid; justify-items: center; text-align: center; gap: 4px; }
.hr-card__sym { font: 400 clamp(100px, 14vw, 170px)/1 "DejaVu Sans", "Noto Sans Symbols", "Segoe UI Symbol", "Apple Symbols", "Arial Unicode MS", sans-serif; color: var(--red); text-shadow: 4px 4px 0 var(--gold-300); font-variant-emoji: text; }
.hr-card__name { font: 400 clamp(40px, 5vw, 64px)/1 var(--script); }
.hr-card__dates { font: 400 22px/1 var(--script); color: #8a6a4a; }
.hr-card__ready { display: inline-block; font: 400 clamp(28px, 3.4vw, 44px)/1 var(--script); color: var(--red); margin-bottom: 14px; }
.hr-card__text { font-size: clamp(16px, 1.8vw, 20px); font-weight: 500; line-height: 1.5; }
.hr-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hr-chip { font: 700 14px/1.2 var(--ui); padding: 10px 16px; border: 1px solid rgba(90, 11, 23, .35); border-radius: 14px; background: rgba(255, 255, 255, .6); text-decoration: none; color: var(--wine-900); }
.hr-chip small { display: block; font: 700 10px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 4px; }
.hr-chip--link:hover { background: var(--gold-300); }
.hr-chip--tip { background: rgba(29, 106, 64, .12); border-color: rgba(29, 106, 64, .4); }
.hr-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.hr-card .btn--ghost { color: var(--wine-900); border-color: rgba(90, 11, 23, .4); background: rgba(255, 255, 255, .5); }
.hr-card .btn--pink { background: var(--red); }

/* ============================================================
   ЗАДАНИЕ ДЛЯ КОМАНД
   ============================================================ */
.tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(26px, 3.4vw, 44px); }
.task {
  position: relative; padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 38px) clamp(26px, 3vw, 34px) clamp(34px, 4vw, 66px); border-radius: 10px; color: var(--wine-900); transform: rotate(var(--r, 0deg)); transition: transform .3s ease;
  background: linear-gradient(90deg, transparent 46px, rgba(179, 18, 43, .4) 46px 47px, transparent 47px), repeating-linear-gradient(180deg, transparent 0 27px, rgba(179, 18, 43, .14) 27px 28px), var(--paper);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55);
}
.task:nth-child(1) { --r: -1deg; } .task:nth-child(2) { --r: 1deg; } .task:hover { transform: rotate(0) translateY(-6px); }
.task::before { content: ""; position: absolute; top: -15px; left: 50%; width: 110px; height: 32px; margin-left: -55px; background: var(--tape, rgba(244, 211, 134, .85)); transform: rotate(-3deg); box-shadow: 0 2px 5px rgba(0, 0, 0, .25); }
.task--pink { --tape: rgba(217, 43, 69, .75); }
.task__icon { position: absolute; right: 20px; top: 22px; width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1c2, #e6b04f 65%, #b9822a); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); transform: rotate(10deg); }
.task--pink .task__icon { background: radial-gradient(circle at 35% 30%, #ff8d9d, #d92b45 65%, #8e1328); }
.task__icon svg { width: 62%; height: 62%; }
.task h3 { font: 400 clamp(34px, 3.8vw, 50px)/.98 var(--script); max-width: 74%; color: var(--red); }
.task--pink h3 { color: var(--wine-700); }
.task > p { margin: 14px 0 16px; font-size: clamp(15px, 1.5vw, 18px); font-weight: 500; }
.task__rules { display: grid; gap: 7px; margin-bottom: 20px; }
.task__rules li { position: relative; padding-left: 26px; font-size: 15px; }
.task__rules li::before { content: "✦"; position: absolute; left: 0; top: 0; font-size: 14px; color: var(--gold-600); }
.task__deadline { display: inline-block; font: 700 12px/1 var(--ui); text-transform: uppercase; letter-spacing: .14em; background: var(--wine-900); color: var(--gold-300); padding: 11px 16px; border-radius: 999px; }
.tasks__send { margin-top: 40px; font: 400 clamp(24px, 3vw, 34px)/1.15 var(--script); color: var(--gold-200); }

/* ============================================================
   КАРТА ОФИСА
   ============================================================ */
.mapwrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.map__side { position: sticky; top: 90px; }
.map {
  position: relative; border-radius: 24px; padding: clamp(10px, 2vw, 22px); border: 1px solid var(--glass-line); box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  background: linear-gradient(rgba(244, 211, 134, .06) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(244, 211, 134, .06) 1px, transparent 1px) 0 0 / 28px 28px, radial-gradient(ellipse at 40% 20%, rgba(90, 11, 23, .75), rgba(22, 1, 10, .92));
  backdrop-filter: blur(8px);
}
.map svg { width: 100%; height: auto; overflow: visible; }
.map img { width: 100%; border-radius: 12px; }
.map .floor { fill: rgba(255, 233, 196, .055); } .map .floor--wet { fill: rgba(0, 0, 0, .3); } .map .floor--hall { fill: rgba(255, 233, 196, .03); }
.map .wall { fill: none; stroke: var(--gold-300); stroke-width: 5; stroke-linejoin: round; stroke-linecap: square; opacity: .9; pointer-events: none; }
.map .door { fill: none; stroke: var(--gold-300); stroke-width: 1.6; opacity: .7; pointer-events: none; }
.map .win { fill: none; stroke: #bfe6ff; stroke-width: 3; opacity: .85; pointer-events: none; }
.map .stair { stroke: rgba(244, 211, 134, .55); stroke-width: 2; pointer-events: none; }
.map .static, .map .static * { pointer-events: none; }
.map .fu { fill: rgba(251, 244, 230, .13); stroke: rgba(244, 211, 134, .6); stroke-width: 1.4; }
.map .fu--hi { fill: rgba(244, 211, 134, .3); } .map .fu--dark { fill: rgba(0, 0, 0, .5); } .map .fu--round { fill: rgba(251, 244, 230, .08); stroke-dasharray: 4 3; }
.map .fu--photo { fill: rgba(217, 43, 69, .45); stroke: var(--gold-300); }
.map .sofa { fill: rgba(179, 18, 43, .72); stroke: var(--gold-300); stroke-width: 1.5; }
.map .pouf { fill: rgba(217, 43, 69, .85); stroke: var(--gold-300); stroke-width: 1.5; }
.map .plant { fill: rgba(29, 106, 64, .85); stroke: #8fd9aa; stroke-width: 1.5; } .map .plant--in { fill: rgba(60, 150, 95, .9); stroke: none; }
.map .lbl { font: 700 9.5px var(--ui); letter-spacing: .12em; fill: rgba(251, 244, 230, .7); pointer-events: none; }
.map .lbl--mute { fill: rgba(251, 244, 230, .35); } .map .lbl--zone { fill: var(--gold-200); font-size: 9px; }
.map .lbl--office { font: 700 13px var(--ui); letter-spacing: 0; fill: rgba(251, 244, 230, .38); text-anchor: middle; dominant-baseline: central; }
.map .lbl--v { fill: var(--gold-200); font-size: 11px; letter-spacing: .3em; }
.map .lbl-script { font: 400 26px var(--script); fill: rgba(244, 211, 134, .6); pointer-events: none; }
.map .lbl-script--zone { font-size: 19px; fill: rgba(251, 232, 180, .92); }
.map .lbl-script--mute { font-size: 18px; fill: rgba(244, 211, 134, .4); }

.map .zone--yellow { --zc: #f4d386; --zt: #240208; } .map .zone--pink { --zc: #ff8fa3; --zt: #240208; } .map .zone--blue { --zc: #8fd9aa; --zt: #06200f; } .map .zone--red { --zc: #ff5a6e; --zt: #240208; }
.map .zshape { fill: var(--zc); fill-opacity: .13; stroke: var(--zc); stroke-opacity: .5; stroke-width: 1.5; stroke-dasharray: 6 5; cursor: pointer; transition: fill-opacity .25s, stroke-opacity .25s; }
.map .zshape:hover { fill-opacity: .3; stroke-opacity: .9; }
.map .zshape.is-active { fill-opacity: .42; stroke-opacity: 1; stroke-dasharray: none; stroke-width: 2.4; filter: drop-shadow(0 0 10px var(--zc)); }
.map.has-active .zshape:not(.is-active) { fill-opacity: .07; }
.map .zone { cursor: pointer; outline: none; }
.map .z-dot { fill: var(--zc); stroke: #240208; stroke-width: 2.5; transition: r .2s; }
.map .z-pulse { fill: none; stroke: var(--zc); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.map .z-num { font: 700 15px var(--ui); fill: var(--zt); text-anchor: middle; dominant-baseline: central; pointer-events: none; } .map .z-num--s { font-size: 11px; }
.map .zone:hover .z-dot, .map .zone:focus-visible .z-dot { r: 18; }
.map .zone:focus-visible .z-dot { stroke: #fff; }
.map .zone.is-active .z-dot { r: 18; stroke: #fff; }
.map .zone.is-active .z-pulse { animation: zpulse 1.8s ease-out infinite; }
@keyframes zpulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
.map__info { padding: 24px 24px 26px; border-radius: 22px; min-height: 150px; border: 1px solid var(--gold); background: linear-gradient(160deg, rgba(244, 211, 134, .24), rgba(244, 211, 134, .08)); backdrop-filter: blur(12px); box-shadow: var(--glow); }
.map__info small { font: 700 11px/1 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-300); }
.map__info h3 { font: 400 clamp(32px, 3.4vw, 44px)/1 var(--script); margin: 10px 0 10px; }
.map__info p { font-weight: 500; color: rgba(248, 237, 219, .9); }
.map__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.map__list button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--glass-line); border-radius: 999px; background: rgba(22, 1, 10, .45); padding: 7px 12px 7px 7px; font: 600 13px/1.1 var(--ui); transition: .2s; }
.map__list button:hover { transform: translateX(6px); border-color: var(--gold); }
.map__list button.is-active { background: var(--gold); color: var(--wine-900); border-color: var(--gold); transform: translateX(8px); }
.map__list i { font-style: normal; display: grid; place-items: center; flex: none; min-width: 28px; height: 28px; padding: 0 4px; border-radius: 50%; background: var(--wine-700); color: var(--gold-200); font-size: 13px; font-weight: 700; }
.map__list button.is-active i { background: var(--wine-900); }

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer { background-image: url("../assets/bg-disco.jpg"); padding-top: clamp(100px, 11vw, 150px); }
.footer::before { background: radial-gradient(ellipse 70% 70% at 50% 45%, rgba(22, 1, 10, .55), rgba(10, 0, 4, .92)); }
.footer__in { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; padding-bottom: 70px; }
.footer__title { display: flex; flex-direction: column; align-items: center; font: 400 clamp(48px, 9vw, 130px)/.95 var(--script); }
.footer__title b { font: 700 clamp(22px, 4vw, 52px)/1 var(--ui); text-transform: uppercase; letter-spacing: .24em; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: .3em; }
.footer__text { max-width: 560px; font-size: 18px; color: rgba(248, 237, 219, .85); }
.footer__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.footer__contact { font: 400 24px/1.2 var(--script); color: var(--gold-300); }
.footer__contact a { color: inherit; }
.footer__brand { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 20px 26px; }
.footer__brand img { height: 30px; width: auto; }
.footer__copy { text-align: center; font-size: 12px; letter-spacing: .1em; opacity: .55; }
.hero__logo { position: absolute; z-index: 6; top: 88px; left: clamp(18px, 3.2vw, 54px); display: block; }
.hero__logo img { height: clamp(24px, 2.3vw, 34px); width: auto; opacity: .96; }

/* ============================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, 1, .3, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .pi.reveal { transform: translateX(-40px); } .js .pi.reveal.in { transform: none; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 980px) {
  .dc-rules, .mapwrap, .horo { grid-template-columns: 1fr; }
  .map__side { position: static; }
  .horo__burst { margin: -6px 0 -20px 10px; }
  .ball--small { display: none; }
  .hero__nav { max-width: 100%; min-width: 0; }
}
@media (max-width: 820px) {
  .gm__nav { top: auto; bottom: 14px; translate: 0 0; flex-direction: row; font-size: 0; gap: 0; }
  .gm__nav span { width: 50px; height: 50px; }
  .gm__nav--prev { left: calc(50% - 64px); } .gm__nav--next { right: calc(50% - 64px); }
  .gm__stage { padding: 64px 12px 84px; overflow-y: auto; max-height: 100vh; place-items: start center; }
  .gm__book { width: 100%; aspect-ratio: auto; height: min(640px, calc(100svh - 160px)); container-type: size; }
  .gm__page { overflow-y: auto; overflow-x: hidden; } .gm__ball { width: 62cqw; }
  .pg { position: relative; inset: auto; min-height: 100%; display: flex; flex-direction: column; padding: 14px 12px 22px; }
  .pg > * { position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; }
  .pg__hl { font-size: calc(18cqw * var(--hs, 1)); order: 1; max-width: 100%; } .pg__hl .hl2 { font-size: 4.2cqw; margin-left: 2cqw; }
  .pg__photo { order: 2; width: 100%; height: 230px; margin: 6px 0; } .pg__photo .pg__sil { height: 100%; }
  .pg__burst { order: 3; width: 42cqw; margin: -80px 0 0 auto; z-index: 4; } .pg__burst .bi { font-size: 3cqw; } .pg__burst b { font-size: 5cqw; }
  .pg__labels { order: 4; margin: -6px 0 14px; width: auto; } .pg__labels span { font-size: 2.8cqw; padding: 7px 11px; }
  .pg__profile { order: 5; width: 100%; transform: none; padding: 16px 14px 14px 30px; min-height: 260px; }
  .pg__profile .rings { width: 22px; background-size: 22px auto; left: -6px; }
  .pg__profile h4 { font-size: 3cqw; margin-bottom: 8px; } .pg__profile dl { font-size: 3.7cqw; } .pg__profile dt { font-size: 2.6cqw; } .pg__profile dd.big { font-size: 8cqw; }
  .pg__ctrl, .pg__fx { display: none; }
  .pi { grid-template-columns: 1fr; gap: 10px; } .pi__time { text-align: left; padding: 0 0 0 36px; } .pi__time::after { left: 8px; right: auto; } .program::before { left: 14px; }
  .pi__card { padding-left: 66px; }
}
@media (max-width: 700px) {
  .stamps { padding: 14px; gap: 8px; } .hr-card { grid-template-columns: 1fr; padding-left: 58px; }
}
@media (max-width: 560px) {
  .topnav__name { display: none; } .topnav__brand { gap: 0; } .topnav__logo { height: 18px; }
  .hero__logo { top: 62px; left: 50%; translate: -50% 0; } .hero__logo img { height: 20px; }
  .hero__nav { margin-top: 30px; }
  .hero { padding-top: 84px; } .hero__inner { padding-bottom: 60px; } .hero__nav { min-width: 0; max-width: 100%; } .hero__ticket { padding-top: 34px; }
  .countdown { gap: 6px; } .countdown div { min-width: 0; flex: 1; }
  .hero__cta .btn { flex: 1; padding-inline: 14px; }
  .ball--big { width: 120px; right: 4px; }
  .toast { display: none; }
  .btn { padding: 15px 20px; }
  .task h3 { max-width: 100%; margin-top: 56px; } .task__icon { width: 62px; height: 62px; }
  .hero__nav .chip { font-size: 12px; padding: 8px 12px; }
  .hero__title .sans { margin-left: 6px; letter-spacing: .24em; }
  .strip span { margin-left: .4em; }
}

@media (max-width: 700px) {
  .ticket { grid-template-columns: 1fr; --pad: 10px; --gap: 14px; transform: rotate(-.8deg);
    -webkit-mask:
      radial-gradient(circle 12px at 0 calc(100% - var(--pad) - var(--stub-h) - var(--gap) / 2), #0000 98%, #000),
      radial-gradient(circle 12px at 100% calc(100% - var(--pad) - var(--stub-h) - var(--gap) / 2), #0000 98%, #000),
      radial-gradient(circle 11px at 0 0, #0000 98%, #000), radial-gradient(circle 11px at 100% 0, #0000 98%, #000),
      radial-gradient(circle 11px at 0 100%, #0000 98%, #000), radial-gradient(circle 11px at 100% 100%, #0000 98%, #000),
      radial-gradient(circle 4px at 0 11px, #0000 98%, #000) 0 0 / 100% 22px repeat-y,
      radial-gradient(circle 4px at 100% 11px, #0000 98%, #000) 0 0 / 100% 22px repeat-y,
      radial-gradient(circle 4px at 11px 0, #0000 98%, #000) 0 0 / 22px 100% repeat-x,
      radial-gradient(circle 4px at 11px 100%, #0000 98%, #000) 0 0 / 22px 100% repeat-x;
    -webkit-mask-composite: source-in;
            mask:
      radial-gradient(circle 12px at 0 calc(100% - var(--pad) - var(--stub-h) - var(--gap) / 2), #0000 98%, #000),
      radial-gradient(circle 12px at 100% calc(100% - var(--pad) - var(--stub-h) - var(--gap) / 2), #0000 98%, #000),
      radial-gradient(circle 11px at 0 0, #0000 98%, #000), radial-gradient(circle 11px at 100% 0, #0000 98%, #000),
      radial-gradient(circle 11px at 0 100%, #0000 98%, #000), radial-gradient(circle 11px at 100% 100%, #0000 98%, #000),
      radial-gradient(circle 4px at 0 11px, #0000 98%, #000) 0 0 / 100% 22px repeat-y,
      radial-gradient(circle 4px at 100% 11px, #0000 98%, #000) 0 0 / 100% 22px repeat-y,
      radial-gradient(circle 4px at 11px 0, #0000 98%, #000) 0 0 / 22px 100% repeat-x,
      radial-gradient(circle 4px at 11px 100%, #0000 98%, #000) 0 0 / 22px 100% repeat-x;
            mask-composite: intersect; }
  .ticket { --stub-h: 176px; }
  .ticket__stub { height: var(--stub-h); padding-block: 12px; gap: 8px; }
  .ticket .countdown { grid-template-columns: repeat(4, 1fr); } .ticket .countdown b { font-size: 30px; }
  .ticket__facts { grid-template-columns: 1fr; } .ticket__facts > div + div { border-left: 0; border-top: 1.5px solid var(--ink); }
  .ticket__facts > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; } .ticket__facts dt { margin: 0; font-size: 20px; } .ticket__facts dd { font-size: 26px; }
  .ticket__no { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
