/*
================================================
ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ ПОДВАЛА (ФУТЕРА)
================================================
*/

/* Запрет горизонтальной прокрутки */
html, body {
    overflow-x: hidden;
}

/* --- 1. Основной контейнер подвала --- */
.site-footer {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  background: #1a1a1a;
  color: #f5f5f7;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
}

/* --- 2. Внутренний контейнер для контента --- */
.footer-content {
  max-width: 1100px; 
  margin: 0 auto;
  padding: 60px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

/* --- 3. Стилизация колонок --- */
.footer-col.footer-logo-slogan {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 2 1 40%;
  min-width: 300px;
}
.footer-logo img {
  width: 100px;
  height: auto;
  filter: grayscale(1) brightness(1.5);
}
.footer-slogan {
  font-size: 16px;
  line-height: 1.4;
}
.footer-slogan b {
  color: #fff;
  font-weight: 600;
}
.footer-slogan-minor {
  display: block;
  color: #b0b0b0;
  font-size: 14px;
  font-weight: 400;
  margin-top: 8px;
}
.footer-col.footer-address,
.footer-col.footer-contacts {
  flex: 1 1 25%;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-heading {
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  margin-bottom: 5px;
}

/* Выравнивание контактов с помощью Grid */
.contact-rows {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 10px;
  align-items: center;
}
.footer-label {
  color: #a0a0a0;
  text-align: right;
}
.footer-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.footer-contact-link {
  color: #f5f5f7;
  text-decoration: none;
  transition: color .2s;
  display: inline-flex; 
  align-items: center;
  gap: 8px;
}
.footer-contact-link:hover {
  color: #2997ff;
}

/* ========================================================== */
/* === ИСПРАВЛЕНИЕ 3 (УСИЛЕННАЯ ВЕРСИЯ): Убираем рамку при клике (фокусе) === */
/* ========================================================== */
/* Теперь это правило применяется ко ВСЕМ ссылкам в подвале и использует !important для гарантии */
.site-footer a:focus, 
.site-footer a:focus-visible {
    outline: none !important; /* Гарантированно убираем рамку фокуса */
    box-shadow: none !important; /* Гарантированно убираем тень */
}
/* === КОНЕЦ ИСПРАВЛЕНИЯ === */

/* Градиент для телефона */
.footer-phone {
  font-weight: 700;
  font-size: 17px;
  background: linear-gradient(90deg, #42a5f5, #ab47bc, #ef5350);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-phone:hover {
  background: linear-gradient(90deg, #64b5f6, #ce93d8, #ff8a65);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- 4. Нижняя часть подвала (копирайт) --- */
.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 40px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a0a0a0;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-link {
  color: #a0a0a0;
  text-decoration: none;
  transition: color .2s;
}
.footer-bottom-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* --- 5. Адаптивность для мобильных устройств --- */
@media (max-width: 992px) {
  .footer-content { gap: 30px; }
  .footer-col.footer-logo-slogan { flex-basis: 100%; }
}
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column; 
    align-items: center;
    text-align: center;
    padding: 40px 20px;
  }
  .contact-rows {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .footer-label {
    display: none;
  }
  .footer-col.footer-logo-slogan { flex-direction: column; gap: 20px; }
  .footer-col.footer-address, .footer-col.footer-contacts { align-items: center; }
  .footer-bottom { flex-direction: column; justify-content: center; gap: 15px; }
}
/* ==========================================================
   ГЛОБАЛЬНЫЙ ФИКС: Убираем отступы темы вокруг контента
   ========================================================== */
main.wp-site-blocks {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}