/* ============================================
   Горная тишина — Altai-inspired landing
   ============================================ */

:root {
  /* Altai palette */
  --color-forest: #1a3a2a;
  --color-forest-light: #2d5a42;
  --color-cedar: #6b4c3b;
  --color-cedar-light: #8b6f5c;
  --color-stone: #4a5568;
  --color-sky: #7eb8c9;
  --color-sky-light: #a8d4e0;
  --color-sand: #f5f0e8;
  --color-sand-dark: #e8e0d4;
  --color-cream: #faf8f4;
  --color-gold: #c4a35a;
  --color-gold-light: #d4b872;
  --color-white: #ffffff;
  --color-text: #2c3e35;
  --color-text-muted: #5a6b60;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container: 1200px;
  --header-height: 80px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(26, 58, 42, 0.08);
  --shadow-md: 0 8px 30px rgba(26, 58, 42, 0.12);
  --shadow-lg: 0 20px 60px rgba(26, 58, 42, 0.18);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(126, 184, 201, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #f7f3ec 0%, var(--color-cream) 40%, #f0ebe2 100%);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9990;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================
   Preloader
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  text-align: center;
  color: var(--color-sand);
}

.preloader__mountain {
  width: 80px;
  height: 40px;
  margin-bottom: var(--space-sm);
  animation: mountainDraw 1.5s ease infinite alternate;
}

.preloader__text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

@keyframes mountainDraw {
  from { opacity: 0.4; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.header.scrolled .logo__text strong,
.header.scrolled .nav__link,
.header.scrolled .header__phone {
  color: var(--color-text);
}

.header.scrolled .logo__mark {
  color: var(--color-forest);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.logo__mark {
  font-size: 1.2rem;
  color: var(--color-gold);
  transition: color var(--transition);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
  transition: color var(--transition);
}

.logo__text small {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.header.scrolled .logo__text small {
  color: var(--color-text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link--accent {
  padding: 0.5rem 1.25rem;
  background: var(--color-gold);
  color: var(--color-forest) !important;
  border-radius: 50px;
}

.nav__link--accent::after {
  display: none;
}

.nav__link--accent:hover {
  background: var(--color-gold-light);
}

.header__phone {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-white);
  white-space: nowrap;
  transition: color var(--transition);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 10;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--color-white);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.header.scrolled .burger span {
  background: var(--color-forest);
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease infinite alternate;
}

.hero__img[data-fallback] {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-light) 40%, var(--color-sky) 100%);
  min-height: 100vh;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 58, 42, 0.75) 0%,
    rgba(26, 58, 42, 0.45) 50%,
    rgba(26, 58, 42, 0.65) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-height);
  padding-bottom: var(--space-2xl);
}

.hero__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.hero__title em {
  font-style: italic;
  color: var(--color-sky-light);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin-bottom: var(--space-lg);
  font-weight: 300;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-forest);
}

.btn--primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 163, 90, 0.4);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
}

.hero__meta-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-white);
  line-height: 1;
}

.hero__meta-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 30px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 2px;
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* ============================================
   Sections — shared
   ============================================ */
.section {
  padding: var(--space-2xl) 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section > .container {
  position: relative;
  z-index: 3;
}

/* ── Living ambient photo backgrounds ── */
.section-ambient {
  position: absolute;
  inset: -8% -5%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.section-ambient__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(0.75) brightness(1.08) contrast(0.95);
  will-change: transform;
  animation: ambientDrift 28s ease-in-out infinite alternate;
}

.section-ambient__photo--a {
  object-position: 55% 35%;
  animation-duration: 30s;
}

.section-ambient__photo--b {
  object-position: center 40%;
  animation-duration: 24s;
  animation-direction: alternate-reverse;
}

.section-ambient__photo--c {
  object-position: 45% 30%;
  animation-duration: 26s;
  opacity: 0.28;
}

.section-ambient__photo--d {
  object-position: 60% 55%;
  animation-duration: 22s;
  animation-direction: alternate-reverse;
  opacity: 0.26;
}

.section-ambient__photo--e {
  object-position: 50% 25%;
  animation-duration: 32s;
  opacity: 0.3;
}

.section-ambient__photo--f {
  object-position: 40% 45%;
  animation-duration: 34s;
  animation-direction: alternate-reverse;
  opacity: 0.24;
}

@keyframes ambientDrift {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.12);
  }
}

.section-ambient__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.section-ambient__veil--sand {
  background:
    linear-gradient(135deg, rgba(237, 232, 223, 0.88) 0%, rgba(237, 232, 223, 0.78) 45%, rgba(245, 240, 232, 0.85) 100%);
}

.section-ambient__veil--cream {
  background:
    linear-gradient(160deg, rgba(250, 248, 244, 0.9) 0%, rgba(250, 248, 244, 0.76) 50%, rgba(245, 240, 232, 0.88) 100%);
}

.section-ambient__veil--warm {
  background:
    linear-gradient(180deg, rgba(229, 223, 212, 0.86) 0%, rgba(229, 223, 212, 0.74) 55%, rgba(237, 232, 223, 0.84) 100%);
}

.section-ambient__veil--map {
  background:
    linear-gradient(120deg, rgba(232, 226, 216, 0.87) 0%, rgba(232, 226, 216, 0.75) 50%, rgba(245, 240, 232, 0.86) 100%);
}

.section-ambient__veil--mist {
  background:
    linear-gradient(135deg, rgba(245, 240, 232, 0.9) 0%, rgba(232, 240, 238, 0.78) 50%, rgba(245, 240, 232, 0.88) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .section-ambient__photo,
  .territory__bg img,
  .booking__photo {
    animation: none !important;
  }
}

/* Decorative wave dividers */
.section--wave-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath fill='%23faf8f4' d='M0 36C240 72 480 0 720 36s480-36 720 0v36H0z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
  z-index: 1;
  pointer-events: none;
}

.section--wave-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath fill='%23f5f0e8' d='M0 0h1440v36C1200 0 960 72 720 36 480 0 240 72 0 36z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  z-index: 1;
  pointer-events: none;
}

.section__header {
  margin-bottom: var(--space-xl);
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__desc {
  margin: var(--space-sm) auto 0;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cedar);
  margin-bottom: var(--space-sm);
}

.section__eyebrow--light {
  color: var(--color-gold-light);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-forest);
}

.section__title--light {
  color: var(--color-white);
}

.section__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   About
   ============================================ */
.about {
  background-color: #ede8df;
  background-image:
    radial-gradient(ellipse 70% 55% at 95% 8%, rgba(126, 184, 201, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 3% 85%, rgba(45, 90, 66, 0.1) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q30 20 60 30 T120 30 M0 60 Q30 50 60 60 T120 60 M0 90 Q30 80 60 90 T120 90' fill='none' stroke='%231a3a2a' stroke-width='0.6' opacity='0.07'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 120px 120px;
  padding-bottom: calc(var(--space-2xl) + 48px);
}

.about::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -8%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

.about::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23faf8f4' d='M0 40C360 80 720 0 1080 40s360-40 360 40v40H0z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 2;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__facts {
  margin-top: var(--space-lg);
}

.about__facts li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-sand-dark);
  font-size: 0.95rem;
}

.about__facts li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-forest-light);
}

.about__visual {
  position: relative;
}

.about__photo-stack {
  position: relative;
}

.about__photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--color-forest-light), var(--color-sky));
  min-height: 200px;
  object-fit: cover;
}

.about__photo--main {
  width: 85%;
  aspect-ratio: 4/5;
}

.about__photo--secondary {
  position: absolute;
  bottom: -2rem;
  right: 0;
  width: 55%;
  aspect-ratio: 3/4;
  border: 4px solid #ede8df;
}

.about__badge {
  position: absolute;
  top: -1rem;
  right: 15%;
  background: var(--color-forest);
  color: var(--color-white);
  padding: 1.25rem;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about__badge-num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.about__badge-text {
  font-size: 0.65rem;
  line-height: 1.2;
  opacity: 0.85;
}

/* ============================================
   Cabins
   ============================================ */
.cabins {
  background-color: var(--color-cream);
  background-image:
    linear-gradient(135deg, rgba(107, 76, 59, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse 60% 50% at 0% 50%, rgba(45, 90, 66, 0.07) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg width='28' height='28' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='%236b4c3b' opacity='0.07'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 28px 28px;
  padding-top: calc(var(--space-2xl) + 24px);
}

.cabins::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180' preserveAspectRatio='none'%3E%3Cpath fill='%231a3a2a' opacity='0.04' d='M0 180V120L120 80 280 110 420 60 580 95 720 40 880 85 1040 50 1200 90 1320 70 1440 100V180z'/%3E%3Cpath fill='%232d5a42' opacity='0.03' d='M0 180V140L200 100 400 130 600 80 800 115 1000 70 1200 105 1440 85V180z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.cabins::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--color-gold) 30%, var(--color-cedar) 70%, transparent);
  opacity: 0.45;
}

.cabins__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.cabin-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cabin-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cabin-card__gallery {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.cabin-card__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  background: linear-gradient(135deg, var(--color-cedar-light), var(--color-sand-dark));
}

.cabin-card:hover .cabin-card__gallery img {
  transform: scale(1.05);
}

.cabin-card__label {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: rgba(26, 58, 42, 0.85);
  color: var(--color-white);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.cabin-card__body {
  padding: var(--space-lg);
}

.cabin-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-forest);
  margin-bottom: var(--space-sm);
}

.cabin-card__body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.cabin-card__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cabin-card__amenities li {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  background: var(--color-sand);
  border-radius: 50px;
  color: var(--color-forest);
}

/* Amenities block */
.amenities-block {
  background:
    linear-gradient(145deg, var(--color-forest) 0%, #234a36 50%, var(--color-forest-light) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.amenities-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(196, 163, 90, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(126, 184, 201, 0.12) 0%, transparent 35%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 L30 0 L60 30 L30 60Z' fill='none' stroke='%23ffffff' stroke-width='0.4' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 60px 60px;
  pointer-events: none;
}

.amenities-block__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-white);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.amenities-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.amenity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
}

.amenity__icon {
  font-size: 1.75rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background var(--transition);
}

.amenity:hover .amenity__icon {
  background: rgba(196, 163, 90, 0.3);
}

/* ============================================
   Territory
   ============================================ */
.territory {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.territory__bg {
  position: absolute;
  inset: -5%;
  overflow: hidden;
}

.territory__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  background: linear-gradient(135deg, var(--color-forest), var(--color-sky));
  animation: ambientDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}

.territory__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26, 58, 42, 0.92) 0%,
    rgba(26, 58, 42, 0.75) 60%,
    rgba(26, 58, 42, 0.5) 100%
  );
}

.territory__content {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) var(--space-md);
}

.territory__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.territory-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: background var(--transition), transform var(--transition);
}

.territory-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.territory-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.territory-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-white);
  margin-bottom: 0.35rem;
}

.territory-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
  background-color: #e5dfd4;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(196, 163, 90, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(45, 90, 66, 0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0 L40 20 L20 40 L0 20Z' fill='none' stroke='%231a3a2a' stroke-width='0.5' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 40px 40px;
  padding-top: calc(var(--space-2xl) + 32px);
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23faf8f4' d='M0 32C480 64 960 0 1440 32v32H0z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
  pointer-events: none;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: var(--space-sm);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  margin: 0;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  background: linear-gradient(135deg, var(--color-forest-light), var(--color-cedar));
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--tall {
  grid-row: span 2;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: var(--color-white);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
  z-index: 2;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 0.7;
}

.lightbox__close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
}

.lightbox__prev {
  left: 1.5rem;
}

.lightbox__next {
  right: 1.5rem;
}

/* ============================================
   Prices
   ============================================ */
.prices {
  background-color: var(--color-cream);
  background-image:
    radial-gradient(ellipse 55% 45% at 10% 20%, rgba(126, 184, 201, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(196, 163, 90, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, rgba(26, 58, 42, 0.03) 0%, transparent 30%, rgba(26, 58, 42, 0.02) 100%);
}

.prices::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  border-radius: 50%;
  border: 1px solid rgba(196, 163, 90, 0.12);
  pointer-events: none;
}

.prices::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border-radius: 50%;
  border: 1px solid rgba(45, 90, 66, 0.08);
  pointer-events: none;
}

.prices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

.price-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 1;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.price-card--featured {
  background: var(--color-forest);
  border-color: var(--color-forest);
  transform: scale(1.05);
}

.price-card--featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.price-card--featured .price-card__dates,
.price-card--featured .price-card__season,
.price-card--featured .price-card__value,
.price-card--featured .price-card__currency {
  color: var(--color-white);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-forest);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
}

.price-card__period {
  margin-bottom: var(--space-md);
}

.price-card__dates {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-forest);
  margin-bottom: 0.25rem;
}

.price-card__season {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.price-card--featured .price-card__season {
  color: rgba(255, 255, 255, 0.7);
}

.price-card__amount {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-sand-dark);
}

.price-card--featured .price-card__amount {
  border-color: rgba(255, 255, 255, 0.15);
}

.price-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-forest);
  line-height: 1;
}

.price-card__currency {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.prices__rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.prices__rule {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
}

.prices__rule svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--color-forest);
  margin-top: 2px;
}

.prices__rule strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-forest);
}

.prices__rule p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ============================================
   Location
   ============================================ */
.location {
  background-color: #e8e2d8;
  background-image:
    linear-gradient(180deg, rgba(126, 184, 201, 0.12) 0%, transparent 35%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 H80 M40 0 V80' stroke='%231a3a2a' stroke-width='0.4' opacity='0.05'/%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%231a3a2a' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 100% 100%, 80px 80px;
}

.location::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%231a3a2a' opacity='0.035' d='M0 120V80L180 50 360 75 540 40 720 70 900 35 1080 65 1260 45 1440 70V120z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

.location__address {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.location__address svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-forest);
  margin-top: 2px;
}

.location__nearby li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-sand-dark);
  font-size: 0.95rem;
}

.location__nearby-icon {
  font-size: 1.25rem;
  width: 32px;
  text-align: center;
}

.location__services {
  margin-top: var(--space-lg);
}

.location__services h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-forest);
  margin-bottom: var(--space-sm);
}

.location__services-tags {
  display: flex;
  gap: 0.5rem;
}

.location__services-tags span {
  padding: 0.5rem 1.25rem;
  background: var(--color-forest);
  color: var(--color-white);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.location__map {
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.location__map iframe {
  display: block;
}

/* ============================================
   Rules
   ============================================ */
.rules {
  background:
    linear-gradient(135deg, rgba(26, 58, 42, 0.06) 0%, rgba(245, 240, 232, 0.9) 50%, rgba(126, 184, 201, 0.08) 100%);
  padding-top: calc(var(--space-2xl) + 32px);
}

.rules::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23e8e2d8' d='M0 32C360 0 720 64 1080 32 1260 16 1440 32v32H0z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
  pointer-events: none;
}

.rules__inner {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 4px solid var(--color-gold);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.rules__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-forest);
  margin-bottom: var(--space-md);
}

.rules__list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--color-text-muted);
}

.rules__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: bold;
}

/* ============================================
   Booking
   ============================================ */
.booking {
  position: relative;
  overflow: hidden;
}

.booking__bg {
  position: absolute;
  inset: -5%;
  overflow: hidden;
}

.booking__bg img,
.booking__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  background: linear-gradient(135deg, var(--color-forest), var(--color-cedar));
  animation: ambientDrift 26s ease-in-out infinite alternate-reverse;
  will-change: transform;
}

.booking__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 42, 0.88);
}

.booking__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-2xl) var(--space-md);
}

.booking__text p {
  color: rgba(255, 255, 255, 0.8);
  margin: var(--space-md) 0;
  font-size: 1.05rem;
}

.booking__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-gold-light);
  transition: color var(--transition);
}

.booking__phone:hover {
  color: var(--color-white);
}

.booking__contacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 1.25rem var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.contact-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.contact-btn--whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
}

.contact-btn--telegram:hover {
  background: #0088cc;
  border-color: #0088cc;
}

.contact-btn--phone:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-forest);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-forest);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__brand .logo__mark {
  color: var(--color-gold);
}

.footer__brand strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-white);
  display: block;
}

.footer__brand p {
  font-size: 0.8rem;
}

.footer__links {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer__links a {
  color: var(--color-gold-light);
  font-weight: 600;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.8rem;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-sm);
}

/* ============================================
   FAB — floating action button
   ============================================ */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
}

.fab__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), background var(--transition);
}

.fab__toggle svg {
  width: 24px;
  height: 24px;
}

.fab__toggle:hover {
  transform: scale(1.08);
  background: var(--color-gold-light);
}

.fab__menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
}

.fab.open .fab__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab__item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: var(--color-forest);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.fab__item svg {
  width: 22px;
  height: 22px;
  display: block;
}

.fab__item--max {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-forest);
}

.fab__text {
  line-height: 1;
}

.fab__item:hover {
  transform: scale(1.1);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .territory__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .gallery__item--tall {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --space-2xl: 4rem;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(26, 58, 42, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    font-size: 1.25rem;
    color: var(--color-white) !important;
  }

  .header__phone {
    display: none;
  }

  .burger {
    display: flex;
  }

  .about__grid,
  .cabins__grid,
  .location__grid,
  .booking__content,
  .prices__grid,
  .prices__rules {
    grid-template-columns: 1fr;
  }

  .about__photo--secondary {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin-top: var(--space-sm);
  }

  .about__badge {
    top: auto;
    bottom: 1rem;
    right: 1rem;
  }

  .price-card--featured {
    transform: none;
  }

  .price-card--featured:hover {
    transform: translateY(-4px);
  }

  .territory__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }

  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    justify-content: center;
  }

  .footer__links {
    text-align: center;
  }

  .booking__phone {
    font-size: 1.75rem;
  }

  .fab {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero__meta {
    gap: var(--space-md);
  }

  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .territory__grid {
    grid-template-columns: 1fr;
  }

  .booking__contacts {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }
}
