/* Отступ от контента. Позиция pre_footer (.pre-footer) — сразу перед <footer>:
   отступ на зоне модулей, футер прилипает без щели. */
footer {
	margin-top: 40px;
}

.pre-footer {
	margin-top: 40px;
}

.pre-footer + footer {
	margin-top: 0;
}

.footer-top {
  padding: 28px 0 30px 0;
  background: var(--ms-footer-bg, #6C747A);
  color: var(--ms-footer-text, #fff);
}
.footer-top__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-info p {
  color: var(--ms-footer-muted, #fff);
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 10px;
}
.footer-info span,
.footer-info span.copyright {
  display: inline-block;
  color: var(--ms-footer-text, #fff);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
}

.f-logo {
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ms-logo-footer-w, 200px);
  height: var(--ms-logo-footer-h, auto);
  max-width: 100%;
  margin-bottom: 15px;
}

.f-logo img {
  display: block;
  margin: 0;
  width: var(--ms-logo-footer-img-w, 100%);
  height: var(--ms-logo-footer-img-h, auto);
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Силуэт одним цветом: картинка держит размер, краска — у маски */
.f-logo--mask {
  background-color: var(--ms-logo-footer-color, #fff);
  -webkit-mask-image: var(--ms-logo-mask);
  mask-image: var(--ms-logo-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center center;
  mask-position: center center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.f-logo--mask img {
  opacity: 0;
}

.footer-menus {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

nav.footer-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}
nav.footer-menu.spoiler .f-menutitle {
  position: relative;
  padding-right: 16px;
}
nav.footer-menu.spoiler .f-menutitle::after {
  position: absolute;
  font-family: "icons";
  content: "\e90b";
  color: var(--ms-footer-text, #ffffff);
  right: 0;
  top: 2px;
  font-size: 9px;
  transform: rotate(90deg);
  transition: transform 0.12s ease-out;
}
nav.footer-menu.spoiler.sub-opened .f-menutitle::after {
  transform: rotate(270deg);
  transition: transform 0.12s ease-in;
}

.f-menutitle {
  display: inline-block;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: var(--ms-footer-text, #fff);
}

ul.f-menu {
  list-style: none;
  padding: 0;
  text-align: center;
  margin-top: 10px;
}
ul.f-menu li:not(:last-child) {
  margin-bottom: 10px;
}
ul.f-menu li a {
  font-size: 14px;
  line-height: 22px;
  color: var(--ms-footer-muted, #ededed);
  opacity: 0.95;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
}
ul.f-menu li:hover a {
  text-decoration-color: inherit;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 17px;
}
.footer-contacts p,
.footer-contacts .footer-address {
  color: var(--ms-footer-muted, #EDEEE9);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

.f-callback {
  color: var(--ms-footer-link, #fff);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  padding-bottom: 2px;
  border-bottom: 1px dotted currentColor;
}
.f-callback:hover {
  border-color: transparent;
  color: var(--ms-footer-link, #fff);
}

.f-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ms-footer-text, #fff);
}
.f-contact a {
  font-family: var(--latoFont);
  font-size: 19px;
  font-weight: 700;
  line-height: normal;
}
.f-contact a.phone-link {
  color: inherit;
  text-align: center;
  margin-bottom: 4px;
  white-space: nowrap;
}
.f-contact span,
.f-contact .header-hours {
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--ms-footer-muted, inherit);
}
.f-contact a.phone-link,
.f-contact a.phone-lnk {
  color: var(--ms-footer-text, inherit);
}
.f-contact .footer-address {
  margin-top: 8px;
}
/* Почта под адресом, не в размере телефонных ссылок */
.f-contact a.footer-email {
  margin-top: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.footer-bottom {
  padding: 30px 0 25px 0;
  background: var(--ms-footer-bottom-bg, #55595C);
  color: var(--ms-footer-text, #fff);
}

.footer-bottom__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.footer-bottom__container p {
  color: var(--ms-footer-muted, #fff);
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  opacity: 0.75;
}
.footer-bottom__container a {
  color: var(--ms-footer-link, #fff);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-decoration-line: underline;
}
.footer-bottom__container a:hover {
  text-decoration-color: transparent;
}
.footer-bottom__container .footer-bottom__legal {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
}
.footer-bottom__container div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 0;
}

div.payments-list {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.ya-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.ya-banner__html {
  display: contents;
}

@media screen and (min-width: 576px) {
  .footer-menus {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px 37px;
  }
  nav.footer-menu .f-menutitle {
    font-size: 17px;
    line-height: 22px;
    margin-bottom: 12px;
  }
  nav.footer-menu.spoiler .f-menutitle {
    padding: 0;
  }
  nav.footer-menu.spoiler .f-menutitle::after {
    display: none;
  }
  ul.f-menu.spoiler-base {
    display: block;
  }
  ul.f-menu li a {
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
  }
  .f-menutitle {
    pointer-events: none;
  }
  .footer-bottom__container div:nth-child(2) {
    gap: 36px 20px;
  }
}
@media screen and (min-width: 992px) {
  .footer-top__container {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .footer-info {
    flex-direction: column;
    align-items: flex-start;
    max-width: 267px;
  }
  .f-logo {
    justify-content: flex-start;
  }
  .f-logo img {
    object-position: left center;
  }
  .f-logo--mask {
    -webkit-mask-position: left center;
    mask-position: left center;
  }
  .footer-info p {
    text-align: left;
  }
  .footer-info span,
  .footer-info span.copyright {
    color: var(--ms-footer-text, #fff);
    text-align: left;
    opacity: 0.85;
  }
  .footer-menus {
    gap: 30px 37px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  nav.footer-menu {
    align-items: flex-start;
    flex: 1 122px;
    max-width: 227px;
  }
  .f-menutitle {
    text-align: left;
  }
  ul.f-menu {
    text-align: left;
    margin-top: 0px;
  }
  .footer-contacts {
    flex-shrink: 0;
    max-width: 260px;
    align-items: flex-end;
    text-align: right;
    gap: 17px;
    margin-left: auto;
  }
  .footer-contacts .f-contact {
    align-items: flex-end;
  }
  .footer-contacts .f-contact a.phone-link,
  .footer-contacts .f-contact a.phone-lnk,
  .footer-contacts .f-contact span,
  .footer-contacts .f-contact .header-hours {
    text-align: right;
  }
  .footer-contacts .f-social.soc-list,
  .footer-contacts .soc-list {
    justify-content: flex-end;
  }
  .footer-contacts .footer-address,
  .footer-contacts .footer-email {
    text-align: right;
    width: 100%;
  }
  .footer-bottom__container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 55px;
  }
  .footer-bottom__container div {
    text-align: left;
    justify-content: flex-start;
  }
  .footer-bottom__container div:first-child {
    max-width: 500px;
  }
  .footer-bottom__container div:nth-child(2) {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 30px;
  }
  .footer-bottom__container p {
    text-align: left;
  }
  .ya-banner {
    flex-shrink: 0;
  }
}
@media screen and (min-width: 1280px) {
  .footer-top {
    padding: 50px 0 82px 0;
  }
  .footer-top__container {
    gap: 20px 100px;
  }
  .footer-info p {
    font-size: 14px;
    line-height: 1.6;
  }
  .footer-info span,
  .footer-info span.copyright {
    font-size: 15px;
  }
  .footer-menus {
    gap: 30px 74px;
    width: 100%;
  }
  nav.footer-menu .f-menutitle {
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 15px;
  }
  ul.f-menu li a {
    font-size: 15px;
    line-height: 22px;
  }
  .f-callback {
    font-size: 16px;
  }
  .f-contact a {
    font-size: 20px;
  }
  .f-contact span,
  .f-contact .header-hours {
    font-size: 15px;
  }
  .footer-contacts {
    max-width: 330px;
  }
  .footer-contacts p {
    font-size: 14px;
  }
  .footer-bottom__container div:first-child {
    max-width: 640px;
  }
  .footer-bottom__container .footer-bottom__legal,
  .footer-bottom-links {
    align-items: flex-start;
    justify-content: flex-start;
  }
  .footer-bottom__container div:nth-child(2) {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 30px;
  }
  .footer-bottom__container p {
    font-size: 13px;
    text-align: left;
  }
}