/* Алтай Люкс — стили
   Палитра: Катунь, горы, лес — мягкие зелёные, голубые, земляные.
   Шрифты: Cormorant Garamond (заголовки), Montserrat (текст).
*/

:root {
  --color-bg: #f8f6f2;
  --color-surface: #fff;
  --color-text: #2c3e2c;
  --color-text-dark: #1a2e28;
  --color-text-muted: #5a6b5a;
  --color-accent: #3d6b5c;
  --color-accent-light: #5a8a7a;
  --color-river: #6b9aaa;
  --color-earth: #8b7355;
  --color-leaf: #6b8f6b;
  --color-gold: #c9a227;
  --color-overlay: rgba(44, 62, 44, 0.4);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(44, 62, 44, 0.08);
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-light);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1.5rem;
  text-align: center;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn--light {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-color: #fff;
  backdrop-filter: blur(8px);
}

.btn--light:hover {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}

.btn--wa { background: #25d366; color: #fff; border-color: #25d366; }
.btn--wa:hover { background: #20bd5a; color: #fff; }
.btn--tg { background: #0088cc; color: #fff; border-color: #0088cc; }
.btn--tg:hover { background: #007ab8; color: #fff; }
.btn--max { background: #00c853; color: #fff; border-color: #00c853; }
.btn--max:hover { background: #00a843; color: #fff; }

/* Шапка */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 246, 242, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(44, 62, 44, 0.08);
  transition: background var(--transition);
}

.header.scrolled {
  background: rgba(255,255,255,0.85);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  gap: 24px;
}

.logo img {
  width: 85px;
  height: auto;
}

.nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}

.nav__list a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__list a:hover {
  color: var(--color-accent);
}

.header__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__social a {
  display: flex;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.header__social a:hover {
  opacity: 1;
}

.header__social img {
  width: 44px;
  height: 44px;
}

.header__booking {
  flex-shrink: 0;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 24px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile__panel {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  padding: 24px 32px 28px;
  position: relative;
  min-width: 280px;
  max-width: 90vw;
}

.nav-mobile__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}

.nav-mobile__close:hover {
  background: rgba(44, 62, 44, 0.08);
}

.nav-mobile__list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.nav-mobile__list li {
  margin-bottom: 12px;
}

.nav-mobile__list li:first-child {
  margin-top: 8px;
}

.nav-mobile__list a {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text);
}

.nav-mobile__panel .btn {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

/* Hero — главная */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--color-overlay) 0%, rgba(44,62,44,0.6) 100%);
}

.hero__scroll-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.hero__scroll-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll-banner 35s linear infinite;
}

.hero__scroll-line {
  display: inline-block;
  padding-right: 2em;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.85);
}

@keyframes scroll-banner {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero__logo {
  display: block;
  width: 160px;
  height: auto;
  margin: 0 auto 1.25rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.9);
  margin: 0 0 2rem;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  animation: scroll-hint 2s ease-in-out infinite;
}

.hero__scroll-hint::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
}

@keyframes scroll-hint {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.5; transform: translateX(-50%) translateY(8px); }
}

/* Интро */
.parallax-wrap {
  position: relative;
  background-image: url('../images/parallax-bg.JPG');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.parallax-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248,246,242,0.45) 0%, rgba(248,246,242,0.72) 100%);
  pointer-events: none;
}

.parallax-wrap > * {
  position: relative;
  z-index: 1;
}

.parallax-wrap .intro,
.parallax-wrap .gallery-preview,
.parallax-wrap .reviews,
.parallax-wrap .rooms-section,
.parallax-wrap .contacts-section,
.parallax-wrap .gallery-section {
  background: transparent;
}

.parallax-wrap .review-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.96) 0%, rgba(248,246,242,0.98) 100%);
  backdrop-filter: blur(12px);
}

.parallax-wrap .room-card,
.parallax-wrap .amenity-item {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
}

/* Текст в контентных блоках: тёмно-зелёный, курсив; заголовки — обычные */
.parallax-wrap .section-title,
.parallax-wrap h2,
.parallax-wrap h3 {
  font-style: normal;
}

.parallax-wrap p,
.parallax-wrap .intro__text,
.parallax-wrap .room-card__desc,
.parallax-wrap .room-card__price,
.parallax-wrap .review-card__text,
.parallax-wrap .gallery-preview__caption p,
.parallax-wrap .amenity-item p,
.parallax-wrap .rooms-notice p,
.parallax-wrap .contacts-booking-text,
.parallax-wrap .contacts-address p,
.parallax-wrap .room-card__features li,
.parallax-wrap .reviews__subtitle {
  color: var(--color-text-dark);
  font-style: italic;
}

.parallax-wrap .booking-cta__title {
  font-style: normal;
}

.intro {
  background: var(--color-surface);
}

.intro__text {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.intro__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Галерея-превью на главной */
.gallery-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 1.5rem;
}

.gallery-preview__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-earth);
}

/* Карусель домиков */
.house-carousel__wrap {
  position: absolute;
  inset: 0;
}

.house-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.house-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.house-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
  z-index: 2;
}

.house-carousel__arrow:hover {
  background: #fff;
}

.house-carousel__arrow--prev {
  left: 12px;
}

.house-carousel__arrow--next {
  right: 12px;
}

.gallery-preview__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
}

.gallery-preview__caption h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 0 4px;
}

.gallery-preview__caption p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.gallery-preview__note {
  text-align: center;
  margin: 0;
}

.gallery-preview__note a {
  font-weight: 500;
}

/* Отзывы */
.reviews {
  padding: 80px 0;
}

.reviews__title {
  margin-bottom: 0.5rem;
}

.reviews__subtitle {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0 0 3rem;
  font-style: italic;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.review-card {
  margin: 0;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,246,242,0.98) 100%);
  border-radius: 16px;
  border: 1px solid rgba(139, 115, 85, 0.15);
  box-shadow: 0 4px 24px rgba(44, 62, 44, 0.06), 0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(44, 62, 44, 0.08), 0 2px 12px rgba(0,0,0,0.05);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.review-card__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-card__author {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.review-card__date {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.review-card__stars {
  font-size: 1rem;
  letter-spacing: 2px;
  color: #e6b422;
  margin-top: 2px;
}

.review-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
}

.reviews__source {
  text-align: center;
  margin: 24px 0 0;
  font-size: 0.95rem;
}

.reviews-link__wrap {
  text-align: center;
  margin: 0;
}

.reviews__source a {
  color: var(--color-accent);
}

.reviews__source-btn {
  display: inline-block;
  position: relative;
  padding: 14px 28px;
  color: var(--color-text-dark) !important;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid var(--color-text-dark);
  border-radius: var(--radius);
  overflow: hidden;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.reviews__source-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    rgba(201, 162, 39, 0.25),
    rgba(255, 255, 255, 0.35),
    transparent
  );
  animation: reviews-btn-shimmer 2.5s ease-in-out infinite;
  pointer-events: none;
}

.reviews__source-btn:hover {
  color: var(--color-accent) !important;
  border-color: var(--color-accent);
}

@keyframes reviews-btn-shimmer {
  0% {
    left: -60%;
  }
  20% {
    left: 100%;
  }
  20.01%, 100% {
    left: -60%;
  }
}

/* Блок бронирования */
.booking-cta {
  background: transparent;
  color: var(--color-text);
}

.booking-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 1rem;
  color: var(--color-accent);
  text-shadow: 0 0 20px rgba(61, 107, 92, 0.7), 0 0 40px rgba(61, 107, 92, 0.4);
}

.booking-cta__text {
  text-align: center;
  margin: 0 0 1.5rem;
  color: var(--color-accent);
  font-size: 1.05rem;
  text-shadow: 0 0 15px rgba(61, 107, 92, 0.5), 0 0 30px rgba(61, 107, 92, 0.3);
}

.booking-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.booking-cta__phone-container {
  text-align: center;
}

.booking-cta__phone-wrap {
  display: inline-flex;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.5);
}

.booking-cta__phone {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1.2rem;
}

.booking-cta__phone:hover {
  color: var(--color-accent-light);
}

/* Футер */
.footer {
  background: linear-gradient(180deg, #1a2622 0%, #0f1815 100%);
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

.footer a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color var(--transition);
}

.footer a:hover {
  color: #fff;
}

.footer address {
  font-style: normal;
}

.footer__top {
  padding: 56px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px 32px;
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__logo {
  display: inline-block;
}

.footer__logo img {
  display: block;
  width: 120px;
  height: auto;
}

.footer__tagline {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
}

.footer__cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 4px;
}

.footer__heading {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__nav li {
  margin-bottom: 10px;
}

.footer__nav a:hover {
  color: var(--color-accent-light);
}

.footer__contacts p {
  margin: 0 0 8px;
  line-height: 1.5;
}

.footer__contacts p:last-of-type {
  margin-bottom: 16px;
}

.footer__contacts a[href^="tel"] {
  font-weight: 500;
  font-size: 1.05rem;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background var(--transition), transform var(--transition);
}

.footer__social a:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.footer__social img {
  width: 26px;
  height: 26px;
}

.footer__bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* Страницы: hero */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.page-hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  margin: 0 0 0.5rem;
}

.page-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

/* Номера и цены */
.rooms-notice {
  max-width: 700px;
  margin: 0 auto 48px;
  padding: 24px;
  background: rgba(61, 107, 92, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(61, 107, 92, 0.2);
}

.rooms-notice p {
  margin: 0 0 8px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.rooms-notice p:last-child {
  margin-bottom: 0;
}

.room-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
  padding: 32px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.room-card:nth-child(even) .room-card__img {
  order: 2;
}

.room-card__img {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--color-earth);
}

.room-card__img--carousel {
  position: relative;
  overflow: hidden;
}

.room-card__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin: 0 0 8px;
}

.room-card__price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 1rem;
}

.room-card__desc {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.room-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.room-card__features li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.amenities-block {
  margin-top: 48px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.amenity-item {
  text-align: center;
  padding: 24px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.amenity-item__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.amenity-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Контакты */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacts-address {
  font-style: normal;
  margin-bottom: 24px;
}

.contacts-address p {
  margin: 0 0 16px;
  color: var(--color-text-muted);
}

.contacts-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.contacts-booking-title {
  text-align: left;
  margin-top: 32px;
}

.contacts-booking-text {
  margin: 0 0 16px;
  color: var(--color-text-muted);
}

.contacts-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contacts-map-wrap {
  position: sticky;
  top: 100px;
}

.contacts-map {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: var(--radius);
  background: #e8e6e2;
}

.contacts-map-fallback {
  margin-top: 12px;
  font-size: 0.9rem;
}

.contacts-map-fallback a {
  font-weight: 500;
}

/* Галерея */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.gallery-filter {
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  border: 2px solid var(--color-text-dark);
  background: transparent;
  color: var(--color-text-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-filter:hover,
.gallery-filter.active {
  background: var(--color-accent);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-earth);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.hidden {
  display: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition);
}

.lightbox__close:hover {
  opacity: 0.8;
}

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

/* Анимации при скролле */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Адаптив */
@media (max-width: 900px) {
  .nav,
  .header__booking {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header__social img {
    width: 34px;
    height: 34px;
  }

  .logo img {
    width: 72px;
  }

  .reviews__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .review-card {
    padding: 32px 24px;
  }

  .room-card {
    grid-template-columns: 1fr;
  }

  .room-card:nth-child(even) .room-card__img {
    order: 0;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .contacts-map-wrap {
    position: static;
  }

  .contacts-map {
    height: 300px;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__contacts {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .gallery-preview__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer__brand {
    align-items: center;
  }

  .footer__cta {
    align-self: center;
  }

  .footer__nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
  }

  .footer__social {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .section {
    padding: 40px 0;
  }

  .hero__logo {
    width: 130px;
    margin-bottom: 1rem;
  }

  .hero__scroll-hint {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
