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

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

/* overflow: hidden у #wrapper не даёт position: sticky доехать до конца .xh-layout */
#wrapper:has(#xh) {
  overflow: visible;
}

.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%;
  }

  .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;
  }
}

/* ======================================================================
   БЛОКИ СТРАНИЦЫ НАБОРА
   ====================================================================== */
/* ---------- Карточка покупки: выбор ночей, старая цена, «что внутри» ---------- */
.xh .xh-nights {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.xh .xh-chip--night span {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  min-height: 64px;
  padding: 10px 14px;
  text-align: left;
}

.xh .xh-chip--night b {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.xh .xh-chip--night small {
  color: var(--xh-muted);
  column-gap: 4px;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* на узком экране старая цена уходит второй строкой, а не за край плашки */
.xh .xh-chip--night small s {
  font-weight: 600;
  opacity: 0.8;
}

.xh .xh-chip--night input:checked + span small {
  color: rgba(255, 255, 255, 0.85);
}

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

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

.xh .xh-inside ul {
  display: grid;
  gap: 7px;
}

.xh .xh-inside li {
  align-items: flex-start;
  display: flex;
  font-size: 13.5px;
  gap: 8px;
  line-height: 1.35;
}

.xh .xh-inside li .xh-i {
  color: var(--xh-green);
  height: 18px;
  margin-top: 1px;
  width: 18px;
}

.xh .xh-inside li.is-upgrade .xh-i {
  color: var(--xh-blue-d);
}

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

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

.xh .xh-total__old {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

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

.xh .xh-total__old i {
  background: var(--xh-yellow);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  padding: 2px 7px;
}

/* ---------- О наборе: сертификат и короткая схема ---------- */
.xh .xh-intro {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 300px;
  margin-bottom: 24px;
}

.xh .xh-intro__text {
  font-size: 16px;
  line-height: 1.6;
}

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

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

/* макет сертификата — что именно получит человек в подарок */
.xh .xh-cert {
  background: linear-gradient(150deg, #1f2a2e, #0f1719);
  border-radius: var(--xh-r-lg);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.xh .xh-cert::before {
  background: radial-gradient(circle at 80% 15%, rgba(38, 182, 234, 0.35), transparent 55%),
  radial-gradient(circle at 10% 90%, rgba(251, 173, 25, 0.35), transparent 50%);
  content: "";
  inset: 0;
  position: absolute;
}

.xh .xh-cert > * {
  position: relative;
}

.xh .xh-cert__brand {
  align-items: center;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.08em;
  opacity: 0.8;
  text-transform: uppercase;
}

.xh .xh-cert__brand img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
}

.xh .xh-cert__kicker {
  color: var(--xh-yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.xh .xh-cert__title {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 4px;
}

.xh .xh-cert__rows {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.xh .xh-cert__rows li {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  opacity: 0.95;
  padding-top: 8px;
}

.xh .xh-cert__rows li span:first-child {
  opacity: 0.7;
}

.xh .xh-cert__rows li b {
  color: #fff;
  font-weight: 800;
  text-align: right;
}

.xh .xh-cert__foot {
  align-items: center;
  display: flex;
  gap: 12px;
}

.xh .xh-cert__qr {
  background: #fff;
  border-radius: 8px;
  flex: 0 0 56px;
  height: 56px;
  padding: 5px;
  width: 56px;
}

.xh .xh-cert__qr svg {
  display: block;
  height: 100%;
  width: 100%;
}

.xh .xh-cert__foot p {
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.8;
}

.xh .xh-cert__label {
  color: var(--xh-muted);
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
}

/* ---------- Отели в наборе: фильтры ---------- */
.xh .xh-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.xh .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 .xh-search:focus-within {
  border-color: var(--xh-blue);
}

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

.xh .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: 15px;
  font-weight: 600;
  height: 100%;
  min-width: 0;
  outline: none;
  padding: 0;
}

.xh .xh-search input::placeholder {
  color: var(--xh-muted);
  font-weight: 500;
}

.xh .xh-search__clear {
  align-items: center;
  border-radius: 50%;
  color: var(--xh-muted);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.xh .xh-search__clear:hover {
  background: var(--xh-soft);
  color: var(--xh-ink);
}

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

.xh .xh-filter {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.xh .xh-filter__label {
  color: var(--xh-muted);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  width: 92px;
}

.xh .xh-chips {
  cursor: grab;
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.xh .xh-chips.is-dragging {
  cursor: grabbing;
  user-select: none;
}

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

.xh .xh-chip-f {
  align-items: center;
  background: var(--xh-soft);
  border: 1.5px solid transparent;
  border-radius: 999px;
  color: var(--xh-text);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13.5px;
  font-weight: 700;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

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

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

.xh .xh-chip-f.is-active {
  background: var(--xh-ink);
  border-color: var(--xh-ink);
  color: #fff;
}

.xh .xh-chip-f.is-active i {
  color: rgba(255, 255, 255, 0.7);
}

.xh .xh-result {
  align-items: center;
  color: var(--xh-muted);
  display: flex;
  font-size: 14px;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

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

/* ---------- Отели в наборе: карточки ---------- */
.xh .xh-hotels {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

@media (hover: hover) {
  .xh .xh-hotel:hover {
    box-shadow: var(--xh-shadow-lg);
    transform: translateY(-2px);
  }
}

.xh .xh-hotel__media {
  aspect-ratio: 4 / 3;
  position: relative;
}

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

.xh .xh-hotel__badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  color: var(--xh-green-d);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
  left: 12px;
  line-height: 1;
  padding: 6px 10px;
  pointer-events: none;
  position: absolute;
  top: 12px;
  z-index: 2;
}

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

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

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

.xh .xh-hotel__place {
  align-items: flex-start;
  color: var(--xh-muted);
  display: flex;
  font-size: 13px;
  gap: 5px;
  line-height: 1.35;
}

.xh .xh-hotel__place .xh-i {
  color: var(--xh-red);
  height: 16px;
  margin-top: 1px;
  width: 16px;
}

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

.xh .xh-hotel__cats li {
  background: var(--xh-cream);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 5px 8px;
}

.xh .xh-hotel__cats li.is-more {
  background: var(--xh-soft);
  color: var(--xh-muted);
}

.xh .xh-hotel__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 .xh-hotel__rooms {
  color: var(--xh-muted);
  font-size: 13px;
  font-weight: 700;
}

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

.xh .xh-hotel__foot .xh-btn {
  font-size: 14px;
  min-height: 40px;
  padding: 0 14px;
}

.xh .xh-more-row {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 24px;
}

.xh .xh-more-row .xh-btn {
  min-width: 260px;
}

.xh .xh-more-row p {
  color: var(--xh-muted);
  font-size: 13px;
}

.xh .xh-empty {
  background: var(--xh-soft);
  border-radius: var(--xh-r-lg);
  color: var(--xh-muted);
  padding: 40px 24px;
  text-align: center;
}

.xh .xh-empty b {
  color: var(--xh-ink);
  display: block;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.xh .xh-empty .xh-btn {
  margin-top: 16px;
}

/* заметка под списком: любой отель, не только из набора */
.xh .xh-callout {
  align-items: center;
  background: var(--xh-blue-soft);
  border-radius: var(--xh-r-lg);
  display: grid;
  gap: 16px 20px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  margin-top: 24px;
  padding: 20px 22px;
}

.xh .xh-callout__icon {
  align-items: center;
  background: #fff;
  border-radius: 14px;
  color: var(--xh-blue-d);
  display: inline-flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}

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

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

.xh .xh-callout p {
  color: var(--xh-muted);
  font-size: 14px;
  line-height: 1.4;
}

/* ---------- Апгрейд и замена ---------- */
.xh .xh-opts {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.xh .xh-opt--accent {
  background: var(--xh-cream);
  box-shadow: none;
}

.xh .xh-opt--blue {
  background: var(--xh-blue-soft);
  box-shadow: none;
}

.xh .xh-opt__icon {
  align-items: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--xh-shadow);
  color: var(--xh-red);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 14px;
  width: 48px;
}

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

.xh .xh-opt--blue .xh-opt__icon {
  color: var(--xh-blue-d);
}

.xh .xh-opt--accent .xh-opt__icon {
  color: var(--xh-amber-d);
}

.xh .xh-opt .xh-h3 {
  margin-bottom: 8px;
}

.xh .xh-opt p {
  color: var(--xh-text);
  font-size: 14.5px;
  line-height: 1.5;
}

.xh .xh-opt p + p {
  margin-top: 8px;
}

.xh .xh-opt__tag {
  background: var(--xh-green-soft);
  border-radius: 999px;
  color: var(--xh-green-d);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  padding: 5px 10px;
  width: max-content;
}

.xh .xh-opt__tag--pay {
  background: var(--xh-amber-soft);
  color: var(--xh-amber-d);
}

.xh .xh-opt__foot {
  margin-top: auto;
  padding-top: 16px;
}

.xh .xh-opt__foot .xh-btn {
  width: 100%;
}

/* полоса «1000+ отелей» */
.xh .xh-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.xh .xh-stat {
  background: var(--xh-soft);
  border-radius: var(--xh-r);
  padding: 16px 18px;
}

.xh .xh-stat b {
  color: var(--xh-ink);
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.xh .xh-stat b em {
  color: var(--xh-red);
  font-style: normal;
}

.xh .xh-stat span {
  color: var(--xh-muted);
  display: block;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
}

/* ---------- Модальное окно отеля ---------- */
.xh .xh-hoteld .xh-slider--lg {
  aspect-ratio: 16 / 8;
  max-height: 46vh;
  width: 100%;
}

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

.xh .xh-hoteld__head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.xh .xh-hoteld__head .xh-pill {
  flex: 0 0 auto;
  margin-top: 4px;
}

.xh .xh-hoteld__place {
  align-items: flex-start;
  color: var(--xh-muted);
  display: flex;
  font-size: 14px;
  gap: 6px;
  line-height: 1.35;
  margin-bottom: 14px;
}

.xh .xh-hoteld__place .xh-i {
  color: var(--xh-red);
  height: 18px;
  margin-top: 1px;
  width: 18px;
}

.xh .xh-hoteld__desc {
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-line;
}

.xh .xh-hoteld__desc.is-clamped {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  display: -webkit-box;
  overflow: hidden;
}

.xh .xh-hoteld__services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

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

.xh .xh-hoteld__services li b {
  color: var(--xh-muted);
  font-weight: 700;
  margin-right: 4px;
}

.xh .xh-hoteld__h {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 24px 0 12px;
}

.xh .xh-hoteld__h .xh-h3 {
  font-size: 20px;
}

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

.xh .xh-roomcs {
  display: grid;
  gap: 12px;
}

.xh .xh-roomc {
  background: var(--xh-soft);
  border-radius: var(--xh-r);
  display: grid;
  gap: 0;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
}

.xh .xh-roomc__media {
  min-height: 160px;
  position: relative;
}

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

.xh .xh-roomc__media--empty {
  align-items: center;
  background: var(--xh-line);
  color: var(--xh-muted);
  display: flex;
  justify-content: center;
}

.xh .xh-roomc__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
}

.xh .xh-roomc__top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.xh .xh-roomc__name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.xh .xh-roomc .xh-specs {
  margin-bottom: 0;
}

.xh .xh-roomc__foot {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}

.xh .xh-roomc__foot .xh-link {
  font-size: 13px;
}

.xh .xh-hoteld__note {
  align-items: flex-start;
  background: var(--xh-cream);
  border-radius: var(--xh-r);
  display: flex;
  font-size: 14px;
  gap: 12px;
  line-height: 1.45;
  margin-top: 16px;
  padding: 14px 16px;
}

.xh .xh-hoteld__note .xh-i {
  color: var(--xh-amber-d);
  flex: 0 0 auto;
  margin-top: 1px;
}

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

.xh .xh-hoteld__cta {
  display: grid;
  gap: 8px;
  grid-template-columns: 1.3fr 1fr;
  margin-top: 20px;
}

@container xh-main (max-width: 900px) {
  /* ---------- Адаптив блоков набора ---------- */
  .xh .xh-hotels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .xh .xh-cert {
    max-width: 420px;
  }

  .xh .xh-callout {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .xh .xh-callout .xh-btn {
    grid-column: 2;
    justify-self: start;
  }
}

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

  .xh .xh-opts, .xh .xh-stats {
    grid-template-columns: 1fr;
  }

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

  .xh .xh-filter__label {
    width: auto;
  }

  .xh .xh-chips {
    margin: 0 -12px;
    padding: 2px 12px;
    width: calc(100% + 24px);
  }

  .xh .xh-hotel__foot .xh-btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 767px) {
  .xh .xh-hoteld .xh-slider--lg {
    aspect-ratio: 4 / 3;
  }

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

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

  .xh .xh-roomc__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

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

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

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

@media (max-width: 991px) {
  /* на планшете карточка покупки идёт первой — ночи в один ряд пошире */
  .xh .xh-chip--night span {
    min-height: 58px;
  }
}

/* ======================================================================
   Первый экран как у набора впечатлений: квадратный слайдер с миниатюрами
   слева, описание и короткий блок покупки справа (из experience-page-v2.css)
   ====================================================================== */
.xh .xh-rating__score {
  align-items: center;
  display: inline-flex;
  font-size: 15px;
  gap: 8px;
}

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

.xh .xh-rating__score > span:last-child {
  color: var(--xh-blue-d);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.xh .xh-rating__ext {
  align-items: center;
  background: var(--xh-cream);
  border-radius: 999px;
  color: var(--xh-amber-d);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
}

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

.xh .xh-hero__grid--square {
  align-items: start;
  display: grid;
  gap: 32px 40px;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
}

.xh .xh-hero__info {
  min-width: 0;
}

.xh .xh-hero__grid--square .xh-hero__head {
  align-items: flex-start;
  margin-bottom: 0;
}

.xh .xh-hero__grid--square .xh-tags {
  margin-bottom: 10px;
}

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

.xh .xh-gallery--sq {
  border-radius: 0;
  overflow: visible;
}

.xh .xh-gallery__main {
  background: var(--xh-soft);
  border-radius: var(--xh-r-lg);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.xh .xh-gallery--sq .xh-gallery__track {
  display: flex;
  gap: 0;
  grid-template-columns: none;
  grid-template-rows: none;
  height: auto;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

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

.xh .xh-gallery--sq .xh-gallery__item, .xh .xh-gallery--sq .xh-gallery__item:first-child, .xh .xh-gallery--sq .xh-gallery__item:nth-child(n + 6) {
  aspect-ratio: 1 / 1;
  display: block;
  flex: 0 0 100%;
  grid-row: auto;
  max-width: 100%;
  min-width: 100%;
  scroll-snap-align: center;
  width: 100%;
}

.xh .xh-gallery--sq .xh-gallery__item img {
  aspect-ratio: 1 / 1;
  height: 100%;
  object-fit: cover;
  transition: none;
  width: 100%;
}

.xh .xh-gallery__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: 44px;
  justify-content: center;
  margin-top: -22px;
  opacity: 0;
  position: absolute;
  top: 50%;
  transition: opacity 0.15s ease, color 0.15s ease;
  width: 44px;
  z-index: 2;
}

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

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

.xh .xh-gallery__btn--prev {
  left: 14px;
}

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

.xh .xh-gallery__btn--next {
  right: 14px;
}

.xh .xh-gallery__main:hover .xh-gallery__btn, .xh .xh-gallery__btn:focus-visible {
  opacity: 1;
}

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

.xh .xh-gallery--sq .xh-gallery__all {
  bottom: 14px;
  right: 14px;
}

.xh .xh-gallery__thumbs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 8px;
}

.xh .xh-gallery__thumb {
  aspect-ratio: 1 / 1;
  background: var(--xh-soft);
  border: 2px solid transparent;
  border-radius: var(--xh-r-sm);
  display: block;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

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

.xh .xh-gallery__thumb:hover {
  border-color: var(--xh-line);
}

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

.xh .xh-gallery__thumb:nth-child(n + 7) {
  display: none;
}

.xh .xh-offer {
  background: var(--xh-soft);
  border-radius: var(--xh-r-lg);
  margin-top: 20px;
  padding: 18px 20px 16px;
}

.xh .xh-offer__price {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

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

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

.xh .xh-offer__price i {
  background: var(--xh-yellow);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  padding: 3px 7px;
}




.xh .xh-offer__cta {
  display: grid;
  gap: 8px;
  grid-template-columns: 1.4fr 1fr;
  margin-top: 14px;
}

.xh .xh-offer__cta .xh-btn {
  min-height: 50px;
  padding: 0 12px;
}

.xh .xh-offer__promises {
  display: grid;
  font-size: 13.5px;
  gap: 7px;
  line-height: 1.35;
  margin-top: 14px;
}

.xh .xh-offer__promises li {
  align-items: flex-start;
  display: flex;
  gap: 8px;
}

.xh .xh-offer__promises .xh-i {
  color: var(--xh-blue-d);
  flex: 0 0 auto;
  height: 18px;
  margin-top: 1px;
  width: 18px;
}

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

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

@media (max-width: 767px) {
  .xh .xh-rating__score {
    font-size: 14px;
  }

  .xh .xh-rating__ext {
    font-size: 12px;
  }

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

  .xh .xh-gallery--sq {
    max-width: 100%;
    min-width: 0;
    order: -1;
    width: 100%;
  }

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

  .xh .xh-gallery--sq .xh-gallery__track {
    height: auto;
  }

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

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

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

  .xh .xh-hero__grid--square .xh-h1 {
    font-size: 26px;
  }

}

@media (hover: none) {
  .xh .xh-gallery__btn {
    display: none;
  }

}

@media (max-width: 1399px) {
  .xh .xh-hero__grid--square {
    gap: 24px 28px;
    grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  }

  .xh .xh-hero__grid--square .xh-h1 {
    font-size: 30px;
  }

  .xh .xh-offer__price b {
    font-size: 28px;
  }

}

@media (max-width: 991px) {
  .xh .xh-hero__grid--square {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

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

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

  .xh .xh-hero__grid--square .xh-h1 {
    font-size: 26px;
  }

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

  .xh .xh-hero__grid--square .xh-hero__actions {
    position: absolute;
    right: 0;
    top: -4px;
  }

  .xh .xh-hero__grid--square .xh-tags {
    padding-right: 96px;
  }

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

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

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

}

.xh .xh-hero__grid--square .xh-hero__sub {
  margin-top: 6px;
}

.xh .xh-hero__grid--square .xh-address {
  margin-top: 10px;
}

/* «за 1 ночь» рядом с ценой — ведёт к выбору ночей в карточке покупки */
.xh .xh-offer__per {
  align-items: center;
  color: var(--xh-muted);
  display: inline-flex;
  font-size: 14px;
  gap: 4px;
  margin-left: auto;
  white-space: nowrap;
}

.xh .xh-offer__per span {
  color: var(--xh-ink);
  font-weight: 700;
}

.xh .xh-offer__per .xh-i {
  height: 15px;
  width: 15px;
}

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

@media (max-width: 767px) {
  /* базовые мобильные стили задают right: 12px, квадратная галерея — left: 14px; вместе плашка растягивается */
  .xh .xh-gallery--sq .xh-gallery__counter {
    left: 14px;
    right: auto;
    width: max-content;
  }
}

/* ======================================================================
   Преимущества: все иконки одним цветом, сетка 3×2 (как у набора впечатлений)
   ====================================================================== */
.xh .xh-facts--why {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xh .xh-facts--why .xh-fact {
  align-items: flex-start;
  background: var(--xh-soft);
}

.xh .xh-facts--why .xh-fact__icon {
  background: var(--xh-blue-soft);
  color: var(--xh-blue-d);
}

@container xh-main (max-width: 800px) {
  .xh .xh-facts--why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ---------- «Как это работает» внутри блока о подарке ---------- */
.xh .xh-h3--block {
  font-size: 22px;
  margin: 36px 0 16px;
}

.xh .xh-steps--inline {
  margin-top: 0;
}

.xh .xh-steps--inline .xh-step-card {
  background: var(--xh-soft);
  min-height: 0;
  padding: 18px 18px 0;
}

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

.xh .xh-steps--inline .xh-step-card img {
  height: 96px;
  padding-top: 10px;
}

@container xh-main (max-width: 900px) {
  .xh .xh-steps--inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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


@media (max-width: 767px) {
  /* шаги — карточками в одну строку с горизонтальной прокруткой */
  .xh .xh-steps--inline {
    display: flex;
    gap: 10px;
    margin: 0 -12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 4px 12px 12px;
    scroll-padding: 0 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .xh .xh-steps--inline::-webkit-scrollbar {
    display: none;
  }

  .xh .xh-steps--inline .xh-step-card {
    background: var(--xh-soft);
    border-radius: var(--xh-r-lg);
    display: flex;
    flex: 0 0 min(300px, 80vw);
    flex-direction: column;
    gap: 0;
    min-height: 0;
    overflow: hidden;
    padding: 18px 18px 0;
    scroll-snap-align: start;
  }

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

  .xh .xh-steps--inline .xh-step-card__num {
    margin: 0 0 14px;
  }

  .xh .xh-steps--inline .xh-step-card .xh-h3 {
    align-self: auto;
    padding-top: 0;
  }

  .xh .xh-steps--inline .xh-step-card p {
    margin-top: 8px;
  }

  .xh .xh-steps--inline .xh-step-card img {
    align-self: flex-end;
    display: block;
    height: 96px;
    margin-top: auto;
    padding-top: 12px;
  }
}

/* ======================================================================
   Окно отеля: кнопки «Подарить набор» и «К списку отелей» прилипают к низу
   ====================================================================== */
.xh .xh-hoteld__cta {
  background: #fff;
  bottom: 0;
  box-shadow: 0 -1px 0 var(--xh-line), 0 -8px 16px rgba(27, 26, 26, 0.06);
  margin: 20px -28px -28px;
  padding: 14px 28px 16px;
  position: sticky;
  z-index: 3;
}

@media (max-width: 767px) {
  .xh .xh-hoteld__cta {
    gap: 8px;
    grid-template-columns: 1.2fr 1fr;
    margin: 16px -16px calc(-20px - env(safe-area-inset-bottom));
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }

  .xh .xh-hoteld__cta .xh-btn {
    font-size: 15px;
    padding: 0 10px;
  }

  .xh .xh-hoteld__cta-price {
    display: none;
  }
}

/* ======================================================================
   Фото в карточке отеля: листаются при наведении, на телефоне — свайпом
   ====================================================================== */
.xh .xh-slider--hover .xh-slider__track {
  scroll-behavior: auto;
}

.xh .xh-slider__bars {
  bottom: 10px;
  display: flex;
  gap: 4px;
  left: 12px;
  pointer-events: none;
  position: absolute;
  right: 12px;
}

.xh .xh-slider__bars i {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  box-shadow: 0 0 3px rgba(27, 26, 26, 0.25);
  flex: 1 1 0;
  height: 3px;
  transition: background-color 0.15s ease;
}

.xh .xh-slider__bars i.is-active {
  background: #fff;
}

/* ======================================================================
   Поиск + переключатель «Список / На карте», карта отелей
   ====================================================================== */
.xh .xh-toolbar__row {
  display: flex;
  gap: 12px;
}

.xh .xh-toolbar__row .xh-search {
  flex: 1 1 auto;
  min-width: 0;
}

.xh .xh-view {
  background: var(--xh-soft);
  border-radius: var(--xh-r-sm);
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  height: 50px;
  padding: 4px;
}

.xh .xh-view__btn {
  align-items: center;
  border-radius: 8px;
  color: var(--xh-muted);
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  padding: 0 16px;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.xh .xh-view__btn .xh-i {
  height: 20px;
  width: 20px;
}

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

.xh .xh-view__btn.is-active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(27, 26, 26, 0.12);
  color: var(--xh-blue-d);
}

.xh .is-map .xh-hotels, .xh .is-map .xh-more-row {
  display: none;
}

.xh .xh-hmap {
  background: var(--xh-soft);
  border: 1px solid var(--xh-line);
  border-radius: var(--xh-r-lg);
  height: 600px;
  overflow: hidden;
  position: relative;
}

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

.xh .xh-hmap__canvas {
  inset: 0;
  position: absolute;
}

.xh .xh-hmap__status {
  align-items: center;
  color: var(--xh-muted);
  display: flex;
  font-size: 15px;
  font-weight: 600;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: absolute;
  text-align: center;
}

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

/* карточка выбранного отеля поверх карты */
.xh .xh-hmap__card {
  background: #fff;
  border-radius: var(--xh-r);
  bottom: 16px;
  box-shadow: var(--xh-shadow-lg);
  display: grid;
  gap: 14px;
  grid-template-columns: 120px minmax(0, 1fr);
  left: 16px;
  padding: 10px;
  position: absolute;
  width: 400px;
  z-index: 2;
}

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

.xh .xh-hmap__photo {
  background: var(--xh-soft);
  border-radius: var(--xh-r-sm);
  display: block;
  min-height: 120px;
  overflow: hidden;
  padding: 0;
}

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

.xh .xh-hmap__body {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 4px 26px 2px 0;
}

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

.xh .xh-hmap__place {
  align-items: flex-start;
  color: var(--xh-muted);
  display: flex;
  font-size: 13px;
  gap: 4px;
  line-height: 1.35;
}

.xh .xh-hmap__place .xh-i {
  color: var(--xh-red);
  flex: 0 0 auto;
  height: 15px;
  width: 15px;
}

.xh .xh-hmap__rooms {
  color: var(--xh-green-d);
  font-size: 13px;
  font-weight: 700;
}

.xh .xh-hmap__body .xh-btn {
  margin-top: auto;
  min-height: 38px;
  padding: 0 14px;
}

.xh .xh-hmap__close {
  align-items: center;
  border-radius: 50%;
  color: var(--xh-muted);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  position: absolute;
  right: 6px;
  top: 6px;
  width: 28px;
}

.xh .xh-hmap__close:hover {
  background: var(--xh-soft);
  color: var(--xh-ink);
}

.xh .xh-hmap__close .xh-i {
  height: 18px;
  width: 18px;
}

@media (max-width: 767px) {
  .xh .xh-toolbar__row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .xh .xh-toolbar__row .xh-search {
    flex: 1 1 100%;
  }

  .xh .xh-view {
    flex: 1 1 100%;
    height: 46px;
  }

  .xh .xh-view__btn {
    flex: 1 1 0;
  }

  .xh .xh-hmap {
    border-radius: var(--xh-r);
    height: 70vh;
    min-height: 420px;
  }

  .xh .xh-hmap__card {
    bottom: 10px;
    grid-template-columns: 96px minmax(0, 1fr);
    left: 10px;
    right: 10px;
    width: auto;
  }

  .xh .xh-hmap__photo {
    min-height: 96px;
  }
}

/* ======================================================================
   Фильтры размещения и удобств: те же плашки, что у регионов, с иконкой
   ====================================================================== */
.xh .xh-chip-f--icon {
  gap: 6px;
  padding-left: 10px;
}

.xh .xh-chip-f--icon .xh-i {
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

/* Кешбэк 5% с заказа: строкой под ценой на первом экране и под итогом в карточке покупки */
.xh .xh-offer__cashback, .xh .xh-total__cashback {
  align-items: center;
  color: var(--xh-muted);
  display: flex;
  font-size: 14px;
  gap: 6px;
}

.xh .xh-offer__cashback {
  flex-basis: 100%;
  margin-top: 4px;
}

.xh .xh-total__cashback {
  font-size: 13px;
  justify-content: flex-end;
  margin-top: 6px;
}

.xh .xh-offer__cashback .xh-i, .xh .xh-total__cashback .xh-i {
  color: var(--xh-green);
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

.xh .xh-offer__cashback em, .xh .xh-total__cashback b {
  color: var(--xh-green-d);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
