/* css/modern-style.css */

/* 1. Глобальные настройки */
body { background-color: #f4f7f6; color: #2c3e50; font-family: 'Montserrat', sans-serif; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.5px; }

/* 2. Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(76, 175, 80, 0.15);
}

/* 3. Hero Section */
.hero-modern {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
}
.hero-title {
  font-size: 4rem; 
  line-height: 1.1; 
  margin-bottom: 20px;
  font-weight: 800;
}

/* 4. Кнопки (С эффектом бесконечного переливания) */
.btn-modern {
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

/* Анимация движения градиента */
@keyframes gradient-shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn-gradient {
  /* Создаем сложный градиент: Темный зеленый -> Основной -> Светлый блик -> Основной -> Темный */
  background: linear-gradient(
    45deg, 
    #6c9c08, 
    #B2D430, 
    #f4ffc4, 
    #B2D430, 
    #6c9c08
  );
  /* Увеличиваем размер фона, чтобы было чему двигаться */
  background-size: 300% 300%;
  
  /* Запускаем бесконечную анимацию: 2 секунды (быстро) */
  animation: gradient-shimmer 2s ease-in-out infinite;
  
  color: #fff;
  box-shadow: 0 10px 20px rgba(178, 212, 48, 0.4);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Чтобы текст читался на светлом блике */
}

/* Эффект при наведении: ускорение или увеличение */
.btn-gradient:hover {
  transform: translateY(-3px) scale(1.05); /* Кнопка чуть всплывает и растет */
  box-shadow: 0 15px 30px rgba(178, 212, 48, 0.7);
  color: #fff;
  /* Можно ускорить анимацию при наведении, раскомментируйте строчку ниже */
  /* animation-duration: 1s; */
}

/* Кнопка "Связаться" в хедере и другие второстепенные */
.btn-ghost-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  transition: all 0.3s;
}

.btn-ghost-white:hover {
  background: #fff;
  color: #2c3e50;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
}

/* 5. Bento Grid */
.bento-grid { padding: 80px 0; }
.category-card {
  height: 350px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
  cursor: pointer;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.category-card:hover img { transform: scale(1.1); }
.category-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 30px;
  color: #fff;
}
.category-card.large { height: 730px; }

/* 6. Stats Section */
.stats-section {
  background: #1a1a1a;
  padding: 80px 0;
  color: #fff;
  border-radius: 30px;
  margin: 0 15px; 
}
.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #B2D430;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

/* 7. Адаптивность (Mobile) */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .category-card.large { height: 350px; }
  .stats-section { padding: 40px 0; margin: 0; border-radius: 0; }
  .stat-number { font-size: 2.5rem; }
}


/* --- ДОБАВИТЬ В КОНЕЦ css/modern-style.css --- */

/* 8. Стили для форм (Contact Page) */
.form-modern .form-control {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border-radius: 10px;
    padding: 25px 20px; /* Увеличенные поля */
    height: auto;
    font-size: 16px;
    transition: all 0.3s;
}
.form-modern .form-control:focus {
    border-color: #B2D430;
    box-shadow: 0 5px 20px rgba(178, 212, 48, 0.2);
}
.form-modern label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* 9. Стили для статей (Promo Page) */
.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: #4a4a4a;
}
.article-body h2 {
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2c3e50;
}
.article-body p { margin-bottom: 25px; }
.article-body blockquote {
    border-left: 4px solid #B2D430;
    background: #fff;
    padding: 30px;
    font-style: italic;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 0 10px 10px 0;
}
.sidebar-widget {
    margin-bottom: 30px;
    padding: 30px;
}
.sidebar-widget h3 {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* --- СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА --- */

/* Затемнение фона (Backdrop) */
.modal-backdrop.in {
    opacity: 0.8;
    background-color: #1a1a1a; /* Темный фон вместо стандартного черного */
}

/* Центрирование окна */
.modal-dialog {
    margin-top: 10vh;
}

/* Стилизация контента окна */
.modal-content.glass-card {
    background: #fff; /* Белый фон для читаемости */
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border-radius: 20px;
}

/* Кнопка закрытия (крестик) */
.modal-header .close {
    font-size: 30px;
    font-weight: 300;
    opacity: 0.5;
    transition: opacity 0.3s;
    outline: none;
}
.modal-header .close:hover {
    opacity: 1;
    color: #B2D430;
}

/* Поля ввода внутри модалки */
.modal-body .form-control {
    background: #f9f9f9;
    border: 1px solid #eee;
    font-size: 15px;
}
.modal-body .form-control:focus {
    background: #fff;
    border-color: #B2D430;
}
/* --- Юридический блок в футере --- */
.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
}
.footer-legal a {
    color: rgba(255,255,255,0.6);
    text-decoration: underline;
}
.footer-legal a:hover {
    color: #B2D430;
}