/* LOST redesign — секции главной: hero, категории, отзывы, бронирование, сертификаты, карта, footer. */

/* Hero — ИБ 19: BG, BG_UP, BG_COLOR, BTN_*, HIDE_BTN, MOVE_RIGHT_PICTURE, CENTERED_UP_PICTURE */
.lost-hero { margin-top: clamp(24px, 4vw, 48px); padding-block: 0; }
.lost-hero__slider-wrap {
  position: relative;
  overflow: visible;
}
.lost-hero__slider-wrap.has-slider {
  padding: 0;
}
.lost-hero__slider-wrap.has-slider .lost-hero__slider .slick-list {
  overflow: visible;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.lost-hero__slider-wrap.has-slider .lost-hero__slider .slick-track {
  display: flex !important;
  align-items: stretch;
}
.lost-hero__slider.js-lost-hero-slider:not(.slick-initialized) {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
}
.lost-hero__slider.js-lost-hero-slider:not(.slick-initialized) > .lost-hero__slide {
  flex: 0 0 100%;
  min-width: 0;
}
.lost-hero__slider-wrap.has-slider .lost-hero__slide {
  padding: 0 10px;
  box-sizing: border-box;
  opacity: 0.45;
  visibility: visible !important;
  transition: opacity .25s ease, transform .25s ease;
}
.lost-hero__slider-wrap.has-slider .lost-hero__slide.slick-active,
.lost-hero__slider-wrap.has-slider .lost-hero__slide.slick-current {
  opacity: 1;
}
.lost-hero__slider-wrap.has-slider .lost-hero__slide[aria-hidden="true"] {
  visibility: visible !important;
  pointer-events: none;
}
.lost-hero__slider .lost-hero__slide {
  display: block;
}
.lost-hero__slider-wrap.has-slider .lost-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(12, 8, 16, 0.56);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.lost-hero__slider-wrap.has-slider .lost-hero__nav:hover {
  background: rgba(209, 43, 60, 0.82);
}
.lost-hero__slider-wrap.has-slider .lost-hero__nav:active {
  transform: translateY(-50%) scale(0.96);
}
.lost-hero__slider-wrap.has-slider .lost-hero__nav--prev { left: -72px; }
.lost-hero__slider-wrap.has-slider .lost-hero__nav--next { right: -72px; }
.lost-hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 6;
}
.lost-hero__dots .slick-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lost-hero__dots .slick-dots li button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  color: transparent;
  cursor: pointer;
  padding: 0;
}
.lost-hero__dots .slick-dots li.slick-active button {
  width: 20px;
  background: #fff;
}
.lost-hero__dots { display: none !important; }
/* slick-theme.css рисует в кнопках чёрный буллет через :before — гасим его, */
/* иначе внутри белых пилюль видны чёрные точки. */
.lost-hero__dots .slick-dots li button::before {
  content: none !important;
  display: none !important;
}
.lost-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--lost-radius-2xl);
  background: url("/local/design/hero_background.png") center / cover no-repeat, var(--lost-hero-gradient);
  box-shadow: var(--lost-shadow-hero);
  overflow: hidden;
  isolation: isolate;
}
.lost-hero__inner--has-bg,
.lost-hero__inner--gradient-only {
  background: var(--lost-hero-gradient);
}
.lost-hero__inner--has-bg {
  background: none;
}
.lost-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
.lost-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.lost-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.lost-hero__title { margin: 0 0 12px; font-size: clamp(32px, 5vw, 48px); font-weight: var(--lost-fw-bold); line-height: var(--lost-lh-tight); color: var(--lost-text-primary); }
.lost-hero__text { margin: 0; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.5; color: rgba(255,255,255,0.82); max-width: 540px; }
.lost-hero__text p { margin: 0; }
.lost-hero__actions { position: relative; z-index: 2; display: flex; }
.lost-hero__cta {
  min-width: 220px;
  min-height: 48px;
  padding: 0 30px;
  font-size: var(--lost-fs-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #e23a4b, #d12b3c) !important;
  box-shadow: 0 14px 26px rgba(209, 43, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform .2s ease, filter .2s ease;
}
.lost-hero__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.lost-hero__media {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.lost-hero__media-wrap {
  width: 100%;
  max-width: min(1340px, 100%);
  margin: 0 auto;
  position: relative;
}
.lost-hero__img { width: auto; height: auto; max-width: 100%; max-height: 300px; object-fit: contain; display: block; }

@keyframes lost-section-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.lost-hero__inner.is-loading .lost-hero__content,
.lost-hero__inner.is-loading .lost-hero__actions,
.lost-hero__inner.is-loading .lost-hero__media {
  opacity: 0;
}
.lost-hero__inner.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(27, 19, 33, 0.96);
}
.lost-hero__inner.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: lost-section-shimmer 1.25s infinite;
}

@media (max-width: 767px) {
  .lost-hero {
    margin-top: 12px;
  }
  .lost-hero__slider-wrap.has-slider {
    padding: 0;
    padding-bottom: 8px;
    margin-bottom: 24px;
  }

  .lost-hero__slider-wrap.has-slider .lost-hero__slider .slick-list {
    overflow: hidden !important;
  }

  .lost-hero__slider-wrap.has-slider .lost-hero__slide {
    opacity: 1;
    padding: 0;
  }

  .lost-hero__slider-wrap.has-slider .lost-hero__nav {
    display: none !important;
  }

  .lost-hero__dots {
    display: flex !important;
    bottom: 8px;
    pointer-events: none;
  }

  .lost-hero__dots .slick-dots {
    pointer-events: auto;
  }

  .lost-hero__slider-wrap.has-slider .lost-hero__inner {
    padding-bottom: 34px;
  }

  .lost-hero__inner {
    min-height: 0;
    padding: 18px 16px 16px;
    gap: 10px;
    border-radius: 18px;
  }

  .lost-hero__content {
    max-width: none;
    order: 1;
  }

  .lost-hero__title {
    margin-bottom: 8px;
    font-size: clamp(22px, 6.4vw, 30px);
    letter-spacing: -0.03em;
    line-height: 1.1;
  }

  .lost-hero__text {
    font-size: 14px;
    line-height: 1.45;
    max-width: none;
  }

  .lost-hero__media {
    order: 2;
    overflow: hidden;
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    justify-content: center !important;
    align-items: center;
  }

  .lost-hero__inner--no-text {
    min-height: clamp(220px, 58vw, 300px);
  }

  .lost-hero__media--centered,
  .lost-hero__inner--center-up.lost-hero__inner--no-text .lost-hero__media {
    justify-content: center;
    width: 100%;
    margin-right: 0;
  }

  .lost-hero__img {
    object-fit: contain;
    object-position: center center;
    width: auto;
    max-width: min(88%, 280px);
    height: auto;
    max-height: min(42vw, 190px);
    margin: 0 auto !important;
    display: block;
  }

  .lost-hero__media--centered .lost-hero__img,
  .lost-hero__inner--center-up.lost-hero__inner--no-text .lost-hero__img {
    margin-left: auto;
    margin-right: auto;
    object-position: center center;
    max-width: min(88%, 280px);
    max-height: min(42vw, 190px);
  }

  .lost-hero__actions {
    order: 3;
    width: 100%;
    margin-top: 2px;
  }

  .lost-hero__cta {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border-radius: 999px;
    justify-content: center;
  }
}

@media (max-width: 1280px) and (min-width: 768px) {
  .lost-hero__slider-wrap.has-slider .lost-hero__nav--prev { left: -36px; }
  .lost-hero__slider-wrap.has-slider .lost-hero__nav--next { right: -36px; }
}

@media (min-width: 768px) {
  .lost-hero__inner {
    display: block;
    min-height: clamp(320px, 34vw, 400px);
  }
  .lost-hero__content {
    max-width: 62%;
    padding-bottom: 78px;
  }
  .lost-hero__actions {
    max-width: 62%;
    margin-top: 0;
    position: absolute;
    left: clamp(28px, 5vw, 48px);
    bottom: clamp(24px, 3vw, 34px);
    z-index: 3;
  }
  .lost-hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
  }
  .lost-hero__inner--move-right .lost-hero__media {
    left: 0;
    justify-content: flex-end;
  }
  .lost-hero__inner:not(.lost-hero__inner--move-right) .lost-hero__media {
    justify-content: center;
  }
  .lost-hero__inner:not(.lost-hero__inner--move-right) .lost-hero__media-wrap {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
  }
  .lost-hero__img {
    height: 100%;
    width: auto;
    max-width: 60%;
    max-height: 90%;
    object-fit: contain;
    object-position: right bottom;
  }
  .lost-hero__inner--move-right .lost-hero__img {
    max-width: none;
    max-height: none;
    height: 100%;
    object-position: right bottom;
  }
}

/* Секции категорий квестов */
.lost-quest-section.is-filter-hidden { display: none; }
.lost-quest-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.lost-quest-section__title { margin: 0; font-size: var(--lost-fs-h2); font-weight: var(--lost-fw-semibold); color: var(--lost-text-primary); }
.lost-quest-section__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.lost-quest-section__more { text-align: center; margin-top: 32px; }

@media (min-width: 768px) { .lost-quest-section__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lost-quest-section__grid { grid-template-columns: repeat(3, 1fr); } }

/* Отзывы */
.lost-reviews {
  background: var(--lost-reviews-gradient);
  padding-block: var(--lost-space-section);
}
.lost-reviews__head { margin-bottom: var(--lost-space-8); max-width: 640px; }
.lost-reviews__title {
  margin: 0 0 var(--lost-space-3);
  font-size: var(--lost-fs-h2);
  font-weight: var(--lost-fw-bold);
  color: var(--lost-text-primary);
  line-height: var(--lost-lh-tight);
}
/* Masonry: колонки с разной высотой карточек (как в макете) */
.lost-reviews__grid {
  column-count: 1;
  column-gap: var(--lost-space-5);
}
.lost-reviews__grid .lost-review-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: var(--lost-space-5);
}
.lost-reviews__footer { text-align: center; margin-top: var(--lost-space-8); }
.lost-reviews__footer .lost-btn--primary {
  min-width: 240px;
  border-radius: var(--lost-radius-md);
  padding: 14px 40px;
}
.lost-reviews__empty {
  padding: var(--lost-space-6);
  background: var(--lost-bg-card);
  border: 1px solid var(--lost-border-card);
  border-radius: var(--lost-radius-lg);
  color: var(--lost-text-secondary);
  text-align: center;
}
@media (min-width: 768px) { .lost-reviews__grid { column-count: 2; } }
@media (min-width: 1024px) { .lost-reviews__grid { column-count: 3; } }

/* Бронирование (главная) — компактная горизонтальная сетка */
.lost-booking--home {
  background: var(--lost-bg-page);
  padding-block: var(--lost-space-section);
}
.lost-booking--home .booking_wrap {
  display: block !important;
  margin-top: 0;
}
.lost-booking--home .booking_table_card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--lost-space-3);
  align-items: center;
  margin-bottom: 0 !important;
  padding: 0;
  background: transparent;
  border: none;
}
.lost-booking--home .form_of_booking {
  grid-column: 1 / -1;
}
.lost-booking--home .lost-booking__header {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  justify-self: start;
}
.lost-booking--home .lost-booking__title {
  margin: 0;
  font-family: var(--lost-font-family);
  font-size: var(--lost-fs-h2);
  font-weight: var(--lost-fw-semibold);
  color: var(--lost-text-primary);
}
.lost-booking--home .booking_wrap_times {
  display: contents;
}
.lost-booking--home .booking_wrap_times > .booking {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin: 0;
}
.lost-booking--home .booking_wrap_times > .str {
  grid-column: 1 / -1;
}
.lost-booking--home .booking .date_carousel {
  margin: 0;
  max-width: none;
  gap: var(--lost-space-3);
  justify-content: center;
}
.lost-booking--home .booking .date_carousel .dev2 {
  font-family: var(--lost-font-family);
  font-size: var(--lost-fs-body);
  font-weight: var(--lost-fw-semibold);
  color: var(--lost-text-primary);
  white-space: nowrap;
}
.lost-booking--home .booking .more_date {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--lost-bg-card-soft);
  border-radius: var(--lost-radius-pill);
  transition: background-color var(--lost-transition);
}
.lost-booking--home .booking .more_date:hover {
  background: var(--lost-accent-purple);
}
.lost-booking--home .booking .more_date svg path {
  stroke: var(--lost-text-primary);
}
/* Строка квеста: превью слева + слоты справа */
.lost-booking--home .str,
.lost-booking__row {
  display: grid;
  grid-template-columns: var(--lost-booking-quest-col) minmax(0, 1fr);
  width: 100%;
  align-items: center;
  gap: var(--lost-space-3);
  padding: 6px 0;
  border-bottom: 1px solid var(--lost-border-subtle);
}
.lost-booking--home .str:last-child {
  border-bottom: none;
}
.lost-booking--home .id_rooms,
.lost-booking__quest {
  width: var(--lost-booking-quest-col);
  min-width: var(--lost-booking-quest-col);
  max-width: var(--lost-booking-quest-col);
}
.lost-booking--home .id_rooms a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.lost-booking--home .home_form .boo {
  width: 100%;
  height: 52px;
  margin: 0;
  border-radius: var(--lost-radius-sm);
  background-position: center;
  background-size: cover;
  filter: none;
}
.lost-booking--home .boo_name {
  position: static;
  width: auto;
  font-family: var(--lost-font-family);
  font-size: 13px;
  font-weight: var(--lost-fw-medium);
  line-height: 1.3;
  text-align: left;
  color: var(--lost-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.lost-booking--home .times_row {
  width: 100%;
  min-width: 0;
}

@media (max-width: 767px) {
  .lost-booking--home .booking_table_card {
    grid-template-columns: 1fr;
    gap: var(--lost-space-3);
  }
  .lost-booking--home .booking_wrap_times > .booking {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
  }
  body.lost-home-page .lost-booking--home .str,
  body.lost-home-page .lost-booking--home .lost-booking__row {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: var(--lost-space-3);
    row-gap: var(--lost-space-2);
    align-items: start;
    padding: 8px 0;
    margin: 0 !important;
  }
  body.lost-home-page .lost-booking--home .id_rooms,
  body.lost-home-page .lost-booking--home .id_rooms a {
    display: contents;
    position: static;
  }
  body.lost-home-page .lost-booking--home .home_form .boo {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 52px;
    height: 52px;
  }
  body.lost-home-page .lost-booking--home .boo_name {
    grid-column: 2;
    grid-row: 1;
    font-size: var(--lost-fs-small);
    font-weight: var(--lost-fw-semibold);
    display: block;
    white-space: nowrap;
    -webkit-line-clamp: unset;
  }
  body.lost-home-page .lost-booking--home .times_row {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
  }
}

/* Сертификаты */
.lost-certificates { background: none; }
.lost-certificates__title { margin: 0 0 32px; font-size: var(--lost-fs-h2); font-weight: var(--lost-fw-semibold); color: var(--lost-text-primary); }
.lost-certificates__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .lost-certificates__grid { grid-template-columns: repeat(2, 1fr); } }

/* Карта + контакты */
.lost-contacts-map__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.lost-contacts-map__map {
  min-height: 360px;
  border-radius: var(--lost-radius-lg);
  overflow: hidden;
  background: #1a1a1a;
}
.lost-yandex-map { width: 100%; height: 100%; min-height: 360px; }
.lost-contacts-map__panel {
  display: flex;
  flex-direction: column;
  background: var(--lost-bg-card);
  border-radius: var(--lost-radius-xl);
  padding: 32px;
}
.lost-contacts-map__panel-title {
  margin: 0 0 16px;
  font-size: var(--lost-fs-body);
  font-weight: var(--lost-fw-semibold);
  color: var(--lost-text-primary);
}
.lost-contacts-map__rating {
  display: flex;
  align-items: center;
  margin: 0 0 18px;
}
.lost-contacts-map__rating .ya-review {
  display: block;
  width: 150px;
  height: 50px;
  max-width: 100%;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}
.lost-contacts-map__social { list-style: none; margin: 0 0 24px; padding: 0; }
.lost-contacts-map__social li { margin-bottom: 12px; }
.lost-contacts-map__social li:last-child { margin-bottom: 0; }
.lost-contacts-map__social a {
  display: block;
  color: var(--lost-text-primary);
  text-decoration: none;
  font-size: var(--lost-fs-body);
  line-height: 1.4;
}
.lost-contacts-map__social a:hover { color: var(--lost-text-secondary); }
.lost-contacts-map__divider { height: 1px; background: var(--lost-divider); margin: 24px 0; }
.lost-contacts-map__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: var(--lost-fs-body);
  line-height: 1.45;
}
.lost-contacts-map__row:last-of-type { margin-bottom: 0; }
.lost-contacts-map__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--lost-accent-red);
}
.lost-contacts-map__link {
  color: var(--lost-text-primary);
  text-decoration: none;
}
.lost-contacts-map__link:hover { color: var(--lost-text-secondary); }
.lost-contacts-map__text { color: var(--lost-text-primary); }
.lost-contacts-map__actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 24px; }
@media (min-width: 1024px) {
  .lost-contacts-map__grid { grid-template-columns: 1.62fr 1fr; align-items: stretch; }
  .lost-contacts-map__map,
  .lost-yandex-map { min-height: 400px; }
  .lost-contacts-map__panel { min-height: 400px; }
}

/* Footer — держим в потоке документа (перекрываем legacy `@media(min-width:1200px){footer{position:fixed;bottom:0}}`
   из template_styles.css, из-за которого подвал «приклеивался» к экрану и перекрывал контент).
   Селектор `footer:has(.lost-footer)` НЕ зависит от JS-класса body.lost-home-page —
   срабатывает только на главной (где отрисован .lost-footer), поведение других страниц не меняется.
   Класс-версии оставлены как fallback для браузеров без :has().
   После снятия position:fixed подвал ложится в штатный flex sticky-footer шаблона
   (body{display:flex;flex-direction:column}, .main-content{flex:1 0 auto}, footer{flex:0 0 auto}). */
footer:has(.lost-footer),
body.lost-home-page footer,
body.lost-home-page .site-footer,
.lost-footer {
  position: static !important;
  inset: auto !important;
  bottom: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  z-index: auto !important;
}

.lost-footer {
  font-family: var(--lost-font-family);
  background: var(--lost-bg-footer);
  border-top: 1px solid var(--lost-border-subtle);
  padding: var(--lost-space-12) 0 var(--lost-space-8);
  margin-top: var(--lost-space-section);
}

.lost-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lost-space-8) var(--lost-space-6);
}

.lost-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.lost-footer__col-title {
  margin: 0 0 var(--lost-space-4);
  font-size: var(--lost-fs-body);
  font-weight: var(--lost-fw-semibold);
  color: var(--lost-text-primary);
  line-height: 1.3;
}

.lost-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lost-footer__links li { margin-bottom: var(--lost-space-3); }
.lost-footer__links li:last-child { margin-bottom: 0; }

.lost-footer__links a {
  color: var(--lost-text-secondary);
  font-size: var(--lost-fs-body);
  line-height: 1.45;
  text-decoration: none;
  transition: color var(--lost-transition);
}

.lost-footer__links a:hover { color: var(--lost-text-primary); }

.lost-footer__meta {
  margin: var(--lost-space-6) 0 0;
  font-size: var(--lost-fs-small);
  line-height: 1.4;
  color: var(--lost-text-muted);
}

.lost-footer__contact-line {
  display: flex;
  align-items: flex-start;
  gap: var(--lost-space-3);
  margin-bottom: var(--lost-space-4);
  font-size: var(--lost-fs-body);
  line-height: 1.45;
}

.lost-footer__contact-line:last-of-type { margin-bottom: 0; }

.lost-footer__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--lost-accent-red);
}

.lost-footer__contact-link {
  color: var(--lost-text-primary);
  text-decoration: none;
  transition: color var(--lost-transition);
}

.lost-footer__contact-link:hover { color: var(--lost-text-secondary); }

.lost-footer__contact-text { color: var(--lost-text-primary); }

.lost-footer__rating {
  margin: var(--lost-space-5) 0 var(--lost-space-4);
}

.lost-footer__rating .ya-review,
.lost-footer__rating .ya-review--footer {
  display: block;
  width: 150px;
  height: 50px;
  max-width: 100%;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}

.lost-footer__socials {
  display: flex;
  align-items: center;
  gap: var(--lost-space-4);
  margin-top: var(--lost-space-6);
}

.lost-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--lost-text-secondary);
  text-decoration: none;
  transition: color var(--lost-transition);
}

.lost-footer__social:hover { color: var(--lost-text-primary); }

.lost-footer__social svg { width: 22px; height: 22px; }

.lost-footer__social img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--lost-transition);
}

.lost-footer__social:hover img { opacity: 1; }

/* PNG Max с большим полем вокруг глифа — масштабируем до визуального веса VK/TG. */
.lost-footer__social--max {
  overflow: hidden;
}

.lost-footer__social--max img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transform: scale(1.65);
}

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

@media (min-width: 1280px) {
  .lost-footer__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--lost-space-6);
    align-items: stretch;
  }

  .lost-footer__col--contacts .lost-footer__socials {
    margin-top: auto;
    padding-top: var(--lost-space-6);
  }

  .lost-footer__col:not(.lost-footer__col--contacts) .lost-footer__meta {
    margin-top: auto;
    padding-top: var(--lost-space-8);
  }
}

/* --------------------------------------------------------------------------
   Home polish pass: closer to supplied mockups.
   -------------------------------------------------------------------------- */

.lost-hero__inner {
  min-height: clamp(360px, 36vw, 470px);
}
.lost-hero__inner:not(:has(.lost-hero__bg)) {
  background-position: center;
  background-size: cover;
}
.lost-hero__content {
  max-width: min(560px, 58%);
}
.lost-hero__title {
  max-width: 620px;
  font-size: clamp(38px, 4.5vw, 58px);
  letter-spacing: -0.05em;
}
.lost-hero__text {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
}
@media (min-width: 768px) {
  .lost-hero__media {
    align-items: stretch;
  }
  .lost-hero__inner--move-right .lost-hero__img {
    object-fit: cover;
    object-position: right center;
  }
}

.lost-section.lost-reviews {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 68%, rgba(209, 43, 60, 0.28), transparent 42%),
    linear-gradient(180deg, #0e0911 0%, #150d1a 48%, var(--lost-bg-page) 100%);
}
.lost-section.lost-reviews::after {
  content: none;
}

/* Плавный стык отзывы → сертификаты без «полки» */
.lost-section.lost-certificates {
  background: transparent;
  padding-top: clamp(28px, 4vw, 48px);
}
.lost-section.lost-reviews + .lost-section.lost-certificates,
.lost-section.lost-reviews + .lost-certificates {
  margin-top: -12px;
}
.lost-section.lost-reviews .lost-container {
  position: relative;
  z-index: 1;
  max-width: var(--lost-container-max);
}
.lost-reviews__head {
  margin-left: clamp(0px, 11vw, 150px);
  margin-bottom: 34px;
}
.lost-reviews__title,
.lost-certificates__title {
  letter-spacing: -0.04em;
}
.lost-reviews__grid {
  column-gap: 18px;
}
.lost-reviews__grid .lost-review-card {
  margin-bottom: 18px;
}
.lost-review-card {
  background: rgba(35, 25, 41, 0.88);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
}
.lost-review-card__text {
  -webkit-line-clamp: 7;
}

.lost-certificates {
  background: transparent;
}
.lost-certificates__grid {
  gap: 18px;
}
.lost-cert-card {
  grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.1fr);
  min-height: 220px;
  background: linear-gradient(110deg, rgba(24, 15, 29, 0.95) 0%, rgba(39, 23, 30, 0.98) 46%, rgba(92, 18, 18, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
.lost-cert-card__image {
  padding: 0;
  background: rgba(0, 0, 0, 0.12);
}
.lost-cert-card__image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 0;
}
.lost-cert-card__body {
  justify-content: center;
  padding: clamp(24px, 3vw, 34px);
}
.lost-cert-card__title {
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.04em;
}
.lost-cert-card__subtitle {
  max-width: 340px;
}
.lost-cert-card__order {
  min-width: 190px;
  border-radius: 10px;
}

.lost-contacts-map .lost-container {
  max-width: 1120px;
}
.lost-contacts-map__grid {
  gap: 18px;
}
.lost-contacts-map__map,
.lost-yandex-map {
  min-height: 470px;
  border-radius: 18px;
}
.lost-contacts-map__panel {
  padding: 34px 28px;
  background: linear-gradient(180deg, rgba(34, 24, 40, 0.98), rgba(28, 19, 33, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
.lost-contacts-map__panel-title {
  margin-bottom: 22px;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.lost-contacts-map__social {
  display: grid;
  gap: 15px;
  margin-bottom: 28px;
}
.lost-contacts-map__social li {
  margin: 0;
}
.lost-contacts-map__social a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.86);
}
.lost-contacts-map__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #fff;
}
.lost-contacts-map__social-icon--max {
  border-radius: 50%;
  background: #fff;
  color: #1c1421;
  font-size: 14px;
  font-weight: 800;
}
.lost-contacts-map__row {
  gap: 16px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
}
.lost-contacts-map__icon {
  color: #fff;
}
.lost-contacts-map__link,
.lost-contacts-map__text {
  color: rgba(255, 255, 255, 0.82);
}
.lost-contacts-map__actions {
  padding-top: 26px;
}
.lost-contacts-map .lost-btn--red-dark {
  min-height: 48px;
  border-radius: 10px;
  background: var(--lost-accent-primary-grad, linear-gradient(180deg, #e23a4b 0%, #d12b3c 100%));
  border: 0;
  box-shadow: 0 10px 28px rgba(209, 43, 60, 0.28);
}

.lost-contacts-map .lost-btn--red-dark:hover {
  background: var(--lost-accent-red-hover, #e23a4b);
  filter: brightness(1.05);
}

@media (min-width: 1024px) {
  .lost-contacts-map__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  }
  .lost-contacts-map__panel {
    min-height: 470px;
  }
}

@media (max-width: 767px) {
  .lost-hero__content {
    max-width: none;
  }

  .lost-hero__inner {
    min-height: 0;
  }

  .lost-hero__title {
    font-size: clamp(22px, 6.4vw, 30px);
    letter-spacing: -0.03em;
  }

  .lost-cert-card {
    grid-template-columns: 1fr;
  }
}

/* Final home layout corrections after visual QA. */
.lost-reviews .lost-container,
.lost-contacts-map .lost-container {
  max-width: var(--lost-container-max);
}
.lost-reviews__head {
  margin-left: 0;
}
.lost-reviews__grid {
  column-gap: 24px;
}

.lost-certificates {
  background: transparent;
}
.lost-cert-card {
  background: linear-gradient(110deg, rgba(26, 18, 31, 0.98) 0%, rgba(36, 24, 42, 0.98) 100%);
}
.lost-cert-card__body {
  background: linear-gradient(135deg, rgba(36, 24, 42, 0.96), rgba(31, 20, 36, 0.98));
}

.lost-contacts-map__grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 24px;
}
.lost-contacts-map__map,
.lost-yandex-map {
  min-height: 430px;
}
.lost-contacts-map__panel {
  min-height: 430px;
}

.lost-booking--home {
  background:
    linear-gradient(180deg, rgba(14, 9, 17, 0) 0%, rgba(26, 17, 31, 0.36) 100%),
    #0e0911;
}
.lost-booking--home .booking_table_card {
  display: block;
}
.lost-booking--home .lost-booking__header {
  margin-bottom: 22px;
}
.lost-booking--home .booking_wrap_times {
  display: block;
}
.lost-booking--home .booking_wrap_times > .booking {
  display: flex;
  justify-content: center;
  margin: 0 0 28px;
}
.lost-booking--home .booking .date_carousel {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lost-booking--home .booking .more_date {
  cursor: pointer;
}
.lost-booking--home .str {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lost-booking--home .id_rooms,
.lost-booking__quest {
  width: 190px;
  min-width: 190px;
  max-width: 190px;
}
.lost-booking--home .id_rooms a {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.lost-booking--home .home_form .boo {
  height: 58px;
  border-radius: 12px;
}
.lost-booking--home .boo_name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (max-width: 1023px) {
  .lost-contacts-map__grid {
    grid-template-columns: 1fr;
  }
  .lost-booking--home .booking_wrap_times > .booking {
    margin: 0 0 20px;
    justify-content: flex-start;
  }
}

/* Осветление секции «Бронирование» на главной (важно: фон из токена страницы) */
body.lost-home-page .lost-section.lost-booking--home {
  background: var(--lost-bg-page) !important;
}
