/* === FOOTER (адаптивный, только футер) === */
: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;
}

footer {
  background-color: #0a1f12;
  color: #dce8de;
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.8rem;
  text-decoration: none;
}

.footer-logo-icon {
  font-size: 1.6rem;
}

.footer-tagline {
  font-size: 0.88rem;
  opacity: 0.75;
  margin-bottom: 1.2rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-contact {
  margin-bottom: 0.4rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-contact a {
  color: #86efac;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #4ade80;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Unbounded', sans-serif;
}

.footer-col a {
  display: block;
  color: #b0ccb4;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-col a:hover {
  color: #86efac;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ========= АДАПТИВНОСТЬ FOOTER ========= */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  footer {
    padding: 2.5rem 1.5rem 1.2rem;
  }

  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-logo {
    font-size: 1.3rem;
  }

  .footer-logo-icon {
    font-size: 1.4rem;
  }

  .footer-tagline {
    font-size: 0.82rem;
    max-width: 240px;
  }

  .footer-col h4 {
    font-size: 0.9rem;
  }

  .footer-col a {
    font-size: 0.82rem;
  }

  .footer-bottom {
    font-size: 0.74rem;
  }
}

/* Планшеты (до 900px) */
@media (max-width: 900px) {
  footer {
    padding: 2rem 1.2rem 1rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-logo {
    font-size: 1.2rem;
  }

  .footer-logo-icon {
    font-size: 1.3rem;
  }

  .footer-tagline {
    font-size: 0.8rem;
    max-width: 100%;
  }

  .footer-contact {
    font-size: 0.9rem;
  }

  .footer-col h4 {
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
  }

  .footer-col a {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }

  .footer-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    font-size: 0.72rem;
  }
}

/* Смартфоны (до 768px) */
@media (max-width: 768px) {
  footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
  }

  .footer-logo {
    font-size: 1.1rem;
    gap: 0.4rem;
  }

  .footer-logo-icon {
    font-size: 1.2rem;
  }

  .footer-tagline {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .footer-contact {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }

  .footer-col h4 {
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
  }

  .footer-col a {
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    font-size: 0.7rem;
    margin-top: 1.8rem;
    padding-top: 1rem;
  }
}

/* Смартфоны (до 600px) */
@media (max-width: 600px) {
  footer {
    padding: 1.8rem 0.8rem 0.8rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-logo {
    font-size: 1.2rem;
  }

  .footer-logo-icon {
    font-size: 1.4rem;
  }

  .footer-tagline {
    font-size: 0.82rem;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .footer-contact {
    font-size: 0.88rem;
  }

  .footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }

  .footer-col a {
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    font-size: 0.72rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
}

/* Маленькие смартфоны (до 480px) */
@media (max-width: 480px) {
  footer {
    padding: 1.5rem 0.7rem 0.7rem;
  }

  .footer-top {
    gap: 1.3rem;
  }

  .footer-logo {
    font-size: 1.1rem;
  }

  .footer-logo-icon {
    font-size: 1.2rem;
  }

  .footer-tagline {
    font-size: 0.78rem;
  }

  .footer-contact {
    font-size: 0.82rem;
  }

  .footer-col h4 {
    font-size: 0.85rem;
  }

  .footer-col a {
    font-size: 0.78rem;
  }

  .footer-bottom {
    font-size: 0.68rem;
  }
}

/* Очень маленькие устройства (до 380px) */
@media (max-width: 380px) {
  footer {
    padding: 1.2rem 0.5rem 0.6rem;
  }

  .footer-top {
    gap: 1rem;
  }

  .footer-logo {
    font-size: 1rem;
  }

  .footer-logo-icon {
    font-size: 1.1rem;
  }

  .footer-tagline {
    font-size: 0.74rem;
    line-height: 1.4;
  }

  .footer-contact {
    font-size: 0.78rem;
  }

  .footer-col h4 {
    font-size: 0.8rem;
  }

  .footer-col a {
    font-size: 0.74rem;
  }

  .footer-bottom {
    font-size: 0.65rem;
    margin-top: 1.2rem;
    padding-top: 0.8rem;
  }
}