/* ═════════════════════════════════════════════════════════════
   PRICH magazine · Магазин мужей
   Глянцевая верстка: типографика, лифт, анимации
═════════════════════════════════════════════════════════════ */

:root {
  /* Палитра — глубокий журнальный нуар + шампань */
  --ink:        #100c0b;
  --ink-soft:   #1a1413;
  --ink-line:   #2a201d;
  --paper:      #f4ece0;
  --paper-2:    #ece2d2;
  --paper-3:    #e0d4bd;
  --cream:      #f9f3e7;
  --gold:       #c9a96e;
  --gold-deep:  #a98549;
  --gold-bright:#e6c98a;
  --wine:       #7a1d36;
  --wine-2:     #5a1426;
  --rose:       #c97a7a;

  --shadow-soft: 0 30px 80px -40px rgba(0,0,0,.55);
  --shadow-deep: 0 60px 120px -40px rgba(0,0,0,.7);

  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--gold); color: var(--ink); }

/* ─── Зерно/шум поверх всего ─── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ═══════════════════════════════════════════════
   МАСТХЭД (шапка)
═══════════════════════════════════════════════ */
.masthead {
  position: relative;
  z-index: 10;
  padding: 28px clamp(20px, 5vw, 64px) 18px;
  border-bottom: 1px solid rgba(16,12,11,.12);
  background: linear-gradient(to bottom, var(--paper) 70%, transparent);
}

.masthead__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.masthead__logo {
  font-family: "Italiana", "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
}
.masthead__logo em {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: var(--wine);
}

.masthead__nav {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.masthead__nav a {
  color: rgba(16,12,11,.7);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color .35s var(--ease);
}
.masthead__nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.masthead__nav a:hover { color: var(--ink); }
.masthead__nav a:hover::after { transform: scaleX(1); }

/* ═══════════════════════════════════════════════
   ОБЛОЖКА
═══════════════════════════════════════════════ */
.cover {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 80px;
  align-items: center;
  padding: clamp(40px, 8vw, 120px) clamp(20px, 5vw, 80px) 60px;
  overflow: hidden;
}

.cover__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: clamp(20px, 6vw, 80px);
}
.cover__bg-letter {
  font-family: "Italiana", serif;
  font-size: clamp(420px, 70vw, 920px);
  line-height: .8;
  color: var(--paper-3);
  opacity: .55;
  transform: translateY(8%);
  letter-spacing: -.05em;
  user-select: none;
  animation: floaty 14s ease-in-out infinite alternate;
}
@keyframes floaty {
  from { transform: translateY(8%) rotate(-.5deg); }
  to   { transform: translateY(4%) rotate(.5deg); }
}

.cover__inner {
  position: relative;
  z-index: 2;
  /* max-width убран: заголовок «МУЖЕЙ» — герой обложки и\u00a0должен иметь
     столько места, сколько ему\u00a0нужно. Лид и\u00a0автор у\u00a0блока
     ограничены своими max-width ниже. */
  width: 100%;
}

.cover__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(16,12,11,.65);
  margin-bottom: 36px;
}
.cover__bullet {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

.cover__title {
  margin: 0;
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.01em;
  max-width: 100%;
}
.cover__title-script {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(48px, 8vw, 120px);
  color: var(--ink);
  margin-left: -.04em;
  line-height: 1;
}
.cover__title-display {
  display: block;
  font-family: "Italiana", "Playfair Display", serif;
  font-size: clamp(72px, 14vw, 200px);
  /* трекинг плотный, чтобы кириллическое «МУЖЕЙ» влезало */
  letter-spacing: -.03em;
  /* line-height\u00a0≥\u00a01 + padding-top — иначе бреве над\u00a0Й обрезается
     и\u00a0буква читается как\u00a0И */
  line-height: 1;
  margin-top: -.02em;
  padding-top: .08em;
  white-space: nowrap;
  background: linear-gradient(180deg,
    var(--ink) 0%, var(--ink) 60%,
    var(--gold-deep) 61%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cover__lead {
  margin: 36px 0 0;
  max-width: 620px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.55;
  font-weight: 400;
  color: rgba(16,12,11,.82);
}

.cover__author {
  margin-top: 36px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.cover__author-line {
  display: flex; flex-direction: column;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.cover__author-line span { color: rgba(16,12,11,.5); }
.cover__author-line strong {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--ink);
  margin-top: 4px;
}

.cover__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
  padding: 20px 36px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  transition: color .5s var(--ease);
}
.cover__cta::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.cover__cta > * { position: relative; z-index: 1; }
.cover__cta:hover { color: var(--ink); }
.cover__cta:hover::before { transform: translateY(0); }
.cover__cta-arrow {
  display: inline-block;
  transition: transform .5s var(--ease);
}
.cover__cta:hover .cover__cta-arrow { transform: translateY(4px); }

.cover__sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  height: 100%;
  justify-content: center;
  font-size: 12px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: rgba(16,12,11,.5);
  writing-mode: vertical-rl;
}
.cover__sidebar-line {
  width: 1px; height: 80px;
  background: rgba(16,12,11,.3);
  writing-mode: horizontal-tb;
}

/* ═══════════════════════════════════════════════
   ОБЩИЕ "КИКЕРЫ" И ЗАГОЛОВКИ СЕКЦИЙ
═══════════════════════════════════════════════ */
.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  margin-bottom: 22px;
}
.kicker--light { color: var(--gold-bright); }

/* ═══════════════════════════════════════════════
   ВВОДНАЯ ИСТОРИЯ
═══════════════════════════════════════════════ */
.story {
  padding: clamp(60px, 10vw, 140px) clamp(20px, 6vw, 100px);
  border-top: 1px solid rgba(16,12,11,.1);
  background:
    radial-gradient(ellipse at top, rgba(201,169,110,.08), transparent 60%),
    var(--paper);
}

.story__head { max-width: 880px; margin: 0 auto 50px; text-align: center; }
.story__title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.story__title em {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--wine);
}

.story__columns {
  max-width: 1080px;
  margin: 0 auto;
  column-count: 2;
  column-gap: 56px;
}
@media (max-width: 760px) { .story__columns { column-count: 1; } }

.story__columns > * { break-inside: avoid; margin: 0 0 22px; }

.dropcap::first-letter {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  float: left;
  font-size: 5.6em;
  line-height: .85;
  padding: 6px 14px 0 0;
  color: var(--wine);
}

.rules {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(16,12,11,.15);
}
.rules li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(16,12,11,.15);
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  line-height: 1.5;
}
.rules span {
  flex: 0 0 auto;
  font-family: "Italiana", serif;
  font-size: 26px;
  color: var(--gold-deep);
  letter-spacing: .04em;
  min-width: 1.6em;
}
.rules strong { color: var(--wine); font-weight: 600; }

.pullquote {
  margin: 30px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--gold);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  color: var(--ink);
  position: relative;
}
.pullquote::before {
  content: "“";
  position: absolute;
  top: -20px; left: -10px;
  font-size: 100px;
  font-family: "Playfair Display", serif;
  color: var(--gold);
  line-height: 1;
}

/* ═══════════════════════════════════════════════
   ТЕСТ-ЛИФТ
═══════════════════════════════════════════════ */
.elevator-section {
  position: relative;
  padding: clamp(60px, 10vw, 140px) clamp(20px, 5vw, 80px) clamp(80px, 12vw, 160px);
  background:
    linear-gradient(180deg, var(--ink) 0%, #161010 50%, var(--ink) 100%);
  color: var(--cream);
  overflow: hidden;
}
.elevator-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201,169,110,.12), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(122,29,54,.18), transparent 55%);
  pointer-events: none;
}

.elevator-section__head {
  position: relative;
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}
.elevator-section__head h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  color: var(--cream);
}
.elevator-section__head h2 em {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--gold-bright);
}
.elevator-section__lead {
  margin-top: 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(20px, 1.6vw, 23px);
  line-height: 1.55;
  color: rgba(249,243,231,.78);
}

/* === ЕДИНАЯ СЦЕНА «ХОЛЛ ОТЕЛЯ» === */
.hall {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
}

/* Табло-маркиза над дверьми */
.hall__marquee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 12px 32px;
  background:
    linear-gradient(180deg, #1c1410 0%, #0a0605 100%);
  border: 1px solid rgba(201,169,110,.35);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -2px 8px rgba(0,0,0,.7),
    0 14px 40px -20px rgba(0,0,0,.7);
}
.hall__marquee-bulb {
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff5d0, var(--gold-deep));
  box-shadow: 0 0 12px rgba(230,201,138,.7);
  animation: bulbBlink 2.4s ease-in-out infinite;
}
.hall__marquee-bulb:last-child { animation-delay: 1.2s; }
@keyframes bulbBlink {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}
.hall__marquee-label {
  font-family: "Inter", monospace;
  font-size: 12px;
  letter-spacing: .4em;
  color: rgba(230,201,138,.55);
}
.hall__marquee-value {
  font-family: "Italiana", "Playfair Display", serif;
  font-size: 42px;
  line-height: 1;
  color: var(--gold-bright);
  text-shadow:
    0 0 8px rgba(230,201,138,.6),
    0 0 22px rgba(230,201,138,.35);
  min-width: 1.6ch;
  text-align: center;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.hall__marquee-value.is-shift {
  transform: translateY(-8px); opacity: 0;
}
.hall__marquee-arrow {
  font-size: 18px;
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(230,201,138,.6);
  opacity: .55;
}
.hall__marquee-arrow.is-pulse {
  animation: arrowPulse 1.2s ease-in-out;
}

.hall__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(18px, 3vw, 32px);
  align-items: stretch;
}
@media (max-width: 760px) {
  .hall__row { grid-template-columns: 1fr; }
}

/* ─── КАБИНА ─── */
.cabin {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: clamp(560px, 70vh, 760px);
  isolation: isolate;
  box-shadow:
    var(--shadow-deep),
    inset 0 0 0 1px rgba(0,0,0,.6);
}

/* Стенки кабины (фон/каркас) */
.cabin__walls {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(201,169,110,.18), transparent 60%),
    linear-gradient(180deg, #1c1612 0%, #0d0907 100%);
}
.cabin__ceiling {
  position: absolute; top: 0; left: 0; right: 0; height: 22px;
  z-index: 4;
  background:
    linear-gradient(180deg, #1a1410 0%, #0d0907 100%),
    repeating-linear-gradient(90deg,
      rgba(201,169,110,.18) 0 2px,
      transparent 2px 18px);
  border-bottom: 1px solid rgba(201,169,110,.32);
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  pointer-events: none;
}
.cabin__ceiling::after {
  /* латунная полоска под потолком */
  content: "";
  position: absolute; left: 12%; right: 12%; bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--gold), transparent);
}
.cabin__floor-tile {
  position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  z-index: 4;
  background:
    linear-gradient(180deg, #0d0907 0%, #1a1410 100%),
    repeating-linear-gradient(90deg,
      rgba(201,169,110,.1) 0 30px,
      rgba(0,0,0,.4) 30px 32px);
  border-top: 1px solid rgba(201,169,110,.28);
  box-shadow: 0 -4px 12px rgba(0,0,0,.5);
  pointer-events: none;
}
.cabin__lamp {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 4;
  width: 70%; height: 60px;
  background: radial-gradient(ellipse at top, rgba(255,235,190,.28), transparent 70%);
  pointer-events: none;
}

/* Латунный портал-рамка вокруг кабины */
.cabin__frame {
  position: absolute; inset: 0;
  z-index: 10;
  pointer-events: none;
  border: 1px solid rgba(201,169,110,.45);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 6px rgba(0,0,0,.55),
    inset 0 0 0 7px rgba(201,169,110,.25);
}

/* Интерьер: содержимое этажа, видно когда двери открыты */
.cabin__interior {
  position: relative;
  z-index: 1;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 64px) clamp(40px, 5vw, 64px);
  height: 100%;
  min-height: inherit;
  background:
    linear-gradient(180deg,
      rgba(244,236,224,.97) 0%,
      rgba(236,226,210,.97) 100%);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.cabin__interior::before {
  /* тонкая золотая рамка-«картина» по интерьеру */
  content: "";
  position: absolute;
  inset: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(201,169,110,.4);
  pointer-events: none;
}
.cabin__interior::after {
  /* мягкий блик в углу — играет роль «гало» под карандашным росчерком */
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(201,169,110,.28), transparent 60%);
  pointer-events: none;
}

/* Скрытый SVG с фильтрами — не должен занимать место */
.svg-defs {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* === Карандашный росчерк по теме этажа === */
.interior__sketch {
  position: absolute;
  /* правый нижний угол — над футером с\u00a0кнопками */
  bottom: clamp(96px, 11vw, 140px);
  right:  clamp(40px, 5vw, 70px);
  width:  clamp(120px, 14vw, 170px);
  height: clamp(120px, 14vw, 170px);
  z-index: 2;
  pointer-events: none;
  transform: rotate(-4deg);
  opacity: 0;
  transition: opacity .7s var(--ease-out) .15s;
}
.cabin__interior.is-changing .interior__sketch { opacity: 0; }
.interior__sketch.is-ready { opacity: .85; }

.interior__sketch svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: #2a1c12;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#pencil-wobble);
}
.interior__sketch svg .ink-soft {
  stroke: #4a3220;
  stroke-width: 1.2;
  opacity: .6;
}
.interior__sketch svg .ink-dash {
  stroke-dasharray: 3 4;
  opacity: .55;
}

/* Лёгкое «парение» — едва заметное покачивание росчерка */
.interior__sketch.is-ready {
  animation: sketchFloat 7s ease-in-out infinite alternate;
}
@keyframes sketchFloat {
  from { transform: rotate(-4deg) translateY(0); }
  to   { transform: rotate(-2deg) translateY(-4px); }
}

@media (max-width: 600px) {
  .interior__sketch {
    width: 90px; height: 90px;
    bottom: 90px; right: 22px;
  }
}
.cabin__interior.is-changing {
  opacity: 0;
  transform: translateY(14px);
}

.interior__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.interior__no {
  font-family: "Italiana", serif;
  font-size: 18px;
  letter-spacing: .25em;
  color: var(--gold-deep);
}
.interior__tag {
  color: rgba(16,12,11,.6);
  border: 1px solid rgba(16,12,11,.22);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
}

.interior__title {
  margin: 0 0 22px;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 56px);
  line-height: 1.05;
  letter-spacing: -.01em;
  position: relative;
  z-index: 1;
}

.interior__lead {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.55;
  font-style: italic;
  color: rgba(16,12,11,.82);
  margin: 0 0 22px;
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  position: relative;
  z-index: 1;
}

.interior__body {
  font-size: 19px;
  line-height: 1.7;
  color: rgba(16,12,11,.85);
  flex: 1;
  position: relative;
  z-index: 1;
  /* справа внизу — место для карандашного росчерка */
  padding-right: clamp(110px, 14vw, 180px);
}
@media (max-width: 600px) {
  .interior__body { padding-right: 0; }
}
.interior__body p { margin: 0 0 14px; }
.interior__body .display-msg {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 22px;
  color: var(--wine);
}
.interior__body .display-num {
  font-family: "Italiana", serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.35em;
  color: var(--ink);
  letter-spacing: .01em;
  background: linear-gradient(180deg, var(--ink) 0%, var(--wine) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0 2px;
}

.interior__foot {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ─── ДВЕРИ ПОВЕРХ ИНТЕРЬЕРА ─── */
.cabin__doors {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.cabin__door {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  overflow: hidden;
  /* Арт-деко латунь: вертикальные полированные пилястры */
  background:
    /* косой блик-движение */
    linear-gradient(115deg,
      transparent 35%,
      rgba(255,235,190,.10) 48%,
      transparent 62%),
    /* тонкая золотая микро-штриховка */
    repeating-linear-gradient(90deg,
      rgba(201,169,110,.0) 0px,
      rgba(201,169,110,.18) 1px,
      rgba(201,169,110,.0) 2px,
      rgba(201,169,110,.0) 14px),
    /* крупные пилястры (вертикальные планки) */
    repeating-linear-gradient(90deg,
      #1a1310 0px,
      #2a2017 22px,
      #3a2c20 24px,
      #2a2017 26px,
      #1a1310 48px),
    /* верт. градиент общий */
    linear-gradient(180deg, #2e231b 0%, #0c0807 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,235,190,.12),
    inset 0 -1px 0 rgba(0,0,0,.7);
  transition: transform 1.1s cubic-bezier(.7,.05,.2,1);
  will-change: transform;
}
.cabin__door--left  { left: 0;  }
.cabin__door--right { right: 0; }

/* Горизонтальные латунные пояса: верхний и нижний (карнизы) */
.cabin__door::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100%;
  pointer-events: none;
  background:
    /* верхний карниз */
    linear-gradient(180deg,
      rgba(230,201,138,.45) 0,
      rgba(201,169,110,.25) 6px,
      transparent 14px),
    /* нижний карниз */
    linear-gradient(0deg,
      rgba(230,201,138,.35) 0,
      rgba(201,169,110,.18) 8px,
      transparent 18px),
    /* центральный пояс с медальоном */
    linear-gradient(180deg,
      transparent calc(50% - 70px),
      rgba(201,169,110,.18) calc(50% - 70px),
      rgba(201,169,110,.30) calc(50% - 60px),
      rgba(201,169,110,.45) calc(50% - 1px),
      rgba(201,169,110,.30) calc(50% + 60px),
      rgba(201,169,110,.18) calc(50% + 70px),
      transparent calc(50% + 70px));
}

/* Арт-деко медальон/веер у центра — половинка на каждой створке */
.cabin__door::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 110px; height: 110px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    /* лучи веера */
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(230,201,138,.25) 0deg 6deg,
      transparent 6deg 18deg),
    /* центральный диск */
    radial-gradient(circle at 50% 50%,
      rgba(230,201,138,.38) 0%,
      rgba(201,169,110,.22) 28%,
      rgba(0,0,0,.0) 60%);
  box-shadow:
    inset 0 0 0 1px rgba(230,201,138,.35),
    0 0 22px rgba(230,201,138,.18);
  pointer-events: none;
}
.cabin__door--left::after  { right: -55px; }
.cabin__door--right::after { left:  -55px; }

/* Латунная ручка-планка */
.cabin__door-handle {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 5px; height: 86px;
  background: linear-gradient(180deg,
    #fff5d0 0%,
    var(--gold-bright) 22%,
    var(--gold) 50%,
    var(--gold-deep) 78%,
    #6e4f25 100%);
  border-radius: 3px;
  box-shadow:
    0 0 14px rgba(230,201,138,.5),
    inset 0 1px 0 rgba(255,255,255,.6),
    inset 0 -1px 0 rgba(0,0,0,.4);
}
.cabin__door--left  .cabin__door-handle { right: 18px; }
.cabin__door--right .cabin__door-handle { left:  18px; }

.cabin__door-seam {
  display: none;
}

/* По умолчанию двери ОТКРЫТЫ (за края) */
.cabin__door--left  { transform: translateX(-101%); }
.cabin__door--right { transform: translateX(101%); }

/* Закрытие — створки сходятся в центре */
.cabin__doors.is-closing .cabin__door--left  { transform: translateX(0); }
.cabin__doors.is-closing .cabin__door--right { transform: translateX(0); }
.cabin__doors.is-closing .cabin__door-seam   { opacity: 1; }

/* Открытие — снова уезжают за края */
.cabin__doors.is-open    .cabin__door--left  { transform: translateX(-101%); }
.cabin__doors.is-open    .cabin__door--right { transform: translateX(101%); }

/* Тряска кабины при движении */
.cabin.is-moving { animation: cabinShake 1.4s ease-in-out; }
@keyframes cabinShake {
  0%, 100% { transform: translateY(0); }
  10%  { transform: translateY(-2px) translateX(.5px); }
  25%  { transform: translateY(2px)  translateX(-.5px); }
  40%  { transform: translateY(-1px) translateX(.5px); }
  55%  { transform: translateY(2px) }
  70%  { transform: translateY(-2px) translateX(-.5px); }
  85%  { transform: translateY(1px); }
}

/* ─── СВЕТ ШАХТЫ — пробивается через щели закрытых дверей ─── */
.cabin__leaks {
  position: absolute;
  inset: 0;
  z-index: 7;            /* выше дверей (5), ниже латунной рамки (10) */
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.cabin.is-traveling .cabin__leaks { opacity: 1; }

/* Базовый «луч» — невидим, пока не\u00a0анимируется */
.cabin__leak {
  position: absolute;
  background-repeat: no-repeat;
  filter: blur(.6px);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* 1) Вертикальная щель между створками — основной источник света */
.cabin__leak--seam {
  /* немного шире самого шва, чтобы рассеяние выходило на\u00a0створки */
  top: 22px;            /* под потолочным карнизом */
  bottom: 18px;         /* над напольной плиткой */
  left: 50%;
  width: 14px;
  transform: translateX(-50%);
  /* тёплый блик с\u00a0«хвостами» вверх и\u00a0вниз — это и\u00a0есть «лампа»,
     которая сейчас проезжает мимо щели */
  background-image: linear-gradient(
    180deg,
    transparent 0%,
    transparent 30%,
    rgba(255,225,170,.55) 42%,
    rgba(255,245,215,1)   50%,
    rgba(255,225,170,.55) 58%,
    transparent 70%,
    transparent 100%);
  background-size: 100% 240%;
  background-position: 50% -120%;
  box-shadow:
    0 0 14px 2px rgba(255,235,190,.35),
    0 0 36px 6px rgba(255,235,190,.18);
  border-radius: 4px;
  animation: leakSeamUp .55s linear infinite;
  animation-play-state: paused;
}

/* 2) Тонкая горизонтальная щель сверху (между потолком и\u00a0дверями) */
.cabin__leak--top {
  top: 22px;            /* прямо под потолочным карнизом */
  left: 8%;
  right: 8%;
  height: 3px;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,235,190,.0) 15%,
    rgba(255,245,215,.85) 50%,
    rgba(255,235,190,.0) 85%,
    transparent 100%);
  border-radius: 2px;
  box-shadow:
    0 0 8px rgba(255,235,190,.55),
    0 4px 18px rgba(255,235,190,.25);
  opacity: 0;
  animation: leakFlash .55s linear infinite;
  animation-play-state: paused;
}

/* 3) Щель снизу — слабее, как дальний отблеск */
.cabin__leak--bottom {
  bottom: 18px;
  left: 14%;
  right: 14%;
  height: 2px;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,225,170,.55) 50%,
    transparent 100%);
  border-radius: 2px;
  box-shadow:
    0 0 6px rgba(255,225,170,.4),
    0 -4px 14px rgba(255,225,170,.2);
  opacity: 0;
  animation: leakFlash .55s linear infinite;
  animation-delay: -.27s;            /* со\u00a0сдвигом — вторая лампа поодаль */
  animation-play-state: paused;
}

.cabin.is-traveling .cabin__leak--seam,
.cabin.is-traveling .cabin__leak--top,
.cabin.is-traveling .cabin__leak--bottom {
  animation-play-state: running;
}

/* Бегущая лампа сквозь вертикальную щель — снизу вверх по\u00a0щели
   (это иллюзия лампы, которая «опускается» относительно кабины,
   потому что кабина едет ВВЕРХ) */
@keyframes leakSeamUp {
  from { background-position: 50% -120%; }
  to   { background-position: 50%  120%; }
}
/* Обратное направление: спускаемся → лампа в\u00a0щели идёт сверху вниз */
.cabin.is-down .cabin__leak--seam {
  animation-name: leakSeamDown;
}
@keyframes leakSeamDown {
  from { background-position: 50%  120%; }
  to   { background-position: 50% -120%; }
}

/* Вспышки горизонтальных щелей — короткий пик в\u00a0начале цикла,
   совпадающий с\u00a0моментом, когда лампа проезжает уровень кабины */
@keyframes leakFlash {
  0%   { opacity: 0;   }
  6%   { opacity: 1;   }
  18%  { opacity: .25; }
  35%  { opacity: 0;   }
  100% { opacity: 0;   }
}

/* Лампа кабины мерцает во время движения */
.cabin.is-traveling .cabin__lamp {
  animation: lampFlicker .28s steps(2, end) infinite;
}
@keyframes lampFlicker {
  0%   { opacity: 1; }
  45%  { opacity: .35; }
  46%  { opacity: .85; }
  100% { opacity: 1; }
}

/* Маркиза-табло «дёргается» при поездке */
.hall.is-traveling .hall__marquee {
  animation: marqueeShiver 1.4s ease-in-out;
}
@keyframes marqueeShiver {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-1px); }
  40% { transform: translateY(1px); }
  70% { transform: translateY(-1px); }
}

.hall.is-traveling .hall__marquee-bulb {
  animation: bulbRapid .25s steps(2, end) infinite;
}
@keyframes bulbRapid {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1;   }
}

/* «Динь!» при остановке — маркиза вспыхивает */
.hall__marquee.is-arrive {
  animation: marqueeArrive .9s ease-out;
}
@keyframes marqueeArrive {
  0%   { box-shadow:
           inset 0 1px 0 rgba(255,255,255,.06),
           inset 0 -2px 8px rgba(0,0,0,.7),
           0 14px 40px -20px rgba(0,0,0,.7); }
  20%  { box-shadow:
           inset 0 0 0 1px rgba(255,235,190,.6),
           0 0 32px rgba(230,201,138,.7),
           0 0 80px rgba(230,201,138,.4); }
  100% { box-shadow:
           inset 0 1px 0 rgba(255,255,255,.06),
           inset 0 -2px 8px rgba(0,0,0,.7),
           0 14px 40px -20px rgba(0,0,0,.7); }
}

/* ─── CALLBOX (панель этажей рядом с лифтом) ─── */
.callbox {
  width: clamp(110px, 14vw, 150px);
  background:
    linear-gradient(180deg, #1d1612 0%, #0d0907 100%);
  border: 1px solid rgba(201,169,110,.3);
  border-radius: 4px;
  padding: 18px 14px 16px;
  box-shadow:
    var(--shadow-deep),
    inset 0 1px 0 rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  align-self: stretch;
  position: relative;
}
.callbox::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201,169,110,.18);
  border-radius: 3px;
  pointer-events: none;
}

@media (max-width: 760px) {
  .callbox {
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 14px;
  }
}

.callbox__title {
  font-family: "Inter", monospace;
  font-size: 12px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: rgba(230,201,138,.55);
  text-align: center;
  line-height: 1.4;
}

.callbox__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1;
  padding: 6px 0;
}
@media (max-width: 760px) {
  .callbox__buttons {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    width: 100%;
    padding: 4px 0;
  }
}

.callbox__legend {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.callbox__legend span {
  width: 22px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(230,201,138,.4), transparent);
}
@media (max-width: 760px) { .callbox__legend { display: none; } }

/* подсказка под сценой */
.hall__hint {
  margin: 26px auto 0;
  max-width: 680px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: rgba(249,243,231,.7);
}
.hall__hint em { color: var(--gold-bright); font-style: italic; font-weight: 600; }

/* ═══════════════════════════════════════════════
   ОБЩАЯ СТАТИСТИКА МАГАЗИНА (под лифтом)
═══════════════════════════════════════════════ */
.hall__stats {
  margin: 30px auto 0;
  max-width: 760px;
  padding: 22px clamp(16px, 3vw, 32px) 24px;
  background:
    linear-gradient(180deg, rgba(40,28,22,.55), rgba(20,12,8,.7));
  border: 1px solid rgba(201,169,110,.22);
  border-radius: 6px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(230,201,138,.12),
    0 14px 40px rgba(0,0,0,.4);
}
.hall__stats::before,
.hall__stats::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: .5;
}
.hall__stats::before { left: -32px; }
.hall__stats::after  { right: -32px; }

.hall__stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 16px 28px;
  text-align: center;
}
.hall__stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 110px;
}
.hall__stats-item strong {
  font-family: "Italiana", serif;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--gold-bright);
  line-height: 1;
  font-weight: 400;
  letter-spacing: .02em;
}
.hall__stats-item span {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(249,243,231,.6);
}

.hall__stats-bars {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: end;
  height: 120px;
  padding: 26px 8px 0;
  border-top: 1px solid rgba(201,169,110,.15);
}
.hall__stats-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 4px;
}
.hall__stats-bar-fill {
  display: block;
  width: 100%;
  max-width: 40px;
  min-height: 2px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 12px rgba(230,201,138,.25);
  transition: height .8s var(--ease);
}
.hall__stats-bar-num {
  font-family: "Italiana", serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--cream);
  position: absolute;
  bottom: calc(100% + 6px);
  pointer-events: none;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(10,6,4,.78);
  border: 1px solid rgba(201,169,110,.45);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  white-space: nowrap;
  letter-spacing: .04em;
}
.hall__stats-bar-floor {
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(249,243,231,.55);
  text-transform: uppercase;
}
.hall__stats-note {
  margin: 18px 0 0;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(249,243,231,.6);
}

/* ═══════════════════════════════════════════════
   ПОЭТАЖНЫЕ СЧЁТЧИКИ (внутри кабины)
═══════════════════════════════════════════════ */
.interior__stats {
  margin: 8px 0 14px;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(16,12,11,.6);
  border-top: 1px solid rgba(16,12,11,.1);
  border-bottom: 1px solid rgba(16,12,11,.1);
  background: linear-gradient(180deg, rgba(201,169,110,.06), rgba(201,169,110,.02));
}
.interior__stats strong {
  font-family: "Italiana", serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .02em;
  text-transform: none;
}
.interior__stats-label {
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(16,12,11,.55);
}
.interior__stats-dot {
  color: rgba(201,169,110,.6);
  margin: 0 2px;
}
.interior__stats-soft {
  font-style: italic;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(16,12,11,.6);
}

/* ═══════════════════════════════════════════════
   ЗАМОК — магазин закрыт для тех, кто уже выбрал
═══════════════════════════════════════════════ */
.cabin__lock {
  position: absolute;
  inset: 22px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s var(--ease) .2s;
}
.cabin__lock.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.cabin__lock-plaque {
  max-width: 460px;
  width: calc(100% - 40px);
  padding: 32px clamp(20px, 4vw, 40px);
  text-align: center;
  background:
    linear-gradient(180deg, #f4ece0 0%, #e9dcc0 100%);
  border: 1px solid rgba(149,108,52,.4);
  border-radius: 4px;
  color: var(--ink);
  box-shadow:
    0 0 0 6px rgba(20,12,8,.5),
    0 0 0 7px rgba(201,169,110,.7),
    0 30px 80px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.5);
  position: relative;
  transform: translateY(0);
  animation: lockAppear 1s var(--ease) both;
}
.cabin__lock-plaque::before,
.cabin__lock-plaque::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff5d0 0%, var(--gold) 50%, var(--gold-deep) 100%);
  box-shadow: 0 0 4px rgba(0,0,0,.5);
  top: 14px;
}
.cabin__lock-plaque::before { left: 14px; }
.cabin__lock-plaque::after  { right: 14px; }

@keyframes lockAppear {
  0%   { transform: scale(.96) translateY(8px); opacity: 0; }
  60%  { transform: scale(1.01) translateY(-2px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.cabin__lock-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 5px 12px;
  border: 1px solid rgba(149,108,52,.5);
  border-radius: 2px;
  margin-bottom: 14px;
}
.cabin__lock-title {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  color: var(--ink);
}
.cabin__lock-floor {
  margin: 0 0 10px;
  font-family: "Italiana", serif;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--ink);
  letter-spacing: .02em;
}
.cabin__lock-floor span#lockedType {
  color: var(--gold-deep);
  font-style: italic;
}
.cabin__lock-dot { margin: 0 8px; color: var(--gold); }
.cabin__lock-meta {
  margin: 0 0 22px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(16,12,11,.7);
}

/* Затемнение кабины в режиме замка */
.cabin.is-locked .cabin__interior,
.cabin.is-locking .cabin__interior {
  filter: blur(2px) brightness(.6);
  pointer-events: none;
}

/* === Локализованный замок результат-секции === */
.result__stat {
  margin: 8px 0 18px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(201,169,110,.12), rgba(201,169,110,.04));
  border-left: 3px solid var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(16,12,11,.88);
  letter-spacing: .005em;
}
.result__stat strong {
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  margin: 0 2px;
}

@media (max-width: 760px) {
  .hall__stats { padding: 18px 14px 20px; }
  .hall__stats-bars { height: 90px; }
  .cabin__lock { inset: 12px; }
  .cabin__lock-plaque { padding: 24px 18px; }
}

/* === Кнопки общего вида === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease), background .4s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid {
  background: var(--ink);
  color: var(--cream);
}
.btn--solid::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: translateY(100%);
  transition: transform .5s var(--ease);
}
.btn--solid:hover { color: var(--ink); }
.btn--solid:hover::before { transform: translateY(0); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

/* ═══════════════════════════════════════════════
   КНОПКИ ЭТАЖЕЙ (используются в callbox)
═══════════════════════════════════════════════ */

@keyframes arrowPulse {
  0%   { transform: translateY(6px); opacity: .2; }
  50%  { transform: translateY(-2px); opacity: 1; }
  100% { transform: translateY(0); opacity: .5; }
}

/* === Круглая латунная кнопка как в дорогом отеле === */
.floor-btn {
  position: relative;
  appearance: none;
  cursor: pointer;
  /* идеальный круг */
  width: clamp(58px, 6vw, 72px);
  height: clamp(58px, 6vw, 72px);
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  isolation: isolate;
  transition: transform .2s var(--ease);
}

/* Латунный «ободок» — внешнее кольцо */
.floor-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    /* конический градиент имитирует полированную латунь */
    conic-gradient(
      from 220deg,
      #6b4d24 0deg,
      #c9a96e 60deg,
      #fff0c4 110deg,
      #c9a96e 160deg,
      #6b4d24 230deg,
      #3b2a14 300deg,
      #c9a96e 360deg);
  box-shadow:
    0 6px 14px rgba(0,0,0,.55),
    0 1px 0 rgba(255,235,190,.25),
    inset 0 0 0 1px rgba(0,0,0,.4);
}

/* Внутренняя «таблетка» с цифрой */
.floor-btn span {
  position: absolute;
  inset: 5px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: "Italiana", "Playfair Display", serif;
  font-size: clamp(22px, 1.8vw, 26px);
  letter-spacing: 0;
  color: var(--gold-bright);
  text-shadow:
    0 1px 0 rgba(0,0,0,.7),
    0 0 4px rgba(0,0,0,.6);
  background:
    /* лёгкий бликующий свет сверху */
    radial-gradient(circle at 50% 28%,
      rgba(255,235,190,.18) 0%,
      transparent 55%),
    /* центральная вогнутость */
    radial-gradient(circle at 50% 65%,
      #1a1208 0%,
      #0a0604 70%);
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,.85),
    inset 0 -1px 0 rgba(230,201,138,.18),
    inset 0 1px 0 rgba(0,0,0,.6);
  transition:
    box-shadow .35s var(--ease),
    color .35s var(--ease),
    background .45s var(--ease),
    text-shadow .35s var(--ease);
}

/* Светящееся «гало» вокруг при активации */
.floor-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,201,138,.55) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}

/* hover (только для активной/нажимаемой кнопки) */
.floor-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.floor-btn:hover:not(:disabled) span {
  color: #fff;
  text-shadow: 0 0 10px rgba(230,201,138,.9);
  background:
    radial-gradient(circle at 50% 30%,
      rgba(255,235,190,.35) 0%,
      rgba(0,0,0,0) 60%),
    radial-gradient(circle at 50% 65%, #2a1d10 0%, #0d0805 75%);
}
.floor-btn:hover:not(:disabled)::after { opacity: .55; }

.floor-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.floor-btn:active:not(:disabled) span {
  box-shadow:
    inset 0 4px 8px rgba(0,0,0,.95),
    inset 0 0 0 1px rgba(230,201,138,.4);
}

/* «Включена» — нынешний этаж: горит мягким золотом */
.floor-btn.is-active span {
  color: #fffaf0;
  text-shadow:
    0 0 10px rgba(230,201,138,.9),
    0 0 22px rgba(230,201,138,.55);
  background:
    radial-gradient(circle at 50% 30%,
      rgba(255,235,190,.55) 0%,
      rgba(255,235,190,.05) 55%),
    radial-gradient(circle at 50% 65%, #4a3520 0%, #170d05 80%);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.6),
    inset 0 0 0 1px rgba(230,201,138,.55),
    0 0 16px rgba(230,201,138,.45);
}
.floor-btn.is-active::after {
  opacity: 1;
}

/* Заблокированные (нельзя — спустить или перепрыгнуть) */
.floor-btn:disabled {
  cursor: not-allowed;
  transform: none;
}
.floor-btn:disabled::before {
  /* латунь становится тусклой */
  background:
    conic-gradient(
      from 220deg,
      #2a1f12 0deg,
      #4a3922 90deg,
      #6b5028 160deg,
      #4a3922 220deg,
      #2a1f12 300deg,
      #4a3922 360deg);
  box-shadow:
    0 3px 6px rgba(0,0,0,.5),
    inset 0 0 0 1px rgba(0,0,0,.5);
}
.floor-btn:disabled span {
  color: rgba(201,169,110,.25);
  text-shadow: none;
  background:
    radial-gradient(circle at 50% 65%, #0a0604 0%, #060403 100%);
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,.95),
    inset 0 0 0 1px rgba(0,0,0,.6);
}

/* Маркер «пройдено» (кнопка ниже текущего этажа) — отключён по просьбе */
.floor-btn.is-passed::after {
  content: none;
}

/* ═══════════════════════════════════════════════
   РЕЗУЛЬТАТ — модальный лист
═══════════════════════════════════════════════ */
.result {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(16,12,11,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.result.is-visible { opacity: 1; pointer-events: auto; }
.result[hidden] { display: none; }

.result__sheet {
  position: relative;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cream);
  color: var(--ink);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-deep);
  transform: translateY(30px) scale(.98);
  opacity: 0;
  transition: transform .55s var(--ease-out), opacity .55s var(--ease-out);
}
.result.is-visible .result__sheet { transform: translateY(0) scale(1); opacity: 1; }
.result__sheet::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201,169,110,.45);
  pointer-events: none;
}

.result__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(16,12,11,.2);
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.result__close:hover { background: var(--ink); color: var(--cream); transform: rotate(90deg); }

.result__head h3 {
  margin: 0 0 14px;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
}
.result__chip {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  padding: 7px 14px;
}

.result__body { margin-top: 28px; }
.result__lead {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 23px;
  line-height: 1.5;
  color: rgba(16,12,11,.88);
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  margin: 0 0 26px;
}

.result__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  border-top: 1px solid rgba(16,12,11,.15);
  padding-top: 22px;
}
@media (max-width: 700px) { .result__grid { grid-template-columns: 1fr; } }
.result__grid h4 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.result__grid p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(16,12,11,.88);
}

.result__foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(16,12,11,.15);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   РАЗБОР (карточки)
═══════════════════════════════════════════════ */
.analysis {
  padding: clamp(60px, 10vw, 140px) clamp(20px, 5vw, 80px);
  background: var(--paper-2);
  border-top: 1px solid rgba(16,12,11,.08);
}
.analysis__head { max-width: 880px; margin: 0 auto 50px; text-align: center; }
.analysis__head h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
}
.analysis__head h2 em {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--wine);
}

.analysis__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1024px) { .analysis__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .analysis__grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 28px 24px;
  background: var(--cream);
  border: 1px solid rgba(16,12,11,.08);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.card--wide { grid-column: span 2; }
@media (max-width: 1024px) { .card--wide { grid-column: span 2; } }
@media (max-width: 600px)  { .card--wide { grid-column: span 1; } }

.card__no {
  display: block;
  font-family: "Italiana", serif;
  font-size: 14px;
  letter-spacing: .3em;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.card h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
}
.card p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(16,12,11,.8);
}

.card__stat {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(16,12,11,.2);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.card__stat-value {
  font-family: "Italiana", serif;
  font-size: 56px;
  line-height: 1;
  color: var(--wine);
  letter-spacing: -.02em;
}
.card__stat-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  font-style: italic;
  color: rgba(16,12,11,.7);
}

.card--accent {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.card--accent .card__no { color: var(--gold-bright); }
.card--accent p { color: rgba(249,243,231,.78); }

/* ═══════════════════════════════════════════════
   КОЛОНКА ПСИХОЛОГА
═══════════════════════════════════════════════ */
.wisdom {
  padding: clamp(60px, 10vw, 140px) clamp(20px, 5vw, 80px);
  background:
    radial-gradient(ellipse at center, #1c1311 0%, #0a0706 80%);
  color: var(--cream);
}

.wisdom__frame {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 68px);
  border: 1px solid rgba(201,169,110,.3);
  position: relative;
}
.wisdom__frame::before,
.wisdom__frame::after {
  content: "";
  position: absolute;
  width: 30px; height: 30px;
  border: 1px solid var(--gold);
}
.wisdom__frame::before { top: -6px; left: -6px; border-right: none; border-bottom: none; }
.wisdom__frame::after  { bottom: -6px; right: -6px; border-left: none; border-top: none; }

.wisdom h2 {
  margin: 0 0 32px;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  color: var(--cream);
}
.wisdom h2 em {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--gold-bright);
}

.wisdom__columns {
  column-count: 2;
  column-gap: 40px;
  font-family: "Cormorant Garamond", serif;
  font-size: 21px;
  line-height: 1.65;
  color: rgba(249,243,231,.85);
}
@media (max-width: 760px) { .wisdom__columns { column-count: 1; } }
.wisdom__columns p { margin: 0 0 16px; break-inside: avoid; }

.wisdom__signature {
  margin-top: 36px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(201,169,110,.75);
  border-top: 1px solid rgba(201,169,110,.2);
  padding-top: 18px;
  flex-wrap: wrap;
}
.wisdom__signature strong {
  font-family: "Italiana", serif;
  font-size: 20px;
  letter-spacing: .15em;
  color: var(--gold-bright);
}

/* ═══════════════════════════════════════════════
   ПОДВАЛ
═══════════════════════════════════════════════ */
.foot {
  padding: 28px clamp(20px, 5vw, 80px);
  background: var(--ink);
  color: rgba(249,243,231,.55);
}
.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.foot__row a {
  position: relative;
  color: var(--gold-bright);
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--gold-bright), var(--gold-bright));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: color .3s var(--ease), background-size .4s var(--ease), text-shadow .3s var(--ease);
}
.foot__row a:hover,
.foot__row a:focus-visible {
  color: var(--cream);
  background-image: linear-gradient(var(--cream), var(--cream));
  background-size: 100% 1px;
  text-shadow: 0 0 12px rgba(230,201,138,.45);
  outline: none;
}

/* ═══════════════════════════════════════════════
   АНИМАЦИЯ ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ (через IO)
═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   АДАПТИВ
═══════════════════════════════════════════════ */
@media (max-width: 760px) {
  .masthead__row { text-align: center; }

  .cover { grid-template-columns: 1fr; }
  .cover__sidebar { display: none; }

  .cabin { min-height: 480px; }
  .interior__title { font-size: 28px; }
}

/* ═══════════════════════════════════════════════
   МОБИЛЬНЫЕ — планшет/телефон (≤ 600px)
═══════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* — ОБЛОЖКА — */
  .cover {
    min-height: auto;
    padding: 32px 18px 48px;
  }
  .cover__bg { justify-content: center; padding-right: 0; }
  .cover__bg-letter {
    font-size: clamp(280px, 90vw, 460px);
    transform: translateY(6%);
    opacity: .35;
  }
  .cover__title-display {
    font-size: clamp(56px, 17vw, 110px);
    white-space: normal;
    word-break: keep-all;
  }
  .cover__title-script {
    font-size: clamp(40px, 10vw, 64px);
  }
  .cover__cta {
    margin-top: 32px;
    padding: 14px 22px;
    font-size: 10px;
    letter-spacing: .22em;
  }

  /* — ШАПКА — */
  .masthead { padding: 18px 14px 14px; }
  .masthead__nav {
    gap: 14px 22px;
    font-size: 12px;
    letter-spacing: .22em;
  }

  /* — ИСТОРИЯ — */
  .story { padding: 48px 18px; }
  .story__title { font-size: clamp(28px, 7vw, 44px); }
  .story__head { margin-bottom: 32px; }
  .rules li { padding-left: 36px; font-size: 18px; }
  .rules span { font-size: 22px; }

  /* — ТЕСТ-ЛИФТ: общий блок — */
  .elevator-section { padding: 48px 14px; }
  .elevator-section__head h2 { font-size: clamp(26px, 6.5vw, 38px); }
  .elevator-section__lead { font-size: 17px; line-height: 1.5; }

  /* Табло-маркиза */
  .hall__marquee {
    padding: 10px 16px;
    gap: 10px;
    margin-bottom: 14px;
  }
  .hall__marquee-value { font-size: 30px; }
  .hall__marquee-label { font-size: 11px; letter-spacing: .28em; }

  /* Кабина */
  .cabin {
    min-height: 460px;
    border-radius: 3px;
  }
  .cabin__interior {
    padding: 26px 20px 28px;
  }
  .interior__top { gap: 10px; }
  .interior__no  { font-size: 14px; }
  .interior__tag { font-size: 11px; letter-spacing: .2em; padding: 5px 10px; }
  .interior__title { font-size: 25px; line-height: 1.15; }
  .interior__lead { font-size: 17px; line-height: 1.5; }
  .interior__body { font-size: 17px; line-height: 1.65; }
  .interior__body p { font-size: 17px; }
  .interior__body .display-msg { font-size: 19px; }

  /* Кнопки внутри этажа — в столбик во всю ширину */
  .interior__foot {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }
  .interior__foot .btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 12px;
    letter-spacing: .22em;
  }

  /* Панель этажей: 6 круглых кнопок в ряд → грид 6 колонок,
     меньшего размера, без переносов */
  .callbox {
    padding: 12px 12px 14px;
    flex-direction: column;
    gap: 10px;
  }
  .callbox__title {
    font-size: 11px;
    letter-spacing: .3em;
    text-align: center;
  }
  .callbox__buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    width: 100%;
    justify-items: center;
  }
  .floor-btn {
    width: 46px;
    height: 46px;
    min-width: 0;
  }
  .floor-btn span { font-size: 18px; }

  /* Замок (поверх дверей) */
  .cabin__lock { inset: 10px; }
  .cabin__lock-plaque {
    padding: 24px 18px;
    width: calc(100% - 14px);
  }
  .cabin__lock-title { font-size: 22px; }
  .cabin__lock-floor {
    font-size: 17px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .cabin__lock-dot { display: none; }
  .cabin__lock-meta { font-size: 16px; line-height: 1.5; margin-bottom: 18px; }

  /* Подсказка под лифтом */
  .hall__hint { font-size: 17px; padding: 0 10px; line-height: 1.5; }

  /* Общая статистика — вертикально, бары в 2 ряда */
  .hall__stats {
    margin-top: 22px;
    padding: 20px 14px 22px;
  }
  .hall__stats-row { gap: 10px; }
  .hall__stats-item {
    min-width: 0;
    flex: 1 1 30%;
    gap: 6px;
  }
  .hall__stats-item strong { font-size: 24px; }
  .hall__stats-item span {
    font-size: 9px;
    letter-spacing: .12em;
    line-height: 1.25;
    word-break: keep-all;
    text-wrap: balance;
  }
  .hall__stats-bars {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    height: 90px;
    padding: 0;
    padding-top: 22px;
  }
  .hall__stats-bar-fill { max-width: 100%; }
  .hall__stats-bar-num  { font-size: 13px; }
  .hall__stats-bar-floor { font-size: 11px; letter-spacing: .15em; }
  .hall__stats-note { font-size: 14px; line-height: 1.5; }

  /* — РЕЗУЛЬТАТ (модалка) — */
  .result { padding: 12px; }
  .result__sheet { padding: 24px 20px; }
  .result__head h3 { font-size: clamp(24px, 6.5vw, 34px); }
  .result__lead { font-size: 18px; line-height: 1.5; }
  .result__stat { font-size: 16px; padding: 12px 14px; }
  .result__stat strong { font-size: 20px; }
  .result__grid h4 { font-size: 13px; }
  .result__grid p { font-size: 17px; line-height: 1.55; }
  .result__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .result__foot .btn { width: 100%; }

  /* — МНЕНИЕ ПСИХОЛОГА — */
  .wisdom { padding: 48px 14px; }
  .wisdom__frame { padding: 28px 18px; }
  .wisdom h2 { font-size: clamp(26px, 6.5vw, 38px); }
  .wisdom__columns p { font-size: 18px; line-height: 1.6; }
  .wisdom__signature { font-size: 12px; }
  .wisdom__signature strong { font-size: 17px; }

  /* — ПОДВАЛ — */
  .foot { padding: 22px 14px; }
  .foot__row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════════
   САМЫЕ УЗКИЕ ЭКРАНЫ (≤ 380px) — финальная подгонка
═══════════════════════════════════════════════ */
@media (max-width: 380px) {
  .cover__title-display { font-size: clamp(48px, 16vw, 80px); }
  .cover__title-script  { font-size: clamp(34px, 9vw, 52px); }
  .cover__bg-letter { font-size: clamp(240px, 85vw, 360px); }

  .cabin { min-height: 420px; }
  .cabin__interior { padding: 22px 16px 24px; }
  .interior__title { font-size: 22px; }
  .interior__body, .interior__body p { font-size: 16px; }
  .interior__lead { font-size: 16px; }
  .interior__sketch { width: 70px; height: 70px; }

  .floor-btn { width: 42px; height: 42px; }
  .floor-btn span { font-size: 16px; }
  .callbox__buttons { gap: 4px; }

  .hall__marquee-value { font-size: 26px; }

  .hall__stats-bar-floor { font-size: 10px; }
  .hall__stats-bar-num   { font-size: 12px; }

  .cabin__lock-plaque { padding: 18px 12px; }
  .cabin__lock-title { font-size: 18px; }

  /* Совсем узко — статистика-подписи в столбик и без трекинга */
  .hall__stats-item span {
    font-size: 8px;
    letter-spacing: .06em;
  }
  .hall__stats-item strong { font-size: 22px; }
}
