.site-footer {
  padding: 80px 0;
  background: #f3f4f5;
  color: #62676d;
  font-size: 15px;
  line-height: 1.75;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, 0.85fr);
  column-gap: 40px;
  row-gap: 56px;
}

.site-footer__brand {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 56px;
  padding-right: 24px;
}

.site-footer__logo {
  display: block;
  width: 100%;
  max-width: 340px;
}

.site-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer .site-footer__copyright {
  margin: 0;
  color: #20252b;
  font-size: 14px;
}

.site-footer__group {
  min-width: 0;
}

.site-footer__group h2 {
  margin: 0 0 20px;
  color: #131820;
  font-size: 16px;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 700;
}

.site-footer__group h2::after {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  margin-top: 12px;
  background: var(--theme-color1);
}

.site-footer__group ul,
.site-footer__group p,
.site-footer__group address {
  margin: 0;
  padding: 0;
  list-style: none;
  font-style: normal;
}

.site-footer__group li + li {
  margin-top: 10px;
}

.site-footer a {
  color: inherit;
  overflow-wrap: anywhere;
  transition: color 150ms ease;
}

.site-footer a:hover {
  color: #20252b;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer a:focus-visible {
  outline: 2px solid #20252b;
  outline-offset: 4px;
}

.site-footer__legal a {
  text-decoration: none;
}

@media (min-width: 1200px) {
  .site-footer__brand {
    display: contents;
  }

  .site-footer__logo {
    grid-column: 1;
    grid-row: 1;
    width: calc(100% - 24px);
    align-self: start;
  }

  .site-footer .site-footer__copyright {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    /* Match the contact headings: 22.4px text + 14px rule + 24px gap. */
    padding-top: 60.4px;
    font-size: 15px;
    line-height: 1.75;
  }
}

@media (max-width: 1199.98px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    grid-row: auto;
    flex-direction: row;
    align-items: flex-end;
    padding-right: 0;
  }

  .site-footer__logo {
    max-width: 280px;
  }
}

@media (max-width: 767.98px) {
  .site-footer {
    padding: 48px 0;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .site-footer__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .site-footer__group h2 {
    margin-bottom: 16px;
  }
}

@media (max-width: 479.98px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
