/* ============================================================
   «Вижу гору» — стили сайта
   Цвета собраны из логотипа. Чтобы поменять цвет везде сразу,
   меняйте значения в блоке :root ниже.
   ============================================================ */

:root {
  --cream: #F3F0E7;        /* фон логотипа */
  --cream-2: #E9E4D6;      /* фон чередующихся секций */
  --ink: #252A23;          /* основной текст */
  --ink-soft: #5F6559;     /* второстепенный текст */
  --sage: #6F8169;         /* зелёный логотипа */
  --forest: #343E32;       /* тёмные секции */
  --forest-2: #2A3228;     /* подвал */
  --terra: #CD8C64;        /* терракота логотипа — детали */
  --terra-deep: #9E5836;   /* кнопки */
  --terra-dark: #874A2C;   /* кнопки при наведении */
  --terra-text: #9A5634;   /* мелкий акцентный текст на светлом */
  --line: rgba(37, 42, 35, .14);
  --line-light: rgba(243, 240, 231, .18);

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(96px, 13vw, 184px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (max-width: 767px) { :root { --header-h: 64px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (min-width: 1100px) { body { font-size: 17px; } }
img, picture, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
picture { width: 100%; height: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
figure, blockquote { margin: 0; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
::selection { background: var(--terra); color: var(--cream); }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* ---------- Типографика ---------- */
.h2 {
  font: 500 clamp(2.5rem, 1.7rem + 3.6vw, 4.8rem)/1.02 var(--serif);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.h3 {
  font: 600 .78rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lead {
  font-size: clamp(1.06rem, .98rem + .38vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 36em;
  text-wrap: pretty;
}
.eyebrow {
  font: 600 .78rem/1.4 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terra-text);
}
.eyebrow--light { color: var(--cream); opacity: .85; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 56px; padding: 0 32px;
  border-radius: 999px;
  background: var(--terra-deep); color: var(--cream);
  font: 600 .95rem/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--terra-dark); }
.btn:active { transform: scale(.98); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: .86rem; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--cream);
  transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.header__inner {
  height: var(--header-h);
  max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.header__logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  font: 500 1.55rem/1 var(--serif); letter-spacing: -.01em;
  margin-right: auto;
}
.header__logo img { width: 34px; height: auto; }
.header__nav { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.header__nav a {
  font-size: .9rem; text-decoration: none; opacity: .88;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .4s var(--ease), opacity .3s;
}
.header__nav a:hover { opacity: 1; background-size: 100% 1px; }
.header.is-solid, .header.is-menu {
  background: rgba(243, 240, 231, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header__burger { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.header__burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.header__burger span:first-child { top: 17px; }
.header__burger span:last-child { top: 26px; }
.header.is-menu .header__burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.header.is-menu .header__burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .header__burger { display: block; }
  .header__cta { display: none; }
  .header__nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 6px;
    padding: 0 var(--gutter) 12vh;
    background: var(--cream); color: var(--ink);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  }
  .header__nav a { font: 500 2.4rem/1.3 var(--serif); opacity: 1; background: none; }
  .header.is-menu .header__nav { opacity: 1; visibility: visible; transform: none; }
  /* backdrop-filter «запирает» fixed-меню внутри шапки — при открытом меню отключаем */
  .header.is-menu { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--cream); }
}

/* ---------- Первый экран ---------- */
.hero { position: relative; background: var(--forest); color: var(--cream); }
.hero__stage {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 520px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(40px, 9vh, 110px);
}
.hero__stage > picture { display: contents; }
.hero__poster, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__video { opacity: 0; } /* без плавного перехода: кадры видео и картинки совпадают, переход не нужен */
.hero__video.is-ready { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(24, 29, 23, .55) 0%, rgba(24, 29, 23, .18) 16%, rgba(24, 29, 23, 0) 30%),
    linear-gradient(to top, rgba(24, 29, 23, .72) 0%, rgba(24, 29, 23, .28) 38%, rgba(24, 29, 23, 0) 62%);
}
.hero__intro, .hero__final { position: relative; z-index: 2; width: 100%; max-width: 1232px; margin-inline: auto; }
.hero__intro .eyebrow { margin-bottom: 18px; }
.hero__title {
  font: 500 clamp(4rem, 2.6rem + 7.4vw, 10.5rem)/.88 var(--serif);
  letter-spacing: -.025em;
  margin-left: -.04em;
}
.hero__subtitle {
  margin-top: clamp(18px, 2.4vw, 28px);
  font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem); line-height: 1.5;
  max-width: 30em; opacity: .92;
}
.hero__final { margin-top: 28px; }
/* Пока скрипт не решил, как показывать первый экран, финальная кнопка скрыта */
html.js .hero__final { visibility: hidden; opacity: 0; }
html.js[data-hero="static"] .hero__final { visibility: visible; opacity: 1; }
/* Заголовок проявляется сразу, не дожидаясь скриптов */
.hero__intro > * { animation: heroIn 1.4s var(--ease) both; }
.hero__intro > :nth-child(2) { animation-delay: .14s; }
.hero__intro > :nth-child(3) { animation-delay: .28s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } }
.hero__final-title { display: none; }
/* Полоска загрузки ролика (показывается, только если гость листнул до того, как ролик скачался) */
.hero__load {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 2px;
  background: rgba(243, 240, 231, .18); opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.hero__load.is-on { opacity: 1; transition-delay: .15s; }
.hero__load span {
  display: block; height: 100%; background: var(--cream);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s linear;
}
.hero__hint { display: none; }

/* Компьютер: заголовок и финальный текст сменяют друг друга на одном месте */
[data-hero="play"] .hero__final {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(40px, 9vh, 110px);
  width: auto; margin: 0 auto; max-width: 1232px;
  visibility: hidden; opacity: 0;
}
[data-hero="play"] .hero__final-title {
  display: block;
  font: italic 500 clamp(2.4rem, 1.6rem + 3.4vw, 5rem)/1.02 var(--serif);
  letter-spacing: -.015em; max-width: 13em;
  margin-bottom: 32px;
}
[data-hero="play"] .hero__hint {
  display: flex; align-items: center; gap: 14px;
  animation: heroIn 1s 1.2s var(--ease) both;
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(40px, 9vh, 110px);
  font: 600 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .8;
}
.hero__hint i { display: block; width: 1px; height: 46px; background: rgba(243, 240, 231, .35); position: relative; overflow: hidden; }
.hero__hint i::after {
  content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--cream);
  animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@media (max-width: 767px) {
  .hero__final .btn { width: 100%; }
}

/* ---------- О доме ---------- */
.about__head {
  display: grid; gap: 28px 64px;
  grid-template-columns: 1fr;
  margin-bottom: clamp(56px, 8vw, 110px);
}
@media (min-width: 900px) {
  .about__head { grid-template-columns: 1.05fr 1fr; align-items: end; }
}
.facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact {
  padding: 28px 16px 8px 0;
  display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 900px) {
  .fact { padding: 36px 24px 0 0; }
  .fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
}
@media (max-width: 899px) {
  .fact:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fact { padding-bottom: 28px; }
}
.fact__value {
  font: 500 clamp(4rem, 2.8rem + 5vw, 7.6rem)/.85 var(--serif);
  color: var(--sage); letter-spacing: -.03em;
}
.fact__label { font-size: .95rem; color: var(--ink-soft); max-width: 14em; line-height: 1.45; }

/* ---------- Сцены ---------- */
.scenes { padding-top: 0; }
.scene {
  display: grid; gap: 32px;
  align-items: center;
}
.scene + .scene { margin-top: clamp(96px, 14vw, 200px); }
.scene__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-2); }
.scene__media img { width: 100%; height: 100%; object-fit: cover; }
.scene__time {
  font: italic 500 1.5rem/1 var(--serif); color: var(--terra-text);
  display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
}
.scene__time::after { content: ''; width: 48px; height: 1px; background: var(--terra); }
.scene__title { margin-bottom: 24px; }
@media (max-width: 899px) {
  .scene__media { margin-inline: calc(var(--gutter) * -1); }
}
@media (min-width: 900px) {
  .scene { grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
  .scene__media { grid-column: 1 / span 7; aspect-ratio: 4 / 4.6; }
  .scene__text { grid-column: 9 / span 4; }
  .scene--flip .scene__media { grid-column: 6 / span 7; grid-row: 1; }
  .scene--flip .scene__text { grid-column: 1 / span 4; grid-row: 1; }
}

/* ---------- Дизайн ---------- */
.design { background: var(--cream-2); }
.design__grid { display: grid; gap: 48px; }
.design__text .h2 { margin-bottom: 28px; }
.design__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.design__photos figure { aspect-ratio: 4 / 5; overflow: hidden; }
.design__photos figure:nth-child(2) { margin-top: clamp(40px, 8vw, 120px); }
.design__photos img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .design__grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
  .design__photos { gap: 24px; }
}

/* ---------- Галерея ---------- */
.gallery__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 28px 48px; margin-bottom: clamp(36px, 5vw, 64px);
}
.tabs {
  display: flex; gap: 26px;
  overflow-x: auto; scrollbar-width: none;
  max-width: 100%;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .tabs { margin-inline: 0; padding-inline: 0; gap: 32px; } }
.tab {
  flex: none; padding: 8px 0; font-size: 1rem; color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.tab sup { font-size: .68em; margin-left: 3px; opacity: .7; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--terra); }
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery__cell { position: relative; }
.gallery__item {
  display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--cream-2); cursor: zoom-in;
}
@media (max-width: 899px) {
  .gallery__cell.m-full { grid-column: span 2; }
  .gallery__cell.m-full .gallery__item { aspect-ratio: 4 / 3; }
}
@media (min-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  /* большая плитка 2×2: квадрат шириной в две колонки ровно равен двум рядам */
  .gallery__cell.d-big { grid-column: span 2; grid-row: span 2; }
  /* широкая плитка: высоту ряда задаёт соседнее квадратное фото, плитка просто заполняет ячейку */
  .gallery__cell.d-wide { grid-column: span 2; }
  .gallery__cell.d-wide .gallery__item { position: absolute; inset: 0; aspect-ratio: auto; }
  .gallery__cell.d-full { grid-column: 1 / -1; }
  .gallery__cell.d-full .gallery__item { aspect-ratio: 16 / 7; }
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.035); }

/* ---------- Удобства ---------- */
.amenities { background: var(--cream-2); }
.amenities__grid { display: grid; gap: 56px; }
.amenities__intro .h2 { margin-bottom: 40px; }
.amenities__photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; background: var(--cream); }
.amenities__photo figcaption { margin-top: 14px; font-size: .92rem; color: var(--ink-soft); max-width: 30em; }
@media (min-width: 900px) {
  .amenities__grid { grid-template-columns: 5fr 6fr; gap: 96px; align-items: start; }
  .amenities__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; gap: 8px 32px; padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .row { grid-template-columns: 11em 1fr; } }
.row dt { font: 500 1.6rem/1.15 var(--serif); }
.row dd { color: var(--ink-soft); }

/* ---------- Как добраться ---------- */
.location__grid { display: grid; gap: 64px; }
.location__grid .h2 { margin-bottom: 28px; }
.location__info .h3 { margin-bottom: 14px; }
.location__info p { color: var(--ink-soft); max-width: 32em; }
.location__info p + .h3 { margin-top: 40px; }
.location__info .btn { margin-top: 40px; }
@media (min-width: 900px) { .location__grid { grid-template-columns: 7fr 5fr; gap: 96px; } }
.distances { margin-top: 56px; border-top: 1px solid var(--line); }
.distances li {
  display: flex; align-items: baseline; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.distances__value { font: 500 clamp(2.4rem, 1.8rem + 2vw, 3.6rem)/1 var(--serif); color: var(--sage); min-width: 3.4em; letter-spacing: -.02em; }
.distances__label { color: var(--ink-soft); }

/* ---------- Бронирование ---------- */
.booking { background: var(--forest); color: var(--cream); }
.booking .lead, .booking .h3 { color: rgba(243, 240, 231, .72); }
.booking__head { display: grid; gap: 24px 64px; margin-bottom: clamp(48px, 7vw, 88px); }
@media (min-width: 900px) { .booking__head { grid-template-columns: 1fr 1fr; align-items: end; } }
.booking__online {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-light);
}
.booking__online-title { font: 500 clamp(1.7rem, 1.3rem + 1.4vw, 2.6rem)/1.1 var(--serif); margin-bottom: 10px; }
.booking__online-text { color: rgba(243, 240, 231, .72); max-width: 34em; }
@media (max-width: 639px) { .booking__online .btn { width: 100%; } }
.btn.is-loading { opacity: .75; pointer-events: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.booking__messengers { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.messengers { display: flex; flex-wrap: wrap; gap: 12px; }
.booking .btn--ghost:hover, .messengers--light .btn--ghost:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }
@media (max-width: 639px) {
  .messengers { width: 100%; }
  .messengers .btn { flex: 1 1 calc(50% - 6px); padding: 0 16px; }
}

/* Окно «Онлайн-бронирование временно недоступно» (если RealtyCalendar не открылся) */
/* Окно RealtyCalendar: цвета виджета закреплены здесь, настройки внешнего вида в кабинете на сайт не влияют.
   Поменять цвет — правьте значения ниже (!important оставьте, без него победит кабинет). */
html {
  --custom-main: #9F5737 !important;        /* кнопки, ссылки «Назад», выделение дат */
  --custom-main-dark: #633522 !important;   /* кнопки при наведении */
  --custom-main-light: #f7ede8 !important;  /* светлая подложка выбранных элементов */
  --custom-background: #F5F5F5 !important;  /* фон полей и плашек */
  --custom-label: #F44336 !important;       /* метки и предупреждения */
  --custom-text: #252A23 !important;        /* основной текст */
}
.rc-down { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.rc-down[hidden] { display: none; }
.rc-down__backdrop { position: absolute; inset: 0; background: rgba(37, 42, 35, .56); opacity: 0; transition: opacity .25s var(--ease); }
.rc-down__box {
  position: relative; width: 100%; max-width: 520px; padding: clamp(28px, 5vw, 44px);
  background: var(--cream); color: var(--ink); border-radius: 6px; box-shadow: 0 24px 64px -24px rgba(37, 42, 35, .45);
  opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.rc-down.is-open .rc-down__backdrop { opacity: 1; }
.rc-down.is-open .rc-down__box { opacity: 1; transform: none; }
.rc-down__title { margin: 0 32px 14px 0; font: 500 clamp(1.7rem, 1.4rem + 1vw, 2.2rem)/1.1 var(--serif); }
.rc-down__text { color: var(--ink-soft); margin-bottom: 28px; }
.rc-down__links .btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.rc-down__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; }
.rc-down__close:hover { background: var(--cream-2); }
.rc-down__close::before, .rc-down__close::after {
  content: ''; position: absolute; left: 13px; right: 13px; top: 21.5px; height: 1.5px; background: currentColor;
}
.rc-down__close::before { transform: rotate(45deg); }
.rc-down__close::after { transform: rotate(-45deg); }

/* ---------- Подвал ---------- */
.footer { background: var(--forest-2); color: var(--cream); padding: var(--section) 0 calc(40px + env(safe-area-inset-bottom)); }
.footer .lead { color: rgba(243, 240, 231, .72); margin: 28px 0 40px; }
.footer__top { display: grid; gap: 64px; padding-bottom: clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line-light); }
@media (min-width: 900px) { .footer__top { grid-template-columns: 7fr 5fr; gap: 96px; align-items: end; } }
.footer__contacts div { padding: 18px 0; border-top: 1px solid var(--line-light); display: grid; gap: 4px; }
.footer__contacts dt { font: 600 .72rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--terra); }
.footer__contacts a { text-decoration: none; font-size: 1.05rem; }
.footer__contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 40px; }
.footer__logo { width: auto; height: clamp(88px, 10vw, 120px); opacity: .9; }
.footer__copy { font-size: .85rem; color: rgba(243, 240, 231, .56); text-align: right; }
@media (max-width: 767px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- Закреплённая кнопка ---------- */
.sticky-cta {
  position: fixed; z-index: 40;
  right: 28px; bottom: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  background: var(--terra-deep); color: var(--cream);
  font: 600 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(37, 42, 35, .45);
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s, background-color .3s;
}
.sticky-cta:hover { background: var(--terra-dark); }
.sticky-cta.is-visible { opacity: 1; visibility: visible; transform: none; }
/* на компьютере кнопка «Забронировать» всегда видна в шапке — плавающая не нужна */
@media (min-width: 1024px) { .sticky-cta { display: none; } }
@media (max-width: 767px) {
  .sticky-cta { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* ---------- Просмотр фото ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(22, 26, 21, .97); color: var(--cream);
  touch-action: none;
}
.lightbox__figure { position: absolute; inset: 72px 96px 88px; display: flex; }
.lightbox__track { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lightbox__track picture { display: contents; }
.lightbox__track img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__caption {
  position: absolute; left: 0; right: 0; bottom: -56px;
  display: flex; gap: 24px; font-size: .88rem; color: rgba(243, 240, 231, .7);
}
.lightbox__caption span:first-child { color: var(--cream); font-variant-numeric: tabular-nums; flex: none; }
.lightbox__close {
  position: absolute; top: 20px; right: 24px; z-index: 2;
  padding: 12px 4px; font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.lightbox__nav {
  position: absolute; top: 50%; z-index: 2; width: 56px; height: 56px; margin-top: -28px;
  border: 1px solid var(--line-light); border-radius: 50%;
  transition: border-color .3s, background-color .3s;
}
.lightbox__nav:hover { border-color: var(--cream); }
.lightbox__nav::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.lightbox__nav--next { right: 24px; }
.lightbox__nav--next::before { transform: translate(-70%, -50%) rotate(45deg); }
@media (max-width: 767px) {
  .lightbox__figure { inset: 64px 0 96px; }
  .lightbox__caption { padding: 0 20px; bottom: -64px; flex-direction: column; gap: 6px; }
  .lightbox__nav { display: none; }
}

/* ---------- Анимации появления (включаются скриптом) ---------- */
html.anim .reveal { opacity: 0; visibility: hidden; transform: translateY(28px); }
html.anim .reveal-media { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
