.site-footer {
  padding-bottom: 48px;
}

.site-footer__top {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 320px;
  flex-shrink: 0;
}
.site-footer__brand img {
  width: 100px;
  height: 34px;
  object-fit: contain;
}
.site-footer__description {
  max-width: 300px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--white-60);
}
.site-footer__social {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--white-12);
  border-radius: 50%;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  background: var(--white-04);
  border-color: var(--white-60);
}
.site-footer__brand .site-footer__social-link img {
  width: 18px;
  height: 18px;
}

.site-footer__heading {
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.1em;
  color: var(--color-lavender);
}

.site-footer__offices {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.site-footer__office-list {
  display: flex;
  gap: 24px;
}
.site-footer__office {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 190px;
  font-style: normal;
}
.site-footer__office-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-white);
}
.site-footer__office-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--white-60);
}
a.site-footer__office-text:hover {
  color: var(--color-white);
}

.site-footer__links {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 58px;
}
.site-footer__column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.site-footer__column ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.site-footer__column li,
.site-footer__legal li {
  display: flex;
}

/* Footer link */
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: normal;
  color: var(--white-72);
  transition: color 200ms var(--ease-out);
}
.footer-link img {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: translateX(-3px);
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--color-lavender);
}
.footer-link:hover img,
.footer-link:focus-visible img {
  opacity: 1;
  transform: none;
}
.footer-link--small {
  font-size: 13px;
  color: var(--white-60);
}
.footer-link--static {
  cursor: default;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--white-10);
}
.site-footer__copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.site-footer__legal {
  display: flex;
  gap: 28px;
}

@media (max-width: 1179px) {
  .site-footer__top {
    flex-direction: column;
    gap: 40px;
  }
  .site-footer__office-list {
    flex-wrap: wrap;
  }
  .site-footer__links {
    flex-wrap: wrap;
    gap: 40px 32px;
    justify-content: flex-start;
  }
  .site-footer__column {
    min-width: 200px;
  }
}

@media (max-width: 599px) {
  .site-footer__office {
    width: 100%;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 8px;
  }
  .site-footer__legal {
    flex-wrap: wrap;
    gap: 12px 24px;
  }
}
@media (max-width: 599px) {
  .site-footer__brand {
    width: 100%;
    max-width: 320px;
  }
}

/* 24px minimum touch targets for footer links (WCAG 2.2 target size) without changing the visual rhythm. */
.site-footer__office-text {
  padding-block: 3px;
  margin-block: -3px;
}
.footer-link {
  padding-block: 4px;
  margin-block: -4px;
}
