/* ============ MON ROI — королевский эмо-кор ============ */
/* Палитра: темнота залов, свечное золото, пергамент, сургуч */
:root {
  --ink: #0b0806;
  --ink-soft: #14100b;
  --candle: #e8c06a;
  --gold-dim: #8a6b35;
  --parchment: #e9ddc8;
  --parchment-dim: #b3a68c;
  --wax: #9e2b25;
  --wax-dark: #6e1d19;
  --teal: #2e5c66;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--parchment);
  font-family: 'Cormorant', Georgia, serif;
  font-size: 19px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

::selection { background: var(--wax); color: var(--parchment); }

/* ---------- шапка ---------- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .5s ease, transform .5s ease, background .5s ease;
  pointer-events: none;
}
.top.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(11,8,6,.92), rgba(11,8,6,.72) 70%, transparent);
}
.top .mark {
  font-family: 'Prata', serif;
  font-size: 20px;
  letter-spacing: .14em;
  color: var(--candle);
  text-decoration: none;
}
.top nav { display: flex; gap: 26px; }
.top nav a {
  color: var(--parchment-dim);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .25s;
}
.top nav a:hover, .top nav a:focus-visible { color: var(--candle); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--candle);
  outline-offset: 3px;
}

/* ---------- герой: скролл-скраб ---------- */
.hero { height: 480vh; position: relative; }
.hero-stick {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.hero-stick canvas,
.hero-stick .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  transition: opacity .6s ease;
}
.hero-hint .l1 {
  font-size: 15px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--candle);
  text-shadow: 0 2px 14px rgba(0,0,0,.8);
}
.hero-hint .arr {
  width: 1px;
  height: 46px;
  margin: 14px auto 0;
  background: linear-gradient(var(--candle), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip {
  0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}
.hero-veil {
  position: absolute;
  inset: auto 0 0 0;
  height: 26vh;
  z-index: 2;
  background: linear-gradient(180deg, transparent, var(--ink));
  pointer-events: none;
}

/* ---------- манифест ---------- */
.manifest {
  position: relative;
  padding: 21vh 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(232,192,106,.07), transparent),
    var(--ink);
}
.manifest h1 {
  font-family: 'Prata', serif;
  font-weight: 400;
  font-size: clamp(34px, 6.4vw, 88px);
  line-height: 1.14;
  color: var(--parchment);
}
.manifest h1 em {
  font-style: normal;
  color: var(--candle);
}
.manifest .sub {
  margin-top: 30px;
  font-size: clamp(19px, 2vw, 24px);
  color: var(--parchment-dim);
  font-style: italic;
}
.manifest .story {
  max-width: 620px;
  margin: 56px auto 0;
  font-size: 21px;
  color: var(--parchment-dim);
}
.manifest .story b { color: var(--parchment); font-weight: 600; }

/* орнаментальный разделитель */
.orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 42px;
  color: var(--gold-dim);
}
.orn::before, .orn::after {
  content: "";
  height: 1px;
  width: min(160px, 22vw);
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.orn::after { background: linear-gradient(270deg, transparent, var(--gold-dim)); }
.orn svg { flex: none; }

/* ---------- залы участников ---------- */
.hall {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 14vh 0;
}
.hall-bg {
  position: absolute;
  inset: -12% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}
.hall-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 82%, var(--ink) 100%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 30%, rgba(11,8,6,.72));
}
.hall:not(.flip) .hall-bg::after {
  background:
    linear-gradient(90deg, transparent 34%, rgba(11,8,6,.66) 72%),
    linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 82%, var(--ink) 100%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 30%, rgba(11,8,6,.6));
}
.hall.flip .hall-bg::after {
  background:
    linear-gradient(270deg, transparent 34%, rgba(11,8,6,.66) 72%),
    linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 82%, var(--ink) 100%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 30%, rgba(11,8,6,.6));
}

/* табличка зала: текст на приглушённой панели */
.hall-text {
  background: linear-gradient(165deg, rgba(11,8,6,.72), rgba(20,16,11,.6));
  -webkit-backdrop-filter: blur(9px) saturate(.92);
  backdrop-filter: blur(9px) saturate(.92);
  border: 1px solid rgba(232,192,106,.22);
  padding: clamp(28px, 3.4vw, 52px);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.hall-in {
  position: relative;
  z-index: 1;
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(28px, 5vw, 84px);
  align-items: center;
}
.hall.flip .hall-in { grid-template-columns: 1fr 380px; }
.hall.flip .hall-card { order: 2; }

.hall-card {
  position: relative;
  border: 1px solid rgba(232,192,106,.36);
  padding: 10px;
  background: rgba(11,8,6,.55);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.hall-card::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(232,192,106,.18);
  pointer-events: none;
}
.hall-card img { width: 100%; }
.hall-card figcaption {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--parchment);
  background: rgba(11,8,6,.72);
  padding: 6px 14px;
  border: 1px solid rgba(232,192,106,.3);
}

.hall-eyebrow {
  font-size: 14px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--candle);
  margin-bottom: 16px;
}
.hall-name {
  font-family: 'Prata', serif;
  font-weight: 400;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 1;
  color: var(--parchment);
  margin-bottom: 6px;
}
.hall-role {
  font-size: 21px;
  font-style: italic;
  color: var(--parchment-dim);
  margin-bottom: 34px;
}

.ledger {
  border-top: 1px solid rgba(232,192,106,.28);
  max-width: 460px;
}
.ledger div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(232,192,106,.14);
  font-size: 17px;
}
.ledger dt {
  color: var(--parchment-dim);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 13.5px;
  padding-top: 3px;
}
.ledger dd { color: var(--parchment); text-align: right; }

.hall-quote {
  margin-top: 36px;
  max-width: 520px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-style: italic;
  line-height: 1.45;
  color: var(--candle);
}
.hall-quote::before { content: "« "; color: var(--gold-dim); }
.hall-quote::after { content: " »"; color: var(--gold-dim); }

/* ---------- музыка ---------- */
.music {
  position: relative;
  min-height: 100vh;
  padding: 16vh 24px;
  overflow: hidden;
}
.music .hall-bg { inset: -10% 0; }
.music-in { position: relative; z-index: 1; width: min(1080px, 94vw); margin: 0 auto; }
.music h2, .finale h2 {
  font-family: 'Prata', serif;
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 62px);
  text-align: center;
  color: var(--parchment);
  margin-bottom: 12px;
}
.music .lead {
  text-align: center;
  font-style: italic;
  color: var(--parchment);
  font-size: 21px;
  margin-bottom: 64px;
}
.music h2, .music .lead, .finale h2, .finale .sub {
  text-shadow: 0 2px 22px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.6);
}
.programme {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 3vw, 44px);
}
.track {
  position: relative;
  border: 1px solid rgba(232,192,106,.34);
  background: linear-gradient(160deg, rgba(20,16,11,.92), rgba(11,8,6,.86));
  padding: 40px 36px 34px;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .45s;
}
.track:hover { transform: translateY(-6px); border-color: rgba(232,192,106,.7); }
.track .no {
  font-family: 'Prata', serif;
  font-size: 15px;
  letter-spacing: .3em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.track h3 {
  font-family: 'Prata', serif;
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  color: var(--candle);
  margin-bottom: 10px;
}
.track .meta {
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  margin-bottom: 24px;
}
.track blockquote {
  border-left: 2px solid var(--wax);
  padding-left: 18px;
  font-style: italic;
  font-size: 20px;
  line-height: 1.7;
  color: var(--parchment);
}
.track .note { margin-top: 22px; font-size: 17px; color: var(--parchment-dim); }

/* ---------- финал ---------- */
.finale {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 18vh 24px;
}
.finale-in {
  position: relative;
  z-index: 1;
  padding: 70px clamp(30px, 6vw, 90px);
  background: radial-gradient(ellipse 65% 60% at 50% 50%, rgba(11,8,6,.62) 0%, rgba(11,8,6,.34) 55%, transparent 78%);
}
.finale .sub {
  font-style: italic;
  font-size: 22px;
  color: var(--parchment);
  margin: 18px 0 46px;
}
.btn-ig {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background: var(--candle);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 17px 34px;
  border: 1px solid var(--candle);
  transition: background .3s, color .3s;
}
.btn-ig:hover, .btn-ig:focus-visible { background: transparent; color: var(--candle); }
.finale .fine {
  margin-top: 70px;
  font-size: 14px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(179,166,140,.55);
}

/* ---------- сургучная печать-прогресс ---------- */
.seal {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 64px;
  height: 64px;
  z-index: 50;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.6));
  transition: transform .3s;
}
.seal:hover { transform: scale(1.08); }
.seal svg { width: 100%; height: 100%; }
.seal .ring { transition: stroke-dashoffset .15s linear; }

/* ---------- появление ---------- */
.rv {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.rv.in { opacity: 1; transform: none; }
.rv2 { transition-delay: .15s; }
.rv3 { transition-delay: .3s; }

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .top { padding: 12px 16px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: 12px; letter-spacing: .12em; }
  .hall-in, .hall.flip .hall-in { grid-template-columns: 1fr; gap: 34px; }
  .hall.flip .hall-card { order: 0; }
  .hall-card { max-width: 420px; margin: 0 auto; }
  .programme { grid-template-columns: 1fr; }
  .seal { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .hero { height: 380vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero { height: 100vh; }
  .hero-hint .arr { animation: none; }
  .hall-bg { position: absolute; transform: none !important; }
}
