/* Переменные темы */
:root {
  --color-primary: #1a365d;
  --color-accent: #c5a880;
  --color-background: #ffffff;
  --color-surface: #f7fafc;
  --color-surface-alt: #e2e8f0;
  --color-text: #333333;
  --color-text-secondary: #718096;
  --color-text-muted: #a0aec0;
  --color-text-light: #cbd5e0;
  --color-text-inverse: #ffffff;
  --color-border: #e2e8f0;
  --color-border-strong: #2d3748;
  
  --font-heading: "Nunito Sans", sans-serif;
  --font-body: "Manrope", sans-serif;
}

/* Сброс базовых стилей */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Общие утилиты и классы стилизации */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.background-alt {
  background-color: var(--color-surface);
}

.text-center {
  text-align: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.widget-round {
  border-radius: 12px;
}

.img-responsive {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
}

.paragraph {
  margin-bottom: 1.2rem;
  color: var(--color-text);
}

/* Шапка профиля */
.header {
  position: sticky;
  top: 0;
  background: var(--color-background);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}

.logo__stars {
  font-size: 0.8rem;
  color: var(--color-accent);
  letter-spacing: 2px;
  margin-top: 2px;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--color-accent);
}

.header__contacts {
  text-align: right;
}

.header__phone-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.header__phone {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-primary);
  transition: transform 0.3s ease;
}

/* Главный баннер (Hero) */
.hero {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  color: var(--color-text-inverse);
  padding: 4rem 0;
}

.hero__bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero__container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
}

.hero__content {
  max-width: 650px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: 1.2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Конструктор форм бронирования */
.booking-block {
  background: var(--color-background);
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  color: var(--color-text);
  max-width: 800px;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr) auto;
  gap: 1.5rem;
  align-items: flex-end;
}

.booking-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.booking-form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.booking-form__input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  outline: none;
  cursor: pointer;
}

.booking-form__input:focus {
  border-color: var(--color-accent);
}

.booking-form__btn {
  height: 48px;
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
  border: none;
  border-radius: 6px;
  padding: 0 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.booking-form__btn:hover {
  background-color: #b59870;
}

/* Горизонтальная форма в нижнем блоке */
.booking-block--horizontal {
  margin: 0 auto;
}

/* Описание */
.about__info-box {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem;
  margin-top: 2rem;
}

.about__info-box p {
  margin-bottom: 0.5rem;
}

.about__info-box p:last-child {
  margin-bottom: 0;
}

/* Номера */
.rooms__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.room-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.room-card__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.room-card__content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.room-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.room-card__features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.room-card__features li {
  background: var(--color-surface);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.room-card__desc {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.room-card__btn {
  display: block;
  text-align: center;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-primary);
  padding: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: all 0.2s ease;
}

.room-card__btn:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

/* Услуги */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-block {
  background: var(--color-surface);
  padding: 2rem;
  border: 1px solid var(--color-border);
}

.service-block h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.services__list-all {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 2.5rem;
}

.services__list-all h3 {
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
}

.services__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  background: rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.tag--included {
  border: 1px solid var(--color-accent);
}

/* Lead Magnet */
.lead-magnet__wrapper {
  background-size: cover;
  background-position: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-text-inverse);
}

.lead-magnet__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.lead-magnet__text {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.lead-magnet__btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: background 0.2s;
}

.lead-magnet__btn:hover {
  background: #b59870;
}

/* Галерея */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery__grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* Маршруты */
.location__routes {
  background: var(--color-surface);
  padding: 2rem;
  margin-top: 1.5rem;
}

.location__routes h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.location__routes ul {
  list-style: none;
}

.location__routes li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.location__routes li::before {
  content: "•";
  color: var(--color-accent);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  top: -2px;
}

/* Отзывы */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background: var(--color-background);
  padding: 2rem;
  border: 1px solid var(--color-border);
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.review-card__author {
  font-weight: 600;
  font-family: var(--font-heading);
}

.review-card__rating {
  color: var(--color-accent);
  font-weight: 700;
}

.review-card__text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* FAQ Accordion */
.faq__holder {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.faq__trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

.faq__trigger::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent);
}

.faq__item.active .faq__trigger::after {
  content: "−";
}

.faq__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  padding: 0 1.5rem;
}

.faq__item.active .faq__content {
  padding: 0 1.5rem 1.25rem;
}

/* Подвал */
.footer {
  background: var(--color-border-strong);
  color: var(--color-text-light);
  padding: 3.5rem 0 2rem;
  font-size: 0.85rem;
}

.footer__text {
  margin-bottom: 2rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: justify;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__link {
  color: var(--color-accent);
}

.footer__link:hover {
  text-decoration: underline;
}

/* Плавающий виджет телефона */
.phone-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 0.8rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 999;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--color-accent);
  transition: transform 0.2s;
}

.phone-widget:hover {
  transform: scale(1.03);
}

/* Cookie Баннер */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: 400px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  padding: 1.25rem;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner__text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.cookie-banner__text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner__btn {
  align-self: flex-end;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Кастомизация Flatpickr под палитру отеля */
.flatpickr-calendar {
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
  border: 1px solid var(--color-border) !important;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
}

/* Адаптивность для мобильных систем */
@media (max-width: 992px) {
  .grid-2, .rooms__grid, .services__grid, .gallery__grid, .reviews__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero__title {
    font-size: 2.2rem;
  }
  
  .booking-form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery__grid img {
    height: auto;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--color-background);
    transition: left 0.3s ease;
    padding: 2rem;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
  }
  
  .nav.active {
    left: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .header__contacts {
    display: none; /* скрываем на мобильных в пользу виджета */
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .phone-widget {
    width: calc(100% - 2rem);
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    text-align: center;
  }
  
  .cookie-banner {
    width: calc(100% - 2rem);
    left: 1rem;
    bottom: 4.5rem;
  }
}