/* site-safety */
/* «Линия горизонта». Петербургский серый, бледное золото, чертёжная точность. */
:root {
  --fog: #eceff1;
  --paper: #f8f8f6;
  --stone: #dde1e4;
  --stone-2: #c5cbd0;
  --slate: #5a6570;
  --graphite: #1f252b;
  --graphite-2: #2c343c;
  --night: #1c2430;
  --ink: #1a1f24;
  --ink-soft: #4d5862;
  --gold: #c9ab6e;
  --gold-pale: #ead9b2;
  --gold-ink: #7a5f26;
  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --gutter: clamp(1rem, 4.6vw, 4.5rem);
  --max: 1320px;
  --shadow: 0 40px 70px -46px rgba(26, 31, 36, .5), 0 12px 26px -18px rgba(26, 31, 36, .22);
  --grid: linear-gradient(rgba(90, 101, 112, .07) 2px, transparent 2px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(90, 101, 112, .07) 2px, transparent 2px) 0 0 / 48px 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html, body { scrollbar-width: none; }
::-webkit-scrollbar { display: none; }
body {
  margin: 0; background: var(--fog); color: var(--ink);
  font: 400 1.0625rem/1.62 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
p { margin: 0; }
h1, h2, h3 {
  font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1;
  letter-spacing: -.01em; text-wrap: balance; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
}
h2 { font-size: clamp(2.5rem, 8.4vw, 5.2rem); font-weight: 300; }
h2 em, h1 em { font-style: italic; color: var(--gold-ink); }
h3 { font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 500; }
.icon { width: 1em; height: 1em; flex: none; vertical-align: -.14em; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.nb { white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--graphite); color: var(--paper); padding: .8rem 1.1rem; border-radius: 12px; }
:focus { outline: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 80%, transparent); outline-offset: 3px; border-radius: 10px; }

.label {
  display: inline-flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink);
}
.label::before { content: ""; width: 34px; height: 2px; background: currentColor; flex: none; }
.lede { font-size: clamp(1.06rem, 2.5vw, 1.24rem); color: var(--ink-soft); max-width: 40ch; text-wrap: pretty; }

/* ---------- Кнопки ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.65rem;min-height:54px;padding:.8rem 1.6rem;border:0;border-radius:16px;font:600 1rem/1.2 var(--sans);text-decoration:none;cursor:pointer;text-align:center;background:var(--graphite);color:var(--paper);box-shadow:0 8px 24px rgb(17 24 39 / 0.08);transition:transform .5s var(--spring), background .3s, color .3s}
.btn:hover { transform: translateY(-3px); background: var(--gold-ink); }
.btn:active { transform: scale(.96); transition-duration: .15s; }
.btn-gold { background: var(--gold-pale); color: var(--graphite); }
.btn-gold:hover { background: var(--paper); color: var(--graphite); }
.btn .icon { font-size: 1.15em; transition: transform .5s var(--spring); }
.btn:hover .icon { transform: translateX(4px); }
.text-link {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 2px no-repeat;
  transition: background-size .45s var(--ease), color .2s;
}
.text-link:hover { background-size: 30% 2px; }
.text-link .icon { transition: transform .5s var(--spring); }
.text-link:hover .icon { transform: translateX(5px); }
.spec-cta { display: inline-block; font-weight: 600; font-size: 1.02rem; color: var(--graphite); }
.spec-cta:not([data-ai-code-use-state="ready"]) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 1.8rem;
  border-radius: 16px; background: var(--gold-pale); color: var(--graphite); cursor: pointer;
}

/* ---------- Шапка ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem var(--gutter); color: var(--ink);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), color .3s;
}
.top.scrolled{background:color-mix(in srgb, var(--fog) 84%, transparent);backdrop-filter:blur(16px) saturate(1.2);-webkit-backdrop-filter:blur(16px) saturate(1.2);box-shadow:0 8px 24px rgb(17 24 39 / 0.08)}
.hero-dark .top:not(.scrolled):not(.menu-open) { color: var(--paper); }
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .65rem; min-height: 48px; text-decoration: none; white-space: nowrap; }
.brand svg { width: 38px; height: 38px; flex: none; transition: transform .7s var(--spring); }
.brand:hover svg { transform: translateY(-3px); }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; opacity: .7; margin-top: .25rem; }
.menu-toggle {
  position: relative; z-index: 2; width: 48px; height: 48px; margin-right: -10px;
  display: grid; place-items: center; background: none; border: 0; padding: 0; color: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle line { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transform-origin: 12px 12px; transition: transform .5s var(--spring), opacity .25s; }
.menu-toggle .l2 { transform: scaleX(.6); transform-origin: 21px 12px; }
.menu-toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .l2 { opacity: 0; transform: scaleX(.1); }
.menu-toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

#nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: .1rem;
  padding: 6rem var(--gutter) 3rem; color: var(--ink);
  background: var(--grid), var(--paper);
  clip-path: inset(0 0 0 100%); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
#nav.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .75s var(--ease), visibility 0s; }
#nav a {
  font-family: var(--serif); font-size: clamp(2.5rem, 11vw, 3.6rem); font-weight: 400; line-height: 1.08; text-decoration: none;
  min-height: 52px; display: inline-flex; align-items: baseline; gap: 1rem; align-self: flex-start;
  opacity: 0; transform: translateX(30px);
  transition: opacity .4s, transform .7s var(--spring), color .2s;
}
#nav a .num { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--gold-ink); }
#nav.open a { opacity: 1; transform: none; }
#nav.open a:nth-child(2) { transition-delay: .05s; }
#nav.open a:nth-child(3) { transition-delay: .1s; }
#nav.open a:nth-child(4) { transition-delay: .15s; }
#nav a:hover, #nav a[aria-current="page"] { color: var(--gold-ink); }
#nav a[aria-current="page"] { font-style: italic; }
#nav .nav-note { margin-top: 2rem; font-size: .95rem; color: var(--ink-soft); }

@media (min-width: 960px) {
  .menu-toggle { display: none; }
  #nav {
    position: static; clip-path: none; visibility: visible; background: none; padding: 0; color: inherit;
    flex-direction: row; align-items: center; gap: .2rem; transition: none;
  }
  #nav a {
    font-family: var(--sans); font-size: .95rem; font-weight: 500; opacity: 1; transform: none; align-self: auto; align-items: center;
    min-height: 46px; padding: 0 1rem; border-radius: 12px; gap: .5rem;
    transition: background .3s, transform .5s var(--spring), color .2s;
  }
  #nav a .num { font-size: .68rem; opacity: .8; color: inherit; }
  #nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; transform: translateY(-2px); }
  #nav a[aria-current="page"] { font-style: normal; color: inherit; background: color-mix(in srgb, var(--gold) 30%, transparent); }
  #nav .nav-note { display: none; }
}

/* ---------- Герой ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; }
.sky {
  position: relative; isolation: isolate; overflow: hidden; flex: 1 0 auto; color: var(--paper);
  background: linear-gradient(180deg, #1b222b 0%, #2a333e 45%, #4f5965 75%, #8f8b80 93%, #c6b490 100%);
}
.hero-rays { position: absolute; inset: 0; z-index: -1; }
.hero-inner { display: grid; align-content: start; gap: 1.4rem; padding-top: clamp(6.5rem, 15vh, 10rem); padding-bottom: clamp(5.5rem, 12vh, 8rem); }
.hero h1 { font-size: clamp(3.9rem, 18.5vw, 12.5rem); font-weight: 300; line-height: .84; letter-spacing: -.03em; }
.hero h1 span { display: block; }
.hero h1 span:last-child { font-style: italic; padding-left: .7em; color: var(--gold-pale); }
.hero .label { color: var(--gold-pale); }
.hero .lede { color: #d4d9de; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem; margin-top: .4rem; }
.hero-actions .text-link { color: var(--paper); }
.sun {
  position: absolute; bottom: 0; left: 70%; z-index: -1; width: clamp(140px, 22vw, 300px); aspect-ratio: 2 / 1; transform: translateX(-50%);
  border-radius: 999px 999px 0 0; background: radial-gradient(circle at 50% 100%, #fff4d6 0 30%, #ecd7a6 55%, rgba(234, 217, 178, 0) 72%);
  animation: rise 6s var(--ease) both;
}
@keyframes rise { from { transform: translate(-50%, 40%); opacity: .2; } }
.horizon{position:relative;height:4px;background:linear-gradient(90deg, rgba(201, 171, 110, .3), var(--gold-pale) 70%, rgba(201, 171, 110, .5));box-shadow:0 8px 24px rgb(17 24 39 / 0.08);z-index:2}
.horizon::after { content: attr(data-mark); position: absolute; right: var(--gutter); top: 10px; font-size: .7rem; font-weight: 600; letter-spacing: .2em; color: var(--gold-ink); }
.water { position: relative; overflow: hidden; background: linear-gradient(180deg, #cfd3d5 0%, #e1e4e6 40%, var(--fog) 100%); }
.water svg.reflect { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-specs {
  position: relative; list-style: none; margin: 0 auto; padding-block: 1.8rem 2.2rem; color: var(--graphite);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.4rem;
}
.hero-specs li { display: grid; gap: .15rem; align-content: start; }
.hero-specs b { font-family: var(--serif); font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 500; line-height: 1; }
.hero-specs span { font-size: .86rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: end; }
  .hero-specs { grid-template-columns: repeat(4, 1fr); padding-block: 2.2rem 2.6rem; }
}

/* ---------- Лента ---------- */
.loop-wrap { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; height: clamp(170px, 28vw, 400px); font-family: var(--sans); }
.loop-wrap [data-ai-code-use-state="ready"] { flex: none; width: calc(100% + 16vw); margin: 0 -8vw; }
@media (min-width: 900px) { .loop-wrap [data-ai-code-use-state="ready"] { width: calc(100% + 4vw); margin: 0 -2vw; } }
.loop-fallback:not([data-ai-code-use-state="ready"]) {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter);
  font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 2.6rem); color: var(--graphite);
}

/* ---------- Секции ---------- */
.section { position: relative; padding: clamp(4.5rem, 11vw, 8.5rem) 0; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.2rem, 6vw, 3.8rem); max-width: 820px; }
.section-head p:not(.label) { color: var(--ink-soft); max-width: 54ch; font-size: 1.08rem; }
.sheet { position: absolute; top: clamp(1.5rem, 4vw, 2.5rem); right: var(--gutter); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); }

/* Залы: карточки */
.halls { display: grid; gap: 1.1rem; }
.hall{position:relative;display:grid;gap:1rem;align-content:start;overflow:hidden;padding:1.5rem;border-radius:var(--r-lg);background:var(--paper);text-decoration:none;box-shadow:0 8px 24px rgb(17 24 39 / 0.08);transition:transform .6s var(--spring), box-shadow .5s var(--ease)}
.hall:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.hall .mini { width: 100%; height: auto; border-radius: var(--r-md); background: var(--grid), var(--fog); }
.hall .mini .beam { transition: opacity .6s var(--ease); }
.hall:hover .mini .beam { opacity: 1; }
.hall-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.hall-top .n { font-size: .74rem; font-weight: 600; letter-spacing: .2em; color: var(--gold-ink); }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.specs div { padding: .7rem .75rem; border-radius: var(--r-sm); background: var(--fog); }
.specs dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.specs dd { margin: .15rem 0 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.1; }
.hall p { color: var(--ink-soft); }
.hall-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: auto; padding-top: .4rem; }
.hall-foot .price { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.hall-foot .price small { font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); }
.go { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--graphite); color: var(--paper); font-size: 1.2rem; transition: transform .6s var(--spring), background .3s; flex: none; }
.hall:hover .go { transform: rotate(-45deg) scale(1.08); background: var(--gold-ink); }
@media (min-width: 760px) { .halls { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1140px) { .halls { grid-template-columns: 1fr 1fr 1fr; } .hall:nth-child(2) { margin-top: 3.5rem; } .hall:nth-child(3) { margin-top: 7rem; } }

/* Цифры */
.numbers { background: var(--grid), var(--paper); }
.numbers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.2rem; }
.num-cell { display: grid; gap: .3rem; align-content: start; }
.num-big { font-family: var(--serif); font-size: clamp(3.4rem, 13vw, 6.4rem); font-weight: 300; line-height: .9; color: var(--graphite); display: flex; align-items: baseline; gap: .12em; }
.num-big small { font-size: .38em; font-style: italic; color: var(--gold-ink); }
.num-cell p:not(.num-big) { color: var(--ink-soft); font-size: .98rem; max-width: 24ch; }
.num-cell .bar { width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--w, 40%), var(--stone) 0); margin-bottom: .6rem; }
@media (min-width: 960px) { .numbers-grid { grid-template-columns: repeat(4, 1fr); } }

/* Белые ночи */
.nights { color: var(--paper); overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #232c38 0%, #3b4657 45%, #8d8f93 72%, #d8c9a6 86%, #e8dcc0 100%); }
.nights-sky { position: absolute; inset: auto 0 0 0; height: clamp(190px, 28vw, 400px); z-index: -1; }
.nights-sky svg { width: 100%; height: 100%; display: block; }
.nights .label { color: var(--gold-pale); }
.nights h2 { color: var(--paper); font-size: clamp(3rem, 12vw, 8rem); }
.nights h2 em { color: var(--gold-pale); }
.nights-grid { display: grid; gap: 2rem; align-items: start; padding-bottom: clamp(13rem, 27vw, 24rem); }
.nights-copy { display: grid; gap: 1.3rem; justify-items: start; }
.nights-copy p { color: #d8dde2; max-width: 46ch; font-size: 1.08rem; }
.night-cards { display: grid; gap: 1rem; }
.night-card {
  padding: 1.5rem; border-radius: var(--r-lg); display: grid; gap: .5rem;
  background: rgba(248, 248, 246, .08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 2px rgba(234, 217, 178, .14);
  transition: transform .6s var(--spring), background .4s;
}
.night-card:hover { transform: translateY(-6px); background: rgba(248, 248, 246, .13); }
.night-card .t { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-pale); }
.night-card h3 { color: var(--paper); }
.night-card p { color: #d8dde2; }
.night-card .price { font-family: var(--serif); font-size: 2rem; color: var(--gold-pale); }
@media (min-width: 960px) { .nights-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }

/* Цены */
.prices { display: grid; gap: .5rem; }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: baseline; padding: 1.1rem 1.2rem; border-radius: var(--r-md); background: var(--paper); transition: transform .5s var(--spring), background .3s; }
.price-row:hover { transform: translateX(6px); background: #fff; }
.price-row.head { background: none; padding-block: .2rem; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.price-row.head:hover { transform: none; }
.price-row .name { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.1; }
.price-row .name small { display: block; font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); font-weight: 400; margin-top: .2rem; }
.price-row .cols { display: flex; gap: 1.4rem; text-align: right; }
.price-row .cols span { min-width: 5.4em; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.price-row.head .cols span { font-weight: 600; }
.note { font-size: .9rem; color: var(--ink-soft); margin-top: 1rem; }
@media (max-width: 520px) {
  .price-row { grid-template-columns: 1fr; }
  .price-row .cols { justify-content: flex-start; text-align: left; }
  .price-row.head { display: none; }
  .price-row .cols span::before { content: attr(data-k); display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
}

/* Финальный призыв */
.cta-band { padding: 0 0 clamp(4.5rem, 10vw, 7rem); }
.cta-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2rem, 6vw, 4.5rem);
  background: var(--graphite); color: var(--paper); display: grid; gap: 1.4rem; justify-items: start;
}
.cta-card h2 { color: var(--paper); max-width: 14ch; }
.cta-card p { color: #c9d0d6; max-width: 44ch; }
.cta-card svg.deco { position: absolute; right: -40px; bottom: -30px; width: min(60%, 520px); opacity: .9; pointer-events: none; }

/* ---------- Подвал ---------- */
.foot { background: var(--graphite); color: #c4cbd1; }
.foot-line { height: 4px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-pale) 50%, var(--gold) 80%, transparent); opacity: .8; }
.foot-inner { display: grid; gap: 2rem; padding-block: 3.4rem 2.2rem; }
.foot .brand { color: var(--paper); }
.foot-tag { margin-top: .7rem; max-width: 32ch; }
.foot h2 { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-pale); margin-bottom: .6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .05rem; }
.foot a { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; text-decoration: none; transition: color .2s, transform .5s var(--spring); }
.foot a:hover { color: var(--gold-pale); transform: translateX(3px); }
.foot a[aria-current="page"] { color: var(--gold-pale); }
.foot-bottom { padding-block: 1rem 2rem; font-size: .85rem; color: #98a2ab; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
@media (min-width: 760px) { .foot-inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* ---------- Внутренние страницы ---------- */
.page-hero { position: relative; padding: 7.6rem 0 3rem; background: var(--grid), var(--fog); overflow: hidden; }
.page-hero h1 { font-size: clamp(3.2rem, 13vw, 8rem); font-weight: 300; line-height: .9; letter-spacing: -.025em; max-width: 12ch; }
.page-hero .lede { margin-top: 1.4rem; }
.page-hero-grid { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 960px) { .page-hero { padding: 9.5rem 0 4rem; } .page-hero-grid { grid-template-columns: 1.3fr .7fr; } }

/* Ползунок света */
.sun-panel {
  position: sticky; top: 72px; z-index: 20; margin-top: 1.4rem;
  padding: 1rem 1.2rem; border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow); display: grid; gap: .5rem;
}
.sun-panel .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.sun-panel label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.sun-panel output { font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.sun-panel .scale { display: flex; justify-content: space-between; font-size: .76rem; color: var(--slate); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: none; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #8d97a1, var(--gold-pale) 25%, var(--gold) 50%, var(--gold-pale) 75%, #5a6570); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #8d97a1, var(--gold-pale) 25%, var(--gold) 50%, var(--gold-pale) 75%, #5a6570); }
input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;width:30px;height:30px;margin-top:-11px;border-radius:50%;background:var(--paper);box-shadow:0 0 0 6px,0 8px 24px rgb(17 24 39 / 0.08);transition:transform .4s var(--spring)}
input[type="range"]::-moz-range-thumb{width:30px;height:30px;border:0;border-radius:50%;background:var(--paper);box-shadow:0 0 0 6px,0 8px 24px rgb(17 24 39 / 0.08)}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px var(--gold), 0 0 0 11px rgba(201, 171, 110, .35); }

.room { padding: clamp(3.5rem, 9vw, 6.5rem) 0 0; scroll-margin-top: 170px; }
.room-grid { display: grid; gap: 1.6rem; align-items: start; }
.plan-card { position: relative; border-radius: var(--r-xl); background: var(--grid), var(--paper); padding: clamp(.8rem, 3vw, 1.6rem); box-shadow: var(--shadow); }
.plan-card svg { width: 100%; height: auto; display: block; }
.plan-card .status {
  position: absolute; left: 1.2rem; bottom: 1.2rem; display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .85rem; border-radius: 999px; background: var(--graphite); color: var(--gold-pale); font-size: .82rem; font-weight: 600;
}
.plan-card .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 171, 110, .3); }
.beam { transition: opacity .5s var(--ease), transform .6s var(--ease); transform-box: view-box; }
.room-copy { display: grid; gap: 1.1rem; align-content: start; }
.room-copy .n { font-size: .76rem; font-weight: 600; letter-spacing: .2em; color: var(--gold-ink); text-transform: uppercase; }
.room-copy h2 { font-size: clamp(2.8rem, 9vw, 4.6rem); }
.room-copy > p { color: var(--ink-soft); max-width: 48ch; }
.facts-list { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .45rem; }
.facts-list li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .75rem 1rem; border-radius: var(--r-sm); background: var(--paper); }
.facts-list li span:first-child { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); padding-top: .15rem; }
.facts-list li span:last-child { font-weight: 500; }
.room-price { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .4rem; }
.room-price .p { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; line-height: 1; }
.room-price .p small { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); font-weight: 400; }
@media (max-width: 420px) { .facts-list li { grid-template-columns: 1fr; gap: .1rem; } }
@media (min-width: 960px) {
  .room-grid { grid-template-columns: 1.25fr .75fr; gap: 3.5rem; }
  .room:nth-of-type(even) .room-grid { grid-template-columns: .75fr 1.25fr; }
  .room:nth-of-type(even) .plan-card { order: 2; }
}

/* Оборудование */
.kit { display: grid; gap: 1rem; }
.kit-item { padding: 1.4rem; border-radius: var(--r-lg); background: var(--paper); display: grid; gap: .55rem; align-content: start; transition: transform .6s var(--spring), box-shadow .5s; }
.kit-item:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow); }
.kit-item svg { width: 64px; height: 64px; margin-bottom: .3rem; transition: transform .7s var(--spring); }
.kit-item:hover svg { transform: rotate(-8deg) scale(1.08); }
.kit-item h3 { font-size: 1.7rem; }
.kit-item ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .3rem; color: var(--ink-soft); }
.kit-item li { display: flex; gap: .6rem; }
.kit-item li::before { content: ""; width: 10px; height: 2px; margin-top: .8em; background: var(--gold); flex: none; }
.kit-item .tag { justify-self: start; margin-top: .3rem; padding: .35rem .75rem; border-radius: 999px; background: var(--fog); font-size: .8rem; font-weight: 600; color: var(--gold-ink); }
@media (min-width: 720px) { .kit { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1140px) { .kit { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Бронирование ---------- */
.book-grid { display: grid; gap: 2rem; align-items: start; }
.form-card { border-radius: var(--r-xl); background: var(--paper); padding: clamp(1.3rem, 4vw, 2.6rem); box-shadow: var(--shadow); display: grid; gap: 1.2rem; }
.form-step { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin-top: .6rem; }
.form-step:first-of-type { margin-top: 0; }
.field { display: grid; gap: .4rem; }
.field > label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
.form-row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } .form-row.three { grid-template-columns: 1.3fr 1fr 1fr; } }
input:not([type="radio"]):not([type="checkbox"]):not([type="range"]), select, textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border: 0; border-radius: var(--r-sm);
  font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--fog);
  box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231f252b' stroke-width='1.8' stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.8rem; }
textarea { min-height: 120px; resize: vertical; }
input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):hover, select:hover, textarea:hover { background-color: var(--stone); }
input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):focus-visible, select:focus-visible, textarea:focus-visible { outline: none; background-color: #fff; box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 5px rgba(201, 171, 110, .25); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hall-pick { display: grid; gap: .6rem; margin-top: .3rem; }
.pick { position: relative; display: block; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick-body {
  display: grid; grid-template-columns: 64px 1fr; gap: .2rem .9rem; align-items: center;
  padding: .8rem; border-radius: var(--r-md); background: var(--fog);
  box-shadow: inset 0 0 0 2px transparent; transition: background .3s, box-shadow .3s, transform .5s var(--spring);
}
.pick-body svg { grid-row: span 2; width: 64px; height: 48px; border-radius: 10px; background: var(--paper); }
.pick-body b { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.1; }
.pick-body small { color: var(--ink-soft); font-size: .86rem; }
.pick:hover .pick-body { transform: translateY(-2px); }
.pick input:checked + .pick-body { background: var(--graphite); color: var(--paper); transform: scale(1.01); }
.pick input:checked + .pick-body small { color: #c9d0d6; }
.pick input:focus-visible + .pick-body { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 5px rgba(201, 171, 110, .3); }
@media (min-width: 760px) { .hall-pick { grid-template-columns: repeat(3, 1fr); } .pick-body { grid-template-columns: 1fr; } .pick-body svg { grid-row: auto; width: 100%; height: 70px; } }
.checks { display: grid; gap: .5rem; margin-top: .3rem; }
.check { position: relative; display: flex; align-items: center; gap: .8rem; min-height: 52px; padding: .6rem .9rem; border-radius: var(--r-sm); background: var(--fog); cursor: pointer; transition: background .3s; }
.check:hover { background: var(--stone); }
.check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; flex: none; border-radius: 7px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--stone-2); display: grid; place-items: center; cursor: pointer; transition: background .25s, box-shadow .25s; }
.check input::after { content: ""; width: 11px; height: 6px; margin-top: -3px; border: solid var(--paper); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0); transition: transform .35s var(--spring); }
.check input:checked { background: var(--graphite); box-shadow: none; }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible { box-shadow: 0 0 0 4px rgba(201, 171, 110, .5); }
.check span { flex: 1; }
.check small { color: var(--ink-soft); white-space: nowrap; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.estimate {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem;
  padding: 1.1rem 1.2rem; border-radius: var(--r-md); background: var(--graphite); color: var(--paper);
}
.estimate span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-pale); font-weight: 600; }
.estimate output { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; line-height: 1; }
.estimate small { flex-basis: 100%; color: #b9c2ca; font-size: .86rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.form-foot p { flex: 1 1 220px; font-size: .88rem; color: var(--ink-soft); }
.site-form-status { margin: 0; padding: .9rem 1.1rem; border-radius: var(--r-sm); background: var(--gold-pale); color: var(--graphite); font-weight: 600; }
.site-form-status:empty { display: none; }
.aside { display: grid; gap: 1rem; }
.aside-card { padding: 1.5rem; border-radius: var(--r-lg); background: var(--paper); display: grid; gap: .8rem; }
.aside-card h2 { font-size: 2rem; font-weight: 500; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; counter-reset: r; }
.rules li { display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; color: var(--ink-soft); counter-increment: r; }
.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--gold-ink); line-height: 1.2; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; text-decoration: none; color: var(--ink); }
.contact-list .icon { color: var(--gold-ink); font-size: 1.15rem; }
.contact-list a:hover { color: var(--gold-ink); }
@media (min-width: 1040px) { .book-grid { grid-template-columns: 1.45fr .55fr; gap: 2.5rem; } .aside { position: sticky; top: 100px; } }

/* ---------- Появление ---------- */
@media (scripting:enabled){.js .reveal{opacity:0;transform:translateY(30px);transition:opacity .9s var(--ease), transform 1s var(--spring);transition-delay:calc(var(--i, 0) * 90ms)}}
.js .reveal.in { opacity: 1; transform: none; }
.js .draw path.wall, .js .draw .dim { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.2s var(--ease); }
.js .draw.in path.wall, .js .draw.in .dim { stroke-dashoffset: 0; }

@supports (corner-shape: squircle) {
  .hall, .hall .mini, .specs div, .night-card, .price-row, .cta-card, .plan-card, .facts-list li, .kit-item, .form-card, .pick-body, .check, .estimate, .aside-card, .btn, .go, .sun-panel, .site-form-status, input:not([type="radio"]):not([type="checkbox"]):not([type="range"]), select, textarea { corner-shape: squircle; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .draw path.wall, .js .draw .dim { stroke-dashoffset: 0; }
}

/* Уточнения */
h1, h2, h3, .num-big, .hero-specs b, .price, .specs dd, .room-price .p, .estimate output, .sun-panel output, .night-card .price, .price-row .name, .pick-body b, .rules li::before { font-variant-numeric: lining-nums; }
.hero h1 { margin-bottom: .35em; }
@media (min-width: 900px) { .sun { left: 84%; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-hero .sheet { top: 5.8rem; }
.pick, .pick-body { height: 100%; }
.num-big, .num-big *, .hero-specs b, .price, .room-price .p, .estimate output { font-feature-settings: "lnum" 1; }
@media (max-width: 759px) {
  .sun-panel { padding: .6rem 1rem .4rem; gap: 0; top: 66px; }
  .sun-panel .scale { display: none; }
  .sun-panel output { font-size: 1.6rem; }
  .plan-card .status { position: static; margin-top: .4rem; }
}
