/* ============================================================
   Тема «atelier» — светлый lookbook бутик-ателье
   ============================================================ */

:root {
  /* Палитра */
  --paper: #faf6f0;          /* основной фон — тёплая бумага */
  --paper-alt: #f2ece2;      /* тонированная секция */
  --card: #fffdf9;           /* бумажные карточки */
  --ink: #2b2118;            /* почти чёрный тёплый текст */
  --muted: #7a6f61;          /* вторичный текст */
  --line: #e3d9c9;           /* тонкие рамки 1px */
  --accent: #b3653f;         /* пыльная терракота */
  --accent-deep: #96492a;    /* затемнённый акцент */
  --cta-text: #fff8f2;       /* текст на акценте (4.5:1+) */
  --ok: #4d7a4f;

  /* Типографика */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Georgia, serif;
  --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --fs-base: clamp(16px, 0.6vw + 14.6px, 18px);
  --fs-h1: clamp(2.1rem, 5vw, 4rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: clamp(1.15rem, 1.6vw, 1.45rem);
  --fs-small: 0.82rem;
  --track-wide: 0.16em;

  /* Геометрия */
  --header-h: 76px;
  --radius: 3px;
  --radius-card: 6px;
  --shadow-soft: 0 1px 3px rgba(43, 33, 24, 0.06);
  --shadow-lift: 0 14px 34px rgba(43, 33, 24, 0.14);
  --wrap: 1440px;
  --narrow: 560px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.18; margin: 0 0 0.5em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
ul { padding-left: 1.1em; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
}
.container--narrow { max-width: 860px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--paper-alt); }
.section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.kicker {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--muted);
  margin: 0 0 12px;
}
.section__title { margin: 0; }
.lead { color: var(--muted); max-width: 640px; }
.word-break { word-break: break-word; overflow-wrap: anywhere; }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.btn-book {
  background-color: var(--accent);
  color: var(--cta-text);
}
.btn-book:hover { filter: brightness(0.85); color: var(--cta-text); }
.btn--dark {
  background: var(--ink);
  color: #f7f2ea;
}
.btn--dark:hover { filter: brightness(0.85); color: #f7f2ea; }
.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--ink); color: #f7f2ea; }
.btn--sm { padding: 9px 18px; min-height: 40px; }

/* ---------- Шапка ---------- */
.topline {
  background: var(--ink);
  color: #cfc4b3;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.topline .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 7px;
  padding-bottom: 7px;
  min-height: 32px;
}
.topline a { color: #e9e0d2; }
.topline__item { display: inline-flex; align-items: center; gap: 6px; }
.topline__item svg { flex: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 246, 240, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(250, 246, 240, 0.97);
  box-shadow: 0 2px 14px rgba(43, 33, 24, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}
.logo {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.2;
  max-width: 42vw;
}
.logo:hover { color: var(--ink); }
.logo__sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--muted);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(16px, 2.2vw, 34px);
}
.main-nav a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  display: inline-block;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--accent-deep); }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone {
  font-size: 0.85rem;
  color: var(--ink);
  white-space: nowrap;
}
.header__phone:hover { color: var(--accent-deep); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.burger span { top: 21px; }
.burger span::before, .burger span::after { content: ""; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(360px, 58vh, 620px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f4ead9 0%, #ecdcc4 55%, #e2c9a8 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0 7px, rgba(43, 33, 24, 0.02) 7px 8px);
  pointer-events: none;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero__bg.is-loaded { opacity: 1; }
.hero.has-photo .hero__bg + .hero__overlay,
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250, 246, 240, 0.92) 0%, rgba(250, 246, 240, 0.55) 55%, rgba(43, 33, 24, 0.18) 100%);
}
.hero.has-photo .hero__overlay { opacity: 1; }
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0;
}
.hero__text { max-width: 560px; }
.hero__title { margin-bottom: 14px; }
.hero__sub {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--muted);
  margin-bottom: 28px;
}
.hero__photo {
  aspect-ratio: 4/5;
  max-height: 520px;
  width: 100%;
  border-radius: var(--radius-card);
  border: 8px solid var(--card);
  box-shadow: var(--shadow-lift);
  object-fit: cover;
  transform: rotate(1.2deg);
  transition: transform 0.45s ease;
}
.hero__photo:hover { transform: rotate(0deg) translateY(-4px); }

.hero--compact {
  min-height: 0;
  padding: clamp(56px, 8vw, 110px) 0;
}
.hero--compact .hero__photo { display: none; }
.hero--compact .hero__inner { grid-template-columns: 1fr; padding: 0; }

/* ---------- Hero внутренних страниц ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(120deg, #f2e7d3, #e7d3b8);
  padding: clamp(56px, 8vw, 110px) 0;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.page-hero__bg.is-loaded { opacity: 1; }
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 246, 240, 0.88), rgba(250, 246, 240, 0.78));
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { margin: 0; }
.hero-cta-bar { margin-top: 22px; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs ol {
  list-style: none;
  padding-left: 0;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}
.breadcrumbs li + li::before { content: "—"; margin-right: 8px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-deep); }

/* ---------- Скелетоны ---------- */
.skel {
  position: relative;
  overflow: hidden;
  background: #ece4d6;
  border-radius: var(--radius);
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: translateX(-100%);
  animation: skel-pulse 1.4s infinite;
}
@keyframes skel-pulse { to { transform: translateX(100%); } }
.skel--text { height: 14px; margin-bottom: 10px; }
.skel--title { height: 34px; width: 60%; margin-bottom: 16px; }
.skel--card { height: 320px; }
.skel--photo { aspect-ratio: 4/3; }
.skel--line { height: 12px; margin-bottom: 14px; }

/* ---------- Появление при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .skel::after { animation: none; }
}

/* ---------- О отеле ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about__photos img {
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  width: 100%;
}
.about__photos img:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16/9; }
.about__text p { max-width: 620px; }

/* Удобства (amenities) */
.amenities {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px 20px;
}
.amenities li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
}
.amenities li img { width: 22px; height: 22px; object-fit: contain; flex: none; }

/* ---------- Номера: полароидные карточки ---------- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(24px, 3.5vw, 44px);
}
.polaroid {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 12px 12px 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.polaroid:hover {
  transform: translateY(-6px) rotate(-0.8deg);
  box-shadow: var(--shadow-lift);
}
.polaroid__photo-wrap {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
}
.polaroid__photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.polaroid:hover .polaroid__photo-wrap img { transform: scale(1.05); }
.room-plaque {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: var(--accent-deep);
  background: linear-gradient(140deg, #f3e9d8, #e5d2b5);
}
.polaroid__body { padding: 16px 8px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.polaroid__title { margin: 0; font-size: var(--fs-h3); }
.polaroid__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.82rem;
  color: var(--muted);
}
.polaroid__desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.polaroid__footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.room-price { font-family: var(--font-serif); font-size: 1.15rem; color: var(--accent-deep); }
.room-price .room-price__from {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--muted);
  display: block;
}
.link-more {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.link-more:hover { color: var(--accent-deep); }

/* ---------- Услуги: dot-leaders ---------- */
.services-narrow { max-width: 760px; margin: 0 auto; }
.service-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px dotted var(--line);
}
.service-row__name { font-family: var(--font-serif); font-size: 1.06rem; flex: none; }
.service-row__dots {
  flex: 1;
  border-bottom: 1px dotted #cbbda6;
  transform: translateY(-4px);
  min-width: 24px;
}
.service-row__price { color: var(--accent-deep); font-family: var(--font-serif); flex: none; }
.service-row__desc {
  flex-basis: 100%;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}
.service-row { flex-wrap: wrap; }

/* Карточки-превью услуг (bento-стиль, главная) */
.services-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.service-card__group {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--muted);
  margin-bottom: 8px;
}
.service-card__name { margin: 0 0 6px; font-size: 1.05rem; }
.service-card__price { color: var(--accent-deep); font-family: var(--font-serif); margin-bottom: 6px; }
.service-card__desc { font-size: 0.86rem; color: var(--muted); margin: 0; }

/* Якорное оглавление (services.html) */
.toc {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(32px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.toc a {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--card);
}
.toc a:hover { border-color: var(--accent); color: var(--accent-deep); }
.service-group { scroll-margin-top: calc(var(--header-h) + 16px); margin-bottom: clamp(40px, 6vw, 64px); }
.service-group:last-child { margin-bottom: 0; }

/* ---------- Галерея ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
}
.gallery-item {
  border: none;
  padding: 0;
  background: var(--card);
  cursor: pointer;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item--feature { grid-column: span 2; grid-row: span 2; }
.gallery-item--feature img { aspect-ratio: auto; height: 100%; }

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(30, 24, 17, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 48px);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 248, 242, 0.4);
  border-radius: 50%;
  background: rgba(43, 33, 24, 0.5);
  color: #fff8f2;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.lightbox__btn:hover { background: var(--accent); transform: scale(1.06); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__prev { left: clamp(8px, 2vw, 28px); }
.lightbox__next { right: clamp(8px, 2vw, 28px); }
.lightbox__close { top: clamp(8px, 2vw, 24px); right: clamp(8px, 2vw, 24px); }
.lightbox__counter {
  position: absolute;
  bottom: clamp(10px, 2.5vw, 26px);
  left: 50%;
  transform: translateX(-50%);
  color: #e9e0d2;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

/* ---------- Модальное окно номера ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 3vw, 40px);
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 24, 17, 0.6);
}
.modal__panel {
  position: relative;
  z-index: 2;
  background: var(--card);
  border-radius: var(--radius-card);
  width: min(880px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  box-shadow: var(--shadow-lift);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}
.modal__close:hover { background: var(--ink); color: #f7f2ea; }
.modal__gallery {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--paper-alt);
  overflow: hidden;
}
.modal__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.modal__gallery img.is-active { opacity: 1; }
.modal__gallery .lightbox__btn {
  width: 42px; height: 42px;
  border: none;
}
.modal__body { padding: clamp(22px, 4vw, 40px); }
.modal__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.modal__amenities {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px 16px;
  font-size: 0.88rem;
}
.modal__amenities li { display: flex; gap: 8px; align-items: baseline; }
.modal__amenities li::before { content: "·"; color: var(--accent); font-weight: 700; }
.modal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dotted var(--line);
}

/* ---------- Что рядом ---------- */
.nearby-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0;
}
.nearby-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px dotted var(--line);
  font-size: 0.92rem;
}
.nearby-list .nearby__type { color: var(--muted); font-size: 0.78rem; }
.nearby-list .nearby__dist { color: var(--accent-deep); white-space: nowrap; }

/* ---------- Контакты ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  padding: 14px 0;
  border-bottom: 1px dotted var(--line);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: baseline;
}
.contact-list .contact-list__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--muted);
}
.contact-list a { word-break: break-word; }

.messengers { display: flex; gap: 12px; margin-top: 20px; }
.messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--card);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.messenger-link:hover { border-color: var(--accent); color: var(--accent-deep); }
.messenger-link svg { width: 18px; height: 18px; }

#map { border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
#map iframe { width: 100%; height: clamp(300px, 45vw, 460px); border: 0; display: block; }

/* Форма обратной связи */
.form { max-width: 560px; }
.form__row { margin-bottom: 18px; }
.form label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--muted);
  margin-bottom: 7px;
}
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s ease;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }

/* ---------- Виджеты бронирования ---------- */
.widget-block { padding: clamp(40px, 6vw, 72px) 0; }
.widget-block__inner { max-width: var(--narrow); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.widget-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 26px;
  justify-content: center;
}
.widget-badges span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.widget-badges span::before { content: "✦"; color: var(--accent); font-size: 0.7rem; }
.widget-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 26px;
  color: var(--muted);
}
.widget-note { text-align: center; }

#shelter-start, #shelter-book { scroll-margin-top: calc(var(--header-h) + 8px); }

.booking-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--narrow));
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding: clamp(48px, 7vw, 96px) 0;
}
.booking-split__aside { display: flex; flex-direction: column; gap: 22px; }
.booking-features { list-style: none; padding: 0; margin: 0; }
.booking-features li {
  padding: 12px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.booking-features li strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(32px, 5vw, 48px);
  border-bottom: 1px dotted var(--line);
}
.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a { color: var(--ink); }
.footer-col a:hover { color: var(--accent-deep); }
.footer-col p { font-size: 0.9rem; color: var(--muted); }
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-legal {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}
.footer-legal p { margin: 0 0 4px; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 600;
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: 20px 22px;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: 0.85rem; color: var(--muted); margin: 0 0 14px; }
.cookie-banner__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Sticky CTA + bottom nav (mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + 58px);
  z-index: 300;
  display: none;
}
.sticky-cta .btn { width: 100%; }

.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: rgba(255, 253, 249, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: none;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 4px 2px;
}
.bottom-nav a.is-active, .bottom-nav a:hover { color: var(--accent-deep); }
.bottom-nav svg { width: 20px; height: 20px; }
.bottom-nav .bottom-nav__book {
  color: var(--cta-text);
  background: var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
  margin: 0 4px;
}
.bottom-nav .bottom-nav__book:hover { color: var(--cta-text); filter: brightness(0.85); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.error-page__code {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 16vw, 10rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 10px;
}
.error-page .btn { margin: 8px 8px 0; }

/* ---------- Privacy ---------- */
.policy-section { max-width: 760px; }
.policy-section h2 { font-size: 1.35rem; margin-top: 2em; }
.policy-section h2:first-child { margin-top: 0; }
.policy-section p, .policy-section li { font-size: 0.95rem; color: var(--muted); }
.policy-meta { list-style: none; padding: 0; margin: 0; }
.policy-meta li { padding: 9px 0; border-bottom: 1px dotted var(--line); }

/* ---------- Метрика-резерв ---------- */
.ym-notify { display: none; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1023px) {
  .header__phone { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .booking-split { grid-template-columns: 1fr; }
  .booking-split__widget-col { order: -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  :root { --header-h: 62px; }
  body { padding-bottom: 58px; } /* место под bottom-nav */

  .topline { display: none; }

  .burger { display: block; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    background: var(--card);
    border-left: 1px solid var(--line);
    z-index: 399;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    padding: calc(var(--header-h) + 20px) 26px 26px;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 14px 0; font-size: 0.95rem; border-bottom: 1px dotted var(--line); }
  .main-nav a::after { display: none; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 398;
    background: rgba(30, 24, 17, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .header__actions .btn-book { display: none; }

  .hero__inner { grid-template-columns: 1fr; padding: clamp(40px, 9vw, 64px) 0; }
  .hero__photo { aspect-ratio: 4/3; max-height: 320px; transform: none; }

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--feature { grid-column: auto; grid-row: auto; }

  .sticky-cta { display: block; bottom: calc(10px + 58px); }
  .bottom-nav { display: block; }
  body.has-sticky-cta .sticky-cta { display: block; }
  body:not(.has-sticky-cta) .sticky-cta { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cookie-banner { left: 10px; right: 10px; bottom: calc(10px + 58px); }

  /* Модалка — bottom-sheet */
  .modal { align-items: flex-end; padding: 0; }
  .modal__panel {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    animation: sheet-up 0.35s ease;
  }
  @keyframes sheet-up { from { transform: translateY(40%); opacity: 0.4; } to { transform: none; opacity: 1; } }
  .modal__gallery { aspect-ratio: 4/3; }

  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 400px) {
  .widget-badges { gap: 6px 12px; }
  .btn { padding: 12px 18px; }
}
@media (min-width: 1600px) {
  .container { padding-left: 64px; padding-right: 64px; }
}