.site-footer {
  --footer-brand: #e41319;
  --footer-text: #252525;
  --footer-muted: #555b62;
  margin-top: 40px;
  border-top: 4px solid var(--footer-brand);
  background: #fff;
  color: var(--footer-text);
  font-family: Montserrat, Arial, sans-serif;
}

.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ff777b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(160px, .9fr) minmax(130px, .7fr) minmax(220px, 1.2fr) minmax(260px, 1.4fr);
  gap: 44px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px 24px 30px;
}

.site-footer__brand img {
  display: block;
  width: min(100%, 178px);
  height: auto;
}

.site-footer__brand p {
  margin: 14px 0 0;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer__navigation,
.site-footer__categories,
.site-footer__contact {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.site-footer__navigation h2,
.site-footer__categories h2,
.site-footer__contact h2,
.site-footer__contact h3 {
  margin: 0 0 6px;
  color: #252525;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}

.site-footer__navigation a,
.site-footer__categories a,
.site-footer__contact p,
.site-footer__contact > a {
  margin: 0;
  color: var(--footer-muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.site-footer__category-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  width: 100%;
}

.site-footer__contact h3 {
  margin-top: 12px;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.site-footer__socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--footer-muted);
  font-size: 11px;
  line-height: 1;
}

.site-footer__socials a > svg {
  display: block;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--footer-brand);
  color: #fff;
  fill: currentColor;
  transition: background-color .15s ease, transform .15s ease;
}

.site-footer__socials a:hover > svg {
  background: #b90f14;
  transform: translateY(-1px);
}

.site-footer__socials a:focus-visible {
  outline: 2px solid #ff777b;
  outline-offset: 3px;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px 20px;
  border-top: 1px solid #e2e4e7;
  color: var(--footer-muted);
  font-size: 10px;
  line-height: 1.5;
}

.site-footer__bottom > span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

@media (max-width: 1000px) {
  .site-footer__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 32px;
  }

  .site-footer__categories {
    grid-column: 1 / -1;
  }

  .site-footer__contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 20px 24px;
  }

  .site-footer__categories,
  .site-footer__contact {
    grid-column: auto;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 20px 18px;
  }
}
