/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  background: #0a2a6b;
  color: #ffffff;
  position: relative;
  z-index: 10;
}

/* ---------- ГЛАВНАЯ: прозрачный, соцсети | адрес | телефон ---------- */
body.home .site-footer,
body.front-page .site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  box-shadow: none;
  z-index: 5;
}

body.home .site-footer .footer-inner,
body.front-page .site-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-height: auto;
  padding: 18px 0 22px;
  background: transparent;
}

body.home .footer-contacts,
body.front-page .footer-contacts {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
  width: 100%;
}

body.home .footer-contacts .footer-social,
body.front-page .footer-contacts .footer-social {
  order: 1;
}

body.home .footer-contacts .address,
body.front-page .footer-contacts .address {
  order: 2;
}

body.home .footer-contacts .phone,
body.front-page .footer-contacts .phone {
  order: 3;
  text-align: right;
}

/* ---------- ВНУТРЕННИЕ СТРАНИЦЫ: как на скрине ---------- */
body:not(.home):not(.front-page) .site-footer {
  background: #0a2a6b;
}

body:not(.home):not(.front-page) .footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 36px 0;
  min-height: 120px;
}

/* Левая колонка — лого + название */
body:not(.home):not(.front-page) .footer-brand {
  display: flex;
  align-items: center;
  gap: 1px;
  justify-self: start;
}

body:not(.home):not(.front-page) .footer-brand img,
body:not(.home):not(.front-page) .footer-logo {
  max-height: 76px;
  width: auto;
}

body:not(.home):not(.front-page) .footer-brand .footer-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  max-width: 200px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Центр — меню столбиком */
body:not(.home):not(.front-page) .footer-nav {
  justify-self: center;
}

body:not(.home):not(.front-page) .footer-nav .menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

body:not(.home):not(.front-page) .footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

body:not(.home):not(.front-page) .footer-nav a:hover {
  color: #ffffff;
}

/* Правая колонка — телефон, адрес, соцсети */
body:not(.home):not(.front-page) .footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  justify-self: end;
  text-align: right;
}

body:not(.home):not(.front-page) .footer-contacts .phone {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  order: 1;
}

body:not(.home):not(.front-page) .footer-contacts .phone small {
  display: block;
  font-size: 18px;
  font-weight: 600;
  opacity: 0.95;
  margin-top: 2px;
}

body:not(.home):not(.front-page) .footer-contacts .address {
  font-size: 13px;
  opacity: 0.85;
  order: 2;
  margin-top: 4px;
}

body:not(.home):not(.front-page) .footer-contacts .footer-social {
  order: 3;
  margin-top: 8px;
  gap: 4px;
  justify-content: flex-end;
}

/* ---------- Общие элементы ---------- */
.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-contacts .phone {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-contacts .phone small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
}

.footer-contacts .address {
  font-size: 14px;
  opacity: 0.9;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 2px;
}

.footer-social a.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social a.social-icon:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-social a.social-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ---------- Мобилка ---------- */
@media (max-width: 900px) {
  body:not(.home):not(.front-page) .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
    padding: 32px 0;
  }

  body:not(.home):not(.front-page) .footer-brand,
  body:not(.home):not(.front-page) .footer-nav,
  body:not(.home):not(.front-page) .footer-contacts {
    justify-self: center;
    align-items: center;
    text-align: center;
  }

  body:not(.home):not(.front-page) .footer-nav .menu {
    align-items: center;
  }

  body:not(.home):not(.front-page) .footer-contacts .footer-social {
    justify-content: center;
  }

  body.home .footer-contacts,
  body.front-page .footer-contacts {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  body.home .footer-contacts .phone,
  body.front-page .footer-contacts .phone {
    margin-left: 0;
    text-align: center;
  }
}