/* ==========================================================================
   ЦО «Склон» — статическая вёрстка (макет для новой темы WordPress)
   Визуал повторяет текущий сайт (1:1, чуть аккуратнее): чистый код.
   ========================================================================== */

/* ---------- Roboto (локально, вариативный woff2, без внешних запросов) ---------- */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены (палитра текущего сайта) ---------- */
:root {
  --color-bg: #f2f6fc;            /* холодный тон страницы (выбран вариант) */
  --color-text: #20283d;          /* тёмно-синий текст */
  --color-text-soft: #5b6779;     /* серый вторичный */
  --color-accent: #0878e8;        /* фирменный синий */
  --color-accent-dark: #0560c0;
  --color-danger: #e02b3f;        /* красный — кнопки бронирования / закрыто */
  --color-ok: #24803f;            /* зелёный — открыто (AA на белом) */
  --color-border: #d5dfee;
  --color-header-text: #20283d;

  /* Поверхности и подложки */
  --color-card: #ffffff;          /* белые карточки / поля форм */
  --color-soft: #e8eef8;          /* светлые подложки секций (page-head, зебра) */
  --color-soft-strong: #ecf3fd;   /* чуть более голубая подложка (callout) */
  --color-badge: #eaf2fe;         /* голубые бейджи и иконки-плашки */
  --color-cta-bg: #20283d;        /* тёмный CTA (страница проживания) */

  --font-main: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --container: 1440px;
  --radius-sm: 4px;
}

/* ---------- Базовые стили ---------- */
* { box-sizing: border-box; }
/* overflow-anchor: none — чтобы изменение высоты шапки не вызывало
   компенсацию скролла браузером (иначе «прыжки» при прокрутке вверх) */
html { overflow-anchor: none; }
body {
  margin: 0;
  /* position + z-index: создают stacking context, чтобы декоративный слой
     гор (.bg-decor-mountains, z-index:-1) рисовался над фоном body, но под контентом */
  position: relative;
  z-index: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.5em; color: var(--color-text); }
h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }
/* Телефон не переносится по частям (шапка, подвал, CTA, сайдбары, контент). */
a[href^="tel:"] { white-space: nowrap; }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.2em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Отступ под фиксированную шапку (десктоп: основной ряд 100px) */
main { padding-top: 108px; position: relative; }

.section { padding: 56px 0; }
/* Главная: компактные отступы между секциями
   (слайдер → Расписание → Проживание → О комплексе) */
.schedule-section { padding: 24px 0; }
.rooms-section { padding: 0 0 24px; }
.about-section { padding: 0 0 56px; }
.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 36px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s;
}
.btn-blue { background: var(--color-accent-dark); color: #fff; }
.btn-blue:hover { background: #044a94; color: #fff; }
.btn-red { background: var(--color-danger); color: #fff; }
.btn-red:hover { background: #c2192d; color: #fff; }
.btn-dark { background: #3a4663; color: #fff; }
.btn-dark:hover { background: #303a55; color: #fff; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

/* ---------- ШАПКА ---------- */
/* position: fixed, а не sticky: фиксированная шапка не влияет на поток
   документа, поэтому анимация сжатия не сдвигает контент и не создаёт
   цикл «прыгающего» скролла. Высоту шапки компенсирует main { padding-top } */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-bg);
  transition: box-shadow 0.25s ease;
}
/* Тень при прокрутке (класс добавляется скриптом) */
.header.is-stuck { box-shadow: 0 4px 16px rgba(20, 32, 58, 0.12); }

/* Админ-бар WP (#wpadminbar, fixed top:0) не перекрывает шапку сайта
   при авторизации: сдвигаем шапку вниз ровно на высоту админ-бара.
   Класс admin-bar на <body> и сдвиг потока (html margin-top) ставит
   сам WordPress, поэтому main { padding-top } трогать не нужно. */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) {
  /* на узких экранах админ-бар выше — 46px */
  body.admin-bar .header { top: 46px; }
  /* при открытом мобильном меню прячем админ-бар, иначе он (z-index 99998)
     перекрывает крестик закрытия поверх оверлея меню */
  body.menu-open #wpadminbar { display: none; }
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 100px;
  transition: min-height 0.25s ease;
}
.logo { flex: 0 0 auto; text-decoration: none !important; }
/* Логотип — по высоте (как в оригинале ~91px), а не по ширине:
   исходник почти квадратный (2024×2048), иначе шапка раздувается */
.logo img { height: 92px; width: auto; transition: height 0.25s ease; }
/* Сжатая шапка при прокрутке (десктоп) */
.header.is-stuck .header__inner { min-height: 70px; }
.header.is-stuck .logo img { height: 60px; }
.nav { flex: 1; margin-left: 20px; }
.nav__list { display: flex; justify-content: flex-start; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-header-text);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 8px 2px;
  transition: color 0.15s, font-size 0.25s;
}
.header.is-stuck .nav__link { font-size: 0.98rem; }
.nav__link:hover { color: var(--color-accent); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--color-accent); }
/* Шеврон у пунктов с подменю: поворот при наведении/фокусе */
.nav__caret {
  width: 14px; height: 14px;
  flex: 0 0 auto;
  color: inherit;
  transition: transform 0.2s ease;
}
.nav__item:hover .nav__caret,
.nav__item:focus-within .nav__caret { transform: rotate(180deg); }

/* Телефон в шапке (справа, отдельно от меню) */
.header__phone {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.15s;
}
.header__phone:hover { color: var(--color-accent); }
.header__phone svg {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  color: var(--color-accent);
}
.header__phone-text { display: flex; flex-direction: column; line-height: 1.25; }
.header__phone-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-soft);
}
.header__phone-num {
  font-size: 1.15rem;
  font-weight: 800;
  transition: font-size 0.25s ease;
}
.header.is-stuck .header__phone-num { font-size: 1rem; }
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 28px rgba(20, 32, 58, 0.16);
  padding: 8px;
  display: none;
  list-style: none;
  margin: 0;
  z-index: 100;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown { display: block; }
.nav__dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav__dropdown a:hover { background: var(--color-soft); color: var(--color-accent); text-decoration: none; }
.burger { display: none; background: none; border: 0; cursor: pointer; }
.burger span,
.burger::before,
.burger::after {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
}
.burger span { margin: 5px 0; }
.logo-text { display: none; }

/* ---------- МОБИЛЬНОЕ МЕНЮ (полноэкранная тёмная панель) ---------- */
.mobile-menu { display: none; }

@media (max-width: 1200px) {
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 400;
    background: #14112e;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; }
  .mobile-menu__panel {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .mobile-menu.is-open .mobile-menu__panel { opacity: 1; transform: translateY(0); }
  .mobile-menu__panel {
    height: 100%;
    overflow-y: auto;
    padding: 18px 24px 40px;
    display: flex;
    flex-direction: column;
  }
  .mobile-menu__close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
  }
  .mobile-menu__close:hover { opacity: 1; }
  .mobile-menu__brand { text-align: center; margin: 34px 0 26px; color: #fff; }
  .mobile-menu__title {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.9;
  }
  .mobile-menu__name { display: block; font-size: 1.55rem; font-weight: 800; margin-top: 2px; }
  .mobile-menu__slogan { display: block; font-size: 0.8rem; opacity: 0.6; margin-top: 6px; }
  .mobile-menu__list { list-style: none; margin: 0; padding: 0 0 0 12px; }
  .mobile-menu__item > a,
  .mobile-menu__row > a {
    display: block;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 500;
    padding: 11px 0;
    text-decoration: none;
  }
  .mobile-menu__item > a:hover,
  .mobile-menu__row > a:hover { color: #7fb2ff; }
  .mobile-menu__item > a[aria-current="page"] { color: #7fb2ff; }
  .mobile-menu__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .mobile-menu__row > a { flex: 1; }
  .mobile-menu__arrow {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3a3563;
    border: 0;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  .has-sub.is-open .mobile-menu__arrow { transform: rotate(180deg); }
  .mobile-menu__sub {
    list-style: none;
    margin: 0;
    padding: 0 0 6px 18px;
    display: none;
  }
  .has-sub.is-open .mobile-menu__sub { display: block; }
  .mobile-menu__sub a {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    padding: 8px 0;
    text-decoration: none;
  }
  .mobile-menu__sub a:hover { color: #fff; }
  .mobile-menu__phone { margin-top: 12px; }
  .mobile-menu__phone a { font-size: 1rem; font-weight: 400; opacity: 0.9; }
  .mobile-menu__phone a:hover { color: #fff; opacity: 1; }


}
body.menu-open { overflow: hidden; }
body.lightbox-open { overflow: hidden; }

/* ---------- ХИРО (карусель + погода) ---------- */
.hero {
  position: relative;
  max-width: var(--container);
  /* Зазор между фиксированной шапкой и слайдером на главной */
  margin: 24px auto 0;
}
.hero__carousel { position: relative; overflow: hidden; border-radius: 12px; touch-action: pan-y pinch-zoom; }
/* Лёгкое затемнение по краям: контраст для точек и граница с шапкой */
.hero__carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(8, 12, 30, 0.35), transparent 18%),
    linear-gradient(to top, rgba(8, 12, 30, 0.35), transparent 18%);
}
.hero__track { display: flex; transition: transform 0.5s ease; }
.hero__slide { flex: 0 0 100%; position: relative; }
/* Баннеры 1440×640 (9:4): высота считается от ширины, поэтому картинка
   показывается целиком и не обрезается по краям на любых экранах. */
.hero__slide > img { width: 100%; height: auto; aspect-ratio: 1440 / 640; object-fit: cover; display: block; }
.hero__dots {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 7;
}
.hero__dots button {
  position: relative;
  width: 12px; height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, width 0.2s, border-color 0.15s;
}
.hero__dots button.is-active {
  width: 26px;
  background: #fff;
  border-color: #fff;
}
/* Увеличиваем зону нажатия точки, не меняя её вид (для тача). */
.hero__dots button::before {
  content: "";
  position: absolute;
  inset: -12px -4px;
}
/* Стрелки карусели (десктоп) */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 31, 48, 0.55);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.hero__arrow:hover { background: var(--color-accent); box-shadow: 0 4px 14px rgba(8, 120, 232, 0.4); }
.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }

/* Расширяемый контент слайда (заголовок/подзаголовок/кнопка) — рендерится
   только если соответствующие поля заполнены в блоке. */
.hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 32px 40px;
  color: #fff;
  background: linear-gradient(to top, rgba(8, 12, 30, 0.6), transparent);
  pointer-events: none;
}
.hero__caption > * { pointer-events: auto; }
.hero__title { margin: 0 0 8px; font-size: 2rem; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.hero__subtitle { margin: 0 0 16px; font-size: 1.1rem; text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.hero__btn { margin-top: 4px; }

/* Заглушка блока в редакторе, когда слайды ещё не добавлены (дефолтов нет). */
.hero--empty {
  max-width: var(--container);
  margin: 24px auto 0;
  border-radius: 12px;
  background: var(--color-soft, #e8eef8);
  border: 1px dashed var(--color-border, #d5dfee);
}
.hero__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 24px;
  text-align: center;
  color: #5a6b85;
  font-weight: 500;
}


/* Плавающий виджет погоды (справа, над кнопкой dikidi) */
.weather-fab {
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #222c40;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(20, 30, 50, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.weather-fab:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 30, 50, 0.45);
}
.weather-fab__icon { font-size: 1.3rem; line-height: 1; }
.weather-fab__temp { font-size: 1.3rem; font-weight: 700; color: #ffd166; }

/* Плавающая кнопка записи (dikidi) — как на текущем сайте,
   видна на всех экранах, в правом нижнем углу. */
.dikidi-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  max-width: 210px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f9cff, #0857c8);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(8, 87, 200, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.dikidi-fab:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(8, 87, 200, 0.45); }

/* ---------- РАСПИСАНИЕ ---------- */
.legend { display: flex; justify-content: center; gap: 32px; margin-top: 14px; font-size: 0.95rem; color: var(--color-text-soft); }
.legend b { font-size: 1.15rem; margin-right: 6px; }
.legend .open { color: var(--color-ok); }
.legend .closed { color: var(--color-danger); }

/* Виджет «Расписание» на главной — табы по дням (структура из schedule.html) */
.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 8px;
  scrollbar-width: none;           /* Firefox: скрыть скроллбар */
}
.day-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1;
  min-width: 52px;
  padding: 10px 0;
  border: 1px solid transparent;
  background: var(--color-soft);
  color: var(--color-text-soft);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tab-btn:hover { background: var(--color-soft-strong); }
.tab-btn.is-active {
  background: var(--color-accent-dark);
  color: #fff;
}

.day-panels { margin-top: 16px; }
.day-panel { display: none; flex-direction: column; gap: 12px; }
.day-panel.is-active { display: flex; }

.service-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
.service-name { font-weight: 600; color: var(--color-text); }
.service-info { display: flex; align-items: center; gap: 12px; }
.status { font-size: 0.85rem; font-weight: 500; }
.status.open { color: var(--color-ok); }
.status.closed { color: var(--color-danger); }
.time { font-weight: 600; color: var(--color-text); }

.schedule-section .hint { text-align: center; color: var(--color-text-soft); font-size: 0.9rem; margin-top: 14px; }

/* Надпись-заглушка, когда расписание не создано / на день нет услуг */
.schedule-empty {
  margin-top: 16px;
  padding: 28px 24px;
  text-align: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text-soft);
}
.schedule-empty--day { padding: 20px 24px; margin-top: 0; }

@media (max-width: 480px) {
  .service-card { flex-direction: column; align-items: flex-start; gap: 6px; }
  .service-info { width: 100%; justify-content: space-between; }
}

/* ---------- ГОРИЗОНТАЛЬНЫЕ КАРУСЕЛИ (главная: «Проживание», «Блог») ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;          /* Firefox: скрыть скроллбар */
  padding: 4px;                   /* чтобы тень карточек при hover не обрезалась */
}
.carousel__track::-webkit-scrollbar { display: none; }
/* Одинаковая ширина карточек в обеих каруселях — блоки выглядят единообразно. */
.carousel--rooms .room-card,
.carousel--blog .post-card {
  flex: 0 0 auto;
  width: min(340px, 82vw);
  scroll-snap-align: start;
}
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 31, 48, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.carousel__arrow:hover { background: var(--color-accent); box-shadow: 0 4px 14px rgba(8, 120, 232, 0.4); }
.carousel__arrow--prev { left: -14px; }
.carousel__arrow--next { right: -14px; }
.carousel__more { text-align: center; margin-top: 28px; }
.carousel__more .btn { min-width: 260px; }

/* «Похожие» / «Может заинтересовать» на страницах номера и аренды.
   Секции выводятся внутри контейнера шаблона (section > container),
   поэтому добавляем только верхний отступ между ними. Заголовок — по левому краю. */
.related-section { margin-top: 56px; }
.related-section .section-title { text-align: left; }

/* Пустое состояние блока «Блог (карусель)» (видно только в редакторе). */
.blog-carousel--empty {
  padding: 24px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-soft);
  text-align: center;
}

/* Бейдж вместимости на карточке номера */
.room-card__capacity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--color-badge);
  color: var(--color-accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.room-card__capacity svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- ГАЛЕРЕЯ НОМЕРА (страницы номеров и аренды) ---------- */
.room-media { position: relative; }
.room-media .slider-track { display: flex; overflow: hidden; border-radius: var(--radius-sm); }
.room-media .slider-track img { width: 100%; height: 330px; object-fit: cover; flex: 0 0 100%; }
.room-media .slider-track > div { flex: 0 0 100%; }
.room-media .slider-track img { width: 100%; }
.room-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border: 0;
  background: rgba(23, 31, 48, 0.85);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.room-arrow:hover { background: var(--color-accent); }
.room-arrow--prev { left: 10px; }
.room-arrow--next { right: 10px; }

/* ---------- СПИСОК ДОЧЕРНИХ СТРАНИЦ (каталог прайсов) ---------- */
.catalog-list { display: flex; flex-direction: column; gap: 12px; }
.catalog-list__item {
  display: block;
  padding: 16px 20px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.catalog-list__item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 12px 32px rgba(8, 120, 232, 0.14);
  transform: translateY(-2px);
  color: var(--color-accent);
}

/* ---------- КАРТОЧКА НОМЕРА (вертикальная, для «Проживание») ---------- */
/* Flex-сетка: последний неполный ряд карточек центрируется */
.room-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.room-card {
  flex: 0 1 calc(25% - 15px); /* 4 колонки: 25% минус доля промежутков (3×20px / 4) */
  min-width: 260px;
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.room-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 12px 32px rgba(8, 120, 232, 0.14);
  transform: translateY(-3px);
}
.room-card__media { overflow: hidden; }
.room-card__media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.room-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
  text-align: center;
}
.room-card__title { font-size: 1.15rem; margin-bottom: 8px; }
.room-card__desc {
  color: var(--color-text-soft);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.room-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-danger);
  margin-bottom: 16px;
}
.room-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.room-card__actions .btn { flex: 1; padding: 9px 12px; font-size: 0.85rem; }

/* ---------- КОНТЕНТ СТРАНИЦЫ ---------- */
.page-head {
  background: var(--color-soft);
  border-bottom: 1px solid var(--color-border);
  padding: 30px 0;
}
.page-head h1 { margin: 0; }
.page-head__subtitle { margin: 10px 0 0; color: var(--color-text-soft); }
.breadcrumbs { font-size: 0.92rem; color: var(--color-text-soft); margin-bottom: 10px; }
.breadcrumbs a { color: var(--color-text-soft); }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs span { margin: 0 6px; }

/* Типографика текстовых блоков (блог, страницы — на всю ширину контейнера). */
.post-content h2 { margin-top: 1.3em; }
.post-content h3 { margin-top: 1.2em; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.post-content th, .post-content td { border: 1px solid var(--color-border); padding: 10px 14px; text-align: left; font-size: 0.95rem; }
.post-content th { background: var(--color-soft); }

/* ---------- О КОМПЛЕКСЕ (SEO-текст главной, разбит на блоки) ---------- */
.about__intro { text-align: center; max-width: 940px; margin: 0 auto 52px; }
.about__intro h2 { margin-bottom: 18px; }
.about__intro p { margin: 0; color: var(--color-text-soft); font-size: 1.05rem; }

.about__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.about-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.about-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 12px 32px rgba(8, 120, 232, 0.14);
  transform: translateY(-3px);
}
.about-card__icon {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 12px;
  background: var(--color-badge);
  color: var(--color-accent);
  margin-bottom: 20px;
}
/* Инлайн-SVG (макет apartments.html: иконки блока «Почему выбирают
   проживание») — размер как в макете, цвет наследуется из currentColor. */
.about-card__icon svg { width: 30px; height: 30px; }
/* Загруженная менеджером картинка-иконка (image-поле блока) — та же рамка
   30x30, вписывается без искажения (object-fit: contain). */
.about-card__icon img { width: 30px; height: 30px; object-fit: contain; }
/* Иконка через CSS mask (data-URI) — только для блоков, где иконка
   задаётся атрибутом data-icon (паттерн главной), без SVG в разметке,
   чтобы Gutenberg не ругался на «invalid content» в wp:html.
   Без data-icon ::before не рендерится (иначе виден залитый квадрат). */
.about-card__icon[data-icon]::before {
  content: "";
  width: 30px; height: 30px;
  background-color: var(--color-accent);
  -webkit-mask: var(--icon) center / 30px 30px no-repeat;
  mask: var(--icon) center / 30px 30px no-repeat;
}
.about-card__icon[data-icon="location"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.about-card__icon[data-icon="compass"]  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76'/%3E%3C/svg%3E"); }
.about-card__icon[data-icon="mountain"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 3 4 8 5-5 5 15H2L8 3z'/%3E%3C/svg%3E"); }
/* Иконки блока «Почему выбирают проживание» (apartments.html:161-207). */
.about-card__icon[data-icon="house"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V8l7-4 7 4v13M9 21v-6h6v6'/%3E%3C/svg%3E"); }
.about-card__icon[data-icon="bath"]  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16v12H4z M8 8V5a4 4 0 0 1 8 0v3 M10 12v4 M14 12v4'/%3E%3C/svg%3E"); }
.about-card__icon[data-icon="star"]  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l2.4 4.9 5.4.8-3.9 3.8.9 5.4-4.8-2.5-4.8 2.5.9-5.4L4.2 7.7l5.4-.8z'/%3E%3C/svg%3E"); }
.about-card__icon[data-icon="users"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6z M8 13a4 4 0 0 0-4 4v2h8v-2a4 4 0 0 0-4-4z M20 13h-2a3 3 0 0 1 0-6h2'/%3E%3C/svg%3E"); }
.about-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.about-card p { margin: 0; color: var(--color-text-soft); font-size: 0.98rem; }

.about__why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 42px 48px;
  margin-bottom: 56px;
}
.about__why-text h3 { margin-bottom: 12px; }
.about__why-text p { margin: 0; color: var(--color-text-soft); }
.about__why-list h4 {
  margin: 0 0 16px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-accent-dark);
}
.about__why-list ul { list-style: none; margin: 0; padding: 0; }
.about__why-list li { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; }
.about__why-list li::before {
  content: '✓';
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(46, 158, 79, 0.14);
  color: var(--color-ok);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 4px;
}

.about__weekend {
  border-left: 4px solid var(--color-accent);
  background: var(--color-soft-strong);
  border-radius: 0 12px 12px 0;
  padding: 26px 32px;
  margin-bottom: 56px;
}
.about__weekend h3 { margin-bottom: 10px; }
.about__weekend p { margin: 0; color: var(--color-text-soft); }

.about__cta { text-align: center; max-width: 860px; margin: 0 auto; }
.about__cta h3 { font-size: 1.5rem; margin-bottom: 12px; }
.about__cta p { margin: 0 auto; color: var(--color-text-soft); }
.about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* 4.4: Gutenberg оборачивает каждый wp:group в .wp-block-group__inner-container,
   из-за чего .about-card и .about__why-text/.about__why-list перестают быть
   прямыми потомками grid-контейнеров .about__cards/.about__why и сетка «едет».
   display:contents «просвечивает» эти обёртки — раскладка становится 1:1 с макетом.
   Затрагивает только блок «О комплексе». */
.about-section .wp-block-group__inner-container { display: contents; }

/* ---------- Проживание: продающие блоки (apartments.html) ---------- */
/* Класс-маркер секции: контейнер ограничивает сам `.container` (max-width 1440px) */

/* 1. Интро */
.acc__intro { text-align: center; max-width: 940px; margin: 0 auto 52px; }
.acc__intro h2 { margin-bottom: 18px; }
.acc__intro p { margin: 0 auto 26px; color: var(--color-text-soft); font-size: 1.05rem; max-width: 820px; }
.acc__intro .btn { margin: 0 6px 8px; }

/* 2. Преимущества — сетка иконок */
.acc__benefits { margin-bottom: 56px; }
.acc__benefits-title { text-align: center; margin-bottom: 30px; }
.acc__benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }


/* 4. «Больше, чем ночь в отеле» + что входит в цену */
.acc__value { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 56px; }
/* 5.2.3: Gutenberg оборачивает каждый wp:group в .wp-block-group__inner-container,
   из-за чего .acc__value-callout/.acc__value-included перестают быть прямыми
   потомками грида .acc__value и две колонки «схлопываются». display:contents
   просвечивает обёртку — раскладка 1:1 с макетом. */
.acc__value > .wp-block-group__inner-container { display: contents; }
.acc__value-callout {
  border-left: 4px solid var(--color-accent);
  background: var(--color-soft-strong);
  border-radius: 0 12px 12px 0;
  padding: 30px 32px;
}
.acc__value-callout h3 { margin-bottom: 12px; }
.acc__value-callout p { margin: 0; color: var(--color-text-soft); }
.acc__value-included h3 { margin-bottom: 16px; }
/* 5.2.3: чипы — core-список (ul.acc__chips > li.acc__chip), сбрасываем
   стандартные отступы/маркеры списка, чтобы осталась только «лента» чипов. */
.acc__chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding-left: 0; margin: 0; }
.acc__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--color-text);
}
.acc__chip::before { content: '✓'; color: var(--color-ok); font-weight: 800; }

/* 5. Финальный CTA */
.acc__cta {
  background: var(--color-cta-bg);
  color: #fff;
  border-radius: 12px;
  padding: 44px 40px;
  text-align: center;
}
.acc__cta h3 { color: #fff; font-size: 1.7rem; margin-bottom: 12px; }
.acc__cta p { margin: 0 auto 26px; color: #c9d2e0; max-width: 720px; font-size: 1.05rem; }
.acc__cta-phone { display: block; margin-bottom: 22px; }
.acc__cta-phone a { font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; }
.acc__cta-phone a:hover { color: #8fc3ff; }
.acc__cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Проживание: SEO-текст (вариант B, открытый) ---------- */
.seo-block {
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 36px 44px;
  margin-top: 8px;
}
.seo-block h2 {
  color: var(--color-accent-dark);
  border-left: 4px solid var(--color-accent);
  padding-left: 14px;
  margin-top: 1.4em;
}
.seo-block h2:first-child { margin-top: 0; }
.seo-block p { color: var(--color-text); }
.seo-list { list-style: none; padding: 0; margin: 0 0 1em; }
.seo-list li { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; }
.seo-list li::before {
  content: '✓';
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(46,158,79,0.14);
  color: var(--color-ok);
  font-size: 0.8rem; font-weight: 700;
  margin-top: 4px;
}

/* Страница номера / аренды.
   Раскладка: слева галерея, справа сайдбар с кнопкой брони; ниже на всю ширину —
   блок вкладок «Описание | Тарифы | Условия». Явные grid-позиции держат сайдбар
   в правой колонке и задают порядок на мобильных. */
.room-page { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.room-page > * { min-width: 0; }
.room-page > .room-gallery,
.room-page > .room-gallery--empty { grid-column: 1; grid-row: 1; }
.room-page > .room-sidebar { grid-column: 2; align-self: start; }
/* Вкладки — на всю ширину, под колонками (строка подбирается авто-размещением). */
.room-page > .room-tabs { grid-column: 1 / -1; }
.room-gallery { position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.room-gallery .slider-track { display: flex; transition: transform 0.5s ease; }
.room-gallery .slider-track > div { flex: 0 0 100%; }
.room-gallery img { width: 100%; height: 360px; object-fit: cover; display: block; }
/* Клик по фото галереи открывает лайтбокс (см. .sklon-lightbox ниже). */
.room-gallery img { cursor: zoom-in; }
.room-gallery--empty { height: 360px; background: var(--color-soft); border: 1px dashed var(--color-border); display: flex; align-items: center; justify-content: center; }
.room-gallery__placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--color-text-soft); }
.room-gallery__placeholder svg { width: 48px; height: 48px; opacity: 0.5; }
.room-gallery__placeholder span { font-size: 0.95rem; }

/* ---------- ЛАЙТБОКС (увеличение фото галереи) ---------- */
.sklon-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500; /* выше моб. меню (400), dikidi/weather (300) и cookie-баннера */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 30, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.sklon-lightbox.is-open { opacity: 1; visibility: visible; }
.sklon-lightbox__figure {
  position: relative;
  margin: 0;
  max-width: min(92vw, 1400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.sklon-lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  display: block;
}
.sklon-lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
}
.sklon-lightbox__close,
.sklon-lightbox__prev,
.sklon-lightbox__next {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 31, 48, 0.65);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.sklon-lightbox__close:hover,
.sklon-lightbox__prev:hover,
.sklon-lightbox__next:hover { background: var(--color-accent); box-shadow: 0 4px 14px rgba(8, 120, 232, 0.4); }
.sklon-lightbox__close { top: 20px; right: 20px; }
.sklon-lightbox__prev { top: 50%; left: 20px; transform: translateY(-50%); }
.sklon-lightbox__next { top: 50%; right: 20px; transform: translateY(-50%); }
.sklon-lightbox__prev[hidden],
.sklon-lightbox__next[hidden] { display: none; }
/* Вкладки «Описание | Тарифы | Условия»: панель кнопок + контейнер контента (как блок условий). */
.room-tabs__bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.room-tabs__tab {
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--color-soft);
  color: var(--color-text-soft);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.room-tabs__tab:hover { background: var(--color-soft-strong); }
.room-tabs__tab.is-active { background: var(--color-accent); color: #fff; }
.room-tabs__panel {
  display: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.room-tabs__panel.is-active { display: block; }
.room-tabs__panel > :first-child { margin-top: 0; }
.room-tabs__panel > :last-child { margin-bottom: 0; }
/* Таблицы, вставленные в ACF-редакторе (Описание/Тарифы/Условия) — 1:1 с .post-content */
.room-tabs__panel table,
.price-table__notes table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.room-tabs__panel th, .room-tabs__panel td,
.price-table__notes th, .price-table__notes td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.95rem;
}
.room-tabs__panel th, .price-table__notes th { background: var(--color-soft); }
.room-sidebar { border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 24px; align-self: start; }
.room-sidebar dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.room-sidebar dt { color: var(--color-text-soft); font-size: 0.9rem; }
.room-sidebar dd { margin: 0; font-weight: 700; }
.room-sidebar__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.room-sidebar__actions .btn { flex: 1; white-space: nowrap; padding: 11px 16px; }

/* Таблицы цен */
.price-table { margin: 1.4em 0; }
.price-table__period {
  display: inline-block;
  background: var(--color-badge);
  color: var(--color-accent-dark);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}
/* Таблицы прайса в теле страницы (блок «Таблица» Gutenberg).
   Вид 1:1 с прежней обёрткой .schedule: центр, первая колонка — слева,
   широкие таблицы прокручиваются по горизонтали на мобильном. */
.price-section .wp-block-table { margin: 1.4em 0; overflow-x: auto; }
.price-section .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-card);
  min-width: 640px;
}
.price-section .wp-block-table th,
.price-section .wp-block-table td {
  border: 1px solid var(--color-border);
  padding: 11px 12px;
  text-align: center;
  font-size: 0.95rem;
  vertical-align: middle;
}
/* Гасим стили ядра WP у блока «Таблица» (толстая линия под шапкой/над подвалом) */
.price-section .wp-block-table thead { border-bottom: 0; }
.price-section .wp-block-table tfoot { border-top: 0; }
.price-section .wp-block-table thead th { background: var(--color-soft); font-weight: 700; }
.price-section .wp-block-table tbody tr > :first-child { font-weight: 600; text-align: left; }
.price-section .wp-block-table figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  text-align: center;
}

/* ---------- ФОРМЫ ---------- */
.form-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 30px;
  background: var(--color-soft);
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--color-card);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--color-accent); }
.form-field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-consent { font-size: 0.88rem; color: var(--color-text-soft); display: flex; gap: 10px; align-items: flex-start; }
/* чекбоксы согласия: фиксированный размер, без растягивания, по левому краю формы */
.form-consent input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 1px 0 0;
  padding: 0;
  border: 1px solid var(--color-border);
  accent-color: var(--color-accent);
  cursor: pointer;
}
.form-consent label {
  display: inline;
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text-soft);
  margin: 0;
  cursor: pointer;
}
.form-consent label a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.form-consent label a:hover { color: var(--color-accent-dark); }

/* Yandex SmartCaptcha: резервируем высоту до загрузки виджета */
.form-captcha { margin-bottom: 18px; }
.form-captcha .wpcf7-form-control-wrap { display: block; }
.form-captcha .smart-captcha { min-height: 100px; }
.form-captcha .wpcf7-not-valid-tip { display: block; }
/* На телефонах карточка формы контактов была слишком узкой для виджета
   SmartCaptcha (300px): уменьшаем внутренние отступы, чтобы капча не
   выходила за границы карточки. */
@media (max-width: 768px) {
  .contact-form .form-card { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 370px) {
  .contact-form .form-card { padding-left: 8px; padding-right: 8px; }
  .form-captcha .smart-captcha { transform: scale(0.95); transform-origin: top left; }
}
/* Очень узкие экраны (≤350px): виджет SmartCaptcha фиксированной ширины 300px
   не помещается — уменьшаем его, чтобы не было горизонтального скролла. */
@media (max-width: 350px) {
  .contact-form .form-card { padding-left: 6px; padding-right: 6px; }
  .form-captcha .smart-captcha { transform: scale(0.85); transform-origin: top left; }
}

/* ---------- CF7: маппинг разметки плагина на стили темы ---------- */
.wpcf7 form.wpcf7-form { margin: 0; }
/* CF7 автоматически оборачивает каждую строку шаблона в <p> — убираем
   дефолтные отступы, чтобы они не двоились с margin у .form-field. */
.wpcf7 .form-card p { margin: 0; }
.wpcf7 .wpcf7-response-output {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
/* Поля CF7: текстовые/дата/select/textarea на всю ширину.
   Чекбоксы (acceptance) исключаем — у них свой размер. */
.wpcf7 .form-field .wpcf7-form-control-wrap { display: block; }
.wpcf7 .form-field .wpcf7-form-control-wrap input:not([type="checkbox"]):not([type="radio"]),
.wpcf7 .form-field .wpcf7-form-control-wrap textarea,
.wpcf7 .form-field .wpcf7-form-control-wrap select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--color-card);
}
.wpcf7 .form-field .wpcf7-form-control-wrap input:not([type="checkbox"]):not([type="radio"]):focus,
.wpcf7 .form-field .wpcf7-form-control-wrap textarea:focus { outline: none; border-color: var(--color-accent); }

/* Согласия (acceptance): чекбокс + текст в одну строку, выровнены по верху. */
.form-consent .wpcf7-list-item { display: block; margin: 0; }
.form-consent .wpcf7-list-item > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text-soft);
  cursor: pointer;
}
.form-consent .wpcf7-list-item > label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 1px 0 0;
  padding: 0;
  border: 1px solid var(--color-border);
  accent-color: var(--color-accent);
  cursor: pointer;
}
.form-consent .wpcf7-list-item-label { display: inline; }
.form-consent .wpcf7-list-item-label a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.form-consent .wpcf7-list-item-label a:hover { color: var(--color-accent-dark); }

/* Кнопка submit CF7 → вид .btn .btn-red */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s;
}
.wpcf7 input[type="submit"].btn-red,
.wpcf7 .wpcf7-submit.btn-red {
  background: var(--color-danger);
  color: #fff;
}
.wpcf7 input[type="submit"].btn-red:hover,
.wpcf7 .wpcf7-submit.btn-red:hover { background: #c2192d; color: #fff; }
/* Ошибки валидации */
.wpcf7-not-valid-tip {
  color: var(--color-danger);
  font-size: 0.82rem;
  margin-top: 4px;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border: 1px solid var(--color-danger);
  background: rgba(224, 43, 63, 0.08);
  color: var(--color-danger);
}
.wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid var(--color-ok);
  background: rgba(46, 158, 79, 0.08);
  color: var(--color-ok);
}
/* Спиннер загрузки CF7 */
.wpcf7 .wpcf7-spinner { margin: 12px 0 0; }

/* ---------- МОДАЛЬНОЕ ОКНО БРОНИРОВАНИЯ ---------- */
.sklon-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 30, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.sklon-booking-modal.is-open { opacity: 1; visibility: visible; }
.booking-modal__panel {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-card);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  padding: 36px 32px 28px;
}
.booking-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--color-text-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}
.booking-modal__close:hover { color: var(--color-danger); }
.booking-modal__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.booking-modal__subject {
  margin: -8px 0 16px;
  padding: 10px 14px;
  background: var(--color-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--color-text-soft);
}
.booking-modal__subject strong { color: var(--color-accent); }
.booking-modal__panel .form-card {
  border: none;
  background: transparent;
  padding: 0;
}
.booking-modal__phone {
  text-align: center;
  margin-top: 20px;
  color: var(--color-text-soft);
  font-size: 0.92rem;
}
.booking-modal__phone a { font-weight: 700; }
body.modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .sklon-booking-modal { padding: 12px; }
  .booking-modal__panel { padding: 24px 18px 20px; }
}

/* ---------- КОНТАКТЫ / БЛОГ ---------- */
/* Контакты: слева информация, справа крупная карта; форма — ниже на всю ширину. */
.contact-top {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 36px;
  align-items: stretch;
}
.contact-info { display: grid; grid-template-columns: 1fr; gap: 16px; align-content: start; }
.contact-info__title { margin: 0 0 4px; font-size: 1.4rem; }
.contact-map {
  position: relative;
  min-height: 460px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-card);
  box-shadow: 0 8px 28px rgba(32, 40, 61, 0.08);
}
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.contact-form { margin-top: 40px; }
.contact-form__title { margin: 0 0 18px; font-size: 1.4rem; }
.contact-item { border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 18px; }
.contact-item h3 { margin: 0 0 6px; font-size: 0.95rem; color: var(--color-text-soft); text-transform: uppercase; letter-spacing: 0.5px; }
.contact-item a, .contact-item p { font-weight: 600; margin: 0; font-size: 1.05rem; }
.grid { display: grid; gap: 28px; }

/* Блог: карточки с изображениями */
/* Поиск + блог: 4 карточки в ряд на широких экранах (≤1200 — 2, ≤768 — 1). */
.grid--blog { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 14px 36px rgba(8, 120, 232, 0.14);
  transform: translateY(-4px);
}
.post-card__media { display: block; overflow: hidden; }
.post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.post-card:hover .post-card__media img { transform: scale(1.05); }
/* Заглушка, если у поста нет избранного изображения (карточка того же размера). */
.post-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: var(--color-soft);
}
.post-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-soft);
}
.post-card__placeholder svg { width: 40px; height: 40px; opacity: 0.5; }
.post-card__placeholder span { font-size: 0.9rem; }
.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}
.post-card__date { font-size: 0.84rem; color: var(--color-text-soft); letter-spacing: 0.3px; }
.post-card__date::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.post-card__title { font-size: 1.18rem; line-height: 1.4; margin: 8px 0 10px; }
.post-card__title a { color: var(--color-text); }
.post-card__title a:hover { color: var(--color-accent); }
.post-card__excerpt {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}
.post-card__more svg { width: 18px; height: 18px; transition: transform 0.2s; }
.post-card__more:hover { color: var(--color-accent-dark); }
.post-card__more:hover svg { transform: translateX(4px); }

/* Контент записи/страницы на всю ширину контейнера (менеджер свободно
   добавляет блоки). Типографика заголовков/таблиц — ниже. */
.post-content { max-width: none; margin: 0; }

/* ---------- ПОДВАЛ ---------- */
.footer {
  position: relative;
  /* Сплошной цвет = цвету подножия гор (mountains.svg) — единое целое */
  background: #0e0e2a;
  color: #9db8ea;
  margin-top: 0;
}
.footer a { color: #9db8ea; }
.footer a:hover { color: #fff; }
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 34px 24px 26px;
}
.footer__map { max-width: 620px; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.footer__map iframe { width: 100%; height: 360px; border: 0; display: block; }
.footer__addr { max-width: 620px; font-size: 0.95rem; color: #9db8ea; margin: 14px 0 0; }
/* Сведения об исполнителе в подвале (ЗоЗПП ст.9) */
.footer__legal { max-width: 620px; margin: 16px 0 0; font-size: 0.82rem; line-height: 1.65; color: #93a7c9; }
.footer__legal p { margin: 0 0 4px; }
.footer__legal-title { color: #9db8ea; font-weight: 700; letter-spacing: 0.4px; }
.footer__legal a { color: #8fc2ff; text-decoration: underline; }
.footer__right { text-align: center; }
.footer__phones { font-size: 0.95rem; line-height: 1.7; color: #9db8ea; margin: 0 0 18px; }
.footer__phones a { font-weight: 600; white-space: nowrap; }
.footer__docs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8fc2ff;
}
.footer__docs:hover { color: #fff; }
.footer__docs svg { width: 26px; height: 26px; fill: currentColor; }
.footer__divider {
  height: 1px;
  width: 70%;
  margin: 20px auto;
  background: rgba(255,255,255,0.25);
}
.footer__socials-title {
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7fb2ff;
  margin: 0 0 14px;
}
.footer__socials { display: flex; justify-content: center; gap: 12px; }
.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 6px;
  color: #fff;
  transition: transform 0.15s;
}
.footer__socials a:hover { color: #fff; transform: translateY(-2px); }
.footer__socials svg { width: 26px; height: 26px; fill: currentColor; }
.footer__socials .social-vk { background: #4d76a3; }
.footer__socials .social-tg { background: #2aabee; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.footer__bottom a { font-size: 0.88rem; color: #8b97ad; }
.footer__bottom a:hover { color: #fff; }
.footer__copyright {
  padding: 0 24px 16px;
  text-align: center;
  font-size: 0.88rem;
  color: #8b97ad;
}

/* ---------- COOKIE ---------- */
.cookie-banner {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 200;
  max-width: 560px;
  background: #1c2536;
  color: #e7ecf4;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
  padding: 18px 20px;
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-banner a { color: #7fb2ff; }
.cookie-banner.is-hidden { display: none; }

/* ---------- 404 / ПОИСК ---------- */
/* Серый .page-head (крошки + H1) — как на остальных страницах, ниже — контент. */
.notfound-section {
  background:
    radial-gradient(900px 360px at 50% -10%, #ffffff 0%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(180deg, #e9f2fd 0%, var(--color-bg) 100%);
  padding: 36px 0 72px;
}
.notfound { text-align: center; }
.notfound__scene { max-width: 720px; margin: 0 auto; }
.notfound__code {
  display: block;
  font-size: clamp(96px, 20vw, 200px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #2b9bf0 0%, #0878e8 45%, #1b2d54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 18px 30px rgba(8, 120, 232, 0.18));
}
.notfound__mountains { display: block; width: 100%; height: 150px; margin-top: -6px; }
.notfound__text { max-width: 560px; margin: 0 auto 28px; color: var(--color-text-soft); font-size: 1.05rem; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 40px; }
.notfound__search { max-width: 520px; margin: 0 auto 34px; }
.notfound__search-hint { margin: 0 0 10px; color: var(--color-text-soft); font-size: 0.95rem; }
.notfound .search-form { max-width: none; margin: 0; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; }
.notfound__links a {
  padding: 7px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-card);
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.notfound__links a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 6px 16px rgba(8, 120, 232, 0.14);
  transform: translateY(-2px);
}
/* Мягкое появление блоков (если пользователь не против анимации). */
@media (prefers-reduced-motion: no-preference) {
  .notfound__code { animation: nf-rise 0.7s ease-out both; }
  .notfound__mountains { animation: nf-rise 0.7s 0.08s ease-out both; }
  .notfound__text,
  .notfound__actions,
  .notfound__search,
  .notfound__links { animation: nf-fade 0.6s 0.18s ease-out both; }
}
@keyframes nf-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes nf-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
  .notfound-section { padding: 28px 0 48px; }
  .notfound__mountains { height: 120px; margin-top: -4px; }
  .notfound__actions { flex-direction: column; align-items: stretch; margin-bottom: 30px; }
  .notfound__actions .btn { width: 100%; }
  .notfound__search { margin-bottom: 26px; }
}

.search-form { max-width: 480px; margin-top: 16px; }

/* Страница поиска: форма сверху на всю ширину контейнера (инпут + кнопка в строку). */
.search-section .search-form {
  max-width: none;
  margin: 0 0 28px;
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.search-section .search-form .form-field { flex: 1; margin: 0; }
.search-section .search-form .form-field input { height: 100%; }
.search-section .search-form .btn { white-space: nowrap; }

/* ---------- СХЕМА ТРАСС (/trassy/, panzoom) ---------- */
.track-map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.track-map svg { display: block; width: 100%; height: auto; }
.track-map__controls {
  position: absolute;
  /* Верхний правый угол карты: не пересекается с плавающими кнопками
     (.weather-fab / .dikidi-fab стоят в правом нижнем углу вьюпорта). */
  right: 12px;
  top: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.track-map__btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 14, 42, 0.72);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.track-map__btn:hover { background: var(--color-accent); box-shadow: 0 4px 14px rgba(8, 120, 232, 0.4); }

/* ---------- Декоративный слой: горы ---------- */
/* Силуэт гор стоит в потоке между контентом и футером — появляется вместе
   с футером при доскролле. Подножие переднего ряда в SVG = цвету футера
   (#0e0e2a), футер залит тем же сплошным цветом — горы и футер выглядят
   единым целым (бесшовный переход). Форма и цвета — в mountains.svg. */
.bg-decor-mountains {
  z-index: -1;
  height: 240px;
  background: url("../mountains.svg") bottom center / 100% 100% no-repeat;
  pointer-events: none;
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 1200px) {
  main { padding-top: 58px; }
  /* Слайдер ближе к шапке на мобильных (десктоп: margin-top 24px) */
  .hero { margin-top: 8px; }
  .header__inner { min-height: 58px; justify-content: center; position: relative; gap: 10px; }
  .logo { display: flex; align-items: center; width: auto; }
  .logo img { width: auto; height: 46px; max-height: 46px; }
  .logo-text {
    display: block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }
  .nav, .nav__list { display: none; }
  .header__phone { display: none; }
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
  }
  .room-page { grid-template-columns: 1fr; }
  /* На мобильных — естественный порядок DOM: галерея → сайдбар (кнопка) → вкладки */
  .room-page > .room-gallery,
  .room-page > .room-gallery--empty,
  .room-page > .room-sidebar,
  .room-page > .room-tabs { grid-column: auto; grid-row: auto; }
  .acc__benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .acc__value { grid-template-columns: 1fr; }
  .room-cards .room-card { flex: 0 1 calc(50% - 10px); } /* 2 колонки на планшете */
  .grid--blog { grid-template-columns: repeat(2, 1fr); } /* поиск/блог: 2 карточки на планшете */
}
@media (max-width: 768px) {
  .bg-decor-mountains { height: 140px; }
  .form-field--row { grid-template-columns: 1fr; }
  /* поиск: форма в столбик (инпут + кнопка на всю ширину) */
  .search-section .search-form { flex-direction: column; gap: 10px; }
  .search-section .search-form .btn { width: 100%; }
  /* контакты: карта под информацией, компактнее */
  .contact-top { grid-template-columns: 1fr; gap: 24px; }
  .contact-map { min-height: 320px; }
  .contact-form { margin-top: 28px; }
  /* крупнее чекбоксы согласия для удобного нажатия на мобильных */
  .form-consent input { width: 22px; height: 22px; min-width: 22px; margin-top: 0; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .footer__map iframe { height: 260px; }
  .hero__arrow { display: none; }
  /* стрелок нет — листаем свайпом, точки делаем удобнее для пальца */
  .hero__dots { gap: 16px; bottom: 14px; }
  .hero__dots button::before { inset: -12px -8px; }
  .weather-fab { right: 12px; bottom: 78px; }
  /* карусели на главной: стрелки скрыты, работает нативный свайп */
  .carousel__arrow { display: none; }
  .carousel--rooms .room-card,
  .carousel--blog .post-card { width: 82vw; }
  .carousel__track { gap: 14px; }
  .room-media .slider-track img { height: 240px; }
  /* лайтбокс: компактнее кнопки и отступы */
  .sklon-lightbox { padding: 12px; }
  .sklon-lightbox__img { max-height: 76vh; }
  .sklon-lightbox__close,
  .sklon-lightbox__prev,
  .sklon-lightbox__next { width: 40px; height: 40px; font-size: 1.4rem; }
  .sklon-lightbox__close { top: 10px; right: 10px; }
  .sklon-lightbox__prev { left: 8px; }
  .sklon-lightbox__next { right: 8px; }
  .carousel__more .btn { width: 100%; }
  /* кнопка записи (dikidi): на мобильных прижата к низу на всю ширину */
  .dikidi-fab {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    border-radius: 0;
    padding: 14px 18px;
  }
  .dikidi-fab:hover { transform: none; }
  /* плавающие кнопки прижаты к низу вьюпорта (dikidi 0–47px, погода 78–117px) —
     нижнему блоку футера (копирайту) добавляем отступ, иначе он под ними прячется */
  .footer__copyright { padding-bottom: 130px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 78px; max-width: none; }
  /* SEO-блоки главной */
  .about__intro { margin-bottom: 36px; }
  .about__cards { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .about__why { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; margin-bottom: 36px; }
  .about__weekend { padding: 22px 20px; margin-bottom: 36px; }
  .about__cta-buttons { flex-direction: column; align-items: stretch; }
  .about__cta-buttons .btn { width: 100%; }

  /* Проживание: продающие блоки */
  .acc__intro { margin-bottom: 36px; }
  .acc__benefits-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .acc__value { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .acc__value-callout { padding: 22px 20px; }
  .acc__cta { padding: 32px 22px; }
  .acc__cta-buttons { flex-direction: column; align-items: stretch; }
  .acc__cta-buttons .btn { width: 100%; }
  .seo-block { padding: 24px 20px; margin-top: 8px; }

  /* Карточки номеров */
  .room-cards .room-card { flex: 0 1 100%; } /* 1 колонка на мобильном */
  .room-card__media img { height: 200px; }
  .room-card__actions { flex-direction: row; }
  .room-card__actions .btn { flex: 1; width: auto; padding: 8px 10px; font-size: 0.78rem; white-space: nowrap; }
}

/* Поиск/блог: на планшетах — 2 карточки, в одну колонку — только на телефонах */
@media (max-width: 640px) {
  .grid--blog { grid-template-columns: 1fr; }
}

/* ==========================================================================
   WORDPRESS / GUTENBERG — совместимость темы
   ========================================================================== */

/* Доступность: класс WordPress для скрытого текста (экранные читалки) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Широкие / полноширинные блоки Gutenberg (тема поддерживает align-wide) */
.alignwide  { max-width: calc(var(--container) + 240px); margin-left: auto; margin-right: auto; }
.alignfull  { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }

/* Полноширинные блоки внутри контента (.post-content) */
.post-content .alignwide { max-width: min(1100px, 92vw); }
.post-content .alignfull {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100vw;
}

/* Базовые блоки */
.wp-block-image img { height: auto; }
.wp-block-image figcaption,
.wp-block-gallery figcaption,
.wp-caption-text,
.gallery-caption {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  text-align: center;
  margin-top: 8px;
}
.wp-block-gallery {
  display: grid;
  grid-gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin: 1.5em 0;
}
.wp-block-gallery .blocks-gallery-item { margin: 0; }
.wp-block-quote {
  border-left: 4px solid var(--color-accent);
  margin: 1.5em 0;
  padding: 8px 0 8px 20px;
}
.wp-block-quote cite { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--color-text-soft); }
.wp-block-button__link {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid currentColor;
}
.wp-block-separator { border: 0; border-top: 1px solid var(--color-border); margin: 2em 0; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; margin: 1.5em 0; }
.wp-block-column { flex: 1 1 240px; min-width: 0; }

/* Комментарии и пагинация */
.nav-links { display: flex; gap: 8px; justify-content: center; margin: 32px 0; flex-wrap: wrap; }
.nav-links a, .nav-links span {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  text-decoration: none;
}
.nav-links .current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--color-border); }

/* Стиль блока «Список с галочками» (is-style-sklon-checks) — зелёная галочка-кружок,
   как у .seo-list, но применяется к ЛЮБОМУ списку через панель «Стили» в редакторе. */
.wp-block-list.is-style-sklon-checks { list-style: none; padding: 0; margin: 0 0 1em; }
.wp-block-list.is-style-sklon-checks li { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; }
.wp-block-list.is-style-sklon-checks li::before {
  content: '\2713';
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(46,158,79,0.14);
  color: var(--color-ok);
  font-size: 0.8rem; font-weight: 700;
  margin-top: 4px;
}

/* ДОКУМЕНТЫ (страница /dokumenty/) — карточки-строки на всю ширину
   контейнера: заголовок сверху + бейдж «DOC» под ним, кнопка справа. */
.doc-list {
  display: grid;
  gap: 16px;
}
/* Гутенберг оборачивает блоки в .wp-block-group__inner-container —
   «растворяем» обёртку, чтобы карточки стали элементами грида (gap). */
.doc-list > .wp-block-group__inner-container { display: contents; }
.doc-list .wp-block-file {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.doc-list .wp-block-file > a:first-child {
  flex: 1;
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  text-decoration: none;
}
.doc-list .wp-block-file > a:first-child:hover { color: var(--color-accent); }
.doc-list .wp-block-file > a:first-child::after {
  content: 'DOC';
  display: block;
  width: fit-content;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 4px;
  background: #eaf2fe;
  color: #0560c0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.65;
}
.doc-list .wp-block-file .wp-block-file__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 11px 26px;
  background: var(--color-accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
}
.doc-list .wp-block-file .wp-block-file__button:hover { background: var(--color-accent-dark); color: #fff; }

@media (max-width: 640px) {
  .doc-list .wp-block-file { flex-wrap: wrap; gap: 12px; }
  .doc-list .wp-block-file > a:first-child { flex: 1 1 100%; }
}

/* ===== Этап 12: длинные ссылки в тексте (юр. страницы) не рвут layout =====
   + цвет accent-dark: даёт контраст ≥4.5 на холодном фоне страницы (AA). */
.section p a,
.section li a,
.section td a,
.post-content a {
  color: var(--color-accent-dark);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.section p a:hover,
.section li a:hover,
.section td a:hover,
.post-content a:hover {
  color: #044a94;
}

/* ===== Этап 12: видимый фокус для клавиатурной навигации ===== */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
.room-card:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 12px;
}
.tab-btn:focus-visible,
.room-tabs__tab:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
