/* MRinBLACK – основной сайт. Палитра взята из зала: бутылочный зелёный, дуб, графит логотипа. */
:root {
  --green-deep: #0E1A15;   /* фон: стены зала в тени */
  --green: #16261F;        /* панели */
  --green-line: #25392F;   /* разделители */
  --graphite: #6F7270;     /* серый из логотипа */
  --bone: #ECE7DC;         /* основной текст */
  --bone-dim: #A9AEA6;     /* второстепенный текст */
  --oak: #B07A45;          /* дуб: цены, мелкие акценты */
  --red: #E1262D;          /* только черта «in» и запись */
  --display: "Dela Gothic One", system-ui, sans-serif;
  --text: "Golos Text", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-synthesis: none; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--green-deep);
  color: var(--bone);
  font: 400 17px/1.6 var(--text);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Красная черта: прогресс прокрутки ---------- */
.spine {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 3px; height: 100%;
  background: var(--red);
  transform-origin: top; transform: scaleY(var(--progress, 0));
}

/* ---------- Шапка ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.is-solid { background: rgba(14, 26, 21, .92); backdrop-filter: blur(10px); border-color: var(--green-line); }
.top .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.top__logo img { height: 40px; width: auto; }
.top__nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.top__nav a { text-decoration: none; color: var(--bone-dim); transition: color .2s; }
.top__nav a:hover { color: var(--bone); }
.top__phone { font-weight: 500; text-decoration: none; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font: 600 15px/1 var(--text); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--graphite); color: var(--bone); background: transparent;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--bone); }
.btn--book { background: var(--red); border-color: var(--red); color: #fff; }
.btn--book:hover { background: #c81d24; border-color: #c81d24; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1fr 3px 1fr;
}
.hero__text {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) clamp(40px, 8vh, 96px) max(var(--gutter), (100vw - var(--max)) / 2);
}
.hero__word {
  font: 400 clamp(56px, 9.6vw, 160px)/.88 var(--display);
  letter-spacing: -.01em; color: var(--bone);
}
.hero__word > span { display: block; white-space: nowrap; }
.hero__word .ch { display: inline-block; }
.hero__word .mr { color: var(--graphite); }
.hero__word .in {
  font-style: normal; font-size: .3em; font-weight: 700; letter-spacing: 0;
  color: var(--red); margin-left: .25em; vertical-align: .12em;
}
.hero__lead { max-width: 30ch; margin-top: 32px; font-size: clamp(18px, 1.6vw, 21px); color: var(--bone-dim); }
.hero__lead strong { color: var(--bone); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__bar { background: var(--red); transform-origin: top; position: relative; z-index: 3; }
.hero__photo { position: relative; overflow: hidden; }
.hero__photo img {
  width: 100%; height: 115%; object-fit: cover; object-position: 40% 30%;
  transform: translateY(var(--parallax, 0px)) scale(var(--zoom, 1));
  will-change: transform;
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,26,21,.35), transparent 30%);
}

/* Одна сцена загрузки: черта прорисовывается, затем слово и фото */
@media (prefers-reduced-motion: no-preference) {
  .hero__bar { animation: draw 1s cubic-bezier(.7, 0, .2, 1) both; }
  /* буквы выпрыгивают снизу по очереди, задержку ставит JS через --i */
  .hero__word .ch { animation: rise .9s calc(.65s + var(--i) * .06s) cubic-bezier(.2, .9, .2, 1.15) both; }
  .hero__word .in { animation: fade .5s 1.15s both; }
  .hero__lead, .hero__cta { animation: fade .7s 1.3s both; }
  .hero__photo { animation: reveal 1.3s .6s cubic-bezier(.7, 0, .2, 1) both; }
  .badge { animation: pop .7s 1.5s cubic-bezier(.2, .9, .3, 1.3) both; }
}
@keyframes draw { from { transform: scaleY(0); } }
@keyframes rise { from { transform: translateY(70%) rotate(6deg); opacity: 0; } }
@keyframes pop { from { transform: translate(-50%, -50%) scale(0) rotate(-90deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes reveal { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
