/* Общие токены; палитра A — Editorial Milk */
:root {
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 5.25rem;
  --space-section: clamp(2.75rem, 5vw, 4.75rem);
  /**
   * Горизонтальные поля: проверено под типичные вьюпорты телефонов
   * (360×800, 390×844, 393×873, 375×812, 412×915, 414×896, 384×832, 430×932, 440×956,
   * 320×568, 360×640, 402×874, 412×892, 428×926, 480×854, 360×780, 390×853 и др.)
   * и десктопы (1280×720, 1366×768, 1536×864, 1440×900, 1920×1080, 2560×1440,
   * 1680×1050, 1600×900, 1280×800, 1920×1200).
   */
  --page-gutter: clamp(0.75rem, 4vw, 1.25rem);
  --bg: #f7f5f2;
  --bg-elevated: #fffcf8;
  --ink: #1a1f1c;
  --ink-muted: #4a524d;
  --line: rgba(26, 31, 28, 0.12);
  --accent: #1e3d36;
  --accent-hover: #2a5248;
  --accent-soft: rgba(30, 61, 54, 0.08);
  --sand: #e8e4dc;
  --shadow: 0 18px 50px rgba(26, 31, 28, 0.08);
  --shadow-sm: 0 8px 24px rgba(26, 31, 28, 0.06);
  --font-display: "Libre Bodoni", Georgia, serif;
  --font-ui: "Public Sans", system-ui, sans-serif;
  --heading-weight: 500;
  --stat-n-weight: 500;
  --hero-overlay: linear-gradient(
    165deg,
    rgba(12, 12, 14, 0.15) 0%,
    rgba(8, 8, 10, 0.45) 42%,
    rgba(4, 4, 6, 0.78) 100%
  );
  --hero-fg: #fffcf8;
  --hero-fg-muted: rgba(255, 252, 248, 0.88);
  --hero-fg-soft: rgba(255, 252, 248, 0.78);
  --hero-fg-softer: rgba(255, 252, 248, 0.65);
  --hero-eyebrow: rgba(220, 218, 214, 0.92);
  --hero-border: rgba(255, 252, 248, 0.2);
  --hero-focus-outline: rgba(255, 252, 248, 0.85);
  --cta-bg: #1e3d36;
  --cta-fg: rgba(255, 255, 255, 0.9);
  --cta-title: #ffffff;
  --cta-lead: rgba(255, 255, 255, 0.85);
  --cta-btn-bg: #ffffff;
  --cta-btn-bg-hover: #f0f4f2;
  --cta-ghost-border: rgba(255, 255, 255, 0.35);
  --cta-ghost-fg: #ffffff;
}

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

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-inline: max(0px, env(safe-area-inset-left, 0px)) max(0px, env(safe-area-inset-right, 0px));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.45rem, 2.2vw, 1.5rem);
  padding-block: clamp(0.6rem, 1.4vw, 1rem);
  padding-inline: 0;
  width: min(var(--max), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
  min-width: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 0.55rem + 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1.8vw, 0.75rem);
  flex-shrink: 1;
  min-width: 0;
  justify-content: flex-end;
}

.tel-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.tel-link__abbr {
  display: none;
}

@media (max-width: 520px) {
  .tel-link__full {
    display: none;
  }

  .tel-link__abbr {
    display: inline;
  }
}

.tel-link:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
  margin-inline: auto;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 var(--page-gutter) 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.nav-mobile__cta--tel {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.nav-mobile__cta--tel:hover {
  color: var(--accent-hover);
}

@media (max-width: 520px) {
  .nav-mobile__cta--tel {
    display: flex;
  }
}

/* Дублирующая кнопка «Забронировать» в шапке: на телефонах уже есть нижняя панель */
@media (max-width: 899.98px) {
  .site-header .header-actions > .btn-primary {
    display: none;
  }
}

@media (min-width: 900px) {
  .site-header .header-actions > .btn-primary {
    display: inline-flex;
  }

  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

@media (min-width: 900px) and (max-width: 1199.98px) {
  .nav-desktop {
    gap: clamp(1rem, 2vw, 2rem);
  }
}

/* Мобильная шапка и нижняя панель — компактнее, больше полезной высоты экрана */
@media (max-width: 899.98px) {
  :root {
    --header-h: 4rem;
    /** Совпадает по высоте с панелью: отступы + кнопки; safe-area — в padding-bottom body */
    --sticky-book-footroom: 2.3rem;
  }

  .site-header {
    min-height: var(--header-h);
  }

  .header-inner {
    padding-block: 0.4rem;
    gap: clamp(0.35rem, 1.5vw, 0.85rem);
  }

  .brand {
    gap: 0;
  }

  .brand-mark {
    font-size: clamp(1rem, 0.55rem + 2vw, 1.28rem);
  }

  .brand-sub {
    font-size: 0.615rem;
    letter-spacing: 0.14em;
  }

  .tel-link {
    font-size: 0.82rem;
  }

  /* Минимально достаточный тач-таргет, короче чем 44px по высоте строки хедера */
  .menu-toggle {
    width: 40px;
    height: 40px;
    gap: 4px;
  }

  .menu-toggle span {
    width: 20px;
  }

  .sticky-book {
    padding: 0.2rem var(--page-gutter) calc(0.2rem + env(safe-area-inset-bottom, 0px));
    gap: 0.35rem;
    box-shadow: 0 -4px 18px rgba(26, 31, 28, 0.05);
  }

  .sticky-book .btn {
    padding-block: 0.36rem;
    padding-inline: 0.55rem;
    font-size: 0.78rem;
    line-height: 1.18;
    min-height: 0;
  }
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: var(--heading-weight, 600);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 3.75rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.15rem;
  max-width: 38ch;
  color: var(--ink-muted);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Hero — полноэкранное фото + оверлей (как в petergof: hero__media / hero__bg) */
.hero {
  position: relative;
  min-height: min(calc(100svh - var(--header-h)), 56rem);
  display: flex;
  flex-direction: column;
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
  overflow: hidden;
  color: var(--hero-fg);
}

.hero,
.hero__media,
.hero__bg,
.hero__overlay,
.hero__grain {
  transform: none;
  will-change: auto;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 42%;
  max-width: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay);
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
  min-height: 0;
}

.hero__intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(0.5rem, 2vh, 1rem) clamp(1.25rem, 5vh, 3rem);
}

.hero__foot {
  flex-shrink: 0;
  padding-top: clamp(1rem, 2.5vh, 1.5rem);
  border-top: 1px solid var(--hero-border);
}

.hero .eyebrow {
  color: var(--hero-eyebrow);
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--hero-fg);
  text-shadow: 0 1px 2rem rgba(0, 0, 0, 0.28);
}

.hero .lead {
  color: var(--hero-fg-muted);
  margin: 0;
  overflow-wrap: break-word;
  line-height: 1.38;
}

/* Одна строка только когда по ширине реально помещается (~планшет landscape и шире) */
@media (min-width: 768px) {
  .hero .lead {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(0.9rem, 2.6vw, 1.15rem);
    line-height: 1.3;
  }
}

@media (max-width: 767.98px) {
  .hero .lead {
    white-space: normal;
    font-size: clamp(0.8rem, 3.15vw + 0.05rem, 1.05rem);
    max-width: 100%;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

@media (min-width: 520px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stat:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 22rem;
    justify-self: center;
  }
}

@media (min-width: 960px) {
  .hero-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .hero-stat:nth-child(5) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
}

.hero-stat {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 252, 248, 0.08);
  border: 1px solid rgba(255, 252, 248, 0.18);
  backdrop-filter: blur(6px);
}

.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 600;
  color: var(--hero-fg);
  line-height: 1.2;
}

.hero-stat--text b {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hero-fg-soft);
}

.hero-stat--text span {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.8125rem;
  font-weight: 400;
  margin-top: 0.4rem;
}

.hero-stat__link {
  color: var(--hero-fg-soft);
  text-decoration: none;
  font-weight: 600;
}

.hero-stat__link:hover {
  color: var(--hero-fg);
  text-decoration: underline;
}

.hero-stat__link:focus-visible {
  outline: 2px solid var(--hero-focus-outline);
  outline-offset: 2px;
  border-radius: 2px;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hero-fg-softer);
}

.hero-scroll:hover {
  color: var(--hero-fg);
}

.hero-scroll:focus-visible {
  outline: 2px solid var(--hero-focus-outline);
  outline-offset: 4px;
  border-radius: 2px;
  color: var(--hero-fg);
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: currentColor;
}

/* Sections: margin с схлопыванием между соседними — один «воздух», а не сумма верх+низ */
.section {
  padding-block: 0;
  margin-block: var(--space-section);
}

/* about.html: блок карты сразу после текста — без лишнего верхнего поля */
#map.section {
  margin-block-start: 0;
}

.section-tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(1.35rem, 2.8vw, 2.15rem);
}

.section-head p {
  margin: 0;
}

.section-head--compact {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.section-about .section-head {
  max-width: 48rem;
}

/* #rooms: заголовок в одну строку на широких экранах */
#rooms .section-head {
  max-width: none;
}

@media (min-width: 720px) {
  #rooms .section-head h2 {
    white-space: nowrap;
  }
}

.section-about.section-about--footer {
  padding-bottom: calc(var(--space-section) + 0.5rem);
}

.section-about.section-about--footer .about-audience {
  margin-bottom: 0;
}

.section-about .about-audience {
  margin-top: 1.25rem;
}

.about-audience {
  margin: 0;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* About split */
.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat {
  padding: 1.25rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
  font-weight: var(--stat-n-weight, 600);
}

.stat span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Benefits — no icon circles */
.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.benefit-list li {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
}

.benefit-list li:first-child {
  border-top: 1px solid var(--line);
}

.benefit-title {
  font-weight: 600;
  color: var(--ink);
}

/* Room cards */
.room-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .room-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .room-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Главная (#rooms): в ряду видно 3 карточки, остальные — горизонтальная прокрутка */
.room-grid.room-grid--scroll-3 {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  grid-template-columns: unset;
  overflow-x: auto;
  overflow-y: hidden;
  /* y: auto — вертикальное колесо уходит на страницу; x: contain — горизонталь не «цепляет» родителя */
  overscroll-behavior: contain auto;
  scroll-snap-type: x mandatory;
  padding: 6px 0 10px;
  margin-inline: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 35%, transparent) transparent;
  align-items: stretch;
}

.room-grid.room-grid--scroll-3::-webkit-scrollbar {
  height: 6px;
}

.room-grid.room-grid--scroll-3::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 99px;
}

.room-grid.room-grid--scroll-3 .room-card {
  scroll-snap-align: start;
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .room-grid.room-grid--scroll-3 .room-card {
    flex: 0 0 min(20rem, calc(100% - 2.75rem));
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .room-grid.room-grid--scroll-3 .room-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (min-width: 1024px) {
  .room-grid.room-grid--scroll-3 .room-card {
    flex: 0 0 calc((100% - 3rem) / 3);
  }
}

.room-grid.room-grid--scroll-3 .room-card:hover {
  transform: none;
}

/* Каталог номеров: стрелки горизонтальной прокрутки */
.room-scroller {
  position: relative;
  width: 100%;
}

.room-scroller__shell {
  position: relative;
  width: 100%;
}

.room-scroller__btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(42, 40, 36, 0.12);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    opacity 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.room-scroller__btn--prev {
  left: 0.35rem;
}

.room-scroller__btn--next {
  right: 0.35rem;
}

.room-scroller__btn .material-symbols-outlined {
  font-size: 1.75rem;
}

.room-scroller__btn:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 6px 22px rgba(42, 40, 36, 0.14);
}

.room-scroller__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.room-scroller [data-scroll-viewport]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-soft), 0 0 0 4px var(--accent);
  border-radius: var(--radius-lg);
}

@media (max-width: 520px) {
  .room-scroller__btn {
    width: 2.35rem;
    height: 2.35rem;
  }

  .room-scroller__btn--prev {
    left: 0.15rem;
  }

  .room-scroller__btn--next {
    right: 0.15rem;
  }
}

/* room.html: «Другие категории» — та же горизонтальная лента карточек, что на главной */
#room-other-section .room-other-grid {
  margin-top: 1rem;
}

.room-catalog-cta {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-start;
}

.room-catalog-cta__btn {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.85rem 1.4rem;
  max-width: min(100%, 22rem);
  text-align: left;
  line-height: 1.25;
  box-shadow: 0 6px 22px color-mix(in srgb, var(--accent) 32%, transparent);
}

.room-catalog-cta__btn:hover {
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 38%, transparent);
}

.room-catalog-cta__label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.room-catalog-cta__hint {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0.92;
}

[data-drag-scroll] {
  cursor: grab;
}

[data-drag-scroll].is-drag-scrolling {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
}

[data-drag-scroll] img {
  -webkit-user-drag: none;
  user-drag: none;
}

.room-card-media img {
  -webkit-user-drag: none;
  user-drag: none;
}

.reviews-scroller__viewport[data-drag-scroll] {
  cursor: grab;
}

.reviews-scroller__viewport[data-drag-scroll].is-drag-scrolling {
  cursor: grabbing;
}

.room-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.room-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.room-card-media {
  position: relative;
  /* Выше, чем 4/3 — больше площади под фото (теги уехали в оверлей на снимок) */
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.room-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.room-card:hover .room-card-media img {
  transform: scale(1.04);
}

.room-card-body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.room-card-body h3 {
  font-size: 1.2rem;
}

.room-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: var(--sand);
  color: var(--ink-muted);
}

.room-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.room-card-amenities + .room-card-footer {
  margin-top: 0;
  padding-top: 0.75rem;
}

.room-card-footer .btn {
  width: 100%;
}

.room-card-amenities {
  list-style: none;
  margin: 0;
  margin-top: auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  min-height: 2.5rem;
}

.room-card-amenities__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.room-card-amenities__sym {
  font-family: "Material Symbols Outlined", system-ui, sans-serif;
  font-size: 1.2rem;
  line-height: 1;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  font-style: normal;
  font-weight: normal;
  display: block;
  -webkit-font-smoothing: antialiased;
}

.link-arrow {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* Compare table */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.9rem;
}

.compare th,
.compare td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare th {
  font-weight: 600;
  color: var(--ink);
  background: var(--sand);
}

.compare td:first-child {
  font-weight: 500;
  color: var(--ink);
}

.compare tr:last-child td {
  border-bottom: none;
}

/* Location */
/* Главная #location: лид + карта в карточке + 4 преимущества (структура как в petergof #lifestyle) */
.location-map-card {
  margin-top: clamp(1rem, 3vw, 1.75rem);
  padding: 1.05rem 1.15rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.location-map-top {
  margin-bottom: 0.9rem;
}

.location-map-kicker {
  margin-bottom: 0.35rem;
}

.location-map-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: var(--heading-weight);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.location-map-note {
  margin: 0.85rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.location-map-note a {
  font-weight: 600;
}

#location .section-head,
#gallery .section-head,
#reviews .section-head {
  max-width: none;
  width: 100%;
}

#location .section-head .lead {
  max-width: none;
}

.location-rail {
  display: grid;
  gap: 0;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.location-rail__divider {
  display: none;
}

@media (max-width: 899px) {
  .location-rail {
    grid-template-columns: 1fr;
  }

  .location-rail__item {
    padding: 1.35rem 0;
    border-top: 1px solid var(--line);
  }

  .location-rail__item:first-child {
    border-top: 0;
    padding-top: 0.15rem;
  }
}

@media (min-width: 900px) {
  .location-rail {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: stretch;
  }

  .location-rail__divider {
    display: block;
    width: 1px;
    min-height: 100%;
    background: var(--line);
  }

  .location-rail__item {
    padding: 0 clamp(1rem, 2vw, 1.85rem);
  }

  .location-rail__item:first-child {
    padding-left: 0;
  }

  .location-rail__item:last-child {
    padding-right: 0;
  }
}

.location-rail__num {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  font-weight: var(--heading-weight);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.88;
}

.location-rail__item h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: var(--heading-weight);
  line-height: 1.28;
  color: var(--ink);
}

.location-rail__item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.location-card {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .location-card:has(> :nth-child(2)) {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: clamp(360px, 35vw, 540px);
  background: var(--sand);
}

.map-embed iframe {
  width: 100%;
  height: clamp(360px, 35vw, 540px);
  min-height: 360px;
  border: 0;
  display: block;
}

.nearby-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
}

.nearby-list li {
  margin-bottom: 0.5rem;
}

@media (min-width: 720px) {
  .nearby-list--columns {
    columns: 2;
    column-gap: 2.5rem;
    padding-left: 1.1rem;
  }

  .nearby-list--columns li {
    break-inside: avoid;
  }
}

/* Gallery */
.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 180px);
    gap: 0.85rem;
  }
  .gallery figure:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery.gallery--three {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: minmax(200px, 22vw);
  }

  .gallery.gallery--three figure:first-child {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

  .gallery.gallery--three figure {
    aspect-ratio: 4/3;
  }
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .gallery figure:first-child {
    aspect-ratio: auto;
  }

  .gallery.gallery--three figure:first-child {
    aspect-ratio: 4/3;
  }
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Страница номера: «Все фото» — горизонтальная лента (не общая сетка .gallery) */
.room-gallery {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.room-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-elevated) 78%, transparent);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(42, 40, 36, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}

.room-gallery__nav--prev {
  left: 0.35rem;
}

.room-gallery__nav--next {
  right: 0.35rem;
}

.room-gallery__nav:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent-soft) 92%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}

.room-gallery__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.room-gallery__nav .material-symbols-outlined {
  font-size: 1.75rem;
}

.room-gallery__viewport {
  width: 100%;
  min-width: 0;
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding: 0.2rem 0 0.65rem;
  scroll-padding-inline: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 35%, transparent) transparent;
  cursor: grab;
}

.room-gallery__viewport:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.room-gallery__viewport.is-drag-scrolling {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
}

.room-gallery__slide {
  flex: 0 0 calc((100% - 1.95rem) / 4);
  scroll-snap-align: start;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  background: var(--line);
  aspect-ratio: 4 / 3;
  position: relative;
}

@media (max-width: 640px) {
  .room-gallery__slide {
    flex: 0 0 calc((100% - 0.65rem) / 2);
  }
}

.room-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.room-gallery__slide:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Закрытый <dialog> не должен участвовать в вёрстке: общие правила display/size
   иначе перебивают UA `dialog:not([open]){display:none}` и дают «пустоту» на высоту экрана. */
.room-lightbox:not([open]) {
  display: none;
}

.room-lightbox[open] {
  padding: 0;
  border: none;
  margin: 0;
  box-sizing: border-box;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.room-lightbox::backdrop {
  background: color-mix(in srgb, var(--ink) 72%, transparent);
}

.room-lightbox__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(88vh, 800px);
  padding: 2.75rem 0.5rem 1rem;
  pointer-events: none;
}

.room-lightbox__img,
.room-lightbox__close,
.room-lightbox__nav {
  pointer-events: auto;
}

.room-lightbox__img {
  max-width: 100%;
  max-height: min(82vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.room-lightbox__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  color: var(--ink);
  cursor: pointer;
}

.room-lightbox__close .material-symbols-outlined {
  font-size: 1.5rem;
}

.room-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.room-lightbox__nav--prev {
  left: 0.25rem;
}

.room-lightbox__nav--next {
  right: 0.25rem;
}

.room-lightbox__nav .material-symbols-outlined {
  font-size: 2rem;
}

@media (max-width: 520px) {
  .room-gallery__nav {
    width: 2.1rem;
    height: 2.1rem;
  }

  .room-lightbox__nav {
    width: 2.35rem;
    height: 2.35rem;
  }
}

/* Reviews: карусель карточек (тексты — js/reviews-carousel.js) */
.reviews-scroller {
  position: relative;
  width: 100%;
  margin-top: 0.5rem;
}

.reviews-scroller__shell {
  position: relative;
  width: 100%;
}

.reviews-scroller__viewport {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  container-type: inline-size;
  container-name: reviews-viewport;
  /* y: auto — вертикальное колесо уходит на страницу; x: contain — горизонталь не «цепляет» родителя */
  overscroll-behavior: contain auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 35%, transparent) transparent;
  padding: 0.35rem 0 0.85rem;
  border-radius: var(--radius-lg);
  outline: none;
}

.reviews-scroller__viewport:focus-visible {
  box-shadow: 0 0 0 2px var(--accent-soft), 0 0 0 4px var(--accent);
}

.reviews-scroller__viewport::-webkit-scrollbar {
  height: 6px;
}

.reviews-scroller__viewport::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 99px;
}

.reviews-scroller__track {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 100%;
}

/* Ширина карточки = доля видимой области вьюпорта (на всю сетку .wrap) */
.review-tile {
  position: relative;
  flex: 0 0 min(22rem, calc(100cqi - 1.25rem));
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.35rem 2.15rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

@container reviews-viewport (min-width: 34rem) {
  .review-tile {
    flex: 0 0 calc((100cqi - 1.1rem) / 2);
  }
}

@container reviews-viewport (min-width: 56rem) {
  .review-tile {
    flex: 0 0 calc((100cqi - 2 * 1.1rem) / 3);
  }
}

.review-tile__stars {
  display: flex;
  gap: 0.12em;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1;
}

.review-tile__star {
  color: var(--accent);
}

.review-tile__quote {
  margin: 0;
  flex: 1 1 auto;
}

.review-tile__quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--heading-weight);
  line-height: 1.45;
  color: var(--ink);
}

.review-tile__src {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
}

.review-tile__src:hover {
  color: var(--accent);
  text-decoration: underline;
}

.reviews-scroller__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.65rem;
  height: 2.65rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(42, 40, 36, 0.12);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    opacity 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.reviews-scroller__btn--prev {
  left: 0.35rem;
}

.reviews-scroller__btn--next {
  right: 0.35rem;
}

.reviews-scroller__btn span {
  display: block;
  transform: translateY(-1px);
}

.reviews-scroller__btn:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 6px 22px rgba(42, 40, 36, 0.14);
}

.reviews-scroller__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 520px) {
  .reviews-scroller__btn {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.2rem;
  }

  .reviews-scroller__btn--prev {
    left: 0.2rem;
  }

  .reviews-scroller__btn--next {
    right: 0.2rem;
  }
}

.reviews-scroller__footer {
  margin: 1.25rem 0 0;
  text-align: center;
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--sand);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--ink-muted);
  max-width: 70ch;
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* CTA band */
.cta-band {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--cta-bg);
  color: var(--cta-fg);
}

.cta-band h2 {
  color: var(--cta-title);
}

.cta-band .lead {
  color: var(--cta-lead);
}

.cta-band .btn-primary {
  background: var(--cta-btn-bg);
  color: var(--accent);
}

.cta-band .btn-primary:hover {
  background: var(--cta-btn-bg-hover);
  color: var(--accent-hover);
}

.cta-band .btn-ghost {
  border-color: var(--cta-ghost-border);
  color: var(--cta-ghost-fg);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cta-ghost-fg);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 720px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

/* Footer */
.site-footer {
  padding: 3rem 0 5.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.site-footer h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

/* Реквизиты и офисные контакты — внутри светлого подвала */
.footer-extras {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.site-footer .footer-top-links + .footer-extras {
  margin-top: 0;
  padding-top: 1.5rem;
}

/* Главная: только реквизиты — без верхней полосы-разделителя у первого блока */
.site-footer > .footer-extras:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.footer-extras__grid {
  display: grid;
  gap: 1.75rem 2.5rem;
}

@media (min-width: 720px) {
  .footer-extras__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.footer-extras__brand {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-extras__brand span {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.footer-extras__reg {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.footer-extras__row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  color: var(--ink-muted);
}

.footer-extras__row:last-child {
  margin-bottom: 0;
}

.footer-extras__ico {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  color: var(--accent);
}

.site-footer .footer-extras__group-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* Sticky mobile booking */
.sticky-book {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.75rem var(--page-gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  box-shadow: 0 -12px 40px rgba(26, 31, 28, 0.08);
}

.sticky-book .btn {
  flex: 1;
  max-width: 200px;
  padding-block: 0.95rem;
}

.sticky-book .btn-ghost {
  background: #fff;
}

@media (min-width: 900px) {
  .sticky-book {
    display: none;
  }
}

body.has-sticky {
  padding-bottom: 5.5rem;
}

@media (max-width: 899.98px) {
  body.has-sticky {
    padding-bottom: calc(var(--sticky-book-footroom) + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 900px) {
  body.has-sticky {
    padding-bottom: 0;
  }
}

/* Room detail page */
.room-hero {
  padding: clamp(2rem, 5vw, 3rem) 0 2rem;
}

/* На странице категории блоки «О номере», «Ещё фото» и т.д. — компактнее, чем общий .section-tight */
#room-root .section-tight {
  padding-block: clamp(1rem, 2.5vw, 1.75rem);
}

#room-root .room-hero {
  padding-bottom: clamp(0.85rem, 2vw, 1.25rem);
}

.room-hero-grid {
  display: grid;
  gap: 2rem;
}

/* Текстовая колонка героя номера */
.room-hero-copy {
  max-width: 44ch;
}

.room-hero-amenities-label {
  margin-top: 1rem;
  margin-bottom: 1.1rem;
}

.room-hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}

/* Оверлей тегов на фото: страница номера и карточки каталога */
.room-hero-media__meta,
.room-card-media .room-tags {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 1.35rem 0.75rem 0.75rem;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--ink) 82%, transparent) 0%,
    color-mix(in srgb, var(--ink) 38%, transparent) 52%,
    transparent 100%
  );
}

.room-hero-media__meta .tag,
.room-card-media .room-tags .tag {
  box-shadow: 0 1px 3px rgba(42, 40, 36, 0.12);
}

.room-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .room-hero-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
  }

  /* Фото на всю высоту колонки с текстом — верх с «Категория», без прижатия к низу */
  .room-hero-media {
    aspect-ratio: unset;
    min-height: 0;
    height: 100%;
  }

  .room-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 17rem;
    object-fit: cover;
    object-position: center;
  }
}

.room-about-section h2 {
  margin-bottom: 0;
}

.room-about {
  margin-top: 1rem;
  max-width: none;
  width: 100%;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.58;
}

#room-root .room-about {
  margin-top: 0.65rem;
}

#room-root .section-tight > h2 {
  margin-bottom: 0.75rem;
}

.room-about p {
  margin: 0 0 1rem;
}

.room-about p:last-child {
  margin-bottom: 0;
}

.spec-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.spec-list li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--ink-muted);
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* Удобства в герое: Material Symbols + подпись всегда (лучше для понятности и доступности) */
.room-hero-amenities {
  list-style: none;
  margin: 0;
  padding: 0;
  /* Сетка с равными колонками: иконки на одной линии с одинаковым шагом (flex+разная ширина подписей даёт «разброс») */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: 1rem 0.75rem;
  align-items: start;
}

@media (max-width: 480px) {
  .room-hero-amenities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.room-hero-amenities__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  width: 100%;
}

.room-hero-amenities__tile {
  background: var(--accent-soft);
  color: var(--accent);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.room-hero-amenities--material .room-hero-amenities__sym {
  font-family: "Material Symbols Outlined", system-ui, sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  font-style: normal;
  font-weight: normal;
  letter-spacing: normal;
  text-transform: none;
  display: block;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

.room-hero-amenities__caption {
  font-size: 0.82rem;
  line-height: 1.32;
  color: color-mix(in srgb, var(--ink) 28%, var(--ink-muted));
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Страница «Об отеле» (about.html): один блок, плотные отступы, подписи не как глобальные h2 */
.about-page .page-about-main {
  padding-top: 0.75rem;
  padding-bottom: 1.25rem;
}

.about-page .page-about-breadcrumb {
  margin-bottom: 0.35rem;
}

.about-page .page-about-intro {
  margin-bottom: 0.5rem;
  max-width: none;
}

.about-page .page-about-intro h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.42rem, 3.1vw, 2rem);
  line-height: 1.22;
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.about-page .page-about-intro .eyebrow {
  margin-bottom: 0.3rem;
}

.about-page .page-about-intro .lead {
  max-width: none;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* Без «рамки»: контент на фоне страницы, в одну колонку с шапкой (.wrap) */
.about-page .page-about-sheet {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.about-page .page-about-sheet > .page-about-block:first-child {
  padding-top: 0.6rem;
}

.about-page .page-about-block {
  margin: 0;
  padding: 0.3rem 0 0;
}

.about-page .page-about-block + .page-about-block {
  border-top: none;
  padding-top: 1.35rem;
  margin-top: 0;
}

.about-page .page-about-block--map .page-about-map__embed {
  margin-top: 0.35rem;
}

/* Заголовки секций — тот же шрифт и стиль, что у главного h1, ступень ниже по кеглю */
.about-page h2.page-about-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.55vw, 1.62rem);
  font-weight: var(--heading-weight);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
}

.about-page .page-about-prose p {
  margin: 0 0 0.65rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.about-page .page-about-prose p:last-child {
  margin-bottom: 0;
}

.about-page .page-about-prose__note {
  margin-top: 0.45rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
  padding-left: 0;
  border-left: none;
}

.about-page .page-about-walk-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem 1.35rem;
  grid-template-columns: 1fr;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

@media (min-width: 560px) {
  .about-page .page-about-walk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.about-page .page-about-walk-grid li {
  position: relative;
  padding-left: 0.8rem;
}

.about-page .page-about-walk-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 55%, var(--sand));
}

.about-page .page-about-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-page .page-about-list li {
  position: relative;
  padding-left: 0.95rem;
  margin: 0 0 0.52rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.about-page .page-about-list li:last-child {
  margin-bottom: 0;
}

.about-page .page-about-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.65;
}

.about-page .page-about-map__embed {
  margin: 0;
}

.about-page .page-about-map__embed .map-embed {
  min-height: clamp(260px, 38vw, 420px);
  border-radius: var(--radius);
}

.about-page .page-about-map__embed .map-embed iframe {
  height: clamp(260px, 38vw, 420px);
  min-height: 260px;
}

.about-page .page-about-map-note {
  margin: 1rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.faq-page #faq .section-head {
  max-width: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.1rem;
}

.faq-page #faq .section-head h1 {
  white-space: nowrap;
  font-size: clamp(1.2rem, 4.6vw, 2.55rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Rooms listing page */
.room-list-page .room-grid {
  margin-top: 2rem;
}
