/* ============================================================
   LAFA GLAMPING — тёмная кинематографичная тема (стиль Domes)
   Cormorant Garamond — только крупные заголовки (display).
   Jost — весь функциональный текст (меню, кнопки, тело, подписи):
   у серифа на мелком кегле резко падает читаемость, поэтому роли
   строго разделены — это и есть дисциплина, а не "больше шрифтов".
   Палитра выведена из фотографий объекта (см. :root ниже).
   ============================================================ */

/* Шрифты подключаются <link>-ом из HTML (см. <head> каждой страницы), а не
   @import отсюда: import виден браузеру только после скачивания этого файла,
   что добавляло лишний сетевой круг до первого отрисованного текста. */

:root {
  /* ── Палитра выведена из реальных фотографий LAFA (ImageMagick):
     база — тени сосен (#1A1E13), акцент — бронза золотого часа (#BC9B51),
     вторичный — синий час неба (#738DA2). Ничего придуманного. ── */

  /* фон — near-black с хвойным подтоном, не коричневый */
  --bg:      #12150F;   /* тень сосны, глубокий */
  --bg-2:    #181C14;   /* панель/секция */
  --bg-3:    #21261B;   /* карточка */
  --bg-pine: #0C0E09;   /* самый глубокий тон */

  /* линии */
  --line:        rgba(236, 232, 218, 0.10);
  --line-strong: rgba(236, 232, 218, 0.19);

  /* текст — тёплый нейтральный, контраст под editorial-стандарт */
  --ink:   #F2EFE4;   /* заголовки */
  --body:  #DCD6C6;   /* основной текст */
  --soft:  #C2BCA9;   /* лиды, подписи */
  --muted: #9B9583;   /* тихие лейблы, но читаемые */

  /* акцент — бронза золотого часа прямо с фото BBQ-зоны */
  --accent:      #BC9B51;
  --accent-hi:   #D9BE7C;
  --accent-lo:   #8E7033;
  --accent-soft: rgba(188, 155, 81, 0.32);
  --accent-faint:rgba(188, 155, 81, 0.10);

  /* «занято» в календаре: провал темнее фона + различимая штриховка.
     Одна переменная на клетку и на образец в легенде. */
  --cal-busy-fill: repeating-linear-gradient(135deg,
                     rgba(236, 232, 218, 0.14) 0 2px, transparent 2px 7px), #0C0E09;
  --on-accent:   #14160F;

  /* вторичный — синий час, для сдержанных акцентов */
  --dusk:      #738DA2;
  --dusk-soft: rgba(115, 141, 162, 0.22);

  --sun: #BC9B51;

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1200px;
  --radius: 4px;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  --shadow-sm: 0 14px 34px -18px rgba(0, 0, 0, 0.75);
  --header-h: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--body);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent-hi); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 7vw, 88px); font-weight: 400; }
h2 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 400; }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
em, .em { font-style: italic; color: var(--accent-hi); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--accent-soft); }

.lead {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--soft);
  line-height: 1.75;
  font-weight: 400;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .25s, color .25s, border-color .25s;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-hi); color: var(--on-accent); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hi); transform: translateY(-2px); }

/* ---------- шапка (fixed, прозрачная → тёмная на скролле) ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s, border-color .35s, transform .3s cubic-bezier(.22,1,.36,1);
  background: linear-gradient(180deg, rgba(12,15,10,0.58), rgba(12,15,10,0));
  border-bottom: 1px solid transparent;
  will-change: transform;
}
.site-header.scrolled {
  background: rgba(16, 19, 13, 0.96);
  border-bottom-color: var(--line);
}
/* Прокрутка вниз — шапка уезжает; любое движение вверх её возвращает.
   Держим на transform: он идёт по композитору и не пересчитывает layout. */
.site-header.is-hidden { transform: translateY(-100%); }

/* Размытие фона — только там, где оно заведомо не ломается: мышь = десктоп.
   В webview мессенджеров backdrop-filter на fixed-слое не успевает за
   прокруткой, слой отстаёт и контент визуально «плывёт» под шапкой. */
@media (hover: hover) and (pointer: fine) {
  .site-header.scrolled {
    background: rgba(16, 19, 13, 0.86);
    backdrop-filter: saturate(1.3) blur(14px);
    -webkit-backdrop-filter: saturate(1.3) blur(14px);
  }
}

/* ---------- кнопка «вверх» ---------- */

.to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 95;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 19, 13, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-hi);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(10px) scale(.94);
  transition: opacity .28s, transform .28s cubic-bezier(.22,1,.36,1), visibility .28s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); }
.to-top svg { width: 17px; height: 17px; }
@media (max-width: 700px) { .to-top { width: 44px; height: 44px; } }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .mark { height: 40px; width: auto; flex-shrink: 0; }
.brand b { font-weight: 500; }
.brand .thin { color: var(--accent); font-weight: 400; letter-spacing: 0.3em; font-size: 13px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}
.nav a:hover, .nav a.active { color: var(--accent-hi); }
.nav .btn { padding: 12px 24px; }
.nav .btn:hover { color: var(--on-accent); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; color: var(--ink);
  width: 44px; height: 44px; align-items: center; justify-content: center;
  margin-right: -10px; /* иконка визуально у края, зона нажатия — нет */
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(16, 19, 13, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 10px 26px 22px;
    transform: translateY(-140%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav .btn { margin-top: 14px; justify-content: center; }
}

/* ---------- секции ---------- */

section { padding: clamp(70px, 10vw, 130px) 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 18px; }

.alt { background: var(--bg-2); }
.pine-band { background: var(--bg-pine); }

/* ---------- ГЕРОЙ: полноэкранное фото ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;   /* в webview панель сворачивается, 100vh даёт скачок */
  display: flex;
  align-items: center;
  align-items: safe center;   /* если контенту тесно — обрежется низ, не заголовок */
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 26px 90px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    /* мягкая вуаль ровно под текстовым блоком — держит контраст на светлом куполе */
    radial-gradient(80% 55% at 50% 52%, rgba(10,13,8,0.72) 0%, rgba(10,13,8,0.42) 55%, rgba(10,13,8,0) 100%),
    linear-gradient(180deg, rgba(12,15,10,0.62) 0%, rgba(12,15,10,0.34) 40%, rgba(12,15,10,0.88) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 940px; }
.hero .eyebrow { margin-bottom: 26px; justify-content: center; }
.hero h1 { margin-bottom: 26px; color: #FDF8EE; text-shadow: 0 1px 3px rgba(0,0,0,.45), 0 2px 40px rgba(0,0,0,.55); }
.hero .lead { margin: 0 auto 38px; max-width: 38em; color: #EDE3D1; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 30px 54px; justify-content: center;
  margin-top: 54px; padding-top: 34px; border-top: 1px solid var(--line);
}
.hero-meta .m { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .m b { font-family: var(--font-display); font-size: 34px; font-weight: 400; color: var(--accent-hi); line-height: 1; }
.hero-meta .m span { font-size: 12px; color: var(--soft); letter-spacing: 0.16em; text-transform: uppercase; }

/* Раньше pin'ился к низу вьюпорта (position:absolute), независимо от
   высоты центрированного контента героя. В Instagram/Telegram webview
   видимая высота меньше, чем в обычном Safari (своя навигация сверху и
   снизу) — центрированный блок вырастал и наезжал на закреплённую
   подсказку. Теперь это обычный элемент потока, идёт последним внутри
   .hero-inner — оверлап физически невозможен. */
.scroll-cue {
  margin-top: 46px;
  color: var(--soft); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue::after {
  content: ''; width: 1px; height: 42px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%,100%{opacity:.3; transform:scaleY(.6)} 50%{opacity:1; transform:scaleY(1)} }

/* ---------- заглушки под фото ---------- */

.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  color: var(--muted); border: 1px dashed var(--line-strong); padding: 20px;
}
.ph .ph-ico { font-size: 32px; opacity: .8; }
.ph .ph-cap { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; max-width: 22em; }

/* ---------- галерея edge-to-edge ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 10px;
}
.gallery .cell { position: relative; overflow: hidden; border-radius: 2px; }
.gallery .cell.wide { grid-column: span 2; }
.gallery .cell.tall { grid-row: span 2; }
.gallery .cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.gallery .cell::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(9,12,7,.55), transparent 45%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.gallery .cell:hover img { transform: scale(1.06); }
.gallery .cell:hover::after { opacity: 1; }
.zoom { cursor: zoom-in; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery .cell.tall { grid-row: span 1; }
}

/* Галерея по устройству: с мобильного — вертикальные кадры (как снято на
   телефон, естественно заполняют узкий экран), с компьютера — горизонтальные
   (используют ширину экрана). Переключение по ширине вьюпорта, а не по
   User-Agent — величина стабильная и совпадает с остальной адаптивностью
   сайта. Скрытые карточки не начинают грузиться: loading="lazy" внутри
   display:none так и остаётся невыполненным. */
.gallery.gal-h { display: none; }
@media (min-width: 901px) {
  .gallery.gal-v { display: none; }
  .gallery.gal-h {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
  }
}

/* full-bleed фото-полоса с текстом поверх */
.feature-band {
  position: relative; min-height: 78vh; display: flex; align-items: center;
  padding: 90px 26px; overflow: hidden;
}
.feature-band .fb-bg { position: absolute; inset: 0; z-index: 0; }
.feature-band .fb-bg img { width: 100%; height: 100%; object-fit: cover; }
.feature-band .fb-bg::after { content:''; position:absolute; inset:0; background: linear-gradient(90deg, rgba(11,14,9,.86) 0%, rgba(11,14,9,.52) 45%, rgba(11,14,9,.14) 100%); }
.feature-band .fb-inner { position: relative; z-index: 1; max-width: 560px; }
.feature-band.right .fb-bg::after { background: linear-gradient(270deg, rgba(11,14,9,.86) 0%, rgba(11,14,9,.52) 45%, rgba(11,14,9,.14) 100%); }
.feature-band.right { justify-content: flex-end; text-align: right; }
.feature-band.right .fb-inner { margin-left: auto; }
@media (max-width: 700px){ .feature-band, .feature-band.right { text-align: left; justify-content: flex-start; } .feature-band .fb-bg::after{ background: linear-gradient(180deg, rgba(11,14,9,.58), rgba(11,14,9,.88)); } }

/* ---------- карточки-фичи ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
/* вариант для страницы цен: 4 карточки ложатся квадратом 2x2, а не 3+1
   с пустой дырой в нижнем ряду */
@media (min-width: 701px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
.feat {
  background: var(--bg);
  padding: 40px 34px;
  transition: background .3s;
}
.alt .feat { background: var(--bg-2); }
.pine-band .feat { background: var(--bg-pine); }
.feat:hover { background: var(--bg-3); }
.feat .ico {
  width: 54px; height: 54px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-faint); border: 1px solid var(--accent-soft);
  color: var(--accent-hi);
  margin-bottom: 22px;
}
.feat .ico svg { width: 23px; height: 23px; }
.feat h3 { font-size: 24px; margin-bottom: 12px; }
.feat p { font-size: 16.5px; color: var(--soft); font-weight: 400; }

/* включённый список */
.included { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 40px; }
.included .row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.included .row .i { flex-shrink: 0; color: var(--accent); display: inline-flex; padding-top: 2px; }
.included .row .i svg { width: 20px; height: 20px; }
.included .row span { font-size: 16.5px; color: var(--soft); font-weight: 400; }

/* ---------- отзывы ---------- */

/* Карусель отзывов: горизонтальный скролл со snap, стрелки поверх
   краёв, точки под треком. Прокрутка нативная (не JS-анимация) — на
   тач-устройствах работает пальцем без всякого кода. */
.reviews-carousel { position: relative; }
.reviews {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  scrollbar-width: none; -ms-overflow-style: none;
}
.reviews::-webkit-scrollbar { display: none; }
.reviews .review { flex: 0 0 100%; scroll-snap-align: start; }
@media (min-width: 860px) { .reviews .review { flex-basis: 50%; } }
@media (min-width: 1240px) { .reviews .review { flex-basis: calc(100% / 3); } }

.rc-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  color: var(--ink); cursor: pointer;
  transition: border-color .2s, color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}
.rc-btn:hover { border-color: var(--accent); color: var(--accent-hi); }
.rc-btn[disabled] { opacity: .3; cursor: default; pointer-events: none; }
.rc-btn svg { width: 20px; height: 20px; }
.rc-prev { left: -22px; }
.rc-next { right: -22px; }
@media (max-width: 900px) { .rc-btn { display: none; } }

.rc-dots { display: flex; justify-content: center; gap: 9px; margin-top: 26px; }
.rc-dots button {
  width: 8px; height: 8px; border-radius: 50%; padding: 0;
  border: none; background: var(--line-strong); cursor: pointer;
  transition: background .2s, transform .2s;
}
.rc-dots button.is-on { background: var(--accent); transform: scale(1.25); }
.review { background: var(--bg-2); padding: 40px 36px; display: flex; flex-direction: column; }
.alt .review { background: var(--bg); }
.review .stars { color: var(--accent); letter-spacing: 4px; font-size: 13px; margin-bottom: 18px; }
.review p { font-family: var(--font-display); font-style: italic; font-size: 25px; font-weight: 400; color: var(--ink); line-height: 1.5; margin-bottom: 22px; }
.review .who { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

/* ---------- CTA-полоса ---------- */

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lead { max-width: 36em; margin: 0 auto 34px; }
.cta-band .hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.price-pill {
  display: inline-flex; align-items: baseline; gap: 10px;
  border: 1px solid var(--line-strong); border-radius: 40px; padding: 12px 26px; margin-bottom: 30px;
}
.price-pill b { font-family: var(--font-display); font-size: 30px; font-weight: 400; color: var(--accent-hi); }
.price-pill span { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

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

.site-footer { background: #0D100B; color: var(--soft); padding: 84px 0 34px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--soft); }
.site-footer a:hover { color: var(--accent-hi); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.site-footer .brand { color: var(--ink); margin-bottom: 18px; font-size: 20px; }
.site-footer .brand .thin { color: var(--accent); }
.footer-grid p { font-size: 15.5px; line-height: 1.8; max-width: 30em; font-weight: 400; }
.footer-col h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 500; }
.footer-col a { display: flex; align-items: center; gap: 10px; font-size: 15.5px; padding: 7px 0; }
.f-ico { width: 17px; height: 17px; flex-shrink: 0; color: var(--accent); display: inline-flex; }
.f-ico svg { width: 100%; height: 100%; }
.footer-col a:hover .f-ico { color: var(--accent-hi); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- кликабельные фото / лайтбокс ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 10, 6, 0.96);
  opacity: 0; visibility: hidden; transition: opacity .3s; padding: 26px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox img { max-width: min(1150px, 92vw); max-height: 82vh; width: auto; height: auto; object-fit: contain; border-radius: 2px; box-shadow: 0 40px 90px -20px rgba(0,0,0,.8); }
.lightbox figcaption { color: var(--soft); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,246,236,.06); border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.lb-btn:hover { background: rgba(255,246,236,.14); border-color: var(--accent); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close { position: absolute; top: 20px; right: 22px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,246,236,.06); border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.lb-close:hover { background: rgba(255,246,236,.14); }
.lb-count { position: absolute; top: 26px; left: 26px; color: var(--muted); font-size: 12px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .lb-btn { width: 44px; height: 44px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } .lightbox img { max-height: 74vh; } }

/* ---------- страницы-документы ---------- */

.doc-hero {
  position: relative;
  padding: calc(var(--header-h) + 60px) 0 clamp(40px, 6vw, 66px);
  background: linear-gradient(180deg, #191D15, var(--bg));
  border-bottom: 1px solid var(--line);
}
.doc-hero .eyebrow { margin-bottom: 20px; }
.doc-hero p { font-size: 18px; margin-top: 18px; color: var(--soft); max-width: 42em; font-weight: 400; }
.doc-hero .updated { margin-top: 22px; font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.doc { padding: clamp(48px, 7vw, 80px) 0 clamp(64px, 9vw, 100px); }
.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
/* Оглавление документа. Десктоп — залипающий сайдбар; мобильные — свёрнутый
   аккордеон (сайдбар в 250px съедал 2/3 экрана телефона). Разметка — <details>,
   состояние синхронизирует site.js по matchMedia. */
.doc-toc { position: sticky; top: calc(var(--header-h) + 20px); font-size: 14px; }
.doc-toc > summary {
  font-family: var(--font-body); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
  font-weight: 500; cursor: default; list-style: none;
}
.doc-toc > summary::-webkit-details-marker { display: none; }
.doc-toc a { display: block; font-size: 15px; padding: 8px 0 8px 16px; border-left: 1px solid var(--line-strong); color: var(--soft); font-weight: 400; }
.doc-toc a:hover { border-color: var(--accent); color: var(--accent-hi); }

@media (min-width: 901px) {
  /* на десктопе свернуть нельзя — тап по заголовку не должен ничего делать */
  .doc-toc > summary { pointer-events: none; }
}

@media (max-width: 900px) {
  .doc-layout { display: block; }
  .doc-toc {
    position: static; margin-bottom: 34px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg-2);
  }
  .doc-toc > summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin: 0; padding: 16px 18px; cursor: pointer;
    font-size: 12.5px; color: var(--soft); -webkit-tap-highlight-color: transparent;
  }
  .doc-toc > summary::after {
    content: ''; width: 8px; height: 8px; flex-shrink: 0;
    border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
    transform: rotate(45deg) translateY(-2px); transition: transform .22s;
  }
  .doc-toc[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
  .doc-toc[open] > summary { border-bottom: 1px solid var(--line); }
  .doc-toc .toc-links { padding: 8px 18px 16px; }
  .doc-toc a { padding: 11px 0 11px 14px; font-size: 15.5px; }
}

.doc-body { max-width: 780px; }
.doc-body h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 400; margin: 48px 0 18px; scroll-margin-top: calc(var(--header-h) + 16px); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 21px; margin: 30px 0 12px; }
.doc-body p { font-size: 17px; line-height: 1.8; margin-bottom: 18px; color: var(--body); font-weight: 400; }
.doc-body ul, .doc-body ol { margin: 0 0 18px 22px; }
.doc-body li { font-size: 17px; line-height: 1.8; margin-bottom: 11px; color: var(--body); font-weight: 400; }
.doc-body strong { color: var(--ink); font-weight: 500; }

.callout { background: var(--bg-2); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 2px; padding: 22px 24px; margin: 26px 0; font-size: 16.5px; line-height: 1.75; color: var(--soft); }
.callout b { color: var(--accent-hi); }

.fillin { background: rgba(188,155,81,.17); border-bottom: 1px dashed var(--accent); padding: 0 5px; border-radius: 2px; color: var(--accent-hi); font-weight: 400; font-style: normal; }

/* инфо-таблица / тарифы */
.info-table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font-size: 16px; }
.info-table td { padding: 13px 16px; border: 1px solid var(--line); vertical-align: top; color: var(--body); }
.info-table tr td:first-child { background: var(--bg-2); color: var(--muted); width: 42%; font-weight: 400; }
.info-table.tariffs td { text-align: center; font-size: 17px; color: var(--ink); }
.info-table.tariffs th { padding: 15px 16px; border: 1px solid var(--line); background: var(--bg-pine); color: var(--accent-hi); font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.info-table.tariffs tr td:first-child { text-align: left; background: var(--bg-2); color: var(--soft); font-size: 15px; }

/* шаги */
.steps { display: flex; flex-direction: column; gap: 16px; margin: 10px 0 28px; }
.step { display: flex; gap: 20px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-radius: 2px; padding: 22px 24px; }
.step .n { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 19px; color: var(--accent-hi); border: 1px solid var(--accent-soft); background: var(--accent-faint); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { margin-bottom: 0; font-size: 16.5px; color: var(--soft); font-weight: 400; }

/* карта */
.map-embed { position: relative; border-radius: 2px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); aspect-ratio: 16/9; background: var(--bg-2); margin: 6px 0 12px; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.2) brightness(.95); }
.map-embed .ph { border: none; }
.map-note { font-size: 14.5px; color: var(--muted); margin: 0 0 24px; font-weight: 400; }
@media (max-width: 620px){ .map-embed { aspect-ratio: 4/3; } }

/* фото в документах */
.doc-fig { margin: 18px 0 24px; max-width: 480px; }
.doc-fig img { width: 100%; border-radius: 2px; box-shadow: var(--shadow-sm); }
.doc-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; font-weight: 400; }
.doc-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 18px 0 26px; }
.doc-figs figure { margin: 0; }
.doc-figs img { width: 100%; height: 230px; object-fit: cover; border-radius: 2px; box-shadow: var(--shadow-sm); }
.doc-figs figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* приватный блок */
.private-box { background: var(--bg-2); border: 1px solid var(--accent-soft); border-radius: 2px; padding: 24px; margin: 20px 0 26px; }
.private-box .pb-head { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 16px; }
.creds { display: flex; flex-wrap: wrap; gap: 14px; }
.cred { background: var(--bg-3); border: 1px solid var(--line); border-radius: 2px; padding: 12px 20px; }
.cred .lbl { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 2px; }
.cred .val { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 26px; font-weight: 500; color: var(--accent-hi); letter-spacing: .12em; }
.warn { color: var(--accent-hi); font-weight: 500; }

/* ---------- утилиты ---------- */
.center { text-align: center; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .scroll-cue::after { animation: none; } }

/* ---------- калькулятор стоимости ---------- */

.calc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent-soft);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 56px;
}
.calc-head { margin-bottom: 30px; }
.calc-head .eyebrow { margin-bottom: 14px; }
.calc-head h2 { font-size: clamp(26px, 3.2vw, 38px); }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.calc-field { display: flex; flex-direction: column; gap: 9px; }
.calc-lbl {
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.calc-field input[type="date"] {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 13px 15px;
  width: 100%;
  color-scheme: dark;
  cursor: pointer;
  transition: border-color .2s;
}
.calc-field input[type="date"]:hover,
.calc-field input[type="date"]:focus { border-color: var(--accent); outline: none; }

.seg { display: flex; gap: 7px; }
.seg button {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  color: var(--soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 12px 0;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.seg button:hover { border-color: var(--accent); color: var(--accent-hi); }
.seg button[aria-pressed="true"] {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}

.switch {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 15px;
  color: var(--soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 12px 16px;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, color .2s;
}
.switch:hover { border-color: var(--accent); color: var(--accent-hi); }
.switch-dot {
  width: 17px; height: 17px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.switch[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); }
.switch[aria-pressed="true"] .switch-dot {
  background: var(--accent); border-color: var(--accent);
  box-shadow: inset 0 0 0 3px var(--bg-2);
}

/* Купель — предложение, а не настройка: во всю ширину сетки, с акцентной
   подсветкой пока выключена. Прежний вид (тихая ячейка рядом с «Гостей»)
   гости просто не замечали и приезжали без купели. */
.tub-field { grid-column: 1 / -1; }
.tub-offer {
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--accent-faint);
  border-color: var(--accent-soft);
}
.tub-offer .tub-text { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.tub-offer b { font-family: var(--font-body); font-size: 16.5px; font-weight: 500; color: var(--ink); }
.tub-offer small { font-size: 13.5px; color: var(--accent-hi); }
.tub-offer .switch-dot { margin-top: 3px; }
.tub-offer .tub-on { display: none; }
.tub-offer[aria-pressed="true"] { background: var(--accent-faint); border-color: var(--accent); }
.tub-offer[aria-pressed="true"] .tub-off { display: none; }
.tub-offer[aria-pressed="true"] .tub-on { display: block; }
/* купель входит в стоимость на выбранные даты (Новый год): включена и не
   выключается — курсор обычный, подсветка как у включённой */
.tub-offer.is-included { cursor: default; }
.tub-offer.is-included:hover { border-color: var(--accent); color: var(--ink); }
@media (max-width: 700px) { .tub-offer { padding: 14px 15px; } .tub-offer b { font-size: 16px; } }

.calc-out { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 26px; }
.calc-hint { color: var(--muted); font-size: 16px; margin: 0; }

.calc-total {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  justify-content: space-between; align-items: flex-end;
  margin-bottom: 24px;
}
.calc-total-lbl {
  display: block;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.calc-total-sum {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 52px);
  line-height: 1;
  color: var(--accent-hi);
  font-variant-numeric: tabular-nums;
}
.calc-total-meta { font-size: 14px; color: var(--muted); }

.calc-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.calc-table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
}
.calc-table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--body); }
.calc-table tr:last-child td { border-bottom: none; }
.calc-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-why { color: var(--soft); font-size: 14.5px; }
.calc-note { margin: 20px 0 0; font-size: 14px; color: var(--muted); line-height: 1.65; }

.calc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.calc-actions .btn[disabled] { opacity: .4; cursor: default; transform: none; }
.calc-actions .btn[disabled]:hover { border-color: var(--line-strong); color: var(--ink); transform: none; }

/* заголовок-разделитель между блоками страницы цен: без верхнего отступа
   он прилипал к нижней кромке калькулятора (глобальный reset обнуляет margin) */
.calc-sep { font-size: clamp(24px, 3vw, 32px); margin: 56px 0 18px; }

@media (max-width: 680px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-table { font-size: 14.5px; }
  .calc-table th:nth-child(2), .calc-table td.calc-why { display: none; }
}
.calc-disc {
  display: inline-block; margin-left: 9px;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 500;
  letter-spacing: .08em; color: var(--accent);
}
.calc-saved {
  font-size: 14.5px; color: var(--accent-hi);
  border: 1px solid var(--accent-soft); background: var(--accent-faint);
  border-radius: 2px; padding: 11px 15px; margin-bottom: 22px;
}

/* ============================================================
   ПЕЧАТЬ (A4) — сайт тёмный, поэтому для печати всё переводим
   в светлую схему, убираем фото/навигацию и даём воздух
   между строк, чтобы можно было править текст от руки.
   ============================================================ */

@page { size: A4; margin: 16mm 15mm 18mm; }

@media print {
  html, body {
    background: #fff !important;
    color: #111 !important;
    font-size: 11.5pt;
    line-height: 1.8;
  }

  /* убираем всё, что не текст */
  .site-header, .site-footer, .nav, .nav-toggle, .scroll-cue, .to-top,
  .hero-bg, .hero-cta, .hero-meta, .gallery, .doc-fig, .doc-figs,
  .map-embed, .map-note, .lightbox, .price-pill,
  .calc-grid, .calc-out, .calc-actions, .feat .ico, .included .row .i,
  .btn { display: none !important; }

  /* анимации появления не должны прятать текст */
  .reveal { opacity: 1 !important; transform: none !important; }

  section, .doc, .hero, .feature-band, .doc-hero {
    padding: 0 0 10mm !important;
    min-height: 0 !important;
    background: #fff !important;
    border: none !important;
  }
  .wrap, .doc-body, .hero-inner, .fb-inner, .section-head {
    max-width: 100% !important; width: 100% !important;
    padding: 0 !important; margin: 0 !important;
    text-align: left !important;
  }
  .doc-layout { display: block !important; }
  .doc-toc { display: none !important; }

  h1, h2, h3 { color: #000 !important; text-shadow: none !important; break-after: avoid; }
  h1 { font-size: 22pt; margin: 0 0 4mm; }
  h2 { font-size: 16pt; margin: 8mm 0 3mm; }
  h3 { font-size: 12.5pt; margin: 5mm 0 2mm; }
  em, .em { color: #333 !important; }
  p, li, td, th { color: #111 !important; }
  p, li { margin-bottom: 3mm; }
  .lead { color: #222 !important; font-size: 11.5pt !important; }

  .eyebrow {
    color: #555 !important; font-size: 8.5pt; letter-spacing: .18em;
    display: block; margin-bottom: 2mm;
  }
  .eyebrow::before { display: none; }

  a { color: #111 !important; text-decoration: underline; }

  /* поля, которые нужно заполнить — должны бросаться в глаза на бумаге */
  .fillin {
    background: #ffe9a3 !important;
    color: #000 !important;
    border: 1px solid #b9a05a !important;
    padding: 0 3px;
    font-weight: 600;
  }

  .cards, .reviews, .included {
    display: block !important;
    background: none !important;
    border: none !important;
  }
  .feat, .review {
    background: #fff !important;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    padding: 0 0 4mm !important;
    margin-bottom: 4mm;
    break-inside: avoid;
  }
  .included .row {
    border-bottom: 1px dotted #ccc !important;
    padding: 2mm 0 !important;
    display: block !important;
  }
  .included .row span { color: #111 !important; font-size: 11pt !important; }
  .review p { font-size: 12pt !important; color: #111 !important; }
  .review .who, .footer-col h4 { color: #555 !important; }

  .callout {
    background: #f6f4ef !important;
    border: 1px solid #ccc !important;
    border-left: 3px solid #8a7a4e !important;
    color: #111 !important;
    padding: 3mm 4mm !important;
    break-inside: avoid;
  }
  .callout b { color: #000 !important; }

  .info-table, .calc-table { break-inside: auto; }
  .info-table td, .info-table th, .calc-table td, .calc-table th {
    border: 1px solid #aaa !important;
    color: #111 !important;
    background: #fff !important;
    padding: 2mm 3mm !important;
  }
  .info-table tr td:first-child,
  .info-table.tariffs th, .calc-table th {
    background: #eee !important; color: #000 !important;
  }
  tr { break-inside: avoid; }

  .steps { display: block !important; }
  .step {
    background: #fff !important;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    padding: 0 0 3mm !important;
    margin-bottom: 3mm;
    break-inside: avoid;
  }
  .step .n {
    background: none !important; color: #000 !important;
    border: 1px solid #666 !important;
    width: 8mm; height: 8mm; font-size: 10pt;
  }

  .private-box {
    background: #f9f8f4 !important;
    border: 1px solid #999 !important;
    padding: 3mm 4mm !important;
  }
  .private-box .pb-head { color: #333 !important; }
  .cred { background: #fff !important; border: 1px solid #aaa !important; }
  .cred .lbl { color: #555 !important; }
  .cred .val { color: #000 !important; }
  .warn { color: #000 !important; text-decoration: underline; }

  .calc { border: 1px solid #bbb !important; background: #fff !important; padding: 4mm !important; }
  .calc-head h2 { margin-top: 0; }
}

/* ---------- галерея: главы по времени суток ---------- */
.gal-chapter + .gal-chapter { margin-top: clamp(40px, 5vw, 64px); }
.gal-head {
  display: flex; align-items: baseline; gap: 16px 22px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.gal-head .eyebrow { margin: 0; }
.gal-head p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 620px) { .gal-head { gap: 6px; } .gal-head p { font-size: 14px; } }

/* ---------- календарь свободных дат ---------- */
.cal { margin-bottom: 26px; }
.cal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 14px;
}
.cal-nav {
  width: 38px; height: 38px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 2px;
  color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
  transition: border-color .2s, color .2s, opacity .2s;
}
.cal-nav:hover:not([disabled]) { border-color: var(--accent); color: var(--accent-hi); }
.cal-nav[disabled] { opacity: .3; cursor: default; }

.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.lg-free { border: 1px solid var(--line-strong); }
.lg-busy { background: var(--cal-busy-fill); border: 1px solid var(--line); }
.lg-pend { background: var(--accent-faint); border: 1px dashed var(--accent); }
.lg-sel  { background: var(--accent); }

.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cal-title {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  text-align: center; margin-bottom: 12px;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow {
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); text-align: center; padding-bottom: 6px;
}
.cal-day {
  position: relative;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 14px;
  background: transparent; border: 1px solid transparent; border-radius: 2px;
  color: var(--body); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.cal-day.is-empty { visibility: hidden; cursor: default; }
.cal-day.is-past { color: var(--muted); opacity: .35; cursor: default; }
.cal-day.is-free { border-color: var(--line); }
.cal-day.is-free:hover { border-color: var(--accent); color: var(--accent-hi); }
/* «занято» отличается от «свободно» не оттенком рамки, а самой природой клетки:
   свободная — пустая с рамкой, занятая — залитый тёмный провал со штриховкой */
.cal-day.is-busy {
  color: var(--muted); cursor: default;
  background: var(--cal-busy-fill);
  border-color: transparent;
  text-decoration: line-through;
  text-decoration-color: rgba(236, 232, 218, .55);
  text-decoration-thickness: 1.5px;
}

/* ожидает подтверждения — держим ночь за гостем до задатка.
   Выбрать её можно: заявка встаёт в очередь, поэтому клетка кликабельна */
.cal-day.is-pending {
  color: var(--accent-hi); cursor: pointer;
  background: var(--accent-faint);
  border-style: dashed; border-color: var(--accent);
}
.cal-day.is-pending:hover { background: var(--accent-soft); color: var(--ink); }
.cal-day.is-pending::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent-hi);
}
.cal-day.is-mid   { background: var(--accent-faint); border-color: var(--accent-soft); color: var(--ink); }
.cal-day.is-start,
.cal-day.is-end   { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
/* день выезда может быть занятой ночью — ночь выезда не занимается.
   Заливку выбора он получает, а зачёркивание от «занято» снимаем. */
.cal-day.is-start, .cal-day.is-end { text-decoration: none; }

.cal-status { margin-top: 14px; font-size: 14.5px; color: var(--soft); }
.cal-status .cal-warn { color: var(--accent-hi); }
/* «ночь держим за другим гостем» — заметно, но не тревожно: заявку можно оставить */
.cal-status .cal-hold {
  display: block; margin-top: 8px; padding-left: 12px;
  border-left: 2px solid var(--accent-soft);
  color: var(--accent-hi); font-size: 14px;
}

/* выбран только заезд: подсказку про выезд делаем заметной —
   акцентный цвет и мягко дышащая точка перед текстом */
.cal-status.is-await {
  color: var(--accent-hi);
  animation: await-pulse-text 1.6s ease-in-out infinite;
}
@keyframes await-pulse-text {
  0%, 100% { opacity: .68; }
  50%      { opacity: 1; }
}
.cal-status.is-await::before {
  content: ''; display: inline-block; vertical-align: 1px;
  width: 7px; height: 7px; margin-right: 9px; border-radius: 50%;
  background: var(--accent);
  animation: await-pulse 1.6s ease-in-out infinite;
}
@keyframes await-pulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) { .cal-status.is-await, .cal-status.is-await::before { animation: none; } }

@media (max-width: 700px) {
  .cal-months { grid-template-columns: 1fr; gap: 22px; }
  .cal-head { flex-wrap: wrap; }
  .cal-legend { order: 3; width: 100%; justify-content: center; }
}

/* задаток / остаток в расчёте */
.calc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 22px; }
.calc-split span { display: block; background: var(--bg-2); padding: 12px 16px; font-size: 13.5px; color: var(--muted); }
.calc-split b { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .calc-split { grid-template-columns: 1fr; } }

/* кнопка «Забронировать» в хедере ведёт сюда — не даём фикс-шапке
   накрыть заголовок калькулятора при переходе по якорю */
#kalendar { scroll-margin-top: calc(var(--header-h) + 18px); }

/* видео маршрута в инструкции */
.doc-video { margin: 18px 0 10px; max-width: 420px; }
.doc-video video {
  width: 100%; display: block; border-radius: 2px;
  background: #000; box-shadow: var(--shadow-sm);
}
.doc-video figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ============================================================
   Мобильная доводка. Проверено на 375x812: тап-зоны доведены до
   ~44px (гамбургер был 26x26, дни календаря 36x36), мелкие
   подписи подняты до читаемых значений.
   ============================================================ */

@media (max-width: 700px) {
  /* карточке калькулятора вернём ширину — она нужна календарной сетке */
  .calc { padding-left: 16px; padding-right: 16px; }
  .calc-grid { grid-template-columns: 1fr; gap: 18px; }
  .calc-lbl { font-size: 13px; letter-spacing: .14em; }

  /* дни календаря: вместо квадрата 36x36 — 40x44 по высоте тапа */
  .cal-grid { gap: 2px; }
  .cal-day { aspect-ratio: auto; min-height: 44px; font-size: 15px; }
  .cal-dow { font-size: 11.5px; padding-bottom: 8px; }
  .cal-nav { width: 44px; height: 44px; font-size: 22px; }
  .cal-title { font-size: 13.5px; }
  .cal-legend { font-size: 13px; }

  /* подписи, которые на телефоне читались с трудом */
  .review .who { font-size: 13px; }
  .info-table.tariffs th { font-size: 12.5px; padding: 13px 10px; }
  .info-table.tariffs tr td:first-child { font-size: 15.5px; }
  .info-table td { padding: 12px 12px; }
  .footer-col a { padding: 11px 0; }      /* тап-зона 15.5+22 ≈ 44 */
  .footer-bottom { font-size: 13.5px; }

  /* карточки шагов: 24px по бокам на 375px — слишком дорого */
  .step { padding-left: 18px; padding-right: 18px; }
}

/* ---------- окно выбора мессенджера ---------- */

.chooser {
  position: fixed; inset: 0; z-index: 210;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(9, 12, 7, .78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.chooser.is-on { opacity: 1; visibility: visible; }

.chooser-card {
  position: relative;
  width: 100%; max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 34px 30px 28px;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}
.chooser.is-on .chooser-card { transform: none; }

.chooser-card h3 { font-size: 27px; margin-bottom: 8px; }
.chooser-sub { font-size: 15px; color: var(--soft); margin-bottom: 22px; line-height: 1.6; }

.chooser-close {
  position: absolute; top: 10px; right: 12px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 26px; line-height: 1;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
.chooser-close:hover { color: var(--ink); }

.chooser-list { display: flex; flex-direction: column; gap: 8px; }
.chooser-item {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-3);
  color: var(--body);
  transition: border-color .2s, background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.chooser-item:hover, .chooser-item:focus-visible {
  border-color: var(--accent); background: var(--bg-pine); color: var(--ink);
  outline: none;
}
.chooser-ico { flex-shrink: 0; width: 24px; height: 24px; color: var(--accent); }
.chooser-ico svg { width: 100%; height: 100%; }
.chooser-name { flex: 1; font-size: 16px; font-weight: 500; }
.chooser-go { color: var(--muted); font-size: 17px; transition: transform .2s, color .2s; }
.chooser-item:hover .chooser-go { color: var(--accent); transform: translateX(3px); }

/* подпись про автоподстановку — только у WhatsApp, поэтому живёт
   на его строке, а не общей сноской под списком */
.chooser-tag {
  display: block; font-style: normal; font-weight: 400;
  font-size: 12.5px; color: var(--muted); margin-top: 1px;
}
.chooser-item:hover .chooser-tag { color: var(--accent-lo); }

body.no-scroll { overflow: hidden; }

@media (max-width: 700px) {
  .chooser { padding: 16px; align-items: flex-end; }
  .chooser-card { padding: 28px 20px 22px; }
  .chooser-card h3 { font-size: 24px; }
}

/* ---------- форма заявки ---------- */

.lead-form {
  margin: 44px 0 8px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 40px;
}
.lead-head { margin-bottom: 28px; }
.lead-head .eyebrow { margin-bottom: 16px; }
.lead-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.lead-head .lead { font-size: 16.5px; }

/* без нижнего отступа подпись следующей строки прилипала к чужому
   полю выше и читалась как его подпись */
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-bottom: 20px; }
.lead-field { display: block; margin-bottom: 20px; border: none; padding: 0; }
/* наш display:block перебивает браузерное [hidden] — возвращаем скрытие явно,
   иначе поле ника остаётся видимым при Viber/WhatsApp/звонке */
.lead-field[hidden] { display: none; }
.lead-grid .lead-field { margin-bottom: 0; }
.lead-lbl {
  display: block; margin-bottom: 9px; padding: 0;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.lead-opt { letter-spacing: 0; text-transform: none; font-weight: 400; }

.lead-field input[type=text], .lead-field input[type=tel], .lead-field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 16.5px; color: var(--ink);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 16px;
  transition: border-color .2s, background .2s;
  min-height: 52px;
  resize: vertical;
}
.lead-field input::placeholder, .lead-field textarea::placeholder { color: var(--muted); opacity: .75; }
.lead-field input:focus, .lead-field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--bg-pine);
}
.lead-field input[aria-invalid="true"] { border-color: #C4756A; }

.lead-field select {
  width: 100%;
  font-family: var(--font-body); font-size: 16.5px; color: var(--ink);
  background: var(--bg-3);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 14px 44px 14px 16px; min-height: 52px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  appearance: none; -webkit-appearance: none;
  /* стрелка в цвет акцента, чтобы селект не выглядел системно-чужим */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23BC9B51' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.lead-field select:focus { outline: none; border-color: var(--accent); background-color: var(--bg-pine); }
.lead-field select option { background: var(--bg-2); color: var(--ink); }

/* сообщение об ошибке под конкретным полем */
.lead-err { display: none; margin-top: 7px; font-size: 13.5px; line-height: 1.5; color: #C4756A; }
.lead-field.has-err .lead-err { display: block; }


.lead-channels { margin-top: 20px; }
.lead-channels .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn {
  font-family: var(--font-body); font-size: 14.5px; font-weight: 400;
  color: var(--soft); background: var(--bg-3);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 0 16px; min-height: 46px; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.seg-btn:hover { border-color: var(--accent-soft); color: var(--ink); }
.seg-btn[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent);
  color: var(--on-accent); font-weight: 500;
}

/* ловушка для ботов — вне экрана, но не display:none (боты его игнорируют) */
.lead-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-summary {
  margin: 22px 0 0;
  background: var(--bg-pine);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  padding: 16px 18px;
  font-size: 14.5px; line-height: 1.7; color: var(--soft);
  white-space: pre-line;
}
.lead-summary b { color: var(--ink); font-weight: 500; }

/* согласие и кнопка — вместе у правого края; кнопка спит, пока чекбокс не отмечен */
.lead-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 18px 28px; flex-wrap: wrap; margin-top: 26px;
}
.lead-consent {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 13.5px; color: var(--muted); line-height: 1.6;
  cursor: pointer; max-width: 26em;
}
.lead-consent input {
  width: 19px; height: 19px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer;
}
.btn:disabled { opacity: .4; cursor: default; pointer-events: none; }

.lead-result {
  margin-top: 22px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--bg-3); font-size: 15.5px; line-height: 1.7; color: var(--body);
}
.lead-result.is-ok { border-color: var(--accent-soft); }
.lead-result b { color: var(--ink); }
.lead-result pre {
  margin: 12px 0 0; padding: 14px 16px;
  background: var(--bg-pine); border: 1px solid var(--line); border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; line-height: 1.6; color: var(--soft);
  white-space: pre-wrap; overflow-x: auto;
}

@media (max-width: 700px) {
  .lead-form { padding: 26px 20px; margin-top: 34px; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-actions { gap: 16px; }
  .lead-actions .btn { width: 100%; }
  .lead-consent { max-width: none; }
}

/* ---------- FAQ на главной ---------- */

.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-display); font-size: clamp(19px, 2vw, 23px);
  color: var(--ink); line-height: 1.35;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-hi); }
.faq-item summary::after {
  content: ''; position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg); transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item p {
  padding: 0 0 24px; margin: 0; max-width: 44em;
  font-size: 16.5px; line-height: 1.75; color: var(--body);
}
