html {
  scroll-behavior: smooth;
}

a {
  color: #0073b1;
}

a[data-tab] {
  color: #656565;
}

.card__link {
  cursor: pointer;
}

.company__title {
  text-align: center;
  width: 100%;
  min-width: 300px;
  padding: 0 12px;
  margin-bottom: 36px;
}

.card__img-link {
  height: 100%;
  width: 100%;
}

.gallery-block {
  margin-top: 40px;
}

.gallery__item {
  overflow: hidden;
}

.indications__slider-list {
  list-style: none;
}

.submenu__link--main {
  display: block;
}

@media (min-width: 1320px) {
  .submenu__link--main {
    display: none;
  }
}

.icon-text__icon--smart_tv,
.icon-text__icon--tv {
  background-image: url('../img/sprite/icon-tv.svg');
}

.icon-text__icon--wifi {
  background-image: url('../img/sprite/icon-wifi.svg');
}

.icon-text__icon--tel {
  background-image: url('../img/sprite/icon-phone-grey.svg');
}

.icon-text__icon--lamp {
  background-image: url('../img/sprite/icon-lamp.svg');
}

.icon-text__icon--hairdryer {
  background-image: url('../img/sprite/icon-dryer.svg');
}

.icon-text__icon--water_cooler {
  background-image: url('../img/sprite/icon-cooler.svg');
}

.icon-text__icon--teapot {
  background-image: url('../img/sprite/icon-teapot.svg');
}

.icon-text__icon--microwave {
  background-image: url('../img/sprite/icon-oven.svg');
}

.icon-text__icon--bath {
  background-image: url('../img/sprite/icon-bath.svg');
}

.icon-text__icon--toilet {
  background-image: url('../img/sprite/icon-toilet.svg');
}

.icon-text__icon--fridge {
  background-image: url('../img/sprite/icon-fridge.svg');
}

.icon-text__icon--kingsize_bed {
  background-image: url('../img/sprite/icon-2person-bed.svg');
}

.icon-text__icon--single_bed {
  background-image: url('../img/sprite/icon-bed.svg');
}

.icon-text__icon--mattrass {
  background-image: url('../img/sprite/icon-matress.svg');
}

.icon-text__icon--two_beds {
  background-image: url('../img/sprite/icon-beds.svg');
}

.icon-text__icon--mirror {
  background-image: url('../img/sprite/icon-mirror.svg');
}

.icon-text__icon--chairs {
  background-image: url('../img/sprite/icon-chair.svg');
}

.icon-text__icon--bedside_table {
  background-image: url('../img/sprite/icon-cabinets.svg');
}

.icon-text__icon--wardrobe {
  background-image: url('../img/sprite/icon-wardrobe.svg');
}

.icon-text__icon--coffee_table {
  background-image: url('../img/sprite/icon-coffee-table.svg');
}

.icon-text__icon--hangers {
  background-image: url('../img/sprite/icon-hanger.svg');
}

.icon-text__icon--carpet {
  background-image: url('../img/sprite/icon-carpet.svg');
}

.icon-text__icon--no_smoking {
  background-image: url('../img/sprite/icon-smoke.svg');
}

.icon-text__icon--dishes {
  background-image: url('../img/sprite/icon-crockery.svg');
}

.account-text-center {
  text-align: center;
  margin: auto;
  font-size: 20px;
  padding: 20px;
}

.text-content a {
  color: #0073b1;
}

.date-create {
  margin-top: auto;
}

.reviews_btn {
  display: block;
  margin: 24px auto 0;
  border: none;
  outline: none;
}

.top-banner_wrapper {
  background-color: #f6f6f6;
  border-radius: 0 0 32px 32px;
}

.gallery__list {
  display: grid;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(300px, 385px));
  gap: 16px;
  justify-content: center;
}

.gallery__item {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.gallery__item::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.gallery__item img,
.gallery__item .gallery__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1279px) {
  .top-banner_filter {
    padding-top: 40px;
    padding-bottom: 32px;
  }
}

@media (min-width: 1280px) {
  .top-banner_filter {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-height: 150px;
  }

  .top-banner_wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 121px);
  }

  .swiper-container {
    display: flex;
    flex-shrink: 1;
    flex-grow: 1;
  }
}

.reviews-section__item {
  animation: fade 0.5s ease-in-out;
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.question-popup,
.booking-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fade 0.5s ease-in-out;
  /* overflow-y: auto; */
}

.question-popup.hidden,
.booking-popup.hidden {
  display: none;
}

.question-popup__content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  position: relative;
  min-height: 66px;

  /* overflow: hidden; */
}

.booking-popup__content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  position: relative;
  min-height: 66px;

  /* max-height: 70%;
  overflow: hidden; */
  /* width: 90%;
  max-height: 70%;
  display: flex;
  flex-direction: column; */
  /* overflow: hidden; */
  /* position: relative; */
}

/* .booking-popup form {
  position: relative;
  overflow: hidden;
} */

/* .booking-popup .form-grid {
  overflow-y: auto;
} */


.booking-popup__body {
  padding: 20px;
  overflow: hidden; /* Запрещаем скролл для всего тела попапа */
  flex-grow: 1; /* Даем возможность телу занимать все доступное пространство */
  display: flex;
  flex-direction: column;

}

.form-grid {
  max-height: calc(80vh - 120px);
  box-sizing: border-box; 
  overflow: auto;
  padding-right: 15px;
}

.question-popup__close,
.booking-popup__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  background-color: #ededed;
  background-image: url('/local/templates/main/assets/img/svg/icon-close.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.reviews__more {
  color: #0073b1;
}

.politics {
  padding: 40px 40px 80px;
}

.politics__title {
  margin: 0 0 24px;
  padding: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
}

.footer__politics-link {
  color: #ffffff;
  text-decoration: underline;
}

.footer {
  position: relative;
}

.footer__developer {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 500;
}

.footer__developer-link {
  color: #ffffff;
  transition: color 0.5s ease;
  font-weight: 700;
}

.footer__developer-link:hover { 
  color: #5556d5;
}

@media (max-width: 767px) {
  .politics__title {
    font-size: 20px;
    line-height: 28px;
  }
}
