/* ==========================================================================
   Footer
   ========================================================================== */
.zg3-footer {
  background: var(--zg3-dark);
  color: var(--zg3-white);
  padding: var(--zg3-sp-64) 0 var(--zg3-sp-32);
  position: relative;
  z-index: 1;
}

.zg3-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--zg3-sp-40);
}
@media (min-width: 768px) {
  .zg3-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .zg3-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

/* Brand */
.zg3-footer__logo {
  display: flex;
  align-items: center;
  gap: var(--zg3-sp-12);
  margin-bottom: var(--zg3-sp-16);
}
.zg3-footer__logo img {
  width: 48px;
  border-radius: var(--zg3-r-md);
}
.zg3-footer__logo strong {
  font-size: 18px;
}

.zg3-footer__tagline {
  font-size: var(--zg3-fs-body);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--zg3-sp-24);
}

.zg3-footer__legal {
  display: flex;
  flex-direction: column;
  gap: var(--zg3-sp-4);
}

/* Column */
.zg3-footer__heading {
  font-size: var(--zg3-fs-micro);
  font-weight: var(--zg3-fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--zg3-sp-16);
}

.zg3-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--zg3-sp-8);
}
.zg3-footer__nav a {
  font-size: var(--zg3-fs-small);
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.zg3-footer__nav a:hover { color: var(--zg3-white); }

/* Phones */
.zg3-footer__phones {
  display: flex;
  flex-direction: column;
  gap: var(--zg3-sp-8);
  margin-bottom: var(--zg3-sp-16);
}
.zg3-footer__phone-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--zg3-sp-8);
  padding: var(--zg3-sp-8) var(--zg3-sp-16);
  background: var(--zg3-secondary);
  color: var(--zg3-white);
  border-radius: var(--zg3-r-full);
  font-size: var(--zg3-fs-micro);
  font-weight: var(--zg3-fw-medium);
  transition: transform 0.2s, background 0.2s;
  width: fit-content;
}
.zg3-footer__phone-btn:hover {
  transform: scale(1.03);
  background: #6510e0;
}

.zg3-footer__email {
  display: block;
  font-size: var(--zg3-fs-small);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--zg3-sp-12);
  transition: color 0.2s;
}
.zg3-footer__email:hover { color: var(--zg3-white); }

.zg3-footer__address {
  display: flex;
  align-items: center;
  gap: var(--zg3-sp-8);
  font-size: var(--zg3-fs-small);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--zg3-sp-4);
}

.zg3-footer__location {
  display: flex;
  flex-direction: column;
  gap: var(--zg3-sp-4);
  margin-bottom: var(--zg3-sp-16);
}

/* VK button — inline with other contact items */
.zg3-footer__vk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--zg3-secondary);
  color: var(--zg3-white);
  margin-top: 0;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.zg3-footer__vk:hover { transform: scale(1.1); }

/* Bottom bar */
.zg3-footer__bottom {
  margin-top: var(--zg3-sp-48);
  padding-top: var(--zg3-sp-24);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

/* Mobile footer: cover the body padding-bottom that's added for the fixed nav bar */
@media (max-width: 1023px) {
  .zg3-footer {
    padding-bottom: calc(80px + var(--zg3-sp-16));
  }
  .zg3-footer__bottom {
    margin-top: var(--zg3-sp-24);
    padding-top: var(--zg3-sp-16);
    padding-bottom: 0;
  }
}
