/* ===== Global footer =================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: transparent;
}

.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 34px 24px 28px;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.site-footer__about {
  order: 1;
  max-width: 560px;
  text-align: right;
}

.site-footer__brand {
  display: block;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 10px;
}

.site-footer__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-2);
}

/* Contacts block */
.site-footer__contacts {
  order: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.site-footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 2px;
}

.site-footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.site-footer__contact:hover {
  color: var(--brand);
}

.site-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  color: var(--muted-2);
}

.site-footer__icon svg {
  width: 16px;
  height: 16px;
}

/* Legal bar */
.site-footer__legal {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.site-footer__legal a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.site-footer__legal a:hover {
  color: var(--brand);
}

@media (max-width: 560px) {
  .site-footer__about {
    text-align: left;
  }

  .site-footer__legal {
    justify-content: flex-start;
  }
}
