/* Самодостаточные стили единого футера metodbaza.
   Подключается на тильдовских страницах БЕЗ site.css (чтобы не сбрасывать
   тильдовские margin/padding). Все правила имеют namespace .site-footer. */

.site-footer,
.site-footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'TildaSans', -apple-system, 'Segoe UI', Arial, sans-serif;
  letter-spacing: normal;
}

.site-footer {
  padding: 56px 0 40px;
  background: #1c1b18;
  color: #f3eede;
  font-size: 14px;
  line-height: 1.5;
}

.site-footer .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-footer .footer-brand img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
  margin: 0;
}
.site-footer .footer-brand .brand-name {
  color: #f3eede;
  font-size: 18px;
  font-weight: 700;
}

.site-footer .footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.site-footer .footer-tel {
  font-weight: 700;
  font-size: 22px;
  color: #f4c93e;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.site-footer .footer-tel:hover { opacity: 0.8; }
.site-footer .footer-contacts a:not(.footer-tel) {
  color: rgba(243, 238, 222, 0.7);
  font-size: 15px;
  text-decoration: none;
}
.site-footer .footer-contacts a:not(.footer-tel):hover { color: #f3eede; }

.site-footer .footer-legal {
  text-align: right;
  color: rgba(243, 238, 222, 0.55);
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-footer .footer-legal p { margin: 0; }
.site-footer .footer-legal a {
  color: rgba(243, 238, 222, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 238, 222, 0.25);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-footer .footer-legal a:hover {
  color: #f3eede;
  border-color: #f3eede;
}

@media (max-width: 720px) {
  .site-footer .container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer .footer-legal { text-align: left; }
}
