/* Переменные для цветов и базовых значений */
:root {
  --primary-color: #d6ad75;
  --accent-color: #b8803d;
  --dark-color: #1e1e24;
  --light-bg: #f9f7f3;
  --header-height: 70px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark-color);
  background-color: #ffffff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 16px;           /* опционально, чтобы контент не лип к краям */
  box-sizing: border-box;    /* опционально */
}

/* Отзывы — центр и комфортная ширина текста */
.reviews-embed {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.reviews-embed iframe {
  width: 100% !important;
  height: 780px;            /* десктопная высота */
  display: block;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  box-sizing: border-box;
}

/* подпись Яндекса (она должна быть поверх и по центру) */
.reviews-credit {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 0 20px;

  font-family: "YS Text", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 10px;
  color: #b3b3b3;
  text-decoration: none;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Карта — на всю ширину контейнера (станет «вдвое шире», чем было 600px) */
.map-embed {
  width: 100%;
  margin: 32px auto 80px;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 560px;			     /* десктопная высота */
  border: 0;
  border-radius: 12px;     /* как у отзывов, чтобы всё было единообразно */
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

/* Контейнер секции: широкая, но аккуратно ограничена */
.section-center{
  max-width: 1280px;       /* можно 1240–1320 по вкусу */
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--primary-color);
  color: #ffffff;
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-area img {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: bold;
  color: #ffffff;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a {
  color: #ffffff;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.phone-btn {
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  margin-left: 20px;
  white-space: nowrap;
}

.burger {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Герой */
.hero {
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
  height: 80vh;
  background-color: #000;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  background: rgba(0, 0, 0, 0.4);
  padding: 40px;
  max-width: 600px;
  margin-left: 10%;
  border-radius: 8px;
  color: #ffffff;
}

.slide-overlay h2 {
  margin: 0 0 10px;
  font-size: 2.2rem;
}

.slide-overlay p {
  margin: 0 0 20px;
  font-size: 1.1rem;
}

.hero-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.hero-btn:hover {
  background-color: #916530;
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

.slider-control.prev {
  left: 20px;
}

.slider-control.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #fff;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-dots button.active {
  background-color: #fff;
}

/* Общие стили для секций */
.section {
  padding: 60px 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

/* Преимущества */
.adv-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.adv-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.adv-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.adv-card h3 {
  margin: 10px 0 8px;
  font-size: 1.2rem;
}

.adv-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--dark-color);
}

/* Услуги */
.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.service-card h3 {
  margin: 10px 0 8px;
  font-size: 1.2rem;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Номера */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.room-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.room-card:hover {
  transform: translateY(-3px);
}

.room-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.room-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.room-info h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  min-height: 48px;
}

.tags {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.room-btn {
  align-self: flex-start;
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.room-btn:hover {
  background-color: #916530;
}

/* Модальное окно */
.room-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.room-modal.open {
  display: flex;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 20px;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.modal-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.modal-tags span {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

#modal-description {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.gallery img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
}

.gallery-control.prev {
  left: 10px;
}

.gallery-control.next {
  right: 10px;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--accent-color);
  cursor: pointer;
}

.modal-book-btn {
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-book-btn:hover {
  background-color: #916530;
}

/* О нас */
.about-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 350px;
  min-width: 280px;
}

.about-text ul {
  padding-left: 20px;
}

.about-image {
  flex: 1 1 350px;
  min-width: 280px;
}

.about-image img {
  border-radius: 8px;
}

/* Отзывы */
.reviews-widget {
  /* Растягиваем виджет на всю ширину контейнера */
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* FAQ */
.faq {
  --faq-width: 80%;
}

.faq-item {
  display: flex;
  justify-content: center;           /* центрируем “узкий” блок */
  margin: 16px 0;
}

.faq-inner {
  width: var(--faq-width);           /* ОДНО место для ширины */
}

.faq-item.open .accordion-panel {
  max-height: 600px;                 /* под нужный максимум */
  opacity: 1; transform: translateY(0);
}

.accordion-item {
  /* Разделитель между элементами часто задают внешним отступом,
     поэтому убираем линию и задаём лишь отступ снизу */
  margin-bottom: 10px;
}

.accordion-btn {
  /* Кнопка заголовка FAQ: оформлена как широкая полоса с мягким фоном
     и цветной иконкой разворачивания. Используем flex для выравнивания. */
  background-color: #f5eadc;
  border: none;
  width: 80%;
  text-align: left;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--dark-color);
  cursor: pointer;
  position: relative;
  border-radius: 8px;
  display: flex;
  align-items: center;
  margin: auto;
}

/* .accordion-btn {
  width: 100%;
  background: #f5eadc;
  border-radius: 14px;
  padding: 22px 24px;
  font-size: 26px;                   /* как просил – крупнее *
  display: flex; align-items: center; justify-content: space-between;
} */

.acc-icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 999px; background: #d6ad75;
  display: inline-block;
}

.accordion-panel {
  width: 100%;
  background: #fff;
  border-left: 6px solid #d6ad75;
  border-radius: 0 0 14px 14px;
  margin-top: 10px;
  padding: 20px 26px;
  line-height: 1.6;

  /* плавное открытие/закрытие */
  max-height: 0; overflow: hidden;
  opacity: 0; transform: translateY(-6px);
  transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
}

/* Оформляем иконку раскрытия в виде цветного круга на правой стороне */
.accordion-btn::after {
  content: '+';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 1.2rem;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-btn::after {
  content: '-';
}

.accordion-content {
  width: 80%;
  margin: 10px auto 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  font-size: 1rem;
  color: var(--dark-color);
  padding: 0 20px;
  background-color: #ffffff;
  border-left: 4px solid var(--primary-color);
  border-radius: 0 0 8px 8px;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  margin-top: 10px;
}

/* Видео */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Контакты */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.contact-item i {
  color: var(--accent-color);
  font-size: 1.3rem;
}

.map-widget {
  display: flex;
  justify-content: center;
}

/* Увеличиваем размеры встроенной карты для лучшего восприятия */
.map-widget iframe {
  width: 100% !important;
  height: 600px !important;
  border: none;
}

/* Подвал */
.footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 30px 0;
  text-align: center;
}

.footer-nav {
  margin-bottom: 10px;
}

.footer-nav a {
  margin: 0 10px;
  color: #ffffff;
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
  font-size: 0.8rem;
}

/* Бронирование */
.booking-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 2px solid var(--primary-color);
  z-index: 1500;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.full_widget {
  width: 100%;
  display: block;
}

.book-now-mobile {
  display: none;
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.mobile-widget-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 2px solid var(--primary-color);
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 1400;
  padding: 10px 0;
}

.mobile-widget-wrapper.open {
  transform: translateY(0);
}

.mobile_widget {
  width: 100%;
}

/* Адаптивность */
@media (min-width: 1440px) {
  .map-embed iframe{
    height: 640px;
  }
}

@media (max-width: 1024px) {
  .map-embed iframe {
    height: 520px;
  }
}

@media (max-width: 1050px) {
  .full_widget {
    display: none;
  }
  .book-now-mobile {
    display: inline-block;
  }
  .phone-btn {
    margin-left: 10px;
  }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 10px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav.open {
    transform: translateX(0);
  }
  .burger {
    display: block;
  }
  .nav a {
    font-size: 1.1rem;
    padding: 8px 0;
  }
  /* На мобильных устройствах показываем кнопку телефона между логотипом и бургер-меню */
  .phone-btn {
    display: inline-block;
    margin-left: auto;
    margin-right: 10px;
  }
  .logo-text {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px)  {
  .map-embed iframe {
    height: 420px;
    border-radius: 10px;
  }
}

@media (max-width: 767px) {
  .reviews-embed {
    max-width: 100%;
  }
  .reviews-embed iframe {
    height: 600px;
  }
  .faq {
    --faq-width: 100%;
  }
  .accordion-btn,
  .accordion-content, .accordion-panel {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .slide-overlay h2 {
    font-size: 1.6rem;
  }
  .slide-overlay p {
    font-size: 0.9rem;
  }
  .hero-btn {
    padding: 10px 20px;
  }
  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .map-embed iframe{
    height: 360px;
    border-radius: 8px;
  }
}
