.site-footer {
  background: linear-gradient(180deg, var(--ac-soft) 0%, var(--bg) 220px);
  color: var(--body-color);
  font-size: 0.8rem;
  border-top: 1px solid var(--ac-line);
  padding-top: 2rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: var(--animate);
}

.site-footer a:hover {
  color: var(--primary);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand img {
  width: auto;
  height: 34px;
}

.footer-tagline {
  flex: 1 1 260px;
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-left: auto;
}

.footer-region {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
  transition: var(--animate);
}

.footer-region[hidden] {
  display: none;
}

.footer-region:hover {
  border-color: var(--primary);
}

.footer-region img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-region small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-region b {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.footer-region > i {
  color: var(--muted);
  font-size: 0.75rem;
  transition: var(--animate);
}

.footer-region:hover > i {
  color: var(--primary);
  transform: translateX(2px);
}

.footer-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.9rem;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-nav {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  column-gap: 3rem;
  max-width: 720px;
}

.footer-list {
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.footer-phones {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.site-footer .footer-phones a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.site-footer .footer-phones a:hover {
  border-color: var(--primary);
}

.footer-phones i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ac-soft);
  color: var(--primary);
}

.footer-phones small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.2;
}

.footer-phones b {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin: 0;
}

.footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
}

.site-footer .footer-social a:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.footer-aside {
  width: 230px;
  flex-shrink: 0;
}

.footer-aside .footer-title {
  font-weight: 400;
  color: var(--muted);
}

.payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.payment-grid li {
  display: inline-flex;
  width: 46px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}

.footer-partner {
  height: auto;
  max-width: 60px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.footer-badges img {
  width: auto;
  max-height: 40px;
}

.footer-legal {
  padding: 1rem 0 1.5rem;
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
}

.footer-legal p {
  margin: 0 0 0.25rem;
}

@media (max-width: 991.98px) {
  .site-footer {
    font-size: 0.85rem;
    padding-top: 1.5rem;
  }

  .footer-main {
    flex-direction: column;
    gap: 0;
    padding-bottom: 0;
  }

  .footer-nav {
    display: block;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .footer-col + .footer-col {
    margin-top: 1.75rem;
  }

  .footer-top-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .footer-title {
    margin-bottom: 0.6rem;
  }

  .footer-list {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.4rem;
    color: var(--muted);
  }

  .footer-list li {
    margin: 0;
  }

  .footer-list li + li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 0.8em;
    margin: 0 0.6rem;
    background: var(--border);
  }

  .footer-aside {
    width: auto;
    padding: 1.5rem 0 0.5rem;
  }

  .footer-aside .footer-title {
    font-size: 0.875rem;
  }

  .payment-grid {
    gap: 0.9rem;
  }

  .footer-badges {
    gap: 1.5rem;
    justify-content: flex-start;
  }

  .footer-legal {
    text-align: left;
  }
}
