/*
 * Общие стили прототипов новых страниц xpresent.ru.
 * Токены, сброс глобальных стилей сайта, типографика, кнопки, первый экран, навигация по разделам,
 * сетка «контент + карточка покупки», карточка покупки, полосы на всю ширину, нижняя панель,
 * модальное окно и адаптив. Подключается первым, стили страницы — после.
 *
 * Всё лежит внутри .xh и имеет префикс xh-. Селекторы начинаются с «.xh », чтобы
 * перекрывать глобальные правила style-bundle сайта (button, a, h1–h3, p, input…),
 * который подключён ради шапки и подвала.
 */

/*
 * Страница «Подарочный набор отелей» — собственный дизайн в стиле Xpresent.
 * База (токены, кнопки, карточка покупки, полосы, модалка, адаптив) общая с прототипом
 * hotel-nominal; блоки набора (отели, фильтры, апгрейд, сертификат) — в конце файла.
 *
 * Всё лежит внутри .xh и имеет префикс xh-. Селекторы начинаются с «.xh », чтобы
 * перекрывать глобальные правила style-bundle сайта (button, a, h1–h3, p, input…),
 * который подключён ради шапки и подвала.
 *
 * Ширина контента — .container сайта: 1400 / 970 / 750 / на всю ширину.
 */
/* ---------- Токены и сброс ---------- */
.xh {
  --xh-red: #eb1c24;
  --xh-red-d: #c9151c;
  --xh-blue: #26b6ea;
  --xh-blue-d: #0b94c6;
  --xh-yellow: #fbad19;
  --xh-green: #48b54a;
  --xh-green-d: #2b8a2e;
  --xh-ink: #1b1a1a;
  --xh-text: #222729;
  --xh-muted: #6b7175;
  --xh-line: #e4e7eb;
  --xh-soft: #f5f6f8;
  --xh-blue-soft: #ecf0ff;
  --xh-cream: #fff8eb;
  --xh-green-soft: #e9f6e4;
  --xh-amber-soft: #fff1d2;
  --xh-amber-d: #8a5a00;
  --xh-r-lg: 20px;
  --xh-r: 14px;
  --xh-r-sm: 10px;
  --xh-shadow: 0 0 20px rgba(66, 66, 66, 0.12);
  --xh-shadow-lg: 0 18px 50px rgba(27, 26, 26, 0.18);
  /* выставляются из JS: высота закреплённой шапки сайта и нижнего мобильного меню */
  --xh-top: 0px;
  --xh-bottom: 0px;
  --xh-nav-h: 54px;
  color: var(--xh-text);
  font-family: Mulish, "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  /* свой контекст наложения ниже обёртки сайта (#wrapper: z-index 1) — закреплённые
  шапка и нижнее мобильное меню сайта всегда остаются поверх контента страницы */
  position: relative;
  z-index: 0;
}

.xh h1, .xh h2, .xh h3, .xh h4, .xh p, .xh ul, .xh ol, .xh li, .xh fieldset, .xh legend {
  border: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.xh h1, .xh h2, .xh h3, .xh h4 {
  color: var(--xh-ink);
  font-family: inherit;
  text-align: left;
}

.xh a {
  color: inherit;
  text-decoration: none;
}

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

.xh label {
  font-weight: inherit;
}

/* Сброс глобальных стилей кнопок сайта (button, button:hover, button:focus, button:active).
   :where() обнуляет вес .xh: сброс стоит позже style-bundle и перекрывает его, но слабее
   любого класса компонента — иначе при наведении он обнулял бы кнопкам отступы, рамку
   и шрифт, и они «прыгали» */
:where(.xh) button, :where(.xh) button:hover, :where(.xh) button:focus {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  padding: 0;
  top: auto;
  user-select: auto;
  white-space: normal;
}

/* сайт даёт нажатой кнопке внутреннюю тень; кнопки с собственной тенью задают её через --xh-btn-shadow */
:where(.xh) button:active:not(.slick-arrow) {
  box-shadow: var(--xh-btn-shadow, none);
}

/* style-bundle прячет radio/checkbox (display: none) и рисует свои квадраты через
   input + span::before/::after — возвращаем настоящие поля и убираем псевдоэлементы */
.xh input[type="radio"], .xh input[type="checkbox"] {
  display: block;
  position: static;
}

.xh input[type="radio"] + span, .xh input[type="checkbox"] + span {
  color: inherit;
  line-height: inherit;
  margin: 0;
  user-select: auto;
}

.xh input[type="radio"] + span::before, .xh input[type="radio"] + span::after, .xh input[type="checkbox"] + span::before, .xh input[type="checkbox"] + span::after {
  content: none;
}

.xh :focus-visible {
  outline: 3px solid rgba(38, 182, 234, 0.6);
  outline-offset: 2px;
}

.xh .xh-i {
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

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

/* ---------- Типографика и общие элементы ---------- */
.xh .xh-h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.xh .xh-h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.xh .xh-h2--center {
  text-align: center;
}

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

.xh .xh-section {
  padding-top: 48px;
  scroll-margin-top: calc(var(--xh-top) + var(--xh-nav-h));
}

.xh .xh-section__head {
  align-items: flex-end;
  display: flex;
  gap: 16px 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.xh .xh-section__head .xh-h2 {
  margin-bottom: 6px;
}

.xh .xh-section__lead {
  color: var(--xh-muted);
  font-size: 15px;
  max-width: 560px;
}

.xh .xh-link {
  color: var(--xh-blue-d);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.xh .xh-link:hover {
  color: var(--xh-ink);
}

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

/* кнопки */
.xh .xh-btn {
  align-items: center;
  border: 1.5px solid transparent;
  border-radius: var(--xh-r-sm);
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  line-height: 1.2;
  min-height: 48px;
  padding: 0 20px;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.xh .xh-btn:active {
  transform: translateY(1px);
}

.xh .xh-btn--lg {
  font-size: 16px;
  min-height: 54px;
  width: 100%;
}

.xh .xh-btn--primary {
  background: var(--xh-red);
  color: #fff;
}

.xh .xh-btn--primary:hover {
  background: var(--xh-red-d);
  color: #fff;
}

.xh .xh-btn--outline {
  background: #fff;
  border-color: var(--xh-red);
  color: var(--xh-red);
}

.xh .xh-btn--outline:hover {
  background: var(--xh-red);
  border-color: var(--xh-red);
  color: #fff;
}

.xh .xh-btn--ghost {
  background: #fff;
  border-color: var(--xh-line);
  color: var(--xh-text);
}

.xh .xh-btn--ghost:hover {
  background: #fff;
  border-color: var(--xh-blue);
  color: var(--xh-blue-d);
}

.xh .xh-btn.is-ok, .xh .xh-btn.is-ok:hover {
  background: var(--xh-green-soft);
  border-color: transparent;
  color: var(--xh-green-d);
  cursor: default;
}

/* статусные плашки «хватит / доплата» */
.xh .xh-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  padding: 5px 10px;
  white-space: nowrap;
}

.xh .xh-pill:empty {
  display: none;
}

.xh .xh-pill.is-enough {
  background: var(--xh-green-soft);
  color: var(--xh-green-d);
}

.xh .xh-pill.is-short {
  background: var(--xh-amber-soft);
  color: var(--xh-amber-d);
}

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

.xh .xh-crumbs {
  color: var(--xh-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 6px;
  margin-bottom: 18px;
}

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

.xh .xh-hero__grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.xh .xh-hero__head {
  align-items: flex-end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.xh .xh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.xh .xh-tag {
  align-items: center;
  background: var(--xh-blue-soft);
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 5px;
  line-height: 1;
  padding: 7px 12px;
}

.xh .xh-tag--star {
  background: var(--xh-cream);
}

.xh .xh-tag--star .xh-i {
  color: var(--xh-yellow);
  height: 14px;
  width: 14px;
}

.xh .xh-hero__sub {
  color: var(--xh-muted);
  font-size: 17px;
  margin-top: 8px;
  max-width: 780px;
}

.xh .xh-address {
  align-items: flex-start;
  display: inline-flex;
  font-size: 15px;
  gap: 6px;
  margin-top: 12px;
}

.xh .xh-address .xh-i {
  color: var(--xh-red);
  margin-top: 1px;
}

.xh .xh-address b {
  color: var(--xh-blue-d);
  font-weight: 700;
  margin-left: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.xh .xh-hero__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.xh .xh-icon-btn {
  align-items: center;
  border: 1.5px solid var(--xh-line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  transition: border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.xh .xh-icon-btn:hover {
  border-color: var(--xh-red);
  color: var(--xh-red);
}

.xh .xh-icon-btn[aria-pressed="true"] {
  border-color: var(--xh-red);
  color: var(--xh-red);
}

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

/* галерея: мозаика на десктопе, свайп на мобильном */
.xh .xh-gallery {
  border-radius: var(--xh-r-lg);
  overflow: hidden;
  position: relative;
}

.xh .xh-gallery__track {
  display: grid;
  gap: 8px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: clamp(340px, 34vw, 480px);
}

.xh .xh-gallery__item {
  background: var(--xh-soft);
  display: block;
  overflow: hidden;
}

.xh .xh-gallery__item:first-child {
  grid-row: 1 / 3;
}

.xh .xh-gallery__item:nth-child(n + 6) {
  display: none;
}

.xh .xh-gallery__item img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  width: 100%;
}

@media (hover: hover) {
  .xh .xh-gallery__item:hover img {
    transform: scale(1.04);
  }
}

.xh .xh-gallery__all {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  bottom: 16px;
  --xh-btn-shadow: 0 4px 16px rgba(27, 26, 26, 0.2);
  box-shadow: var(--xh-btn-shadow);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  position: absolute;
  right: 16px;
}

.xh .xh-gallery__all:hover {
  color: var(--xh-red);
}

.xh .xh-gallery__counter {
  display: none;
}

/* ---------- Навигация по разделам ---------- */
.xh .xh-nav {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--xh-line);
  margin-top: 26px;
  position: sticky;
  top: var(--xh-top);
  z-index: 30;
}

.xh .xh-nav__list {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.xh .xh-nav__list::-webkit-scrollbar {
  display: none;
}

.xh .xh-nav__link {
  align-items: center;
  border-bottom: 3px solid transparent;
  color: var(--xh-muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  height: var(--xh-nav-h);
  padding: 3px 14px 0;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.xh .xh-nav__link:first-child {
  padding-left: 0;
}

.xh .xh-nav__link:hover {
  color: var(--xh-ink);
}

.xh .xh-nav__link.is-active {
  border-color: var(--xh-red);
  color: var(--xh-ink);
}

/* ---------- Сетка: контент + карточка покупки ---------- */
.xh .xh-layout {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) 392px;
}

.xh .xh-main {
  container: xh-main / inline-size;
  min-width: 0;
}

/* ---------- Карточка покупки ---------- */
.xh .xh-buy {
  background: #fff;
  border-radius: var(--xh-r-lg);
  box-shadow: var(--xh-shadow);
  padding: 24px;
  scroll-margin-top: calc(var(--xh-top) + var(--xh-nav-h) + 16px);
}

.xh .xh-buy__title {
  color: var(--xh-ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

.xh .xh-buy__sub {
  color: var(--xh-muted);
  font-size: 14px;
  margin: 4px 0 14px;
}

.xh .xh-nominals {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
}

.xh .xh-chip {
  cursor: pointer;
  display: block;
  position: relative;
}

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

.xh .xh-chip span {
  align-items: center;
  border: 1.5px solid var(--xh-line);
  border-radius: var(--xh-r-sm);
  color: var(--xh-text);
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  line-height: 1.2;
  min-height: 46px;
  padding: 0 2px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.xh .xh-chip:hover span {
  border-color: var(--xh-blue);
}

.xh .xh-chip input:checked + span, .xh .xh-chip--custom input:checked + span {
  background: var(--xh-blue);
  border-color: var(--xh-blue);
  border-style: solid;
  color: #fff;
}

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

.xh .xh-chip--custom {
  grid-column: span 2;
}

.xh .xh-chip--custom span {
  border-style: dashed;
  color: var(--xh-muted);
  font-weight: 700;
}

.xh .xh-chip--custom .xh-i {
  height: 16px;
  width: 16px;
}

.xh .xh-custom {
  margin-top: 10px;
}

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

.xh .xh-custom__row {
  display: flex;
  gap: 8px;
}

.xh .xh-step {
  align-items: center;
  border: 1.5px solid var(--xh-line);
  border-radius: var(--xh-r-sm);
  display: inline-flex;
  flex: 0 0 52px;
  height: 52px;
  justify-content: center;
}

.xh .xh-step:hover {
  border-color: var(--xh-blue);
  color: var(--xh-blue-d);
}

.xh .xh-custom__field {
  align-items: center;
  border: 1.5px solid var(--xh-line);
  border-radius: var(--xh-r-sm);
  display: flex;
  flex: 1 1 auto;
  height: 52px;
  min-width: 0;
  padding: 0 14px;
  transition: border-color 0.15s ease;
}

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

.xh .xh-custom__field input {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--xh-ink);
  flex: 1 1 auto;
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  height: 100%;
  line-height: 1;
  min-width: 0;
  outline: none;
  padding: 0;
  text-align: center;
  width: 100%;
}

.xh .xh-custom__field i {
  color: var(--xh-muted);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
}

.xh .xh-custom__note {
  color: var(--xh-muted);
  font-size: 13px;
  margin-top: 6px;
  text-align: center;
}

.xh .xh-custom.is-invalid .xh-custom__field {
  border-color: var(--xh-red);
}

.xh .xh-custom.is-invalid .xh-custom__note {
  color: var(--xh-red);
  font-weight: 700;
}

/* «на что хватит» */
.xh .xh-fit {
  background: var(--xh-soft);
  border-radius: var(--xh-r);
  margin-top: 16px;
  padding: 14px 14px 12px;
}

.xh .xh-fit__title {
  color: var(--xh-ink);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}

.xh .xh-fit__row {
  align-items: center;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 0 -8px;
  padding: 5px 8px;
  transition: background-color 0.15s ease;
}

.xh .xh-fit__row:hover {
  background: #fff;
}

.xh .xh-fit__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xh .xh-fit .xh-pill {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 4px 9px;
}

.xh .xh-fit__note {
  border-top: 1px solid var(--xh-line);
  color: var(--xh-muted);
  font-size: 12px;
  margin-top: 8px;
  padding-top: 8px;
}

/* итог и кнопки */
.xh .xh-total {
  margin: 16px 0 12px;
}

.xh .xh-total__main {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.xh .xh-total__label {
  color: var(--xh-muted);
  font-size: 15px;
  font-weight: 600;
}

.xh .xh-total__price {
  color: var(--xh-ink);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.xh .xh-total__price.is-flash {
  animation: xh-flash 0.6s ease;
}

.xh .xh-total__split {
  color: var(--xh-muted);
  font-size: 13px;
  margin-top: 6px;
  text-align: right;
}

.xh .xh-total__split i {
  background: #1eb980;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  margin-right: 6px;
  padding: 2px 6px;
}

.xh .xh-total__split b {
  color: var(--xh-text);
  white-space: nowrap;
}

.xh .xh-buy__cta {
  display: grid;
  gap: 8px;
  grid-template-columns: 1.35fr 1fr;
}

.xh .xh-buy__cta .xh-btn {
  padding: 0 10px;
}

.xh .xh-perks {
  display: grid;
  font-size: 13px;
  gap: 8px;
  line-height: 1.35;
  margin-top: 16px;
}

.xh .xh-perks li {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.xh .xh-perks .xh-i {
  color: var(--xh-blue);
  height: 18px;
  width: 18px;
}

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

.xh .xh-perks__gift .xh-i {
  color: var(--xh-yellow);
}

/* ---------- Об отеле ---------- */
.xh .xh-facts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xh .xh-fact {
  align-items: center;
  background: var(--xh-soft);
  border-radius: var(--xh-r);
  color: var(--xh-muted);
  display: flex;
  font-size: 13px;
  gap: 12px;
  line-height: 1.3;
  padding: 14px;
}

.xh .xh-fact b {
  color: var(--xh-ink);
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}

.xh .xh-fact__icon {
  align-items: center;
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
}

.xh .xh-fact__icon .xh-i {
  height: 24px;
  width: 24px;
}

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

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

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

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

.xh .xh-about {
  margin-top: 22px;
}

.xh .xh-about__text {
  font-size: 16px;
  line-height: 1.6;
  max-height: 7.9em;
  overflow: hidden;
  position: relative;
}

.xh .xh-about__text::after {
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
  bottom: 0;
  content: "";
  height: 3.2em;
  left: 0;
  position: absolute;
  right: 0;
}

.xh .xh-about__text p + p {
  margin-top: 12px;
}

.xh .xh-about.is-open .xh-about__text {
  max-height: none;
}

.xh .xh-about.is-open .xh-about__text::after {
  display: none;
}

.xh .xh-more {
  align-items: center;
  color: var(--xh-blue-d);
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  gap: 4px;
  margin-top: 8px;
}

.xh .xh-more .xh-i {
  transition: transform 0.2s ease;
}

.xh .xh-about.is-open .xh-more .xh-i {
  transform: rotate(180deg);
}

/* ---------- Номера ---------- */
.xh .xh-current {
  align-items: center;
  background: var(--xh-blue-soft);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

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

.xh .xh-current .xh-i {
  color: var(--xh-blue-d);
  height: 16px;
  width: 16px;
}

.xh .xh-rooms {
  display: grid;
  gap: 16px;
}

.xh .xh-room {
  background: #fff;
  border-radius: var(--xh-r-lg);
  box-shadow: var(--xh-shadow);
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
  scroll-margin-top: calc(var(--xh-top) + var(--xh-nav-h) + 16px);
  transition: box-shadow 0.25s ease;
}

.xh .xh-room.is-picked {
  box-shadow: 0 0 0 2px var(--xh-green), var(--xh-shadow);
}

.xh .xh-room__media {
  min-height: 260px;
  position: relative;
}

.xh .xh-room__media .xh-slider {
  height: 100%;
  inset: 0;
  position: absolute;
}

.xh .xh-room__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 22px;
}

.xh .xh-room__top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 10px;
}

.xh .xh-room__name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.xh .xh-room__cat {
  background: var(--xh-cream);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  white-space: nowrap;
}

.xh .xh-specs {
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  gap: 6px 18px;
  margin-bottom: 10px;
}

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

.xh .xh-specs .xh-i {
  color: var(--xh-blue);
  height: 18px;
  width: 18px;
}

.xh .xh-room__desc {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--xh-muted);
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 12px;
  overflow: hidden;
}

.xh .xh-amenities {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.xh .xh-amenities li {
  background: var(--xh-soft);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.2;
  padding: 6px 10px;
}

.xh .xh-amenities li.is-accent {
  background: var(--xh-green-soft);
  color: var(--xh-green-d);
  font-weight: 800;
}

.xh .xh-amenities li.xh-amenities__more {
  background: none;
  font-size: 13px;
  padding-left: 4px;
}

.xh .xh-room__foot, .xh .xh-roomd__buy {
  align-items: center;
  border-top: 1px solid var(--xh-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
}

.xh .xh-room__price {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.xh .xh-room__price div {
  color: var(--xh-muted);
  font-size: 14px;
  white-space: nowrap;
}

.xh .xh-room__price b {
  color: var(--xh-ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.xh .xh-room__actions {
  display: flex;
  gap: 8px;
}

/* слайдер фото (scroll-snap, без библиотек) */
.xh .xh-slider {
  background: var(--xh-soft);
  overflow: hidden;
  position: relative;
}

.xh .xh-slider__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.xh .xh-slider__track::-webkit-scrollbar {
  display: none;
}

.xh .xh-slider__slide {
  display: block;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.xh .xh-slider__slide img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.xh .xh-slider__btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  --xh-btn-shadow: 0 2px 10px rgba(27, 26, 26, 0.2);
  box-shadow: var(--xh-btn-shadow);
  color: var(--xh-ink);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  margin-top: -20px;
  opacity: 0;
  position: absolute;
  top: 50%;
  transition: opacity 0.15s ease, color 0.15s ease;
  width: 40px;
}

.xh .xh-slider__btn:hover {
  color: var(--xh-red);
}

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

.xh .xh-slider__btn--prev {
  left: 12px;
}

.xh .xh-slider__btn--prev .xh-i {
  transform: rotate(180deg);
}

.xh .xh-slider__btn--next {
  right: 12px;
}

.xh .xh-slider:hover .xh-slider__btn, .xh .xh-slider__btn:focus-visible, .xh .xh-slider--lg .xh-slider__btn {
  opacity: 1;
}

@media (hover: none) {
  /* на сенсорных экранах наведения нет — стрелки видны всегда */
  .xh .xh-slider__btn {
    opacity: 1;
  }
}

.xh .xh-slider__count {
  align-items: center;
  background: rgba(27, 26, 26, 0.6);
  border-radius: 999px;
  bottom: 12px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  left: 12px;
  line-height: 1;
  padding: 6px 10px;
  pointer-events: none;
  position: absolute;
}

.xh .xh-slider__count .xh-i {
  height: 14px;
  width: 14px;
}

.xh .xh-slider__count b {
  font-weight: 700;
}

/* ---------- Включено / важно ---------- */
.xh .xh-duo {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.xh .xh-card--ok {
  background: var(--xh-green-soft);
  box-shadow: none;
}

.xh .xh-card--note {
  background: var(--xh-cream);
  box-shadow: none;
}

.xh .xh-list {
  display: grid;
  font-size: 15px;
  gap: 10px;
  line-height: 1.4;
  margin-top: 14px;
}

.xh .xh-list li {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.xh .xh-list .xh-i {
  margin-top: 1px;
}

.xh .xh-list--check .xh-i {
  color: var(--xh-green);
}

.xh .xh-list--info .xh-i {
  color: var(--xh-yellow);
}

/* ---------- Расположение ---------- */
.xh .xh-location {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.xh .xh-map {
  background: var(--xh-soft);
  border-radius: var(--xh-r-lg);
  min-height: 380px;
  overflow: hidden;
}

.xh .xh-map iframe {
  border: 0;
  display: block;
  height: 100%;
  min-height: inherit;
  width: 100%;
}

.xh .xh-location__info {
  background: #fff;
  border-radius: var(--xh-r-lg);
  box-shadow: var(--xh-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
}

.xh .xh-location__address {
  display: flex;
  font-size: 16px;
  gap: 8px;
  line-height: 1.35;
}

.xh .xh-location__address .xh-i {
  color: var(--xh-red);
  margin-top: 1px;
}

.xh .xh-ways {
  display: grid;
  gap: 14px;
}

.xh .xh-ways li {
  color: var(--xh-muted);
  display: flex;
  font-size: 14px;
  gap: 10px;
  line-height: 1.35;
}

.xh .xh-ways b {
  color: var(--xh-ink);
  display: block;
  font-weight: 800;
}

.xh .xh-ways .xh-i {
  color: var(--xh-blue);
}

.xh .xh-location__info .xh-btn {
  margin-top: auto;
}

/* ---------- Полосы на всю ширину ---------- */
.xh .xh-band {
  /* карусели внутри полос выходят за .container на 12px — обрезаем, чтобы на ширинах,
  где .container равен окну (768, 992, 1400), не появлялась горизонтальная прокрутка */
  overflow-x: hidden;
  overflow-x: clip;
  padding: 64px 0;
  scroll-margin-top: calc(var(--xh-top) + var(--xh-nav-h));
}

.xh .xh-layout + .xh-band, .xh .container + .xh-band {
  margin-top: 64px;
}

.xh .xh-band--cream {
  background: var(--xh-cream);
}

.xh .xh-band--blue {
  background: var(--xh-blue-soft);
}

.xh .xh-band__lead {
  color: var(--xh-muted);
  margin: -10px 0 28px;
  text-align: center;
}

/* как это работает */
.xh .xh-steps {
  counter-reset: none;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.xh .xh-step-card {
  background: #fff;
  border-radius: var(--xh-r-lg);
  display: flex;
  flex-direction: column;
  min-height: 330px;
  overflow: hidden;
  padding: 22px 22px 0;
  position: relative;
}

.xh .xh-step-card::after {
  border-top: 2px dashed rgba(27, 26, 26, 0.18);
  content: "";
  left: 74px;
  position: absolute;
  right: -16px;
  top: 41px;
}

.xh .xh-step-card:last-child::after {
  display: none;
}

.xh .xh-step-card__num {
  align-items: center;
  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 .xh-step-card__num--green {
  background: var(--xh-green);
}

.xh .xh-step-card__num--blue {
  background: var(--xh-blue);
}

.xh .xh-step-card__num--yellow {
  background: var(--xh-yellow);
}

.xh .xh-step-card p {
  color: var(--xh-muted);
  font-size: 14px;
  line-height: 1.4;
  margin-top: 8px;
}

.xh .xh-step-card img {
  align-self: flex-end;
  height: 130px;
  margin-top: auto;
  object-fit: contain;
  object-position: right bottom;
  padding-top: 12px;
  width: auto;
}

/* оформление */
.xh .xh-designs {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xh .xh-design {
  background: #fff;
  border-radius: var(--xh-r-lg);
  box-shadow: var(--xh-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.xh .xh-design__media {
  align-items: flex-end;
  display: flex;
  height: 230px;
  justify-content: center;
  overflow: hidden;
  padding: 24px 24px 0;
}

.xh .xh-design__media--dark {
  background: linear-gradient(160deg, #f1ede6, #e2dccf);
}

.xh .xh-design__media--green {
  background: linear-gradient(160deg, #eef6e6, #d9ecc9);
}

.xh .xh-design__media--blue {
  background: linear-gradient(160deg, #ecf0ff, #d5e3ff);
}

.xh .xh-design__media img {
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  width: auto;
}

.xh .xh-design__body {
  padding: 20px 22px 24px;
}

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

.xh .xh-design__price {
  background: var(--xh-cream);
  border-radius: 999px;
  color: var(--xh-ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  padding: 5px 12px;
}

.xh .xh-design__price--free {
  background: var(--xh-green-soft);
  color: var(--xh-green-d);
}

/* наборы */
.xh .xh-arrows {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.xh .xh-arrow {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  --xh-btn-shadow: 0 2px 10px rgba(27, 26, 26, 0.1);
  box-shadow: var(--xh-btn-shadow);
  display: inline-flex;
  height: 46px;
  justify-content: center;
  transition: color 0.15s ease, opacity 0.15s ease;
  width: 46px;
}

.xh .xh-arrow:hover {
  color: var(--xh-red);
}

.xh .xh-arrow--prev .xh-i {
  transform: rotate(180deg);
}

.xh .xh-arrow:disabled {
  cursor: default;
  opacity: 0.4;
}

.xh .xh-sets {
  display: flex;
  gap: 16px;
  margin: 0 -12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 12px 12px;
  scroll-behavior: smooth;
  scroll-padding: 0 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.xh .xh-sets::-webkit-scrollbar {
  display: none;
}

.xh .xh-set {
  background: #fff;
  border-radius: var(--xh-r-lg);
  display: flex;
  flex: 0 0 300px;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  transition: box-shadow 0.2s ease;
}

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

.xh .xh-set__media {
  aspect-ratio: 4 / 3;
  background: var(--xh-soft);
  display: block;
  overflow: hidden;
  position: relative;
}

.xh .xh-set__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.xh .xh-set__count, .xh .xh-set__disc {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 10px;
  position: absolute;
  top: 12px;
}

.xh .xh-set__count {
  background: rgba(27, 26, 26, 0.7);
  color: #fff;
  left: 12px;
}

.xh .xh-set__disc {
  background: var(--xh-yellow);
  color: #fff;
  right: 12px;
}

.xh .xh-set__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.xh .xh-set__title {
  color: var(--xh-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.xh .xh-set__desc {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--xh-muted);
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.4;
  margin: 6px 0 14px;
  overflow: hidden;
}

.xh .xh-set__price {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: auto;
}

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

.xh .xh-set__price s {
  color: var(--xh-muted);
  font-size: 14px;
}

.xh .xh-set__price i {
  color: var(--xh-muted);
  font-size: 13px;
  font-style: normal;
  margin-left: auto;
}

/* вопросы */
.xh .xh-faq {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: 340px minmax(0, 1fr);
}

.xh .xh-help {
  background: var(--xh-blue-soft);
  border-radius: var(--xh-r-lg);
  font-size: 14px;
  padding: 22px;
}

.xh .xh-help__title {
  color: var(--xh-ink);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.xh .xh-help__phone {
  align-items: center;
  color: var(--xh-ink);
  display: inline-flex;
  font-size: 20px;
  font-weight: 800;
  gap: 8px;
  margin-top: 14px;
  white-space: nowrap;
}

.xh .xh-help__phone .xh-i {
  color: var(--xh-red);
}

.xh .xh-faq__list {
  display: grid;
  gap: 10px;
}

.xh .xh-q {
  background: var(--xh-soft);
  border-radius: var(--xh-r);
  transition: background-color 0.15s ease;
}

.xh .xh-q[open] {
  background: #fff;
  box-shadow: var(--xh-shadow);
}

.xh .xh-q summary {
  align-items: center;
  color: var(--xh-ink);
  cursor: pointer;
  display: flex;
  font-size: 17px;
  font-weight: 800;
  gap: 16px;
  justify-content: space-between;
  line-height: 1.3;
  list-style: none;
  padding: 18px 20px;
}

.xh .xh-q summary::-webkit-details-marker {
  display: none;
}

.xh .xh-q summary .xh-i {
  color: var(--xh-red);
  transition: transform 0.2s ease;
}

.xh .xh-q[open] summary .xh-i {
  transform: rotate(45deg);
}

.xh .xh-q__body {
  color: var(--xh-text);
  font-size: 15px;
  line-height: 1.55;
  padding: 0 20px 20px;
}

.xh .xh-q__body p + p {
  margin-top: 10px;
}

.xh .xh-q__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.xh .xh-q__photos img {
  border-radius: var(--xh-r-sm);
  height: 96px;
  object-fit: cover;
  width: 140px;
}

/* почему Xpresent */
.xh .xh-why {
  border-top: 1px solid var(--xh-line);
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 56px;
  padding-top: 40px;
}

.xh .xh-why li {
  color: var(--xh-muted);
  display: flex;
  font-size: 13px;
  gap: 12px;
  line-height: 1.4;
}

.xh .xh-why b {
  color: var(--xh-ink);
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}

.xh .xh-why__icon {
  align-items: center;
  background: var(--xh-cream);
  border-radius: 12px;
  color: var(--xh-red);
  display: inline-flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
}

/* ---------- Закреплённая панель покупки ---------- */
.xh .xh-bar {
  align-items: center;
  background: #fff;
  bottom: var(--xh-bottom);
  box-shadow: 0 -6px 24px rgba(27, 26, 26, 0.12);
  display: none;
  gap: 14px;
  left: 0;
  opacity: 0;
  padding: 10px 16px;
  position: fixed;
  right: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  visibility: hidden;
  z-index: 95;
}

.xh .xh-bar.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.xh .xh-bar__sum {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.xh .xh-bar__sum span {
  align-items: center;
  color: var(--xh-muted);
  display: inline-flex;
  font-size: 12px;
  gap: 4px;
}

.xh .xh-bar__sum .xh-i {
  color: var(--xh-blue-d);
  height: 12px;
  width: 12px;
}

.xh .xh-bar__sum b {
  color: var(--xh-ink);
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.xh .xh-bar .xh-btn {
  flex: 0 0 auto;
  min-width: 160px;
}

/* ---------- Модальное окно ---------- */
.xh .xh-modal {
  background: #fff;
  border: 0;
  border-radius: var(--xh-r-lg);
  box-shadow: var(--xh-shadow-lg);
  color: var(--xh-text);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  max-width: calc(100vw - 32px);
  overflow: hidden;
  padding: 0;
  width: 520px;
}

.xh .xh-modal[open] {
  animation: xh-pop 0.2s ease;
  display: flex;
  flex-direction: column;
}

.xh .xh-modal--wide {
  width: 880px;
}

.xh .xh-modal::backdrop {
  background: rgba(27, 26, 26, 0.55);
}

.xh .xh-modal__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
}

.xh .xh-modal--wide .xh-modal__body {
  padding: 0;
}

.xh .xh-modal__close {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  --xh-btn-shadow: 0 2px 10px rgba(27, 26, 26, 0.16);
  box-shadow: var(--xh-btn-shadow);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
  z-index: 3;
}

.xh .xh-modal__close:hover {
  color: var(--xh-red);
}

.xh .xh-modal__title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  padding-right: 36px;
}

.xh .xh-modal__lead {
  color: var(--xh-muted);
  font-size: 15px;
  margin-top: 8px;
}

.xh .xh-modal__lead b {
  color: var(--xh-ink);
  white-space: nowrap;
}

/* «готово» */
.xh .xh-done {
  text-align: center;
}

.xh .xh-done .xh-modal__title {
  padding: 0;
  text-align: center;
}

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

.xh .xh-done__icon .xh-i {
  height: 28px;
  width: 28px;
}

.xh .xh-done__item {
  align-items: center;
  background: var(--xh-soft);
  border-radius: var(--xh-r);
  display: flex;
  font-size: 13px;
  gap: 12px;
  margin-top: 18px;
  padding: 12px;
  text-align: left;
}

.xh .xh-done__item img {
  border-radius: var(--xh-r-sm);
  flex: 0 0 56px;
  height: 56px;
  object-fit: cover;
  width: 56px;
}

.xh .xh-done__item span {
  color: var(--xh-muted);
  flex: 1 1 auto;
  min-width: 0;
}

.xh .xh-done__item span b {
  color: var(--xh-ink);
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.xh .xh-done__item strong {
  color: var(--xh-ink);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.xh .xh-done__gift {
  align-items: center;
  display: flex;
  font-size: 14px;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.xh .xh-done__gift .xh-i {
  color: var(--xh-yellow);
}

.xh .xh-done__gift:has(span:empty) {
  display: none;
}

.xh .xh-done__actions {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

/* заказ в 1 клик */
.xh .xh-oneclick {
  display: grid;
  gap: 14px;
}

.xh .xh-field {
  display: block;
}

.xh .xh-field > span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.xh .xh-field input {
  appearance: none;
  background: #fff;
  border: 1.5px solid var(--xh-line);
  border-radius: var(--xh-r-sm);
  color: var(--xh-ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  height: 54px;
  outline: none;
  padding: 0 16px;
  width: 100%;
}

.xh .xh-field input:focus {
  border-color: var(--xh-blue);
}

.xh .xh-field input.is-invalid {
  border-color: var(--xh-red);
}

.xh .xh-field__error {
  color: var(--xh-red);
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  margin-top: 4px;
}

.xh .xh-field__error:empty {
  display: none;
}

.xh .xh-seg {
  background: var(--xh-soft);
  border-radius: var(--xh-r-sm);
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
}

.xh .xh-seg label {
  cursor: pointer;
  position: relative;
}

.xh .xh-seg span {
  align-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--xh-muted);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  padding: 0 8px;
  text-align: center;
}

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

.xh .xh-seg input:checked + span {
  background: #fff;
  box-shadow: 0 1px 6px rgba(27, 26, 26, 0.12);
  color: var(--xh-ink);
}

.xh .xh-agree {
  align-items: flex-start;
  color: var(--xh-muted);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  gap: 10px;
  line-height: 1.4;
}

.xh .xh-agree input {
  accent-color: var(--xh-red);
  appearance: auto;
  flex: 0 0 auto;
  height: 18px;
  margin: 1px 0 0;
  width: 18px;
}

.xh .xh-agree a {
  color: var(--xh-blue-d);
  text-decoration: underline;
}

.xh .xh-oneclick__note {
  color: var(--xh-muted);
  font-size: 13px;
  text-align: center;
}

/* доставка */
.xh .xh-delivery__list {
  display: grid;
  margin-top: 12px;
}

.xh .xh-delivery__list li {
  align-items: flex-start;
  border-bottom: 1px solid var(--xh-line);
  display: grid;
  gap: 12px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  padding: 14px 0;
}

.xh .xh-delivery__icon {
  align-items: center;
  background: var(--xh-blue-soft);
  border-radius: 12px;
  color: var(--xh-blue-d);
  display: inline-flex;
  height: 40px;
  justify-content: center;
}

.xh .xh-delivery__list b {
  color: var(--xh-ink);
  font-size: 15px;
  font-weight: 800;
}

.xh .xh-delivery__list p {
  color: var(--xh-muted);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 2px;
}

.xh .xh-delivery__list strong {
  color: var(--xh-ink);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.xh .xh-delivery__list strong.is-free {
  color: var(--xh-green-d);
}

.xh .xh-delivery__list small {
  color: var(--xh-muted);
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.xh .xh-delivery__note {
  color: var(--xh-muted);
  font-size: 13px;
  margin-top: 14px;
}

/* подробности номера */
.xh .xh-roomd .xh-slider--lg {
  aspect-ratio: 16 / 9;
  max-height: 52vh;
  width: 100%;
}

.xh .xh-roomd__body {
  padding: 22px 28px 28px;
}

.xh .xh-roomd__desc {
  color: var(--xh-text);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.xh .xh-roomd__buy {
  background: var(--xh-soft);
  border: 0;
  border-radius: var(--xh-r);
  margin: 0;
  padding: 14px 16px;
}

.xh .xh-roomd__h {
  font-size: 18px;
  font-weight: 800;
  margin: 22px 0 12px;
}

.xh .xh-roomd__groups {
  column-gap: 24px;
  columns: 3 200px;
}

.xh .xh-roomd__group {
  break-inside: avoid;
  margin-bottom: 16px;
}

.xh .xh-roomd__group h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.xh .xh-roomd__group li {
  color: var(--xh-muted);
  font-size: 13px;
  line-height: 1.5;
}

.xh .xh-roomd__group li::first-letter {
  text-transform: uppercase;
}

/* всплывающее уведомление */
.xh .xh-toast {
  background: var(--xh-ink);
  border-radius: 22px;
  bottom: calc(var(--xh-bottom) + 84px);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  left: 50%;
  line-height: 1.3;
  max-width: calc(100vw - 32px);
  opacity: 0;
  padding: 12px 20px;
  pointer-events: none;
  position: fixed;
  text-align: center;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: max-content;
  z-index: 200;
}

.xh .xh-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

html:has(.xh-modal[open]) {
  overflow: hidden;
}

@keyframes xh-pop {
  from {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  }
}

@keyframes xh-sheet {
  from {
  transform: translateY(100%);
  }
}

@keyframes xh-flash {
  40% {
  color: var(--xh-green);
  transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .xh *, .xh *::before, .xh *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@container xh-main (max-width: 760px) {
  /* ---------- Адаптив ---------- */
  /* Раскладка внутри колонки контента зависит от ширины самой колонки (container query),
     а не окна: на ноутбуке колонка узкая из-за карточки покупки справа, на планшете — широкая */
  /* колонка до 760px: карточка номера остаётся горизонтальной, но с узким фото */
  .xh .xh-room {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .xh .xh-room__media {
    min-height: 0;
  }

  .xh .xh-room__body {
    padding: 16px 18px;
  }

  .xh .xh-room__name {
    font-size: 20px;
  }

  .xh .xh-room__actions {
    width: 100%;
  }

  .xh .xh-room__actions .xh-btn {
    flex: 1 1 0;
    padding: 0 10px;
  }

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

  .xh .xh-duo, .xh .xh-location {
    grid-template-columns: 1fr;
  }

  .xh .xh-map {
    min-height: 300px;
  }
}

@container xh-main (max-width: 540px) {
  /* колонка до 540px (телефон): фото номера сверху, описание под ним */
  .xh .xh-room {
    grid-template-columns: 1fr;
  }

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

@container xh-main (max-width: 420px) {
  .xh .xh-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1399px) {
  /* ноутбуки: .container сайта = 970px */
  .xh .xh-layout {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .xh .xh-buy {
    padding: 20px;
  }

  /* в узкой карточке названия номеров переносим, а не обрезаем */
  .xh .xh-fit__name {
    white-space: normal;
  }

  .xh .xh-h1 {
    font-size: 34px;
  }

  .xh .xh-steps {
    gap: 12px;
  }

  .xh .xh-step-card {
    min-height: 320px;
    padding: 18px 18px 0;
  }

  .xh .xh-step-card::after {
    left: 66px;
    right: -12px;
    top: 37px;
  }

  .xh .xh-faq {
    gap: 28px;
    grid-template-columns: 280px minmax(0, 1fr);
  }

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

@media (max-width: 991px) {
  /* планшет и мобильный: одна колонка, карточка покупки — сразу после галереи */
  .xh .xh-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .xh .xh-main {
    width: 100%;
  }

  .xh .xh-fit__name {
    white-space: nowrap;
  }

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

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

  .xh .xh-section {
    padding-top: 40px;
  }

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

  .xh .xh-step-card {
    min-height: 280px;
  }

  .xh .xh-step-card::after {
    display: none;
  }

  .xh .xh-designs {
    display: flex;
    margin: 0 -12px;
    overflow-x: auto;
    padding: 4px 12px 12px;
    scroll-padding: 0 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .xh .xh-designs::-webkit-scrollbar {
    display: none;
  }

  .xh .xh-design {
    flex: 0 0 min(320px, 82vw);
    scroll-snap-align: start;
  }

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

  .xh .xh-faq__side {
    display: contents;
  }

  .xh .xh-faq__side .xh-h2 {
    margin-bottom: -20px;
  }

  .xh .xh-help {
    order: 2;
  }
}

@media (max-width: 767px) {
  .xh {
    --xh-nav-h: 48px;
  }

  .xh .xh-h1 {
    font-size: 28px;
  }

  .xh .xh-h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .xh .xh-hero {
    padding-top: 10px;
  }

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

  /* на мобильном сначала фото, потом заголовок */
  .xh .xh-hero__grid {
    gap: 16px;
  }

  .xh .xh-gallery {
    border-radius: var(--xh-r);
    order: -1;
  }

  .xh .xh-hero__head {
    display: block;
    position: relative;
  }

  .xh .xh-hero__actions {
    position: absolute;
    right: 0;
    top: -6px;
  }

  .xh .xh-tags {
    padding-right: 104px;
  }

  .xh .xh-hero__sub {
    font-size: 15px;
  }

  .xh .xh-address {
    display: block;
    padding-left: 26px;
    position: relative;
  }

  .xh .xh-address .xh-i {
    left: 0;
    margin: 0;
    position: absolute;
    top: 1px;
  }

  .xh .xh-icon-btn span {
    display: none;
  }

  .xh .xh-icon-btn {
    justify-content: center;
    padding: 0;
    width: 44px;
  }

  .xh .xh-gallery__track {
    display: flex;
    gap: 0;
    height: min(75vw, 440px, 70vh);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .xh .xh-gallery__track::-webkit-scrollbar {
    display: none;
  }

  .xh .xh-gallery__item, .xh .xh-gallery__item:nth-child(n + 6) {
    display: block;
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .xh .xh-gallery__all {
    display: none;
  }

  .xh .xh-gallery__counter {
    background: rgba(27, 26, 26, 0.6);
    border-radius: 999px;
    bottom: 12px;
    color: #fff;
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 12px;
    pointer-events: none;
    position: absolute;
    right: 12px;
  }

  .xh .xh-gallery__counter b {
    font-weight: 700;
  }

  .xh .xh-nav {
    margin-top: 18px;
  }

  .xh .xh-nav__link {
    font-size: 14px;
    padding: 3px 10px 0;
  }

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

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

  .xh .xh-section__head .xh-arrows {
    display: none;
  }

  .xh .xh-slider__btn {
    display: none;
  }

  .xh .xh-room__body {
    padding: 16px;
  }

  .xh .xh-room__name {
    font-size: 20px;
  }

  .xh .xh-card {
    padding: 18px;
  }

  .xh .xh-band {
    padding: 44px 0;
  }

  .xh .xh-layout + .xh-band, .xh .container + .xh-band {
    margin-top: 44px;
  }

  /* шаги — компактным списком без иллюстраций */
  .xh .xh-steps {
    gap: 0;
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .xh .xh-step-card {
    background: none;
    border-radius: 0;
    display: grid;
    gap: 2px 14px;
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 0;
    overflow: visible;
    padding: 0 0 22px;
  }

  .xh .xh-step-card::after {
    border-left: 2px dashed rgba(27, 26, 26, 0.18);
    border-top: 0;
    bottom: 2px;
    display: block;
    left: 19px;
    right: auto;
    top: 44px;
  }

  .xh .xh-step-card:last-child {
    padding-bottom: 0;
  }

  .xh .xh-step-card__num {
    grid-row: 1 / 3;
    margin: 0;
  }

  .xh .xh-step-card .xh-h3 {
    align-self: end;
    padding-top: 8px;
  }

  .xh .xh-step-card p {
    grid-column: 2;
    margin-top: 0;
  }

  .xh .xh-step-card img {
    display: none;
  }

  .xh .xh-set {
    flex-basis: min(280px, 78vw);
  }

  .xh .xh-q summary {
    font-size: 16px;
    padding: 16px;
  }

  .xh .xh-q__body {
    padding: 0 16px 16px;
  }

  .xh .xh-why {
    gap: 18px;
    grid-template-columns: 1fr;
    margin-top: 40px;
    padding-top: 28px;
  }

  /* модалка — шторка снизу */
  .xh .xh-modal, .xh .xh-modal--wide {
    border-radius: var(--xh-r-lg) var(--xh-r-lg) 0 0;
    margin: auto 0 0;
    max-height: 92vh;
    max-height: 92dvh;
    max-width: 100vw;
    width: 100vw;
  }

  .xh .xh-modal[open] {
    animation: xh-sheet 0.25s ease;
  }

  .xh .xh-modal__body {
    padding: 24px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .xh .xh-roomd .xh-slider--lg {
    aspect-ratio: 4 / 3;
  }

  .xh .xh-roomd__body {
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .xh .xh-roomd__buy {
    align-items: stretch;
    flex-direction: column;
  }

  .xh .xh-delivery__list li {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .xh .xh-delivery__list strong {
    grid-column: 2;
    text-align: left;
  }

  .xh .xh-bar .xh-btn {
    min-width: 0;
    padding: 0 24px;
  }
}

@media (max-width: 420px) {
  /* небольшие телефоны: номиналы в три колонки, кнопки в карточках — на всю ширину */
  .xh .xh-nominals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .xh .xh-chip--custom {
    grid-column: 1 / -1;
  }

  .xh .xh-buy {
    padding: 18px 16px;
  }

  .xh .xh-total__price {
    font-size: 28px;
  }

  .xh .xh-bar {
    gap: 10px;
    padding: 8px 12px;
  }

  .xh .xh-bar__sum b {
    font-size: 20px;
  }
}

@media (max-width: 350px) {
  .xh .xh-h1 {
    font-size: 25px;
  }

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

  .xh .xh-room__actions {
    flex-direction: column;
  }

  .xh .xh-room__actions .xh-btn {
    flex: 0 0 auto;
    width: 100%;
  }

  .xh .xh-bar .xh-btn {
    padding: 0 16px;
  }

  .xh .xh-help__phone {
    font-size: 18px;
  }
}

@media (max-height: 480px) and (max-width: 991px) {
  /* телефон в альбомной ориентации: закреплённые шапка, навигация и панели съедают почти
     весь экран — навигацию отпускаем, панель покупки прячем (кнопки есть в карточке) */
  .xh .xh-nav {
    position: static;
  }

  .xh .xh-bar {
    display: none;
  }

  .xh .xh-modal, .xh .xh-modal--wide {
    max-height: 100vh;
    max-height: 100dvh;
  }
}
