.site-footer {
  --site-footer-bg: #1d2d42;
  margin-top: clamp(48px, 7vw, 88px);
  padding: 0;
  border: 0;
  background: var(--site-footer-bg);
  color: #f5f7fb;
}

body.systems-page > footer.site-footer,
body.market-original > footer.site-footer {
  padding: 0;
  border: 0;
  background: var(--site-footer-bg);
  color: #f5f7fb;
}

.site-footer__inner {
  width: min(calc(100% - 60px), var(--header-max, 1380px));
  margin-inline: auto;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(280px, 1.05fr) minmax(
      280px,
      1.35fr
    );
  align-items: center;
  gap: 24px;
  padding-block: 30px 27px;
}

.site-footer__identity {
  flex: 0 0 auto;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.site-footer__brand img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-footer__tagline {
  margin: 5px 0 0 46px;
  color: rgba(235, 241, 249, 0.68);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer__contact {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.site-footer__contact > strong {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.site-footer__contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer__contact-links a {
  color: rgba(235, 241, 249, 0.72);
  font-size: 12px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px clamp(18px, 2.4vw, 34px);
}

.site-footer__nav a,
.site-footer__contact-links a,
.site-footer__bottom a {
  color: rgba(245, 247, 251, 0.82);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s ease;
}

footer.site-footer .site-footer__brand {
  color: #fff;
}

footer.site-footer .site-footer__nav a,
footer.site-footer .site-footer__contact-links a,
footer.site-footer .site-footer__bottom a {
  color: rgba(245, 247, 251, 0.82);
}

.site-footer__nav a:hover,
.site-footer__contact-links a:hover,
.site-footer__bottom a:hover {
  color: #ff9b78;
}

footer.site-footer .site-footer__nav a:hover,
footer.site-footer .site-footer__contact-links a:hover,
footer.site-footer .site-footer__bottom a:hover {
  color: #ff9b78;
}

.site-footer__nav a:focus-visible,
.site-footer__contact-links a:focus-visible,
.site-footer__brand:focus-visible,
.site-footer__bottom a:focus-visible {
  border-radius: 4px;
  outline: 2px solid #78b5ff;
  outline-offset: 4px;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  border-top: 1px solid rgba(231, 239, 248, 0.14);
  color: rgba(235, 241, 249, 0.58);
  font-size: 11px;
}

.site-footer__bottom a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .site-footer__main {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .site-footer__nav {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .site-footer__inner {
    width: calc(100% - 32px);
  }

  .site-footer__main {
    gap: 20px;
    padding-block: 25px 22px;
  }

  .site-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 14px 12px;
  }

  .site-footer__nav a {
    font-size: 12px;
  }

  .site-footer__bottom {
    min-height: 46px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__nav a,
  .site-footer__contact-links a,
  .site-footer__bottom a {
    transition: none;
  }
}
