/* ==========================================================================
   ПІДВАЛ САЙТУ — КОМПАКТНИЙ ТЕМНИЙ (css/footer.css)
   Компанія: APFEL EXPERT (APFEL GROUP)
   ========================================================================== */

/* 1. Глибокий темний фон підвалу */
.footer {
  position: relative;
  background-color: #080E18;
  color: #F8FAFC;
  border-top: 1px solid #1E293B;
  overflow: hidden;
}

/* Зменшені вертикальні відступи для компактності */
.footer__container {
  padding-top: 45px;
  padding-bottom: 30px;
}

/* --- СІТКА НА 3 КОЛОНКИ НА ПК --- */
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

/* ================= ЛОГОТИП ТА БРЕНД (КОЛОНКА 1) ================= */
.footer__logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer__logo-img {
  width: 170px;
  height: auto;
  object-fit: contain;
  display: block;
}

.footer__desc {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 360px;
}

.footer__desc strong {
  color: #FFFFFF;
  font-weight: 700;
}

/* Соціальні мережі та месенджери */
.footer__socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__socials-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.5px;
}

.footer__messengers {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Кнопки іконок (TG, Viber, Insta, FB) */
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #131E2D;
  border: 1px solid #334155;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.footer__social-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.footer__social-link:hover {
  background: #1E293B;
  border-color: #63AF38;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 175, 56, 0.3);
}

.footer__social-link:hover img {
  transform: scale(1.1);
}

/* Індивідуальне свічення при наведенні на Instagram та Facebook */
.footer__social-link--insta:hover {
  border-color: #E1306C;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}

.footer__social-link--fb:hover {
  border-color: #1877F2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.3);
}

/* ================= НАВІГАЦІЯ (КОЛОНКА 2) ================= */
.footer__title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.footer__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  font-size: 0.88rem;
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.footer__link:hover {
  color: #86EFAC;
  transform: translateX(4px);
}

/* ================= КОНТАКТИ ТА ОФІСИ (КОЛОНКА 3) ================= */
.footer__contacts-quick {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.footer__phone {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__phone:hover {
  color: #86EFAC;
}

.footer__email {
  font-size: 0.88rem;
  color: #63AF38;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.footer__email:hover {
  color: #FFFFFF;
}

.footer__offices-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__office-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__office-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #63AF38;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.footer__office-address {
  font-size: 0.85rem;
  color: #E2E8F0;
  line-height: 1.35;
}

/* ================= НИЖНЯ СМУГА КОПІРАЙТУ ================= */
.footer__bottom {
  margin-top: 25px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #060A12;
}

.footer__bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__copyright {
  font-size: 0.82rem;
  color: #64748B;
  margin: 0;
}

.footer__copyright strong {
  color: #CBD5E1;
}

.footer__back-to-top {
  font-size: 0.82rem;
  font-weight: 700;
  color: #63AF38;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__back-to-top:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   АДАПТИВНІСТЬ ДЛЯ ПЛАНШЕТІВ ТА СМАРТФОНІВ (MOBILE-FIRST)
   ========================================================================== */

@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer__col--contacts {
    grid-column: span 2;
  }

  .footer__offices-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* СМАРТФОНИ: Тотальна компактність, зменшені відступи */
@media (max-width: 600px) {
  .footer__container {
    padding-top: 28px; /* Зроблено компактніше */
    padding-bottom: 20px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 20px; /* Зменшено відстань між колонками */
  }

  .footer__col--contacts {
    grid-column: span 1;
  }

  /* Логотип та опис */
  .footer__logo {
    margin-bottom: 10px;
  }

  .footer__logo-img {
    width: 150px; /* Зменшено логотип на моб */
  }

  .footer__desc {
    margin-bottom: 14px;
    font-size: 0.85rem;
    line-height: 1.45;
  }

  /* Соцмережі */
  .footer__socials-label {
    margin-bottom: 2px;
  }

  .footer__messengers {
    gap: 8px; /* Щільніше */
  }

  .footer__social-link {
    width: 36px; /* Зменшено іконки */
    height: 36px;
    border-radius: 8px;
  }

  .footer__social-link img {
    width: 20px;
    height: 20px;
  }

  /* Навігація */
  .footer__title {
    margin-bottom: 10px;
    font-size: 0.88rem;
  }

  .footer__menu {
    gap: 6px; /* Щільніші пункти меню */
  }

  /* Контакти */
  .footer__contacts-quick {
    margin-bottom: 12px;
  }

  .footer__phone {
    font-size: 1.15rem; /* Трохи зменшено */
  }

  .footer__offices-list {
    grid-template-columns: 1fr;
    gap: 10px; /* Щільніше між адресами */
  }

  .footer__office-address {
    font-size: 0.82rem;
  }

  /* Копірайт і кнопка "Нагору" */
  .footer__bottom {
    margin-top: 15px; /* Компактніше */
    padding: 14px 0;
  }

  .footer__bottom-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 8px;
  }

  .footer__copyright {
    font-size: 0.78rem;
  }
}