/* ── Переменные ─────────────────────────────────────────────────────────── */
:root {
  --forest: #3d6b2e;
  --forest-light: #5a8a47;
  --forest-dark: #2a4a1f;
  --gold: #c9a030;
  --gold-light: #e0b84a;
  --cream: #faf6f0;
  --cream-dark: #f0e8da;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
}

/* ── Базовые стили ──────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--cream);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ── Навигация ──────────────────────────────────────────────────────────── */
.nav-link {
  position: relative;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--forest); }
.nav-link:hover::after { width: 100%; }

/* ── Hero секция ────────────────────────────────────────────────────────── */
.hero-section {
  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-attachment: fixed;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-section:hover .hero-bg {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.5) 60%,
    rgba(20,40,15,0.7) 100%
  );
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  line-height: 1.1;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* ── Кнопки ─────────────────────────────────────────────────────────────── */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 15px rgba(201,160,48,0.3);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,160,48,0.4);
}

.btn-green {
  display: inline-block;
  background: var(--forest);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s;
}

.btn-green:hover {
  background: var(--forest-light);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--forest);
  color: var(--forest);
  padding: 0.65rem 1.75rem;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s;
}

.btn-outline:hover {
  background: var(--forest);
  color: #fff;
}

/* ── Секция-заголовок ───────────────────────────────────────────────────── */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--forest-dark);
  line-height: 1.2;
}


/* ── Карточки услуг ─────────────────────────────────────────────────────── */
.service-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

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

.service-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Карточки событий ───────────────────────────────────────────────────── */
.event-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

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

.event-date-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Галерея ────────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ── Полоска-акцент ─────────────────────────────────────────────────────── */
.accent-bar {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 0.75rem 0 1.5rem;
}

.accent-bar-center {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 0.75rem auto 1.5rem;
}

/* ── Футер ──────────────────────────────────────────────────────────────── */
.footer-link {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  font-size: 0.875rem;
}

.footer-link:hover {
  color: var(--gold-light);
}

/* ── Утилиты ────────────────────────────────────────────────────────────── */
.bg-cream { background: var(--cream); }
.bg-cream-dark { background: var(--cream-dark); }
.text-forest { color: var(--forest); }
.text-gold { color: var(--gold); }

/* ── Анимации появления ─────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}

.fade-in-up-delay-1 { animation-delay: 0.15s; opacity: 0; animation-fill-mode: forwards; animation-name: fadeInUp; animation-duration: 0.7s; }
.fade-in-up-delay-2 { animation-delay: 0.3s;  opacity: 0; animation-fill-mode: forwards; animation-name: fadeInUp; animation-duration: 0.7s; }
.fade-in-up-delay-3 { animation-delay: 0.45s; opacity: 0; animation-fill-mode: forwards; animation-name: fadeInUp; animation-duration: 0.7s; }

/* ── Hero Split ─────────────────────────────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .hero-split { grid-template-columns: 38fr 62fr; min-height: 72vh; }
}
.hero-split-text {
  background: var(--forest-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 36px;
  order: 2;
  min-height: 44vw;
}
@media (min-width: 1024px) {
  .hero-split-text { order: 1; min-height: auto; padding: 60px 52px; }
}
.hero-split-photo {
  background-size: cover;
  background-position: center;
  min-height: 56vw;
  order: 1;
}
@media (min-width: 1024px) {
  .hero-split-photo { order: 2; min-height: auto; }
}

/* ── Gallery Grid ────────────────────────────────────────────────────────── */
.gallery-auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.gallery-photo-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}
.gallery-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-photo-item:hover img { transform: scale(1.05); }
.gallery-photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(42,74,31,0.88));
  color: rgba(255,255,255,0.92);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gallery-photo-item:hover .gallery-photo-caption { opacity: 1; }

/* ── Catalog Grid ────────────────────────────────────────────────────────── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  border-left: 1px solid rgba(61,107,46,0.1);
  border-top: 1px solid rgba(61,107,46,0.1);
}
@media (min-width: 640px)  { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
.catalog-block {
  padding: 30px 26px;
  border-right: 1px solid rgba(61,107,46,0.1);
  border-bottom: 1px solid rgba(61,107,46,0.1);
  transition: background 0.2s;
}
.catalog-block:hover { background: rgba(61,107,46,0.03); }
.catalog-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.catalog-num-lg {
  font-size: 3rem;
}
.catalog-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--forest-dark);
  margin-top: 7px;
}
.catalog-sub {
  font-size: 0.72rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 3px;
}
.catalog-block-gold {
  border-top: 2px solid rgba(201,160,48,0.3) !important;
}

/* ── Cabin Cards ─────────────────────────────────────────────────────────── */
.cabin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .cabin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cabin-grid { grid-template-columns: repeat(3, 1fr); }
}

.cabin-card {
  position: relative;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

/* Photo layer (default) */
.cabin-card-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.35s ease;
}
.cabin-card-photo-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
  transition: opacity 0.35s ease;
}

/* Default overlay: gradient + name/price at bottom */
.cabin-card-default {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: opacity 0.35s ease;
}

/* Hover details layer */
.cabin-card-hover {
  position: absolute;
  inset: 0;
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow-y: auto;
}

/* Hover trigger */
.cabin-card:hover .cabin-card-photo,
.cabin-card:hover .cabin-card-photo-placeholder,
.cabin-card:hover .cabin-card-default {
  opacity: 0;
}
.cabin-card:hover .cabin-card-hover {
  opacity: 1;
}

.cabin-card-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
}
.cabin-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}
.cabin-card-name-dark {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin-bottom: 4px;
}
.cabin-amenity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  background: rgba(61,107,46,0.08);
  color: var(--forest-dark);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Booking Modal ────────────────────────────────────────────────────────── */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10,8,6,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
@media (min-width: 640px) {
  .booking-modal-overlay { align-items: center; padding: 16px; }
}
.booking-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.booking-modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 32px;
  transform: translateY(32px);
  transition: transform 0.3s ease;
  max-height: 92vh;
  overflow-y: auto;
}
@media (min-width: 640px) {
  .booking-modal { border-radius: 20px; transform: translateY(16px); }
}
.booking-modal-overlay.open .booking-modal {
  transform: translateY(0);
}
.booking-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: #1f2937;
}
.booking-input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(61,107,46,0.1);
}
.booking-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

/* ── Prose (контент события) ────────────────────────────────────────────── */
.prose-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #374151;
}
.prose-content h1, .prose-content h2, .prose-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--forest-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose-content h2 { font-size: 1.6rem; }
.prose-content h3 { font-size: 1.3rem; }
.prose-content p { margin-bottom: 1.25rem; }
.prose-content img { width: 100%; border-radius: 4px; margin: 1.5rem 0; }
.prose-content ul, .prose-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose-content li { margin-bottom: 0.4rem; }
.prose-content strong { color: var(--forest-dark); }
.prose-content a { color: var(--forest); text-decoration: underline; }
.prose-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  color: #6b7280;
  font-style: italic;
  margin: 1.5rem 0;
}

/* ── Скролл-полоса ──────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--forest-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--forest); }
