@font-face {
  font-family: "Footer Inter";
  src: url("/fonts/Inter/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

.site-footer {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  margin: 18px 0;
  padding: clamp(34px, 4vw, 58px) clamp(24px, 3.4vw, 58px) 0;
  border: 1px solid var(--page-line, #e0e1e4);
  border-radius: 34px;
  background: var(--page-paper, #fbfaf6);
  color: #717783;
  font: 400 16px/normal "Footer Inter", "Inter", system-ui, sans-serif;
  text-align: start;
  -webkit-font-smoothing: antialiased;
}

/* Страницы возврата из приложения и оплаты не используют оболочку главной. */
body > .site-footer {
  width: min(1480px, calc(100% - 40px));
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 88px);
  padding-bottom: clamp(30px, 3.4vw, 46px);
}

.footer-intro {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #15171c;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-brand img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.footer-tagline {
  max-width: 380px;
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  text-wrap: wrap;
}

.footer-note, .footer-copyright, .footer-made {
  font-size: 11px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 40px);
}

.footer-col h2 {
  margin: 0 0 14px;
  color: #245ef2;
  font-family: inherit;
  font-size: 10px;
  font-weight: 750;
  line-height: normal;
  letter-spacing: 0.095em;
  text-transform: uppercase;
  text-wrap: wrap;
}

.footer-col ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: #3f4551;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: #245ef2;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(47, 107, 255, 0.1);
}

.footer-made {
  opacity: 0.75;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(47, 107, 255, 0.1);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.footer-legal a {
  color: #245ef2;
  font-weight: 600;
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.footer-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Переключатель RU/EN на страницах приглашения и входа меняет lang у html. */
html:lang(en) .site-footer [lang="ru"],
html:not(:lang(en)) .site-footer [lang="en"] {
  display: none;
}

@media (min-width: 821px) and (max-width: 1180px) {
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 28px;
  }
}

@media (max-width: 820px) {
  body > .site-footer {
    width: min(720px, calc(100% - 20px));
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .footer-tagline {
    max-width: 520px;
  }
}

/* В этом диапазоне index-warm.css добавляет разделам по 8px к полям body. */
@media (min-width: 681px) and (max-width: 720px) {
  .lists-page .site-footer {
    margin-inline: -8px;
  }
}

@media (max-width: 580px) {
  .site-footer {
    margin-block: 6px;
    padding: 28px 20px 0;
    border-radius: 26px;
  }

  body > .site-footer {
    width: calc(100% - 12px);
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .footer-bottom {
    justify-content: flex-start;
    padding: 16px 0 20px;
  }
}
