.site-footer {
  background: #fafafa;
  border-top: 1px solid #e5e7eb;
  color: #0f2332;
  font-family: Inter, Arial, sans-serif;
  padding: 72px 48px 32px;
}

.site-footer__container,
.site-footer__bottom {
  margin: 0 auto;
  max-width: 1344px;
}

.site-footer__container {
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 1fr));
}

.site-footer__link-groups {
  display: contents;
}

.site-footer .brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 8px;
  text-decoration: none;
}

.site-footer .brand__mark {
  display: block;
  height: auto;
  width: 47px;
}

.site-footer .brand__mark img {
  display: block;
  height: auto;
  width: 47px;
}

.site-footer .brand__wordmark {
  align-items: center;
  display: flex;
  height: 36px;
  justify-content: flex-end;
  overflow: hidden;
  width: 116px;
}

.site-footer .brand__wordmark picture,
.site-footer .brand__wordmark img {
  display: block;
  flex: 0 0 auto;
  height: 40px;
  max-width: none;
  object-fit: cover;
  width: 116px;
}

.site-footer .brand {
  margin-bottom: 24px;
}

.site-footer p {
  color: #535353;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.site-footer__brand > p {
  max-width: 360px;
}

.site-footer__phone {
  align-items: center;
  color: #0f2332;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
  margin-top: 24px;
  text-decoration: none;
}

.site-footer__group,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer h2 {
  font-size: 13px;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.site-footer__group a {
  color: #0f2332;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.site-footer__group a:hover,
.site-footer__group a:focus-visible,
.site-footer__phone:hover,
.site-footer__phone:focus-visible {
  color: #eb5f02;
}

.site-footer__cta {
  align-items: center;
  align-self: flex-start;
  background: #222222;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 20px;
  margin-top: 12px;
  padding: 18px 26px;
  text-decoration: none;
}

.site-footer__cta:hover,
.site-footer__cta:focus-visible {
  background: #eb5f02;
}

.site-footer__cta img {
  display: block;
}

.site-footer__bottom {
  border-top: 1px solid #e5e7eb;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
}

.site-footer__bottom p {
  color: #6b7280;
  font-size: 13px;
}

@media (max-width: 1023px) {
  .site-footer__container {
    gap: 40px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .site-footer {
    background: #f8fafc;
    border-color: #e2e8f0;
    padding: 41px 24px 32px;
  }

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

  .site-footer__brand,
  .site-footer__contact,
  .site-footer__link-groups {
    grid-column: 1 / -1;
  }

  .site-footer .brand {
    gap: 4px;
    height: 36px;
    margin-bottom: 12px;
    width: 159px;
  }

  .site-footer .brand__mark,
  .site-footer .brand__mark img {
    height: auto;
    margin-right: 0;
    width: 30px;
  }

  .site-footer .brand__wordmark {
    align-items: center;
    display: flex;
    height: 36px;
    width: 88px;
  }

  .site-footer .brand__wordmark img {
    height: auto;
    width: 88px;
  }

  .site-footer__brand > p {
    color: #475569;
    font-size: 12px;
    line-height: 19.5px;
    max-width: none;
    padding-right: 8px;
  }

  .site-footer__phone {
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 4px;
  }

  .site-footer__link-groups {
    border-top: 1px solid rgba(226, 232, 240, .6);
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 17px;
  }

  .site-footer__group {
    gap: 8px;
    padding-bottom: 24px;
  }

  .site-footer h2 {
    color: #94a3b8;
    font-size: 11px;
    letter-spacing: .55px;
    line-height: 16.5px;
    margin: 0 0 2px;
  }

  .site-footer__group a {
    color: #475569;
    font-size: 12px;
    line-height: 16px;
  }

  .site-footer__contact {
    gap: 4px;
    padding: 8px 0;
  }

  .site-footer__contact p {
    color: #64748b;
    font-size: 12px;
    line-height: 16px;
    padding-bottom: 8px;
  }

  .site-footer__cta {
    background: #0f2332;
    border-radius: 12px;
    font-size: 14px;
    gap: 8px;
    justify-content: center;
    margin-top: 0;
    padding: 12px 16px;
    width: 100%;
  }

  .site-footer__bottom {
    border-color: #e2e8f0;
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
    padding-top: 17px;
  }

  .site-footer__bottom p {
    color: #94a3b8;
    font-size: 11px;
    line-height: 16.5px;
  }
}
