.mhfm-footer {
  --mhfm-bg: #06070d;
  --mhfm-card: #0f1019;
  --mhfm-border: #1b1e2b;
  --mhfm-accent: #10c9ee;
  --mhfm-text: #f6f7fb;
  --mhfm-muted: #777bb7;
  width: 100%;
  background: var(--mhfm-bg);
  color: var(--mhfm-text);
  border-top: 1px solid rgba(255,255,255,.03);
}

.mhfm-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 54px 32px 58px;
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) minmax(0, 3fr);
  gap: 70px;
}

.mhfm-footer__logo-wrap {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mhfm-footer__logo {
  max-width: 210px;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.mhfm-footer__logo-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--mhfm-accent);
  border-radius: 50%;
  position: relative;
  box-sizing: border-box;
}

.mhfm-footer__logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--mhfm-accent);
  border-radius: 50%;
}

.mhfm-footer__brand-text,
.mhfm-footer__menu-title {
  font-weight: 800;
  letter-spacing: .035em;
}

.mhfm-footer__brand-text {
  font-size: 17px;
}

.mhfm-footer__description {
  margin-top: 18px;
  color: var(--mhfm-muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 260px;
}

.mhfm-footer__description p { margin: 0; }

.mhfm-footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.mhfm-footer__social {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #12131d;
  color: #8589ba;
  text-decoration: none;
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
  border: 1px solid transparent;
}

.mhfm-footer__social:hover,
.mhfm-footer__social:focus-visible {
  color: var(--mhfm-accent);
  border-color: rgba(16,201,238,.5);
  background: #101826;
  transform: translateY(-2px);
}

.mhfm-footer__menus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 58px;
}

.mhfm-footer__menu-title {
  color: var(--mhfm-text);
  font-size: 15px;
  margin: 0 0 23px;
}

.mhfm-footer__menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.mhfm-footer__menu-list a,
.mhfm-footer__menu-list span {
  color: var(--mhfm-muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  transition: color .2s ease;
}

.mhfm-footer__menu-list a:hover,
.mhfm-footer__menu-list a:focus-visible {
  color: var(--mhfm-accent);
}

.mhfm-footer__bottom {
  border-top: 1px solid var(--mhfm-border);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(32px, calc((100vw - 1320px) / 2 + 32px));
}

.mhfm-footer__copyright {
  color: var(--mhfm-muted);
  font-size: 13px;
}

.mhfm-footer__payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mhfm-footer__payment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 11px;
  border-radius: 4px;
  background: #12131d;
  color: #7d81b5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

@media (max-width: 900px) {
  .mhfm-footer__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .mhfm-footer__menus {
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .mhfm-footer__inner {
    padding: 42px 22px 42px;
  }
  .mhfm-footer__menus {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .mhfm-footer__menu-title { margin-bottom: 16px; }
  .mhfm-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 22px 24px;
  }
  .mhfm-footer__payments { justify-content: flex-start; }
}
