.mdl.footer {
  border-top: 1px solid var(--mb-line);
  color: #53616a;
  background: #ffffff;
}

.mdl.footer .footer__sitemap {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 3.28fr);
  gap: clamp(36px, 5vw, 88px);
  padding: clamp(42px, 5.4vw, 76px) clamp(28px, 5vw, 76px) clamp(38px, 5vw, 68px);
}

.mdl.footer .footer__brand {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-width: 0;
}

.mdl.footer .footer__brand-link {
  display: inline-flex;
  width: min(100%, 142px);
}

.mdl.footer .footer__brand-link img {
  display: block;
  width: 100%;
  height: auto;
}

.mdl.footer .footer__brand p {
  margin: 18px 0 0;
  color: #7b8790;
  font-size: 13px;
  line-height: 1.5;
}

.mdl.footer .footer__home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: #187e7a;
  font-size: 12px;
  font-weight: 750;
}

.mdl.footer .footer__home-link svg {
  width: 15px;
  height: 15px;
}

.mdl.footer .footer__map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 4.2vw, 68px);
  min-width: 0;
}

.mdl.footer .footer__column,
.mdl.footer .footer__group {
  min-width: 0;
}

.mdl.footer .footer__column {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 32px;
}

.mdl.footer .footer__group h3 {
  margin: 0 0 12px;
  color: #18222c;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
}

.mdl.footer .footer__group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mdl.footer .footer__group a {
  display: inline-block;
  color: #61707b;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.mdl.footer .footer__group a:hover,
.mdl.footer .footer__group a:focus-visible,
.mdl.footer .footer__home-link:hover,
.mdl.footer .footer__home-link:focus-visible {
  color: #118987;
  outline: none;
  text-decoration-color: currentColor;
}

.mdl.footer .footer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  padding: 14px clamp(28px, 5vw, 76px);
  border-top: 1px solid var(--mb-line);
  color: #89949c;
  background: #fbfcfc;
  font-size: 11px;
  line-height: 1.35;
}

.mdl.footer .footer__meta span:first-child {
  color: #53616a;
  font-weight: 700;
}

.mdl.footer .footer__tabs {
  display: flex;
  min-width: max-content;
  height: 54px;
  overflow-x: auto;
}

.mdl.footer .footer__tab {
  min-width: 112px;
  padding: 0 28px;
  border: 0;
  border-right: 1px solid var(--mb-line);
  color: #303943;
  background: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.mdl.footer .footer__tab:hover,
.mdl.footer .footer__tab:focus-visible {
  background: #f7fbfb;
  outline: none;
}

.mdl.footer .footer__tab.is-current {
  border-bottom: 5px solid #198e87;
  color: var(--mb-ink);
  font-weight: 760;
}

@media (max-width: 1100px) {
  .mdl.footer .footer__sitemap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .mdl.footer .footer__brand {
    display: grid;
    grid-template-columns: minmax(120px, 142px) minmax(160px, 1fr) auto;
    align-items: center;
    gap: 20px;
  }

  .mdl.footer .footer__brand p,
  .mdl.footer .footer__home-link { margin-top: 0; }
}

@media (max-width: 760px) {
  .mdl.footer .footer__map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 44px;
  }

  .mdl.footer .footer__column:last-child {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 44px;
  }

  .mdl.footer .footer__column:last-child .footer__group:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .mdl.footer .footer__sitemap {
    gap: 34px;
    padding: 38px 22px 36px;
  }

  .mdl.footer .footer__brand {
    display: flex;
    align-items: flex-start;
    gap: 0;
  }

  .mdl.footer .footer__brand p { margin-top: 16px; }
  .mdl.footer .footer__home-link { margin-top: 20px; }

  .mdl.footer .footer__map,
  .mdl.footer .footer__column:last-child {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mdl.footer .footer__column:last-child,
  .mdl.footer .footer__column:last-child .footer__group:last-child {
    grid-column: auto;
  }

  .mdl.footer .footer__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 18px 22px;
  }
}
