.site-footer {
  padding: 40px 0 20px;
  background: #f5f7f8;
  overflow: hidden;
  color: #172333;
  font-family: Inter, Arial, sans-serif;
}

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

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer h2,
.site-footer p {
  margin: 0;
}

.site-footer img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-footer a:focus-visible {
  outline: 3px solid #73a2ff;
  outline-offset: 5px;
}

.site-footer .footer-shell {
  width: min(1320px, calc(100% - 40px));
  margin-inline: auto;
}

.site-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.site-footer .brand img {
  object-fit: contain;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 60px;
  padding-bottom: 27px;
}

.footer-intro > p {
  font-size: 12px;
  line-height: 1.75;
  color: #53637a;
  margin-top: 18px;
  max-width: 300px;
}

.footer-email {
  display: inline-block;
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-top: 24px;
  padding-bottom: 3px;
}

.footer-email:hover {
  color: #235bf5;
}

.footer-email-support {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #4f627e;
  text-decoration: none;
}

.footer-email-support:hover,
.footer-email-support:focus-visible {
  color: #235bf5;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 5px;
  min-width: 0;
}

.footer-link-group h2,
.footer-support-brands h2 {
  font-size: 9px;
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #53637a;
  margin: 0 0 10px;
}

.footer-link-group > a {
  font-size: 12px;
  line-height: 1.5;
  transition: color 0.2s;
}

.footer-link-group > a:hover {
  color: #235bf5;
}

.footer-support {
  display: grid;
  grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  background: #eaf0f4;
  border-radius: 20px;
  padding: 21px 24px;
}

.footer-support-brands {
  min-width: 0;
}

.footer-support-brands h2 {
  font-size: 8px;
  margin-bottom: 13px;
  color: #4a596d;
}

.footer-partners {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 23px;
  max-width: none;
}

.footer-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 66px;
}

.footer-partner > img {
  object-fit: contain;
  display: block;
  width: 100%;
  height: auto;
  max-height: 66px;
}

.partner-fasie {
  width: 137px;
  flex: 0 1 137px;
}

.partner-platform {
  width: 82px;
  flex: 0 1 82px;
}

.partner-leti {
  width: 66px;
  flex: 0 1 66px;
}

.footer-grant {
  color: #4a596d;
  font-size: 11px;
  line-height: 1.8;
  max-width: 500px;
  margin-top: 0;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 20px 0 10px;
  color: #53637a;
  font-size: 9px;
  line-height: 1.65;
}

.footer-owner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.footer-owner > a {
  color: #4f627e;
}

.footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}

.footer-legal a:hover {
  color: #235bf5;
}

.footer-to-top {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .footer-main {
    gap: 40px;
  }

  .footer-support {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    padding-inline: 20px;
    gap: 25px;
  }

  .footer-partners {
    gap: 20px;
  }

  .partner-fasie {
    flex-basis: 128px;
    width: 128px;
  }

  .partner-platform {
    flex-basis: 78px;
    width: 78px;
  }

  .partner-leti {
    flex-basis: 62px;
    width: 62px;
  }

  .footer-grant {
    font-size: 10px;
  }
}

@media (max-width: 800px) {
  .site-footer {
    padding-top: 34px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 29px 20px;
    padding-bottom: 24px;
  }

  .footer-intro {
    grid-column: 1 / -1;
  }

  .footer-intro .brand {
    font-size: 26px;
  }

  .footer-intro > p {
    font-size: 14px;
    line-height: 1.65;
    max-width: none;
    margin-top: 14px;
  }

  .footer-email {
    font-size: 21px;
    margin-top: 17px;
    min-height: 36px;
  }

  .footer-link-group {
    gap: 0;
    padding-top: 0;
  }

  .footer-link-group h2 {
    font-size: 10px;
    margin-bottom: 9px;
    line-height: 1.5;
  }

  .footer-link-group > a {
    font-size: 14px;
    line-height: 1.45;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 7px 0;
  }

  .footer-support {
    grid-template-columns: minmax(0, 1fr);
    padding: 21px 18px;
    gap: 16px;
    border-radius: 20px;
  }

  .footer-support-brands h2 {
    font-size: 10px;
    margin-bottom: 13px;
  }

  .footer-support .footer-partners {
    gap: 18px;
    max-width: 320px;
  }

  .footer-partner {
    min-height: 64px;
  }

  .footer-partner > img {
    max-height: 64px;
  }

  .footer-grant {
    font-size: 12px;
    line-height: 1.65;
    max-width: 480px;
  }

  .footer-legal {
    gap: 15px 12px;
    padding: 20px 0 4px;
  }

  .footer-owner {
    font-size: 12px;
    gap: 6px 18px;
    line-height: 1.5;
  }

  .footer-owner > a {
    min-height: 36px;
    display: flex;
    align-items: center;
  }

  .footer-to-top {
    font-size: 12px;
    min-height: 36px;
    display: flex;
    align-items: center;
  }

  .footer-legal nav {
    font-size: 12px;
    flex-direction: column;
    gap: 0;
    flex-basis: 100%;
    line-height: 1.5;
  }

  .footer-legal nav > a,
  .footer-legal nav > button {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 5px 0;
  }
}

@media (max-width: 520px) {
  .site-footer {
    padding-top: 30px;
  }

  .footer-main {
    gap: 26px 25px;
    padding-bottom: 26px;
  }

  .footer-intro > p {
    margin-top: 13px;
  }

  .footer-email {
    margin-top: 15px;
  }

  .footer-support-brands h2 {
    font-size: 7px;
    margin-bottom: 12px;
  }

  .footer-support .footer-partners {
    gap: 13px;
    justify-content: flex-start;
    max-width: 320px;
  }

  .footer-partner {
    min-height: 60px;
  }

  .footer-partner > img {
    max-height: 62px;
  }

  .partner-fasie {
    flex: 0 1 128px;
    width: 128px;
  }

  .partner-platform {
    flex: 0 1 78px;
    width: 78px;
  }

  .partner-leti {
    flex: 0 1 62px;
    width: 62px;
  }

  .footer-grant {
    font-size: 9px;
    line-height: 1.8;
    max-width: 340px;
  }

  .footer-legal {
    padding-top: 18px;
    padding-bottom: 4px;
    gap: 16px 12px;
  }

  .footer-legal nav {
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .site-footer .footer-shell {
    width: calc(100% - 32px);
  }

  .footer-partners {
    gap: 15px;
  }

  .footer-link-group > a {
    font-size: 13px;
  }
}
