/* Klever — кнопки «Написать в MAX» (2026-10-30) */
.klever-max {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(120deg, #4f8cff 0%, #6a5cff 55%, #8f3fff 100%);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(79, 110, 255, 0.22);
  transition: transform 0.22s, box-shadow 0.22s, filter 0.22s;
}
.klever-max:hover,
.klever-max:focus-visible {
  color: #ffffff !important;
  text-decoration: none !important;
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 10px 19px rgba(79, 110, 255, 0.3);
  outline: none;
}
.klever-max:focus-visible {
  outline: 2px solid #8f3fff;
  outline-offset: 2px;
}
.klever-max__icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #ffffff;
  pointer-events: none;
}
.klever-max__text {
  display: inline;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Шапка сайта */
.klever-max--header {
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13px;
}
@media (max-width: 991.98px) {
  .klever-max--header {
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 6px 12px rgba(79, 110, 255, 0.25);
  }
  .klever-max--header .klever-max__text {
    display: none;
  }
  .klever-max--header .klever-max__icon {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 374px) {
  .klever-max--header {
    flex-basis: 30px;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
  }
}

/* Выпадающий список гостиниц (общие страницы) */
.klever-max-menu {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}
.klever-max-menu__list {
  position: fixed;
  top: 0;
  right: 12px;
  z-index: 2147483000;
  display: none;
  box-sizing: border-box;
  min-width: 264px;
  max-width: calc(100vw - 24px);
  padding: 6px;
  border: 1px solid #e7ddd1;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(40, 30, 10, 0.18);
  text-align: left;
}
.klever-max-menu__list.is-open {
  display: block;
}
.klever-max-menu__title {
  display: block;
  padding: 8px 10px 4px;
  color: #8a8077;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.klever-max-menu__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #26231f !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
  white-space: normal;
  text-align: left;
}
.klever-max-menu__item:hover,
.klever-max-menu__item:focus-visible {
  background: #f3f1ff;
  color: #26231f !important;
  outline: none;
}
.klever-max-menu__hint {
  color: #5a5cff;
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 767.98px) {
  .klever-max-menu__list {
    right: 12px !important;
    left: 12px !important;
    min-width: 0;
    max-width: none;
    padding: 10px;
    border-radius: 16px;
  }
  .klever-max-menu__item {
    padding: 12px;
    font-size: 15px;
  }
}

/* Герой страницы гостиницы */
html body #klever-hotel-hero .klever-max--hero {
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 11px;
  font-size: 15px;
}
@media (max-width: 600px) {
  html body #klever-hotel-hero .klever-max--hero {
    width: 100%;
  }
}

/* Кнопка внутри тёмного CTA-блока (наследует классы кнопок страницы) */
html body .klever-max--cta,
html body .klever-max--cta:hover,
html body .klever-max--cta:focus {
  border-color: transparent !important;
  background: linear-gradient(120deg, #4f8cff 0%, #6a5cff 55%, #8f3fff 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html body .klever-max--cta .klever-max__icon {
  margin-right: 2px;
}

/* Кнопка в блоке конференц-зала */
html body .klever-max--conf,
html body .klever-max--conf:hover,
html body .klever-max--conf:focus {
  border-color: transparent !important;
  background: linear-gradient(120deg, #4f8cff 0%, #6a5cff 55%, #8f3fff 100%) !important;
  color: #ffffff !important;
}
html body .klever-max--conf span,
html body .klever-max--conf strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html body .klever-max--conf .klever-max__icon {
  display: inline-block !important;
  margin-right: 5px;
  vertical-align: -4px;
}

/* Компактная таблетка (списки телефонов, контакты) */
.klever-max--pill {
  min-height: 36px;
  margin-top: 4px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
}
.klever-max--pill .klever-max__icon {
  width: 16px;
  height: 16px;
}

/* Маленькая строчная кнопка рядом с телефоном */
.klever-max--mini {
  min-height: 30px;
  margin: 4px 0 4px 10px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  vertical-align: middle;
  box-shadow: 0 4px 10px rgba(79, 110, 255, 0.2);
}
.klever-max--mini .klever-max__icon {
  width: 15px;
  height: 15px;
}
.klever-simple-phone-list .klever-max--pill {
  align-self: flex-start;
}
/* Общий подвал: кнопка стоит отдельной строкой под строкой «гостиница + телефон» */
html body .klever-header-simple-phone-list > .klever-max--mini {
  flex: 0 0 auto !important;
  align-self: flex-start !important;
  min-height: 32px;
  margin: -6px 0 2px !important;
}
.klever-max--block {
  display: inline-flex;
  margin: 6px 0 10px;
}
/* Карточки номеров: кнопка занимает отдельную строку под «Подробнее / Уточнить наличие» */
html body .klever-room-card-v2__actions {
  flex-wrap: wrap !important;
}
html body .klever-room-card-v2__actions .klever-max--mini {
  flex: 1 1 100% !important;
  width: 100%;
  min-height: 38px;
  margin: 0 !important;
  border-radius: 10px;
  font-size: 13px;
}
