/* ============================================================
   Отель «Кочеты» — публичный сайт
   Палитра: #201E1F тёмный · #503822 коричневый · #EDE6D5 фон
            #947D69 нейтральный · #C63126 акцент · #FFFFFF белый
   Шрифты: Prata (заголовки, крупные цифры) + Montserrat (текст)
   ============================================================ */

:root {
  --dark: #201E1F;
  --brown: #503822;
  --cream: #EDE6D5;
  --muted: #947D69;
  --accent: #C63126;
  --white: #FFFFFF;

  --font-display: 'Prata', serif;
  --font-text: 'Montserrat', sans-serif;

  --radius-btn: 10px;
  --radius-photo: 4px;
  --radius-sign: 6px;

  --header-h: 64px;
}

/* ---------- База ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; }

a { color: inherit; }

h1, h2, h3, p, ul { margin: 0; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

/* ---------- Типографика ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.15;
  color: var(--brown);
  margin-bottom: 20px;
}

.section-sub,
.section-text {
  max-width: 560px;
  color: var(--dark);
}

.section-text + .section-text { margin-top: 14px; }
.section-text + .btn { margin-top: 28px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-btn);
  padding: 14px 24px;
  min-height: 48px;
  transition: background-color 0.3s ease, color 0.3s ease,
              border-color 0.3s ease, transform 0.3s ease;
}

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

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover { background: #A82820; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Контурная кнопка на светлом фоне */
.btn-outline {
  background: transparent;
  color: var(--brown);
  border: 1.5px solid rgba(80, 56, 34, 0.5);
}

.btn-outline:hover {
  border-color: var(--brown);
  background: rgba(80, 56, 34, 0.05);
}

.btn-lg { padding: 16px 28px; min-height: 56px; }
.btn-xl { padding: 18px 44px; min-height: 60px; font-size: 16px; }
.btn-header { display: none; }

/* ---------- Секции ---------- */

.section {
  position: relative;
  padding: 60px 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

/* Пунктирная «дорожная» линия между секциями одного фона */
.section-divider {
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  border-top: 1px dashed rgba(148, 125, 105, 0.35);
}

/* Едва заметное зерно на кремовых секциях (CSS, без картинок) */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grain > .container { position: relative; }

/* ---------- Фотографии секций ---------- */

/* Рамка фото в сплит-секциях; запас по высоте у img — под параллакс */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-photo);
  aspect-ratio: 4 / 3;
  background: #D8CFBC;
}

.photo-frame img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}

.logo-name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--white);
  transition: color 0.35s ease;
}

.logo-km {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.35s ease;
}

.nav { display: none; }

.nav-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease;
}

.nav-link:hover { color: var(--white); }

/* Шапка после прокрутки */
.header.is-scrolled {
  background: var(--cream);
  box-shadow: 0 1px 10px rgba(32, 30, 31, 0.12);
}

.header.is-scrolled .logo-name { color: var(--brown); }
.header.is-scrolled .logo-km { color: var(--muted); }
.header.is-scrolled .nav-link { color: var(--brown); }
.header.is-scrolled .nav-link:hover { color: var(--accent); }

/* Бургер */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.35s ease;
}

.header.is-scrolled .burger-line { background: var(--brown); }

body.menu-open .burger-line { background: var(--cream); }
body.menu-open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger-line:nth-child(2) { opacity: 0; }
body.menu-open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Мобильное меню ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 100px 28px 40px;
  background: var(--dark);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--cream);
}

.mobile-menu-link:hover { color: var(--white); }

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-note {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  max-height: 800px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}

/* Фото фасада с медленным приближением (Ken Burns).
   inset: 0 — фото не растягивается сверх экрана: масштаб идёт
   только вверх (1 → 1.06), края не оголяются, картинка резче */
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--dark);
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* Тёмный оверлей: плотнее слева, где текст */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(32, 30, 31, 0.82), rgba(32, 30, 31, 0.45));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 84px;
  padding-bottom: 72px;
}

/* Километровый знак — фирменный мотив */
.km-sign {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 28px;
  background: var(--white);
  border: 1.5px solid var(--brown);
  border-radius: var(--radius-sign);
  box-shadow: 0 2px 0 rgba(32, 30, 31, 0.35);
}

.km-sign-road {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.km-sign-num {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  color: var(--dark);
}

.km-sign-unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 6.5vw, 68px);
  line-height: 1.12;
  max-width: 16ch;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 420px;
  margin-bottom: 26px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.78);
}

.hero-facts span { white-space: nowrap; }

.hero-facts span + span::before {
  content: "•";
  color: var(--accent);
  margin: 0 10px;
}

/* Стрелка «листайте» внизу первого экрана */
.hero-scrollhint {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: opacity 0.4s ease;
}

.hero-scrollhint-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-scrollhint svg {
  animation: hint-bob 1.6s ease-in-out infinite alternate;
}

@keyframes hint-bob {
  from { transform: translateY(0); }
  to   { transform: translateY(6px); }
}

.hero-scrollhint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Пунктирная «разметка» внизу первого экрана */
.hero-roadline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 1;
  border-top: 2px dashed rgba(255, 255, 255, 0.3);
}

/* ---------- Преимущества ---------- */

.features {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
  margin-top: 40px;
}

.feature {
  background: var(--white);
  border-radius: var(--radius-photo);
  padding: 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(80, 56, 34, 0.14);
}

.feature-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
}

.feature-icon svg { width: 100%; height: 100%; }

.feature-title {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 18px;
  color: var(--brown);
  margin-bottom: 8px;
}

.feature-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark);
}

/* ---------- Номера ---------- */

.rooms-head {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 48px;
}

.rooms-head-stat {
  display: none;
  text-align: left;
  flex-shrink: 0;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 110px;
  line-height: 0.9;
  color: var(--cream);
  -webkit-text-stroke: 1.5px var(--muted);
  display: block;
}

.section-white .stat-num { color: var(--white); }

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.rooms {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 20px;
  margin-top: 40px;
}

.room-card {
  background: var(--white);
  border: 1px solid rgba(148, 125, 105, 0.28);
  border-radius: var(--radius-photo);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(80, 56, 34, 0.16);
}

/* Мини-слайдер фотографий в карточке номера */
.room-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #D8CFBC;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Чип-подпись на фото («двуспальная кровать» / «раздельные кровати») */
.slide-chip {
  position: absolute;
  left: 12px;
  bottom: 14px;
  background: rgba(32, 30, 31, 0.72);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 30, 31, 0.45);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

.slider-arrow:hover { background: rgba(32, 30, 31, 0.7); }

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* На устройствах с курсором стрелки появляются при наведении;
   на тач-экранах видны всегда */
@media (hover: hover) and (pointer: fine) {
  .slider-arrow { opacity: 0; }

  [data-slider]:hover .slider-arrow,
  .slider-arrow:focus-visible { opacity: 1; }
}

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.slider-dot.is-active {
  background: var(--white);
  transform: scale(1.2);
}

/* Счётчик кадров «3 / 7» (галерея в окне «Подробнее») */
.slider-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(32, 30, 31, 0.6);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 4px;
}

.room-body { padding: 22px 22px 24px; }

.room-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 25px;
  color: var(--brown);
  margin-bottom: 10px;
}

.room-area {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--muted);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

/* Вместимость номера в карточке: иконка гостя + «2+1» */
.room-capacity {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 12px;
}

.room-text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.link-more {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  transition: color 0.25s ease;
}

.link-more:hover { color: #A82820; }

/* Баннер бронирования — будущее место модуля TravelLine */
.booking-banner {
  margin-top: 40px;
  background: var(--dark);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.booking-banner .btn { width: 100%; }

.booking-banner-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 28px);
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 8px;
}

.booking-banner-sub {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Сплит-секции (столовая / кафе / парковка) ---------- */

.split {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.split-media { position: relative; }

.split-body { max-width: 560px; }

/* Призрачная цифра 24/7 за лобби-кафе */
.section-ghostnum { overflow: hidden; }

.ghost-num {
  position: absolute;
  top: 10px;
  right: -10px;
  font-family: var(--font-display);
  font-size: clamp(110px, 22vw, 260px);
  line-height: 1;
  color: rgba(80, 56, 34, 0.06);
  pointer-events: none;
  user-select: none;
}

.section-ghostnum .container { position: relative; }

/* ---------- Отзывы ---------- */

.reviews {
  position: relative;
  margin-top: 36px;
}

/* Лента: на мобильном свайп по одной карточке,
   на компьютере видно ~2.5 карточки */
.reviews-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.reviews-strip::-webkit-scrollbar { display: none; }

.reviews-strip.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.review-card {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid rgba(148, 125, 105, 0.28);
  border-radius: var(--radius-photo);
  padding: 30px 24px 24px;
  display: flex;
  flex-direction: column;
}

/* Декоративная кавычка в верхнем левом углу */
.review-quote {
  position: absolute;
  top: 4px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 84px;
  line-height: 1;
  color: rgba(148, 125, 105, 0.25);
  pointer-events: none;
  user-select: none;
}

.review-stars {
  position: relative;
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.review-text {
  position: relative;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.review-name {
  font-weight: 600;
  font-size: 15px;
}

.review-context {
  font-size: 13px;
  color: var(--muted);
}

.reviews-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(32, 30, 31, 0.25);
  transition: background-color 0.25s ease;
}

.reviews-arrow:hover { background: var(--brown); }

.reviews-prev { left: -14px; }
.reviews-next { right: -14px; }

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.reviews-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(148, 125, 105, 0.4);
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.reviews-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ---------- Полезно знать ---------- */

.rules-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.rules-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 640px;
}

.rules-item {
  position: relative;
  padding: 16px 0 16px 34px;
  font-size: 15px;
  border-bottom: 1px dashed rgba(148, 125, 105, 0.45);
}

.rules-item:last-child { border-bottom: none; }

/* Ссылка «Все правила проживания» под списком */
.rules-more {
  display: inline-block;
  margin-top: 18px;
}

/* Маркер — штрих дорожной разметки */
.rules-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27px;
  width: 18px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Как добраться ---------- */

/* Главный герой секции — цифра 1308, заголовок скромнее */
#location .section-title {
  font-size: clamp(26px, 3vw, 32px);
  margin-bottom: 12px;
}

.location-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 8px;
}

.location-km {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 18px;
}

.location-km-num {
  font-family: var(--font-display);
  font-size: clamp(72px, 18vw, 130px);
  line-height: 1;
  color: var(--brown);
}

.location-km-unit {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 28px);
  color: var(--muted);
}

.location-map {
  position: relative;
  min-height: 280px;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 125, 105, 0.4);
  box-shadow: 0 10px 30px rgba(80, 56, 34, 0.12);
  /* Тёплый бежевый тон под палитру сайта; дороги и подписи читаемы */
  filter: sepia(0.25) saturate(0.85) hue-rotate(-8deg);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.location-map.is-active iframe {
  pointer-events: auto;
}

.map-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.map-cover-hint {
  background: rgba(255, 253, 248, 0.92);
  color: #503822;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 10px rgba(80, 56, 34, 0.15);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.map-cover:hover .map-cover-hint,
.map-cover:focus-visible .map-cover-hint {
  opacity: 1;
  transform: translateY(0);
}

.location-map.is-active .map-cover {
  display: none;
}

/* ---------- Контакты ---------- */

.contacts {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  border-top: 1px dashed rgba(148, 125, 105, 0.45);
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(148, 125, 105, 0.45);
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  font-family: var(--font-display);
  font-size: 24px;
  text-decoration: none;
  color: var(--brown);
  transition: color 0.25s ease;
}

.contact-value:hover { color: var(--accent); }

/* ---------- Документные страницы (privacy.html и т.п.) ---------- */

.doc-main {
  background: var(--white);
  padding: calc(var(--header-h) + 44px) 0 72px;
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  margin-bottom: 30px;
  transition: color 0.25s ease;
}

.doc-back:hover { color: #A82820; }

.doc h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.2;
  color: var(--brown);
  margin-bottom: 10px;
}

.doc-date {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
}

.doc h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.3;
  color: var(--brown);
  margin: 36px 0 14px;
}

.doc p {
  line-height: 1.7;
  margin-bottom: 14px;
}

.doc ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.doc li {
  position: relative;
  padding: 4px 0 4px 26px;
  line-height: 1.7;
}

/* Маркер — штрих дорожной разметки */
.doc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

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

.doc h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.35;
  color: var(--brown);
  margin: 30px 0 12px;
}

/* Разделитель между слоями документа */
.doc-hr {
  border: 0;
  border-top: 1px dashed rgba(148, 125, 105, 0.35);
  margin: 44px 0 8px;
}

/* Карточки «Коротко о главном» на странице правил */
.rule-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0 8px;
}

.rule-card {
  border: 1px solid rgba(148, 125, 105, 0.35);
  border-radius: 6px;
  padding: 18px 20px;
}

.rule-card h3 {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 16px;
  color: var(--brown);
  margin: 0 0 8px;
}

.rule-card p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

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

/* ---------- Подвал ---------- */

.footer {
  background: var(--dark);
  color: var(--cream);
  /* Нижний отступ — под мобильную панель с кнопками */
  padding: 26px 0 120px;
}

/* Тонкая пунктирная линия-дорога */
.footer-roadline {
  border-top: 2px dashed rgba(237, 230, 213, 0.25);
  margin-bottom: 36px;
  position: relative;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-logo {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 10px;
}

.footer-line {
  font-size: 14px;
  color: rgba(237, 230, 213, 0.8);
  margin-bottom: 4px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-link {
  font-size: 14px;
  color: rgba(237, 230, 213, 0.8);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-link:hover { color: var(--white); }

.footer-legal {
  margin-top: 36px;
  padding-top: 20px;
  /* Пунктирная линия-дорога перед правовым блоком */
  border-top: 1px dashed rgba(237, 230, 213, 0.3);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(237, 230, 213, 0.55);
}

.footer-legal p { margin-bottom: 6px; }

.footer-legal .footer-link {
  font-size: 12px;
  color: rgba(237, 230, 213, 0.55);
  text-decoration: underline;
}

.footer-legal .footer-link:hover { color: var(--cream); }

/* ---------- Окно «Подробнее» о номере ---------- */

body.modal-open { overflow: hidden; }

.room-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
}

.room-modal.is-open { visibility: visible; }

.room-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 30, 31, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.room-modal.is-open .room-modal-backdrop { opacity: 1; }

/* Мобильный вид: шторка снизу на весь экран. Прокручивается
   внутренний слой .room-modal-scroll; крестик и кнопки закреплены
   на самой шторке и не уезжают с контентом */
.room-modal-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: max(16px, env(safe-area-inset-top));
  background: var(--white);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.room-modal.is-open .room-modal-panel { transform: translateY(0); }

.room-modal-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 125, 105, 0.4) transparent;
}

/* Тонкая полоса прокрутки */
.room-modal-scroll::-webkit-scrollbar,
.room-modal-info::-webkit-scrollbar { width: 6px; }

.room-modal-scroll::-webkit-scrollbar-thumb,
.room-modal-info::-webkit-scrollbar-thumb {
  background: rgba(148, 125, 105, 0.4);
  border-radius: 3px;
}

.room-modal-scroll::-webkit-scrollbar-track,
.room-modal-info::-webkit-scrollbar-track { background: transparent; }

.room-modal-grip {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.75);
}

/* Крестик — вне зоны прокрутки, поверх всего */
.room-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--brown);
  box-shadow: 0 2px 10px rgba(32, 30, 31, 0.22);
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.room-modal-close:hover { background: var(--cream); }

/* Отступ снизу — под закреплённые кнопки */
.room-modal-info { padding: 22px 20px 130px; }

/* Название и бейдж площади в одной строке, по базовой линии */
.room-modal-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.room-modal-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  color: var(--brown);
  margin-bottom: 0;
}

.room-modal-area { margin-bottom: 0; }

/* Характеристики: подпись и значение на одной строке,
   тонкие линии-разделители до и после блока */
.room-modal-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
  padding: 14px 0;
  border-top: 1px solid rgba(148, 125, 105, 0.2);
  border-bottom: 1px solid rgba(148, 125, 105, 0.2);
}

.room-modal-specs > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.spec-label {
  flex: 0 0 112px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-value {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.room-modal-text {
  font-size: 15px;
  line-height: 1.65;
  margin: 20px 0 0;
}

/* Подписи групп удобств — единый вид и отступы */
.room-modal-amenities-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 28px 0 12px;
}

/* Удобства — компактные чипы, переносов внутри не бывает */
.room-modal-amenities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-modal-amenities-list li {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(148, 125, 105, 0.45);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brown);
  white-space: nowrap;
}

/* Кнопки закреплены внизу шторки; контент мягко уходит
   под белый градиент */
.room-modal-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 12px;
  padding: 30px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--white) 72%, rgba(255, 255, 255, 0));
}

.room-modal-actions .btn { flex: 1 1 45%; }

/* ---------- Мобильная нижняя панель ---------- */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  gap: 1px;
  background: var(--dark);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.mobile-bar.is-visible { transform: translateY(0); }

.mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-btn);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.mobile-bar-call {
  color: var(--cream);
  border: 1.5px solid rgba(237, 230, 213, 0.4);
  margin-right: 10px;
}

.mobile-bar-book {
  background: var(--accent);
  color: var(--white);
}

/* ============================================================
   Планшет: ≥ 640px
   ============================================================ */

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .review-card { flex-basis: calc(50% - 10px); }
  .hero-actions { flex-direction: row; max-width: none; }
  .hero-actions .btn { flex: 0 1 auto; }
  .contact-row { flex-direction: row; align-items: baseline; gap: 24px; }
  .contact-label { width: 120px; flex-shrink: 0; }
}

/* ============================================================
   Десктоп: ≥ 1024px
   ============================================================ */

@media (min-width: 1024px) {
  body { font-size: 17px; }

  .container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .header-inner { padding: 0 40px; }

  .section { padding: 96px 0; }

  .btn-header { display: inline-flex; padding: 11px 22px; min-height: 42px; }
  .burger { display: none; }
  .mobile-menu { display: none; }
  .mobile-bar { display: none; }

  .nav { display: flex; gap: 28px; }

  .features { grid-template-columns: repeat(3, 1fr); gap: 22px; }

  .rooms { grid-template-columns: repeat(2, 1fr); gap: 26px; }

  .rooms-head-stat { display: block; }

  .booking-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px;
  }

  .booking-banner .btn { width: auto; flex-shrink: 0; }

  /* Сплит-секции: фото с одной стороны, текст с другой */
  .split {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .split-rev { flex-direction: row-reverse; }

  .split-media { flex: 1 1 52%; }
  .split-body { flex: 1 1 48%; min-width: 480px; }

  /* Фото выходит за сетку — наезжает на предыдущую секцию */
  .bleed-up { margin-top: -150px; }

  .rules-grid {
    flex-direction: row;
    gap: 80px;
  }

  .rules-head { flex: 0 0 320px; }
  .rules-body { flex: 1; }

  .location-grid {
    flex-direction: row;
    gap: 64px;
    align-items: stretch;
  }

  .location-info { flex: 0 0 42%; min-width: 480px; }
  .location-map { flex: 1; min-height: 420px; height: 420px; }

  .contacts {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }

  .contacts-head { flex: 0 0 340px; }
  .contacts-list { flex: 1; }
  .contacts-cta { flex-shrink: 0; align-self: center; }

  /* Отзывы: видно ~2.5 карточки, листается стрелками и перетаскиванием */
  .review-card { flex-basis: calc(40% - 12px); }
  .reviews-strip { cursor: grab; }
  .reviews-arrow { display: flex; }
  .reviews-dots { display: none; }

  /* Окно «Подробнее»: по центру, галерея слева, описание справа */
  .room-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
  }

  .room-modal-panel {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    width: min(1000px, 100%);
    max-height: min(660px, 90vh);
    border-radius: 12px;
    overflow: hidden;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .room-modal.is-open .room-modal-panel {
    transform: translateY(0);
    opacity: 1;
  }

  .room-modal-grip { display: none; }

  /* Галерея слева, описание справа; прокручивается только описание */
  .room-modal-scroll {
    display: flex;
    flex-direction: row;
    min-height: 0;
    overflow: hidden;
  }

  .room-modal-gallery { flex: 0 0 55%; }

  .room-modal-gallery .room-photo {
    height: 100%;
    aspect-ratio: auto;
  }

  .room-modal-info {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 125, 105, 0.4) transparent;
    padding: 40px 28px 120px 36px;
  }

  /* Кнопки — закреплены под правой колонкой */
  .room-modal-actions {
    left: 55%;
    padding: 30px 36px 26px;
  }

  .room-modal-actions .btn { flex: 0 1 auto; }

  .footer { padding-bottom: 40px; }

  .footer-main {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-nav {
    flex-direction: column;
    gap: 8px;
    text-align: right;
  }
}

/* ============================================================
   prefers-reduced-motion: отключаем анимации
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
