/* === FOOTER === */
.site-footer {
  background: linear-gradient(180deg, #0c0c0c 0%, #1a1a1a 100%);
  color: #ccc;
  font-family: "Inter", sans-serif;
  position: relative;
  overflow: hidden;
}

/* Top */
.footer-top {
  padding: 60px 20px 40px;
  position: relative;
  z-index: 1;
}

/* Grid (десктоп) */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Brand */
.footer-title {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #aaa;
}

/* Headings */
.footer-menu h5,
.footer-contact h5,
.footer-social h5 {
  color: #0d7a32;
  font-weight: 600;
  margin-bottom: 22px;
  position: relative;
}

/* Lists */
.footer-menu ul,
.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 8px;
}

/* Links in menu */
.footer-menu a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}

.footer-menu a:hover,
.footer-menu a:focus {
  color: #0d7a32;
  transform: translateX(3px);
}

/* Contact */
.footer-contact p {
  margin-bottom: 8px;
}

.footer-contact a {
  color: #0d7a32;
  text-decoration: none;
}

/* === Кнопка обратной связи (исправлена читаемость) === */
.btn-feedback {
  display: inline-block;
  padding: 8px 14px;
  background: linear-gradient(135deg, #0d7a32, #086029);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 80, 30, 0.45);
  border: 1px solid rgba(255,255,255,0.03);
}

/* Контрастный фокус и hover (доступность) */
.btn-feedback:hover,
.btn-feedback:focus {
  background: linear-gradient(135deg, #14a346, #0d7a32);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 80, 30, 0.55);
  outline: none;
}

.btn-feedback:focus-visible {
  box-shadow: 0 0 0 4px rgba(13,122,50,0.18), 0 6px 18px rgba(0,80,30,0.55);
}

/* --- Соцсети --- */
.social-icons {
  display: flex;
  gap: 14px;
  margin-bottom: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #222;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: #ccc;
  font-size: 1.3rem;
  transition: all 0.22s ease;
  text-decoration: none;
}

.social-icons a:hover,
.social-icons a:focus {
  color: #fff;
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* VK SVG sizing (встроенный) */
.social-vk svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* брендовые ховеры */
.social-icons a[title="Telegram"]:hover { background-color: #2AABEE; }
.social-icons a[title="YouTube"]:hover { background-color: #FF0000; }
.social-icons a[title="VK"]:hover { background-color: #4C75A3; }
.social-icons a[title="Instagram"]:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Правовые ссылки */
.footer-legal {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal li {
  margin-bottom: 5px;
}

.footer-legal a {
  color: #888;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-legal a:hover,
.footer-legal a:focus {
  color: #0d7a32;
}

/* Нижняя часть */
.footer-bottom {
  background-color: #0b0b0b;
  border-top: 1px solid #222;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  color: #777;
}

/* Анимация подсветки (аккуратно, не ломает десктоп) */
.footer-menu a::after,
.footer-legal a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background-color: #0d7a32;
  transition: width 0.28s ease;
}

.footer-menu a:hover::after,
.footer-legal a:hover::after {
  width: 100%;
}

/* === Адаптив (мобилка) - scoped и аккуратно === */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Центрируем соцсети без изменения остального */
  .social-icons {
    justify-content: center;
  }

  /* Кнопка обратной связи по центру */
  .btn-feedback {
    margin-left: auto;
    margin-right: auto;
  }

  /* чуть уменьшаем отступы заголовков на мобильных */
  .footer-menu h5,
  .footer-contact h5,
  .footer-social h5 {
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .footer-desc {
    text-align: center;
  }

  /* мобильные ссылки — чуть больше кликабельной зоны */
  .footer-menu a,
  .footer-legal a {
    display: inline-block;
    padding: 6px 0;
  }
}
