/* ==========================================================================
   Footer
   Self-contained: no url() and no variables from other files, so the styles
   can be moved inline into any page.
   ========================================================================== */

.footer {
  background: #0e110e;
  color: #ffffff;
  font-family: var(--font-main, "Inter", system-ui, sans-serif);
}

.footer *,
.footer *::before,
.footer *::after {
  box-sizing: border-box;
}

.footer__inner {
  width: 100%;
  max-width: 1632px;
  margin-inline: auto;
  padding: 32px 16px 20px;
}

@media (min-width: 2000px) {
  .footer {
    position: relative;
  }

  .footer::before {
    content: "";
    position: absolute;
    inset-block: 0;
    left: 50%;
    width: 96vw;
    transform: translateX(-50%);
    background: #0e110e;
    pointer-events: none;
  }

  .footer__inner {
    position: relative;
  }
}

/* Brand and contacts
   ========================================================================== */

.footer__logo {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.footer__logo-img {
  display: block;
  flex: none;
  width: 25px;
  height: 25px;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-wordmark strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer__copyright {
  margin: 16px 0 0;
  color: #b6b0b0;
  font-size: 12px;
  line-height: 20px;
}

.footer__contact-title {
  margin: 38px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.footer__email {
  display: block;
  width: fit-content;
  margin-top: 10px;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer__email:hover {
  text-decoration: underline;
}

/* Navigation
   ========================================================================== */

.footer__nav {
  margin-top: 41px;
}

.footer__menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 16px;
}

.footer__link {
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
}

/* Legal text
   ========================================================================== */

.footer__text {
  margin-top: 26px;
  font-size: 12px;
  line-height: 20px;
}

.footer__text p {
  margin: 0;
}

.footer__text p + p {
  margin-top: 20px;
}

/* Tablet and desktop
   ========================================================================== */

@media (min-width: 768px) {
  .footer__inner {
    max-width: 1664px;
    padding: 64px 32px 64px;
  }

  .footer__logo {
    gap: 10px;
  }

  .footer__logo-img {
    width: 37px;
    height: 37px;
  }

  .brand-wordmark {
    font-size: 16px;
  }

  .brand-wordmark strong {
    font-size: 18px;
  }

  .footer__copyright {
    margin-top: 32px;
    font-size: 16px;
    line-height: 24px;
  }

  .footer__copyright-line {
    display: block;
  }

  .footer__contact-title {
    margin-top: 33px;
    font-size: 16px;
    line-height: 24px;
  }

  .footer__email {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .footer__nav {
    margin-top: 48px;
  }

  .footer__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    font-size: 16px;
    line-height: 24px;
  }

  .footer__link {
    font-size: 16px;
    line-height: 24px;
  }

  .footer__text {
    max-width: 1112px;
    margin-top: 46px;
    font-size: 16px;
    line-height: 24px;
  }

  .footer__text p + p {
    margin-top: 24px;
  }
}

@media (min-width: 1280px) {
  .footer__inner {
    display: grid;
    grid-template-columns: 353px minmax(0, 1fr);
    column-gap: 40px;
    max-width: 1680px;
    padding: 80px 40px;
  }

  .footer__nav {
    margin-top: 11px;
  }
}
