/* styles.css */
:root {
  --primary: #D32F2F;
  --dark: #1A1A1A;
  --light: #F5F5F5;
  --white: #FFFFFF;
  --gray: #2c3e50;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--gray);
  line-height: 1.5;
  background: var(--white);
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка (полупрозрачная) */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85); /* Полупрозрачность */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--primary);
}

/* Dropdown меню */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: '▼';
  margin-left: 5px;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  visibility: hidden;
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  list-style: none;
  min-width: 150px;
  border-radius: 5px;
  padding: 10px 0;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  display: block;
  visibility: visible;
}

.dropdown-menu li {
  padding: 8px 15px;
}

.dropdown-menu a {
  display: block;
  color: var(--dark);
}

.dropdown-menu a:hover {
  background: var(--light);
  color: var(--primary);
}

.burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .nav.open {
    display: block;
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  .nav.open ul {
    flex-direction: column;
    gap: 15px;
  }
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
  }
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Hero-баннер с видео */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Затемнение для читаемости текста */
  z-index: 2;
}

.hero .container {
  text-align: center;
  max-width: 700px;
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 5px;
  border-width: 0px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--dark);
}

/* Номера */
.rooms {
  padding: 60px 0;
  background: var(--light);
  margin-top: 24px;
}

.rooms h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.rooms .container p {
  font-size: 20px;
}

.room-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.room-card-body {
  display: flex;
  flex-direction: row;
  flex: 1;
}

.room-card-desc {
  display: flex;
  flex-direction: column;
}

.room-card .carousel img {
  width: 100%;
}

.room-card h3 {
  padding: 15px 20px 10px;
  font-size: 1.3rem;
}

.room-features {
  list-style: none;
  padding: 0 20px 20px;
  flex: 1;
}

.room-features li {
  padding: 5px 0;
  font-size: 0.95rem;
}

.room-card .btn {
  margin: 0 20px 20px;
  text-align: center;
  border-width: 0px;
}

.image-grid {
    display: grid;
    /* 3 колонки по умолчанию */
    grid-template-columns: repeat(3, 1fr);
    gap: 16px; /* Расстояние между изображениями */
    padding: 20px;
    flex: 1;
}

.image-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-item img {
    max-width: 100%;
    max-height: 150px; /* Макс. высота изображения */
    width: auto;
    height: auto;
    object-fit: contain; /* Сохраняет пропорции */
}

/* Для средних экранов (2 колонки) */
@media (max-width: 900px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Для мобильных (1 колонка) */
@media (max-width: 350px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* Спецпредложения */
.offers {
  padding: 60px 0;
}

.offers h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.offer-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.offer {
  background: var(--primary);
  color: var(--white);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
}

.offer h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

/* SPA */
.spa {
  background: url('./upload/img/pool.jpeg') center/cover no-repeat fixed;
  color: var(--white);
  text-align: center;
  padding: 120px 20px;
}

.spa .container {
  border-radius: 24px;
  border: 2px rgba(0, 0, 0, 0.1);
  background-color: rgba(0, 0, 0, 0.3);
}

.spa h2 {
  margin-bottom: 15px;
  font-size: 2rem;
}

.spa p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* FAQ */
.faq {
  padding: 60px 0;
  background: var(--light);
}

.faq h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto;
}

.faq-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.faq-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    margin-right: 24px;
    margin-left: 24px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 50px 20px 20px;
    text-align: left;
    background: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) rotate(0deg);
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    transition: transform 0.3s;
}

.faq-item.active .faq-question:after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: #f8fafc;
}

.faq-answer-content {
    padding: 0 20px 20px;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Максимально возможная высота ответа */
}

/* Подвал */
footer {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 30px 20px;
}

footer address {
  margin-bottom: 10px;
  font-style: normal;
}

footer .footer-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

footer .footer-social ul {
  display: inline-block;
}

footer .footer-social li {
  float: left;
  list-style-type: none;
}


footer .footer-booking li {
  list-style-type: none;
  margin-bottom: 4px;
}

footer .mail-btn {
  background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

.carousel-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 24px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding: 0 50px;
}

.carousel-container .carousel {
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

.carousel-container .carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding: 10px 0;
    cursor: grab;
}

.carousel-container .carousel:active .carousel-track {
    cursor: grabbing;
}

/* Удалено фиксированное количество элементов */
.carousel-container .carousel-item {
    padding: 15px;
    transition: transform 0.3s ease;
    /* Ширина будет устанавливаться через JS */
}

.item-content {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.item-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.item-image img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.item-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d1d1d1;
    margin-bottom: 15px;
    flex-grow: 1;
}

.item-rating {
    display: flex;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}

.item-rating i {
    color: rgba(255, 193, 7, 0.6);
    margin-right: 3px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0,0, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -10px;
}

.next-btn {
    right: -10px;
}

@media (min-width: 780px) {
    .item-content:hover .item-image img {
        transform: scale(1.1);
    }

    .item-content:hover {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
        transform: scale(1.02);
    }

    .item-content {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .carousel-container .carousel-item:hover {
        transform: translateY(-10px);
    }

}

@media (max-width: 992px) {
    /* Удалены медиа-запросы для .carousel-item */
    .header h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 780px) {
    /* Удалены медиа-запросы для .carousel-item */
    .carousel-container {
        padding: 0 30px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 1rem;
    }
}

@media (min-width: 500px) and (max-width: 780px) {
    .carousel-container .carousel {
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }
}

.contacts-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 24px auto;
}

.section-header {
    text-align: center;
}

.section-header h1 {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.map-container {
    height: 450px;
    margin-bottom: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

#map {
    width: 100%;
    height: 100%;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgb(211, 47, 47);
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.contact-card p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    text-decoration: none;
    display: block;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.telegram { background: #0088cc; }
.whatsapp { background: #25D366; }
.instagram { background: radial-gradient(circle farthest-corner at 35% 90%, #fec564, transparent 50%),
              radial-gradient(circle farthest-corner at 0 140%, #fec564, transparent 50%),
              radial-gradient(ellipse farthest-corner at 0 -25%, #5258cf, transparent 50%),
              radial-gradient(ellipse farthest-corner at 20% -50%, #5258cf, transparent 50%),
              radial-gradient(ellipse farthest-corner at 100% 0, #893dc2, transparent 50%),
              radial-gradient(ellipse farthest-corner at 60% -20%, #893dc2, transparent 50%),
              radial-gradient(ellipse farthest-corner at 100% 100%, #d9317a, transparent),
              linear-gradient(#6559ca, #bc318f 30%, #e33f5f 50%, #f77638 70%, #fec66d 100%); }
.email { background: #EA4335; }

.footer-social .social-icon {
  margin: 8px;
  text-decoration: none;
}

@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }

    .section-header h1 {
        font-size: 2.2rem;
    }

    .contact-card {
        padding: 25px;
    }
}

.container .carousel {
    position: relative;
    overflow: hidden;
}
.container .carousel-images {
    display: flex;
    transition: transform 0.3s ease-in-out;
}
.container .carousel-images img {
    flex-shrink: 0;
}
.container .carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-card:hover .carousel button {
    opacity: 1;
}

.room-card .carousel button:hover {
    background: rgba(0,0,0,0.9);
}

.carousel:hover button {
    opacity: 1;
}

.container .carousel button:hover {
    background: rgba(0,0,0,0.9);
}

.container .carousel .prev { left: 5px; }
.container .carousel .next { right: 5px; }

.room-full-desc .carousel {
  margin-bottom: 48px;
}

.room-full-desc .room-desc p {
  width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.room-full-desc .carousel button {
  width: 64px;
  height: 64px;
}

.room-full-desc .carousel img {
  width: 100%;
}

.room-full-desc .carousel {
  width: 85%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px;
}

.equipment-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 48px;
  border-width: 0.12em;
  border-color: var(--gray);
  border-style: solid;
  padding: 16px 32px 16px 32px;
}

.equipment-full-grid h2 {
  font-size: 24px;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.equipment-full-grid p {
  margin-bottom: 12px;
}

























