/* Common footer on assist-biz.ru, including partner forms and Ghost. */
#ab-footer.ab-site-footer {
  box-sizing: border-box;
  width: 100%;
  flex: none;
  margin: auto 0 0;
  padding: 0;
  border-top: 1px solid #deddd8;
  background: #f7f7f4;
  color: #252521;
  font: 400 16px/1.5 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: normal;
  text-align: left;
}

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

.ab-site-footer__inner {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 28px;
}

.ab-site-footer__top,
.ab-site-footer__contacts,
.ab-site-footer__socials,
.ab-site-footer__bottom {
  display: flex;
  align-items: center;
}

.ab-site-footer__top {
  flex-wrap: wrap;
  gap: 16px 28px;
  padding-block: 30px;
}

.ab-site-footer__contacts,
.ab-site-footer__socials {
  flex-wrap: wrap;
  gap: 8px 18px;
}

.ab-site-footer__socials {
  margin-inline-start: auto;
}

#ab-footer a {
  color: inherit;
  text-decoration: none;
  box-shadow: none;
}

#ab-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

#ab-footer a:focus-visible {
  outline: 3px solid #675000;
  outline-offset: 3px;
  border-radius: 3px;
}

.ab-site-footer__top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
}

.ab-site-footer__brand img {
  display: block;
  width: 132px;
  height: auto;
}

.ab-site-footer__phone {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#ab-footer .ab-site-footer__message {
  justify-content: center;
  padding: 10px 19px;
  border-radius: 10px;
  background: #ffd240;
  color: #1e1e1e;
  font-weight: 700;
}

#ab-footer .ab-site-footer__message:hover {
  background: #f5c01a;
  text-decoration: none;
}

.ab-site-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-block: 30px 32px;
  border-block: 1px solid #deddd8;
}

#ab-footer .ab-site-footer__heading {
  margin: 0 0 12px;
  padding: 0;
  color: #1e1e1e;
  font: 750 18px/1.35 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.015em;
}

#ab-footer .ab-site-footer__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-site-footer__list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#ab-footer .ab-site-footer__list a {
  display: inline-block;
  padding-block: 4px;
  color: #41413c;
  font-size: 15px;
  line-height: 1.45;
}

.ab-site-footer__bottom {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 22px 26px;
  color: #55554e;
  font-size: 14px;
}

#ab-footer .ab-site-footer__identity p {
  margin: 0;
  color: inherit;
  font: inherit;
}

.ab-site-footer__identity p + p {
  padding-top: 2px;
}

.ab-site-footer__identity span {
  white-space: nowrap;
}

#ab-footer .ab-site-footer__email {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

:is(#program, #internship, #pricing, #reviews, #consultation, #cookies, #mailing-consent) {
  scroll-margin-top: 90px;
}

@media (max-width: 960px) {
  .ab-site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-site-footer__top {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 24px;
  }

  .ab-site-footer__login,
  .ab-site-footer__contacts {
    justify-self: end;
  }

  .ab-site-footer__socials {
    margin: 0;
  }
}

@media (max-width: 600px) {
  .ab-site-footer__inner {
    padding-inline: 20px;
  }

  .ab-site-footer__top {
    gap: 6px 12px;
    padding-block: 20px;
  }

  .ab-site-footer__brand img {
    width: 112px;
  }

  .ab-site-footer__socials,
  .ab-site-footer__contacts {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .ab-site-footer__contacts {
    gap: 4px 14px;
  }

  .ab-site-footer__nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 24px;
  }

  #ab-footer .ab-site-footer__heading {
    margin-bottom: 6px;
  }

  #ab-footer .ab-site-footer__list a {
    padding-block: 6px;
  }
}
