/* ============================= 01) Footer Style ============================= */
.site-footer {
  background: #0f1724;
  color: rgba(255,255,255,0.85);
  padding: 48px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.site-footer a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus { color: #8fd1ff; text-decoration: underline; }

/* ============================= 02) Widgets Area ============================= */
.footer-widgets.container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}

@media (min-width: 800px) {
  .footer-widgets.container {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-col { padding: 0; color: rgba(255,255,255,0.9); }
.footer-col .widget-title { color: #ffffff; font-weight: 700; margin-bottom: 12px; }

/* About column / Target footer logo image specifically */
.site-footer__logo,
.footer-logo-fallback {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-bottom: 12px;
}
.site-footer__logo .footer-logo,
.footer-logo-fallback .custom-logo-link img,
.site-footer__logo img {
  max-width: 220px;
  max-height: 56px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Smaller logo on mobile */
@media (max-width: 680px) {
  .site-footer__logo .footer-logo,
  .footer-logo-fallback .custom-logo-link img,
  .site-footer__logo img {
    max-width: 160px;
    max-height: 48px;
  }
}

.footer-about { color: rgba(255,255,255,0.82); line-height: 1.6; margin-bottom: 12px; max-width: 380px; }

/* Social icons inline */
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social .footer-social-link img { width: 22px; height: 22px; display: block; object-fit: contain; opacity: 0.95; }

/* Footer lists */
.footer-menu, .footer-bottom-menu { flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.footer-menu li, .footer-bottom-menu li { margin: 6px 0; }
.footer-menu a { color: rgba(255,255,255,0.9); }

/* Contacts column */
.footer-col .footer-address,
.footer-col .footer-phone,
.footer-col .footer-email {
  color: rgba(255,255,255,0.88);
  margin-bottom: 8px;
}
.footer-col .footer-phone a,
.footer-col .footer-email a { color: rgba(255,255,255,0.95); }

/* ================================= 03) Bottom ================================= */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.03);
  margin-top: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
  background: transparent;
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ================================ 04) Mobile ================================ */
@media (max-width: 799px) {
  .footer-widgets.container { grid-template-columns: 1fr; padding: 0 16px; }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; }
}

/* =============================== 05) Back to Top =============================== */
.back-to-top {
  background: #5fb7e5;
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(11,95,255,0.12);
}
.back-to-top[hidden] { display: none !important; }

.footer-social .footer-social-link img { filter: none; }