/* Footer v2 — Tilda rec800712328 (1200px artboard) */

.mg2-footer {
  --mg-footer-bg: #fff;
  --mg-footer-text: #000;
  --mg-footer-link: #0062ad;
  --mg-footer-link-hover: #2b8ed9;
  --mg-footer-input-border: #b8c4cc;
  --mg-footer-placeholder: #8a96a3;
  padding: 37px 0 30px;
  background: var(--mg-footer-bg);
  color: var(--mg-footer-text);
  font-family: var(--mg-font, "Dewi", system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.04em;
  border: 0;
}

/* Тот же трек, что контент (.mg2-wrap / --mg-wrap ≈ 1000), не artboard Tilda 1200:
   иначе на /tools/* футер шире колонки и визуально прибит влево. */
.mg2-footer__wrap {
  width: var(--mg-wrap, min(1000px, calc(100% - 40px)));
  max-width: var(--mg-wrap, min(1000px, calc(100% - 40px)));
  margin-inline: auto;
}

body.mg-page-menu-test .mg2-footer__wrap {
  width: var(--mg-wrap);
  max-width: var(--mg-wrap);
}

.mg2-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 300fr) minmax(0, 440fr) minmax(0, 380fr);
  column-gap: 32px;
  row-gap: 0;
  align-items: start;
  box-sizing: border-box;
  width: 100%;
  min-height: 293px;
  padding-left: 0;
}

/* На /menu-test desktop: левая как есть; правая к «Регистрация»; средняя +50px */
@media (min-width: 1200px) {
  body.mg-page-menu-test .mg2-footer__col--main {
    margin-left: 100px;
    width: auto;
    max-width: calc(100% - 100px);
  }

  body.mg-page-menu-test .mg2-footer__col--side {
    justify-self: end;
    width: max-content;
    text-align: right;
  }
}

.mg2-footer__col--legal,
.mg2-footer__col--main,
.mg2-footer__col--side {
  justify-self: stretch;
  min-width: 0;
  width: 100%;
}

@media (max-width: 1199px) {
  .mg2-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 32px;
    row-gap: 28px;
    min-height: 0;
    padding-left: 0;
  }

  .mg2-footer__col--legal {
    grid-column: 1 / -1;
  }

  .mg2-footer__col--main {
    grid-column: 1;
    justify-self: stretch;
    max-width: none;
  }

  .mg2-footer__col--side {
    grid-column: 2;
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .mg2-footer__grid {
    grid-template-columns: 1fr;
  }

  .mg2-footer__col--main,
  .mg2-footer__col--side {
    grid-column: 1;
  }
}

body.mg-site--v2b .mg2-footer a {
  color: var(--mg-footer-text);
  text-decoration: none;
}

body.mg-site--v2b .mg2-footer a:hover {
  color: var(--mg-footer-link-hover);
}

.mg2-footer__legal {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg2-footer__legal li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg2-footer__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--mg-footer-text);
  text-decoration: none;
}

.mg2-footer__link:hover {
  color: var(--mg-footer-link-hover);
}

.mg2-footer__link--arrow::after {
  content: " ›";
  color: var(--mg-footer-link);
}

.mg2-footer__bureau {
  margin-top: 31px;
}

.mg2-footer__bureau-logo {
  display: inline-block;
  color: var(--mg-footer-text);
}

.mg2-footer__bureau-logo img {
  display: block;
  width: 120px;
  height: auto;
}

.mg2-footer__bureau-note {
  margin: 8px 0 0;
  max-width: 19em;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
}

.mg2-footer__copy {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
}

.mg2-footer__subscribe-title {
  margin: 0 0 10px;
  max-width: 281px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}

.mg2-footer__subscribe-form {
  margin: 0;
}

.mg2-footer__subscribe-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  max-width: 281px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--mg-footer-input-border);
}

.mg2-footer__subscribe-field input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: inherit;
  color: var(--mg-footer-text);
}

.mg2-footer__subscribe-field input::placeholder {
  color: var(--mg-footer-placeholder);
}

.mg2-footer__subscribe-field input:focus {
  outline: none;
}

.mg2-footer__subscribe-submit {
  flex: 0 0 auto;
  padding: 2px 0 2px 6px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--mg-footer-text);
  cursor: pointer;
}

.mg2-footer__subscribe-submit:hover {
  color: var(--mg-footer-link-hover);
}

.mg2-footer__subscribe-note {
  margin: 10px 0 0;
  max-width: 258px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
}

body.mg-site--v2b .mg2-footer__subscribe-note a {
  color: var(--mg-footer-link);
}

body.mg-site--v2b .mg2-footer__subscribe-note a:hover {
  color: var(--mg-footer-link-hover);
}

.mg2-footer__subscribe-status {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.mg2-footer__subscribe-status[data-state="ok"] {
  color: #1a7f37;
}

.mg2-footer__subscribe-status[data-state="err"] {
  color: #c62828;
}

.mg2-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 67px;
}

.mg2-footer__nav-link {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--mg-footer-text);
  text-decoration: none;
}

.mg2-footer__nav-link:hover {
  color: var(--mg-footer-link-hover);
}

.mg2-footer__section + .mg2-footer__section {
  margin-top: 24px;
}

.mg2-footer__section-title {
  margin: 0 0 4px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.mg2-footer__section-lead {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}

.mg2-footer__section-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg2-footer__section-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1199px) {
  .mg2-footer__nav {
    margin-top: 32px;
  }

  .mg2-footer__nav-link,
  .mg2-footer__section-title {
    font-size: clamp(22px, 4vw, 30px);
  }
}
