/* === HERO (адаптивный, только hero-блок) === */
:root {
  --primary: #1b5e30;
  --primary-dark: #134523;
  --primary-light: #eaf5ec;
  --accent: #2ecc71;
  --white: #ffffff;
  --text: #1a2a1c;
  --text-secondary: #4a5b4d;
  --border: #dcebe0;
  --shadow-sm: 0 4px 10px rgba(20, 70, 30, 0.06);
  --shadow-md: 0 12px 28px rgba(20, 70, 30, 0.1);
  --shadow-lg: 0 20px 40px rgba(20, 70, 30, 0.12);
  --radius: 20px;
  --radius-lg: 28px;
  --transition: all 0.25s ease;
}

/* HERO */
.hero {
  position: relative;
  background: linear-gradient(135deg, #edf7f0 0%, #d7ecdd 45%, #b8f5d8 100%);
  padding: 5rem 3rem 4.5rem; 
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46,204,113,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27,94,48,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1 1 480px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
  color: var(--primary-dark);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(27,94,48,0.1);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(46,204,113,0.6);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid var(--primary);
  display: inline-block;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.btn-outline:hover {
  background-color: rgba(27,94,48,0.05);
  transform: translateY(-2px);
}

.hero-cards {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.stat-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  padding: 1.8rem 1.2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.6);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: white;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Смартфоны (до 600px) — ИСПРАВЛЕНО */
@media (max-width: 600px) {
  .hero {
    padding: 2.5rem 1rem 2rem;
    overflow: hidden;
  }

  .hero-inner {
    gap: 1.5rem;
    min-width: 0;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: 1.9rem;
    margin-bottom: 0.8rem;
  }

  .hero-sub {
    font-size: 0.85rem;
    margin-bottom: 1.3rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  /* ИСПРАВЛЕНИЕ ТАБЛИЧЕК */
  .hero-cards {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    max-width: 100%;
  }

  .stat-card {
    min-width: 0;
    padding: 1rem 0.5rem;
    border-radius: var(--radius);
    word-break: break-word;
  }

  .stat-num {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.7rem;
    line-height: 1.3;
  }
}

/* Маленькие смартфоны (до 480px) — ИСПРАВЛЕНО */
@media (max-width: 480px) {
  .hero {
    padding: 2rem 0.6rem 1.8rem;
    overflow: hidden;
  }

  .hero-inner {
    gap: 1.2rem;
    min-width: 0;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-sub {
    font-size: 0.8rem;
  }

  .btn-primary,
  .btn-outline {
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
  }

  /* ТАБЛИЧКИ НЕ ВЫЛЕЗАЮТ */
  .hero-cards {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    max-width: 100%;
  }

  .stat-card {
    min-width: 0;
    padding: 0.8rem 0.4rem;
    border-radius: 14px;
    word-break: break-word;
  }

  .stat-num {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.65rem;
    line-height: 1.3;
  }

  .hero::before {
    width: 150px;
    height: 150px;
    top: -40px;
    right: -30px;
  }

  .hero::after {
    width: 130px;
    height: 130px;
    bottom: -40px;
    left: -25px;
  }
}

/* Очень маленькие (до 380px) — ИСПРАВЛЕНО */
@media (max-width: 380px) {
  .hero {
    padding: 1.5rem 0.5rem 1.2rem;
    overflow: hidden;
  }

  .hero-inner {
    gap: 1rem;
    min-width: 0;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .hero-sub {
    font-size: 0.72rem;
  }

  .btn-primary,
  .btn-outline {
    padding: 0.7rem 0.8rem;
    font-size: 0.8rem;
  }

  .hero-cards {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    max-width: 100%;
  }

  .stat-card {
    min-width: 0;
    padding: 0.7rem 0.35rem;
    border-radius: 12px;
    word-break: break-word;
  }

  .stat-num {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.6rem;
    line-height: 1.2;
  }

  .hero::before {
    width: 100px;
    height: 100px;
    top: -30px;
    right: -20px;
  }

  .hero::after {
    width: 100px;
    height: 100px;
    bottom: -30px;
    left: -20px;
  }
}