/* =========================================================
   Гостиница «Городок» — стили сайта
   Шрифты: Cormorant Garamond (заголовки) + Inter (текст)
   ========================================================= */

/* ---------- Fonts (локальные файлы из /assets) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/cormorantgaramond-cyrillic-4f4a8.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/cormorantgaramond-latin-2fed1.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 Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/cormorantgaramond-cyrillic-d2b6f.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/cormorantgaramond-latin-5d13e.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/inter-cyrillic-4ee8f.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/inter-latin-56724.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;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f6f0e6;
  --paper-2: #efe6d6;
  --paper-3: #e6dac5;
  --card: #fbf8f2;
  --ink: #211b15;
  --ink-2: #463c33;
  --muted: #74685c;
  --line: rgba(33, 27, 21, 0.13);
  --line-strong: rgba(33, 27, 21, 0.24);

  --gold: #927444;        /* цвет эмблемы */
  --gold-ink: #7a5e33;    /* золото для мелкого текста на светлом фоне */
  --gold-deep: #84683c;   /* фон кнопок */
  --gold-light: #c9aa74;  /* золото на тёмном фоне */
  --gold-pale: #e3cfa6;

  --ivy: #1b251f;
  --ivy-2: #24312a;
  --ivy-3: #33443a;
  --ivy-line: rgba(233, 222, 199, 0.16);
  --on-dark: #f3ecdf;
  --on-dark-2: rgba(243, 236, 223, 0.72);

  --terra: #a4502f;

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

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(76px, 10vw, 136px);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(33, 27, 21, 0.06), 0 12px 32px -12px rgba(33, 27, 21, 0.22);
  --shadow-lg: 0 2px 4px rgba(33, 27, 21, 0.06), 0 30px 60px -24px rgba(33, 27, 21, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
body:has(dialog[open]),
body.is-locked { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--plain::before { display: none; }

.h1, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h1 { font-size: clamp(46px, 7.4vw, 104px); line-height: 0.96; }
.h2 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.02; }
.h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.h1 em, .h2 em, .h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.lead {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 62ch;
}
.muted { color: var(--muted); }

.section { padding-block: var(--section); position: relative; }
.section--tint { background: var(--paper-2); }
.section--dark {
  background: var(--ivy);
  color: var(--on-dark);
}
.section--dark .eyebrow { color: var(--gold-light); }
.section--dark .lead { color: var(--on-dark-2); }
.section--dark .h2 em, .section--dark .h3 em { color: var(--gold-light); }

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head--split {
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
}
.section-head--center { text-align: center; justify-items: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold-deep);
  --btn-fg: #fff;
  --btn-bd: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { --btn-bg: #6f5631; --btn-bd: #6f5631; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(111, 86, 49, 0.7); }
.btn:active { transform: translateY(0); }
.btn .i { width: 18px; height: 18px; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); box-shadow: none; }

.btn--light {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; box-shadow: none; }

.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--gold-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease), color 0.2s;
}
.link-arrow:hover { gap: 12px; color: var(--ink); }
.section--dark .link-arrow { color: var(--gold-light); }
.section--dark .link-arrow:hover { color: #fff; }
.link-arrow .i { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 11, 8, 0.55), rgba(15, 11, 8, 0));
  pointer-events: none;
  transition: opacity 0.35s;
}
.header.is-solid {
  background: rgba(246, 240, 230, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-solid::before { opacity: 0; }
.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.logo__mark {
  width: 46px;
  height: 46px;
  color: var(--gold-pale);
  transition: color 0.35s;
}
.header.is-solid .logo__mark,
.footer .logo__mark,
.page .logo__mark { color: var(--gold); }
.logo__text { display: grid; line-height: 1; }
.logo__name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.logo__sub {
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(14px, 1.8vw, 28px); }
.nav__link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  opacity: 0.92;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.header__phone .i { width: 18px; height: 18px; color: var(--gold-pale); }
.header.is-solid .header__phone .i { color: var(--gold); }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid currentColor;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.header.is-solid .burger { border-color: var(--line-strong); }
.burger .i { width: 22px; height: 22px; }

.nav__link { white-space: nowrap; }
@media (max-width: 1240px) {
  .nav, .header__phone span { display: none; }
  .burger { display: inline-flex; }
  .header__actions { margin-left: auto; gap: 10px; }
  .header__phone {
    width: 46px; height: 46px;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
  }
  .header.is-solid .header__phone { border-color: var(--line-strong); }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .logo__mark { width: 38px; height: 38px; }
  .logo__name { font-size: 24px; }
  .logo__sub { font-size: 9.5px; letter-spacing: 0.2em; }
  .header__cta { display: none; }
}

/* ---------- Mobile menu ---------- */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--ivy);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  padding: 20px var(--gutter) 32px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.mnav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s;
}
.mnav__top { display: flex; align-items: center; justify-content: space-between; }
.mnav__top .logo__mark { color: var(--gold-light); }
.mnav__close {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--ivy-line);
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mnav__close .i { width: 22px; height: 22px; }
.mnav__list { margin: 36px 0 28px; display: grid; gap: 4px; }
.mnav__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1.25;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid var(--ivy-line);
}
.mnav__list a span { font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; color: var(--gold-light); }
.mnav__bottom { margin-top: auto; display: grid; gap: 14px; }
.mnav__contact { display: grid; gap: 6px; font-size: 15px; color: var(--on-dark-2); }
.mnav__contact a { color: var(--on-dark); font-weight: 600; font-size: 20px; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(660px, 100svh);
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  background: #1a130d;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 10, 7, 0.5) 0%, rgba(14, 10, 7, 0.08) 28%, rgba(14, 10, 7, 0.18) 52%, rgba(14, 10, 7, 0.86) 100%),
    linear-gradient(90deg, rgba(14, 10, 7, 0.55) 0%, rgba(14, 10, 7, 0) 60%);
}
.hero__content {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(150px, 17vw, 190px);
  max-width: 860px;
}
.hero .eyebrow { color: var(--gold-pale); }
.hero__title { margin-top: 22px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.hero__title em { color: var(--gold-pale); }
.hero__lead {
  margin-top: 24px;
  max-width: 54ch;
  font-size: clamp(17px, 1.4vw, 19.5px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: rgba(20, 15, 10, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  color: #fff;
  transition: background-color 0.25s;
}
.rating:hover { background: rgba(20, 15, 10, 0.6); }
.rating__score {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  padding: 2px 4px 0 8px;
}
.stars { display: inline-flex; gap: 2px; color: #f2c14e; }
.stars .i { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.rating__text { display: grid; font-size: 13px; line-height: 1.35; }
.rating__text b { font-weight: 600; }
.rating__text span { opacity: 0.78; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(150px, 17vw, 190px);
  display: grid;
  justify-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 64px;
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* Невысокие экраны ноутбуков (1280×720, 1366×768): компактнее, чтобы бронирование было видно сразу */
@media (min-width: 641px) and (max-height: 860px) {
  .hero__content { padding-top: calc(var(--header-h) + 28px); padding-bottom: 128px; max-width: 940px; }
  .hero__title { font-size: clamp(44px, 9.4vh, 86px); margin-top: 16px; }
  .hero__lead { margin-top: 16px; }
  .hero__cta { margin-top: 24px; }
  .rating { margin-top: 18px; }
  .hero__scroll { bottom: 128px; }
}

/* Телефон: фото сверху целиком (вывеска «Городок» видна), текст — под ним на тёмном фоне */
@media (max-width: 640px) {
  .hero { display: block; min-height: 0; }
  .hero::before { display: none; }
  .hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    height: clamp(300px, 50svh, 440px);
  }
  .hero__media img { object-position: 50% 26%; }
  html[data-season="summer"] .hero__media img { object-position: 62% 50% !important; }
  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 10, 7, 0.55) 0%, rgba(14, 10, 7, 0) 32%, rgba(14, 10, 7, 0) 62%, #1a130d 100%);
  }
  .hero__content {
    position: relative;
    z-index: 1;
    margin-top: -56px;
    padding-top: 0;
    padding-bottom: 128px;
  }
  .hero__title { margin-top: 16px; }
  .hero__lead { margin-top: 18px; }
  .hero__cta { margin-top: 26px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .rating { margin-top: 22px; }
}

/* ---------- Booking bar ---------- */
.bookbar {
  position: relative;
  z-index: 5;
  margin-top: clamp(-110px, -9vw, -84px);
}
.bookbar__card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 36px);
  display: grid;
  gap: 18px;
  border: 1px solid rgba(146, 116, 68, 0.18);
}
.bookbar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}
.bookbar__title { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; line-height: 1.1; }
.bookbar__note { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); }
.bookbar__note span { display: inline-flex; align-items: center; gap: 6px; }
.bookbar__note .i { width: 16px; height: 16px; color: var(--gold); }
.bookbar__widget:empty, .booking__widget:empty { min-height: 0 !important; }
.widget-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--muted);
}
.widget-loading[hidden] { display: none; }
.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--paper-3);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Fallback, если виджет бронирования не загрузился */
.widget-fallback {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.widget-fallback.is-visible { display: flex; }
.widget-fallback p { font-size: 15px; color: var(--ink-2); max-width: 60ch; }
.widget-fallback__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Features strip ---------- */
.features {
  padding-block: clamp(48px, 6vw, 72px) 0;
}
.features__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 18px;
  position: relative;
}
.feature + .feature::before {
  content: "";
  position: absolute;
  left: 0; top: 22px; bottom: 22px;
  width: 1px;
  background: var(--line);
}
.feature .i { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.3; }
.feature b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.feature span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 1080px) {
  .features__list { grid-template-columns: repeat(3, 1fr); }
  .feature:nth-child(4)::before { display: none; }
  .feature:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .features__list { grid-template-columns: repeat(2, 1fr); }
  .feature { padding: 22px 14px; }
  .feature:nth-child(4)::before { display: block; }
  .feature:nth-child(odd)::before { display: none; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (min-width: 960px) { .about__grid { grid-template-columns: 0.95fr 1.05fr; } }

.about__media { position: relative; padding: 0 0 60px 0; max-width: 560px; }
.arch {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--paper-3);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--outline { overflow: visible; background: none; }
.arch--outline::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(146, 116, 68, 0.55);
  border-radius: 999px 999px calc(var(--radius) + 14px) calc(var(--radius) + 14px);
  pointer-events: none;
}
.arch--outline > .arch__img {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  height: 100%;
}
.about__main { aspect-ratio: 4 / 5; width: 84%; }
.about__inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1 / 1.1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 8px solid var(--paper);
  box-shadow: var(--shadow);
}
.about__inset img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute;
  left: -6px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--ivy);
  color: var(--on-dark);
  text-align: center;
  box-shadow: var(--shadow);
}
.about__badge b { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 0.9; color: var(--gold-light); }
.about__badge span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: -18px; }

.about__text { display: grid; gap: 22px; }
.about__text p { color: var(--ink-2); font-size: 17px; }
.about__text p.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.stat { padding: 22px 12px 0 0; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 3.6vw, 50px);
  line-height: 1;
  color: var(--ink);
}
.stat span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.35; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 8px; } }

.quote-mini {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  margin-top: 8px;
}
.quote-mini__mark { font-family: var(--serif); font-size: 64px; line-height: 0.6; color: var(--gold); padding-top: 14px; }
.quote-mini p { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--ink); font-style: italic; font-weight: 500; }
.quote-mini cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--muted); }

/* ---------- Rooms ---------- */
.rooms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);
}
@media (max-width: 1080px) { .rooms__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .rooms__grid { grid-template-columns: 1fr; } }

.room {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px rgba(33, 27, 21, 0.04);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.room:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.room__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: var(--paper-3);
  display: block;
  width: 100%;
}
.room__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.room:hover .room__media img { transform: scale(1.05); }
.room__count {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.94);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}
.room__photos {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 15, 10, 0.6);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.room__photos .i { width: 15px; height: 15px; }
.room__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 24px;
  flex: 1;
}
.room__title { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1; }
.room__beds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
  color: var(--ink-2);
}
.room__beds span { display: inline-flex; align-items: center; gap: 7px; }
.room__beds .i { width: 18px; height: 18px; color: var(--gold); }
.room__desc { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.amen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.amen li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 12.5px;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.amen .i { width: 15px; height: 15px; color: var(--gold); }
.room__foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  gap: 10px;
}
.room__foot .btn { flex: 1; padding: 0 16px; }

.room--cta {
  background: var(--ivy);
  color: var(--on-dark);
  padding: clamp(28px, 3vw, 40px);
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.room--cta::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  background: url("../assets/emblem.svg") center / contain no-repeat;
  opacity: 0.12;
  filter: brightness(1.8);
}
.room--cta:hover { transform: none; box-shadow: none; }
.room--cta .h3 { color: var(--on-dark); }
.room--cta p { color: var(--on-dark-2); font-size: 15.5px; }
.room--cta .room__phone {
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 38px);
  color: var(--gold-light);
  text-decoration: none;
  line-height: 1;
}
.room--cta ul { display: grid; gap: 10px; font-size: 14.5px; color: var(--on-dark-2); }
.room--cta li { display: flex; gap: 10px; align-items: center; }
.room--cta li .i { width: 18px; height: 18px; color: var(--gold-light); }

.rooms__note {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
}
.rooms__note span { display: inline-flex; align-items: center; gap: 8px; }
.rooms__note .i { width: 17px; height: 17px; color: var(--gold); }

/* ---------- Room dialog ---------- */
.dlg {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.dlg::backdrop { background: rgba(18, 13, 9, 0.72); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlgIn 0.4s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.dlg__close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(251, 248, 242, 0.95);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.dlg__close .i { width: 20px; height: 20px; }
.rd {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  height: min(780px, calc(100dvh - 32px));
}
.rd__gallery { background: #15100c; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; min-width: 0; }
.rd__stage { position: relative; min-height: 0; overflow: hidden; }
.rd__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rd__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(251, 248, 242, 0.9);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.rd__nav--prev { left: 12px; }
.rd__nav--next { right: 12px; }
.rd__nav .i { width: 20px; height: 20px; }
.rd__counter {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 15, 10, 0.6);
  color: #fff;
  font-size: 12.5px;
}
.rd__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.rd__thumbs button {
  flex: none;
  width: 92px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  background: none;
  transition: opacity 0.2s, border-color 0.2s;
}
.rd__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold-light); }
.rd__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.rd__info {
  padding: clamp(24px, 3vw, 40px);
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 18px;
}
.rd__info .h2 { font-size: clamp(36px, 3.6vw, 52px); }
.rd__info .room__beds { font-size: 14.5px; }
.rd__desc { color: var(--ink-2); font-size: 15.5px; }
.rd__label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.rd__amen { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 16px; font-size: 14.5px; }
.rd__amen li { display: flex; gap: 9px; align-items: center; }
.rd__amen .i { width: 18px; height: 18px; color: var(--gold); }
.rd__terms {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 14px;
  color: var(--ink-2);
}
.rd__terms li { display: flex; gap: 10px; }
.rd__terms .i { width: 17px; height: 17px; color: var(--gold); margin-top: 2px; }
.rd__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.rd__actions .btn { flex: 1 1 200px; }
@media (max-width: 860px) {
  /* На телефоне прокручивается всё окно целиком: фото сверху, описание под ним */
  .dlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; overflow-y: auto; overscroll-behavior: contain; }
  .dlg__close { position: fixed; }
  .rd { display: block; height: auto; max-height: none; }
  .rd__gallery { display: block; }
  .rd__stage { aspect-ratio: 880 / 560; }
  .rd__info { overflow: visible; padding-bottom: 0; }
  .rd__amen { grid-template-columns: 1fr 1fr; }
  /* кнопки брони всегда под рукой */
  .rd__actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0 -24px;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
    background: var(--card);
    box-shadow: 0 -12px 24px -18px rgba(33, 27, 21, 0.45);
  }
  .rd__actions .btn { flex: 1 1 0; min-width: 0; padding: 0 14px; }
}
@media (max-width: 420px) { .rd__amen { grid-template-columns: 1fr; } }

/* ---------- Split sections (кафе, сауна) ---------- */
.split {
  display: grid;
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev .split__media { order: 2; }
}
.split__text { display: grid; gap: 22px; align-content: start; }
.split__media { position: relative; }

.cafe__media { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: end; }
.cafe__media figure { border-radius: var(--radius); overflow: hidden; }
.cafe__media figure:first-child { aspect-ratio: 4 / 5; }
.cafe__media figure:last-child { aspect-ratio: 3 / 4; margin-bottom: 48px; }
.cafe__media img { width: 100%; height: 100%; object-fit: cover; }

.checks { display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.checks .check-ic {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--gold);
}
.section--dark .checks .check-ic { background: var(--ivy-2); color: var(--gold-light); }
.checks .check-ic .i { width: 20px; height: 20px; }
.checks b { display: block; font-weight: 600; font-size: 16px; }
.checks span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.section--dark .checks span { color: var(--on-dark-2); }

.time-card {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  width: fit-content;
}
.time-card b { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1; }
.time-card span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.time-card .i { width: 28px; height: 28px; color: var(--gold); }

/* sauna */
.sauna__media { display: grid; grid-template-columns: 1fr 0.55fr; gap: 14px; }
.sauna__media figure { border-radius: var(--radius); overflow: hidden; }
.sauna__media figure:first-child { aspect-ratio: 4 / 4.6; }
.sauna__media figure:last-child { aspect-ratio: 3 / 5; margin-top: 64px; }
.sauna__media img { width: 100%; height: 100%; object-fit: cover; }
.price-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 24px;
  align-items: center;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--ivy-line);
  background: var(--ivy-2);
}
.price-card__value { font-family: var(--serif); font-size: clamp(44px, 4vw, 58px); line-height: 0.9; color: var(--gold-light); font-weight: 500; }
.price-card__value small { font-family: var(--sans); font-size: 15px; color: var(--on-dark-2); font-weight: 500; margin-right: 6px; }
.price-card__meta { font-size: 14.5px; color: var(--on-dark-2); display: grid; gap: 4px; }
.price-card__meta b { color: var(--on-dark); font-weight: 600; }
@media (max-width: 480px) { .price-card { grid-template-columns: 1fr; } }

/* ---------- Courtyard mosaic ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(80px, 9vw, 120px);
  gap: clamp(10px, 1.2vw, 16px);
}
.mosaic figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.92);
  font-size: 12.5px;
  font-weight: 500;
}
.mosaic .m1 { grid-column: 1 / span 5; grid-row: span 4; border-radius: 999px 999px var(--radius) var(--radius); }
.mosaic .m2 { grid-column: 6 / span 4; grid-row: span 2; }
.mosaic .m3 { grid-column: 10 / span 3; grid-row: span 2; }
.mosaic .m4 { grid-column: 6 / span 3; grid-row: span 2; }
.mosaic .m5 { grid-column: 9 / span 4; grid-row: span 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mosaic .m1 { grid-column: 1 / -1; grid-row: span 3; }
  .mosaic .m2, .mosaic .m3, .mosaic .m4, .mosaic .m5 { grid-column: span 1; grid-row: span 1; }
}
.courtyard__text {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 3vw, 40px);
}
@media (min-width: 900px) {
  .courtyard__text { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  padding: 28px 24px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  align-content: start;
  transition: background-color 0.3s;
  position: relative;
}
.service:hover { background: var(--card); }
.service .i { width: 34px; height: 34px; color: var(--gold); stroke-width: 1.25; }
.service b { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.1; }
.service p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.service a { text-decoration: none; }
.service a::after { content: ""; position: absolute; inset: 0; }
.service .service__more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--gold-ink); }
.service .service__more .i { width: 15px; height: 15px; stroke-width: 1.6; }
@media (max-width: 1080px) { .services { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .services { grid-template-columns: repeat(2, 1fr); } .service { padding: 22px 18px 24px; } .service b { font-size: 22px; } }
@media (max-width: 440px) { .services { grid-template-columns: 1fr; } }

/* ---------- Booking section ---------- */
.booking__card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 36px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(146, 116, 68, 0.16);
}
.booking__widget { min-height: 120px; }
.booking__aside {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 14px;
  color: var(--muted);
}
.booking__aside span { display: inline-flex; gap: 8px; align-items: center; }
.booking__aside .i { width: 17px; height: 17px; color: var(--gold); }

/* ---------- Gallery ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (min-width: 900px) { .section-head .filters { justify-content: flex-end; } }
.filters button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gallery {
  margin-top: 28px;
  columns: 4 260px;
  column-gap: 14px;
}
.gallery__item {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper-3);
  break-inside: avoid;
  position: relative;
}
.gallery__item img { width: 100%; transition: transform 0.8s var(--ease), opacity 0.3s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 10, 7, 0.55));
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
  text-align: left;
}
.gallery__item:hover span { opacity: 1; transform: none; }
.gallery__item[hidden] { display: none; }
.gallery__more { display: none; justify-content: center; margin-top: 10px; }
@media (max-width: 640px) {
  .gallery { columns: 2; column-gap: 10px; margin-top: 22px; }
  .gallery__item { margin-bottom: 10px; border-radius: 10px; }
  .gallery__item span { display: none; }
  .gallery.is-collapsed .gallery__item:nth-child(n+9) { display: none; }
  .gallery.is-collapsed + .gallery__more { display: flex; }
}

/* ---------- Lightbox ---------- */
.lb {
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 9, 6, 0.96);
  color: #fff;
}
.lb::backdrop { background: rgba(12, 9, 6, 0.9); }
.lb[open] { display: grid; grid-template-rows: 1fr auto; animation: fadeIn 0.3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.lb__stage { position: relative; display: grid; place-items: center; padding: 64px 72px 12px; min-height: 0; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px 22px; font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.lb__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}
.lb__btn:hover { background: rgba(255, 255, 255, 0.18); }
.lb__btn .i { width: 22px; height: 22px; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: 14px; }
.lb__next { right: 14px; }
.lb__close { position: absolute; top: 14px; right: 14px; }
@media (max-width: 640px) {
  .lb__stage { padding: 64px 8px 8px; }
  .lb__prev, .lb__next { top: auto; bottom: -62px; transform: none; }
  .lb__prev { left: auto; right: 76px; }
  .lb__bar { padding-right: 150px; min-height: 76px; }
}

/* ---------- Reviews ---------- */
.reviews__grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}
@media (min-width: 1000px) { .reviews__grid { grid-template-columns: 380px 1fr; } }
.score-card {
  background: var(--ivy);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: grid;
  gap: 18px;
  align-content: start;
  position: relative;
  overflow: hidden;
}
.score-card__src { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--on-dark-2); }
.score-card__ya {
  width: 28px; height: 28px; border-radius: 50%;
  background: #fc3f1d; color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; font-family: Arial, sans-serif;
}
.score-card__value { display: flex; align-items: flex-end; gap: 14px; }
.score-card__value b { font-family: var(--serif); font-size: 96px; line-height: 0.8; font-weight: 500; color: var(--gold-light); }
.score-card__value .stars .i { width: 20px; height: 20px; }
.score-card p { color: var(--on-dark-2); font-size: 15px; }
.score-card p b { color: var(--on-dark); }
.score-card .btn { justify-self: start; }
.score-card__links { display: grid; gap: 10px; }

.slider { position: relative; min-width: 0; }
.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 20px) / 3);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
  overscroll-behavior-x: contain;
}
.slider__track::-webkit-scrollbar { display: none; }
@media (max-width: 1280px) { .slider__track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .slider__track { grid-auto-columns: 86%; gap: 14px; } }
.review {
  scroll-snap-align: start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line);
}
.review__mark { font-family: var(--serif); font-size: 72px; line-height: 0.5; color: var(--gold); height: 26px; }
.review p { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; flex: 1; }
.review footer { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.review__ava {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2);
  font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--gold-ink);
  flex: none;
}
.review footer div b { display: block; font-weight: 600; font-size: 14.5px; }
.review footer div span { display: block; font-size: 13px; color: var(--muted); }
.slider__ctrl { display: flex; gap: 10px; margin-top: 22px; }
.slider__btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.slider__btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slider__btn:disabled { opacity: 0.35; pointer-events: none; }
.slider__btn .i { width: 20px; height: 20px; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: clamp(32px, 4vw, 72px); }
@media (min-width: 980px) { .faq__grid { grid-template-columns: 0.8fr 1.2fr; } .faq__aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.faq__aside { display: grid; gap: 20px; }
.faq__help {
  margin-top: 8px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--paper-2);
  display: grid;
  gap: 10px;
}
.faq__help b { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.faq__help a.tel { font-size: 20px; font-weight: 600; text-decoration: none; color: var(--ink); }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(21px, 1.8vw, 25px);
  font-weight: 500;
  line-height: 1.25;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .qa__ic {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease), background-color 0.2s, color 0.2s;
}
.qa summary .qa__ic .i { width: 18px; height: 18px; }
.qa[open] summary .qa__ic { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.qa__body { padding: 0 56px 24px 0; color: var(--ink-2); font-size: 16px; display: grid; gap: 10px; }
.qa__body ul { display: grid; gap: 6px; padding-left: 0; }
.qa__body li { padding-left: 18px; position: relative; }
.qa__body li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@media (max-width: 600px) { .qa__body { padding-right: 0; } }

/* ---------- Contacts ---------- */
.contacts__grid {
  display: grid;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ivy);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 980px) { .contacts__grid { grid-template-columns: 0.9fr 1.1fr; } }
.contacts__info { padding: clamp(28px, 4vw, 56px); display: grid; gap: 28px; align-content: start; }
.contacts__info .eyebrow { color: var(--gold-light); }
.contacts__info .h2 { color: var(--on-dark); }
.clist { display: grid; gap: 20px; }
.clist li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.clist .c-ic { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ivy-line); display: grid; place-items: center; color: var(--gold-light); }
.clist .c-ic .i { width: 20px; height: 20px; }
.clist small { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 3px; }
.clist a, .clist p { color: var(--on-dark); text-decoration: none; font-size: 17px; line-height: 1.45; }
.clist a:hover { color: var(--gold-light); }
.clist .phones { display: grid; gap: 2px; }
.clist .phones a:first-child { font-size: 22px; font-weight: 600; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ivy-line);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--on-dark);
  transition: background-color 0.2s, border-color 0.2s;
}
.socials a:hover { background: var(--ivy-2); border-color: var(--gold-light); }
.socials .i { width: 18px; height: 18px; color: var(--gold-light); }
.contacts__map { position: relative; min-height: 420px; background: var(--ivy-2); }
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center; align-content: center; gap: 14px;
  text-align: center; padding: 24px;
  color: var(--on-dark-2);
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 170, 116, 0.12), transparent 50%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px),
    var(--ivy-2);
}
.map-placeholder .i { width: 40px; height: 40px; color: var(--gold-light); }

.distances {
  margin-top: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.distance {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
}
.distance .i { width: 28px; height: 28px; color: var(--gold); stroke-width: 1.3; }
.distance b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1; }
.distance span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
@media (max-width: 980px) { .distances { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .distances { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  background: #15110d;
  color: rgba(243, 236, 223, 0.7);
  padding: clamp(56px, 7vw, 88px) 0 28px;
  font-size: 14.5px;
}
.footer .logo { color: var(--on-dark); }
.footer .logo__mark { color: var(--gold-light); }
.footer__grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(243, 236, 223, 0.12);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__about p { margin-top: 18px; max-width: 34ch; line-height: 1.6; }
.footer h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px; }
.footer ul { display: grid; gap: 9px; }
.footer a { text-decoration: none; color: rgba(243, 236, 223, 0.82); transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  color: rgba(243, 236, 223, 0.5);
}

/* ---------- Mobile sticky bar ---------- */
.mbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 240, 230, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.mbar.is-visible { transform: none; }
.mbar .btn { flex: 1; min-height: 48px; padding: 0 12px; }
@media (max-width: 760px) {
  .mbar { display: flex; }
  .footer { padding-bottom: 96px; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Inner pages (правила, экскурсии) ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.page-hero .h1 { font-size: clamp(42px, 6vw, 80px); margin-top: 18px; }
.page-hero .lead { margin-top: 18px; }
.crumbs { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.prose { max-width: 78ch; font-size: 16.5px; color: var(--ink-2); }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.6vw, 36px); color: var(--ink); margin: 48px 0 16px; line-height: 1.15; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; display: grid; gap: 8px; }
.prose li { padding-left: 20px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.prose .note { padding: 18px 22px; border-radius: var(--radius-sm); background: var(--paper-2); }
.toc { display: grid; gap: 8px; font-size: 15px; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--gold-ink); }
.page-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .page-grid { grid-template-columns: 260px 1fr; gap: 72px; } .page-grid aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }

/* Header variant for inner pages (always solid) */
.page .header { background: rgba(246, 240, 230, 0.92); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.page .header::before { display: none; }
.page .header__phone .i { color: var(--gold); }
.page .burger, .page .header__phone { border-color: var(--line-strong); }

/* ---------- Additions: tag, compare table, Yandex reviews, footer note ---------- */
.room__tag {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-deep);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}

.compare {
  margin-top: clamp(36px, 4vw, 56px);
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
}
.compare__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 18px;
}
.compare__head p { font-size: 14.5px; max-width: 60ch; }
.compare__scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}
.compare__table th, .compare__table td {
  text-align: left;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.compare__table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0;
}
.compare__table tbody th {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  white-space: nowrap;
}
.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__table td { color: var(--ink-2); }
.compare__table td.num { font-family: var(--serif); font-size: 22px; color: var(--ink); white-space: nowrap; }
.compare__table tbody tr { transition: background-color 0.2s; }
.compare__table tbody tr:hover { background: var(--paper); }
.compare__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-ink);
  cursor: pointer;
  white-space: nowrap;
}
.compare__more .i { width: 15px; height: 15px; transition: transform 0.2s; }
.compare__more:hover .i { transform: translateX(3px); }

/* Телефон: таблица превращается в карточки — всё видно без горизонтальной прокрутки */
@media (max-width: 680px) {
  .compare { padding: 20px 18px; }
  .compare__scroll { overflow: visible; }
  .compare__table, .compare__table tbody { display: block; min-width: 0; }
  .compare__table thead { display: none; }
  .compare__table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .compare__table tbody tr:last-child { border-bottom: 0; padding-bottom: 4px; }
  .compare__table tbody tr:hover { background: none; }
  .compare__table th, .compare__table td { display: block; padding: 0; border: 0; }
  .compare__table tbody th { grid-column: 1 / -1; font-size: 26px; }
  .compare__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .compare__table td[data-label=""]::before { display: none; }
  .compare__table td:nth-child(5), .compare__table td:nth-child(6), .compare__table td:nth-child(7) { grid-column: 1 / -1; }
  .compare__table td.num { font-size: 21px; }
}

.yreviews {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ivy);
}
.yreviews .score-card { position: absolute; inset: 0; border-radius: 0; }
.yreviews .score-card[hidden] { display: none; }
.yreviews iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.yreviews iframe.is-ready { opacity: 1; }
@media (max-width: 999px) { .yreviews { min-height: 520px; } }

.booking__pick {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  font-size: 15px;
  color: var(--ink-2);
}
.booking__pick[hidden] { display: none; }
.booking__pick b { color: var(--ink); }

.map-static { position: absolute; inset: 0; display: block; background: var(--ivy-2); }
.map-static img { width: 100%; height: 100%; object-fit: cover; }
.map-static__fallback { display: none; }
.map-static.is-error img { display: none; }
.map-static.is-error .map-static__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  color: var(--on-dark-2);
  font-size: 15px;
}
.map-static__fallback .i { width: 36px; height: 36px; color: var(--gold-light); }
.map-static__btn { position: absolute; right: 16px; bottom: 16px; z-index: 2; background: rgba(27, 37, 31, 0.86); }
.map-static__btn[hidden] { display: none; }
.contacts__map iframe { z-index: 3; }
.clist .phones__more { font-size: 14.5px; color: var(--on-dark-2); line-height: 1.6; }
.clist .phones__more a { font-size: 14.5px; }

.footer__note {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(243, 236, 223, 0.4);
}

/* ---------- Print ---------- */
@media print {
  .header, .mbar, .bookbar, .hero__scroll, .slider__ctrl { display: none !important; }
  .hero { min-height: auto; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
