/* Фирменные шрифты по логобуку: Discovery — заголовки (только прописные; восстановлен из Логобук.pdf, цифр и знаков в нём нет),
   Montserrat — текст. Цифры и знаки в заголовках берутся из Montserrat Medium под тем же именем семейства. */
@font-face {
  font-family: 'Discovery';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/discovery.woff2) format('woff2');
  unicode-range: U+0020, U+00A0, U+0041-005A, U+0061-007A, U+0401, U+0410-044F, U+0451;
}
@font-face {
  font-family: 'Discovery';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/montserrat-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400, U+0402-040F, U+0452-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Discovery';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0021-0040, U+005B-0060, U+007B-00FF, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/montserrat-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Свистоплясово — оформление по логобуку (Логобук.pdf).
   Шрифты: Discovery — заголовки (прописные), Montserrat — текст.
   Цвета логобука: красный #E52522, зелёный #2B9637, жёлтый #F7AC11, оранжевый #EE7919, чёрный; фон 1 — #851313, фон 2 — #2B9637.
   Настроение — зимний вечер, как на первом экране: тёмный тёплый «ночной» фон (#140e0b) в тон затемнения кадров,
   кремовые светлые блоки, фото-полосы. Главный акцент — жёлтый логобука, кнопки — красный; зелёный и оранжевый — только точки и эмблемы.
   Каждый следующий блок наезжает на предыдущий скруглённым краем — без резких обрывов. */
:root {
  --red: #e52522;
  --red-d: #c81e1b;
  --wine: #851313;
  --wine-d: #6e0f0f;
  --green: #2b9637;
  --yellow: #f7ac11;
  --orange: #ee7919;
  --bg: #ffffff;
  --snow: #f6f0e6;
  --snow-2: #ece3d4;
  --night: #140e0b;
  --night-2: #221a15;
  --sr: 22px;
  --card: #ffffff;
  --ink: #141414;
  --ink-2: #3f3d39;
  --muted: #76726a;
  --line: rgba(20, 20, 20, .1);
  --line-2: rgba(20, 20, 20, .18);
  --r: 22px;
  --r-s: 14px;
  --pr: 28px;
  --edge: 0px;
  --wrap: 1240px;
  --gut: 18px;
  --hdr: 64px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Discovery", "Montserrat", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 22px 44px -26px rgba(60, 20, 10, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 64px); }
/* плавная прокрутка — только после загрузки (site.js: .is-ready): по ссылке с якорем (плашки «Что ищете?»)
   страница сразу открывается на нужном разделе, а не пролистывает перед глазами несколько экранов */
html.is-ready { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.04; letter-spacing: .01em; margin: 0 0 .45em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.6rem); }
h3, .h3 { font-family: var(--font); font-size: 1.12rem; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; margin: 0 0 .45em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .92rem; }
@media (max-width: 899px) { .d-only { display: none !important; } }
@media (min-width: 900px) { .m-only { display: none !important; } :root { --gut: 40px; --hdr: 80px; --edge: 16px; --pr: 44px; --sr: 48px; } }

/* ---------- эмблемы из логотипа (солнце, сердце, цветок) ---------- */
.em { position: relative; display: inline-block; width: .74em; height: .74em; margin: 0 .02em; vertical-align: 0; background: url(/img/em-sun.svg) center / contain no-repeat; }
/* буква под эмблемой: в тексте для поисковиков и дикторов, на экране не видна и не сдвигает строку */
.em > b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.em--heart { background-image: url(/img/em-heart.svg); }
.em--flower { background-image: url(/img/em-flower.svg); }

/* ---------- метки: плашка с эмблемой вместо газетных капителей ---------- */
.label, .eyebrow, .badge, .kicker { display: inline-flex; align-items: center; gap: 9px; font: 600 14px/1.25 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0 0 14px; }
.label::before, .eyebrow::before, .badge::before, .kicker::before { content: ""; flex: none; width: 22px; height: 22px; background: url(/img/em-sun.svg) center / contain no-repeat; }
.label--gold::before, .eyebrow--light::before { background-image: url(/img/em-heart.svg); }
.badge { background: var(--snow); padding: 6px 14px 6px 6px; border-radius: 999px; }
.dark .label, .dark .eyebrow, .dark .badge { color: rgba(255, 255, 255, .88); }
.dark .badge { background: rgba(255, 255, 255, .1); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 28px; border-radius: 999px; border: 2px solid transparent; background: var(--ink); color: #fff; font: 600 15px/1.1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), border-color .25s, color .25s, transform .25s var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 12px 24px -14px rgba(229, 37, 34, .7); }
.btn--primary:hover { background: var(--red-d); }
.btn--ghost, .btn--line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover, .btn--line:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--yellow); }
.btn--gold { background: var(--green); color: #fff; }
.btn--line-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--line-light:hover { background: #fff; color: var(--ink); }
.btn--small { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--red); border-bottom: 2px solid rgba(229, 37, 34, .25); padding-bottom: 1px; transition: border-color .2s; }
.more:hover { border-color: var(--red); }

/* ---------- плашка и шапка ---------- */
.topbar { background: var(--night); color: rgba(255, 255, 255, .85); font-size: 13px; }
.topbar__in { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gut); display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.topbar b { font-weight: 700; color: var(--yellow); }
.topbar__star { width: 16px; height: 16px; flex: none; font-size: 0; background: url(/img/em-sun.svg) center / contain no-repeat; }
.topbar__more { display: none; }
.topbar__link { border: 0; background: none; padding: 0; color: #fff; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(247, 172, 17, .8); }
@media (min-width: 700px) { .topbar__more { display: inline; } }
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(20, 14, 11, .82); backdrop-filter: saturate(1.2) blur(16px); transition: background-color .3s, box-shadow .3s; }
.hdr.is-scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 14px 30px -20px rgba(0, 0, 0, .6); }
.hdr__in { height: var(--hdr); max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.nav { display: none; gap: 30px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, .78); transition: color .2s; position: relative; }
.nav a:hover, .nav a[aria-current] { color: #fff; }
.nav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--yellow); }
.hdr__phone { display: none; font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; color: #fff; }
.hdr__cta { display: none; }
/* бургер с подписью «Меню» (19.11: три полоски без подписи не все узнают) — стеклянная пилюля, как плашки первого экрана */
.burger { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px 0 16px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); color: #fff; font: 600 14px/1 var(--font); cursor: pointer; transition: background-color .2s, border-color .2s; }
.burger:hover { background: rgba(255, 255, 255, .2); }
.burger[aria-expanded="true"] { border-color: var(--yellow); }
.burger__txt { font-weight: 600; }
.burger__ic, .burger__ic::before, .burger__ic::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, background-color .2s; }
.burger__ic::before, .burger__ic::after { content: ""; position: absolute; left: 0; }
.burger__ic::before { top: -6px; } .burger__ic::after { top: 6px; }
.burger[aria-expanded="true"] .burger__ic { background: transparent; }
.burger[aria-expanded="true"] .burger__ic::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__ic::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 900px) { .brand img { height: 54px; } .nav, .hdr__phone, .hdr__cta { display: inline-flex; } .burger { display: none; } }
@media (min-width: 900px) and (max-width: 1140px) { .hdr__phone { display: none; } .nav { gap: 22px; } }

.menu { position: fixed; inset: var(--hdr) 0 0 0; z-index: 39; background: var(--night); color: #fff; padding: 18px var(--gut) 110px; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; }
.menu[hidden] { display: none; }
.menu__h { margin: 0 0 12px; font: 400 19px/1.2 var(--display); text-transform: uppercase; color: var(--yellow); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { font: 600 16px/1.2 var(--font); text-decoration: none; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); }

/* ---------- плашки «Что ищете?» (DIRECTIONS): первый экран телефона и меню ---------- */
.dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dir { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 6px 10px 6px 7px; border-radius: var(--r-s); border: 1px solid rgba(255, 255, 255, .26); background: rgba(20, 14, 11, .42); backdrop-filter: blur(10px); color: #fff; font: 600 14px/1.15 var(--font); text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s var(--ease); -webkit-tap-highlight-color: transparent; }
.dir img { flex: none; width: 34px; height: 34px; }
.dir span { min-width: 0; }
.dir:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.dir:active { transform: scale(.97); }
.dir--main { background: var(--red); border-color: var(--red); box-shadow: 0 12px 24px -14px rgba(229, 37, 34, .7); }
.dir--main:hover { background: var(--red-d); border-color: var(--red-d); }
.menu .dir { background: rgba(255, 255, 255, .06); backdrop-filter: none; }
.menu .dir--main { background: var(--red); }
.menu__contacts { display: grid; gap: 10px; }
.menu__contacts .btn--light { background: var(--red); color: #fff; }
.menu__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- светлые блоки — тёмный бревенчатый сруб; переходы из тёмного — длинным градиентом ---------- */
:root {
  --fade: 90px;
  --fade-mid: rgba(24, 15, 10, .5);
  --wood: linear-gradient(rgba(28, 16, 8, .38), rgba(28, 16, 8, .38)), #4a2f1c url(/img/wood.webp) center top / 100% auto repeat-y;
  --wood-deep: linear-gradient(rgba(28, 16, 8, .5), rgba(28, 16, 8, .5)), #3e2716 url(/img/wood.webp) center top / 100% auto repeat-y;
  --wood-panel: linear-gradient(rgba(26, 17, 11, .9), rgba(26, 17, 11, .9)), #1f1610 url(/img/wood.webp) center / 900px auto repeat;
}
@media (min-width: 900px) { :root { --fade: 240px; } }
main > section { position: relative; }
body { background: #3b2516; }
main :is(.houses, .story, .reviews, .sec--paper, .sec--paper2, .hhead, .hgal) { position: relative; isolation: isolate; background: var(--wood); color: #f3e9dc; }
main :is(.reviews, .sec--paper2) { background: var(--wood-deep); }
:is(.houses, .story, .reviews, .sec--paper, .sec--paper2, .hhead, .hgal) > * { position: relative; z-index: 1; }
:is(.dark, .ny, .sec--ny, .sec--night, .cta, .phero, .hero) + :is(.houses, .story, .reviews, .sec--paper, .sec--paper2)::before,
.anchors + :is(.sec--paper, .sec--paper2)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--fade); z-index: 0; pointer-events: none; background: linear-gradient(180deg, var(--night) 0%, var(--fade-mid) 45%, rgba(20, 14, 11, 0) 100%); }
:is(.houses, .story, .reviews, .sec--paper, .sec--paper2):has(+ :is(.dark, .ny, .sec--ny, .sec--night, .cta))::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--fade); z-index: 0; pointer-events: none; background: linear-gradient(0deg, var(--night) 0%, var(--fade-mid) 45%, rgba(20, 14, 11, 0) 100%); }
@media (min-width: 900px) {
  :is(.dark, .ny, .sec--ny, .sec--night, .cta, .phero, .hero) + :is(.houses, .story, .reviews, .sec--paper, .sec--paper2) { padding-top: calc(var(--fade) * .6); }
  :is(.houses, .story, .reviews, .sec--paper, .sec--paper2):has(+ :is(.dark, .ny, .sec--ny, .sec--night, .cta)) { padding-bottom: calc(var(--fade) * .6); }
}
/* светлый текст на дереве */
:is(.houses, .story, .reviews, .sec--paper, .sec--paper2, .hhead) :is(h1, h2, .hcard, .hcard__name, .lform__title) { color: #fff; }
:is(.houses, .story, .reviews, .sec--paper, .sec--paper2, .hhead) :is(.sec__lead, .sec__aside, .story__text p, .reviews__text > p, .hcard__tag, .muted, .story__map figcaption, .crumbs, .egroup__more, .swipe-hint, .route p) { color: rgba(255, 255, 255, .72); }
:is(.houses, .story, .reviews, .sec--paper, .sec--paper2, .hhead) :is(.label, .eyebrow, .badge) { color: rgba(255, 255, 255, .9); }
:is(.houses, .story, .reviews, .sec--paper, .sec--paper2, .hhead) .badge { background: rgba(255, 255, 255, .1); }
:is(.houses, .story, .reviews, .sec--paper, .sec--paper2, .hhead) .more { color: var(--yellow); border-color: rgba(247, 172, 17, .4); }
:is(.houses, .story, .reviews, .sec--paper, .sec--paper2) :is(.btn--ghost, .btn--line):not(.hrow .btn) { border-color: rgba(255, 255, 255, .6); color: #fff; }
:is(.houses, .story, .reviews, .sec--paper, .sec--paper2) :is(.btn--ghost, .btn--line):not(.hrow .btn):hover { background: #fff; color: var(--ink); }
:is(.houses, .story, .reviews, .sec--paper, .sec--paper2) .hcard--all { background: rgba(255, 255, 255, .1); color: #fff; }
:is(.sec--paper, .sec--paper2) .faq__item { background: rgba(255, 255, 255, .08); }
:is(.sec--paper, .sec--paper2) .faq__item p { color: rgba(255, 255, 255, .72); }
.hhead .hrow__meta span { background: rgba(255, 255, 255, .1); color: #fff; }
/* карточки — см. блок «карточки — тёмные деревянные панели» в конце файла */

/* ---------- тёмные блоки — продолжение вечернего первого экрана ---------- */
.dark, .sec.dark { background: var(--night); color: #fff; }
.dark h1, .dark h2 { color: #fff; }
.dark .sec__lead, .dark .sec__aside, .dark .muted { color: rgba(255, 255, 255, .72); }
.dark .more { color: var(--yellow); border-color: rgba(247, 172, 17, .35); }
.glow::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 50% at 85% 0%, rgba(238, 121, 25, .14), transparent 70%), radial-gradient(50% 45% at 0% 100%, rgba(247, 172, 17, .08), transparent 70%); }
/* фото-полоса: резкий кадр под тёмной вуалью */
.band__bg { position: absolute; inset: 0; z-index: -1; }
.band__bg picture, .band__bg img { display: block; width: 100%; height: 100%; }
.band__bg img { object-fit: cover; }
.band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 11, .8) 0%, rgba(20, 14, 11, .45) 35%, rgba(20, 14, 11, .6) 70%, rgba(20, 14, 11, .92) 100%); }

/* ---------- первый экран: кадры на весь экран, шапка поверх ---------- */
.home .topbar { display: none; }
.hero { position: relative; isolation: isolate; display: flex; min-height: 100svh; margin-top: calc(-1 * var(--hdr)); overflow: hidden; background: var(--night); color: #fff; }
.hero__slides { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); background: center / cover no-repeat; }
.hero__slide.is-on { opacity: 1; }
.hero__slide picture, .hero__slide img { display: block; width: 100%; height: 100%; }
.hero__slide img { object-fit: cover; object-position: var(--pm, 50% 50%); transform-origin: 50% 45%; transform: scale(1.02); }
.hero__slide.is-on img, .hero__slide.is-leaving img { animation: kenburns 13s linear both; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.hero.is-paused .hero__slide img, .hero.is-paused .hero__bar i { animation-play-state: paused; }
.hero__shade { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(180deg, rgba(20, 14, 11, .62) 0%, rgba(20, 14, 11, .12) 20%, rgba(20, 14, 11, .22) 40%, rgba(20, 14, 11, .82) 66%, var(--night) 100%); }
.hero__snow { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__in { flex: 1; display: flex; flex-direction: column; padding-top: calc(var(--hdr) + 24px); padding-bottom: 14px; }
.hero__main { margin-top: auto; }
@media (min-width: 900px) { .hero__side { margin-bottom: auto; } }
.hero .label { color: rgba(255, 255, 255, .88); margin-bottom: 10px; font-size: 13px; }
.hero__title { color: #fff; font-size: clamp(1.55rem, 7.8vw, 2.4rem); line-height: 1.04; margin-bottom: 12px; text-shadow: 0 2px 40px rgba(0, 0, 0, .3); }
.hero__title > span { display: block; white-space: nowrap; }
.hero__title > span + span { color: var(--yellow); }
.hero__lead { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .88); margin-bottom: 16px; max-width: 36em; }
.hero__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero__ask { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 15px/1.2 var(--font); color: var(--yellow); }
.hero__ask::before { content: ""; flex: none; width: 20px; height: 20px; background: url(/img/em-sun.svg) center / contain no-repeat; }
.hero__cta .btn { padding-inline: 10px; font-size: 14px; white-space: normal; text-align: center; line-height: 1.15; }
.btn--glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); color: #fff; backdrop-filter: blur(10px); }
.btn--glass:hover { background: #fff; color: var(--ink); }
.hero__bottom { display: grid; gap: 12px; margin-top: 18px; }
.hero__caps { display: flex; gap: 8px; }
.hero__cap { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: center; padding: 6px 0; border: 0; background: none; text-align: left; color: rgba(255, 255, 255, .55); font: 600 12px/1.3 var(--font); cursor: pointer; transition: color .3s; }
.hero__cap:hover, .hero__cap[aria-selected="true"] { color: #fff; }
.hero__bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .24); overflow: hidden; }
.hero__bar i { display: block; height: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.hero__cap[aria-selected="true"] .hero__bar i { animation: cap var(--dur, 7000ms) linear both; }
@keyframes cap { to { transform: scaleX(1); } }
.hero__num { color: var(--yellow); }
.hero__txt { display: none; }
.hero__info { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__rate, .hero__ny { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); color: rgba(255, 255, 255, .9); font: 500 12.5px/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.hero__rate b, .hero__ny b { color: var(--yellow); font-weight: 700; }
.hero__ny:hover, .hero__rate:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 899px) {
  .hero__info { flex-wrap: nowrap; gap: 6px; }
  .hero__rate, .hero__ny { padding: 6px 10px; font-size: 12px; }
}
@media (max-width: 899px) and (max-height: 700px) { .hero__lead { display: none; } }
@media (max-width: 374px) { .hero__rate span { display: none; } .hero .label { font-size: 12px; gap: 7px; white-space: nowrap; } .hero .label::before { width: 18px; height: 18px; } }
@media (min-width: 900px) {
  .hero { min-height: max(100svh, 680px); }
  .hero__shade { background:
    linear-gradient(90deg, rgba(20, 14, 11, .88) 0%, rgba(20, 14, 11, .62) 30%, rgba(20, 14, 11, .16) 58%, rgba(20, 14, 11, 0) 76%),
    linear-gradient(0deg, var(--night) 0%, rgba(20, 14, 11, .55) 20%, rgba(20, 14, 11, 0) 46%),
    linear-gradient(180deg, rgba(20, 14, 11, .55) 0%, rgba(20, 14, 11, 0) 18%); }
  .hero__slide img { object-position: var(--pd, 60% 50%); transform-origin: var(--ko, 62% 45%); }
  .hero__in { padding-top: calc(var(--hdr) + 40px); padding-bottom: 26px; }
  .hero .label { font-size: 14px; margin-bottom: 18px; }
  .hero__title { font-size: clamp(2.6rem, 5.3vw, 6.4rem); line-height: .98; margin-bottom: 30px; }
  .hero__side { display: grid; grid-template-columns: minmax(0, 600px) auto; justify-content: space-between; align-items: end; gap: 24px 48px; }
  .hero__lead { font-size: clamp(17px, 1.3vw, 19.5px); line-height: 1.6; margin: 0; }
  .hero__cta { display: flex; gap: 12px; }
  .hero__cta .btn { padding-inline: 30px; font-size: 15px; white-space: nowrap; }
  .hero__bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; margin-top: 32px; }
  .hero__caps { gap: 14px; }
  .hero__cap { font-size: 12.5px; }
  .hero__txt { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero__rate, .hero__ny { font-size: 13.5px; padding: 9px 16px; }
}

/* шапка поверх кадра: прозрачная, белые буквы; после прокрутки и при открытом меню — обычная */
.hdr .brand img { display: none; }
.hdr .brand .brand__light { display: block; }
.hdr--over:not(.is-scrolled):not(:has(.burger[aria-expanded="true"])) { background: transparent; backdrop-filter: none; box-shadow: none; }
.nav a:hover { color: var(--yellow); }

/* ---------- секции ---------- */
.sec { padding: 40px 0; position: relative; background: var(--bg); }
.sec--frost, .sec--paper2 { background: var(--snow); }
.sec--paper { background: var(--bg); }
.sec__head { margin-bottom: 22px; }
.sec__head h2 { margin-bottom: .3em; }
.sec__head--row, .sec__head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 40px; }
.sec__head--center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.sec__lead { color: var(--ink-2); font-size: 16.5px; max-width: 44em; margin: 0; }
.sec__head--center .sec__lead { margin: 0 auto; }
.sec__aside { max-width: 30em; margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 899px) { .sec__head--row > .more { display: none; } }
@media (min-width: 900px) { .sec { padding: 104px 0; } .sec__head { margin-bottom: 52px; } .sec__lead { font-size: 18px; } }

/* ---------- как тут дышится: тёмный блок, продолжает первый экран ---------- */
.beats { padding-top: 8px; }
.beats__flow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font: 600 13px/1.3 var(--font); color: #fff; }
.beats__flow i { font-size: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); }
.beats__flow i:nth-of-type(2) { background: var(--orange); }
.beats__flow i:nth-of-type(3) { background: var(--red); }
.beats__row { display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scrollbar-width: none; }
.beats__row::-webkit-scrollbar { display: none; }
.beat { position: relative; scroll-snap-align: start; border-radius: var(--r); overflow: hidden; height: 204px; background: var(--night-2); isolation: isolate; color: #fff; }
.beat__img, .beat__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.beat__img img { object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.beat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 14, 11, 0) 40%, rgba(20, 14, 11, .8)); }
.beat__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; }
.beat__n { display: none; }
.beat__txt b { display: block; font: 400 19px/1.1 var(--display); text-transform: uppercase; }
.beat__txt p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .92); }
@media (min-width: 900px) {
  .beats { padding-top: 40px; }
  .beats__flow { font-size: 15px; gap: 6px 14px; }
  .beats__row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 22px; }
  .beat { height: auto; overflow: visible; background: none; isolation: auto; }
  .beat::after { display: none; }
  .beat__img { position: relative; inset: auto; height: auto; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; background: var(--night-2); }
  .beat__img img { position: absolute; z-index: 0; }
  .beat:hover .beat__img img { transform: scale(1.04); }
  .beat:nth-child(even) { margin-top: 56px; }
  .beat__txt { position: static; padding: 22px 4px 0; }
  .beat__txt b { font-size: 24px; }
  .beat__txt b::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; border-radius: 50%; background: var(--yellow); vertical-align: 1px; }
  .beat:nth-child(2) .beat__txt b::before { background: var(--orange); }
  .beat:nth-child(3) .beat__txt b::before { background: var(--red); }
  .beat:nth-child(4) .beat__txt b::before { background: #fff; }
  .beat__txt p { font-size: 15.5px; margin-top: 8px; color: rgba(255, 255, 255, .72); }
}

/* ---------- дома ---------- */
.houses { background: var(--snow); }
.hcards { display: grid; grid-auto-flow: column; grid-auto-columns: 76%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 6px; scrollbar-width: none; }
.hcards::-webkit-scrollbar { display: none; }
.hcard { display: flex; flex-direction: column; scroll-snap-align: start; text-decoration: none; color: var(--ink); }
.hcard__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--snow-2); }
.hcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hcard:hover .hcard__img img { transform: scale(1.04); }
.hcard__ny { position: absolute; left: 12px; top: 12px; background: var(--red); color: #fff; font: 700 12px/1 var(--font); padding: 8px 12px; border-radius: 999px; }
.hcard__body { display: grid; gap: 4px; padding: 12px 2px 0; }
.hcard__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hcard__name { font: 400 19px/1.1 var(--display); text-transform: uppercase; }
.hcard__price { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; background: var(--yellow); padding: 5px 10px; border-radius: 999px; }
.hcard__price small { font-weight: 500; font-size: .92em; }
.hcard__tag { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.hcard--all { justify-content: space-between; padding: 18px; border-radius: var(--r); background: #fff; font-size: 17px; font-weight: 600; }
.hcard--all b { font-size: 28px; font-weight: 400; color: var(--red); }
@media (min-width: 900px) {
  .hcards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 28px; }
  .hcards--2 { grid-template-columns: repeat(2, 1fr); }
  .hcard__img { aspect-ratio: 4 / 5; border-radius: 28px; }
  .hcard__body { padding-top: 18px; }
  .hcard__name { font-size: clamp(19px, 1.7vw, 23px); }
  .hcard__price { font-size: 14px; padding: 7px 13px; }
  .hcard__tag { font-size: 15px; }
  .hcard__ny { left: 16px; top: 16px; font-size: 13px; padding: 9px 14px; }
}

/* ---------- Новый год: фото-полоса в тон первого экрана ---------- */
.ny, .sec--ny { background: var(--night); color: #fff; }
.ny h2, .sec--ny h2 { color: #fff; }
.ny .label, .sec--ny .label, .sec--ny .badge { color: rgba(255, 255, 255, .88); }
.sec--ny .badge { background: rgba(255, 255, 255, .1); }
.ny .sec__lead, .sec--ny .sec__lead { color: rgba(255, 255, 255, .78); }
.offers { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut) 8px; scrollbar-width: none; }
.offers::-webkit-scrollbar { display: none; }
.offer { scroll-snap-align: center; background: var(--card); color: var(--ink); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .6); }
.offer__img { aspect-ratio: 5 / 2; overflow: hidden; background: var(--snow-2); }
.offer__img img { width: 100%; height: 100%; object-fit: cover; }
.offer__body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.offer__who { font: 700 12.5px/1.2 var(--font); color: var(--red); margin: 0 0 6px; }
.offer h3 { font: 400 18px/1.15 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.offer__list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.offer__list li { padding-left: 20px; position: relative; }
.offer__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.offer__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; }
.offer__foot .price { margin: 0; display: grid; gap: 0; }
.offer__foot .price b { font-size: 19px; }
.ny__more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; justify-content: center; font-size: 14px; }
.ny__more a { text-decoration: none; color: #fff; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .45); transition: background-color .2s, color .2s; }
.ny__more a:hover { background: #fff; color: var(--ink); }
.ny__more a.m-only { border: 0; padding: 4px 0; color: var(--yellow); }
.ny__more span { color: rgba(255, 255, 255, .6); margin-right: 4px; }
@media (min-width: 900px) {
  .offers { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 28px; }
  .offer { border-radius: 28px; }
  .offer__img { aspect-ratio: 3 / 2; }
  .offer__body { padding: 24px 26px 26px; }
  .offer h3 { font-size: 23px; margin-bottom: 14px; }
  .offer__foot { padding-top: 16px; border-top: 1px solid var(--line); }
  .ny__more { margin-top: 44px; }
}

/* ---------- о месте, отзывы (компьютер) ---------- */
.story__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.story__text p { font-size: 17px; color: var(--ink-2); max-width: 30em; }
.story__map { margin: 0; position: relative; }
.story__map img { border-radius: 32px; }
.story__map::before { content: ""; position: absolute; right: -30px; bottom: -30px; width: 96px; height: 96px; background: url(/img/em-heart.svg) center / contain no-repeat; z-index: 1; }
.story__map figcaption { font-size: 13px; color: var(--muted); margin-top: 14px; }
.reviews { background: var(--snow); }
.reviews__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.reviews__text > p { color: var(--ink-2); font-size: 17px; }
.route { margin-top: 44px; padding: 24px 26px; border-radius: var(--r); background: rgba(20, 14, 11, .45); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.route p:not(.label) { color: var(--ink-2); font-size: 15.5px; }
.reviews__frame { position: relative; height: 580px; padding: 12px; border-radius: 32px; background: linear-gradient(160deg, #fbf5ea, #efe3cf); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 90px -40px rgba(0, 0, 0, .75); transform: rotate(-.6deg); }
.reviews__frame::before { content: ""; position: absolute; z-index: 2; right: -26px; top: -26px; width: 78px; height: 78px; background: url(/img/em-heart.svg) center / contain no-repeat; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.reviews__frame::after { content: "5,0 ★ · Яндекс Карты"; position: absolute; z-index: 2; left: 28px; bottom: -16px; padding: 8px 16px; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 13px/1 var(--font); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .4); }
.reviews__frame iframe { width: 100%; height: 100%; border: 0; border-radius: 22px; background: #fff; }

/* ---------- призыв с формой ---------- */
.cta { background: var(--night); color: #fff; }
.cta h2 { color: #fff; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(55% 60% at 100% 0%, rgba(238, 121, 25, .16), transparent 70%), radial-gradient(45% 50% at 0% 100%, rgba(247, 172, 17, .1), transparent 70%); }
.cta__card { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--wood-panel); color: #fff; border-radius: 32px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -40px rgba(0, 0, 0, .7); }
.cta__card h2 { color: #fff; }
.cta__photo img { width: 100%; height: 100%; object-fit: cover; min-height: 520px; }
.cta__body { padding: 48px 52px; }
.cta__body h2 { margin-bottom: 10px; }
.cta__lead { color: rgba(255, 255, 255, .72); font-size: 16.5px; margin-bottom: 24px; }
.cta__lead a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 2px solid rgba(247, 172, 17, .5); }
.cta__in { position: relative; display: grid; gap: 22px; }
.cta__text h2 { margin-bottom: 10px; }
.cta__text p { color: rgba(255, 255, 255, .78); font-size: 16px; margin-bottom: 16px; }
.cta__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.cta__quick .btn { padding-inline: 10px; font-size: 14px; }
.cta__form .lform { background: var(--wood-panel); color: #fff; border-radius: var(--r); padding: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -36px rgba(0, 0, 0, .6); }
.inner .cta { padding: 36px 0; }
@media (min-width: 900px) {
  .inner .cta { padding: 100px 0; }
  .cta__in { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
  .cta__text p { font-size: 18px; }
  .cta__quick { display: flex; flex-wrap: wrap; }
  .cta__form .lform { padding: 34px; border-radius: 28px; }
}

/* ---------- форма ---------- */
.lform { display: grid; gap: 14px; color: #fff; }
.lform__title { font-weight: 700; font-size: 18px; margin: 0; }
.lform__topics { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; }
.chip-radio span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .85); transition: .2s; }
.chip-radio input:checked + span { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.lform__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .lform__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.field input, .field textarea { width: 100%; font: 500 16px/1.3 var(--font); color: #fff; background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .12); border-radius: var(--r-s); padding: 13px 15px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field ::placeholder { color: rgba(255, 255, 255, .38); }
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus { outline: none; background: rgba(255, 255, 255, .09); border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(247, 172, 17, .16); }
.field input[aria-invalid="true"] { border-color: #ff7a6b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .58); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--yellow); }
.consent a { color: rgba(255, 255, 255, .85); }
.lform__msg { margin: 0; font-size: 14px; }
.lform__msg.is-err { color: #ff8a7a; font-weight: 600; }
.lform.is-sent > :not(.lform__done) { display: none; }
.lform__done { display: grid; gap: 10px; text-align: center; justify-items: center; padding: 14px 0; }
.lform__done img { width: 72px; height: 72px; }
.lform__done b { font: 400 24px/1.1 var(--display); text-transform: uppercase; }
.lform__done p { margin: 0; color: rgba(255, 255, 255, .72); }

/* ---------- модальное окно ---------- */
.modal { border: 0; padding: 0; background: transparent; width: 100%; max-width: 560px; max-height: 100dvh; margin: auto auto 0; color: #fff; }
.modal::backdrop { background: rgba(10, 6, 4, .6); backdrop-filter: blur(6px); }
.modal__box { position: relative; background: var(--wood-panel); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .8); border-radius: 26px 26px 0 0; padding: 24px var(--gut) calc(22px + env(safe-area-inset-bottom)); max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; }
.modal[open] .modal__box { animation: sheet .35s var(--ease); }
@keyframes sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 24px; line-height: 1; cursor: pointer; color: #fff; }
.modal__eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font); color: rgba(255, 255, 255, .88); margin: 0 0 12px; }
.modal__eyebrow::before { content: ""; width: 22px; height: 22px; background: url(/img/em-heart.svg) center / contain no-repeat; }
.modal__title { font-size: 24px; margin-bottom: 8px; padding-right: 44px; color: #fff; }
.modal__sub { color: rgba(255, 255, 255, .62); font-size: 14.5px; margin-bottom: 16px; }
@media (min-width: 600px) { .modal { margin: auto; } .modal__box { border-radius: 30px; padding: 38px; } .modal__title { font-size: 30px; } }

/* ---------- мобильная панель ---------- */
.mbar { position: fixed; z-index: 36; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 48px 48px 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(20, 14, 11, .88); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 rgba(255, 255, 255, .06); transform: translateY(110%); transition: transform .35s var(--ease); }
.mbar.is-on { transform: none; }
.mbar__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); text-decoration: none; font: 600 15px/1 var(--font); cursor: pointer; color: #fff; }
.mbar__btn svg { width: 20px; height: 20px; fill: currentColor; }
.mbar__btn:not(.mbar__btn--main) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mbar__btn--main { background: var(--red); border-color: var(--red); color: #fff; }
@media (min-width: 900px) { .mbar { display: none; } }


/* ---------- подвал ---------- */
/* снизу на телефоне — панель кнопок (60px) и кнопка «Спросить Соню» над ней: юридические ссылки подвала должны выезжать выше них */
.ftr { background: var(--night); color: rgba(255, 255, 255, .7); font-size: 14px; padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
.ftr__grid { display: grid; gap: 8px; padding-top: 18px; padding-bottom: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ftr__tag, .ftr__h, .ftr__brand { display: none; }
.ftr__brand .brand img { height: 60px; }
.ftr__phone { display: inline-block; font-size: 17px; font-weight: 700; color: #fff; text-decoration: none; margin-right: 14px; }
.ftr__phone--s { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.ftr__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.ftr__links a, .ftr__map { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(247, 172, 17, .6); }
.ftr__col p { margin: 0 0 6px; }
.ftr__route-s { display: none; }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 2px 18px; padding-top: 8px; padding-bottom: 8px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 11.5px; color: rgba(255, 255, 255, .45); }
.ftr__legal a { color: rgba(255, 255, 255, .45); }
.ftr__legal a[aria-current] { color: rgba(255, 255, 255, .8); }
/* вместо плашки cookie (19.11.2026): уведомление о соглашении — первой строкой подвала */
.ftr__accept { flex-basis: 100%; margin: 0 0 4px; color: rgba(255, 255, 255, .6); }
.ftr__legal .ftr__accept a { color: rgba(255, 255, 255, .85); }
@media (max-width: 899px) { .ftr__route { display: none; } .ftr__route-s { display: inline; } .ftr__col p { margin: 0 4px 0 0; display: inline; } .ftr__col p.ftr__h { display: none; } .ftr__map { font-size: 13.5px; } }
@media (min-width: 900px) {
  .ftr { padding-bottom: 0; }
  .ftr__grid { grid-template-columns: 1.1fr 1fr 1.2fr; gap: 56px; padding-top: 64px; padding-bottom: 48px; }
  .ftr__brand, .ftr__tag { display: block; }
  .ftr__h { display: flex; }
  .ftr__tag { margin-top: 16px; max-width: 22em; font-size: 15px; color: rgba(255, 255, 255, .55); }
  .ftr__h { align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
  .ftr__h::before { content: ""; width: 20px; height: 20px; background: url(/img/em-sun.svg) center / contain no-repeat; }
  .ftr__col:last-child .ftr__h::before { background-image: url(/img/em-flower.svg); }
  .ftr__phone { display: block; margin: 0 0 4px; font-size: 21px; }
  .ftr__legal { padding-block: 18px 26px; font-size: 12px; }
}

/* ---------- внутренние страницы ---------- */
.phero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 64svh; margin-top: calc(-1 * var(--hdr)); padding: calc(var(--hdr) + 40px) 0 34px; background: var(--night); color: #fff; }
.phero .wrap { width: 100%; }
.phero__grid { display: grid; gap: 16px; }
.phero h1 { color: #fff; font-size: clamp(1.8rem, 4.6vw, 4.2rem); text-shadow: 0 2px 40px rgba(0, 0, 0, .3); }
.phero h1 span { display: block; color: var(--yellow); }
.phero__lead { color: rgba(255, 255, 255, .85); font-size: 16px; max-width: 38em; }
.phero__img { position: absolute; inset: 0; z-index: -2; }
.phero__img picture, .phero__img img { display: block; width: 100%; height: 100%; }
.phero__img img { object-fit: cover; animation: kenburns 16s linear both; transform-origin: 60% 45%; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(20, 14, 11, .6) 0%, rgba(20, 14, 11, .15) 25%, rgba(20, 14, 11, .55) 55%, var(--night) 100%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: inherit; }
.crumbs > * + *::before { content: "/"; margin-right: 6px; opacity: .5; }
.phero .crumbs { color: rgba(255, 255, 255, .65); }
.phero .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); color: #fff; backdrop-filter: blur(10px); }
.phero .chip.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
@media (min-width: 900px) {
  .phero { min-height: min(78svh, 820px); padding: calc(var(--hdr) + 60px) 0 64px; }
  .phero::after { background: linear-gradient(90deg, rgba(20, 14, 11, .85) 0%, rgba(20, 14, 11, .5) 40%, rgba(20, 14, 11, 0) 75%), linear-gradient(0deg, var(--night) 0%, rgba(20, 14, 11, 0) 40%), linear-gradient(180deg, rgba(20, 14, 11, .55) 0%, rgba(20, 14, 11, 0) 20%); }
  .phero__lead { font-size: 18px; }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { border: 1.5px solid var(--line-2); background: #fff; color: var(--ink-2); padding: 9px 17px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; transition: .2s; }
.chip.is-on { background: var(--green); color: #fff; border-color: var(--green); }

.hlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.hrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; background: var(--card); border-radius: 28px; padding: 10px 10px 20px; box-shadow: var(--shadow); }
.hrow[hidden] { display: none; }
.hrow__gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; text-decoration: none; }
.hrow__gal img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.hrow__big { grid-column: span 2; aspect-ratio: 16 / 10; }
.hrow__sm { aspect-ratio: 4 / 3; }
.hrow__body { padding: 0 8px; }
.hrow__body h2 a { text-decoration: none; }
.hrow__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.hrow__meta span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--snow); color: var(--ink-2); }
.hrow__body > p { color: var(--ink-2); }
.hrow__price { display: flex; gap: 10px; margin: 16px 0; }
.hrow__price p, .pricebox__row p { margin: 0; flex: 1; padding: 12px 16px; border-radius: var(--r-s); background: var(--snow); display: grid; }
.hrow__price p:first-child, .pricebox__row p:first-child { background: rgba(247, 172, 17, .22); }
.hrow__price small, .pricebox__row small { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.hrow__price b, .pricebox__row b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.hrow__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.hrow__cta .btn { flex: 1 1 auto; }
@media (min-width: 1000px) {
  .hrow { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; padding: 18px 40px 18px 18px; align-items: center; border-radius: 36px; }
  .hrow:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding: 18px 18px 18px 40px; }
  .hrow:nth-child(even) .hrow__gal { order: 2; }
  .hrow__cta .btn { flex: 0 0 auto; }
}
.ticks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 24px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 1px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.ticks--muted { font-size: 15px; }
.dark .ticks li, .sec--night .ticks li { color: rgba(255, 255, 255, .85); }
.sec--night .ticks li::before { background: var(--yellow); }

.xcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.xcard { background: var(--card); color: var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: grid; }
.xcard img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.xcard > div { padding: 20px 20px 22px; }
.xcard p { color: var(--ink-2); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.price b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.price small { color: var(--muted); font-size: 13px; }
@media (min-width: 900px) { .xcards { grid-template-columns: repeat(3, 1fr); gap: 28px; } .xcard { border-radius: 28px; } }

.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 72px; } }
.facts-list { margin: 0; display: grid; gap: 10px; }
.facts-list div { padding: 14px 18px; border-radius: var(--r-s); background: var(--card); box-shadow: var(--shadow); }
.facts-list dt { font-weight: 700; color: var(--ink); font-size: 14px; }
.facts-list dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }

/* «как это устроено» — зелёная панель */
.sec--night { background: var(--night); color: #fff; }
.sec--night h2 { color: #fff; }
.sec--night .muted, .sec--night .sec__lead { color: rgba(255, 255, 255, .7); }
.sec--night .eyebrow { color: rgba(255, 255, 255, .88); }
.sec--night .steps li { background: var(--night-2); color: #fff; }
.sec--night .steps span { color: rgba(255, 255, 255, .7); }
.sec--night .xcard, .sec--night .facts-list div { background: var(--night-2); color: #fff; box-shadow: none; }
.sec--night .xcard p, .sec--night .facts-list dd { color: rgba(255, 255, 255, .72); }
.sec--night .facts-list dt, .sec--night .price b { color: #fff; }

.steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 18px 18px 18px 66px; border-radius: var(--r); background: var(--card); color: var(--ink); display: grid; gap: 4px; }
.steps li::before { content: counter(st); position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--font); color: #fff; background: var(--red); }
.steps li:nth-child(2)::before { background: var(--orange); }
.steps li:nth-child(3)::before { background: var(--yellow); color: var(--ink); }
.steps li:nth-child(4)::before { background: var(--green); }
.steps b { font-size: 16px; font-weight: 700; }
.steps span { color: var(--ink-2); font-size: 15px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; } .steps li { padding: 70px 22px 24px; border-radius: 26px; } .steps li::before { left: 22px; top: 22px; width: 38px; height: 38px; } }

.faq-wrap { display: grid; gap: 18px; }
.faq { display: grid; gap: 8px; }
.faq__item { border-radius: var(--r-s); background: var(--snow); }
.faq__item summary { cursor: pointer; list-style: none; padding: 17px 52px 17px 20px; font-weight: 600; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font: 500 20px/1 var(--font); transition: transform .25s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); max-width: 40em; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 1fr 1.6fr; gap: 72px; } }

/* страница дома */
.hhead { padding: 22px 0 16px; }
.hhead__row { display: grid; gap: 18px; }
.hhead h1 { margin-bottom: 14px; }
.pricebox { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.pricebox__row { display: flex; gap: 10px; }
.pricebox__note { font-size: 13px; color: var(--muted); margin: 0; }
.pricebox__vk { text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hprice-m { padding-top: 12px; padding-bottom: 4px; }
@media (min-width: 900px) { .hhead { padding: 44px 0 30px; } .hhead__row { grid-template-columns: 1fr 380px; align-items: end; gap: 56px; } .pricebox { border-radius: 28px; padding: 22px; } }
.hgal { padding-bottom: 8px; }
.hgal__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.hgal__i { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; position: relative; background: var(--snow-2); }
.hgal__i img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hgal__i:hover img { transform: scale(1.03); }
.hgal__i--main { grid-column: span 2; aspect-ratio: 16 / 11; }
.hgal__i:nth-child(n+6) { display: none; }
.hgal__i:nth-child(5)::after { content: "Все фото"; position: absolute; inset: auto 10px 10px auto; background: #fff; color: var(--ink); font: 700 13px/1 var(--font); padding: 9px 13px; border-radius: 999px; }
@media (min-width: 900px) { .hgal__grid { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 10px; } .hgal__i { aspect-ratio: auto; border-radius: 22px; } .hgal__i--main { grid-column: 1; grid-row: span 2; aspect-ratio: auto; } }
.hbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hbody__p { font-size: 17px; color: var(--ink-2); }
.hbody .h3 { margin-top: 28px; margin-bottom: 14px; }
.hbody__side { display: grid; gap: 14px; align-content: start; }
.card { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card .h3 { margin-top: 0 !important; }
.card--ny { background: var(--night); color: #fff; box-shadow: none; }
.card--ny .h3 { color: #fff; }
.card--ny .h3::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 8px; vertical-align: -3px; background: url(/img/em-heart.svg) center / contain no-repeat; }
.card--ny p { color: rgba(255, 255, 255, .9); font-size: 15px; }
.card--ny a { color: var(--yellow); }
.kv { margin: 0; display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.kv--stack div { display: grid; gap: 2px; }
.kv--stack dd { text-align: left; font-weight: 400; color: var(--ink-2); }
@media (min-width: 900px) { .hbody { grid-template-columns: 1.5fr 1fr; gap: 72px; } .hbody__side { position: sticky; top: calc(var(--hdr) + 30px); } .card { border-radius: 28px; padding: 26px; } }

.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(20, 14, 12, .94); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 12px; object-fit: contain; }
.lightbox__x, .lightbox__nav { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox__x { top: 14px; right: 14px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }

/* страница мероприятий */
.anchors { position: sticky; top: var(--hdr); z-index: 20; background: rgba(20, 14, 11, .82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.anchors__in { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.anchors__in::-webkit-scrollbar { display: none; }
.anchors a { flex: none; text-decoration: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: rgba(255, 255, 255, .85); border: 1.5px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); transition: .2s; }
.anchors a.is-on { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.egroup__head { margin-bottom: 24px; max-width: 760px; }
.egroup__more { margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.egroup__more a { color: var(--red); font-weight: 600; }
.sec--ny .egroup__more { color: rgba(255, 255, 255, .85); }
.sec--ny .egroup__more a { color: var(--yellow); }
@media (min-width: 900px) { .egroup__head { margin-bottom: 44px; } }

.pcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pcard { background: var(--card); color: var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pcard__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--snow-2); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pcard__meta span { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--snow); color: var(--ink-2); }
.pcard__meta span:first-child { background: rgba(247, 172, 17, .25); color: var(--ink); }
.pcard h3 { font: 400 19px/1.15 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.pcard__text { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.pcard__note { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.pcard__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.pcard__foot .price { margin: 0 auto 0 0; display: grid; gap: 0; }
.pcard__foot .price small { font-size: 12px; }
.sec--ny .pcard { box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .6); }
/* переход с плашки прямо к программе (/meropriyatiya/#den-rozhdeniya, site.js): карточку видно сразу */
.pcard.is-target { box-shadow: 0 0 0 2px var(--yellow), 0 30px 60px -36px rgba(0, 0, 0, .7); }
.swipe-hint { display: none; }
@media (max-width: 699px) {
  .pcards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); margin: 0 calc(-1 * var(--gut)); padding: 4px var(--gut) 12px; scrollbar-width: none; }
  .pcards::-webkit-scrollbar { display: none; }
  .pcard { scroll-snap-align: center; }
  .swipe-hint { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: -8px 0 12px; }
  .sec--ny .swipe-hint { color: rgba(255, 255, 255, .8); }
}
@media (min-width: 700px) { .pcards { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 900px) { .pcard { border-radius: 28px; } .pcard__body { padding: 22px 24px 24px; } .pcard h3 { font-size: 22px; } }
@media (min-width: 1100px) { .pcards { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* пользовательское соглашение: документ на тёмной деревянной панели, как карточки */
.legal__wrap { max-width: 860px; }
.legal__doc { margin-top: 14px; padding: 24px 20px; border-radius: var(--r); background: var(--wood-panel); color: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -36px rgba(0, 0, 0, .7); font-size: 15px; line-height: 1.65; }
.legal__doc h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 6px; }
.legal__doc h2 { color: #fff; font: 700 17px/1.35 var(--font); text-transform: none; letter-spacing: 0; margin: 30px 0 10px; scroll-margin-top: calc(var(--hdr) + 20px); }
.legal__doc p, .legal__doc ul { margin: 0 0 10px; }
.legal__doc ul { padding-left: 20px; }
.legal__doc li { margin-bottom: 4px; }
.legal__doc b { color: #fff; font-weight: 600; }
.legal__doc a { color: var(--yellow); text-underline-offset: 3px; text-decoration-color: rgba(247, 172, 17, .4); }
.legal__ed { color: rgba(255, 255, 255, .55); font-size: 14px; }
.legal__toc { display: grid; gap: 2px; margin: 18px 0 6px; padding: 14px 16px; border-radius: var(--r-s); background: rgba(255, 255, 255, .05); }
.legal__toc a { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 3px 0; }
.legal__toc a:hover { color: var(--yellow); }
.legal__ym { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 14px; padding: 12px 16px; border-radius: var(--r-s); border: 1px solid rgba(247, 172, 17, .35); background: rgba(247, 172, 17, .07); }
.legal__ym[hidden] { display: none; }
.legal__ym p { margin: 0; color: #fff; font-weight: 600; font-size: 14.5px; }
.legal__ym .btn--line { border-color: rgba(255, 255, 255, .6); color: #fff; min-height: 40px; }
.legal__ym .btn--line:hover { background: #fff; color: var(--ink); }
.legal__req { margin: 0; display: grid; gap: 8px; }
.legal__req div { display: grid; gap: 0 16px; }
.legal__req dt { color: rgba(255, 255, 255, .55); font-size: 13.5px; }
.legal__req dd { margin: 0; color: #fff; font-weight: 600; }
@media (min-width: 700px) { .legal__req div { grid-template-columns: 220px 1fr; } }
@media (min-width: 900px) { .legal__doc { padding: 44px 52px; border-radius: 28px; font-size: 16px; } .legal__doc h2 { font-size: 19px; margin-top: 38px; } }

.notfound { min-height: 60vh; display: grid; place-items: center; }
.notfound img { margin: 0 auto 20px; }

/* ---------- телефон: главная не длиннее трёх экранов ---------- */
@media (max-width: 899px) {
  .topbar__in { padding-top: 6px; padding-bottom: 6px; font-size: 12.5px; }
  .home .sec { padding: 24px 0; }
  .home .beats { padding-top: 4px; }
  .home :is(.dark, .ny, .hero) + .houses { padding-top: 36px; }
  .home .houses:has(+ .ny) { padding-bottom: 40px; }
  .home .houses { padding-top: 22px; padding-bottom: 22px; }
  .home .sec__head { margin-bottom: 14px; }
  .home .sec__head h2 { font-size: 1.4rem; }
  .home .sec__head--center .sec__lead { display: none; }
  .home .ny .label { margin-bottom: 6px; }
  .home .sec__head--split { gap: 6px; }
}
@media (max-width: 370px) {
  .home .sec__head h2 { font-size: 1.28rem; }
  .hero__cta .btn { font-size: 13.5px; padding-inline: 8px; }
  .hero__title { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .rv.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html, html.is-ready { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- карточки — тёмные деревянные панели вместо белых ---------- */
:is(.offer, .pcard, .hrow, .xcard, .card, .pricebox, .facts-list div) { background: var(--wood-panel); color: #f3e9dc; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -36px rgba(0, 0, 0, .7); }
.card.card--ny { background: var(--night); }
:is(.offer, .pcard, .hrow, .xcard, .card, .pricebox, .facts-list div) :is(h2, h3, .h3, h2 a, dt, .price b) { color: #fff; }
:is(.offer, .pcard, .hrow, .xcard, .card, .pricebox, .facts-list div) :is(p, .muted, .ticks li, .pcard__text, .pcard__note, .offer__list, .kv dd, dd, .pricebox__note, .pricebox__vk) { color: rgba(255, 255, 255, .72); }
:is(.offer, .pcard, .hrow, .xcard, .card, .pricebox) :is(.eyebrow, .label) { color: rgba(255, 255, 255, .9); }
:is(.offer, .pcard, .hrow, .xcard, .card, .pricebox) .price small { color: rgba(255, 255, 255, .55); }
.offer__who { color: var(--yellow); }
:is(.offer__foot, .pcard__foot) { border-top-color: rgba(255, 255, 255, .1); }
@media (min-width: 900px) { .offer__foot { border-top: 1px solid rgba(255, 255, 255, .1); } }
:is(.hrow__meta, .pcard__meta) span { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .9); }
.pcard__meta span:first-child { background: rgba(247, 172, 17, .18); color: var(--yellow); }
:is(.hrow__price, .pricebox__row) p { background: rgba(255, 255, 255, .06); }
:is(.hrow__price, .pricebox__row) p:first-child { background: rgba(247, 172, 17, .16); }
:is(.hrow__price, .pricebox__row) small { color: rgba(255, 255, 255, .6); }
:is(.hrow__price, .pricebox__row) b { color: #fff; }
.kv div { border-bottom-color: rgba(255, 255, 255, .1); }
.kv dt { color: rgba(255, 255, 255, .55); }
.kv dd { color: #fff; }
.kv--stack dd { color: rgba(255, 255, 255, .72); }
:is(.offer, .pcard, .hrow, .xcard, .card, .pricebox) :is(.btn--line, .btn--ghost) { border-color: rgba(255, 255, 255, .55); color: #fff; }
:is(.offer, .pcard, .hrow, .xcard, .card, .pricebox) :is(.btn--line, .btn--ghost):hover { background: #fff; color: var(--ink); }
:is(.offer__img, .pcard__img) { background: var(--night-2); }
.sec--night :is(.xcard, .facts-list div, .steps li) { background: var(--night-2); }

/* страница дома: основной столбец на дереве — светлый текст */
.hbody__main :is(.hbody__p, .ticks li, p) { color: rgba(255, 255, 255, .8); }
.hbody__main .h3 { color: #fff; }

/* ---------- шаги, плашки, заглушки картинок — тоже без белого ---------- */
.steps li { background: var(--wood-panel); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 50px -30px rgba(0, 0, 0, .7); }
.steps b { color: #fff; }
.steps span { color: rgba(255, 255, 255, .72); }
.badge { background: rgba(255, 255, 255, .1); }
:is(.hcard__img, .hgal__i, .offer__img, .pcard__img, .beat__img) { background: var(--night-2); }
.hgal__i:nth-child(5)::after { background: rgba(20, 14, 11, .78); color: #fff; backdrop-filter: blur(8px); }

/* ---------- плавные переходы между страницами ----------
   Браузеры с переходами между страницами (Chrome, Edge, Safari 18+): шапка остаётся на месте, содержимое мягко сменяется.
   Остальные — запасной вариант в site.js: страница гаснет и проявляется (класс .pt-out / .pt-in). */
html { background: var(--night); }
@view-transition { navigation: auto; }
.hdr { view-transition-name: hdr; }
::view-transition-old(root) { animation: pt-out .28s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: pt-in .42s cubic-bezier(.2, .7, .2, 1) both; }
::view-transition-group(hdr) { animation-duration: .3s; }
@keyframes pt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes pt-in { from { opacity: 0; transform: translateY(12px); } }
html.pt-in body { animation: pt-in .42s cubic-bezier(.2, .7, .2, 1) backwards; }
html.pt-out body { opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root), ::view-transition-group(hdr) { animation: none; }
}

/* ---------- блок «написать в ВК» вместо формы заявки ---------- */
.vkchat { gap: 12px; }
.vkchat__title { margin: 0; font: 400 22px/1.15 var(--display); text-transform: uppercase; color: #fff; }
.vkchat__text { margin: 0 0 6px; color: rgba(255, 255, 255, .72); font-size: 15px; }
.vkchat .btn { white-space: normal; text-align: center; }
.vkchat__note { margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, .6); text-align: center; }
.vkchat__note a { color: #fff; font-weight: 700; text-decoration: none; }

.cta__card :is(.vkchat__text, .vkchat__note) { display: none; }

/* Чат Сони */
.sonya-launch {
  position: fixed;
  z-index: 38;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 5px 17px 5px 5px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: var(--wood-panel);
  color: var(--snow);
  box-shadow: 0 14px 36px rgba(10, 6, 4, .45);
  font: 700 13px/1.2 var(--font);
  cursor: pointer;
}
.sonya-launch img, .sonya__identity img {
  flex: none;
  border-radius: 50%;
  outline: 1px solid rgba(255, 255, 255, .23);
}
.sonya-launch:hover { border-color: var(--yellow); }
.sonya-launch[hidden], .sonya__prompts[hidden], .sonya__status[hidden] { display: none; }

.sonya {
  --chat-padding: 22px;
  --chat-line: rgba(255, 241, 226, .13);
  position: fixed;
  inset: auto max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) auto;
  width: min(410px, calc(100vw - 48px));
  max-height: min(580px, calc(100dvh - 48px));
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--chat-line);
  border-radius: 26px;
  background: var(--wood-panel);
  color: var(--snow);
  box-shadow: 0 32px 82px rgba(10, 6, 4, .56);
}
.sonya[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.sonya:has(.sonya__messages:not(:empty)) { height: min(550px, calc(100dvh - 48px)); }
.sonya::backdrop { background: rgba(14, 9, 6, .28); }
.sonya__top {
  position: relative;
  min-height: 104px;
  display: flex;
  align-items: center;
  padding: 15px 55px 15px var(--chat-padding);
  background:
    linear-gradient(90deg, rgba(18, 11, 7, .72), rgba(18, 11, 7, .18)),
    linear-gradient(0deg, #21160f 0%, rgba(26, 16, 9, .12) 75%),
    #3b2618 url(/img/hero-lights-m-480.webp) 50% 47% / cover no-repeat;
}
.sonya__identity { display: flex; align-items: center; gap: 14px; }
.sonya__identity p { margin: 4px 0 0; color: #f5dfbe; font: 500 12px/1.3 var(--font); }
.sonya__identity h2 { margin: 0; color: var(--snow); font: 700 23px/1.15 var(--font); text-transform: none; letter-spacing: 0; }
.sonya__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(19, 12, 8, .67);
  color: var(--snow);
  cursor: pointer;
}
.sonya__close:hover { background: #21160f; }
.sonya__thread { overflow: auto; overscroll-behavior: contain; padding: 14px var(--chat-padding) 18px; }
.sonya__greeting { display: flex; align-items: end; gap: 8px; }
.sonya__greeting img { flex: none; border-radius: 50%; }
.sonya__greeting .sonya__bubble { min-width: 0; max-width: 32ch; }
.sonya__prompts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 36px; }
.sonya__prompts button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--chat-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .047);
  color: var(--snow);
  font: 600 11.5px/1.3 var(--font);
  cursor: pointer;
  text-align: left;
}
.sonya__prompts button:hover { background: rgba(255, 255, 255, .09); border-color: rgba(247, 172, 17, .36); }
.sonya__prompts .em { flex: none; width: 14px; height: 14px; }
.sonya__messages { display: grid; justify-items: start; gap: 10px; padding-left: 36px; }
.sonya__messages:not(:empty) { margin-top: 14px; }
.sonya__bubble {
  width: fit-content;
  max-width: 94%;
  padding: 10px 13px;
  margin: 0;
  border-radius: 16px 16px 16px 5px;
  background: rgba(255, 243, 227, .1);
  color: var(--snow);
  font: 500 14px/1.5 var(--font);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sonya__bubble a { color: #ffd185; text-underline-offset: 3px; }
.sonya__bubble--guest {
  justify-self: end;
  border-radius: 16px 16px 5px 16px;
  background: #61312a;
}
.sonya__handoff, .sonya__status { margin: 0; color: #f1d8b6; font: 500 12px/1.45 var(--font); }
.sonya__bottom {
  padding: 12px var(--chat-padding) 13px;
  border-top: 1px solid var(--chat-line);
  background: rgba(17, 11, 8, .39);
}
.sonya__status { margin-bottom: 9px; }
.sonya__form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.sonya__form textarea {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 100px;
  field-sizing: content;
  resize: none;
  padding: 10px 14px;
  border: 1px solid var(--chat-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .065);
  color: var(--snow);
  font: 500 16px/1.4 var(--font);
}
.sonya__form textarea::placeholder { color: #c9b8a6; }
.sonya__form .sonya__send { flex: none; width: 44px; min-height: 44px; padding: 0; }
.sonya__form .sonya__send:disabled { background: #60342c; opacity: 1; color: #d0ad9e; box-shadow: none; cursor: default; transform: none; }
.sonya__links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 8px; font-size: 11px; }
.sonya__links a { color: #cab9a6; text-underline-offset: 3px; }
.sonya__links a:hover { color: var(--snow); }
.sonya-launch:focus-visible, .sonya :focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.sonya__form textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(247, 172, 17, .14); }

@media (max-width: 899px) {
  .sonya-launch { right: max(10px, env(safe-area-inset-right)); bottom: calc(15px + env(safe-area-inset-bottom)); }
  body:has(.mbar.is-on) .sonya-launch { bottom: calc(73px + env(safe-area-inset-bottom)); }
  .sonya {
    --chat-padding: 16px;
    inset: auto max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    width: auto;
    max-width: 480px;
    max-height: calc(100dvh - 18px);
    margin-inline: auto;
  }
  .sonya:has(.sonya__messages:not(:empty)) { height: min(580px, calc(100dvh - 18px)); }
}


/* ---------- «Зима в Свистоплясово»: вертикальные ролики (главная) ---------- */
.winter { padding-top: 4px; }
.vids { display: grid; grid-auto-flow: column; grid-auto-columns: 40%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scrollbar-width: none; }
.vids::-webkit-scrollbar { display: none; }
.vid { position: relative; margin: 0; scroll-snap-align: start; border-radius: var(--r); overflow: hidden; aspect-ratio: 9 / 16; background: var(--night-2); isolation: isolate; cursor: pointer; }
.vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.vid::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 14, 11, 0) 55%, rgba(20, 14, 11, .82)); pointer-events: none; }
.vid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font: 600 12.5px/1.3 var(--font); color: #fff; }
.vid.is-paused::before { content: ""; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(20, 14, 11, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23fff'/%3E%3C/svg%3E") center / 18px no-repeat; backdrop-filter: blur(6px); }
@media (min-width: 900px) {
  .winter { padding-top: 24px; }
  .vids { grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px; margin: 0; padding: 0 0 6px; scroll-padding-inline: 0; }
  .vid { border-radius: 22px; }
  .vid figcaption { font-size: 14px; padding: 16px 18px; }
}

/* ---------- «Как это было» в разделе «Новый год» (мероприятия) ---------- */
.memo { margin-top: 22px; }
.memo__t { margin: 0 0 10px; font: 600 14px/1.3 var(--font); color: rgba(255, 255, 255, .85); }
.memo__row { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scrollbar-width: none; }
.memo__row::-webkit-scrollbar { display: none; }
.memo__i { display: block; scroll-snap-align: start; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--night-2); }
.memo__i img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.memo__i:hover img { transform: scale(1.04); }
@media (min-width: 900px) {
  .memo { margin-top: 30px; }
  .memo__t { font-size: 15px; }
  .memo__row { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; gap: 12px; }
  .memo__i { border-radius: 18px; }
}
