/* Стили страницы «hotel-catalog» — поверх css/common.css */

.xh .xh-aside {
  margin-top: 48px;
  position: sticky;
  top: var(--xh-aside-top, calc(var(--xh-top) + var(--xh-nav-h) + 16px));
}

@media (min-width: 992px) and (max-height: 860px) {
  /* невысокие экраны ноутбуков: убираем второстепенное, чтобы карточка покупки помещалась целиком */
  .xh .xh-buy__sub, .xh .xh-fit__note, .xh .xh-perks li:not(.xh-perks__gift) {
    display: none;
  }

  .xh .xh-buy__title {
    margin-bottom: 12px;
  }

  .xh .xh-fit {
    margin-top: 12px;
    padding-bottom: 8px;
  }
}

@media (max-width: 991px) {
  .xh .xh-aside {
    margin-top: 24px;
    order: -1;
    position: static;
    width: 100%;
  }
}

/*
 * Каталог отелей — стили страницы. База (токены, сброс, кнопки, чипы, модалка, FAQ,
 * полосы, панель покупки) — ../hotel-nominal/css/hotel-nominal.css.
 * Здесь только компоненты каталога, все с префиксом xh-.
 */
.xh-cat .xh-eyebrow {
  align-items: center;
  background: var(--xh-blue-soft);
  border-radius: 999px;
  color: var(--xh-blue-d);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
  line-height: 1;
  padding: 8px 14px;
}

.xh-cat .xh-eyebrow .xh-i {
  height: 16px;
  width: 16px;
}

.xh-cat .xh-btn--sm {
  font-size: 14px;
  min-height: 42px;
  padding: 0 16px;
}

/* ---------- Первый экран ---------- */
.xh-cat .xh-chero {
  padding: 14px 0 0;
}

.xh-cat .xh-chero__grid {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  margin-top: 8px;
}

.xh-cat .xh-chero__copy .xh-h1 {
  font-size: 44px;
  margin-top: 18px;
}

.xh-cat .xh-chero__lead {
  color: var(--xh-text);
  font-size: 18px;
  line-height: 1.5;
  margin-top: 16px;
  max-width: 560px;
}

.xh-cat .xh-chero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.xh-cat .xh-chero__cta .xh-btn--lg {
  width: auto;
}

.xh-cat .xh-chero__trust {
  color: var(--xh-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px 20px;
  margin-top: 22px;
}

.xh-cat .xh-chero__trust li {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.xh-cat .xh-chero__trust .xh-i {
  color: var(--xh-green);
  height: 18px;
  width: 18px;
}

/* коллаж из фото отелей */
.xh-cat .xh-collage {
  display: grid;
  gap: 10px;
  grid-template-columns: 1.2fr 1fr;
  /* minmax(0, …): иначе ряды не могут стать ниже исходной высоты фото и коллаж
     вылезает за свою высоту на широких экранах */
  grid-template-rows: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr);
  /* высота от ширины колонки, но не выше 520px */
  height: min(91cqw, 520px);
  position: relative;
}

.xh-cat .xh-chero__grid > * {
  container-type: inline-size;
  min-width: 0;
}

.xh-cat .xh-collage__img {
  border-radius: var(--xh-r-lg);
  height: 100%;
  min-height: 0;
  min-width: 0;
  object-fit: cover;
  width: 100%;
}

.xh-cat .xh-collage__img:nth-child(1) {
  grid-row: 1 / 3;
}

.xh-cat .xh-collage__img:nth-child(2) {
  grid-row: 1;
}

.xh-cat .xh-collage__img:nth-child(3) {
  grid-row: 2 / 4;
}

.xh-cat .xh-collage__img:nth-child(4) {
  grid-row: 3;
}

.xh-cat .xh-collage__badge {
  background: #fff;
  border-radius: var(--xh-r);
  bottom: 24px;
  box-shadow: var(--xh-shadow-lg);
  left: -20px;
  max-width: 230px;
  padding: 14px 18px;
  position: absolute;
}

.xh-cat .xh-collage__badge b {
  color: var(--xh-red);
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.xh-cat .xh-collage__badge span {
  color: var(--xh-text);
  display: block;
  font-size: 13px;
  line-height: 1.3;
  margin-top: 4px;
}

/* тезисы */
.xh-cat .xh-usp {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 44px;
}

.xh-cat .xh-usp__item {
  background: #fff;
  border-radius: var(--xh-r-lg);
  box-shadow: var(--xh-shadow);
  color: var(--xh-muted);
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 6px;
  line-height: 1.4;
  padding: 22px;
}

.xh-cat .xh-usp__item b {
  color: var(--xh-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 8px;
}

.xh-cat .xh-usp__icon {
  align-items: center;
  border-radius: 14px;
  color: #fff;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.xh-cat .xh-usp__icon .xh-i {
  height: 26px;
  width: 26px;
}

.xh-cat .xh-usp__icon--blue {
  background: var(--xh-blue);
}

.xh-cat .xh-usp__icon--red {
  background: var(--xh-red);
}

.xh-cat .xh-usp__icon--yellow {
  background: var(--xh-yellow);
}

.xh-cat .xh-usp__icon--green {
  background: var(--xh-green);
}

/* ---------- Как это работает ---------- */
.xh-cat .xh-cat-how {
  margin-top: 56px;
}

.xh-cat .xh-hiw {
  counter-reset: none;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.xh-cat .xh-hiw__step {
  background: #fff;
  border-radius: var(--xh-r-lg);
  padding: 22px;
  position: relative;
}

.xh-cat .xh-hiw__step::after {
  border-top: 2px dashed rgba(27, 26, 26, 0.18);
  content: "";
  left: 72px;
  position: absolute;
  right: 22px;
  top: 41px;
}

.xh-cat .xh-hiw__step:last-child::after {
  display: none;
}

.xh-cat .xh-hiw__num {
  align-items: center;
  background: var(--xh-green);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 17px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  width: 40px;
  z-index: 1;
}

.xh-cat .xh-hiw__num--blue {
  background: var(--xh-blue);
}

.xh-cat .xh-hiw__num--yellow {
  background: var(--xh-yellow);
}

.xh-cat .xh-hiw__num--red {
  background: var(--xh-red);
}

.xh-cat .xh-hiw__step p {
  color: var(--xh-muted);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 8px;
}

/* ---------- Каталог ---------- */
.xh-cat .xh-catalog {
  padding: 56px 0;
  scroll-margin-top: calc(var(--xh-top) + 12px);
}

.xh-cat .xh-catalog__head .xh-section__lead {
  max-width: 720px;
}

.xh-cat .xh-catalog__count {
  color: var(--xh-muted);
  flex: 0 0 auto;
  font-size: 14px;
  white-space: nowrap;
}

.xh-cat .xh-catalog__count b {
  color: var(--xh-ink);
  font-weight: 800;
}

/* панель фильтров */
.xh-cat .xh-toolbar {
  background: var(--xh-soft);
  border-radius: var(--xh-r-lg);
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  min-width: 0;
  padding: 16px;
}

/* дети grid/flex по умолчанию не сжимаются уже своего содержимого — на мобильном
   горизонтальные ленты чипов иначе растягивают страницу */
.xh-cat .xh-toolbar > *, .xh-cat .xh-toolbar__row > * {
  max-width: 100%;
  min-width: 0;
}

.xh-cat .xh-search {
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--xh-line);
  border-radius: var(--xh-r-sm);
  display: flex;
  gap: 10px;
  height: 50px;
  padding: 0 14px;
  transition: border-color 0.15s ease;
}

.xh-cat .xh-search:focus-within {
  border-color: var(--xh-blue);
}

.xh-cat .xh-search .xh-i {
  color: var(--xh-muted);
}

.xh-cat .xh-search input {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--xh-ink);
  flex: 1 1 auto;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  height: 100%;
  min-width: 0;
  outline: none;
  padding: 0;
}

.xh-cat .xh-search input::-webkit-search-cancel-button {
  display: none;
}

.xh-cat .xh-search__clear {
  align-items: center;
  color: var(--xh-muted);
  display: inline-flex;
}

.xh-cat .xh-search__clear[hidden] {
  display: none;
}

.xh-cat .xh-locs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.xh-cat .xh-loc, .xh-cat .xh-fchip {
  cursor: pointer;
  position: relative;
}

.xh-cat .xh-loc input, .xh-cat .xh-fchip input {
  appearance: none;
  border: 0;
  height: 1px;
  left: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 1px;
}

.xh-cat .xh-loc span, .xh-cat .xh-fchip span {
  align-items: center;
  background: #fff;
  border: 1.5px solid transparent;
  border-radius: 999px;
  color: var(--xh-text);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 6px;
  line-height: 1;
  min-height: 38px;
  padding: 0 14px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.xh-cat .xh-loc:hover span, .xh-cat .xh-fchip:hover span {
  border-color: var(--xh-blue);
}

.xh-cat .xh-loc input:checked + span {
  background: var(--xh-ink);
  border-color: var(--xh-ink);
  color: #fff;
}

.xh-cat .xh-fchip span .xh-i {
  color: var(--xh-blue-d);
  height: 18px;
  width: 18px;
}

.xh-cat .xh-fchip input:checked + span {
  background: var(--xh-blue);
  border-color: var(--xh-blue);
  color: #fff;
}

.xh-cat .xh-fchip input:checked + span .xh-i {
  color: #fff;
}

.xh-cat .xh-loc input:focus-visible + span, .xh-cat .xh-fchip input:focus-visible + span {
  outline: 3px solid rgba(38, 182, 234, 0.6);
}

.xh-cat .xh-toolbar__row {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.xh-cat .xh-filters {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
}

.xh-cat .xh-toolbar__ctrl {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.xh-cat .xh-select {
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--xh-line);
  border-radius: 999px;
  display: inline-flex;
  height: 38px;
  padding: 0 12px 0 0;
  position: relative;
}

.xh-cat .xh-select select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--xh-text);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  height: 100%;
  outline: none;
  padding: 0 24px 0 14px;
}

.xh-cat .xh-select .xh-i {
  color: var(--xh-muted);
  height: 16px;
  margin-left: -20px;
  pointer-events: none;
  width: 16px;
}

.xh-cat .xh-toolbar__reset {
  border-radius: 999px;
  font-size: 14px;
  min-height: 38px;
  padding: 0 14px;
}

.xh-cat .xh-toolbar__reset[hidden] {
  display: none;
}

.xh-cat .xh-mfilter {
  display: none;
}

/* сетка карточек */
.xh-cat .xh-hgrid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xh-cat .xh-hcard {
  background: #fff;
  border-radius: var(--xh-r-lg);
  box-shadow: var(--xh-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.xh-cat .xh-hcard[hidden] {
  display: none;
}

@media (hover: hover) {
  .xh-cat .xh-hcard:hover {
    box-shadow: var(--xh-shadow-lg);
  }
}

.xh-cat .xh-hcard__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--xh-r-lg) var(--xh-r-lg) 0 0;
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

/* слайдер сайта (.x-search-card-slider из custom.css + js/product-card-slider.js):
   фото на всю карточку, точки в наших цветах. Все слои позиционированы абсолютно
   по границам блока фото — так высота не зависит от цепочки height: 100% и фото
   не могут выйти за карточку ни в одном браузере */
.xh-cat .xh-hcard__media .x-product-card-slider-link,
.xh-cat .xh-hcard__media .x-search-card-slider,
.xh-cat .xh-hcard__media .x-search-card-slider__track {
  display: block;
  height: auto;
  inset: 0;
  position: absolute;
  width: auto;
}

.xh-cat .xh-hcard__media .x-search-card-slider__track {
  display: flex;
}

.xh-cat .xh-hcard__media .x-search-card-slider__slide {
  height: 100%;
  position: relative;
}

.xh-cat .xh-hcard__media .x-search-card-slider__slide img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

/* Safari: без собственного слоя скруглённый overflow: hidden не обрезает трансформируемые дочерние элементы */
.xh-cat .xh-hcard {
  transform: translateZ(0);
}

.xh-cat .xh-hcard__media .x-search-card-slider__dots {
  bottom: 12px;
  gap: 5px;
}

.xh-cat .xh-hcard__media .x-search-card-slider__dot {
  background: rgba(255, 255, 255, 0.6);
  height: 7px;
  transition: background-color 0.15s ease, transform 0.15s ease;
  width: 7px;
}

.xh-cat .xh-hcard__media .x-search-card-slider__dot.is-active {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(27, 26, 26, 0.2);
  transform: scale(1.25);
}

.xh-cat .xh-hcard__type {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  color: var(--xh-ink);
  font-size: 12px;
  font-weight: 800;
  left: 12px;
  line-height: 1;
  padding: 7px 10px;
  position: absolute;
  top: 12px;
  z-index: 2;
}

.xh-cat .xh-hcard__fav {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  color: var(--xh-ink);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  transition: color 0.15s ease;
  width: 38px;
  z-index: 2;
}

.xh-cat .xh-hcard__fav:hover, .xh-cat .xh-hcard__fav[aria-pressed="true"] {
  color: var(--xh-red);
}

.xh-cat .xh-hcard__fav[aria-pressed="true"] .xh-i {
  fill: var(--xh-red);
}

.xh-cat .xh-hcard__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
}

.xh-cat .xh-hcard__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.xh-cat .xh-hcard__title a:hover {
  color: var(--xh-blue-d);
}

.xh-cat .xh-hcard__place {
  align-items: center;
  color: var(--xh-muted);
  display: flex;
  font-size: 13px;
  gap: 5px;
}

.xh-cat .xh-hcard__place .xh-i {
  color: var(--xh-red);
  height: 16px;
  width: 16px;
}

.xh-cat .xh-hcard__place span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xh-cat .xh-hcard__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.xh-cat .xh-hcard__facts li {
  background: var(--xh-soft);
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.2;
  padding: 5px 8px;
}

.xh-cat .xh-hcard__foot {
  align-items: center;
  border-top: 1px solid var(--xh-line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}

.xh-cat .xh-hcard__price {
  color: var(--xh-muted);
  font-size: 13px;
  line-height: 1.2;
}

.xh-cat .xh-hcard__price b {
  color: var(--xh-ink);
  font-size: 20px;
  font-weight: 800;
}

.xh-cat .xh-hcard__price small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}

/* промо-карточка внутри сетки */
.xh-cat .xh-hcard--promo {
  background: linear-gradient(160deg, var(--xh-blue) 0%, #1a93c9 100%);
  box-shadow: none;
  color: #fff;
  justify-content: center;
  padding: 26px 24px;
}

.xh-cat .xh-hcard--promo .xh-h3 {
  color: #fff;
  font-size: 22px;
  margin-top: 16px;
}

.xh-cat .xh-hcard--promo p {
  font-size: 14px;
  line-height: 1.45;
  margin-top: 10px;
  opacity: 0.95;
}

/* на синей карточке красная кнопка спорит с фоном — белая кнопка с тёмным текстом */
.xh-cat .xh-hcard--promo .xh-btn,
.xh-cat .xh-hcard--promo .xh-btn:focus {
  align-self: flex-start;
  background: #fff;
  border-color: #fff;
  color: var(--xh-ink);
  margin-top: 18px;
}

.xh-cat .xh-hcard--promo .xh-btn:hover {
  background: var(--xh-cream);
  border-color: var(--xh-cream);
  color: var(--xh-ink);
}

.xh-cat .xh-hcard--promo small {
  display: block;
  font-size: 12px;
  margin-top: 12px;
  opacity: 0.8;
}

.xh-cat .xh-hcard__promo-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.xh-cat .xh-hcard__promo-icon .xh-i {
  height: 26px;
  width: 26px;
}

/* пусто / ещё */
.xh-cat .xh-empty {
  background: var(--xh-soft);
  border-radius: var(--xh-r-lg);
  margin-top: 8px;
  padding: 40px 24px;
  text-align: center;
}

.xh-cat .xh-empty[hidden] {
  display: none;
}

.xh-cat .xh-empty__icon {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: var(--xh-blue-d);
  display: inline-flex;
  height: 56px;
  justify-content: center;
  margin-bottom: 14px;
  width: 56px;
}

.xh-cat .xh-empty b {
  color: var(--xh-ink);
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.xh-cat .xh-empty p {
  color: var(--xh-muted);
  margin: 8px auto 0;
  max-width: 520px;
}

.xh-cat .xh-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.xh-cat .xh-more-row {
  margin-top: 28px;
  text-align: center;
}

.xh-cat .xh-more-row[hidden] {
  display: none;
}

.xh-cat .xh-more-row .xh-btn--lg {
  position: relative;
  width: auto;
  min-width: 157px;
}

.xh-cat .xh-more-row__loader {
  display: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: currentColor;
  border-radius: 50%;
  vertical-align: middle;
  animation: xh-more-spin 0.7s linear infinite;
}

.xh-cat .xh-more-row.is-loading .xh-more-row__label {
  visibility: hidden;
}

.xh-cat .xh-more-row.is-loading .xh-more-row__loader {
  display: inline-block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -11px 0 0 -11px;
}

.xh-cat .xh-more-row.is-loading [data-action="more"] {
  pointer-events: none;
  opacity: 0.85;
}

@keyframes xh-more-spin {
  to { transform: rotate(360deg); }
}

.xh-cat .xh-more-row__note {
  color: var(--xh-muted);
  font-size: 13px;
  margin-top: 10px;
}

/* ---------- Правила ---------- */
.xh-cat .xh-rules {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.xh-cat .xh-rule {
  background: #fff;
  border-radius: var(--xh-r-lg);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.xh-cat .xh-rule__icon {
  align-items: center;
  background: var(--xh-cream);
  border-radius: 14px;
  color: var(--xh-red);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 16px;
  width: 48px;
}

.xh-cat .xh-rule__icon .xh-i {
  height: 26px;
  width: 26px;
}

.xh-cat .xh-rule p {
  color: var(--xh-muted);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 8px;
}

.xh-cat .xh-rule__ex {
  background: var(--xh-blue-soft);
  border-radius: var(--xh-r-sm);
  color: var(--xh-text);
  font-size: 13px;
  line-height: 1.4;
  margin-top: auto;
  padding: 12px 14px;
  padding-top: 12px;
}

.xh-cat .xh-rule p + .xh-rule__ex {
  margin-top: 16px;
}

/* ---------- Покупка на сумму ---------- */
.xh-cat .xh-cat-nominal {
  padding-bottom: 0;
}

.xh-cat .xh-nbuy {
  align-items: center;
  background: var(--xh-cream);
  border-radius: 28px;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) 440px;
  padding: 40px;
}

.xh-cat .xh-nbuy__copy .xh-h2 {
  margin-top: 16px;
}

.xh-cat .xh-nbuy__copy > p {
  font-size: 16px;
  line-height: 1.5;
  max-width: 520px;
}

.xh-cat .xh-nbuy__copy .xh-perks {
  margin-top: 22px;
}

.xh-cat .xh-nbuy__form {
  background: #fff;
  border-radius: var(--xh-r-lg);
  box-shadow: var(--xh-shadow);
  padding: 24px;
}

.xh-cat .xh-nbuy__form .xh-buy__title {
  margin-bottom: 12px;
}

.xh-cat .xh-nbuy__hint {
  background: var(--xh-soft);
  border-radius: var(--xh-r-sm);
  color: var(--xh-text);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 14px;
  padding: 10px 14px;
}

.xh-cat .xh-nbuy__hint:empty {
  display: none;
}

.xh-cat .xh-nbuy__hint b {
  color: var(--xh-ink);
}

@media (max-width: 1399px) {
  /* ---------- Адаптив ---------- */
  .xh-cat .xh-chero__grid {
    gap: 28px;
  }

  .xh-cat .xh-chero__copy .xh-h1 {
    font-size: 36px;
  }

  .xh-cat .xh-collage__badge {
    left: -12px;
  }

  .xh-cat .xh-hgrid {
    gap: 16px;
  }

  .xh-cat .xh-nbuy {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 380px;
    padding: 28px;
  }

  .xh-cat .xh-rules, .xh-cat .xh-hiw {
    gap: 12px;
  }

  .xh-cat .xh-rule, .xh-cat .xh-hiw__step {
    padding: 18px;
  }

  .xh-cat .xh-hiw__step::after {
    left: 66px;
    right: 18px;
    top: 37px;
  }
}

@media (max-width: 991px) {
  .xh-cat .xh-chero__grid {
    grid-template-columns: 1fr;
  }

  .xh-cat .xh-collage {
    height: min(56cqw, 360px);
  }

  .xh-cat .xh-collage__badge {
    bottom: 16px;
    left: 16px;
  }

  .xh-cat .xh-usp, .xh-cat .xh-rules, .xh-cat .xh-hiw {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xh-cat .xh-hiw__step::after {
    display: none;
  }

  .xh-cat .xh-hgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xh-cat .xh-nbuy {
    grid-template-columns: 1fr;
  }

  .xh-cat .xh-nbuy__form .xh-nominals {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .xh-cat .xh-bar {
    display: flex;
  }

  /* scroll-top и Jivo — над нижней панелью #xh-bar (как на hotel-nominal) */
  .scroll-top {
    transition: bottom .3s ease-in-out;
  }

  body:has(#xh-bar.is-visible) .scroll-top {
    bottom: 140px;
  }

  .__jivoMobileButton {
    transition: margin-bottom .3s ease-in-out !important;
  }

  body:has(#xh-bar.is-visible) .__jivoMobileButton {
    margin-bottom: 120px !important;
  }
}

@media (max-height: 480px) and (max-width: 991px) {
  body:has(#xh-bar.is-visible) .scroll-top {
    bottom: 75px;
  }

  body:has(#xh-bar.is-visible) .__jivoMobileButton {
    margin-bottom: 50px !important;
  }
}

@media (max-width: 767px) {
  .xh-cat .xh-chero {
    padding-top: 10px;
  }

  .xh-cat .xh-chero__copy .xh-h1 {
    font-size: 30px;
    margin-top: 14px;
  }

  .xh-cat .xh-chero__lead {
    font-size: 16px;
    margin-top: 12px;
  }

  .xh-cat .xh-chero__cta .xh-btn--lg {
    flex: 1 1 0;
    width: auto;
  }

  .xh-cat .xh-collage {
    gap: 6px;
    height: 75cqw;
  }

  .xh-cat .xh-collage__img {
    border-radius: var(--xh-r);
  }

  .xh-cat .xh-collage__badge {
    max-width: 190px;
    padding: 10px 14px;
  }

  .xh-cat .xh-collage__badge b {
    font-size: 24px;
  }

  .xh-cat .xh-usp {
    gap: 10px;
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .xh-cat .xh-usp__item {
    display: grid;
    gap: 2px 14px;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 16px;
  }

  .xh-cat .xh-usp__icon {
    grid-row: 1 / 3;
    height: 44px;
    width: 44px;
  }

  .xh-cat .xh-usp__item b {
    font-size: 16px;
    margin-top: 0;
  }

  .xh-cat .xh-cat-how {
    margin-top: 40px;
  }

  .xh-cat .xh-hiw, .xh-cat .xh-rules {
    grid-template-columns: 1fr;
  }

  .xh-cat .xh-catalog {
    padding: 40px 0;
  }

  .xh-cat .xh-catalog__count {
    display: none;
  }

  /* фильтры сворачиваются за кнопку */
  .xh-cat .xh-mfilter {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
  }

  .xh-cat .xh-mfilter .xh-btn {
    border-radius: 999px;
    min-height: 42px;
  }

  .xh-cat .xh-mfilter__n {
    background: var(--xh-red);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 4px 7px;
  }

  .xh-cat .xh-mfilter__n[hidden] {
    display: none;
  }

  .xh-cat .xh-mfilter__count {
    color: var(--xh-muted);
    font-size: 13px;
    text-align: right;
  }

  .xh-cat .xh-toolbar {
    margin-bottom: 14px;
    padding: 12px;
  }

  .xh-cat .xh-toolbar:not(.is-open) .xh-locs, .xh-cat .xh-toolbar:not(.is-open) .xh-toolbar__row {
    display: none;
  }

  .xh-cat .xh-locs, .xh-cat .xh-filters {
    flex-wrap: nowrap;
    margin: 0 -12px;
    max-width: calc(100% + 24px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 12px;
    scrollbar-width: none;
  }

  .xh-cat .xh-locs::-webkit-scrollbar, .xh-cat .xh-filters::-webkit-scrollbar {
    display: none;
  }

  .xh-cat .xh-toolbar__row {
    flex-direction: column;
    gap: 10px;
  }

  .xh-cat .xh-toolbar__ctrl {
    justify-content: space-between;
  }

  .xh-cat .xh-hgrid {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .xh-cat .xh-hcard__media {
    aspect-ratio: 16 / 10;
  }

  .xh-cat .xh-nbuy {
    border-radius: var(--xh-r-lg);
    gap: 20px;
    padding: 20px 16px;
  }

  .xh-cat .xh-nbuy__form {
    padding: 18px 16px;
  }

  .xh-cat .xh-nbuy__form .xh-nominals {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .xh-cat .xh-rule__ex {
    margin-top: 14px;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .xh-cat .xh-hgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xh-cat .xh-hcard__media {
    aspect-ratio: 4 / 3;
  }

  /* узкие карточки в два столбца: цена над кнопкой */
  .xh-cat .xh-hcard__foot {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .xh-cat .xh-nbuy__form .xh-nominals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .xh-cat .xh-chero__cta {
    flex-direction: column;
  }

  .xh-cat .xh-hcard__foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .xh-cat .xh-hcard__foot .xh-btn {
    width: 100%;
  }
}

.hotel-breadcrumbs .breadcrumbs-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.5em;
}

.hotel-breadcrumbs .breadcrumbs-block li {
  margin-right: 0;
}

.hotel-breadcrumbs .breadcrumbs-block a {
  margin-right: 0.35em;
}
