/* ========================================
   ЛЕСНОЙ ДОЗОР - Основной стиль
   Современный дизайн в лесных тонах
   ======================================== */

:root {
  /* Цветовая палитра */
  --forest-dark: #1a472a;      /* Тёмный лесной */
  --forest-primary: #2d6a4f;   /* Основной зелёный */
  --forest-medium: #40916c;    /* Средний зелёный */
  --forest-light: #74c69d;     /* Светлый зелёный */
  --forest-pale: #b7e4c7;      /* Бледный зелёный */
  --accent-lime: #95d5b2;      /* Акцентный */
  --accent-orange: #e9c46a;    /* Оранжевый акцент (костёр) */
  --accent-red: #e76f51;       /* Красный (тревога) */
  --text-dark: #1d1d1d;        /* Тёмный текст */
  --text-light: #f8f9fa;       /* Светлый текст */
  --white: #ffffff;
  --bg-light: #f0f7f4;         /* Светлый фон */
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(26, 71, 42, 0.1);
  --shadow-md: 0 4px 12px rgba(26, 71, 42, 0.15);
  --shadow-lg: 0 8px 24px rgba(26, 71, 42, 0.2);
  
  /* Радиусы */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  
  /* Переходы */
  --transition: all 0.3s ease;
}

/* ========================================
   Базовые стили
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-light) 0%, #d8f3dc 100%);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* ========================================
   Навигация
   ======================================== */
.navbar {
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-primary) 100%);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo svg {
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255, 255, 255, 0.2);
}

/* Мобильное меню */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========================================
   Контейнер
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 40px;
}

/* ========================================
   Заголовки
   ======================================== */
h1 {
  font-size: 2.5rem;
  color: var(--forest-dark);
  margin-bottom: 1rem;
  text-align: center;
}

h2 {
  font-size: 1.8rem;
  color: var(--forest-primary);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.3rem;
  color: var(--forest-dark);
  margin-bottom: 0.5rem;
}

/* ========================================
   Кнопки
   ======================================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--forest-primary) 0%, var(--forest-medium) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--forest-medium) 0%, var(--forest-light) 100%);
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.3rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ========================================
   Карточки
   ======================================== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-grid a.card:hover {
  background: linear-gradient(135deg, var(--forest-pale) 0%, var(--forest-light) 100%);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* ========================================
   Формы
   ======================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--forest-dark);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--forest-pale);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--forest-medium);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.2);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-hint {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Типы проблем - кнопки выбора */
.problem-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.problem-type {
  background: var(--bg-light);
  border: 2px solid var(--forest-pale);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.problem-type:hover {
  border-color: var(--forest-medium);
  background: var(--forest-pale);
}

.problem-type.selected {
  background: var(--forest-primary);
  border-color: var(--forest-dark);
  color: var(--white);
}

/* Стили для кнопки-ссылки "Костер" */
a.problem-type:hover {
  background: linear-gradient(135deg, #e76f51 0%, #f4a261 100%);
  border-color: #e76f51;
}

a.problem-type:hover .problem-type-label {
  color: var(--white);
}

.problem-type-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.problem-type-label {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Чекбокс согласия */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--forest-primary);
}

.checkbox-group label {
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* ========================================
   Hero секция
   ======================================== */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--forest-pale) 0%, var(--forest-light) 100%);
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
}

.hero-emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--forest-dark);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Шаги (How it works)
   ======================================== */
.steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

.step {
  flex: 1;
  min-width: 150px;
  max-width: 250px;
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step-number {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 1rem;
  color: var(--text-dark);
}

/* ========================================
   Карточки памятки
   ======================================== */
.guide-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.guide-card-icon {
  font-size: 3.5rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--forest-pale) 0%, var(--forest-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-card-icon svg {
  width: 64px;
  height: 64px;
}

.guide-card-content {
  padding: 1.5rem;
}

.guide-card-title {
  font-size: 1.2rem;
  color: var(--forest-dark);
  margin-bottom: 0.75rem;
}

.guide-card-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

/* ========================================
   Мотивационный блок
   ======================================== */
.motivation {
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-primary) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.motivation h2 {
  color: var(--white);
}

.motivation-text {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.motivation-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.motivation-list li {
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--forest-dark);
  color: var(--forest-pale);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

.footer-text {
  font-size: 0.9rem;
}

/* ========================================
   Адаптивность
   ======================================== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .hero-emoji {
    font-size: 3rem;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    width: 100%;
  }
  
  .problem-types {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .container {
    padding-top: 80px;
  }
}

@media (max-width: 480px) {
  .problem-types {
    grid-template-columns: 1fr;
  }
  
  .btn-large {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }
  
  .motivation-list li {
    width: 100%;
  }
}

/* ========================================
   Анимации
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Пульсация для кнопки */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(45, 106, 79, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 106, 79, 0);
  }
}

.btn-pulse {
  animation: pulse 2s infinite;
}
