/* ==========================================================================
   common.css — всё общее для всех контроллеров (FRONTEND_STANDARDS.md, раздел 17): токены, база, шапка, подвал,
   общие блоки и виджеты, которые встречаются у двух и более контроллеров (карточки, крошки, шапка страницы,
   табы, выдвижная панель, счётчик количества, шаги, раскладка с сайдбаром). Блоки одного контроллера — в его файле
   (site.css, categories.css…), окна — в modals.css.

   1. Токены. Значения — стартовые, уточняются по макету
      (ориентиры — FRONTEND_STANDARDS.md, разделы 3 и 17)
   ========================================================================== */

/* stylelint-disable color-no-hex, function-disallowed-list */
:root {
  /* Цвета */
  --color-bg: #fff;
  --color-surface: #f1f5f8; /* --color-page-alt: светлые панели и секции витрины */
  --color-page-alt: #f1f5f8;
  --color-text: #183244;
  --color-text-muted: #5a6b78;
  --color-accent: #047c8f; /* бирюза TipTopTrip из утверждённого референса */
  --color-accent-hover: #03697a;
  --color-on-accent: #fff;
  --color-border: #dfe6ec;
  --color-border-strong: #8a99a6;
  --color-accent-soft: #e6f3f5;
  --color-sand: #f3ece2; /* полоса «У вас есть жильё у моря?» */
  --color-star: #f2a01b;
  --color-image-bg: #e9eef2;
  --color-glass: rgb(255 255 255 / 92%); /* подложка значков поверх фото */
  --color-photo-shade: rgb(6 28 38 / 78%); /* затемнение низа фото под белым текстом */
  --color-photo-clear: rgb(6 28 38 / 0%);
  --color-error: #c62828;

  /* Статусы — под палитру бренда, не «системный» зелёный по умолчанию (раздел 17) */
  --color-success: #035c6a; /* текст «успеха» на светлом тоне — контраст ≥ 4,5 */

  /* Подложка выдвижной панели и тот же цвет сплошным поверх --color-bg: им красится фон html под полосой
     прокрутки, пока панель открыта (scrollbar-gutter оставляет полосу, слой подложки её не закрывает) */
  --color-overlay: rgb(16 24 40 / 45%);
  --color-overlay-solid: #93979e;

  /* Подложка под окнами: лёгкое размытие и едва заметный тон, без тёмной заливки (стандарт, раздел «Доступность») */
  --color-backdrop: rgb(16 24 40 / 10%);
  --backdrop-blur: 4px;
  --color-sunshine: #efb645;
  --color-sunshine-soft: #fcf3de;
  --color-sunset: #ff7a59; /* второй акцент (макет M1, 2026-11-26): только декор — столбики, прогресс, точки; не текст */
  --color-sunset-soft: #ffeae3;
  --color-tint-border: #d5e8eb; /* лёгкая рамка бирюзовой главы */
  --color-tint: #f2f8f9; /* мягкая бирюзовая подложка: каждая вторая глава курорта (владелец 2026-11-26) */
  --color-hero-text: var(--color-bg);
  --color-hero-soft: #eff7f9;
  --color-hero-tint: var(--color-photo-shade);
  --color-hero-clear: rgb(6 28 38 / 8%);
  --color-hero-label: rgb(6 28 38 / 70%);
  --color-region-shade: rgb(6 28 38 / 92%);
  --color-region-clear: var(--color-photo-clear);
  --color-destination-shade: rgb(4 31 44 / 88%);
  --color-destination-tint: rgb(4 31 44 / 64%);
  --shadow-editorial: 0 16px 48px rgb(16 40 56 / 9%);
  --radius-xl: 24px;
  --hero-inner-padding: clamp(20px, 2vw + 8px, 40px);
  --text-page-title: clamp(min(1.875rem, 7.6vw), min(1.35vw + 1.5rem, 7.6vw), 2.75rem);
  --text-home-h2: var(--text-h2);
  --z-content: 1;

  /* Шрифты: файлы woff2 — в fonts/, @font-face — в разделе 2 */
  --font-base: manrope, system-ui, -apple-system, 'Segoe UI', roboto, sans-serif;
  --font-accent: var(--font-base);
  --font-hand: caveat, 'Segoe Print', cursive; /* рукописные подписи на фото, как в макете */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 600; /* заголовки, цены и цифры не жирнее 600 (раздел 17, «Вид 2026») */

  /* Кегли: мобильный → десктоп; максимум — значение на 1440, где контейнер перестаёт расти. Кегли растут со шрифтом
     браузера: доля rem в формуле не меньше доли vw на 1440 (при 200 % кегль ×1,5 и больше); верхний предел в vw —
     длинное слово заголовка помещается на телефоне и при крупном шрифте (не рвётся по буквам) */
  --text-hero: clamp(min(2.125rem, 11vw), 3.2vw + 1.25rem, min(4.125rem, 11vw));
  --text-h1: clamp(min(1.875rem, 7.6vw), min(1.33vw + 1.55rem, 7.6vw), 2.75rem); /* 30 → 44, шапка низкая (раздел 17) */
  --text-h2: clamp(min(1.5rem, 7.4vw), 0.7vw + 1.3rem, 2rem); /* 24 → 32: макет плотный, H2 секций ~28–32 */
  --text-h3: clamp(1.25rem, 0.6vw + 1.0625rem, 1.625rem);
  --text-lead: clamp(1.0625rem, 0.4vw + 0.9688rem, 1.3125rem);
  --text-base: clamp(1rem, 0.2vw + 0.95rem, 1.125rem);
  --text-button: 1rem;
  --text-small: 0.875rem;
  --leading-tight: 1.1;
  --leading-heading: 1.25;
  --leading-text: 1.55;

  /* Отступы: шкала и роли */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Ритм секций (раздел 17): между соседними секциями — --section-gap, у каждой секции половина сверху и снизу
     (--section-y); от последнего блока до подвала — тоже --section-gap (половина секции + половина у main) */
  --section-gap: clamp(56px, 2.3vw + 47px, 80px);
  --section-y: calc(var(--section-gap) / 2);

  /* Отступ от шапки страницы до контента — один на всех страницах; верх закреплённого сайдбара (раздел 17) */
  --hero-gap: clamp(24px, 0.76vw + 21px, 32px);
  --sticky-top: calc(var(--header-height) + var(--space-4));
  --destination-padding: clamp(16px, 0.75vw + 10px, 20px);
  --destination-gutter: clamp(16px, 2vw + 4px, 40px);
  --text-destination: clamp(1.5rem, 1.4vw + 1.25rem, 2.375rem);
  --text-context-title: clamp(min(1.75rem, 7.6vw), min(0.9vw + 1.5rem, 7.6vw), 2.25rem);
  --section-head-gap: clamp(20px, 0.6vw + 18px, 28px); /* макет плотный: заголовок → карточки ~24 */
  --grid-gap: clamp(12px, 1.15vw + 7.5px, 24px);
  --card-padding: clamp(20px, 0.8vw + 17px, 28px);

  /* Размеры. Сетка по умолчанию (FRONTEND_STANDARDS.md, раздел 3 «Сетка»): контент 1360 + поля 40 на 1440,
     шире не растёт — дальше страница по центру */
  --container: 1360px;
  --container-padding: clamp(16px, 2.5vw + 8px, 40px);

  /* Высота закреплённой шапки — по замеру на всех ширинах, где она закреплена целиком (тест «шапка выше
     --header-height»); якорь встаёт ниже шапки на --anchor-gap */
  --header-height: clamp(56px, 1.6vw + 50px, 73px);
  --anchor-gap: var(--space-4);
  --control-height: clamp(48px, 0.5vw + 46px, 53px);

  /* Шапка страницы — ровно три типа (раздел 17), высоты только токенами; свои высоты на странице запрещены.
     Ориентиры (крошки не входят): «заголовок» 112–128 на 1440 и 88–96 на 390, «с картинкой» 220–260 и 160–180,
     главная — не выше 480 на 1440 */
  --home-hero-h: clamp(400px, 7.62vw + 370px, 480px);

  /* Высоты шапок: на 1440 «с картинкой» вмещает лид и цифры, «заголовок» — заголовок и лид */
  --page-hero-h-image: clamp(168px, 11.43vw + 123.4px, 288px);
  --page-hero-h: clamp(96px, 3.81vw + 81.1px, 136px);
  --page-hero-y: clamp(12px, 1.14vw + 7.5px, 24px);

  /* Раскладка «сайдбар + контент» (.layout--aside): фильтры, меню кабинета, инфо-меню, оглавление — с 1024 */
  --aside-w: 288px;

  /* Ширины окон .modal--s / --m / --l (modals.css) */
  --modal-w-s: 28rem;
  --modal-w-m: 36rem;
  --modal-w-l: 52rem;

  /* Радиусы, тени, слои, движение */
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-pill: 999px;
  --shadow-s: 0 1px 3px rgb(16 24 40 / 10%);
  --shadow-m: 0 12px 32px rgb(16 40 56 / 12%);
  --shadow-card: 0 6px 20px rgb(16 40 56 / 8%);
  --shadow-text: 0 1px 8px rgb(0 40 60 / 35%);
  --z-bar: 90; /* плашки у края окна (cookie): под шапкой с её меню, окнами и панелями */
  --z-header: 100; /* у шапки isolation: isolate — её бейджи и счётчики без своего высокого z-index */
  --z-dropdown: 200;
  --z-overlay: 900; /* подложка выдвижной панели: выше шапки и плашек, ниже панели */
  --z-drawer: 950;
  --z-modal: 1000;
  --z-toast: 1100;
  --duration: 200ms;
  --duration-slow: 320ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
/* stylelint-enable color-no-hex, function-disallowed-list */

/* Шрифты (раздел 7): Manrope — весь текст (макет нарисован геометрическим гротеском), Caveat — рукописные
   подписи. Файлы локальные: кириллица и латиница отдельно, из расширенной латиницы — только знак ₽ */
@font-face {
  font-family: manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+20BD;
}

@font-face {
  font-family: manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-latin-500-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+20BD;
}

@font-face {
  font-family: manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+20BD;
}

@font-face {
  font-family: caveat;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/caveat-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491;
}

@font-face {
  font-family: caveat;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/caveat-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}

/* С 1280 у кегля первого экрана доля rem больше: на 1440 при шрифте 200 % он вырастает ×1,5 (на телефоне — прежний) */
@media (min-width: 1280px) {
  :root {
    --text-hero: clamp(2.125rem, 1.25vw + 3rem, 4.125rem);
  }
}

/* ==========================================================================
   2. Сброс и база
   ========================================================================== */

/* stylelint-disable selector-max-type */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;

  /* Шапку учитывает только html: у цели якоря scroll-margin-top не ставится, иначе высота шапки считается дважды */
  scroll-padding-top: calc(var(--header-height) + var(--anchor-gap));
  text-size-adjust: 100%;
}

/* До 1024 внизу окна бывает кнопка сайдбара .aside-fab (48 px + отступ): элемент в фокусе по Tab браузер
   докручивает выше неё, а не под неё (ревью r1, тест «фокус под закреплённой панелью») */
@media not all and (min-width: 64em) {
  html {
    scroll-padding-bottom: calc(48px + 2 * var(--space-4));
  }
}

/* Пока открыт попап или выдвижная панель, страница под ними не прокручивается; место под полосу прокрутки держит
   scrollbar-gutter, поэтому фон не сдвигается ни при открытии, ни при закрытии. Под открытой панелью место полосы
   прокрутки — тоже подложка: его рисует фон html (раздел 17) */
html:has(.drawer--open),
html:has(.layout__aside--sheet) {
  overflow: hidden;
  background: var(--color-overlay-solid);
}

html:has(.modal[open]),
html:has(.context-menu__toggle[aria-expanded='true']) {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-text);
  font-synthesis: none;

  /* Цифры одной высоты с прописными: у антиквы по умолчанию старые — «0» похож на «о» */
  font-variant-numeric: lining-nums;
  overflow-wrap: anywhere;
}

/* Между последним блоком контента и подвалом — не меньше --section-gap (раздел 17): половину даёт нижнее поле
   последней секции, половину — main */
main {
  padding-bottom: var(--section-y);
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: var(--weight-bold);
  line-height: var(--leading-heading);
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
blockquote,
figure,
fieldset {
  margin: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

/* stylelint-disable declaration-no-important */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* stylelint-enable declaration-no-important */
/* stylelint-enable selector-max-type */

/* ==========================================================================
   3. Раскладка
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--container-padding));
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* Секция: свой отступ сверху и снизу, даже если в макете блоки слиплись */
.section {
  padding-block: var(--section-y);
}

.section--surface {
  background: var(--color-surface);
}

/* Вторая подряд секция с тем же фоном — без верхнего отступа */
.section--flush-top {
  padding-top: 0;
}

.section__head {
  display: grid;
  gap: var(--space-2);
  max-width: 48rem;
  margin-bottom: var(--section-head-gap);
}

.section__title {
  font-size: var(--text-h2);
  line-height: var(--leading-tight);
}

.section__lead {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* Сетка карточек: 1 колонка на мобильном, 2 на планшете, 3 на десктопе (--4 — четыре) */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

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

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

/* Три карточки — 1 или 3 в ряд, не 2 + 1 (тест «последняя плитка сетки одна в ряду») */
@media (min-width: 768px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Вертикальный и горизонтальный ряды с отступами */
.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ==========================================================================
   4. Общие блоки
   ========================================================================== */

/* Ссылка «Перейти к содержимому» */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* Шапка: закреплена сверху (sticky), высота — ровно --header-height. До 1024 меню — выдвижная панель .drawer
   (кнопка [data-drawer-open="site-nav"]), с 1024 — строка ссылок; без JS меню раскрывает css/no-js.css */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-bg);

  /* Граница тенью, а не border: шапка ровно --header-height, без лишнего пикселя */
  box-shadow: 0 1px 0 var(--color-border);
  isolation: isolate;
}

.header__inner {
  position: relative; /* от строки шапки — панель выбора курорта */
  display: flex;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.header__actions {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  margin-left: auto;
}

.header__action,
.header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  cursor: pointer;
}

@media (hover: hover) {
  .header__action:hover,
  .header__toggle:hover {
    background: var(--color-surface);
  }
}

/* Меню строкой — с 80em (1280 при обычном шрифте): точка перелома в em, при крупном шрифте браузера меню остаётся
   выдвижной панелью (раздел 5, «Увеличенный шрифт») */
@media (min-width: 80em) {
  .header__toggle {
    display: none;
  }
}

/* Логотип: знак «солнце над волной» + название и подпись */
.logo {
  display: inline-flex;
  flex: none;
  gap: var(--space-2);
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
}

.logo__mark {
  flex: none;
  width: 40px;
  height: 40px;
}

.logo__text {
  display: grid;
  line-height: 1.3;
}

.logo__name {
  font-size: 1.3125rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
}

.logo__tagline {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

@media not all and (min-width: 390px) {
  .logo__tagline {
    display: none;
  }
}

@media (min-width: 80em) {
  .header__nav {
    margin-left: var(--space-2);
  }

  .header__actions {
    gap: var(--space-2);
    margin-left: auto;
  }
}

/* Выбор направления: те же регионы и группы, что на проде; список курортов переключается по клику.
   На телефоне этот же DOM переносится в меню и работает как вложенные раскрывающиеся списки. */
.context-menu__toggle {
  display: inline-flex;
  gap: var(--space-1);
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  cursor: pointer;
}

@media (hover: hover) {
  .context-menu__toggle:hover {
    border-color: var(--color-border-strong);
  }
}

@media not all and (min-width: 64em) {
  .header__context {
    display: none;
  }
}

.context-menu__panel {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: var(--container-padding);
  z-index: var(--z-dropdown);
  width: min(52rem, calc(100vw - 2 * var(--container-padding)));
  max-height: var(--picker-available, calc(100dvh - var(--header-height) - var(--space-5)));
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  background: var(--color-bg);
  box-shadow: var(--shadow-m);
}

.context-menu__panel[hidden] {
  display: none;
}

.context-menu__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: var(--space-3);
  border: 0;
  border-radius: var(--radius-s);
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
}

.context-menu__columns {
  display: grid;
  min-width: 0;
}

.context-menu__regions {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  min-width: 0;
  padding: var(--space-5);
}

.context-menu__caption {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

.context-menu__region-toggle,
.context-menu__group-toggle {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-s);
  font-size: var(--picker-toggle-size, var(--text-small));
  list-style: none;
  cursor: pointer;
  transition: color var(--duration) var(--ease);
}

.context-menu__region-toggle {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

.context-menu__region-toggle::marker,
.context-menu__group-toggle::marker {
  content: '';
}

.context-menu__region-toggle::-webkit-details-marker,
.context-menu__group-toggle::-webkit-details-marker {
  display: none;
}

.context-menu__region-label {
  display: none;
  margin-bottom: var(--space-2);
  padding-inline: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
}

.context-menu__chevron {
  flex: none;
  rotate: var(--picker-chevron-turn, 0deg);
}

.context-menu__group--region > .context-menu__group-toggle {
  font-weight: var(--weight-bold);
}

/* в меню телефона регион без подрайонов (Абхазия) — тем же кеглем, что «Краснодарский край» и «Крым» (ревью r2) */
.nav__destinations .context-menu__group--region {
  --picker-toggle-size: var(--text-base);
}

.context-menu__list {
  display: grid;
  gap: var(--space-1) var(--space-3);
  padding: 0;
  list-style: none;
}

.context-menu__link {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-s);
  color: var(--color-text);
  font-size: var(--text-small);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.context-menu__link[aria-current] {
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  font-weight: var(--weight-bold);
}

.context-menu__link[aria-current]::after {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: currentcolor;
  content: '';
}

.context-menu__selection {
  position: sticky;
  top: 0;
  align-self: start;
  min-width: 0;
  padding: var(--space-5);
  background: var(--color-bg);
}

.context-menu__selection-title {
  margin-block: var(--space-5) var(--space-3);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

.context-menu__panel--desktop .context-menu__columns {
  grid-template-columns: minmax(16rem, 2fr) minmax(0, 3fr);
}

.context-menu__panel--desktop .context-menu__regions {
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
}

.context-menu__panel--desktop .context-menu__region-toggle {
  display: none;
}

.context-menu__panel--desktop .context-menu__region-label {
  display: block;
}

.context-menu__panel--desktop .context-menu__chevron {
  rotate: -90deg;
}

.context-menu__panel--desktop .context-menu__list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}

.context-menu__panel--mobile {
  position: static;
  width: auto;
  max-height: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.context-menu__panel--mobile .context-menu__regions {
  gap: var(--space-2);
  padding: 0;
}

.context-menu__panel--mobile .context-menu__resorts {
  padding: var(--space-2) var(--space-3);
}

.context-menu__panel--mobile .context-menu__groups {
  padding: var(--space-2);
}

.context-menu__panel--mobile .context-menu__close {
  display: none;
}

.nav__destinations:not(:empty) {
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.context-menu__region[open] > .context-menu__region-toggle,
.context-menu__group[open] > .context-menu__group-toggle {
  --picker-chevron-turn: 180deg;

  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
}

.context-menu__toggle[aria-expanded='true'] > .context-menu__chevron {
  rotate: 180deg;
}

@media (hover: hover) {
  .context-menu__group-toggle:hover,
  .context-menu__link:hover,
  .context-menu__close:hover {
    color: var(--color-accent-hover);
  }
}

/* Пункты меню: в панели — столбиком плотно сверху, с 1024 — строкой */

/* Кнопки внизу выдвижного меню: главный призыв и вход — во всю ширину (с 80em меню — строкой, кнопки в шапке) */
.nav__actions {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1) var(--space-6);
  padding: 0;
  list-style: none;
}

@media (min-width: 80em) {
  .nav__list {
    flex-flow: row nowrap;
    column-gap: var(--space-5);
  }
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
  text-decoration: none;
}

@media (hover: hover) {
  .nav__link:hover {
    color: var(--color-accent);
  }
}

/* Выдвижная панель (раздел 17): мобильное меню, каталог, все фильтры, мини-корзина — одна реализация.
   На всю высоту окна слева (--start, по умолчанию) или справа (--end), ширина min(88vw, 400px), своя прокрутка,
   шапка панели — заголовок слева, × справа (44×44). Подложка — отдельный слой (::after родителя панели,
   --z-overlay < --z-drawer), фон не прокручивается (html:has(.drawer--open)). --until-lg — панель только до 1024,
   с 1024 — обычный блок на месте (меню в шапке, фильтры в сайдбаре). Открывает и закрывает js/theme-ui.js */
.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline: 0 auto;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  width: min(88vw, 400px);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  background: var(--color-bg);
  box-shadow: var(--shadow-m);
  translate: -100% 0;
  transition:
    translate var(--duration-slow) var(--ease),
    visibility 0s linear var(--duration-slow);
}

.drawer--start {
  inset-inline: 0 auto;
  translate: -100% 0;
}

.drawer--end {
  inset-inline: auto 0;
  translate: 100% 0;
}

.drawer--open {
  visibility: visible;
  translate: none;
  transition-delay: 0s;
}

/* Подложка: псевдоэлемент родителя открытой панели — на весь экран, под панелью. Панель в шапке: шапка поднимается
   над плашками и счётчиками (--z-drawer), подложка внутри неё закрывает и логотип, и бейджи */
:has(> .drawer--open)::after {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--color-overlay);
  content: '';
}

.header:has(.drawer--open) {
  z-index: var(--z-drawer);
}

.drawer__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex: none;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--container-padding);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.drawer__title {
  font-size: var(--text-lead);
  font-weight: var(--weight-bold);
}

.drawer__close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  cursor: pointer;
}

@media (hover: hover) {
  .drawer__close:hover {
    background: var(--color-border);
  }
}

.drawer__body {
  padding: var(--space-3) var(--container-padding) var(--space-5);
}

@media (min-width: 1024px) {
  .drawer--until-lg {
    position: static;
    display: block;
    width: auto;
    overflow: visible;
    visibility: visible;
    background: none;
    box-shadow: none;
    translate: none;
    transition: none;
  }

  .drawer--until-lg .drawer__head {
    display: none;
  }

  .drawer--until-lg .drawer__body {
    padding: 0;
  }
}

/* Меню шапки: панель до 80em, дальше — строка ссылок */
@media (min-width: 80em) {
  .drawer--until-nav {
    position: static;
    display: block;
    width: auto;
    overflow: visible;
    visibility: visible;
    background: none;
    box-shadow: none;
    translate: none;
    transition: none;
  }

  .drawer--until-nav .drawer__head {
    display: none;
  }

  .drawer--until-nav .drawer__body {
    padding: 0;
  }
}

/* Кнопка */
.button {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: var(--space-3) var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--text-button);
  font-weight: var(--weight-medium);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease);
}

@media (hover: hover) {
  .button:hover {
    background: var(--color-accent-hover);
  }
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button--secondary {
  border-color: var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}

@media (hover: hover) {
  .button--secondary:hover {
    background: var(--color-surface);
  }
}

/* Поле формы */
.field {
  display: grid;
  gap: var(--space-2);
  max-width: 32rem;
}

.field__label {
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
}

.field__hint {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

/* Звёздочка обязательного поля — в подписи каждого required-поля, во всех формах и попапах (тест) */
.field__required {
  color: var(--color-error);
}

.field__input {
  width: 100%;
  min-height: var(--control-height);
  padding-inline: var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-s);
  background: var(--color-bg);
  font-size: 1rem;
}

/* Автозаполнение (Chromium, Safari): свой жёлто-голубой фон браузера заменён фоном поля */
.field__input:autofill {
  box-shadow: inset 0 0 0 100vmax var(--color-bg);
  -webkit-text-fill-color: var(--color-text);
}

.field--error .field__input {
  border-color: var(--color-error);
}

.field__error {
  color: var(--color-error);
  font-size: var(--text-small);
}

/* Форма: поля, согласие, статус отправки */
.form {
  display: grid;
  gap: var(--space-5);
  max-width: 32rem;
}

/* Зона нажатия не меньше 44 px и у однострочной подписи */
.checkbox {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  min-height: 44px;
  font-size: var(--text-small);
  cursor: pointer;
}

.checkbox__input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--color-accent);
}

.form__status {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-s);
  background: var(--color-surface);
}

/* Живой регион есть в разметке всегда (иначе сообщение не озвучится), пустой — не занимает места */
.form__status:empty {
  padding: 0;
}

.form__status--success {
  color: var(--color-success);
}

.form__status--error {
  color: var(--color-error);
}

/* Карточка */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  background: var(--color-bg);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__image--empty {
  background: var(--color-surface);
}

.card__body {
  display: grid;
  gap: var(--space-3);
  padding: var(--card-padding);
}

.card__title {
  font-size: var(--text-h3);
}

.card__name {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1.35;
}

.card__text {
  color: var(--color-text-muted);
}

/* Кнопка быстрого просмотра на фото карточки товара: 44×44, в правом верхнем углу (раздел 17) */
.card__quick {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-s);
}

@media (hover: hover) {
  .card__quick:hover {
    color: var(--color-accent);
  }
}

/* Карточка товара в листинге: цена и действия внизу карточки */
.card__price {
  font-size: var(--text-lead);
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding: 0 var(--card-padding) var(--card-padding);
}

/* Счётчик в кнопке («Фильтры 2», корзина) */
.counter {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--text-small);
  line-height: 1;
}

/* Крошки — всегда в одном месте сверху, над шапкой страницы */
.breadcrumbs {
  padding-top: var(--space-4);
  font-size: var(--text-small);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  padding: 0;
  list-style: none;
}

/* До 768 крошкам отведены две строки: короткие и длинные цепочки занимают одно место, шапка страницы на всех
   страницах начинается на одной высоте (тест), все ссылки видны и не прокручиваются */
@media not all and (min-width: 768px) {
  .breadcrumbs {
    min-height: calc(var(--space-4) + 2 * 24px + var(--space-1));
  }
}

.breadcrumbs__item {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  min-height: 24px;
  color: var(--color-text-muted);
}

.breadcrumbs__item:not(:first-child)::before {
  flex: none;
  width: 5px;
  height: 5px;
  margin-right: var(--space-1);
  border-top: 1px solid var(--color-border-strong);
  border-right: 1px solid var(--color-border-strong);
  content: '';
  transform: rotate(45deg);
}

.breadcrumbs__link {
  color: var(--color-text-muted);
  text-decoration: none;
}

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

/* Шапка страницы (раздел 17) — ровно три типа: главная (свой баннер в site-index.css, --home-hero-h),
   .page-hero--image (с картинкой, --page-hero-h-image) и .page-hero (заголовок, --page-hero-h). Высота — токеном
   через min-height (при шрифте 200 % текст не обрезается); подзаголовок, счётчик, дата высоту не меняют —
   содержимое по центру по вертикали, контент после шапки на страницах одного типа начинается на одной высоте
   (тест). В шапке — только крошки (над ней), заголовок, подзаголовок; иконок над заголовком нет. На телефоне
   (< 768) заголовок 28 px, подзаголовок скрыт: только крошки и заголовок (у «с картинкой» — ещё одна кнопка) */
.page-hero {
  display: grid;
  gap: var(--space-1);
  align-content: center;
  min-height: var(--page-hero-h);
  margin-bottom: var(--hero-gap); /* до контента — --hero-gap; секция после шапки — .section--flush-top */
  padding-block: var(--page-hero-y);
}

.page-hero__title {
  /* 28 px на телефоне (раздел 17); на 320 и при крупном шрифте длинное слово не рвётся */
  font-size: min(1.75rem, 7.4vw);
  line-height: var(--leading-tight);
}

.page-hero__text {
  display: none;
  max-width: 48rem;
  margin-top: 0.4em; /* запас от заголовка: при шрифте 150–200 % строки не накладываются */
  color: var(--color-text-muted);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .page-hero__title {
    font-size: var(--text-h1);
  }

  .page-hero__text {
    display: block;
  }
}

/* «С картинкой» (2026-11-27, как шапка курорта): фото на всю полосу, затемнение слева, белый текст; высота —
   токен --page-hero-h-image (288 px на 1440), одинаковая со страницами курорта и региона. Фото на всех ширинах, как у
   шапки курорта (на телефоне раньше была тёмная подложка без фото — ревью 2026-11-27) */
.page-hero--image {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  align-content: stretch;
  min-height: var(--page-hero-h-image);
  margin-top: var(--space-3);
  padding: 0;
  overflow: clip;
  border-radius: var(--radius-l);
  background: var(--color-text);
  color: var(--color-hero-text);
}

.page-hero__body {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  gap: var(--space-2);
  align-content: center;
  padding: var(--space-5) var(--hero-inner-padding);
}

.page-hero--image .page-hero__body {
  background: linear-gradient(
    90deg,
    var(--color-destination-shade),
    var(--color-destination-tint) 45%,
    var(--color-photo-clear) 85%
  );
}

.page-hero--image .page-hero__text {
  max-width: 40rem;
  color: inherit;
  opacity: 0.9;
}

.page-hero__picture {
  position: absolute;
  inset: 0;
}

.page-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__note {
  display: none;
}

@media (min-width: 1280px) {
  .page-hero__note {
    position: absolute;
    right: 8%;
    bottom: 18%;
    z-index: var(--z-content);
    display: block;
    color: var(--color-hero-text);
    text-shadow: var(--shadow-text);
  }
}

/* Цифры в шапке страницы («651 вариант · от 1 000 ₽ · вода +21,9°») */
.page-hero__stats {
  margin-top: var(--space-2);
}

/* Раскладка «сайдбар + контент» (раздел 17): фильтры, меню кабинета, инфо-меню, оглавление статьи — один блок,
   ширина сайдбара — --aside-w (с 1024); --aside-end — сайдбар справа. До 1024 — столбиком: фильтры — выдвижная
   панель с той же стороны (кнопка .layout__toggle «Фильтры» с числом выбранных), меню — лентой, оглавление — над
   текстом */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5) var(--grid-gap); /* колонка до сайдбара — не дальше --grid-gap (раздел 17) */
  align-items: start;
}

/* До 1024 фильтры — выдвижная панель: колонка сайдбара не занимает ряд сетки (нет пустого зазора над контентом) */
@media not all and (min-width: 1024px) {
  .layout__aside:has(> .drawer--until-lg) {
    display: contents;
  }
}

.layout__main {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}

.layout__toggle {
  justify-self: start;
}

@media (min-width: 1024px) {
  .layout--aside {
    grid-template-columns: var(--aside-w) minmax(0, 1fr);
  }

  .layout--aside-end {
    grid-template-columns: minmax(0, 1fr) var(--aside-w);
  }

  .layout__toggle {
    display: none;
  }
}

/* У колонки нет собственной прокрутки. theme-ui.js закрепляет её на всех страницах: короткую — верхом под шапкой,
   длиннее окна — низом (--aside-top отрицательный). Без JS колонка прокручивается вместе со страницей.
   Порядок в HTML: действие / информация страницы → выбор направления → второстепенные ссылки. */
@media (min-width: 64em) {
  .layout__aside {
    align-self: start;
    min-width: 0;
  }

  .layout__aside--sticky {
    position: sticky;
    top: var(--aside-top, var(--sticky-top));
  }
}

/* Сайдбар контекста курорта/региона (владелец: «для удобства»): выбор региона и курорта, ниже — список
   курортов рядом с фото. _partials/aside-context.html */
.aside-context {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  background: var(--color-bg);
}

.aside-context__selects {
  display: grid;
  gap: var(--space-3);
}

.aside-context__field {
  display: grid;
  gap: var(--space-1);
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.aside-context__select {
  width: 100%;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
}

.aside-context__title {
  margin-bottom: var(--space-2);
  font-weight: var(--weight-bold);
}

.aside-context__list {
  display: grid;
  gap: var(--space-1);
  padding: 0;
  list-style: none;
}

.aside-context__link {
  display: flex;
  overflow-wrap: normal;
  gap: var(--space-3);
  align-items: center;
  min-height: 44px;
  padding: var(--space-1);
  border-radius: var(--radius-s);
  color: var(--color-text);
  font-size: var(--text-small);
  text-decoration: none;
}

.aside-context__link[aria-current] {
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  font-weight: var(--weight-bold);
}

@media (hover: hover) {
  .aside-context__link:not([aria-current]):hover {
    background: var(--color-page-alt);
  }
}

.aside-context__thumb {
  flex: none;
  width: 48px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

/* Фильтры (каталог, поиск, бренд, кабинет): группы чекбоксов; в панели до 1024 — тот же блок */
.filters {
  display: grid;
  gap: var(--space-5);
}

.filters__group {
  display: grid;
  gap: var(--space-1);
  padding: 0;
  border: 0;
}

.filters__title {
  margin-bottom: var(--space-2);
  padding: 0;
  font-weight: var(--weight-bold);
}

/* Табы с линией снизу (раздел 17): индикатор активного таба лежит НА линии списка — одна нижняя граница.
   Линия — inset-тень списка (идёт на всю ширину ленты и при прокрутке), индикатор — ::after таба вплотную к низу
   (bottom: 0, 2 px), у списка нет нижних полей, табы одной высоты. Тест — индикатор на линии ±0,5 px.
   Итоговый вид — сразу в разметке (список, первая панель открыта, остальные hidden), скрипт только переключает
   (стандарт: JS не двигает вёрстку, круг 6); без JS кнопки вкладок невидимы на своём месте (no-js.css). Поля ленты
   и scroll-padding: таб в фокусе не прижат к краю прокрутки; отрицательные поля возвращают первый таб на линию */
.tabs__list {
  display: flex;
  gap: var(--space-5);
  margin-inline: calc(-1 * var(--space-1));
  padding-inline: var(--space-1);
  overflow-x: auto;
  box-shadow: inset 0 -1px var(--color-border);
  scroll-padding-inline: var(--space-5);
  scrollbar-width: none;
}

.tabs__tab {
  position: relative;
  flex: none;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  cursor: pointer;
}

.tabs__tab::after {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  content: '';
}

/* Список прокручивается и обрезает всё за краем — кольцо фокуса внутри таба */
.tabs__tab:focus-visible {
  outline-offset: -2px;
}

.tabs__tab[aria-selected='true'] {
  color: var(--color-text);
}

.tabs__tab[aria-selected='true']::after {
  background: var(--color-accent);
}

@media (hover: hover) {
  .tabs__tab:hover {
    color: var(--color-text);
  }
}

.tabs__panel {
  padding-top: var(--space-5);
}

.tabs__panel-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Счётчик количества «− 1 +» (раздел 17) — один блок на всех страницах: цели и поле не меньше 44×44, цифра 16 px
   (iOS не увеличивает страницу), без выделения текста при частых нажатиях; на границе min/max кнопка disabled */
.quantity {
  display: inline-grid;
  grid-template-columns: 44px minmax(44px, 48px) 44px;
  align-items: center;
  height: var(--control-height);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-s);
  background: var(--color-bg);
  transition: border-color var(--duration) var(--ease);
}

@media (hover: hover) {
  .quantity:hover {
    border-color: var(--color-text);
  }
}

.quantity:focus-within {
  border-color: var(--color-accent);
}

.quantity__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transition:
    background-color var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

@media (hover: hover) {
  .quantity__button:hover {
    background: var(--color-surface);
    color: var(--color-accent);
  }
}

.quantity__button:active {
  background: var(--color-border);
}

.quantity__button:focus-visible {
  outline-offset: -2px;
}

.quantity__button:disabled {
  background: none;
  color: var(--color-border-strong);
  cursor: not-allowed;
}

.quantity__input {
  width: 100%;
  height: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: max(1rem, var(--text-base));
  font-weight: var(--weight-medium);
  text-align: center;
  appearance: textfield;
}

.quantity__input:focus-visible {
  outline: 0;
}

.quantity__input::-webkit-inner-spin-button,
.quantity__input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

/* Шаги и прогресс (раздел 17: статус заказа, шаги оформления) — один блок: линия — сегментами через центры точек,
   точки над подписями по центру, крайние подписи не выходят за контейнер. Пройден — заливка акцентом и галочка,
   текущий — кольцо акцентом и жирная подпись (aria-current="step"), будущий — серая точка. До 640 — вертикально */
.steps {
  --steps-mark: 28px;
  --steps-gap: var(--space-4);

  display: grid;
  gap: var(--steps-gap);
  padding: 0;
  list-style: none;
}

.steps__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--steps-mark) minmax(0, 1fr);
  gap: var(--space-1) var(--space-3);
  align-items: start;
}

/* Сегмент к следующей точке (вертикально): от центра своей точки до центра следующей */
.steps__item:not(:last-child)::after {
  position: absolute;
  top: calc(var(--steps-mark) / 2);
  bottom: calc(-1 * var(--steps-gap) - var(--steps-mark) / 2);
  left: calc(var(--steps-mark) / 2 - 1px);
  width: 2px;
  background: var(--color-border);
  content: '';
}

.steps__item--done:not(:last-child)::after {
  background: var(--color-accent);
}

.steps__mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--steps-mark);
  height: var(--steps-mark);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-on-accent);
}

.steps__item--done .steps__mark {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.steps__item--current .steps__mark {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.steps__body {
  display: grid;
  gap: 2px;
  align-content: center;
  min-height: var(--steps-mark);
}

.steps__label {
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
  line-height: 1.3;
}

.steps__item--done .steps__label {
  color: var(--color-text);
}

.steps__item--current .steps__label {
  color: var(--color-text);
  font-weight: var(--weight-bold);
}

.steps__note {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: 1.35;
}

@media (min-width: 640px) {
  .steps {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
  }

  .steps__item {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .steps__item:not(:last-child)::after {
    content: none;
  }

  /* Горизонтально — сегмент от центра предыдущей точки к своей */
  .steps__item:not(:first-child)::before {
    position: absolute;
    top: calc(var(--steps-mark) / 2 - 1px);
    right: 50%;
    left: calc(-50% - var(--steps-gap));
    height: 2px;
    background: var(--color-border);
    content: '';
  }

  .steps__item--done:not(:first-child)::before,
  .steps__item--current:not(:first-child)::before {
    background: var(--color-accent);
  }

  .steps__body {
    min-height: 0;
  }
}

/* Подвал: светлый, как в макете — лого и описание, четыре колонки ссылок, контакты; ниже — копирайт */
.footer {
  padding-block: var(--space-8) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: var(--color-page-alt);
}

.footer__top {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 80em) {
  .footer__top {
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr);
    gap: var(--grid-gap);
  }
}

.footer__about {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.footer__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5) var(--grid-gap);
}

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

@media (min-width: 64em) {
  .footer__nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer__title {
  margin-bottom: var(--space-2);
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
}

.footer__list {
  display: grid;
  padding: 0;
  list-style: none;
}

.footer__link {
  display: inline-flex;
  overflow-wrap: normal;
  align-items: center;
  min-height: 32px;
  color: var(--color-text-muted);
  font-size: var(--text-small);
  text-decoration: none;
}

@media (hover: hover) {
  .footer__link:hover {
    color: var(--color-accent);
  }
}

.footer__text {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.footer__contacts {
  display: grid;
  gap: var(--space-2);
  align-content: start;
  justify-items: start;
}

.footer__phone {
  font-weight: var(--weight-bold);
  text-decoration: none;
  white-space: nowrap;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  justify-content: space-between;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

/* Меню прототипа (_partials/proto-nav.html, раздел 14): закладка у левого края, по ней выезжает панель на всю высоту
   со всеми страницами вёрстки. С 1280 и только с JS (proto-nav--ready); служебное — не часть сайта */
.proto-nav {
  display: none;
}

@media (min-width: 1280px) {
  .proto-nav--ready {
    display: block;
  }
}

.proto-nav__panel {
  position: fixed;
  inset-block: 0;
  left: 0;
  z-index: var(--z-dropdown);
  width: 13rem;
  padding: var(--space-5) var(--space-3) var(--space-5) var(--space-4);
  overflow-y: auto;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: var(--text-small);
  line-height: 1.35;
  visibility: hidden;
  scrollbar-width: thin;
  translate: -100% 0;
  transition:
    translate var(--duration) var(--ease),
    visibility var(--duration);
}

/* Открыта — на месте; закрыта (по умолчанию) — за левым краем и недоступна с клавиатуры */
.proto-nav--open .proto-nav__panel {
  visibility: visible;
  translate: none;
}

/* Закладка: вертикальная подпись у края экрана, при открытой панели — у её правого края */
.proto-nav__tab {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: var(--z-dropdown);
  padding: var(--space-3) var(--space-1);
  border: 1px solid var(--color-border);
  border-left: 0;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
  translate: 0 -50%;
  cursor: pointer;
  transition: left var(--duration) var(--ease);
}

.proto-nav--open .proto-nav__tab {
  left: 13rem;
}

@media (hover: hover) {
  .proto-nav__tab:hover {
    color: var(--color-text);
  }
}

.proto-nav__title {
  margin: var(--space-3) 0 var(--space-1);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proto-nav__title:first-child {
  margin-top: 0;
}

.proto-nav__list {
  padding: 0;
  list-style: none;
}

.proto-nav__link {
  display: block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-s);
  color: var(--color-text-muted);
  text-decoration: none;
}

@media (hover: hover) {
  .proto-nav__link:hover {
    color: var(--color-text);
  }
}

.proto-nav__link[aria-current='page'] {
  background: var(--color-surface);
  color: var(--color-text);
}

/* ==========================================================================
   4а. Общие блоки TipTopTrip (по макетам design/*@1440.png): иконки, пилюли, навигация раздела, карточки жилья,
   курортов и статей, плитки удобств, цифры, панель поиска, полоса для владельцев
   ========================================================================== */

.icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.icon--s {
  width: 16px;
  height: 16px;
}

.icon--l {
  width: 28px;
  height: 28px;
}

.button--s {
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-small);
}

/* Кнопки шапки (после .button — перебивают его display): «Войти» — с 1280 (до этого пункт в меню),
   «Разместить объект» — с 768 */
.header__login,
.header__add {
  display: none;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .header__add {
    display: inline-flex;
  }
}

/* С 80em меню — строкой: «Войти» — кнопкой, пункт меню «Войти» не нужен */
@media (min-width: 80em) {
  .header__login {
    display: inline-flex;
  }

  .nav__actions {
    display: none;
  }
}

/* Ссылка со стрелкой: «Все направления →» */
.link-arrow {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  min-height: 44px;
  color: var(--color-accent-hover); /* на песочной и светлых панелях — контраст ≥ 4,5 */
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) {
  .link-arrow:hover {
    color: var(--color-text);
  }
}

/* Заголовок секции в строку со ссылкой «Все … →» (с 640; на телефоне ссылка под заголовком) */
.section__head--row {
  max-width: none;
}

@media (min-width: 640px) {
  .section__head--row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

.section__head--row .section__lead {
  grid-column: 1;
}

.section__link {
  justify-self: start;
}

@media (min-width: 640px) {
  .section__link {
    grid-row: 1 / span 2;
    grid-column: 2;
    justify-self: end;
  }
}

/* Пилюли-фильтры («Все направления», «Крым»…) и чипы-ссылки (курорты под карточкой региона) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
}

/* Чип-переключатель фильтра (<button aria-pressed>): нажатый выглядит как текущий */
.chip[aria-current],
.chip[aria-pressed='true'] {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.chip[aria-pressed] {
  cursor: pointer;
}

@media (hover: hover) {
  .chip:not([aria-current], [aria-pressed='true']):hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
  }
}

.chip__count {
  color: var(--color-text-muted);
}

.chip[aria-pressed='true'] .chip__count {
  color: inherit;
}

/* Навигация раздела курорта/региона (владелец: «очень важно») — ряд пилюль под шапкой страницы:
   активная залита акцентом, остальные — светло-серые. _partials/subnav-resort.html, subnav-region.html */
.subnav {
  margin-bottom: var(--hero-gap);
}

.subnav__list {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-1);
  margin: calc(-1 * var(--space-1));
  overflow-x: auto;
  list-style: none;
  scroll-padding-inline: var(--space-5);
  scrollbar-width: none;
}

/* До 768 — лента со свайпом (активный пункт theme-ui.js прокручивает в зону видимости), с 768 — перенос в ряды */
@media (min-width: 768px) {
  .subnav__list {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* Лента оглавления страницы (.guide-side__list) остаётся лентой до 1024: в ряды на 768 она занимала 3–4 строки
   до начала текста (ревью r2: convention, privacy, photos) */
@media (min-width: 768px) {
  .guide-side__list {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

/* на планшете иконки ленты оглавления скрыты: пункты помещаются без прокрутки на 15–20 px */
@media (min-width: 768px) and (not (min-width: 64em)) {
  .guide-side__icon {
    display: none;
  }
}

.subnav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--color-page-alt);
  color: var(--color-text);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
}

.subnav__link[aria-current='page'] {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

@media (hover: hover) {
  .subnav__link:not([aria-current='page']):hover {
    background: var(--color-accent-soft);
    color: var(--color-accent);
  }
}

/* Ключевые цифры: «651 вариант жилья», «от 2 200 ₽» — число акцентом, подпись мелко */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  padding: 0;
  list-style: none;
}

.stats__item {
  display: grid;
  gap: var(--space-1);
  overflow-wrap: normal; /* подпись переносится только между словами */
}

.stats__item + .stats__item {
  padding-left: var(--space-4);
  border-left: 1px solid var(--color-border);
}

.stats__value {
  color: var(--color-accent-hover); /* на светлой подложке и у края фото — контраст ≥ 4,5 */
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.5rem);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  white-space: nowrap;
}

.stats__label {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: 1.3;
}

/* Цифры на фото шапки «с картинкой» — светлые, как текст шапки (2026-11-27) */
.stats--on-photo .stats__value {
  color: inherit;
}

.stats--on-photo .stats__label {
  color: inherit;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .stats {
    gap: var(--space-6);
  }

  .stats__item + .stats__item {
    padding-left: var(--space-6);
  }
}

/* Цифры в шапке страницы на телефоне скрыты (шапка минимальной высоты, раздел 17); после .stats — перебивает display */
@media not all and (min-width: 768px) {
  .page-hero__stats {
    display: none;
  }
}

/* Рукописная подпись на фото («Больше, чем просто отдых») — декор, текст в разметке */
.hand-note {
  color: var(--color-bg);
  font-family: var(--font-hand);
  font-size: 2rem;
  font-weight: var(--weight-medium);
  line-height: 1;
  text-shadow: var(--shadow-text);
  rotate: -8deg;
}

/* Панель поиска: курорт, даты, гости, кнопка — белая карточка с тенью (главная, жильё курорта, поиск) */
.search-panel {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  background: var(--color-bg);
  box-shadow: var(--shadow-m);
}

@media (min-width: 768px) {
  .search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .search-panel {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 2fr);
    align-items: stretch;
  }
}

.search-panel__field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 var(--space-3);
  align-items: center;
  min-height: 60px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
}

.search-panel__field:focus-within {
  border-color: var(--color-accent);
}

/* С клавиатуры — общее кольцо фокуса на всём поле (у самого input outline снят; ревью r2: смены цвета рамки мало) */
.search-panel__field:has(:focus-visible) {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.search-panel__icon {
  grid-row: 1 / span 2;
  color: var(--color-accent);
}

.search-panel__label {
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  line-height: 1.3;
}

.search-panel__input {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font-size: 1rem;
}

.search-panel__input:focus {
  outline: none;
}

.search-panel__input::placeholder {
  color: var(--color-text-muted);
}

.search-panel__submit {
  min-height: 60px;
  font-size: var(--text-base);
}

@media (min-width: 768px) {
  .search-panel__submit {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1280px) {
  .search-panel__submit {
    grid-column: auto;
  }
}

.search-panel__note {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  justify-content: space-between;
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.search-panel__note-item {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
}

/* Карточка жилья: фото (сердечко, тип), название, город, удобства, цена «от … ₽» и оценка внизу.
   _partials/stay-card.html */
.stay-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: clip;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background: var(--color-bg);
  transition: box-shadow var(--duration) var(--ease);
}

@media (hover: hover) {
  .stay-card:hover {
    box-shadow: var(--shadow-card);
  }
}

.stay-card__media {
  position: relative;
  min-height: 0; /* у aspect-ratio с overflow: clip иначе остаётся авто-минимум (без JS выше, чем с JS) */
  aspect-ratio: 3 / 2;
  overflow: clip;
  background: var(--color-image-bg);
}

.stay-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stay-card__favorite {
  position: absolute;
  z-index: 1; /* над растянутой ссылкой карточки */
  top: var(--space-2);
  right: var(--space-2);
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-glass);
  color: var(--color-text);
  box-shadow: var(--shadow-s);
  cursor: pointer;
}

.stay-card__favorite[aria-pressed='true'] {
  color: var(--color-accent);
}

.stay-card__favorite[aria-pressed='true'] .icon {
  fill: currentcolor;
}

.stay-card__badge {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-glass);
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
}

.stay-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
}

/* Длинное слово переносится внутри, только если не помещается (шрифт 200 % в узкой колонке) */
.stay-card__title {
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* Ряд карточек: название резервирует две строки — адрес, удобства, цена и кнопка стоят на одной высоте у соседей
   (круг 7: было дублем в hotels.css и favourites.css). Ленты карточек на телефоне — в своих CSS (home, resort) */
@media (min-width: 40em) {
  .stay-card__title {
    min-height: 2lh;
  }
}

.stay-card__link {
  color: inherit;
  text-decoration: none;
}

/* Вся карточка — ссылка: растянутая зона ссылки поверх, кнопка избранного выше неё */
.stay-card__link::after {
  position: absolute;
  inset: 0;
  content: '';
}

.stay-card__meta {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.stay-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  padding: 0;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  list-style: none;
}

.stay-card__feature {
  display: inline-flex;
  gap: var(--space-1);
  align-items: center;
}

.stay-card__bottom {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
  margin-top: auto;
  padding-top: var(--space-2);
}

.stay-card__price {
  display: grid;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.stay-card__price-value {
  color: var(--color-text);
  font-size: 1.125rem;
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

/* Оценка: звезда и «4,8 (24)»; без отзывов — серым «Нет отзывов», не «0,0» */
.rating {
  display: inline-flex;
  gap: var(--space-1);
  align-items: center;
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

.rating__star {
  color: var(--color-star);
  fill: currentcolor;
}

.rating__count {
  color: var(--color-text-muted);
  font-weight: var(--weight-regular);
}

/* Плитка курорта: фото, название, число вариантов. _partials/resort-tile.html */
.resort-tile {
  display: grid;
  gap: var(--space-2);
  color: var(--color-text);
  text-decoration: none;
}

.resort-tile__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-m);
  object-fit: cover;
  background: var(--color-image-bg);
}

.resort-tile__name {
  font-weight: var(--weight-bold);
  line-height: 1.2;
}

.resort-tile__count {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

@media (hover: hover) {
  .resort-tile:hover .resort-tile__name {
    color: var(--color-accent);
  }
}

/* Карточка статьи: фото слева, рубрика, заголовок, короткий текст. _partials/post-card.html */

/* Узкая колонка (сетка 4 в ряд, крупный шрифт) — фото над текстом; от 22rem ширины карточки — фото слева */
.post-card-wrap {
  container-type: inline-size;
}

.post-card {
  position: relative;
  display: grid;
  gap: var(--space-3);
  align-items: start;
  overflow-wrap: normal;
}

@container (min-width: 22rem) {
  .post-card {
    grid-template-columns: minmax(6rem, 2fr) minmax(0, 3fr);
    gap: var(--space-4);
  }
}

.post-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  object-fit: cover;
  background: var(--color-image-bg);
}

.post-card__body {
  display: grid;
  gap: var(--space-2);
  align-content: start; /* рубрика на одной высоте у соседей при заголовке в одну строку (круг 7) */
  justify-items: start;
}

.post-card__tag {
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-card__title {
  font-size: 1rem;
  line-height: 1.3;
}

.post-card__link {
  color: inherit;
  text-decoration: none;
}

.post-card__link::after {
  position: absolute;
  inset: 0;
  content: '';
}

@media (hover: hover) {
  .post-card:hover .post-card__title {
    color: var(--color-accent);
  }
}

.post-card__text {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: 1.4;
}

/* Плитка с линейной иконкой: «С бассейном», «Для отдыха с детьми» — ссылка-фильтр */
.feature-tile {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  min-height: 72px;
  padding: var(--space-3) var(--space-4);
  overflow-wrap: normal;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background: var(--chapter-card-bg, var(--color-bg));
  color: var(--color-text);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  line-height: 1.3;
  text-decoration: none;
}

.feature-tile__icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

@media (hover: hover) {
  .feature-tile:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-card);
  }
}

/* Тонированная панель (как «Как работает TipTopTrip»): светлый тон бренда, скругление */
.panel {
  padding: var(--card-padding);
  border-radius: var(--radius-l);
  background: var(--color-page-alt);
}

/* Полоса для владельцев перед подвалом: песочная, фото слева, текст, кнопка и ссылка на тарифы */
.owner-cta {
  padding-block: var(--section-y) var(--section-gap);
}

.owner-cta__inner {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  overflow: clip;
  padding-bottom: var(--card-padding);
  border-radius: var(--radius-l);
  background: var(--color-sand);
}

.owner-cta__image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.owner-cta__text,
.owner-cta__actions {
  padding-inline: var(--card-padding);
}

.owner-cta__title {
  font-size: var(--text-h3);
}

.owner-cta__lead {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

.owner-cta__actions {
  display: grid;
  gap: var(--space-1);
  justify-items: center;
}

@media (min-width: 768px) {
  .owner-cta__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    padding-bottom: 0;
  }

  .owner-cta__image {
    grid-row: span 2;
  }

  .owner-cta__actions {
    justify-items: start;
    padding-bottom: var(--card-padding);
  }
}

@media (min-width: 1024px) {
  .owner-cta__inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  }

  .owner-cta__image {
    grid-row: auto;
  }

  .owner-cta__actions {
    justify-items: center;
    padding-bottom: 0;
  }
}

@media (min-width: 768px) {
  .owner-cta__image {
    height: 100%;
    min-height: 140px;
    mask-image: linear-gradient(to right, var(--color-text) 60%, transparent);
  }

  .owner-cta__text {
    padding-inline: 0;
  }

  .owner-cta__actions {
    padding-left: 0;
  }
}

/* hotels.css — контроллер «Жильё»: каталог курорта (hotels.html) и карточка объекта (hotel.html).
   Макеты — design/02-katalog@1440.png, design/03-obekt@1440.png.

   Раздел 1 («Общие блоки жилья») используют и search.html, favorites.html, map.html: у этих страниц front matter
   css: <свой файл> hotels. ВЕДУЩЕМУ: на сборке перенести раздел 1 в common.css и убрать hotels из их front matter
   (тест «ровно один файл контроллера» допускает только один). */

/* ==========================================================================
   4б. Общие блоки жилья: каталог, поиск, избранное, карта (из hotels.css)
   ========================================================================== */

/* Панель поиска с датами: заезд, выезд, гости, кнопка (поверх общего .search-panel) */
.search-panel--dates {
  grid-template-columns: minmax(0, 1fr);
}

/* Даты и гости внутри — общий виджет (.ss--catalog); кнопка справа от полей */
@media (min-width: 48em) {
  .search-panel--dates {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .search-panel--dates .search-panel__submit {
    grid-column: auto;
    padding-inline: var(--space-6);
  }

  .search-panel--dates .ss--catalog.ss--bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stay-search {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--hero-gap);
}

/* Ячейка сетки: карточка тянется на высоту ряда */
.stay-grid__item {
  display: grid;
}

.stay-search__note {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

/* Сетка карточек в колонке рядом с сайдбаром: 1 → 2 → 3 (3 — с 1280, когда колонка шире 880) */
.stay-grid {
  display: grid;
  padding: 0;
  list-style: none;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap);
}

@media (min-width: 40em) {
  .stay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stay-grid--reviews {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 80em) {
  .stay-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stay-grid--wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Три карточки на всю ширину: 1 → 3 */
@media (min-width: 48em) {
  .stay-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Отзывы: широкие карточки — в ряд с 80em, столько, сколько помещается (1…3, ряд заполнен всегда) */
@media (min-width: 80em) {
  .stay-grid--reviews {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  }
}

/* Тулбар списка: сортировка слева, справа — счётчик (раздел 17, без видимых подписей) */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  align-items: center;
  justify-content: space-between;
}

.toolbar__select {
  width: 100%;
  min-width: 0;
  max-width: 22rem;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
}

.toolbar__text {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

/* Плашка-счётчик у заголовка: «651 найдено» */
.found {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

.found-head__link {
  margin-left: auto;
}

.found-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
}

/* Пагинация: стрелки и номера — цели 44×44, текущая залита акцентом */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
}

.pagination__info {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  padding: 0;
  list-style: none;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
}

.pagination__link[aria-current='page'] {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.pagination__gap {
  min-width: 24px;
  color: var(--color-text-muted);
  text-align: center;
}

@media (hover: hover) {
  .pagination__link:not([aria-current='page']):hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
  }
}

/* Отзыв гостя о жилье (каталог): фото и название объекта, оценка, цитата, достоинства и недостатки */
.stay-review {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background: var(--color-bg);
}

.stay-review__head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.stay-review__image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-s);
  object-fit: cover;
  background: var(--color-image-bg);
}

/* Нет фото отеля — заглушка со значком (partials/_hotel_thumb.php) */
.stay-review__image--empty,
.city-review__image--empty,
.home-review__image--empty {
  display: grid;
  place-items: center;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

/* «Все отзывы» кнопкой справа в шапке главы */
.chapter__more-button {
  flex: none;
  align-self: end;
}

.stay-review__title {
  font-size: 1rem;
  line-height: 1.3;
}

.stay-review__link {
  overflow-wrap: normal;
  color: inherit;
  text-decoration: none;
}

.stay-review__address {
  overflow-wrap: normal;
  display: flex;
  gap: var(--space-1);
  align-items: center;
  margin-top: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.score {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-s);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

.stay-review__body {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.stay-review__quote {
  font-size: var(--text-small);
}

.stay-review__point {
  font-size: var(--text-small);
}

.stay-review__label {
  padding: 2px var(--space-2);
  border-radius: var(--radius-s);
  background: var(--color-page-alt);
  font-weight: var(--weight-bold);
}

.stay-review__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.stay-review__author {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
}

/* Сворачиваемый текст («Читать полностью», «Развернуть»): нативный <details>, работает без JS */
.expand {
  container-type: inline-size;
  border-radius: var(--radius-l);
  background: var(--color-page-alt);
}

.expand__summary {
  display: grid;
  gap: var(--space-3) var(--space-5);
  align-items: center;
  padding: var(--space-4);
  cursor: pointer;
  list-style: none;
}

.expand__summary::-webkit-details-marker {
  display: none;
}

@container (min-width: 48rem) {
  .expand__summary {
    grid-template-columns: 220px minmax(0, 1fr) auto;
  }
}

.expand__image {
  width: 100%;
  height: 96px;
  border-radius: var(--radius-m);
  object-fit: cover;
}

.expand__title {
  display: block;
  font-size: var(--text-h3);
  line-height: var(--leading-heading);
}

.expand__lead {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-text-muted);
}

.expand__button {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-s);
  background: var(--color-bg);
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}

.expand[open] .expand__chevron {
  rotate: 180deg;
}

.expand__body {
  display: grid;
  gap: var(--space-3);
  max-width: none;
  padding: 0 var(--space-4) var(--space-5);
}

.expand__heading {
  font-size: var(--text-h3);
}

/* Строка пилюль-ссылок с подписью слева: «Жильё Геленджика», «Курорты рядом» */
.pill-row {
  display: grid;
  gap: var(--space-2) var(--space-4);
  align-items: center;
}

@media (min-width: 48em) {
  .pill-row {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}

.pill-row__title {
  font-weight: var(--weight-bold);
}

/* Поля поиска в тонированной панели (расчёт по датам, форма поиска) */
.cta-panel {
  display: grid;
  gap: var(--space-4);
}

/* ==========================================================================
   2. Каталог (hotels.html)
   ========================================================================== */

/* Колонка сайдбара: выбор курорта и фильтры одним столбцом */
.stay-aside {
  display: grid;
  gap: var(--space-4);
}

.stay-aside__panel {
  padding: var(--space-4);
  border-radius: var(--radius-l);
  background: var(--color-page-alt);
}

.stay-aside__button {
  width: 100%;
}

.stay-aside__map-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-m);
  object-fit: cover;
}

/* Тема (Yii): фильтры каталога — ссылки на штатные адреса /filter/… (без JS) */
a.filters__item {
  color: inherit;
  text-decoration: none;
}

a.filters__item[aria-current] {
  color: var(--color-accent-hover);
  font-weight: var(--weight-bold);
}

.filters__item {
  display: flex;
  overflow-wrap: normal;
  gap: var(--space-3);
  align-items: center;
  min-height: 44px;
  font-size: var(--text-small);
  cursor: pointer;
}

@media (min-width: 64em) {
  .filters__item {
    min-height: 36px;
  }
}

.filters__check {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--color-accent);
}

.filters__group + .filters__group {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.promo {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  overflow: clip;
  border-radius: var(--radius-m);
  color: var(--color-on-accent);
  text-decoration: none;
}

.promo__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo__body {
  position: relative;
  display: grid;
  gap: var(--space-1);
  width: 100%;
  padding: var(--space-5) var(--space-4) var(--space-4);
  background: linear-gradient(to top, var(--color-photo-shade), var(--color-photo-clear));
}

.promo__title {
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
}

.fold {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background: var(--color-bg);
}

.fold__summary {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: var(--space-2) var(--space-4);
  font-weight: var(--weight-bold);
  list-style: none;
  cursor: pointer;
}

.fold__summary::-webkit-details-marker {
  display: none;
}

.fold[open] .fold__chevron {
  rotate: 180deg;
}

.fold__body {
  display: grid;
  gap: var(--space-2);
  padding: 0 var(--space-4) var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.stack-s {
  display: grid;
  gap: var(--space-3);
}

/* ==========================================================================
   5. Утилиты
   ========================================================================== */

/* stylelint-disable declaration-no-important */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
/* stylelint-enable declaration-no-important */

/* Заголовки групп фильтров в узком сайдбаре (при крупном шрифте слово «Инфраструктура» не разрывается) */
.stay-aside .filters__title {
  font-size: 0.9375rem;
  overflow-wrap: normal;
}

/* Ссылки и цифры на тонированной панели: тон темнее — контраст ≥ 4,5 */
.panel .link-arrow,
.panel .stats__value {
  color: var(--color-accent-hover);
}

/* Общие элементы нового направления TipTopTrip. Модификаторы не меняют компоновку внутренних страниц. */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.section--home {
  padding-block: var(--section-y);
}

.section--home .section__title {
  font-size: var(--text-home-h2);
  font-weight: var(--weight-bold);
  letter-spacing: -0.035em;
  line-height: var(--leading-heading);
}

.section--home .section__head {
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.section__eyebrow {
  color: var(--color-accent-hover);
  font-size: 0.8125rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
}

.header--coastal {
  box-shadow: 0 1px 0 var(--color-border);
}

.header--coastal .header__inner {
  min-height: var(--header-height);
}

.header__favorite-count {
  position: absolute;
  top: var(--space-1);
  right: var(--space-1);
  min-width: 18px;
  padding-inline: var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 0.75rem;
  text-align: center;
}

.header__action {
  position: relative;
}

.feature-tile--category {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-4);
  height: 100%;
  min-height: 124px;
  padding: var(--space-5);
  border-color: transparent;
  background: var(--color-surface);
  font-size: 0.9375rem;
}

.feature-tile--category .feature-tile__icon {
  width: 36px;
  height: 36px;
}

.resort-tile--featured {
  gap: var(--space-2);
}

.resort-tile--featured .resort-tile__image {
  aspect-ratio: 1.8;
  border-radius: var(--radius-l);
}

.resort-tile--featured .resort-tile__name {
  margin-top: var(--space-1);
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.resort-tile[hidden] {
  display: none;
}

/* Плитка с подписью на фото (главная, 404 — макеты astra 2026-11-27): modifier resort-tile--overlay, overlay="1" */
.resort-tile--overlay {
  position: relative;
  display: grid;
  grid-template-rows: minmax(5.5rem, auto) auto;
  gap: 0;
  overflow: clip;
  border-radius: 20px;
  background: var(--color-image-bg);
  color: var(--color-hero-text);
}

/* фото — на всю плитку: высота = свободный верх + подпись, при крупном шрифте плитка растёт, а не обрезает текст */
.resort-tile--overlay .resort-tile__image {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  transition: scale var(--duration-slow) var(--ease);
}

.resort-tile--overlay .resort-tile__name,
.resort-tile--overlay .resort-tile__count {
  position: relative;
  grid-area: 2 / 1;
}

.resort-tile--overlay .resort-tile__name {
  margin: 0;
  padding: var(--space-6) var(--space-3) calc(var(--space-3) + 1.5em);
  background: linear-gradient(180deg, var(--color-region-clear), var(--color-region-shade));
  font-size: clamp(1rem, 0.6vw + 0.85rem, 1.25rem);
}

/* число — под названием на узкой плитке, справа от него с 80em */
.resort-tile--overlay .resort-tile__count {
  align-self: end;
  padding: 0 var(--space-3) var(--space-3);
  color: var(--color-hero-soft);
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

@media (min-width: 80em) {
  .resort-tile--overlay .resort-tile__name {
    padding: var(--space-6) var(--space-4) var(--space-4);
  }

  .resort-tile--overlay .resort-tile__count {
    justify-self: end;
    padding: 0 var(--space-4) var(--space-4);
  }

  .resort-tile--overlay {
    grid-template-rows: minmax(8rem, auto) auto;
  }
}

@media (hover: hover) {
  .resort-tile--overlay:hover .resort-tile__name {
    color: var(--color-hero-text);
  }

  .resort-tile--overlay:hover .resort-tile__image {
    scale: 1.04;
  }
}

.stay-card--fresh {
  border-radius: var(--radius-l);
}

.stay-card--fresh .stay-card__media {
  aspect-ratio: 1.45;
}

.stay-card--fresh .stay-card__body {
  gap: var(--space-3);
  padding: var(--space-5);
}

.stay-card--fresh .stay-card__title {
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* Цена — главное в карточке: крупно и бирюзой (макет M1) */
.stay-card--fresh .stay-card__price-value {
  color: var(--color-accent-hover);
  font-size: 1.375rem;
}

.stay-card--fresh .stay-card__bottom {
  padding-top: var(--space-4);
}

.stay-card--fresh .stay-card__badge {
  bottom: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-2);
  font-weight: var(--weight-medium);
}

.stay-card--fresh .stay-card__favorite {
  top: var(--space-3);
  right: var(--space-3);
}

.toast {
  position: fixed;
  z-index: var(--z-toast);
  right: var(--container-padding);
  bottom: var(--space-5);
  left: var(--container-padding);
  max-width: 28rem;
  margin-inline: auto;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-m);
  background: var(--color-text);
  color: var(--color-bg);
  box-shadow: var(--shadow-m);
  font-size: var(--text-small);
  pointer-events: none;
}

.toast:empty {
  padding: 0;
}

/* Внутренние страницы: общее продолжение утверждённого дизайна. */

/* Направление → меню разделов → содержимое с постоянной боковой колонкой. */
.breadcrumbs:has(+ .destination) {
  min-height: 0; /* Отступ считаем от последней строки, без пустой строки у короткой цепочки. */
}

.destination {
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (min-width: 48em) {
  .destination {
    margin-top: var(--space-5);
  }
}

.destination__header {
  position: relative;
  display: grid;
  overflow: clip;
  border-radius: var(--radius-l);
  background: var(--color-text);
}

.destination__body {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  gap: var(--space-1);
  align-content: center;
  padding: var(--destination-padding) var(--destination-gutter);
  background: linear-gradient(90deg, var(--color-destination-shade), var(--color-destination-tint));
  color: var(--color-hero-text);
}

.destination__location {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-small);
}

.destination__name {
  display: flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  color: inherit;
  font-size: var(--text-destination);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.035em;
  text-decoration: none;
}

.destination__name:hover {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: var(--space-2);
}

.destination__name:focus-visible {
  outline-color: var(--color-hero-text);
}

.destination__description {
  max-width: 48ch;
  font-size: var(--text-small);
}

.destination__picture {
  position: absolute;
  inset: 0;
}

.destination__image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}

@media (min-width: 48em) {
  .destination__body {
    background: linear-gradient(
      90deg,
      var(--color-destination-shade),
      var(--color-destination-tint) 36%,
      var(--color-photo-clear) 80%
    );
  }

  .destination__image {
    object-position: center 37%;
  }
}

/* Шапка направления «с картинкой» (решение владельца 2026-11-26): тип «С картинкой» стандарта, высота — токен
   --page-hero-h-image; H1 страницы, лид и до трёх цифр раздела лежат на фото, затемнение — снизу и слева.
   На телефоне токен (168 px) ниже содержимого (заголовок в 2 строки и цифры): общий минимум в rem, чтобы шапка была
   одной высоты на всех страницах курорта; с 1440 — токен 288 px */
.destination__header--hero {
  /* одна высота у всех страниц курорта и региона (владелец 2026-12-01): запас на заголовок в 2 строки, лид и цифры
     (каталог, регион) — 320 на 1440, на телефоне 308 (заголовок в 4 строки) */
  min-height: max(var(--page-hero-h-image) + 32px, 19.25rem);
}

.destination__header--hero .destination__body {
  gap: var(--space-2);
  align-content: end;
  padding: var(--space-7) var(--hero-inner-padding) var(--hero-inner-padding);
  background: linear-gradient(
    to top,
    var(--color-destination-shade),
    var(--color-destination-tint) 55%,
    var(--color-photo-clear)
  );
}

.destination__header--hero .destination__location {
  flex-wrap: wrap;
  column-gap: var(--space-1);
}

/* Регион на телефоне — в хлебных крошках; в шапке только курорт */
.destination__where {
  display: none;
}

@media (min-width: 48em) {
  .destination__where {
    display: inline;
  }
}

.destination__crumb {
  color: inherit;
  white-space: nowrap;
  font-weight: var(--weight-bold);
  text-decoration: underline;
  text-decoration-color: var(--color-hero-label);
  text-underline-offset: 3px;
}

.destination__crumb:hover {
  color: inherit;
  text-decoration-color: currentcolor;
}

.destination__crumb:focus-visible {
  outline-color: var(--color-hero-text);
}

/* Заголовок шапки крупнее (макет M1), в одну строку на 1440 — высота шапки по-прежнему токен */
.destination__title {
  max-width: 30ch;
  color: inherit;
  font-size: clamp(var(--text-h1), 1.6vw + 1.4rem, 3rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Подзаголовок на телефоне скрыт (стандарт: на телефоне в шапке крошки и заголовок), цифры остаются */
.destination__lead {
  display: none;
  max-width: 52ch;
  font-size: var(--text-base);
}

@media (min-width: 48em) {
  .destination__lead {
    display: block;
  }
}

/* Телефон: три цифры одной стеклянной плашкой в колонки (значение над подписью), чтобы шапка не росла
   на три строки пилюль; колонки в rem — при крупном шрифте переносятся. С 48em — отдельные пилюли */
.destination__stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: var(--space-2);
  padding: 0;
  overflow: clip;
  border-radius: var(--radius-l);
  background: var(--color-glass);
  list-style: none;
}

.destination__stat {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: min-content;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text);
  font-size: var(--text-small);
  line-height: var(--leading-text);
}

.destination__stat-value {
  font-size: 1rem;
  font-weight: var(--weight-bold);
  white-space: nowrap;
}

.destination__stat-label {
  color: var(--color-text-muted);
  overflow-wrap: normal;
}

@media (min-width: 48em) {
  .destination__header--hero .destination__body {
    background: linear-gradient(
      90deg,
      var(--color-destination-shade),
      var(--color-destination-tint) 45%,
      var(--color-photo-clear) 85%
    );
  }

  .destination__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) 0;
    margin-top: var(--space-3);
    overflow: visible;
    border-radius: 0;
    background: none;
  }

  .destination__stat-value {
    font-size: clamp(1.375rem, 0.8vw + 1rem, 1.875rem);
    line-height: var(--leading-heading);
    letter-spacing: -0.02em;
  }

  .destination__stat-label {
    color: inherit;
    opacity: 0.85;
  }

  /* С 48em — крупные цифры с тонкими разделителями прямо на фото (макет M1), без пилюль; подпись — в строку */
  .destination__stat {
    flex: 0 1 auto;
    flex-direction: row;
    gap: var(--space-2);
    align-items: baseline;
    padding: 0 var(--space-5);
    border-left: 1px solid var(--color-hero-label);
    color: inherit;
  }

  .destination__stat:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

.subnav--destination {
  padding: var(--space-2) var(--space-1) 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-border);
}

.subnav--destination .subnav__list {
  gap: var(--space-2);
}

.subnav--destination .subnav__link {
  position: relative;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2) var(--space-4);
  border-radius: 0;
  background: transparent;
  color: var(--color-text-muted);
  transition: color var(--duration) var(--ease);
}

.subnav--destination .subnav__link::after {
  position: absolute;
  right: var(--space-2);
  bottom: 0;
  left: var(--space-2);
  height: 3px;
  border-radius: var(--radius-pill);
  background: transparent;
  content: '';
}

.subnav--destination .subnav__link[aria-current='page'] {
  color: var(--color-accent-hover);
  font-weight: var(--weight-bold);
}

.subnav--destination .subnav__link[aria-current='page']::after {
  background: var(--color-accent);
}

.subnav__icon {
  width: 1.125rem;
  height: 1.125rem;
}

/* На планшете девять разделов остаются в одной строке; полоса прокрутки доступна мышью. */
@media (min-width: 48em) {
  .subnav--destination .subnav__list {
    gap: 0;
    flex-wrap: nowrap;
    padding-bottom: var(--space-2);
    overflow-x: auto;
    scrollbar-color: var(--color-border-strong) transparent;
    scrollbar-width: thin;
  }

  /* «Объекты (651)» длиннее прежнего «Жильё»: на 768–1279 иконки пунктов скрыты — девять пунктов помещаются
     в строку и в Firefox/Safari (там шрифт шире, лента прокручивалась на 16 px) */
  .subnav--destination .subnav__link {
    gap: var(--space-1);
    padding-inline: var(--space-2);
  }

  .subnav--destination .subnav__icon {
    display: none;
  }
}

@media (min-width: 80em) {
  .subnav--destination .subnav__list {
    gap: var(--space-3);
    flex-wrap: wrap;
    padding-bottom: var(--space-1);
    overflow-x: visible;
    scrollbar-width: none;
  }

  .subnav--destination .subnav__link {
    gap: var(--space-2);
    padding-inline: var(--space-2);
  }

  .subnav--destination .subnav__icon {
    display: inline;
  }
}

@media (hover: hover) {
  .subnav--destination .subnav__link:hover {
    background: transparent;
    color: var(--color-accent-hover);
  }
}

.context-layout {
  gap: var(--space-4) var(--grid-gap);
}

.context-layout__main,
.context-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  min-width: 0;
  align-content: start;
}

.context-layout__main {
  --text-h2: clamp(1.375rem, 0.6vw + 1.25rem, 1.75rem);

  container-type: inline-size;
}

.context-layout__aside {
  container-type: inline-size;
}

/* Сетки внутри колонки перестраиваются по месту, оставшемуся рядом с сайдбаром. */
.grid--content {
  grid-template-columns: minmax(0, 1fr);
}

@container (min-width: 32rem) {
  .grid--content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 56rem) {
  .grid--content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grid--content.grid--3 {
  grid-template-columns: minmax(0, 1fr);
}

@container (min-width: 48rem) {
  .grid--content.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grid--content.grid--4 {
  grid-template-columns: minmax(0, 1fr);
}

@container (min-width: 32rem) {
  .grid--content.grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 60rem) {
  .grid--content.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.context-section {
  padding-block: 0;
}

.content-heading {
  display: grid;
  gap: var(--space-2);
}

.content-heading__title {
  font-size: var(--text-context-title);
  line-height: var(--leading-heading);
}

.content-heading__lead {
  max-width: 64ch;
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.destination-search {
  min-width: 0;
}

.sidebar-stack,
.sidebar-panel {
  display: grid;
  gap: var(--space-4);
}

.sidebar-panel {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  background: var(--color-bg);
}

.sidebar-panel--primary {
  border-color: var(--color-accent-soft);
  background: var(--color-accent-soft);
}

.sidebar-panel__title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

.sidebar-panel__value {
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
}

.sidebar-panel__text {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.sidebar-links {
  display: grid;
  gap: var(--space-1);
  padding: 0;
  list-style: none;
}

.sidebar-links__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: var(--space-2);
  color: var(--color-text);
  font-size: var(--text-small);
  text-decoration: none;
}

.sidebar-links__link:hover {
  color: var(--color-accent);
}

.sidebar-facts {
  display: grid;
  gap: var(--space-3);
  padding: 0;
  list-style: none;
}

.sidebar-facts__item {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  align-items: baseline;
}

.sidebar-facts__value {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

.sidebar-facts__label {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

@media (min-width: 64em) {
  .context-layout--aside-end .context-layout__aside {
    grid-column: 2;
    grid-row: 1;
  }
}

@media not all and (min-width: 64em) {
  .context-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.aside-fold__summary {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  min-height: var(--control-height);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background: var(--color-bg);
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  list-style: none;
  cursor: pointer;
}

.aside-fold__summary::-webkit-details-marker {
  display: none;
}

.aside-fold[open] .aside-fold__chevron {
  transform: rotate(180deg);
}

.aside-fold__body {
  padding-top: var(--space-3);
}

/* При работающем JS мобильная панель закрыта ещё до первого кадра.
   Без JS остаётся открытой: навигация и селекторы сразу доступны. */
@media (scripting: enabled) {
  .aside-fold:not([data-aside-ready]) > .aside-fold__body {
    display: none;
  }
}

@media (min-width: 64em) {
  .aside-fold[open] .aside-fold__summary {
    display: none;
  }

  .aside-fold__body {
    padding-top: 0;
  }
}

/* Поиск по разделу работает только со скриптом: до запуска невидим на своём месте (стандарт: JS не двигает вёрстку) */
.browse-tools[hidden] {
  visibility: hidden;
}

.browse-tools {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  background: var(--color-surface);
}

.browse-tools__label {
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
}

.browse-tools__input {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-m);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
}

.browse-status {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: 1.5;
}

.browse-status:empty {
  position: absolute;
}

.browse-empty {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
  padding: var(--card-padding);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-l);
  background: var(--color-surface);
}

/* Текст из базы (CMS): теги без классов — h2, h3, p, ul, ol, li, a, strong. Разрешено только внутри .content
   (правило stylelint). Текст — на всю ширину своей колонки (владелец 2026-11-26: «ширина текста не занимает весь
   контейнер — странно»), отступы — gap, у текста нет полей браузера. Тексты курорта:
   путеводитель на «Курорте» и SEO-тексты внизу разделов (владелец 2026-11-26, формат страницы путеводителя прежнего сайта) */
.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: var(--leading-text);

  /* Длинное слово, которое не помещается в строку при крупном шрифте, — переносится внутри слова */
  overflow-wrap: break-word;
}

/* stylelint-disable selector-max-type */
.content h2 {
  margin-top: var(--space-4);
  font-size: var(--text-h2);
  line-height: var(--leading-tight);
}

/* SEO-текст в карточке-главе (владелец 2026-11-27: «весь текст в рамке»): колонка уже на поля главы, и на телефоне
   при крупном шрифте «достопримечательностям» и «краткосрочного» рвались — кегль текста и H2 на ступень меньше */
.content--seo {
  font-size: 1rem;
}

.content--seo h2 {
  font-size: clamp(1.125rem, 1.5vw + 0.8rem, 1.75rem);
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  margin-top: var(--space-2);
  font-size: var(--text-h3);
}

.content ul,
.content ol {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* 2026-11-27: длинное слово в пункте не растягивает список за колонку */
  gap: var(--space-2);
  padding-left: var(--space-6);
}

.content li::marker {
  color: var(--color-accent);
}

.content a {
  color: var(--color-accent-hover);
  text-underline-offset: 3px;
}

/* Длинный текст из базы — по ширине колонки, выравнивание по ширине с переносами (html lang="ru"); на телефоне — по левому краю */
.content p,
.content li,
.content blockquote {
  text-align: justify;
  hyphens: auto;
  overflow-wrap: break-word;
}

@media (max-width: 36rem) {
  .content p,
  .content li,
  .content blockquote {
    text-align: left;
  }
}

/* stylelint-enable selector-max-type */

/* ==========================================================================
   Путеводитель и главы страниц курорта (2026-11-26, макет M1): общие для cities, stats, hotels, map, post —
   глава .chapter, оглавление в колонке .guide-side, «Курорты рядом» .guide-nearby, виджеты внутри глав
   ========================================================================== */

/* ---------- Курорт — путеводитель (2026-11-26, формат страницы путеводителя прежнего сайта, макет Codex
   temp/redesign-pages/longread/out): оглавление из нумерованных плашек; глава — метка «01 / …», H2, лид, текст из БД
   (.content) рядом с фото или карточкой «Коротко», виджет главы; главы 02, 04, 06 и вопросы — на светлой панели ---------- */
.guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

/* Оглавление путеводителя (владелец: «может это лучше в сайдбар?») — в колонке после выбора курорта.
   С 1024: панель, прилипает под шапкой ([data-sticky] — колонка сама не закрепляется, theme-ui.js), текущая глава
   подсвечена (travel-ui.js). До 1024: одна строка пилюль с горизонтальной прокруткой над поиском */

.guide-side__title {
  display: none;
  font-weight: var(--weight-bold);
}

/* До 1024 список — лента .subnav__list (общий блок: прокрутка, пункт в фокусе докручивает theme-ui.js,
   с 768 — перенос в ряды) */
.guide-side__link {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  text-decoration: none;
}

.guide-side__link:hover {
  background: var(--color-surface);
}

/* Текущий пункт — цветом и рамкой, без смены жирности: иначе пилюля ленты меняет ширину при прокрутке */
.guide-side__link[aria-current='true'] {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
}

.guide-side__num {
  flex: none;
  color: var(--color-accent);
  font-weight: var(--weight-bold);
}

.guide-side__num:empty {
  display: none;
}

/* Метка главы — одна (владелец 2026-12-03: «и иконки, и числа — перебор»): номер только там, где значки скрыты
   (лента 768–1024) */
.guide-side__num {
  display: none;
}

@media (min-width: 768px) and (not (min-width: 64em)) {
  .layout__aside:not(.layout__aside--sheet) .guide-side__num:not(:empty) {
    display: inline;
  }
}

.guide-side__icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

/* Прогресс чтения путеводителя (travel-ui.js ставит --progress), только с 1024 */
.guide-side__progress {
  display: none;
  height: 4px;
  overflow: clip;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
}

.guide-side__progress-bar {
  display: block;
  width: calc(var(--progress, 0) * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--color-sunset);
}

/* Карточка «Выбрать жильё» под оглавлением (макет M1) — с 1024; на телефоне оглавление — лента */
.guide-side__cta {
  display: none;
  gap: var(--space-1);
  padding: var(--space-4);
  border-radius: var(--radius-l);
  background: var(--color-accent-soft);
  color: var(--color-text);
  text-decoration: none;
}

.guide-side__cta-title {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--color-accent-hover);
  font-weight: var(--weight-bold);
}

.guide-side__cta-text {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

@media (hover: hover) {
  .guide-side__cta:hover .guide-side__cta-title {
    text-decoration: underline;
  }
}

@media (min-width: 64em) {
  .guide-side__cta {
    display: grid;
  }
}

@media (min-width: 64em) {
  .layout__aside--toc {
    align-self: stretch;
  }

  /* Оглавление и карточка «Выбрать жильё» прилипают вместе (карточка вне <nav>: на телефоне скрыта) */
  .guide-side-box {
    position: sticky;
    top: var(--sticky-top);
    display: grid;
    gap: var(--space-3);
  }

  .guide-side {
    position: sticky;
    top: var(--sticky-top);
    display: grid;
    gap: var(--space-3);
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-l);
    background: var(--color-bg);
  }

  .guide-side__title {
    display: block;
  }

  .guide-side__progress {
    display: block;
  }

  .guide-side__list {
    display: grid;
    gap: var(--space-1);
    padding: 0;
    margin: 0;
    overflow: visible;
  }

  /* в колонке длинные пункты («Положение о персональных данных») переносятся, а не вылезают на главу (ревью r1) */
  .guide-side__link {
    gap: var(--space-3);
    min-height: 0;
    padding: var(--space-2) var(--space-3);
    border: 0;
    border-radius: var(--radius-m);
    white-space: normal;
  }

  .guide-side__num {
    width: 1.25rem;
    font-size: 0.8125rem;
  }

  .guide-side__link[aria-current='true'] {
    box-shadow: inset 0 0 0 1px var(--color-accent);
  }
}

/* Глава — бенто-карточка (макет M1): белая, тонкая рамка и мягкая тень, крупное скругление; внутри — карточки с рамкой */
.chapter {
  --chapter-card-bg: var(--color-tint);

  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  padding: clamp(16px, 2.5vw, 40px);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
  container-type: inline-size;
}

/* Главы чередуются: белая / светлая бирюзовая — лента не сливается в одну (владелец: «фон панелей чередовать»).
   Карточки внутри — наоборот (--chapter-card-bg): в белой главе бирюзовые, в бирюзовой белые */
.chapter:nth-of-type(2n):not(.chapter--plain) {
  --chapter-card-bg: var(--color-bg);

  border-color: var(--color-tint-border);
  background: var(--color-tint);
}

.chapter--plain {
  --chapter-card-bg: var(--color-bg);

  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.chapter__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
}

.chapter__label {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--color-accent-hover);
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
}

.chapter__label::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-sunset);
  content: '';
}

.chapter__title {
  font-size: clamp(1.25rem, 1.4vw + 1rem, 2rem);
  line-height: var(--leading-tight);
  overflow-wrap: break-word;
}

.chapter__lead {
  color: var(--color-text-muted);
}

/* Текст и фото/карточка рядом — одной высоты (владелец: «не нравится, когда текст и блок разной высоты»):
   колонки тянутся по высоте ряда, фото заполняет её по кадру */
.chapter__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

@container (min-width: 44rem) {
  /* Текст и фото поровну, фото крупное (макет M1) */
  .chapter__body,
  .chapter__body--flip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter__body--flip > .chapter__figure {
    order: -1;
  }

  .chapter__body > .chapter__figure {
    grid-template-rows: minmax(0, 1fr);
  }

  .chapter__body .chapter__image {
    height: 100%;
    min-height: 12rem;
    aspect-ratio: auto;
  }
}

.chapter__figure {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.chapter__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: var(--color-image-bg);
  object-fit: cover;
}

/* фото под текстом на планшете (глава 30–44rem) — ниже, 16:9: при 4:3 занимало весь экран (ревью r1, region/resort @768) */
@container (min-width: 30rem) {
  .chapter__image {
    aspect-ratio: 16 / 9;
  }
}

/* Подпись места — стеклянная плашка поверх фото */
.chapter__caption {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  display: flex;
  gap: var(--space-1);
  align-items: center;
  max-width: calc(100% - var(--space-6));
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-glass);
  color: var(--color-text);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
}

.chapter__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  padding: 0;
  list-style: none;
}

@container (min-width: 40rem) {
  .chapter__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Телефон: факты — компактные строки; с 40rem колонки — карточки с рамкой */
.chapter__fact {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  border-radius: 20px;
  background: var(--chapter-card-bg, var(--color-bg));
  font-size: 1.0625rem;
  font-weight: var(--weight-bold);
  line-height: var(--leading-heading);
}

.chapter__fact-badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
}

@container (min-width: 40rem) {
  .chapter__fact {
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    font-size: 1.125rem;
  }

  .chapter__fact-badge {
    width: 48px;
    height: 48px;
  }
}

.chapter__fact-icon {
  width: 24px;
  height: 24px;
  color: var(--color-on-accent);
}

.chapter--panel .panel {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

/* Виджет «Цена за сутки»: гистограмма цен «от» (БД, шаг 1 000 ₽), самый частый диапазон — второй акцент */
.price-widget {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--chapter-card-bg, var(--color-bg));
}

.price-widget__chart,
.price-widget__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  align-content: start;
}

/* Широкая колонка: график слева, бюджеты справа — виджет на всю ширину главы под текстом */
@container (min-width: 44rem) {
  .price-widget {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: var(--space-7);
  }
}

.price-widget__title {
  font-weight: var(--weight-bold);
}

.price-widget__range {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.price-widget__value {
  color: var(--color-text);
  font-weight: var(--weight-bold);
}

.price-hist {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 6rem;
  padding: 0;
  list-style: none;
}

.price-hist__bar {
  flex: 1 1 0;
  height: var(--h);
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: var(--color-accent);
  opacity: 0.35;
}

.price-hist__bar--peak {
  background: var(--color-sunset);
  opacity: 1;
}

.price-hist__bar--h6 {
  --h: 6%;
}

.price-hist__bar--h9 {
  --h: 9%;
}

.price-hist__bar--h10 {
  --h: 10%;
}

.price-hist__bar--h16 {
  --h: 16%;
}

.price-hist__bar--h17 {
  --h: 17%;
}

.price-hist__bar--h19 {
  --h: 19%;
}

.price-hist__bar--h29 {
  --h: 29%;
}

.price-hist__bar--h57 {
  --h: 57%;
}

.price-hist__bar--h62 {
  --h: 62%;
}

.price-hist__bar--h76 {
  --h: 76%;
}

.price-hist__bar--h100 {
  --h: 100%;
}

.price-hist__axis {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

/* Чипы бюджета — по два в ряд, а не столбиком по одному (телефон и узкая колонка) */
.price-widget .chips {
  display: grid;

  /* Не больше двух колонок (4 чипа — 2×2), при узкой колонке или крупном шрифте — одна */
  grid-template-columns: repeat(auto-fit, minmax(max(9rem, calc(50% - var(--space-2))), 1fr));
}

/* Курорты рядом — перелинковка, перенесена из сайдбара в ленту. flex-wrap: плиток 1…4 — ряд всегда заполнен;
   четыре в ряд — только в широкой колонке (иначе «Лазаревское» не помещается и рвётся), на телефоне — две */
.guide-nearby {
  display: flex;
  flex-wrap: wrap;
  gap: var(--grid-gap);
}

.guide-nearby > * {
  flex: 1 1 max(8.5rem, calc(25% - var(--grid-gap)));
  min-width: 0;
}

@container (min-width: 18rem) and (max-width: 59.99rem) {
  .guide-nearby > * {
    flex-basis: max(9.5rem, calc(50% - var(--grid-gap)));
  }
}

.chapter__sub {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.chapter__sub-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  align-items: baseline;
  justify-content: space-between;
}

.chapter__sub-title {
  font-size: var(--text-h3);
}

/* ссылка-итог главы при крупном шрифте переносится, а не вылезает за край (map @390, шрифт 200 %, 2026-11-27) */
.chapter__more {
  color: var(--color-accent-hover);
  white-space: normal;
}

.weather-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap);
}

@container (min-width: 40rem) {
  .weather-card {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

.chapter-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--card-padding);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  background: var(--chapter-card-bg, var(--color-bg));
}

.chapter-brief__title {
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
}

.chapter-brief__list,
.chapter-cards {
  display: grid;
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.chapter-brief__item,
.chapter-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.chapter-brief__icon,
.chapter-card__icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.chapter-brief__name,
.chapter-card__name {
  display: block;
  font-weight: var(--weight-bold);
}

.chapter-brief__text,
.chapter-card__text {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

/* три карточки — сразу в три колонки (40rem); шесть — сначала по две, в три с 52rem: в три колонки по 209 px длинные
   слова рвались (sites @768, 2026-11-27) */
@container (min-width: 30rem) {
  .chapter-cards:has(> :nth-child(4)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 40rem) {
  .chapter-cards:not(:has(> :nth-child(4))) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container (min-width: 52rem) {
  .chapter-cards:has(> :nth-child(4)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.chapter-card {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  background: var(--chapter-card-bg, var(--color-bg));
}

/* Фото-плитка курорта (_partials/city-photo-tile.html) — общая: районы, пляжи, соседние курорты */
.city-tile {
  position: relative;
  display: block;
  aspect-ratio: 2.4 / 1;
  overflow: clip;
  border-radius: var(--radius-l);
  background: var(--color-image-bg);
  color: var(--color-bg);
  text-decoration: none;
}

.city-tile::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-photo-shade), var(--color-photo-clear) 70%);
  content: '';
}

.city-tile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) {
  .city-tile__image {
    transition: transform var(--duration-slow) var(--ease);
  }

  .city-tile:hover .city-tile__image {
    transform: scale(1.04);
  }
}

.city-tile__body {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-3);
  left: var(--space-4);
  display: grid;
  gap: 2px;
}

.city-tile__name {
  font-size: 1.125rem;
  font-weight: var(--weight-bold);
  line-height: 1.2;
}

.city-tile__text {
  font-size: var(--text-small);
  line-height: 1.3;
}

.city-tile__arrow {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--color-glass);
  color: var(--color-text);
}

@container (min-width: 64rem) {
  .city-tile {
    aspect-ratio: 3.4 / 1;
  }

  .city-tiles--six .city-tile {
    aspect-ratio: 2.1 / 1;
  }

  .city-tiles--four .city-tile {
    aspect-ratio: 2.6 / 1;
  }
}

/* Плитки «Курортов рядом» — как на «Курорте» (.resort-page .city-tile): выше, подпись крупнее */
.guide-nearby .city-tile {
  aspect-ratio: auto;
  min-height: 14rem;
}

.guide-nearby .city-tile__image {
  position: absolute;
  inset: 0;
}

.guide-nearby .city-tile::before {
  z-index: var(--z-content);
}

.guide-nearby .city-tile__body {
  z-index: var(--z-content);
  right: var(--space-4);
  bottom: var(--space-5);
  left: var(--space-5);
  gap: var(--space-2);
}

/* стрелка — в правом верхнем углу: в узкой плитке телефона подпись под ней не помещалась (ревью r1) */
.guide-nearby .city-tile__arrow {
  z-index: var(--z-content);
  top: var(--space-4);
  bottom: auto;
}

/* Подпись в одну строку: «Дивноморское», «Архипо-Осиповка» не должны рваться в плитке шириной ~240px */
.guide-nearby .city-tile__name {
  font-size: clamp(1.0625rem, 0.8vw + 0.85rem, 1.25rem);
  overflow-wrap: normal;
}

/* Карточки жилья в главе на телефоне — лента с прокруткой (следующая выглядывает сбоку), с 40rem — три в ряд.
   Решение ведущего 2026-11-27: три карточки столбиком тянули страницу */
.chapter .city-trio,
.chapter .grid--content,
.chapter .stay-grid--three {
  display: grid;
  grid-template-columns: none;
  grid-auto-columns: minmax(15rem, 82%);
  grid-auto-flow: column;
  gap: var(--space-3);
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-1);
  margin: calc(-1 * var(--space-1)) calc(-1 * var(--space-2)) calc(-1 * var(--space-1)) calc(-1 * var(--space-1));
  overflow-x: auto;
  scroll-padding-inline: var(--space-1);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.city-trio > *,
.grid--content > *,
.stay-grid--three > * {
  scroll-snap-align: start;
}

/* Одна карточка — на всю ширину ленты, а не 82 % с пустотой справа */
.chapter .city-trio:has(> :only-child),
.chapter .grid--content:has(> :only-child),
.chapter .stay-grid--three:has(> :only-child) {
  grid-auto-columns: 100%;
}

/* От 40rem — ряд заполняется при любом числе карточек: 3 в ряд, если карточек три и больше; одна-две — делят ширину */
@container (min-width: 40rem) {
  .chapter .city-trio,
  .chapter .grid--content,
  .chapter .stay-grid--three {
    grid-template-columns: repeat(auto-fit, minmax(max(12rem, calc(33.333% - var(--grid-gap))), 1fr));
    grid-auto-flow: row;
    gap: var(--grid-gap);
    overflow-x: visible;
    scroll-snap-type: none;
  }

  /* Единственная карточка: фото слева, текст справа (иначе одно фото на 1000 px) */
  .chapter .city-trio > .stay-card:only-child,
  .chapter .grid--content > .stay-card:only-child,
  .chapter .stay-grid--three > .stay-card:only-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .chapter .city-trio > .stay-card:only-child .stay-card__media,
  .chapter .grid--content > .stay-card:only-child .stay-card__media,
  .chapter .stay-grid--three > .stay-card:only-child .stay-card__media {
    aspect-ratio: auto;
    min-height: 14rem;
  }

  .chapter .city-trio > .stay-card:only-child .stay-card__body,
  .chapter .grid--content > .stay-card:only-child .stay-card__body,
  .chapter .stay-grid--three > .stay-card:only-child .stay-card__body {
    align-content: center;
  }
}

/* Блоки разделов внутри главы .chapter (страницы курорта, 2026-11-26) */
.chapter .section__head {
  margin-bottom: 0;
}

/* articles */

/* ==========================================================================
   Статьи курорта (2026-11-26, по эталону «Курорта», макет M1): список и жильё — главы .chapter.
   Только то, чего нет в общих блоках common.css / post.css
   ========================================================================== */

/* Поиск по статьям внутри главы: без своей карточки (глава уже на подложке) — подпись и белое поле,
   отступ до списка — gap главы */
.chapter .browse-tools {
  margin-bottom: 0;
  padding: 0;
  border: 0;
  background: none;
}

/* articles */

/* Глава уже колонки на величину своих полей: при шрифте 200 % на телефоне длинное слово заголовка
   («Новороссийска») переносится, а не вылезает из карточки */
.chapter .post-item__title {
  overflow-wrap: anywhere;
}

/* reviews */

/* Отступ под фильтром даёт сетка главы — свой нижний отступ панели не нужен */
.chapter .review-tools {
  margin-bottom: 0;
}

/* reviews */

/* Пустой результат фильтра на светлой подложке главы — белая карточка, как отзывы */
.chapter .review-tools__empty {
  background: var(--color-bg);
}

/* weather */

/* На светлой подложке главы карточка «сейчас» — белая (в главе нет второй светлой рамки) */
.chapter .city-now--fresh {
  background: var(--color-bg);
}

/* Вопрос-ответ (<details>): общий блок — «Частые вопросы» и вопросы на страницах курорта */
.faq__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  background: var(--chapter-card-bg, var(--color-bg));
}

.faq__item[open] {
  border-color: var(--color-accent);
}

.faq__question {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: var(--space-3) calc(var(--space-5) + var(--space-6)) var(--space-3) var(--space-5);
  font-size: 1.125rem;
  font-weight: var(--weight-bold);
  line-height: var(--leading-heading);
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: var(--space-5);
  translate: 0 -50%;
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: var(--weight-regular);
  line-height: 1;
}

.faq__item[open] .faq__question::after {
  content: '−';
}

.faq__answer {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.browse-empty[hidden],
.stay-grid__item[hidden],
.stay-card__price[hidden],
.rating[hidden],
.post-item[hidden],
.faq__item[hidden],
.faq__group[hidden],
.chapter[hidden],
.region-funs__item[hidden],
[data-browse-item][hidden],
.resort-card[hidden],
.guide-card[hidden] {
  display: none;
}

.browse-empty__title {
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
}

.browse-empty__text {
  max-width: 40rem;
  color: var(--color-text-muted);
}

.browse-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-accent-hover);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  cursor: pointer;
}

.password-control {
  position: relative;
  display: grid;
}

.password-control__input {
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  padding-right: 56px;
}

.password-control__toggle {
  position: absolute;
  top: 50%;
  right: var(--space-1);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  translate: 0 -50%;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
}

.password-control__toggle[hidden] {
  display: none;
}

.read-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4) 0;
}

.read-nav__link {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-size: var(--text-small);
  text-decoration: none;
}

.read-nav__link[aria-current],
.read-nav__link:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
}

/* Сайдбар на телефоне (владелец 2026-11-27: «на мобилке не видны сайдбары с десктопа — нужна кнопка»).
   До 1024 колонка стоит в потоке (лента оглавления, карточка цены), а когда она ушла с экрана, внизу появляется
   кнопка .aside-fab. Она открывает ту же колонку нижней шторкой .layout__aside--sheet: оглавление списком,
   карточка «Выбрать жильё», выбор курорта, контакты. Фильтры — открывают свою панель .drawer (кнопка «Фильтры»).
   Место колонки в потоке держит распорка, страница под шторкой не сдвигается. Без JS кнопки нет. js/theme-ui.js */
.aside-fab {
  position: fixed;
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: var(--z-bar);
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  max-width: calc(100vw - 2 * var(--container-padding));
  min-height: 48px;
  padding: var(--space-2) var(--space-5);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-text);
  color: var(--color-bg);
  box-shadow: var(--shadow-m);
  font: inherit;
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  white-space: nowrap;
  translate: -50% 0;
  cursor: pointer;
  transition:
    opacity var(--duration) var(--ease),
    translate var(--duration) var(--ease);
}

/* Появление снизу; скрытая кнопка — display: none (не в обходе Tab и не «видима» для проверок) */
@starting-style {
  .aside-fab {
    opacity: 0;
    translate: -50% 150%;
  }
}

.aside-fab[hidden] {
  display: none;
}

.aside-fab__icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.aside-fab__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.aside-sheet__head,
.layout__aside-spacer {
  display: none;
}

@media (min-width: 64em) {
  .aside-fab {
    display: none;
  }
}

@media not all and (min-width: 64em) {
  .layout__aside-spacer {
    display: block;
  }

  .layout__aside--sheet {
    position: fixed;
    inset: auto 0 0;
    z-index: var(--z-drawer);
    display: grid;
    gap: var(--space-4);
    align-content: start;
    max-height: min(85dvh, 100dvh - 48px);
    padding: 0 var(--container-padding) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 24px 24px 0 0;
    background: var(--color-bg);
    box-shadow: var(--shadow-m);
    animation: aside-sheet-in var(--duration-slow) var(--ease);
  }

  :has(> .layout__aside--sheet)::after {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: var(--color-overlay);
    content: '';
  }

  .layout__aside--sheet .aside-sheet__head {
    display: flex;
    margin-inline: calc(-1 * var(--container-padding));
    border-radius: 24px 24px 0 0;
  }

  /* В шторке — вид колонки с десктопа: оглавление списком, заголовок, прогресс и карточка «Выбрать жильё» */
  .layout__aside--sheet .guide-side-box,
  .layout__aside--sheet .guide-side {
    display: grid;
    gap: var(--space-3);
  }

  .layout__aside--sheet .guide-side__title,
  .layout__aside--sheet .guide-side__progress {
    display: block;
  }

  .layout__aside--sheet .guide-side__cta {
    display: grid;
  }

  .layout__aside--sheet .guide-side__list {
    display: grid;
    gap: var(--space-1);
    padding: 0;
    margin: 0;
    overflow: visible;
  }

  .layout__aside--sheet .guide-side__link {
    gap: var(--space-3);
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    border: 0;
    border-radius: var(--radius-m);
    white-space: normal;
  }

  .layout__aside--sheet .guide-side__icon {
    display: inline-block;
  }

  .layout__aside--sheet .guide-side__link[aria-current='true'] {
    box-shadow: inset 0 0 0 1px var(--color-accent);
  }

  /* у шторки свой заголовок — строка-кнопка свёрнутой колонки (цена отеля, фильтры) в ней лишняя */
  .layout__aside--sheet .aside-fold__summary {
    display: none;
  }
}

@keyframes aside-sheet-in {
  from {
    translate: 0 100%;
  }
}

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

/* Тема (Yii): высота столбика гистограммы цен — любой процент 0–100 (данные из базы; inline style запрещён) */
.price-hist__bar--h0 {
  --h: 0%;
}

.price-hist__bar--h1 {
  --h: 1%;
}

.price-hist__bar--h2 {
  --h: 2%;
}

.price-hist__bar--h3 {
  --h: 3%;
}

.price-hist__bar--h4 {
  --h: 4%;
}

.price-hist__bar--h5 {
  --h: 5%;
}

.price-hist__bar--h7 {
  --h: 7%;
}

.price-hist__bar--h8 {
  --h: 8%;
}

.price-hist__bar--h11 {
  --h: 11%;
}

.price-hist__bar--h12 {
  --h: 12%;
}

.price-hist__bar--h13 {
  --h: 13%;
}

.price-hist__bar--h14 {
  --h: 14%;
}

.price-hist__bar--h15 {
  --h: 15%;
}

.price-hist__bar--h18 {
  --h: 18%;
}

.price-hist__bar--h20 {
  --h: 20%;
}

.price-hist__bar--h21 {
  --h: 21%;
}

.price-hist__bar--h22 {
  --h: 22%;
}

.price-hist__bar--h23 {
  --h: 23%;
}

.price-hist__bar--h24 {
  --h: 24%;
}

.price-hist__bar--h25 {
  --h: 25%;
}

.price-hist__bar--h26 {
  --h: 26%;
}

.price-hist__bar--h27 {
  --h: 27%;
}

.price-hist__bar--h28 {
  --h: 28%;
}

.price-hist__bar--h30 {
  --h: 30%;
}

.price-hist__bar--h31 {
  --h: 31%;
}

.price-hist__bar--h32 {
  --h: 32%;
}

.price-hist__bar--h33 {
  --h: 33%;
}

.price-hist__bar--h34 {
  --h: 34%;
}

.price-hist__bar--h35 {
  --h: 35%;
}

.price-hist__bar--h36 {
  --h: 36%;
}

.price-hist__bar--h37 {
  --h: 37%;
}

.price-hist__bar--h38 {
  --h: 38%;
}

.price-hist__bar--h39 {
  --h: 39%;
}

.price-hist__bar--h40 {
  --h: 40%;
}

.price-hist__bar--h41 {
  --h: 41%;
}

.price-hist__bar--h42 {
  --h: 42%;
}

.price-hist__bar--h43 {
  --h: 43%;
}

.price-hist__bar--h44 {
  --h: 44%;
}

.price-hist__bar--h45 {
  --h: 45%;
}

.price-hist__bar--h46 {
  --h: 46%;
}

.price-hist__bar--h47 {
  --h: 47%;
}

.price-hist__bar--h48 {
  --h: 48%;
}

.price-hist__bar--h49 {
  --h: 49%;
}

.price-hist__bar--h50 {
  --h: 50%;
}

.price-hist__bar--h51 {
  --h: 51%;
}

.price-hist__bar--h52 {
  --h: 52%;
}

.price-hist__bar--h53 {
  --h: 53%;
}

.price-hist__bar--h54 {
  --h: 54%;
}

.price-hist__bar--h55 {
  --h: 55%;
}

.price-hist__bar--h56 {
  --h: 56%;
}

.price-hist__bar--h58 {
  --h: 58%;
}

.price-hist__bar--h59 {
  --h: 59%;
}

.price-hist__bar--h60 {
  --h: 60%;
}

.price-hist__bar--h61 {
  --h: 61%;
}

.price-hist__bar--h63 {
  --h: 63%;
}

.price-hist__bar--h64 {
  --h: 64%;
}

.price-hist__bar--h65 {
  --h: 65%;
}

.price-hist__bar--h66 {
  --h: 66%;
}

.price-hist__bar--h67 {
  --h: 67%;
}

.price-hist__bar--h68 {
  --h: 68%;
}

.price-hist__bar--h69 {
  --h: 69%;
}

.price-hist__bar--h70 {
  --h: 70%;
}

.price-hist__bar--h71 {
  --h: 71%;
}

.price-hist__bar--h72 {
  --h: 72%;
}

.price-hist__bar--h73 {
  --h: 73%;
}

.price-hist__bar--h74 {
  --h: 74%;
}

.price-hist__bar--h75 {
  --h: 75%;
}

.price-hist__bar--h77 {
  --h: 77%;
}

.price-hist__bar--h78 {
  --h: 78%;
}

.price-hist__bar--h79 {
  --h: 79%;
}

.price-hist__bar--h80 {
  --h: 80%;
}

.price-hist__bar--h81 {
  --h: 81%;
}

.price-hist__bar--h82 {
  --h: 82%;
}

.price-hist__bar--h83 {
  --h: 83%;
}

.price-hist__bar--h84 {
  --h: 84%;
}

.price-hist__bar--h85 {
  --h: 85%;
}

.price-hist__bar--h86 {
  --h: 86%;
}

.price-hist__bar--h87 {
  --h: 87%;
}

.price-hist__bar--h88 {
  --h: 88%;
}

.price-hist__bar--h89 {
  --h: 89%;
}

.price-hist__bar--h90 {
  --h: 90%;
}

.price-hist__bar--h91 {
  --h: 91%;
}

.price-hist__bar--h92 {
  --h: 92%;
}

.price-hist__bar--h93 {
  --h: 93%;
}

.price-hist__bar--h94 {
  --h: 94%;
}

.price-hist__bar--h95 {
  --h: 95%;
}

.price-hist__bar--h96 {
  --h: 96%;
}

.price-hist__bar--h97 {
  --h: 97%;
}

.price-hist__bar--h98 {
  --h: 98%;
}

.price-hist__bar--h99 {
  --h: 99%;
}

/* Тема (Yii): номер текущего пункта оглавления — контраст AA на подсветке (axe, статья; было только в favourites.css) */
.guide-side__link[aria-current='true'] .guide-side__num {
  color: var(--color-accent-hover);
}

/* Картинки курорта из темы (frontend/helpers/ResortArt.php): <picture> не меняет вёрстку — <img> остаётся элементом
   сетки и позиционирования, как без обёртки */
.art {
  display: contents;
}

/* <source> при display: contents иначе становится ячейкой сетки/флекса и сдвигает соседей */
.art > source {
  display: none;
}

/* Число пункта ленты разделов — бейдж-капсула вместо «(586)» (владелец 2026-12-03, na-uga: «красивее на кнопочке») */
.subnav__count {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0 0.45em;
  margin-left: 0.1em;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  vertical-align: 0.1em;
}

.subnav__link[aria-current='page'] .subnav__count {
  background: var(--color-accent);
  color: #fff;
}

/* ==========================================================================
   Виджет «куда — даты — гости» (StaySearchWidget, web/common/stay-search): вид TipTopTrip — бирюза темы, Manrope,
   радиусы 12 (поля) и 16 (панель, попапы), мягкая «редакторская» тень; остальное — токены темы по умолчанию.
   Модификаторы по месту: .ss--panel (главная, курорт), .ss--catalog, .ss--host, .ss--calc, .ss--modal.
   ========================================================================== */
.ss,
.ss-pop {
  --ss-radius: var(--radius-l);
  --ss-radius-field: var(--radius-m);
  --ss-shadow: var(--shadow-editorial);
  --ss-font: var(--font-base);
  --ss-field-height: 60px;
}

.ss--panel {
  border-color: transparent;
}

.home-page .ss--panel {
  border-color: var(--color-bg);
}

.ss__submit {
  min-height: var(--ss-field-height);
  font-size: var(--text-base);
}

.ss--modal {
  --ss-field-height: 56px;
}

/* ==========================================================================
   Прелоадер ленивых картинок (js/theme-ui.js: is-loading → is-loaded / is-failed). TipTopTrip: бирюзовый
   шиммер — светлый блик скользит по рамке, по центру значок «метка на карте». Размер рамки не меняется:
   фон рисуется на самой <img>.
   ========================================================================== */
/* stylelint-disable color-no-hex, function-disallowed-list */
img.is-loading,
img.is-failed {
  color: transparent;
  background-color: var(--color-image-bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23047c8f' stroke-opacity='.5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.800 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.500' r='2.500'/%3E%3C/svg%3E"),
    linear-gradient(100deg, transparent 35%, rgb(4 124 143 / 14%) 50%, transparent 65%);
  background-repeat: no-repeat;
  background-position: center, 120% 0;
  background-size: 28px 28px, 250% 100%;
}

img.is-loading {
  animation: img-shimmer 1.6s ease-in-out infinite;
}

img.is-loaded {
  animation: img-reveal 0.25s ease-out;
}

@keyframes img-shimmer {
  to { background-position: center, -120% 0; }
}

@keyframes img-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  img.is-loading { animation: none; }
  img.is-loaded { animation: none; }
}
/* stylelint-enable color-no-hex, function-disallowed-list */
