/* ==========================================================
   Площадка МирРа — zal.mirra-spb.ru
   Mobile-first. Все цвета — в :root.
   ========================================================== */

@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cormorant-garamond-latin-600-normal.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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-500-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-italic.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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/manrope-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/manrope-latin-400-normal.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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/manrope-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/manrope-latin-500-normal.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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/manrope-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/manrope-latin-600-normal.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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* палитра: слоновая кость + изумруд + латунь */
  --bg: #F7F3EC;
  --bg-2: #EFE8DC;
  --bg-3: #E6DCCB;
  --ink: #1F2A26;
  --ink-2: #4A524E;
  --line: rgba(31, 42, 38, .14);
  --line-2: rgba(31, 42, 38, .26);
  --emerald: #0F4D3D;
  --emerald-hover: #146250;
  --emerald-deep: #0B3A2E;
  --emerald-ink: #08291F;
  --pill: rgba(26, 122, 90, .1);      /* мягко-зелёный фон всех плашек */
  --emerald-soft: #1A7A5A; /* изумруд для подзаголовков (контраст 4.8:1) */
  --brass: #8C7146;        /* линии, крупные цифры */
  --brass-ink: #7A6239;    /* мелкий текст на светлом (контраст ≥ 4.5) */
  --brass-light: #D9C69F;  /* на тёмном изумруде */
  --on-dark: #F1EADB;
  --on-dark-2: rgba(241, 234, 219, .72);
  --line-dark: rgba(241, 234, 219, .18);
  --todo: #B5482F;

  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: 20px;
  --wrap: 1240px;
  --radius: 4px;
  --header-h: 64px;
  --section: 80px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (min-width: 720px)  { :root { --gutter: 40px; --section: 104px; } }
@media (min-width: 1024px) { :root { --header-h: 76px; --section: 128px; } }

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 17px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 2px; }
.sprite { display: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--emerald); color: #fff; padding: 10px 16px; border-radius: var(--radius); transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic--flip { transform: scaleX(-1); }
.fi { width: 32px; height: 32px; flex: none; fill: none; stroke: var(--brass); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* пометки [ЗАПОЛНИТЬ] — видно сразу, убрать перед публикацией */
mark.todo {
  background: none; color: var(--todo); font: 600 .78em/1.2 var(--sans); letter-spacing: .02em;
  border-bottom: 1px dashed currentColor; white-space: normal;
}
mark.todo::before { content: "["; } mark.todo::after { content: "]"; }

/* ---------- типографика ---------- */
.eyebrow, .soon__label {
  font: 600 11.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-ink);
}
.section__title, .place__title, .contacts__title, .hero__title {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.05; text-wrap: balance;
}
.section__title { font-size: clamp(34px, 7vw, 60px); margin-top: 20px; }
.section { padding-block: var(--section); }
.section__head { margin-bottom: 40px; max-width: 760px; }
@media (min-width: 1024px) { .section__head { margin-bottom: 64px; } }

/* ---------- табличка-название раздела: латунная пластина со скошенными углами и винтами ----------
   Рисунок — assets/img/plaque.svg, растягивается по ширине текста (border-image), углы и винты не искажаются. */
.plaque {
  display: inline-block; box-sizing: content-box; height: 20px; padding: 0 4px;
  border-style: solid; border-width: 14px 30px;
  border-image: url(../img/plaque.svg) 14 30 fill / 14px 30px stretch;
  font: italic 500 18px/20px var(--serif); letter-spacing: .015em; white-space: nowrap;
  color: var(--brass-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
.plaque--light { border-image-source: url(../img/plaque-light.svg); color: var(--brass-light); text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
@media (min-width: 1024px) { .plaque { font-size: 19px; } }
@media (max-width: 390px) { .hero .plaque { font-size: 16px; border-width: 14px 26px; border-image-width: 14px 26px; border-image-slice: 14 30 fill; } }

/* ---------- кнопки ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border-radius: var(--radius);
  font: 500 15px/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 14px; }
.btn--primary, .link-cta { position: relative; background: var(--emerald); color: var(--on-dark); }
.btn--primary:hover, .link-cta:hover { background: var(--emerald-hover); }
/* тонкая внутренняя латунная рамка — как вторая линия на табличке */
.btn--primary::after, .link-cta::after {
  content: ""; position: absolute; inset: 3px; border: 1px solid rgba(217, 198, 159, .32); border-radius: 2px; pointer-events: none;
  transition: border-color .4s var(--ease);
}
.btn--primary:hover::after, .link-cta:hover::after { border-color: rgba(217, 198, 159, .55); }
.btn--primary .ic { transition: transform .5s var(--ease-out); }
.btn--primary:hover .ic { transform: translateX(4px); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--emerald); color: var(--emerald); }
.btn--light { background: var(--on-dark); color: var(--emerald-deep); }
.btn--light:hover { background: #fff; }
.btn--line { border: 1px solid var(--line-dark); color: var(--on-dark); }
.btn--line:hover { border-color: var(--brass-light); color: var(--brass-light); }
.btn__num { color: var(--ink-2); font-weight: 400; }
.btn__num::before { content: "·"; margin-right: 8px; color: var(--brass); }

/* «Забронировать дату» в карточках помещений */
.link-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; min-height: 52px; padding: 0 24px 0 26px;
  border-radius: var(--radius); font: 500 15.5px/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.link-cta:active { transform: scale(.985); }
.link-cta .ic { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.link-cta:hover .ic { transform: translateX(4px); }
@media (max-width: 719px) { .link-cta { display: flex; width: 100%; } }

/* ---------- шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(247, 243, 236, .88); -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { height: 100%; display: flex; align-items: center; gap: 24px; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 38px; height: 38px; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font: 600 24px/1 var(--serif); letter-spacing: .01em; }
.brand__sub { font: 500 9.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-ink); margin-top: 3px; }
/* название текущего раздела под логотипом */
.brand__sub { transition: opacity .35s var(--ease), transform .45s var(--ease-out); }
.brand__sub.is-section { font: italic 500 14.5px/1.1 var(--serif); letter-spacing: .01em; text-transform: none; color: var(--emerald-soft); margin-top: 2px; }
.brand__sub.is-out { opacity: 0; transform: translateY(5px); }
.nav, .header__cta { display: none; }
@media (min-width: 1024px) {
  .brand__mark { width: 44px; height: 44px; }
  .brand__name { font-size: 27px; }
  .nav { position: relative; display: flex; gap: 4px; }
  .nav a {
    position: relative; z-index: 1; font-size: 14.5px; text-decoration: none; color: var(--ink-2);
    padding: 8px 15px; border-radius: 40px; transition: color .35s var(--ease);
  }
  .nav a:hover { color: var(--ink); }
  .nav a.is-active { color: var(--ink); }
  /* мягкая зелёная капсула под активным пунктом; переезжает между пунктами */
  .nav__glider {
    position: absolute; top: 50%; left: 0; height: 36px; width: 0; margin-top: -18px; border-radius: 40px;
    background: var(--pill); box-shadow: inset 0 0 0 1px rgba(26, 122, 90, .14);
    opacity: 0; transition: transform .55s var(--ease-out), width .55s var(--ease-out), opacity .35s var(--ease);
  }
  .nav__glider.is-on { opacity: 1; }
  .header__cta { display: inline-flex; margin-left: 8px; }
  .burger { display: none; }
}

/* бургер: две линии превращаются в крестик */
.burger { position: relative; width: 44px; height: 44px; margin-right: -10px; z-index: 61; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform .5s var(--ease-out), top .5s var(--ease-out), background-color .4s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; left: 17px; }
.burger[aria-expanded="true"] span { background: var(--on-dark); left: 11px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- мобильное меню ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--emerald-deep); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s linear .7s;
}
.menu[hidden] { display: flex; } /* управляем через .is-open, hidden нужен для no-js */
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-out), visibility 0s; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line-dark);
  font: 500 clamp(26px, 7.6vw, 38px)/1.15 var(--serif); text-decoration: none;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .7s var(--ease-out), color .3s;
}
.menu__nav a::before { content: ""; flex: none; width: 6px; height: 6px; transform: translateY(-.25em) rotate(45deg); border: 1px solid var(--brass-light); }
.menu__nav a:active { color: var(--brass-light); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .12s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .17s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .22s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .27s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .32s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: .37s; }
.menu.is-open .menu__nav a:nth-child(7) { transition-delay: .42s; }
.menu.is-open .menu__nav a:nth-child(8) { transition-delay: .47s; }
.menu__foot { display: grid; gap: 14px; margin-top: 36px; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease) .1s, transform .7s var(--ease-out) .1s; }
.menu.is-open .menu__foot { opacity: 1; transform: none; transition-delay: .5s; }
.menu__phone { font: 500 26px/1.2 var(--serif); text-decoration: none; text-align: center;  font-variant-numeric: lining-nums; }
.menu__phone mark.todo { color: #F2A48F; }
.menu__addr { font-size: 13px; color: var(--on-dark-2); text-align: center; }
body.menu-open .header { z-index: 70; background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .brand { color: var(--on-dark); }
body.menu-open .brand__sub, body.menu-open .brand__sub.is-section { color: var(--brass-light); }
body.menu-open { overflow: hidden; }
@media (min-width: 1024px) { .menu { display: none !important; } }

/* ---------- первый экран ---------- */
.hero { padding-top: var(--header-h); display: flex; flex-direction: column; }
.hero__media { position: relative; }
.hero__img { width: 100%; aspect-ratio: 10 / 9; object-fit: cover; object-position: 38% 60%; }
.hero__inset { display: none; }
.hero__body {
  position: relative; z-index: 2; margin-top: -28px; background: var(--bg);
  border-radius: 22px 22px 0 0; padding: 32px var(--gutter) 8px;
}
.hero__title { font-size: clamp(36px, 10.4vw, 84px); margin-top: 14px; }
.nowrap { white-space: nowrap; }
.hero__lead { margin-top: 16px; color: var(--ink-2); max-width: 34em; font-size: 16.5px; }
.hero__title em { font-style: italic; color: var(--emerald); }
.hero__perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero__perks li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 40px;
  background: var(--pill); color: var(--ink); font-size: 14px;
}
.hero__perks li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.hero__addr {
  display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 10px 12px 10px 10px; width: fit-content; max-width: 100%;
  border-radius: 12px; background: rgba(26, 122, 90, .07);
}
.hero__addr { text-decoration: none; color: inherit; transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.hero__addr:hover { background: rgba(26, 122, 90, .12); box-shadow: inset 0 0 0 1px rgba(26, 122, 90, .22); }
.hero__addr:active { background: rgba(26, 122, 90, .16); }
.hero__addr-go { flex: none; width: 17px; height: 17px; margin-left: 2px; color: var(--emerald-soft); transition: transform .5s var(--ease-out); }
.hero__addr:hover .hero__addr-go { transform: translateX(4px); }
.hero__pin { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald); color: var(--on-dark); }
.hero__pin .ic { width: 18px; height: 18px; }
.hero__addr-txt { display: grid; gap: 1px; line-height: 1.3; }
.hero__addr-txt b { font-weight: 600; font-size: 15px; color: var(--ink); }
.hero__addr-txt span { font-size: 13px; color: var(--ink-2); }
.hero__actions { display: grid; gap: 10px; margin-top: 28px; }
.hero__video { cursor: pointer; display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 14.5px; text-decoration: none; color: var(--ink); }
.hero__video[hidden] { display: none; }
.hero__play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--brass); display: grid; place-items: center; color: var(--emerald); transition: background-color .4s var(--ease), color .4s; }
.hero__play .ic { width: 14px; height: 14px; fill: currentColor; stroke: none; margin-left: 2px; }
.hero__video:hover .hero__play { background: var(--emerald); color: var(--on-dark); border-color: var(--emerald); }

@media (min-width: 560px) { .hero__actions { grid-template-columns: auto auto; justify-content: start; } }
@media (min-width: 720px) and (max-width: 1023px) {
  .hero__img { height: auto; aspect-ratio: 16 / 10; }
}
@media (min-width: 1024px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 55vw; align-items: center;
    min-height: min(100svh, 920px); padding-top: var(--header-h);
  }
  .hero__body {
    grid-column: 1; grid-row: 1; margin: 0; background: none; border-radius: 0;
    padding: 56px 80px 72px max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  }
  .hero__media { grid-column: 2; grid-row: 1; align-self: stretch; padding: 20px 0 64px; }
  .hero__img { height: 100%; aspect-ratio: auto; border-radius: var(--radius) 0 0 var(--radius); object-position: 45% 55%; }
  .hero__inset {
    display: block; position: absolute; left: -56px; bottom: 28px; width: min(17vw, 280px);
    padding: 8px; background: var(--bg); border-radius: var(--radius);
  }
  .hero__inset img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
  .hero__lead { font-size: 18px; }
  .hero__title { font-size: clamp(44px, 3.9vw, 66px); }
  .hero__actions { display: flex; flex-wrap: wrap; }
}

/* появление первого экрана */
.js .hero__img { animation: heroImg 1.4s var(--ease-out) both; }
.js .hero__body > * { animation: rise .9s var(--ease-out) both; }
.js .hero__body > :nth-child(2) { animation-delay: .08s; }
.js .hero__body > :nth-child(3) { animation-delay: .16s; }
.js .hero__body > :nth-child(4) { animation-delay: .22s; }
.js .hero__body > :nth-child(5) { animation-delay: .28s; }
.js .hero__body > :nth-child(6) { animation-delay: .34s; }
.js .hero__body > :nth-child(7) { animation-delay: .4s; }
.js .hero__inset { animation: rise 1s var(--ease-out) .5s both; }
@keyframes heroImg { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- факты ---------- */
.facts { background: var(--emerald-deep); color: var(--on-dark); margin-top: 40px; }
.facts__list { display: grid; grid-template-columns: 1fr 1fr; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding: 8px var(--gutter); }
.facts li { padding: 24px 4px 22px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line-dark); }
.facts li:nth-child(odd) { border-right: 1px solid var(--line-dark); padding-right: 16px; }
.facts li:nth-child(even) { padding-left: 20px; }
.facts li:nth-child(n+3) { border-bottom: 0; }
.facts b { font: 500 46px/1 var(--serif); color: var(--brass-light); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.facts span { font: 500 11.5px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
@media (min-width: 1024px) {
  .facts { margin-top: 0; }
  .facts__list { grid-template-columns: repeat(4, 1fr); padding-block: 0; }
  .facts li, .facts li:nth-child(odd), .facts li:nth-child(even) { padding: 40px 32px; border-bottom: 0; border-right: 1px solid var(--line-dark); }
  .facts li:first-child { padding-left: 0; }
  .facts li:last-child { border-right: 0; }
  .facts b { font-size: 60px; }
}

/* ---------- место ---------- */
.place { padding-top: var(--section); }
.place__title { font-size: clamp(32px, 7.4vw, 64px); margin-top: 18px; max-width: 16em; }
.place__title em { font-style: italic; color: var(--emerald); }
.place__photo { position: relative; margin-top: 40px; overflow: hidden; }
.place__photo img { width: 100%; height: 62vw; max-height: 640px; min-height: 260px; object-fit: cover; object-position: 50% 62%; }
.place__photo figcaption {
  position: absolute; left: var(--gutter); bottom: 16px; padding: 7px 12px; background: rgba(247, 243, 236, .92); border-radius: 2px;
  font: 600 10.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.place__foot { display: grid; gap: 28px; margin-top: 32px; }
.place__inset { display: none; }
.place__text p { color: var(--ink-2); max-width: 36em; }
.place__bridge {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  font: italic 500 24px/1.25 var(--serif) !important; color: var(--ink) !important;
}
@media (min-width: 1024px) {
  .place__photo { margin-top: 56px; }
  .place__photo img { height: 58vh; }
  .place__photo figcaption { left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: 28px; }
  .place__foot { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; margin-top: -96px; position: relative; }
  .place__inset { display: block; padding: 8px; background: var(--bg); border-radius: var(--radius); }
  .place__inset img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% 50%; border-radius: 2px; }
  .place__text { padding-top: 128px; }
  .place__text p { font-size: 18px; }
  .place__bridge { font-size: 30px !important; }
}

/* ---------- помещения ---------- */
.room {
  display: grid; grid-template-areas: "head" "gallery" "body"; grid-template-columns: minmax(0, 1fr);
  gap: 20px; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line);
}
.room__head { grid-area: head; }
.room__media { grid-area: gallery; min-width: 0; }
.room__body { grid-area: body; }
.room__kind { margin-bottom: 6px; font: italic 500 19px/1.1 var(--serif); color: var(--brass-ink); }
.room__name { font: 500 clamp(36px, 9vw, 54px)/1.05 var(--serif); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.room__area { font: 500 .62em/1 var(--serif); color: var(--brass); font-style: italic; }
.room__desc { color: var(--ink-2); max-width: 34em; }
.specs { margin-top: 24px; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.specs dt { color: var(--emerald-soft); font-weight: 600; font-size: 13.5px; letter-spacing: .01em; }
.specs dd { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { font-size: 13px; padding: 6px 12px; border-radius: 40px; background: var(--pill); color: var(--ink); }
@media (max-width: 380px) { .specs > div { grid-template-columns: 1fr; gap: 2px; } }

@media (min-width: 1024px) {
  .room {
    grid-template-areas: "gallery head" "gallery body"; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr;
    column-gap: 64px; row-gap: 20px; padding-bottom: 96px; margin-bottom: 96px;
  }
  .room--flip { grid-template-areas: "head gallery" "body gallery"; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .room__head { align-self: end; }
  .room__media { align-self: center; }
}

.rooms__pair { display: grid; gap: 0; }
.room--compact .room__name { font-size: clamp(34px, 8vw, 46px); }
@media (min-width: 900px) {
  .rooms__pair {
    grid-template-columns: 1fr 1fr; gap: 96px; border-bottom: 1px solid var(--line); padding-bottom: 96px; margin-bottom: 64px;
    background: linear-gradient(var(--line), var(--line)) 50% 0 / 1px calc(100% - 96px) no-repeat;
  }
  .rooms__pair .room { grid-template-areas: "head" "gallery" "body"; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; align-items: start; gap: 20px; padding: 0; margin: 0; border: 0; }
}

/* галерея в карточке: нативное листание пальцем + счётчик */
.gallery { position: relative; min-width: 0; }
.gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  border-radius: var(--radius); -webkit-overflow-scrolling: touch;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; cursor: zoom-in; }
.gallery__slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .gallery__slide:hover img { transform: scale(1.025); } }
.gallery__ui { position: absolute; inset: 0; pointer-events: none; }
.gallery__count {
  position: absolute; left: 12px; bottom: 12px;
  padding: 7px 11px; border-radius: 40px; background: rgba(20, 28, 25, .55); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 12px/1 var(--sans); letter-spacing: .1em; font-variant-numeric: tabular-nums;
}
.gallery__arrows { position: static; }
.gallery__btn[data-prev], .gallery__btn[data-next] { position: absolute; top: 50%; margin-top: -22px; }
.gallery__btn[data-prev] { left: 10px; }
.gallery__btn[data-next] { right: 10px; }
.gallery__btn {
  pointer-events: auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(247, 243, 236, .92); color: var(--ink); box-shadow: 0 4px 14px -6px rgba(20, 28, 25, .45);
  transition: background-color .3s, transform .3s var(--ease), opacity .3s;
}
.gallery__btn:hover { background: #fff; transform: scale(1.08); }
.gallery__btn:disabled { opacity: 0; pointer-events: none; }
.gallery__btn .ic { width: 18px; height: 18px; stroke-width: 1.8; }
.gallery--single .gallery__ui { display: none; }
.video-card__play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(247, 243, 236, .94); color: var(--emerald);
  transition: transform .5s var(--ease-out);
}
.video-card__play .ic { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 3px; }
.video-thumb {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 12px; padding: 8px 14px 8px 8px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); text-align: left; cursor: pointer;
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.video-thumb[hidden] { display: none; }
.video-thumb--details { max-width: 460px; margin-top: 28px; }
.video-thumb:hover { border-color: var(--emerald); background: #fff; }
.video-thumb__img {
  position: relative; flex: none; width: clamp(140px, 42%, 220px); aspect-ratio: 16 / 9; border-radius: 2px; overflow: hidden;
  display: grid; place-items: center; background: var(--emerald-ink) center / cover no-repeat; color: #fff;
}
.video-thumb__img::before { content: ""; position: absolute; inset: 0; background: rgba(8, 41, 31, .28); transition: background-color .35s; }
.video-thumb:hover .video-thumb__img::before { background: rgba(8, 41, 31, .12); }
.video-thumb__img .ic { position: relative; width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 2px; }
.video-thumb__txt { flex: 1; display: grid; gap: 1px; }
.video-thumb__txt b { font: 500 21px/1.15 var(--serif); }
.video-thumb__txt small { font-size: 12.5px; color: var(--ink-2); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.video-thumb__go { color: var(--brass); width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.video-thumb:hover .video-thumb__go { transform: translateX(4px); }

/* скоро */
.soon {
  display: grid; gap: 16px; align-items: center; padding: 28px 24px; border: 1px solid var(--brass); border-radius: var(--radius);
  background: linear-gradient(var(--bg), var(--bg)) padding-box;
}
.soon__title { font: 500 32px/1.1 var(--serif); }
.soon__title span { color: var(--brass); font-style: italic; }
.soon__body p { margin-top: 8px; color: var(--ink-2); }
.soon__btn { justify-self: start; }
@media (min-width: 900px) {
  .soon { grid-template-columns: auto 1fr auto; gap: 40px; padding: 36px 40px; }
  .soon__label { writing-mode: vertical-rl; transform: rotate(180deg); padding-left: 4px; border-left: 1px solid var(--brass); padding: 0 0 0 16px; }
}

/* ---------- свет под формат ---------- */
.light__rooms, .light__modes { display: flex; flex-wrap: wrap; gap: 8px; }
.light__rooms { margin-bottom: 20px; }
.light__modes { margin-top: 16px; }
.light__rooms button, .light__modes button {
  min-height: 44px; padding: 0 18px; border-radius: 40px; border: 1px solid var(--line-2); font-size: 14px;
  transition: background-color .35s var(--ease), color .35s, border-color .35s;
}
.light__rooms button[aria-selected="true"], .light__modes button[aria-pressed="true"] { background: var(--emerald); border-color: var(--emerald); color: var(--on-dark); }
.light__stage { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.light__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.light__stage img.is-on { opacity: 1; }
.light__note { margin-top: 12px; font: italic 500 22px/1.3 var(--serif); }
.light__set { display: none; }
@media (min-width: 1024px) { .light__stage { aspect-ratio: 16 / 9; } }

/* ---------- форматы (компактно, перед помещениями) ---------- */
.section--tight { padding-block: calc(var(--section) * .62); }
.section--tight .section__head { margin-bottom: 28px; }
.formats { background: var(--bg-2); }
.formats__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line-2); }
.formats__grid li { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.formats__grid li {
  display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line-2);
  font: 500 16.5px/1.2 var(--serif);
}
.formats__grid li:nth-child(odd) { border-right: 1px solid var(--line-2); }
.formats__grid li:nth-child(even) { padding-left: 12px; }
.medal.medal--sm { width: 42px; height: 42px; box-shadow: inset 0 0 0 3px var(--bg-2), inset 0 0 0 4px rgba(140, 113, 70, .18); background: var(--bg-2); }
.medal.medal--sm .ai { width: 28px; height: 28px; stroke-width: 1.5; }
@media (min-width: 720px) {
  .formats__grid li { font-size: 19px; gap: 16px; padding-block: 14px; }
  .formats__grid .medal.medal--sm { width: 48px; height: 48px; }
  .formats__grid .medal.medal--sm .ai { width: 32px; height: 32px; }
}
@media (min-width: 1024px) {
  .section--tight .section__head { margin-bottom: 36px; }
  .formats__grid { grid-template-columns: repeat(4, 1fr); }
  .formats__grid li, .formats__grid li:nth-child(even) { padding: 18px 22px; font-size: 20px; border-right: 1px solid var(--line-2); }
  .formats__grid li:nth-child(4n+1) { padding-left: 0; }
  .formats__grid li:nth-child(4n) { border-right: 0; }
  .formats__grid .medal.medal--sm { width: 54px; height: 54px; }
  .formats__grid .medal.medal--sm .ai { width: 36px; height: 36px; }
}

/* ---------- детали ---------- */
.details__list { display: grid; border-top: 1px solid var(--line); }
.details__list li { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.medal {
  flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(140, 113, 70, .55); background: var(--bg);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px rgba(140, 113, 70, .18);
}
.ai { width: 38px; height: 38px; fill: none; stroke: var(--emerald); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ai .acc { fill: var(--brass); stroke: none; }
.ai .acc-fill { fill: var(--brass-light); stroke: none; opacity: .55; }
.ai .acc-line { stroke: var(--brass); stroke-width: 1.7; }
.details__list h3 { font: 600 15.5px/1.35 var(--sans); color: var(--emerald-soft); }
.details__list p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }

/* плитки-ссылки: кликается вся плитка, рядом с заголовком стрелка */
.details__list li { position: relative; }
.details__link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.details__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.details__link:focus-visible { outline: none; }
.details__list li.is-link:has(.details__link:focus-visible) { outline: 2px solid var(--emerald); outline-offset: -2px; }
.details__go { width: 16px; height: 16px; color: var(--brass); transition: transform .5s var(--ease-out), color .4s; }
.details__list li.is-link:hover .details__go { transform: translateX(5px); color: var(--emerald-soft); }
.details__list li.is-link { cursor: pointer; }
.details__list li.is-link:active { background-color: rgba(26, 122, 90, .1); }

/* мягкая изумрудная подсветка плитки при наведении (только мышь) */
.details__list li { transition: background-color .6s var(--ease), box-shadow .6s var(--ease); }
.details__list .medal { transition: border-color .6s var(--ease), background-color .6s var(--ease), box-shadow .6s var(--ease), transform .7s var(--ease-out); }
@media (hover: hover) {
  .details__list li { padding-inline: 14px; }
  .details__list li:hover { background-color: rgba(26, 122, 90, .075); box-shadow: inset 0 0 0 1px rgba(26, 122, 90, .18); }
  .details__list li:hover .medal {
    border-color: rgba(26, 122, 90, .55); background-color: #fff;
    box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(26, 122, 90, .2); transform: scale(1.04);
  }
}
@media (hover: hover) and (min-width: 1024px) {
  .details__list li { padding-inline: 28px; }
}
@media (min-width: 720px) {
  .details__list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
@media (min-width: 1024px) {
  .details__list { grid-template-columns: repeat(4, 1fr); column-gap: 0; border-top: 0; }
  .details__list li { flex-direction: column; align-items: flex-start; gap: 22px; padding: 32px 28px 36px; border-bottom: 0; border-left: 1px solid var(--line); }
  .details__list li:nth-child(4n+1) { border-left: 0; }
  .details__list li:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .medal { width: 72px; height: 72px; }
  .ai { width: 44px; height: 44px; }
  .details__list h3 { font-size: 16px; }
}

/* ---------- условия ---------- */
.terms { background: var(--bg-2); }
.terms__list { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.terms__list li { position: relative; padding: 28px 0 30px 56px; border-bottom: 1px solid var(--line-2); }
.terms__n { position: absolute; left: 0; top: 26px; font: italic 500 30px/1 var(--serif); color: var(--brass); }
.terms__list h3 { font: 500 28px/1.15 var(--serif); }
.terms__list p { margin-top: 8px; color: var(--ink-2); }
.terms__price { margin-top: 14px !important; font: 500 22px/1.2 var(--serif); color: var(--emerald) !important; }
.terms__accent {
  margin-top: 40px; padding: 32px 28px; background: var(--emerald-deep); color: var(--on-dark); border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.terms__accent::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line-dark); border-radius: 2px; pointer-events: none; }
.terms__accent-title { font: 500 clamp(26px, 6.4vw, 38px)/1.15 var(--serif); color: var(--brass-light); }
.terms__accent p + p { margin-top: 8px; color: var(--on-dark-2); }
.terms__extra { margin-top: 28px; display: grid; gap: 10px; }
.terms__extra li { display: flex; gap: 12px; font-size: 15px; }
.terms__extra li::before { content: ""; flex: none; width: 16px; height: 1px; background: var(--brass); margin-top: .85em; }
@media (min-width: 1024px) {
  .terms__list { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .terms__list li { padding: 8px 40px 8px; border-bottom: 0; border-left: 1px solid var(--line-2); }
  .terms__list li:first-child { border-left: 0; padding-left: 0; }
  .terms__n { position: static; display: block; margin-bottom: 28px; font-size: 40px; }
  .terms__accent { margin-top: 72px; padding: 48px 56px; display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
  .terms__accent p + p { margin: 0; font-size: 18px; }
  .terms__extra { grid-template-columns: auto auto; justify-content: start; gap: 40px; }
}

/* ---------- шаги ---------- */
.steps__list { display: grid; gap: 0; counter-reset: s; }
.steps__list li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding-bottom: 32px; }
.steps__list li::before { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 1px; background: var(--line-2); }
.steps__list li:last-child { padding-bottom: 0; }
.steps__list li:last-child::before { display: none; }
.steps__list span { font: italic 500 34px/1 var(--serif); color: var(--brass); }
.steps__list p { font: 500 22px/1.25 var(--serif); padding-top: 6px; }
@media (min-width: 1024px) {
  .steps__list { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps__list li { grid-template-columns: 1fr; gap: 24px; padding: 0; }
  .steps__list li::before { left: 64px; right: -16px; top: 22px; bottom: auto; width: auto; height: 1px; }
  .steps__list li:last-child::before { display: none; }
  .steps__list span { font-size: 46px; }
  .steps__list p { font-size: 25px; padding-right: 16px; }
}

/* ---------- общая галерея ---------- */
.gallery-all { padding-top: 0; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mosaic__item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; aspect-ratio: 1; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.mosaic__item--a, .mosaic__item--b { grid-column: span 2; aspect-ratio: 4 / 3; }
@media (hover: hover) { .mosaic__item:hover img { transform: scale(1.04); } }
@media (min-width: 1024px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 15vw; gap: 12px; }
  .mosaic__item { aspect-ratio: auto; }
  .mosaic__item--a { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .mosaic__item--b { grid-column: span 2; aspect-ratio: auto; }
}
@media (min-width: 1440px) { .mosaic { grid-auto-rows: 216px; } }

/* видео-карточки: показываются, только когда задан файл в data-video */
.video-card {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 32px; overflow: hidden; border-radius: var(--radius);
  background: var(--emerald-ink) center / cover no-repeat; color: #fff; text-align: left; cursor: pointer;
}
.video-card[hidden] { display: none; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(8, 41, 31, .7)); }
.video-card__text { position: absolute; left: 20px; bottom: 18px; z-index: 1; display: grid; gap: 2px; }
.video-card__text b { font: 500 24px/1.15 var(--serif); }
.video-card__text small { font-size: 13px; opacity: .85; }
.video-card__play { z-index: 1; }
.video-card:hover .video-card__play { transform: scale(1.08); }
.video-card--wide { margin: 0 0 32px; }
.video-card--route { aspect-ratio: 4 / 5; max-width: 320px; margin: 20px auto 0; }

/* ---------- вопросы ---------- */
.faq__list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 20px 0; min-height: 44px; font: 500 21px/1.3 var(--serif); transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
  background: linear-gradient(var(--brass), var(--brass)) center / 100% 1.5px no-repeat, linear-gradient(var(--brass), var(--brass)) center / 1.5px 100% no-repeat;
  transition: transform .5s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--emerald); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); max-width: 44em; }
.js .faq details[open] p { animation: rise .5s var(--ease-out); }
@media (min-width: 1024px) {
  .faq__wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .faq .section__head { position: sticky; top: calc(var(--header-h) + 40px); }
  .faq summary { font-size: 24px; padding: 24px 0; }
}

/* ---------- контакты ---------- */
.contacts { background: var(--emerald-deep); color: var(--on-dark); padding-block: var(--section); }
.contacts__grid { display: grid; gap: 48px; }
.contacts__title { font-size: clamp(36px, 8.4vw, 66px); margin-top: 18px; }
.contacts__phone { display: inline-block; margin-top: 28px; font: 500 clamp(30px, 7.4vw, 44px)/1.1 var(--serif); text-decoration: none; color: var(--brass-light);  font-variant-numeric: lining-nums; }
.contacts__phone mark.todo, .footer mark.todo { color: #F2A48F; }
.contacts__actions { display: grid; gap: 10px; margin-top: 28px; }
.contacts__info { margin-top: 40px; border-top: 1px solid var(--line-dark); }
.contacts__info > div { padding: 14px 0; border-bottom: 1px solid var(--line-dark); display: grid; gap: 2px; }
.contacts__info dt { font: 600 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-light); }
.contacts__info dd { color: var(--on-dark); font-size: 15.5px; }
.contacts__map { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 20px 20px 24px; align-self: start; }
.route { width: 100%; height: auto; max-height: 460px; overflow: visible; }
.route__street { stroke: rgba(241, 234, 219, .3); stroke-width: 18; fill: none; }
.route__street--thin { stroke-width: 12; }
.route__street-name { fill: rgba(241, 234, 219, .55); font: 500 10px var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.route__metro { fill: none; stroke: #E06A6A; stroke-width: 1.6; }
.route__metro-m { fill: #E06A6A; font: 600 16px var(--sans); }
.route__label { fill: var(--on-dark); font: 500 13px var(--sans); }
.route__label--dim { fill: rgba(241, 234, 219, .7); }
.route__block { fill: rgba(241, 234, 219, .08); stroke: rgba(241, 234, 219, .3); }
.route__block--yard { fill: rgba(217, 198, 159, .07); stroke: var(--brass-light); stroke-opacity: .45; stroke-dasharray: 4 4; }
.route__street-name--sm { font-size: 9px; letter-spacing: .14em; }
.route__path { fill: none; stroke: var(--brass-light); stroke-width: 1.6; stroke-dasharray: 3 6; stroke-linecap: round; }
.route__time { fill: var(--brass-light); font: italic 500 20px var(--serif); }
.route__dest { fill: var(--brass-light); }
.route__dest-halo { fill: none; stroke: var(--brass-light); stroke-opacity: .5; }
.route__dest-label { fill: var(--brass-light); font: 600 20px var(--serif); }
.js .route__path { stroke-dashoffset: 0; animation: walk 8s linear infinite; }
@keyframes walk { to { stroke-dashoffset: -90; } }
.contacts__maplink {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-dark);
  min-height: 44px; font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--on-dark);
  transition: color .3s;
}
.contacts__maplink:hover { color: var(--brass-light); }
.contacts__actions { grid-template-columns: 1fr 1fr; }
.contacts__actions .btn--light { grid-column: 1 / -1; }
.contacts__actions .btn { padding: 0 16px; }
@media (min-width: 560px) { .contacts__actions { display: flex; flex-wrap: wrap; } }
@media (min-width: 1024px) {
  .contacts__grid { grid-template-columns: 7fr 5fr; gap: 96px; align-items: start; }
  .contacts__map { padding: 32px; }
}

/* ---------- вход: два фото ---------- */
.entrance { margin-top: 32px; }
.entrance__title { font: 500 26px/1.15 var(--serif); color: var(--on-dark); }
.entrance__title em { font-style: italic; color: var(--brass-light); }
.entrance__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.entrance__photo { position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; aspect-ratio: 3 / 4; }
.entrance__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .entrance__photo:hover img { transform: scale(1.04); } }
.entrance__cap {
  position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 6px; border-radius: 40px; background: rgba(8, 41, 31, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 12.5px; line-height: 1.2; text-align: left;
}
.entrance__cap b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brass-light); color: var(--emerald-ink); font-size: 12px; }
@media (min-width: 720px) { .entrance__photos { max-width: 520px; } .entrance__cap { font-size: 13.5px; } }

/* ---------- подвал ---------- */
.footer { background: var(--emerald-ink); color: var(--on-dark-2); padding: 36px 0 calc(100px + env(safe-area-inset-bottom)); font-size: 13.5px; }
.footer__top { display: grid; gap: 20px; justify-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--line-dark); }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); font-size: 15px; }
.footer__brand img { width: 34px; height: 34px; }
.footer__brand:hover { color: var(--brass-light); }
.footer__phone { font: 500 22px/1.2 var(--serif); color: var(--brass-light); text-decoration: none; font-variant-numeric: lining-nums; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--on-dark);
  border: 1px solid var(--line-dark); transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.footer__social a:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--emerald-ink); transform: translateY(-2px); }
.footer__social .ic { width: 19px; height: 19px; }
.footer__bottom { display: grid; gap: 6px; padding-top: 20px; }
@media (min-width: 1024px) {
  .footer { padding-bottom: 36px; }
  .footer__top { grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; }
  .footer__bottom { grid-template-columns: auto auto; justify-content: space-between; }
}

/* ---------- плавающая кнопка (телефон) ---------- */
.float-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 40px;
  background: var(--emerald); color: var(--on-dark); text-decoration: none; font: 500 15px/1 var(--sans);
  box-shadow: 0 10px 30px -10px rgba(8, 41, 31, .5);
  transform: translateY(140%); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s var(--ease);
}
.float-cta.is-on { transform: none; opacity: 1; }
body.menu-open .float-cta, body.lb-open .float-cta, body.sheet-open .float-cta { transform: translateY(140%); opacity: 0; }
@media (min-width: 1024px) { .float-cta { display: none; } }

/* ---------- кнопка «Наверх» ---------- */
.to-top {
  position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 41;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--emerald); border: 1px solid rgba(140, 113, 70, .55);
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px rgba(140, 113, 70, .2), 0 10px 26px -12px rgba(8, 41, 31, .45);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .6s var(--ease-out), visibility 0s linear .5s, background-color .3s, color .3s;
}
.to-top .ic { width: 20px; height: 20px; transform: rotate(-90deg); }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease-out), visibility 0s, background-color .3s, color .3s; }
.to-top.is-on { animation: float 3.2s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.to-top:hover { animation-play-state: paused; background: var(--emerald); color: var(--on-dark); }
body.menu-open .to-top, body.lb-open .to-top, body.sheet-open .to-top { opacity: 0; visibility: hidden; }
@media (min-width: 1024px) { .to-top { right: 28px; bottom: 28px; width: 52px; height: 52px; } }

/* ---------- лайтбокс ---------- */
.lb {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--emerald-ink); color: var(--on-dark); overflow: hidden;
  opacity: 0; transition: opacity .45s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete;
}
.lb[open] { opacity: 1; }
@starting-style { .lb[open] { opacity: 0; } }
.lb::backdrop { background: transparent; }
.lb__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lb__track::-webkit-scrollbar { display: none; }
.lb__slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; scroll-snap-stop: always; }
.lb__slide img, .lb__slide video { max-width: calc(100vw - 24px); max-height: calc(100% - 136px); width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lb__close, .lb__nav { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--on-dark); background: rgba(241, 234, 219, .08); transition: background-color .3s; }
.lb__close:hover, .lb__nav:hover { background: rgba(241, 234, 219, .18); }
.lb__close { top: calc(10px + env(safe-area-inset-top)); right: 10px; }
.lb__nav { top: 50%; transform: translateY(-50%); display: none; }
.lb__nav--prev { left: 20px; } .lb__nav--next { right: 20px; }
.lb__count { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom)); text-align: center; font: 500 12.5px/1 var(--sans); letter-spacing: .16em; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (min-width: 720px) { .lb__nav { display: grid; } .lb__slide img, .lb__slide video { max-width: calc(100vw - 200px); max-height: calc(100% - 144px); } }
body.lb-open { overflow: hidden; }

/* ---------- появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1.1s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- окно «Как связаться» ---------- */
.sheet {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
}
.sheet:not([open]) { display: none; }
.sheet::backdrop { background: rgba(8, 41, 31, 0); transition: background-color .45s var(--ease); }
.sheet.is-open::backdrop { background: rgba(8, 41, 31, .55); }
.sheet__panel {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100% - 24px); overflow-y: auto;
  background: var(--bg); color: var(--ink); border-radius: 22px 22px 0 0;
  padding: 14px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .55s var(--ease-out);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__panel:focus { outline: none; }
.sheet__panel > .eyebrow { padding-right: 48px; }
.sheet__handle { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto 18px; }
.sheet__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: background-color .3s; }
.sheet__close:hover { background: var(--bg-2); }
.sheet__title { font: 500 32px/1.1 var(--serif); margin-top: 10px; padding-right: 32px; }
.sheet__lead { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.sheet__list { margin-top: 20px; border-top: 1px solid var(--line); }
.sheet__list a {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 2px; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background-color .3s, padding .4s var(--ease-out);
}
.sheet__list a:hover { background: var(--bg-2); padding-left: 10px; }
.sheet__ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--emerald); }
.sheet__txt { display: grid; gap: 1px; flex: 1; }
.sheet__txt b { font-weight: 600; font-size: 15.5px; }
.sheet__txt small { font-size: 13px; color: var(--ink-2); }
.sheet__go { color: var(--brass); width: 18px; height: 18px; }
.sheet__list li { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .6s var(--ease-out); }
.sheet.is-open .sheet__list li { opacity: 1; transform: none; }
.sheet.is-open .sheet__list li:nth-child(1) { transition-delay: .12s; }
.sheet.is-open .sheet__list li:nth-child(2) { transition-delay: .16s; }
.sheet.is-open .sheet__list li:nth-child(3) { transition-delay: .2s; }
.sheet.is-open .sheet__list li:nth-child(4) { transition-delay: .24s; }
.sheet.is-open .sheet__list li:nth-child(5) { transition-delay: .28s; }
body.sheet-open { overflow: hidden; }
@media (min-width: 720px) {
  .sheet { align-items: center; }
  .sheet__panel { border-radius: 10px; padding: 36px 36px 28px; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .55s var(--ease-out), opacity .4s var(--ease); }
  .sheet.is-open .sheet__panel { opacity: 1; }
  .sheet__handle { display: none; }
  .sheet__close { top: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .sheet__list li { opacity: 1; transform: none; } }

/* ---------- пара «мягкий / яркий свет» в галерее кабинета ---------- */
.gallery__slide--light { position: relative; }
.gallery__slide--light img + img { position: absolute; inset: 0; height: 100%; }
.gallery__slide--light img { transition: opacity .7s var(--ease), transform 1.2s var(--ease-out); }
.gallery__slide--light img:not(.is-on) { opacity: 0; }
.light-switch {
  position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; padding: 3px; border-radius: 40px;
  background: rgba(20, 28, 25, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.light-switch button {
  min-height: 36px; padding: 0 14px; border-radius: 40px; color: #fff; font: 500 13px/1 var(--sans); letter-spacing: .02em;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.light-switch button[aria-pressed="true"] { background: rgba(247, 243, 236, .95); color: var(--ink); }

/* ---------- заглушки видео (body.show-placeholders) ---------- */
.is-placeholder { cursor: default; }
.video-thumb.is-placeholder:hover { border-color: var(--line); background: var(--bg); }
.video-thumb.is-placeholder .video-thumb__go { display: none; }
.video-thumb.is-placeholder .video-thumb__img::before { background: rgba(8, 41, 31, .45); }
.video-card.is-placeholder .video-card__play { opacity: .8; }
.video-card.is-placeholder:hover .video-card__play { transform: none; }
.soon-badge {
  display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 20px; vertical-align: 1px;
  background: var(--pill); color: var(--emerald-soft); font: 600 10px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.video-card .soon-badge { background: rgba(247, 243, 236, .92); }
.gallery__slide--light[data-demo]::after {
  content: "демо"; position: absolute; right: 12px; top: 12px; z-index: 2; padding: 4px 9px; border-radius: 20px;
  background: rgba(181, 72, 47, .9); color: #fff; font: 600 10px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
