/* ============================================
   FOOTER — Академическая клиника
   ============================================ */

/* Убираем стандартный футер Astra — специфичность через body.wp-theme-astra */
body.wp-theme-astra .ast-footer-overlay,
body.wp-theme-astra .site-footer-focus-item,
body.wp-theme-astra .ast-small-footer,
body.wp-theme-astra .ast-small-footer-section-1,
body.wp-theme-astra .ast-small-footer-section-2,
body.wp-theme-astra .site-below-footer-wrap,
body.wp-theme-astra .ast-footer-copyright,
body.wp-theme-astra #colophon {
  display: none;
}

/* Основной контейнер футера */
.site-footer {
  width: 100vw;
  max-width: 100%;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

/* Градиентная полоса (белый → синий → красный) */
.footer-gradient-strip {
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #FFFFFF 0%, #3A96E8 50%, #E31F26 100%);
}

/* Фон футера — тёмный + декор */
.footer-bg {
  position: relative;
  background: #111827;
  padding: 60px 0 40px 0;
  overflow: hidden;
}

/* SVG-декоры */
.footer-decor {
  position: absolute;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.13;
}
.footer-decor-top {
  top: 0;
  left: 0;
}
.footer-decor-bottom {
  bottom: 0;
  left: 0;
}

/* Внутренняя сетка 4 колонки */
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: content-box;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 32px;
}

/* Колонки */
.footer-col-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px 0;
}
.footer-col-title--legal {
  margin-top: 28px;
}

/* О клинике */
.footer-logo img {
  max-width: 200px;
  height: auto;
  margin-bottom: 18px;
}
.footer-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 10px 0;
}

/* Соцсети */
.footer-social {
  margin-top: 20px;
}
.footer-social-label {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
}
.footer-social-icons {
  display: flex;
  gap: 12px;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.2s;
}
.footer-social-link:hover {
  transform: scale(1.15);
}
.footer-social-link svg {
  width: 36px;
  height: 36px;
}

/* Ссылки услуг */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #cbd5e1;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #3A96E8;
}

/* Режим работы */
.footer-schedule-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer-schedule-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Контакты */
.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.6;
}
.footer-contact-row a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-row a:hover {
  color: #3A96E8;
}
.footer-contact-row svg {
  flex-shrink: 0;
}

/* Юридические данные */
.footer-legal {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.8;
}

/* Копирайт-полоса внизу */
.footer-bottom {
  background: #0d1321;
  padding: 16px 0;
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.85rem;
}
.footer-bottom-inner a,
.footer-bottom-inner button {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-inner a:hover,
.footer-bottom-inner button:hover {
  color: #3A96E8;
}

.footer-dev-credit {
  font-size: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-dev-credit:hover {
  opacity: 1;
}

/* ============== АДАПТИВ ============== */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bg {
    padding: 40px 0 24px 0;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .footer-dev-credit {
    order: 99;
  }
  
  /* Центрирование всего контента футера */
  .footer-col {
    text-align: center;
  }
  .footer-col-about {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-social-icons {
    justify-content: center;
  }
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-schedule-row,
  .footer-contact-row {
    justify-content: center;
  }
}
