/*
╔══════════════════════════════════════════════════════════════════════════════╗
║              Дом отдыха Тюменяк - ПРИРОДНЫЙ ЗЕЛЕНЫЙ ДИЗАЙН                   ║
║              Premium Eco-Resort in Forest 2024-2025                          ║
╚══════════════════════════════════════════════════════════════════════════════╝
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================ CSS VARIABLES - ПРИРОДНАЯ ПАЛИТРА ============================ */

:root {
  /* Основные зеленые цвета */
  --primary-green: #2d8659;    /* Глубокий лесной */
  --light-green: #52c282;      /* Свежая трава */
  --dark-green: #1a5c3d;       /* Темный лес */
  
  /* Акцентные цвета */
  --accent-orange: #ff8a3d;    /* Теплый закат */
  --accent-yellow: #ffd23f;    /* Солнечный */
  --accent-blue: #4a9fd8;      /* Озеро */
  
  /* Нейтральные */
  --bg-cream: #f8f6f0;         /* Кремовый фон */
  --bg-light: #e8f5e9;         /* Светло-зеленый фон */
  --text-dark: #2c3e3a;        /* Темно-зеленый текст */
  --white: #FFFFFF;
  --text-gray: #5a7169;
  
  /* Градиенты */
  --gradient-green: linear-gradient(135deg, #52c282 0%, #2d8659 100%);
  --gradient-forest: linear-gradient(135deg, #1a5c3d 0%, #2d8659 100%);
  --gradient-warm: linear-gradient(135deg, #ff8a3d 0%, #ff6b35 100%);
  
  /* Тени с зеленым оттенком */
  --shadow-green: 0 4px 15px rgba(45, 134, 89, 0.08);
  --shadow-green-hover: 0 20px 40px rgba(45, 134, 89, 0.25);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================ GALLERY CAROUSEL STYLES ============================ */

#galleryCarousel {
    min-height: 400px;
}

#galleryCarousel .carousel-inner {
    min-height: 400px;
    background: #000;
}

#galleryCarousel .carousel-item {
    min-height: 400px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #000;
}

#galleryCarousel .carousel-item:not(.active) {
    display: none !important;
}

#galleryCarousel .carousel-item.active {
    display: flex !important;
}

#galleryCarousel .carousel-item img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block !important;
    margin: 0 auto;
    background: #000;
}

#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
    width: 50px;
    opacity: 0.8;
}

#galleryCarousel .carousel-control-prev:hover,
#galleryCarousel .carousel-control-next:hover {
    opacity: 1;
}

#galleryCarousel .carousel-indicators {
    margin-bottom: 1rem;
}

#galleryCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

#galleryCarousel .carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 1);
}

/* ============================ GLOBAL STYLES ============================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

h1 { font-size: clamp(48px, 8vw, 80px); }
h2 { font-size: clamp(36px, 6vw, 56px); }
h3 { font-size: clamp(28px, 4vw, 40px); }
h4 { font-size: clamp(24px, 3vw, 32px); }

p {
  margin-bottom: 1.5rem;
  color: var(--text-gray);
  font-size: 18px;
  line-height: 1.8;
}

.lead {
  font-size: 20px;
  font-weight: 500;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* ============================ NAVIGATION - ЗЕЛЕНАЯ ============================ */

.navbar {
  background: var(--gradient-forest) !important;
  box-shadow: 0 4px 30px rgba(26, 92, 61, 0.2);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-scrolled {
  padding: 0.8rem 0;
  background: rgba(26, 92, 61, 0.95) !important;
  box-shadow: 0 8px 40px rgba(26, 92, 61, 0.3);
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white) !important;
  transition: var(--transition-bounce);
  letter-spacing: -0.5px;
}

.navbar-brand:hover {
  transform: scale(1.05) translateY(-2px);
}

.nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600;
  margin: 0 0.8rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.6rem 1.2rem !important;
  border-radius: 12px;
  font-size: 15px;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent-yellow);
  transform: translateX(-50%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--white) !important;
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.nav-link:hover::before {
  width: 60%;
}

.nav-link.active {
  color: var(--white) !important;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.2);
}

/* ============================ HERO SECTION - ЗЕЛЕНЫЙ ГРАДИЕНТ ============================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, 
                rgba(29, 92, 61, 0.85) 0%,
                rgba(45, 134, 89, 0.75) 50%,
                rgba(74, 159, 216, 0.7) 100%),
              url('../fon/5195231465770713826.jpg') center/cover no-repeat fixed;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, transparent 0%, rgba(26, 61, 44, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 2rem;
  animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section h1 {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 900;
  letter-spacing: -3px;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: heroTextFloat 3s ease-in-out infinite;
  color: var(--white);
}

@keyframes heroTextFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-section p {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 500;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Hero Button - ЗЕЛЕНАЯ */
.btn-hero {
  display: inline-block;
  padding: 1.2rem 3rem;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  background: var(--gradient-green);
  border: none;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(82, 194, 130, 0.4);
  transition: var(--transition-bounce);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-hero:hover::before {
  width: 300px;
  height: 300px;
}

.btn-hero:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(82, 194, 130, 0.6);
  color: var(--white);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-20px); }
  60% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-indicator i {
  font-size: 32px;
  color: var(--white);
  opacity: 0.8;
}

/* ============================ STATS SECTION - ЗЕЛЕНАЯ ============================ */

/* СЕКЦИЯ ПРЕИМУЩЕСТВ */
.features-section {
  background: var(--white);
  padding: 80px 0;
}

.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(45, 134, 89, 0.15);
  border-color: var(--light-green);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--white);
}

.feature-card h5 {
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================ SECTION STYLES ============================ */

section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 20px;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* СЕКЦИЯ ДОМОВ - КРЕМОВЫЙ/ЗЕЛЕНЫЙ ФОН */
#houses {
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-light) 100%);
  position: relative;
}

#houses::before {
  content: '🌲';
  position: absolute;
  top: 50px;
  right: 50px;
  font-size: 120px;
  opacity: 0.05;
  pointer-events: none;
}

/* СЕКЦИЯ УСЛУГ - БЕЛЫЙ С ПАТТЕРНОМ */
#services {
  background: var(--white);
  position: relative;
}

#services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(82, 194, 130, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(74, 159, 216, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* СЕКЦИЯ АКЦИЙ - ЗЕЛЕНЫЙ ГРАДИЕНТ */
#promotions {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%);
  position: relative;
}

/* СЕКЦИЯ ПРАВИЛ - БЕЛАЯ */
#rules {
  background: var(--white);
}

/* СЕКЦИЯ КОНТАКТОВ - ЗЕЛЕНЫЙ ГРАДИЕНТ */
#contacts {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--primary-green) 100%);
  color: var(--white);
}

/* ============================ HOUSE CARDS - ИСПРАВЛЕНО ============================ */

.houses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (max-width: 1200px) {
  .houses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .houses-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ВСЕ КАРТОЧКИ ОДИНАКОВЫЕ - БЕЗ ВЫДЕЛЕНИЯ ПЕРВОЙ */
.house-card {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-green);
  border: 2px solid transparent;
  cursor: pointer;
}

.house-card:hover {
  transform: translateY(-12px);
  border: 2px solid var(--light-green);
  box-shadow: var(--shadow-green-hover);
}

.house-card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  cursor: pointer;
}

.house-card-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.house-card-image:hover > img {
  transform: scale(1.1);
}

.house-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 134, 89, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.house-card-image:hover .house-card-overlay {
  opacity: 1;
}

.house-card-overlay p {
  font-size: 18px;
  font-weight: 600;
}

.house-card-slider {
  height: 100%;
  width: 100%;
}

.house-card-slider .slick-slide img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.house-card:hover .house-card-slider .slick-slide img {
  transform: scale(1.08);
}

.house-card-content {
  padding: 2rem;
  position: relative;
  z-index: 1;
  background: var(--white);
}

.house-card-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.house-card-badges {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-green);
  transition: var(--transition-smooth);
}

.badge-custom i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.house-card:hover .badge-custom i {
  transform: rotate(15deg) scale(1.1);
}

/* BADGE "РЕЛАКС В ЧАНАХ" - ЗЕЛЕНЫЙ */
.badge-relax, .badge.warning {
  background: var(--gradient-green) !important;
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(82, 194, 130, 0.3);
}

.house-card-price {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
  display: block;
  line-height: 1;
}

.house-card-price small {
  font-size: 16px;
  color: var(--text-gray);
  font-weight: 500;
}

/* Дополнительная информация о доме */
.house-info {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-light);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-green);
}

.info-badge i {
  font-size: 14px;
}

/* КРАСИВАЯ КНОПКА "ЗАБРОНИРОВАТЬ" - ЗЕЛЕНАЯ ПРИРОДНАЯ */

/* КНОПКА "ПОСМОТРЕТЬ ФОТОГРАФИИ" - БЕЛАЯ С ЗЕЛЕНОЙ ОБВОДКОЙ */
.btn-view-photos {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  background: white;
  border: 2px solid #52c282;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #2d8659;
}

.btn-view-photos:hover {
  background: #f0f9f4;
  border-color: #2d8659;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(82, 194, 130, 0.2);
}

/* КНОПКА НА КАРТОЧКАХ "ЗАБРОНИРОВАТЬ" - ЗЕЛЕНАЯ ЗАЛИВКА + ЧЕРНЫЙ ТЕКСТ */
.gradient-button {
  width: 100%;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #52c282 0%, #2d8659 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 134, 89, 0.3);
}

.gradient-button .gradient-text {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #1a1a1a;
  background-clip: unset;
  color: #1a1a1a;
  font-weight: 700;
  animation: none;
}

.gradient-button:hover {
  background: linear-gradient(135deg, #2d8659 0%, #1a4d32 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 134, 89, 0.5);
}

.gradient-button:hover .gradient-text {
  color: #ffffff;
}

/* КНОПКА HERO "ЗАБРОНИРОВАТЬ СЕЙЧАС" - ЗЕЛЕНАЯ ОБВОДКА + ЧЕРНЫЙ ТЕКСТ */
a.gradient-button {
  width: auto;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 700;
  background: transparent;
  border: 3px solid #52c282;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(82, 194, 130, 0.3);
  text-decoration: none;
  display: inline-block;
}

a.gradient-button .gradient-text {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #1a1a1a;
  background-clip: unset;
  color: #1a1a1a;
  font-weight: 700;
  animation: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

a.gradient-button:hover {
  background: #52c282;
  border-color: #2d8659;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(82, 194, 130, 0.5);
}

a.gradient-button:hover .gradient-text {
  color: #ffffff;
}

/* ============================ SERVICE CARDS ============================ */

.service-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  box-shadow: var(--shadow-green);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--light-green);
  box-shadow: 0 10px 30px rgba(45, 134, 89, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-green);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
}

.service-card:hover .service-icon {
  transform: rotateY(180deg);
}

.service-icon i {
  font-size: 36px;
  color: var(--white);
}

.service-card h5 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* ============================ PROMOTION CARDS ============================ */

.promotion-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  border: 3px solid var(--light-green);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-green);
  height: 100%;
  text-align: center;
}

.promotion-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(82, 194, 130, 0.25);
  border-color: var(--primary-green);
}

.promotion-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promotion-icon i {
  font-size: 40px;
  color: var(--white);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.promotion-badge {
  display: inline-block;
  background: var(--gradient-warm);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 18px;
  margin-top: 15px;
  box-shadow: 0 4px 15px rgba(255, 138, 61, 0.3);
}

.promotion-card h5 {
  color: var(--text-dark);
  font-size: 20px;
  margin-bottom: 1rem;
}

.promotion-card p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================ MODAL STYLES ============================ */

.modal-content {
  border-radius: 24px;
  border: none;
  box-shadow: 0 20px 60px rgba(45, 134, 89, 0.3);
  backdrop-filter: blur(20px);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  background: var(--gradient-green);
  color: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 2rem;
  border: none;
}

.modal-title {
  font-size: 28px;
  font-weight: 800;
}

.modal-body {
  padding: 2.5rem;
}

/* Form styles */
.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  font-size: 15px;
}

.form-control, .form-select {
  padding: 1rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  transition: var(--transition-smooth);
  background: var(--white);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(45, 134, 89, 0.1);
  outline: none;
}

/* Flatpickr calendar styles */
.flatpickr-calendar {
  border-radius: 16px !important;
  box-shadow: 0 15px 40px rgba(45, 134, 89, 0.2) !important;
  border: none !important;
}

.flatpickr-day.selected {
  background: var(--gradient-green) !important;
  border-color: transparent !important;
}

.flatpickr-day.disabled {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  color: var(--white) !important;
  position: relative;
}

.flatpickr-day.disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.3) 60%, transparent 60%);
}

.flatpickr-day:not(.disabled):not(.selected):hover {
  background: rgba(82, 194, 130, 0.1) !important;
  border-color: var(--primary-green) !important;
}

/* ============================ FLOATING ACTION BUTTON - ЗЕЛЕНАЯ ============================ */

.floating-book-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(82, 194, 130, 0.4);
  cursor: pointer;
  z-index: 999;
  transition: var(--transition-bounce);
  animation: floatingPulse 2s ease-in-out infinite;
}

@keyframes floatingPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.floating-book-btn:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 15px 40px rgba(82, 194, 130, 0.6);
}

.floating-book-btn i {
  font-size: 28px;
  color: var(--white);
}

/* ============================ BUTTONS - ВСЕ ЗЕЛЕНЫЕ ============================ */

.btn-primary, .btn-success {
  background: var(--gradient-green);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  color: var(--white);
  transition: var(--transition-bounce);
  box-shadow: 0 4px 15px rgba(82, 194, 130, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover, .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82, 194, 130, 0.5);
  color: var(--white);
}

.btn-warning {
  background: var(--gradient-warm);
  border: none;
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 138, 61, 0.3);
  transition: var(--transition-bounce);
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 138, 61, 0.5);
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(135deg, #5a7169 0%, #495057 100%);
  border: none;
  color: var(--white);
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  color: var(--white);
}

/* ============================ SCROLL TO TOP ============================ */

.scroll-to-top {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 998;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(82, 194, 130, 0.4);
}

/* ============================ UTILITIES ============================ */

.text-gradient {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-green);
}

/* Loading spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid var(--bg-light);
  border-top-color: var(--primary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================ RESPONSIVE ============================ */

@media (max-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  h3 { font-size: 28px; }
  
  .hero-section h1 {
    font-size: 48px;
    letter-spacing: -1px;
  }
  
  .btn-hero {
    padding: 1rem 2rem;
    font-size: 16px;
  }
  
  .floating-book-btn {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
  }
  
  .floating-book-btn i {
    font-size: 24px;
  }
  
  .houses-grid {
    gap: 2rem;
  }
}

/* ============================ AOS ENHANCEMENTS ============================ */

[data-aos] {
  transition-duration: 0.8s;
}

[data-aos="fade-up"] {
  transform: translateY(40px);
  opacity: 0;
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
  opacity: 1;
}

/* ============================ ПРИРОДНЫЕ АКЦЕНТЫ ============================ */

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.nature-accent {
  position: relative;
}

.nature-accent::after {
  content: '🍃';
  position: absolute;
  bottom: -20px;
  right: 20px;
  font-size: 40px;
  opacity: 0.2;
  animation: float 3s ease-in-out infinite;
}
