#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white; /* можно заменить на цвет сайта */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top: 5px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ---------------------- */
/* Базовые настройки */
/* ---------------------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #222;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------------------- */
/* Контейнеры */
/* ---------------------- */

.header__container,
.about__container,
.rooms__container,
.contacts__container,
.footer__container, .about__text__container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------------------- */
/* Шапка */
/* ---------------------- */

.header {
  background-color: #262626;
  border-bottom: 1px solid #ddd;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.header__logo, .footer__logo {
  font-size: 40px;
  font-family: 'Pattaya', sans-serif;
  line-height: 1;
  color: #ff6600;
}

.nav__list {
  display: flex;
  gap: 20px;
}

.nav__link {
  font-weight: 500;
  color: #ffffff;
  transition: color 0.3s;
}

.nav__link:hover {
  color: #ff6600;
}
.nav__text{
  font-weight: 500;
  color: #ffffff;
  transition: color 0.3s;
}

/* ---------------------- */
/* О гостинице */
/* ---------------------- */
.about__container{
  display: flex;
  flex-wrap:wrap;
  padding:1% 0;
}
.about__block{
  max-width: 600px;
  max-height: 400px;
}

.about__text__title{
  text-align: center;
}

.about__block--text{
padding: 3%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.about__img{
  width: 100%;
}

.about__title{
  padding: 4% 0;
  text-align: center;
  color: #222;
}

.rooms__title{
  font-size: 32px;
  font-weight: 700;
  padding: 4% 0;
  text-align: center;
  color: #222;
}


.about__gallery {
  width: 85%;
  height: 600px;
}

.about__gallery img {
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.about {
    background-color: #f7f7f7;
  }
  
.about__content {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 10px;
  }
  
  .about__text {
    margin: 0;
  }
  
  .about__address {
    display: inline-block;
    font-style: normal;
    color: #333;
  }
  .about__address__link{
    color: #333;
    text-decoration: none;
  }
  .about__list {
    list-style: disc inside;
    padding-left: 0;
    margin: 0;
  }
  
  .about__item {
    margin-bottom: 10px;
    font-size: 16px;
    color: #444;
  }
  .about_text{
    background-color: #fbfbfb;
  }
  .about__text__container{
  }

/* ---------------------- */
/* Номера */
/* ---------------------- */
.rooms__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 4%;
  }

.room {
    flex: 1 1 calc(50% - 15px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 585px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.room__gallery {
  width: 100%;
  max-width: 600px;
  height: 400px;
}

.room__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
}

.room__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.room__name {
  font-size: 22px;
  font-weight: 600;
}

.room__description {
  font-size: 15px;
}

.room__features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: #555;
}

.room__features i {
  margin-right: 5px;
  color: #ff6600;
}

.room__price {
  font-weight: 600;
  color: #333;
}

.room__button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  background-color: #ff6600;
  color: white;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.room__button:hover {
  background-color: #e25400;
}
.room .swiper-button-prev,
.room .swiper-button-next{
  color: #fff;
}

.room .swiper-button-prev:hover,
.room .swiper-button-next:hover{
  color: #ff6600;
}

/* ---------------------- */
/* Контакты */
/* ---------------------- */


.contacts__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
  text-align: center;
  color: #fff;
}


.contacts__address,
.contacts__phone,
.contacts__email {
  margin-bottom: 10px;
  font-size: 16px;
}

.contacts__whatsapp {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background-color: #25D366;
  color: white;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.contacts__whatsapp:hover {
  background-color: #1eb450;
}
.contacts{
  height: 600px;
}

/* ---------------------- */
/* Подвал */
/* ---------------------- */

.footer {
  background-color: #262626;
  border-top: 1px solid #ddd;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #fff;
}
.footer__container{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__text{
  font-size: 18px;
}

/* ---------------------- */
/* Адаптивность */
/* ---------------------- */

@media (max-width: 768px) {
  .header__container {
    flex-direction: column;
    align-items: center;
  }

  .nav__list {
    flex-direction: column;
    gap: 5px;
    text-align: center;
    font-size: 20px;
  }
  .header__logo{
    font-size: 50px;
  }
  .about__block{
    max-height: 600px;
    margin-bottom: 15px;
  }
  .about__gallery img{
    width: 100%;
  }

  .about__block--none{
    display: none;
  }
  .about__title {
    font-size: 26px;
  }

  .about__content {
    font-size: 16px;
    gap:5px;
  }

  .about__block--text{
    padding: 0;
  }

  .about__item {
    font-size: 16px;
  }
  .about__gallery{
    width: 100%;
  }

  .room {
    flex-direction: column;
    flex-basis: 100%;
    width: 100%;
  }

  .room__gallery,
  .about__gallery {
    height: 250px;
  }
  
  .footer__container{
    flex-direction: column;
    gap: 10px;
  }

  .contacts__title{
    display: none;
  }
  .nav__text{
    display: none;
  }
  .contacts{
  height: 400px;
}
}


/* ---------------------- */
/* Lightbox (увеличение фото) */
/* ---------------------- */

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
  }
  
  .lightbox.active {
    display: flex;
  }
  
  .lightbox__content {
    position: relative;
    width: 1200px;
    display: flex;
    justify-content: center;
  }
  
  .lightbox__image {
    width: 1200px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
  }
  
  .lightbox__close {
    position: absolute;
    right: 0;
    font-size: 50px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin: 10px 15px;
  }
  
  .lightbox__nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
  }
  
  .lightbox__prev,
  .lightbox__next {
    background: none;
    border: none;
    color: white;
    font-size: 45px;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
  }
  
  .lightbox__prev:hover,
  .lightbox__next:hover,
  .lightbox__close:hover {
    color: #ff6600;
  }
  
  .swiper-button-next, .swiper-button-prev{
    color: #ff6600;
  }

  .swiper-slide {
  display: flex;
  justify-content: center;
  }
  :root {
    --swiper-navigation-size: 50px;
}
.swiper-slide-active>img{
  cursor: pointer;
}

  @media (max-width: 768px) {
    .lightbox__close {
      top: -40px;
      font-size: 28px;
    }
  
    .lightbox__prev,
    .lightbox__next {
      font-size: 32px;
    }
    .lightbox__image{
      width: 100%;
    }
    .swiper-button-next, .swiper-button-prev{
      color: #fff;
    }
  }
  