/* «Сорок ступеней» — стили.
   Палитра: бумага, винный, латунь, чернила. Шрифты: Cormorant Garamond + Onest. */

:root {
  --paper: #F1E8D8;
  --paper2: #E6D9C2;
  --ink: #1A1215;
  --ink2: #261A1E;
  --wine: #561820;
  --wine2: #3B0E14;
  --brass: #C08E4E;
  --brass2: #E4C088;
  --muted: #76655C;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Onest', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --over: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --inout: cubic-bezier(.76, 0, .24, 1);
  --pad: clamp(20px, 5.2vw, 150px);
  --fs: clamp(15px, .5vw + 9.5px, 23px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs);
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--wine); color: var(--paper); }

/* зерно плёнки */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- типографика ---------- */
.eyebrow {
  font-family: var(--sans); font-size: .72em; letter-spacing: .28em; text-transform: uppercase;
  color: var(--wine); font-weight: 500; margin-bottom: 1.6em; display: flex; align-items: center; gap: 1em;
}
.eyebrow::before { content: ''; width: 2.6em; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--light { color: var(--brass2); }
.h2 {
  font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.01em;
  font-size: clamp(42px, 5.4vw, 156px);
}
.h2 em { font-style: italic; font-weight: 300; color: var(--wine); }
.kicker { font-size: .72em; letter-spacing: .3em; text-transform: uppercase; }

/* ---------- кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05em 2em; border-radius: 999px; text-decoration: none; font-size: .86em; letter-spacing: .06em;
  font-weight: 500; overflow: hidden; border: 1px solid transparent; cursor: pointer;
  transition: color .3s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ''; position: absolute; left: -10%; right: -10%; top: 100%; height: 240%; border-radius: 50%;
  transition: top .6s var(--out);
}
.btn:hover::before { top: -70%; }
.btn--brass { background: var(--brass2); color: var(--ink); }
.btn--brass::before { background: var(--paper); }
.btn--ghost { border-color: rgba(241, 232, 216, .45); color: var(--paper); }
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover { color: var(--ink); }
.btn--wide { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--brass2); outline-offset: 3px; }

/* ---------- занавес (интро и уход со страницы) ---------- */
.curtain { display: none; }
.js .curtain { display: block; position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; pointer-events: none; }
.curtain__bar { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--wine2); }
.curtain__bar--top { top: 0; }
.curtain__bar--bot { bottom: 0; }
.curtain__count {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: var(--brass2);
  font-family: var(--serif);
}
.curtain__num { display: block; font-size: clamp(64px, 9vw, 200px); line-height: 1; font-weight: 300; font-style: italic; font-variant-numeric: tabular-nums; }
.curtain__count small { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.is-ready .curtain__bar--top { transform: translateY(-101%); }
.is-ready .curtain__bar--bot { transform: translateY(101%); }
.is-ready .curtain__count { opacity: 0; }

/* ---------- навигация ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px, 1.6vw, 34px) var(--pad); color: var(--paper); transition: color .5s, transform .6s var(--out);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav::before {
  content: ''; position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: linear-gradient(180deg, rgba(26, 18, 21, .55), rgba(26, 18, 21, 0));
}
.nav--scrolled::before { opacity: 1; }
[data-navtone="light"] .nav { color: var(--ink); }
[data-navtone="light"] .nav::before { background: linear-gradient(180deg, rgba(241, 232, 216, .85), rgba(241, 232, 216, 0)); }
.nav--hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: .7em; text-decoration: none; font-family: var(--serif); font-size: 1.35em; font-style: italic; letter-spacing: .01em; }
.nav__mark { width: 1.05em; height: 1.3em; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 56px); font-size: .82em; letter-spacing: .08em; }
.nav__links a { text-decoration: none; position: relative; padding: .3em 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--out); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: inline-block; text-decoration: none; font-size: .78em; letter-spacing: .1em; text-transform: uppercase; padding: .9em 1.5em; border: 1px solid currentColor; border-radius: 999px; transition: background .3s, color .3s; }
.nav__cta:hover { background: var(--brass2); border-color: var(--brass2); color: var(--ink); }

/* боковая «лестница» разделов */
.rail { position: fixed; z-index: 40; right: clamp(14px, 1.6vw, 40px); top: 50%; transform: translateY(-50%); color: var(--paper); transition: color .5s, opacity .5s; }
[data-navtone="light"] .rail { color: var(--ink); }
.rail ol { list-style: none; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.rail li { display: flex; align-items: center; gap: 12px; flex-direction: row-reverse; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.rail i { display: block; width: 14px; height: 1px; background: currentColor; opacity: .45; transition: width .6s var(--over), opacity .4s; }
.rail span { opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .5s var(--out); white-space: nowrap; }
.rail li.on i { width: 34px; opacity: 1; }
.rail:hover li span { opacity: .9; transform: none; }
.rail { pointer-events: auto; }

/* ---------- 1. ГЕРОЙ ---------- */
.hero { position: relative; height: 200vh; background: #120C10; }
.hero__pin { position: -webkit-sticky; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero__art { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #0B0F1C, #10162A 55%, #0A0D17 66%, #07080E); }
.hero__layer { position: absolute; left: 0; right: 0; top: -2%; bottom: -2%; will-change: transform; transform-origin: 50% 100%; }
.hero__layer svg { width: 100%; height: 100%; }
@media (min-width: 1101px) {
  /* на широком экране дом уходит вправо, чтобы не спорить с заголовком */
  .hero__layer { right: -24vw; }
}
.hero__scrim { position: absolute; top: 0; bottom: 0; left: 0; width: 78%; pointer-events: none;
  background: radial-gradient(ellipse 70% 62% at 28% 56%, rgba(14, 8, 11, .86), rgba(14, 8, 11, .5) 52%, rgba(14, 8, 11, 0) 80%); }
.hero__shade { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; background: #0D080B; opacity: 0; pointer-events: none; }
.hero__copy {
  position: absolute; left: var(--pad); right: var(--pad); top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center;
  color: var(--paper); padding-top: 6vh; transform-origin: 20% 50%; will-change: transform, opacity; max-width: 62vw;
}
.hero__kicker { display: flex; flex-wrap: wrap; gap: .6em 1.6em; color: var(--brass2); margin-bottom: 2.2vh; }
.hero__kicker span + span::before { content: '·'; margin-right: 1.6em; opacity: .6; }
.hero__title { font-family: var(--serif); font-weight: 300; line-height: .84; font-size: clamp(76px, 10.6vw, 340px); letter-spacing: -.02em; margin-left: -.05em; }
.hero__title .line { display: block; overflow: hidden; padding: .02em .1em .12em .05em; margin: 0 -.1em -.1em -.05em; }
.hero__title .line--2 { font-style: italic; padding-left: .9em; color: var(--brass2); }
.ch { display: inline-block; will-change: transform; }
.hero__lead { max-width: 27em; font-size: 1.08em; line-height: 1.6; margin-top: 3vh; color: rgba(241, 232, 216, .86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4vh; }
.hero__cue { position: absolute; left: 50%; bottom: 3.5vh; transform: translateX(-50%); color: rgba(241, 232, 216, .7); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__cue i { width: 1px; height: 54px; background: linear-gradient(rgba(241, 232, 216, .8), rgba(241, 232, 216, 0)); animation: cue 2.2s var(--inout) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* окна дома загораются */
.hwin { fill: #3A2128; transition: fill .9s; }
.hwin.on { fill: #F6CB82; }
.hwin-glow { opacity: 0; transition: opacity 1.2s; }
.hwin-glow.on { opacity: 1; }
.beam { transform-origin: 862px 292px; animation: beam 9s linear infinite; }
@keyframes beam {
  0% { transform: scaleX(1); opacity: .9; }
  45% { transform: scaleX(.02); opacity: .2; }
  50% { transform: scaleX(-.02); opacity: 0; }
  55% { transform: scaleX(-.05); opacity: 0; }
  95% { transform: scaleX(.02); opacity: 0; }
  100% { transform: scaleX(1); opacity: .9; }
}
.lamp { animation: lamp 9s linear infinite; }
@keyframes lamp { 0%, 100% { opacity: 1; } 45%, 95% { opacity: .35; } }
.twinkle { animation: tw 4s ease-in-out infinite alternate; }
@keyframes tw { from { opacity: .2; } to { opacity: 1; } }
.glim { animation: glim 3.2s ease-in-out infinite alternate; }
@keyframes glim { from { opacity: .08; } to { opacity: .8; } }
.blink { animation: blink 3s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.steam { animation: steam 4s ease-in-out infinite; }
.steam.s2 { animation-delay: 1.3s; }
.steam.s3 { animation-delay: 2.4s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(14px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.flame { animation: flame .18s ease-in-out infinite alternate; transform-origin: 141px 654px; }
@keyframes flame { from { transform: scale(1, 1); } to { transform: scale(.94, 1.05); } }
.boat { animation: boat 6s ease-in-out infinite alternate; }
@keyframes boat { from { transform: translateX(-8px); } to { transform: translateX(8px); } }

/* ---------- 2. СОРОК СТУПЕНЕЙ ---------- */
.steps { position: relative; z-index: 2; height: 100vh; margin-top: -100vh; background: var(--paper); }
.steps__pin {
  position: -webkit-sticky; position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 6vw; align-items: center; padding: 10vh var(--pad) 6vh;
}
.steps__left { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.steps__count { font-family: var(--serif); line-height: .8; color: var(--wine); display: flex; align-items: flex-start; }
.steps__num { font-size: clamp(120px, 16vw, 480px); font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.steps__of { font-size: clamp(28px, 2.6vw, 80px); font-style: italic; margin-top: .6em; margin-left: .2em; opacity: .55; }
.stairs { width: 100%; max-width: 40vh; margin-top: 7vh; overflow: visible; }
/* 40 ступеней: окно-арка с живым фото лестницы, счёт ступеней поверх снимка */
.steps__photo { position: relative; flex: 0 1 auto; height: 74vh; border-radius: 999px 999px 6px 6px; overflow: hidden; background: #2A2226;
  box-shadow: 0 50px 100px -50px rgba(26, 18, 21, .65); transform: translateZ(0); }
.steps__img, .fgl { position: absolute; inset: 0; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.steps__img { object-fit: cover; }
.fgl { opacity: 0; transition: opacity .8s; }
.fgl.on { opacity: 1; }
.steps__photo::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 2; pointer-events: none;
  background: linear-gradient(rgba(20, 13, 16, 0), rgba(20, 13, 16, .62)); }
.steps__photo .steps__count { position: absolute; left: 6%; bottom: 4.5%; z-index: 4; color: var(--paper); text-shadow: 0 6px 40px rgba(10, 6, 8, .5); }
.steps__photo .steps__num { font-size: clamp(96px, 10.5vw, 330px); }
.stairs .st { fill: transparent; stroke: rgba(86, 24, 32, .25); stroke-width: 1; transition: fill .45s var(--out); }
.stairs .st.on { fill: var(--wine); stroke: var(--wine); }
.stairs .sea-l { stroke: rgba(86, 24, 32, .35); fill: none; }
.steps__caption { font-size: .78em; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 2vh; }
.steps__text { font-family: var(--serif); font-size: clamp(26px, 2.55vw, 74px); line-height: 1.18; font-weight: 400; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw; margin-top: 6vh; border-top: 1px solid rgba(26, 18, 21, .18); padding-top: 3vh; }
.facts dt { font-family: var(--serif); font-size: clamp(40px, 3.6vw, 110px); line-height: 1; color: var(--wine); font-style: italic; }
.facts dd { font-size: .82em; color: var(--muted); margin-top: .6em; max-width: 14em; }

/* ---------- 3. НОМЕРА ---------- */
.rooms { position: relative; z-index: 3; background: var(--paper); }
.rooms__pin {
  position: -webkit-sticky; position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--wine2); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
}
.rooms__pin::before { content: ''; position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at 70% 120%, rgba(192, 142, 78, .22), transparent 60%); pointer-events: none; }
.rooms__track { display: flex; align-items: center; gap: clamp(24px, 3vw, 90px); padding: 0 var(--pad); will-change: transform; height: 100%; }
.rooms__head { flex: 0 0 auto; width: clamp(320px, 34vw, 1000px); padding-right: 2vw; }
.rooms__head .h2 em { color: var(--brass2); }
.rooms__lead { margin-top: 4vh; max-width: 26em; color: rgba(241, 232, 216, .78); }
.rooms__hint { margin-top: 5vh; font-size: .72em; letter-spacing: .26em; text-transform: uppercase; color: var(--brass2); display: flex; align-items: center; gap: 1em; }
.rooms__hint span { width: 60px; height: 1px; background: currentColor; animation: hint 2s var(--inout) infinite; transform-origin: left; }
@keyframes hint { 0% { transform: scaleX(.2); } 50% { transform: scaleX(1); } 100% { transform: scaleX(.2); } }
.room-card { flex: 0 0 auto; display: block; text-decoration: none; color: var(--paper); width: min(29vw, 52vh * .82); position: relative; }
.room-card__win { position: relative; height: min(64vh, 35vw); border-radius: 999px 999px 6px 6px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); transform: translateZ(0); }
.room-card__win svg { width: 100%; height: 100%; transition: transform 1.2s var(--out); }
.room-card:hover .room-card__win svg { transform: scale(1.05); }
.room-card__win::after { content: ''; position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; border: 1px solid rgba(228, 192, 136, .35); pointer-events: none; }
.room-card__meta { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: .3em 1em; margin-top: 2.6vh; }
.room-card__no { font-size: .72em; letter-spacing: .2em; color: var(--brass2); }
.room-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.3vw, 66px); line-height: 1; }
.room-card__price { font-size: .78em; color: rgba(241, 232, 216, .7); white-space: nowrap; }
.room-card__tag { grid-column: 1 / -1; font-size: .86em; color: rgba(241, 232, 216, .7); }
.room-card__go { position: absolute; right: 18px; top: 18px; width: 54px; height: 54px; border-radius: 50%; background: var(--brass2); color: var(--ink); display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .6s var(--over); font-size: 20px; }
.room-card:hover .room-card__go, .room-card:focus-visible .room-card__go { transform: scale(1) rotate(0); }
.rooms__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 5vh; height: 1px; background: rgba(241, 232, 216, .2); }
.rooms__bar span { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--brass2); transform-origin: left; transform: scaleX(0); }

/* ---------- 4. ВПЕЧАТЛЕНИЯ ---------- */
.exp { position: relative; z-index: 3; background: var(--paper); padding: 22vh var(--pad) 18vh; }
.blinds { position: absolute; left: 0; right: 0; top: 0; height: 100vh; z-index: 5; pointer-events: none; display: flex; flex-direction: column; }
.blinds i { flex: 1; background: var(--wine2); transform-origin: 50% 0; margin-bottom: -1px; }
.exp__intro { margin-bottom: 12vh; }
.exp__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 6vw; align-items: start; }
.exp__stage { position: -webkit-sticky; position: sticky; top: 11vh; }
.exp__frame { position: relative; height: 76vh; border-radius: 4px; overflow: hidden; background: var(--ink2); box-shadow: 0 50px 100px -50px rgba(26, 18, 21, .6); }
.exp__img { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; visibility: hidden; }
.exp__img.is-base { visibility: visible; z-index: 1; }
.exp__img.is-in { visibility: visible; z-index: 2; }
.exp__img svg { width: 100%; height: 100%; }
.exp__caption { margin-top: 2vh; font-size: .76em; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.exp__cnum { color: var(--wine); font-weight: 600; }
.exp__item { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; padding: 6vh 0; border-top: 1px solid rgba(26, 18, 21, .14); }
.exp__item:first-child { border-top: 0; }
.exp__pic { display: none; }
.exp__no { font-family: var(--serif); font-style: italic; font-size: clamp(60px, 6vw, 180px); line-height: 1; color: var(--brass); }
.exp__item h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 3.6vw, 104px); line-height: 1; margin: .2em 0 .5em; }
.exp__item p { max-width: 30em; color: #3E3034; }
.exp__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 3vh; }
.exp__meta li { font-size: .76em; letter-spacing: .04em; padding: .55em 1.1em; border: 1px solid rgba(86, 24, 32, .3); border-radius: 999px; color: var(--wine); }

/* ---------- 5. ДОРОГА ---------- */
.where { position: relative; z-index: 3; height: 100vh; background: var(--paper2); }
.where__pin {
  position: -webkit-sticky; position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); grid-template-rows: auto 1fr; gap: 3vh 4vw; padding: 14vh var(--pad) 6vh;
}
.where__head { grid-column: 1; grid-row: 1; }
.where__head p:last-child { margin-top: 3vh; color: #4A3A3E; max-width: 22em; }
.where__route { grid-column: 1; grid-row: 2; list-style: none; align-self: end; counter-reset: r; }
.where__route li { position: relative; padding: 1.2vh 0 1.2vh 3.2em; border-top: 1px solid rgba(26, 18, 21, .12); opacity: .32; transition: opacity .5s, transform .7s var(--over); transform: translateX(-10px); }
.where__route li::before { counter-increment: r; content: '0' counter(r); position: absolute; left: 0; top: 1.25vh; font-family: var(--serif); font-style: italic; font-size: 1.3em; color: var(--wine); }
.where__route li.on { opacity: 1; transform: none; }
.where__route b { display: block; font-weight: 500; }
.where__route span { font-size: .82em; color: var(--muted); }
.map { grid-column: 2; grid-row: 1 / 3; position: relative; align-self: center; width: 100%; aspect-ratio: 12 / 7; perspective: 1800px; }
@supports not (aspect-ratio: 1) { .map { height: 0; padding-bottom: 58.33%; } }
.map__wrap { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; transform-style: preserve-3d; }
.map__panel { position: absolute; top: 0; bottom: 0; overflow: hidden; transform-origin: 0 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 30px 60px -30px rgba(26, 18, 21, .45); }
.map__panel .map-svg { position: absolute; top: 0; height: 100%; }
.map__fold { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; background: #1A1215; opacity: 0; pointer-events: none; }
.map-label { font-family: var(--serif); font-size: 24px; font-style: italic; fill: #2A1B1E; }
.map-label--main { font-size: 30px; fill: #561820; font-weight: 600; }
.map-small { font-family: var(--sans); font-size: 13px; letter-spacing: 2px; fill: #561820; }
.map-sea { font-family: var(--serif); font-style: italic; font-size: 34px; fill: rgba(244, 235, 214, .78); letter-spacing: 6px; }
.map-small--sea { fill: #F4EBD6; stroke: none !important; }
.pin { transform: scale(0); transition: transform .8s var(--over); }
.pin.on { transform: scale(1); }
.pulse { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .5; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- 6. ГОСТИ ---------- */
.voices { position: relative; z-index: 3; height: 100vh; background: var(--paper2); color: var(--paper); }
.voices__pin { position: -webkit-sticky; position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; padding: 14vh var(--pad) 6vh; }
.voices__stars { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; pointer-events: none; }
.voices__stars svg { width: 100%; height: 100%; }
.voices__top { position: relative; max-width: 76vw; }
.voices__quote { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(34px, 4.4vw, 140px); line-height: 1.04; color: var(--paper); }
.voices__quote .w { display: inline-block; will-change: transform, opacity; }
.cards { position: relative; flex: 1; margin-top: 4vh; min-height: 0; }
.card {
  position: absolute; left: 50%; top: 50%; width: clamp(240px, 19vw, 560px); padding: 1.6em 1.6em 1.3em; background: var(--paper); color: var(--ink);
  border-radius: 3px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); margin-left: calc(clamp(240px, 19vw, 560px) / -2); transform-origin: 50% 120%;
  will-change: transform;
}
.card::before { content: ''; position: absolute; left: 1.6em; right: 5em; top: 1.6em; height: 1px; background: repeating-linear-gradient(90deg, rgba(86, 24, 32, .35) 0 6px, transparent 6px 10px); }
.card__stamp { float: right; width: 3.4em; height: 4em; margin: -.4em -.4em .4em 1em; padding: 5px; transform: rotate(4deg);
  /* перфорация: точки цвета открытки видны только в белой рамке вокруг рисунка */
  background: radial-gradient(circle at 3.5px 3.5px, var(--paper) 2.2px, rgba(0,0,0,0) 2.6px) -3.5px -3.5px / 7px 7px, #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.card__stamp svg { width: 100%; height: 100%; }
.card__stamp img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card blockquote { font-family: var(--serif); font-size: 1.22em; line-height: 1.3; margin-top: 1.4em; }
.card figcaption { margin-top: 1.2em; font-size: .78em; display: flex; flex-direction: column; }
.card figcaption span { color: var(--muted); }

/* ---------- 7. БРОНЬ ---------- */
.book { position: relative; z-index: 3; background: var(--ink); color: var(--paper); padding: 18vh var(--pad) 16vh; min-height: 100vh; overflow: hidden; }
.book__beam { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 2; }
.book__bg { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; opacity: .42;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 40%, #000 30%, transparent 95%); mask-image: radial-gradient(ellipse 80% 90% at 50% 40%, #000 30%, transparent 95%); }
.book__bg .art-img { position: absolute; inset: 0; top: 0; left: 0; }
@media (max-width: 760px) { .book__bg { opacity: .3; } }
.book__inner { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 1fr); gap: 7vw; align-items: center; min-height: 66vh; }
.book__copy .h2 em { color: var(--brass2); }
.book__copy > p { margin-top: 4vh; max-width: 26em; color: rgba(241, 232, 216, .78); }
.book__notes { list-style: none; margin-top: 5vh; display: grid; gap: 1.2vh; font-size: .9em; color: rgba(241, 232, 216, .7); }
.book__notes li { padding-left: 1.6em; position: relative; }
.book__notes li::before { content: ''; position: absolute; left: 0; top: .7em; width: .9em; height: 1px; background: var(--brass2); }
.book__notes b { color: var(--brass2); font-weight: 500; }
.book__form { background: #24181C; border: 1px solid rgba(228, 192, 136, .18); border-radius: 22px; padding: clamp(22px, 2.6vw, 64px); display: grid; gap: 2.2vh; box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .8); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2vw; }
.book__inner > *, .field, .field input { min-width: 0; }
.field { display: flex; flex-direction: column; gap: .6em; }
.field > span { font-size: .7em; letter-spacing: .22em; text-transform: uppercase; color: var(--brass2); }
.field input, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(241, 232, 216, .3); padding: .5em 0; font-size: 1.15em; color: var(--paper);
  border-radius: 0; -webkit-appearance: none; appearance: none; color-scheme: dark; min-height: 2.4em;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23E4C088' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right center; padding-right: 24px; }
.field select option { background: #24181C; color: var(--paper); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--brass2); }
.field.bad input { border-bottom-color: #E0745F; }
.stepper { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(241, 232, 216, .3); min-height: 2.4em; }
.stepper button { width: 2em; height: 2em; border-radius: 50%; border: 1px solid rgba(228, 192, 136, .4); background: transparent; cursor: pointer; font-size: 1.1em; line-height: 1; transition: background .3s, transform .4s var(--over); }
.stepper button:hover { background: rgba(228, 192, 136, .15); transform: scale(1.1); }
.stepper button:disabled { opacity: .3; cursor: default; transform: none; }
.stepper output { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; font-family: var(--serif); font-size: 1.6em; min-width: 1.5em; text-align: center; }
@keyframes bump { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }
.book__sum { display: flex; justify-content: space-between; align-items: flex-end; padding: 1.6vh 0; border-top: 1px dashed rgba(228, 192, 136, .25); gap: 1em; }
.book__sum span { font-size: .86em; color: rgba(241, 232, 216, .7); display: block; }
.book__warn { display: block; font-size: .74em; color: #E89A82; margin-top: .3em; }
.book__total { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 76px); line-height: 1; color: var(--brass2); white-space: nowrap; }
.book__status { min-height: 1.4em; font-size: .9em; color: var(--brass2); }
.book__status.err { color: #E89A82; }
.book__status.ok { animation: okin .8s var(--over); }
@keyframes okin { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.book__demo { font-size: .72em; color: rgba(241, 232, 216, .45); }

/* ---------- 8. ПОДВАЛ ---------- */
.foot { position: relative; z-index: 3; background: var(--wine2); color: var(--paper); padding: 14vh var(--pad) 4vh; overflow: hidden; }
.foot__word { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(56px, 11.4vw, 400px); line-height: .9; white-space: nowrap; color: var(--brass2); letter-spacing: -.02em; text-align: center; }
.foot__word .ch { will-change: transform; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3vw; margin-top: 10vh; padding-top: 4vh; border-top: 1px solid rgba(241, 232, 216, .18); font-size: .9em; color: rgba(241, 232, 216, .8); }
.foot__label { font-size: .72em; letter-spacing: .24em; text-transform: uppercase; color: var(--brass2); margin-bottom: 1em; }
.foot__cols a { text-decoration: none; border-bottom: 1px solid rgba(228, 192, 136, .4); }
.foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1em; margin-top: 8vh; font-size: .74em; letter-spacing: .08em; color: rgba(241, 232, 216, .5); }
.foot__base a { text-decoration: none; }

/* ---------- раскрытия общего вида ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s, transform 1.2s var(--over); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* =====================================================================
   ВНУТРЕННЯЯ СТРАНИЦА НОМЕРА
   ===================================================================== */
.page-room { background: var(--paper); }
.rhero { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--wine2); color: var(--paper); overflow: hidden; }
.rhero__copy { padding: 18vh var(--pad) 8vh; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 2; }
.rhero__back { font-size: .78em; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--brass2); display: inline-flex; gap: .8em; align-items: center; }
.rhero__back:hover span { transform: translateX(-6px); }
.rhero__back span { transition: transform .4s var(--over); }
.rhero__no { font-family: var(--serif); font-style: italic; color: var(--brass2); font-size: clamp(22px, 1.8vw, 54px); margin-top: 6vh; }
.rhero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 8.6vw, 280px); line-height: .9; letter-spacing: -.02em; }
.rhero__title .line { display: block; overflow: hidden; padding: .04em .06em .14em 0; }
.rhero__tag { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 1.8vw, 52px); color: rgba(241, 232, 216, .8); max-width: 18em; margin-top: 2vh; }
.rhero__facts { display: grid; grid-template-columns: repeat(4, auto); gap: 2vw; margin-top: 6vh; padding-top: 3vh; border-top: 1px solid rgba(241, 232, 216, .2); }
.rhero__facts dt { font-size: .66em; letter-spacing: .22em; text-transform: uppercase; color: var(--brass2); }
.rhero__facts dd { font-family: var(--serif); font-size: clamp(20px, 1.5vw, 44px); margin-top: .3em; }
.rhero__win { position: relative; overflow: hidden; }
.rhero__win svg { position: absolute; inset: 0; top: 0; left: 0; width: 100%; height: 100%; }
.rhero__img { position: absolute; inset: 0; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__bg { position: absolute; top: -40px; left: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(30px) brightness(.5) saturate(1.1); }
.rnext__win img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* кадр номера в карточке шире окна — под параллакс ленты */
.room-card__win .room-card__img { position: absolute; top: 0; left: -6%; width: 112%; height: 100%; }

.gal { background: var(--paper); padding: 16vh var(--pad); }
.gal__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 4vw; margin-bottom: 6vh; flex-wrap: wrap; }
.gal__head p { max-width: 30em; color: #4A3A3E; }
.gal__stage { position: relative; height: min(78vh, 52vw); border-radius: 6px; overflow: hidden; background: var(--ink2); cursor: pointer; touch-action: pan-y; outline: none; }
.gal__slide { position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; visibility: hidden; }
.gal__slide svg { width: 100%; height: 100%; }
.gal__slide--plan { background: #1D1416; }
.gal__slide.is-base { visibility: visible; z-index: 1; }
.gal__slide.is-in { visibility: visible; z-index: 2; }
.gal__label { position: absolute; left: 2.4vw; bottom: 2.4vw; z-index: 4; color: var(--paper); font-family: var(--serif); font-style: italic; font-size: clamp(28px, 2.6vw, 80px); line-height: 1; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.gal__label small { display: block; font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; margin-bottom: .8em; color: var(--brass2); }
.gal__nav { position: absolute; right: 2vw; bottom: 2vw; z-index: 4; display: flex; gap: 10px; }
.gal__nav button { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(241, 232, 216, .5); background: rgba(26, 18, 21, .35); color: var(--paper); cursor: pointer; font-size: 20px; transition: transform .45s var(--over), background .3s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gal__nav button:hover { transform: scale(1.08); background: rgba(192, 142, 78, .5); }
.gal__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1vw; margin-top: 2vh; }
.gal__thumb { position: relative; height: clamp(70px, 9vw, 240px); border: 0; padding: 0; background: var(--ink2); border-radius: 4px; overflow: hidden; cursor: pointer; opacity: .55; transition: opacity .4s, transform .5s var(--over); }
.gal__thumb svg { width: 100%; height: 100%; }
.gal__thumb span { position: absolute; left: 10px; bottom: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.gal__thumb:hover { opacity: .85; transform: translateY(-4px); }
.gal__thumb.on { opacity: 1; box-shadow: inset 0 0 0 2px var(--brass2); }

.rabout { background: var(--paper); padding: 4vh var(--pad) 16vh; display: grid; grid-template-columns: 1.2fr 1fr; gap: 7vw; }
.rabout__text { font-family: var(--serif); font-size: clamp(26px, 2.2vw, 64px); line-height: 1.22; }
.rabout ul { list-style: none; border-top: 1px solid rgba(26, 18, 21, .15); }
.rabout li { padding: 1.4vh 0; border-bottom: 1px solid rgba(26, 18, 21, .15); display: flex; gap: 1em; align-items: baseline; }
.rabout li::before { content: '✦'; color: var(--brass); font-size: .8em; }
.rabout__price { margin-top: 5vh; display: flex; align-items: center; justify-content: space-between; gap: 2em; flex-wrap: wrap; }
.rabout__price strong { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 3vw, 96px); color: var(--wine); line-height: 1; }
.rabout__price small { display: block; font-size: .8em; color: var(--muted); }

.rnext { position: relative; display: block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 12vh var(--pad); overflow: hidden; }
.rnext__win { position: absolute; right: var(--pad); top: 50%; width: min(24vw, 46vh); height: min(32vw, 60vh); transform: translateY(-50%); border-radius: 999px 999px 4px 4px; overflow: hidden; transition: transform 1s var(--over); }
.rnext__win svg { width: 100%; height: 100%; }
.rnext:hover .rnext__win { transform: translateY(-50%) scale(1.06) rotate(-2deg); }
.rnext small { font-size: .72em; letter-spacing: .26em; text-transform: uppercase; color: var(--brass2); }
.rnext h2 { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(54px, 7vw, 230px); line-height: 1; margin-top: 2vh; transition: transform .8s var(--over); }
.rnext:hover h2 { transform: translateX(2vw); }
.rnext p { margin-top: 2vh; color: rgba(241, 232, 216, .7); max-width: 24em; }

/* =====================================================================
   ТЕЛЕФОН И ПЛАНШЕТ
   ===================================================================== */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .steps__pin { grid-template-columns: 1fr; gap: 3vh; align-content: center; padding-top: 12vh; }
  .steps__left { height: auto; flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 4vw; }
  .stairs { max-width: 26vh; margin-top: 0; }
  .steps__caption { display: none; }
  .steps__left .steps__photo { width: 100%; height: 52vh; max-height: 620px; }
  .steps__num { font-size: clamp(110px, 22vw, 260px); }
  .where__pin { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding-top: 12vh; gap: 3vh; }
  .where__head, .where__route, .map { grid-column: 1; grid-row: auto; }
  .where__route { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4vw; }
  .exp__grid { gap: 4vw; }
  .rhero { grid-template-columns: 1fr; }
  .rhero__win { height: 70vh; order: -1; }
  .rhero__copy { padding-top: 6vh; }
  .rabout { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .book__inner { grid-template-columns: 1fr; }
  .voices__top { max-width: 100%; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; --fs: 16px; }
  .rail { display: none; }
  .nav__logo span { font-size: .95em; }
  .nav__cta { padding: .75em 1.1em; font-size: .7em; }
  .hero__copy { max-width: none; justify-content: flex-start; padding-top: 15vh; }
  .hero__title { font-size: clamp(66px, 19vw, 110px); }
  .hero__title .line--2 { padding-left: .3em; }
  .hero__lead { font-size: 1em; max-width: 20em; }
  .hero__kicker { font-size: .62em; gap: .4em 1em; }
  .hero__kicker span + span::before { margin-right: 1em; }
  .hero__cue { display: none; }
  /* дом опускаем к низу экрана, чтобы не спорил с текстом */
  .hero__layer:not(.hero__layer--sky) { top: 28vh; bottom: -32vh; }
  .hero__actions .btn { padding: .95em 1.4em; }

  .hero { height: 100vh; }
  .steps { height: auto; margin-top: 0; }
  .steps__pin { position: relative; height: auto; min-height: 100vh; }
  .steps__pin { padding: 11vh var(--pad) 4vh; gap: 2.4vh; }
  .steps__left { gap: 16px; }
  .steps__num { font-size: 104px; }
  .steps__of { font-size: 24px; }
  .stairs { max-width: 120px; }
  .steps__left .steps__photo { height: 54vh; max-height: 470px; }
  .steps__photo .steps__num { font-size: 96px; }
  .steps__text { font-size: 23px; line-height: 1.22; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 3vh; padding-top: 2vh; }
  .facts dt { font-size: 36px; }
  .facts dd { font-size: .72em; }

  /* номера: вертикальный список вместо ленты */
  .rooms__pin { position: relative; height: auto; overflow: visible; padding: 14vh 0 10vh; }
  .rooms__track { flex-direction: column; align-items: stretch; height: auto; gap: 8vh; transform: none !important; }
  .rooms__head { width: auto; padding: 0; }
  .rooms__hint, .rooms__bar { display: none; }
  .room-card { width: 100%; }
  .room-card__win { height: 112vw; max-height: 560px; }
  .room-card__go { transform: scale(1); top: auto; bottom: 18px; }
  .map { margin: 0 calc(var(--pad) * -1); width: auto; }

  .exp { padding: 22vh var(--pad) 10vh; }
  .exp__intro { margin-bottom: 4vh; }
  .exp__grid { grid-template-columns: 1fr; }
  .exp__stage { display: none; }
  .exp__item { min-height: 0; padding: 5vh 0; }
  .exp__pic { display: block; height: 110vw; max-height: 520px; border-radius: 4px; overflow: hidden; margin-bottom: 3vh; }
  .exp__pic svg { width: 100%; height: 100%; }
  .exp__no { font-size: 54px; }

  .where { height: auto; }
  .where__pin { position: relative; height: auto; overflow: visible; padding: 12vh var(--pad) 10vh; }
  .where__route { grid-template-columns: 1fr; }
  .map-label { font-size: 30px; }
  .map-label--main { font-size: 36px; }

  .voices { height: auto; }
  .voices__pin { position: relative; height: auto; overflow: visible; padding: 14vh var(--pad) 10vh; }
  .voices__quote { font-size: 34px; }
  .cards { display: grid; gap: 18px; margin-top: 6vh; }
  .card { position: relative; left: auto; top: auto; margin: 0; width: auto; transform: none !important; }
  .card:nth-child(odd) { transform: rotate(-1.2deg) !important; }
  .card:nth-child(even) { transform: rotate(1deg) !important; }

  .book { padding: 14vh var(--pad) 10vh; }
  .book__inner { gap: 6vh; }
  .field-row { gap: 14px; }
  .foot__cols { grid-template-columns: 1fr; gap: 4vh; }
  .foot { padding-top: 10vh; }

  .rhero__win { height: 64vh; }
  .rhero__copy { padding: 5vh var(--pad) 8vh; }
  .rhero__facts { grid-template-columns: 1fr 1fr; gap: 2.4vh 6vw; }
  .gal { padding: 10vh var(--pad); }
  .gal__stage { height: 120vw; max-height: 600px; }
  .gal__thumbs { gap: 6px; }
  .gal__thumb { height: 64px; }
  .gal__thumb span { display: none; }
  .gal__nav button { width: 46px; height: 46px; }
  .rnext__win { position: relative; right: auto; top: auto; transform: none; width: 60vw; height: 76vw; margin-top: 4vh; }
  .rnext:hover .rnext__win { transform: none; }
}

/* =====================================================================
   БЕЗ АНИМАЦИИ (prefers-reduced-motion) — всё видно и читается
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.rm .curtain { display: none !important; }
.rm .hero__title .ch, .rm .rhero__title .ch, .rm .hero__lead, .rm .hero__actions, .rm .hero__kicker,
.rm [data-reveal], .rm .exp__item .exp__no, .rm .exp__item h3, .rm .exp__item p, .rm .exp__item .exp__meta { opacity: 1 !important; transform: none !important; }
.rm .rhero__win { clip-path: none !important; -webkit-clip-path: none !important; }
.rm .steps__text .w { opacity: 1 !important; }
.rm .blinds { display: none; }
.rm .hero { height: 100vh; }
.rm .steps { margin-top: 0; height: auto; }
.rm .steps__pin { position: relative; height: auto; min-height: 100vh; }
.rm .rooms__pin { position: relative; height: auto; padding: 14vh 0; }
.rm .where, .rm .voices { height: auto; }
.rm .where__pin, .rm .voices__pin { position: relative; height: auto; min-height: 100vh; }
.rm .voices { background: var(--ink); }
.rm .where__route li { opacity: 1; transform: none; }
.rm .pin { transform: none; }
.rm .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.rm .card { position: relative; left: auto; top: auto; margin: 0; width: auto; transform: none !important; }
.rm .voices__quote .w { opacity: 1 !important; transform: none !important; filter: none !important; }

/* =====================================================================
   ВЕРСИЯ 2: живой герой, курсор-фонарь, сцены на GSAP, «колода» на ПК
   ===================================================================== */
.deck { scroll-behavior: auto; }
.deck body { overscroll-behavior: none; }
.hero__gl { position: absolute; inset: 0; top: 0; left: 0; width: 100% !important; height: 100% !important; display: block; }
.gl .hero__art { background: #0B0811; }
/* герой без WebGL: тот же ночной снимок картинкой */
.hero__layer.hero__layer--photo { right: 0; }
.hero__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
@media (max-width: 760px) {
  .hero__layer--photo { -webkit-mask-image: linear-gradient(transparent, #000 14%); mask-image: linear-gradient(transparent, #000 14%); }
  .hero__photo { object-position: 50% 0; }
}

/* фактура: плёночное зерно поверх иллюстраций */
.tex::after {
  content: ''; position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 3; opacity: .07; border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* анимации SVG-деталей (запасной DOM-вариант героя и окна номеров) */
.drift { animation: drift 40s ease-in-out infinite alternate; }
.drift.d2 { animation-duration: 55s; animation-direction: alternate-reverse; }
.drift.d3 { animation-duration: 70s; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
.flick { animation: flick 2.6s steps(1) infinite; }
@keyframes flick { 0%, 100% { opacity: 1; } 12% { opacity: .75; } 14% { opacity: 1; } 47% { opacity: .85; } 49% { opacity: 1; } 80% { opacity: .9; } }
.foam { animation: foam 4.5s ease-in-out infinite; }
@keyframes foam { 0%, 100% { transform: translateX(0); opacity: .9; } 50% { transform: translateX(8px); opacity: .45; } }
.smoke { animation: smoke 6s ease-in-out infinite; }
.smoke.s2 { animation-delay: 2.5s; }
@keyframes smoke { 0% { opacity: 0; transform: translateY(8px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -24px); } }
.mini-beam { animation: lamp 9s linear infinite; }

/* курсор-фонарь */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .rooms__track, .has-cursor h3 { cursor: none; }
.has-cursor input, .has-cursor select { cursor: auto; }
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.on { opacity: 1; }
.cursor__dot, .cursor__ring, .cursor__light { position: fixed; left: 0; top: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--brass2); mix-blend-mode: difference; }
.cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(228, 192, 136, .7); display: grid; place-items: center; transition: width .45s var(--out), height .45s var(--out), margin .45s var(--out), background .3s, border-color .3s; }
.cursor__label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor[data-mode="link"] .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(228, 192, 136, .12); }
.cursor[data-mode="label"] .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--brass2); border-color: var(--brass2); }
.cursor[data-mode="label"] .cursor__label { opacity: 1; }
.cursor[data-mode="text"] .cursor__ring { width: 4px; height: 30px; margin: -15px 0 0 -2px; border-radius: 2px; }
.cursor__light { width: 520px; height: 520px; margin: -260px 0 0 -260px; background: radial-gradient(circle, rgba(255, 214, 150, .16), rgba(255, 214, 150, 0) 62%); mix-blend-mode: screen; opacity: 0; transition: opacity .6s; }
.cursor--dark .cursor__light { opacity: 1; }

/* номера: управление лентой */
.rooms__pin { position: relative; }
.rooms__track { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rooms__track.dragging a { pointer-events: none; }
.rooms__ctrl { position: absolute; left: var(--pad); right: var(--pad); bottom: 4.5vh; display: flex; align-items: center; gap: 14px; }
.rooms__ctrl .rooms__bar { position: relative; left: auto; right: auto; bottom: auto; flex: 1; }
.rooms__prev, .rooms__next { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(228, 192, 136, .5); background: transparent; color: var(--paper); font-size: 18px; cursor: pointer; }
.rooms__prev:hover, .rooms__next:hover { background: var(--brass2); color: var(--ink); }
.room-card { will-change: transform; }
.room-card__win { transition: border-radius .6s var(--out); }
.room-card:hover .room-card__win { border-radius: 999px 999px 40px 40px; }
.room-zoom { position: fixed; z-index: 95; overflow: hidden; }
.room-zoom svg { width: 100%; height: 100%; }
.room-zoom .room-card__go { display: none; }

/* впечатления: одна сцена — кадр слева, вкладки справа */
.exp__side .exp__intro { margin-bottom: 4vh; }
.exp__frame { clip-path: url(#expClip); -webkit-clip-path: url(#expClip); box-shadow: none; border-radius: 0; background: transparent; }
.exp__stage { filter: drop-shadow(0 40px 60px rgba(26, 18, 21, .35)); }
@media (min-width: 761px) {
  .exp { height: 100vh; padding: 0 var(--pad); display: flex; align-items: center; overflow: hidden; }
  .exp__grid { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .exp__stage { position: relative; top: auto; }
  .exp__frame { height: 80vh; }
  .exp__caption { display: none; }
  .exp__item { min-height: 0; padding: 2.2vh 0; border-top: 1px solid rgba(26, 18, 21, .14); display: grid; grid-template-columns: auto 1fr; column-gap: 1.6vw; align-items: baseline; }
  .exp__item:first-child { border-top: 1px solid rgba(26, 18, 21, .14); }
  .exp__no { font-size: clamp(28px, 2.4vw, 72px); }
  .exp__item h3 { font-size: clamp(30px, 2.8vw, 84px); margin: 0; cursor: pointer; transition: color .4s, letter-spacing .6s var(--out); }
  .exp__item h3:hover { letter-spacing: .01em; }
  .exp__item:not(.on) h3 { color: rgba(26, 18, 21, .38); }
  .exp__item p, .exp__item .exp__meta { grid-column: 2; overflow: hidden; max-height: 0; opacity: 0; margin-top: 0; transition: max-height .9s var(--out), opacity .6s, margin .6s; }
  .exp__item.on p { max-height: 14em; opacity: 1; margin-top: 1.4vh; }
  .exp__item.on .exp__meta { max-height: 6em; opacity: 1; margin-top: 2vh; }
  .exp__item .exp__no { transition: color .4s; }
  .exp__item:not(.on) .exp__no { color: rgba(192, 142, 78, .45); }
  .blinds { height: 100%; }
}

/* карта: рукописная пометка */
.map-note { font-family: var(--serif); font-style: italic; font-size: 30px; fill: #561820; }
.map-svg .map-note { fill: #F4EBD6; stroke: rgba(20, 13, 16, .55) !important; }
/* подписи по аэрофото: светлые буквы с тёмным ореолом */
.map-svg .map-label, .map-svg .map-small { fill: #F4EBD6; stroke: rgba(16, 10, 12, .62); stroke-width: 5px; }
.map-svg .map-label--main { fill: #F6D9A6; }
.where__route li { opacity: 1; transform: none; }

/* сцены в «колоде» — ровно экран */
.deck .book { height: 100vh; min-height: 0; padding-top: 10vh; padding-bottom: 6vh; display: flex; align-items: center; }
.deck .book__inner { width: 100%; min-height: 0; }
.deck .foot { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.deck .rail li { cursor: pointer; }
.rail { pointer-events: auto; }

@media (max-width: 760px) {
  .exp__frame { clip-path: none; -webkit-clip-path: none; }
  .rooms__ctrl { display: none; }
  .map-note { font-size: 38px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .exp__frame { height: 70vh; }
}
.rm .room-card, .rm .card, .rm .book__form > *, .rm .book__notes li, .rm .facts > div { opacity: 1 !important; visibility: visible !important; }

.rhero__win--full { position: fixed !important; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 90; }
.gal__t { display: inline-block; }
.nw { white-space: nowrap; }

.art-img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.room-card__win .room-card__img { position: absolute; top: 0; left: -5%; width: 110%; max-width: none; }
.room-card:hover .room-card__win .room-card__img { transform: scale(1.04); }
.exp__img .art-img, .exp__pic .art-img, .gal__thumb .art-img { position: absolute; inset: 0; top: 0; left: 0; }
.gal__slide .art-img { object-fit: contain; position: relative; }
.gal__slide--plan .art-img { object-fit: contain; }
.gal__thumb .art-img { object-fit: cover; }
.voices__stars .star-layer { position: absolute; inset: 0; top: 0; left: 0; object-fit: cover; }
/* верх неба притушен — цитата читается поверх Млечного пути */
.voices__stars::after { content: ''; position: absolute; inset: 0; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(rgba(14, 9, 12, .6), rgba(14, 9, 12, .15) 50%, rgba(14, 9, 12, 0) 70%); }
.voices__stars .star-layer--1 { animation-duration: 7s; animation-delay: -2s; }
.voices__stars .star-layer--2 { animation-duration: 3.6s; animation-delay: -1s; }
.exp__pic { position: relative; }

/* блик стекла пробегает по окну номера при наведении */
.room-card__win::before { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 4; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0), rgba(255,240,210,.28), rgba(255,255,255,0)); transform: skewX(-12deg); transition: left 0s; }
.room-card:hover .room-card__win::before { left: 130%; transition: left 1.1s cubic-bezier(.16,1,.3,1); }
.foot__sketch { display: block; width: min(1100px, 80vw); height: auto; margin: 2vh auto 0; overflow: visible; }
.foot__sea { position: relative; height: 30vh; margin: -6vh calc(var(--pad) * -1) 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 35%, #000 70%, transparent); }
.foot__sea .art-img { position: absolute; inset: 0; top: 0; left: 0; }
.foot__word { position: relative; z-index: 1; }
@media (max-width: 760px) { .foot__sea { height: 22vh; margin-top: -3vh; } }

.hero__title { text-shadow: 0 0 46px rgba(12, 7, 10, .75), 0 2px 18px rgba(12, 7, 10, .5); }
/* подписи карты: подложка цвета бумаги, линии не перечёркивают текст */
.map-label, .map-small, .map-note { paint-order: stroke; stroke: #EADFC9; stroke-width: 7px; stroke-linejoin: round; }
.map-note { stroke-width: 6px; }
/* слой формы держим собранным заранее — без рывка при первом показе маски */
.book__inner { will-change: transform; }

.fall { animation: fall 1.4s linear infinite; }
@keyframes fall { to { stroke-dashoffset: -40; } }
