/* =============================================================
   Site footer — всегда-ночной, как в макете: бренд + описание +
   соцкнопки, три колонки ссылок, юридическая строка снизу.
   ============================================================= */

.site-footer {
  background: #0B0B0E;
  border-top: 1px solid #232329;
  color: #8B8B96;
  padding: 56px 0 32px;
  margin-top: auto; /* прижат к низу на коротких страницах */
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* --- brand --- */
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.site-footer__logo-img {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.site-footer__brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #F7F7F9;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.site-footer__about {
  font-size: 12.5px;
  color: #8B8B96;
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 38ch;
}
.site-footer__soc {
  display: flex;
  gap: 10px;
}
.site-footer__soc-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur) var(--ease);
}
.site-footer__soc-btn--wa { background: #25D366; }
.site-footer__soc-btn--tg { background: #2AABEE; }
.site-footer__soc-btn:hover { transform: translateY(-2px); }

/* --- link columns --- */
.footer-heading {
  font-size: 11.5px;
  font-weight: 700;
  color: #B4B4BE;
  margin: 0 0 16px;
  letter-spacing: .02em;
}
.site-footer__docs-heading { margin-top: 24px; }

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__list a {
  font-size: 12.5px;
  color: #8B8B96;
  transition: color var(--dur) var(--ease);
}
.site-footer__list a:hover { color: #FFC46B; }

/* контакты */
.site-footer__phone {
  font-family: var(--font-mono);
  font-size: 13px !important;
  color: #F7F7F9 !important;
  letter-spacing: -.02em;
}
.site-footer__phone:hover { color: #FFC46B !important; }
.site-footer__phone-note {
  display: block;
  font-size: 11px;
  color: #6B6B76;
  margin-top: 2px;
}
.site-footer__hours { font-size: 12px; color: #8B8B96; }

.site-footer__filial { margin-top: 14px; }
.site-footer__filial-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #B4B4BE;
  margin: 0 0 3px;
}
.site-footer__address {
  font-style: normal;
  font-size: 12px;
  color: #6B6B76;
  line-height: 1.6;
}

/* --- bottom bar --- */
.site-footer__bottom {
  border-top: 1px solid #232329;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 24px;
  flex-wrap: wrap;
}
.site-footer__copy,
.site-footer__registry,
.site-footer__note {
  font-size: 11.5px;
  color: #6B6B76;
  margin: 0;
}
.site-footer__bottom-links {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer__policy-link {
  font-size: 11.5px;
  color: #6B6B76;
}
.site-footer__policy-link:hover { color: #FFC46B; }
.site-footer__claim {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: #6B6B76;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
.site-footer__claim:hover { color: #FFC46B; }
.site-footer__note { width: 100%; }

@media (max-width: 1000px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .site-footer { padding: 40px 0 26px; }
  /* две колонки ссылок вместо одной длинной простыни: бренд и контакты —
     во всю ширину, «Услуги» и «Компания/Документы» — рядом */
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; margin-bottom: 30px; }
  .site-footer__col--brand { grid-column: 1 / -1; }
  .site-footer__col:last-child { grid-column: 1 / -1; }
  /* ссылки — компактные ряды с зоной нажатия */
  .site-footer__list a { display: inline-block; padding: 4px 0; }
  /* контакты: телефоны и адреса в два столбца */
  .site-footer__col:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 14px;
    align-items: start;
  }
  .site-footer__col:last-child > .footer-heading { grid-column: 1 / -1; }
  .site-footer__list--contacts { grid-column: 1 / -1; }
  .site-footer__filial { margin-top: 8px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}
