/* ============================================
   Дом на горе — Premium Styles v2
   Mountain Modern Design
   ============================================ */

/* ---------- Font Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&display=swap');

/* ---------- Tailwind Extend ---------- */
@layer base {
  html { scroll-behavior: smooth; overflow-x: hidden; }
  body { font-family: 'Inter', sans-serif; }
  .font-serif { font-family: 'Playfair Display', serif; }
}

/* ---------- Animations ---------- */
@keyframes spin-slow { to { transform: rotate(360deg); } }
.animate-spin-slow { animation: spin-slow 6s linear infinite; }

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(12px); opacity: 1; }
}
.animate-scroll-dot { animation: scroll-dot 2s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-0.5deg); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

/* ---------- Navbar ---------- */
#navbar.scrolled {
  background: rgba(7, 7, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ---------- Hero Title ---------- */
.hero-title { line-height: 0.85; }
@media (max-width: 768px) { .hero-title { font-size: 4rem !important; } }
@media (max-width: 480px) { .hero-title { font-size: 3rem !important; } }

/* ---------- Reveal Animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-hero { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-hero.visible { opacity: 1; transform: translateY(0); }

/* ---------- Tariff Cards ---------- */
.tariff-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.tariff-label {
  display: inline-block;
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tariff-label-featured {
  color: rgba(245, 214, 150, 0.97) !important;
  text-shadow: 0 0 12px rgba(245, 214, 150, 0.2);
}

.tariff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.03), transparent);
  transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.tariff-card:hover::before { left: 100%; }

/* ---------- Brighter muted text ---------- */
.text-white\/10 { color: rgba(255, 255, 255, 0.30) !important; }
.text-white\/15 { color: rgba(255, 255, 255, 0.35) !important; }
.text-white\/20 { color: rgba(255, 255, 255, 0.40) !important; }
.text-white\/25 { color: rgba(255, 255, 255, 0.45) !important; }
.text-white\/30 { color: rgba(255, 255, 255, 0.50) !important; }
.text-white\/35 { color: rgba(255, 255, 255, 0.55) !important; }
.text-white\/40 { color: rgba(255, 255, 255, 0.60) !important; }

/* ---------- Swiper Gallery ---------- */
.gallerySwiper {
  max-width: 80%;
  margin: 0 auto;
}

.gallerySwiper .swiper-slide {
  width: min(70vw, 480px) !important;
  max-width: 70%;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.4;
  transform: scale(0.95);
}
.gallerySwiper .swiper-slide-active { opacity: 1; transform: scale(1); }
.gallerySwiper .swiper-slide-next,
.gallerySwiper .swiper-slide-prev { opacity: 0.6; }

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
  border-radius: 999px;
  transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
  background: rgb(245, 158, 11, 0.6);
  width: 32px !important;
  border-radius: 999px;
}

/* ---------- Fullscreen Viewer ---------- */
#fullscreenViewer.show { display: flex; }
#fullscreenViewer { transition: opacity 0.3s ease; }

/* ---------- Mobile Menu ---------- */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobileMenu.open { max-height: 500px; opacity: 1; }

/* ---------- Particles ---------- */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #07070a; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------- Autofill Fix ---------- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: rgba(255, 255, 255, 0.8);
  -webkit-box-shadow: 0 0 0px 1000px rgba(7, 7, 10, 0.9) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* ---------- Image Loading ---------- */
img.loading { filter: blur(10px); transform: scale(1.05); }
img.loaded { filter: blur(0); transform: scale(1); }

/* ---------- Yandex Map Fix ---------- */
#yandexMap .ymaps-2-1-79-map { filter: invert(1) hue-rotate(180deg) brightness(0.8); }
#yandexMap .ymaps-2-1-79-ground-pane { filter: grayscale(1) brightness(0.5); }
/* ---------- Hover Effects ---------- */
/* Image zoom on hover in About section */
.hover-zoom {
  overflow: hidden;
}
.hover-zoom img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.hover-zoom:hover img {
  transform: scale(1.08);
  filter: brightness(1.05) saturate(1.1);
}

/* Glow effect on buttons */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.btn-glow:hover::after {
  opacity: 1;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,158,11,0.15);
}

/* Text shimmer effect */
.text-shimmer {
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.3) 0%, 
    rgba(245,158,11,0.6) 50%, 
    rgba(255,255,255,0.3) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Feature card hover depth */
.feature-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.15) !important;
}

/* Contact item hover */
.contact-item {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-item:hover {
  transform: translateX(8px);
  background: rgba(255,255,255,0.03);
  border-color: rgba(245,158,11,0.15) !important;
}

/* Border glow on hover */
.border-glow {
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.border-glow:hover {
  border-color: rgba(245,158,11,0.2) !important;
  box-shadow: inset 0 0 30px rgba(245,158,11,0.03), 0 0 30px rgba(245,158,11,0.03);
}

/* Tariff card enhanced hover */
.tariff-card.featured {
  border-color: rgba(245,158,11,0.2);
}
.tariff-card.featured:hover {
  border-color: rgba(245,158,11,0.4) !important;
  box-shadow: 0 0 40px rgba(245,158,11,0.06), inset 0 0 40px rgba(245,158,11,0.02);
}

/* Gradient text reveal on hover for section titles */
.reveal-title {
  position: relative;
  display: inline-block;
}
.reveal-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(245,158,11,0.4), transparent);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-title:hover::after {
  width: 100%;
}

/* ---------- Eagle Styles ---------- */
#eagle {
  transition: left 0.15s ease-out, top 0.15s ease-out;
  filter: drop-shadow(0 0 15px rgba(245,158,11,0.1));
  opacity: 0;
}
#eagle.visible {
  opacity: 0.6;
}
#eagle.hovering {
  opacity: 0.9;
  filter: drop-shadow(0 0 25px rgba(245,158,11,0.2));
}
#eagle .eagle-wing-left,
#eagle .eagle-wing-right {
  transition: transform 0.3s ease;
}

/* Eagle trail effect */
.eagle-trail {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.06), transparent);
  z-index: 9998;
  animation: trail-fade 0.8s ease-out forwards;
}
@keyframes trail-fade {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

/* Custom cursor hide on desktop */
@media (hover: hover) {
  body.eagle-active {
    cursor: none;
  }
  body.eagle-active a,
  body.eagle-active button,
  body.eagle-active [role="button"] {
    cursor: none;
  }
  body.eagle-active .swiper-button-next,
  body.eagle-active .swiper-button-prev {
    cursor: none;
  }
}

/* Parallax tilt for tariff cards */
.tariff-card-tilt {
  transform-style: preserve-3d;
  perspective: 1000px;
}
.tariff-card-tilt .tilt-content {
  transition: transform 0.1s ease;
  transform-style: preserve-3d;
}

/* Smooth image reveal on scroll */
.img-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-reveal.revealed {
  clip-path: inset(0 0 0 0);
}