@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

.site-footer {
  font-family: "Manrope", Arial, sans-serif;
  padding: clamp(48px, 6vw, 72px) max(clamp(24px, 5vw, 48px), env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) max(clamp(24px, 5vw, 48px), env(safe-area-inset-left, 0px));
  color: #fff;
  background: #0c0d0e;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(116px, 1fr) auto;
  max-width: 1280px;
  margin: 0 auto;
  gap: 48px 40px;
}

.site-footer__brand {
  align-self: start;
  justify-self: start;
  line-height: 0;
}

.site-footer__brand img {
  display: block;
  width: 116px;
  height: auto;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-self: start;
  gap: clamp(36px, 6vw, 80px);
}

.footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-group h2 {
  margin: 0 0 3px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.footer-group a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.footer-group a:hover {
  color: #fff;
}

.footer-group a:focus-visible,
.site-footer__brand:focus-visible {
  border-radius: 3px;
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.site-footer__copyright {
  grid-column: 1 / -1;
  align-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

@media (min-width: 641px) and (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: minmax(116px, 1fr) auto;
    column-gap: 32px;
  }

  .site-footer__nav {
    gap: clamp(24px, 4vw, 36px);
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 40px max(22px, env(safe-area-inset-right, 0px)) calc(26px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px));
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 0;
  }

  .site-footer__brand img {
    width: 88px;
  }

  .site-footer__nav {
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 26px;
    gap: 26px 24px;
  }

  .footer-group--company {
    grid-row: span 2;
  }

  .footer-group {
    gap: 11px;
  }

  .footer-group h2 {
    margin-bottom: 3px;
    font-size: 15px;
  }

  .footer-group a {
    font-size: 15px;
  }

  .site-footer__copyright {
    grid-row: 3;
    margin-top: 30px;
    font-size: 13px;
  }
}

@media (max-width: 340px) {
  .site-footer {
    padding-inline: 20px;
  }

  .site-footer__nav {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-group--company {
    grid-row: auto;
  }
}
