/* Footer / 12 — Figma */

body:has(.sp-footer) .page,
body:has(.sp-footer) .content {
  overflow: visible;
}

.sp-footer {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 120px 240px 16px;
  background: #fff;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

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

.sp-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.sp-footer__top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 120px;
  width: 100%;
  min-height: 384px;
}

.sp-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 298px;
  flex: none;
}

.sp-footer__logo {
  display: block;
  width: 298px;
  height: 88px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
}

.sp-footer__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.sp-footer__tagline {
  margin: 0;
  padding: 0 !important;
  width: 100%;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #4d5461;
}

.sp-footer__nav {
  flex: 1 1 0;
  min-width: 0;
  max-width: 255px;
}

.sp-footer__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.sp-footer__item {
  margin: 0;
  padding: 0;
  height: 24px;
  line-height: 24px;
  list-style: none;
  background: transparent !important;
}

.sp-footer__item:hover,
.sp-footer__nav > ul > li:hover,
.sp-footer nav > ul > li:hover {
  background: transparent !important;
  background-color: transparent !important;
}

.sp-footer__link {
  display: inline-block;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000 !important;
  text-decoration: none !important;
  text-transform: none !important;
  background: transparent !important;
  background-color: transparent !important;
  transition: color 0.15s ease;
}

.sp-footer__link:hover {
  color: #006ab5 !important;
  background: transparent !important;
  background-color: transparent !important;
}

.sp-footer__link--heading {
  color: #006ab5 !important;
  text-transform: none !important;
}

.sp-footer__link--heading:hover {
  color: #00528c !important;
  background: transparent !important;
  background-color: transparent !important;
}

.sp-footer__nav > ul > li > a,
.sp-footer__nav > ul > li:hover > a {
  padding: 0 !important;
  margin: 0 !important;
  height: 24px !important;
  min-height: 0 !important;
  width: auto !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  text-align: left !important;
  text-transform: none !important;
  background: transparent !important;
  background-color: transparent !important;
}

.sp-footer__nav > ul > li > a {
  color: #000 !important;
}

.sp-footer__nav > ul > li > a:hover,
.sp-footer__nav > ul > li:hover > a,
.sp-footer__link:hover {
  color: #006ab5 !important;
  background: transparent !important;
  background-color: transparent !important;
}

.sp-footer__nav > ul > li.is-heading > a,
.sp-footer__nav > ul > li.is-heading:hover > a {
  color: #006ab5 !important;
  background: transparent !important;
  background-color: transparent !important;
}

.sp-footer__nav > ul > li.is-heading > a:hover,
.sp-footer__link--heading:hover {
  color: #00528c !important;
  background: transparent !important;
  background-color: transparent !important;
}

.sp-footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 272px;
  flex: none;
}

.sp-footer__phone-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.sp-footer__phone {
  font-weight: 500;
  font-size: 24px;
  line-height: 34px;
  color: #000 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.sp-footer__phone:hover {
  color: #006ab5 !important;
}

.sp-footer__phone-note {
  margin: 0 !important;
  padding: 0 !important;
  font-family: Roboto, Inter, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: #4d5461;
}

.sp-footer__address {
  margin: 0;
  padding: 0 !important;
  width: 100%;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #4d5461;
}

.sp-footer__email {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #006ab5 !important;
  text-decoration: none !important;
}

.sp-footer__email:hover {
  color: #00528c !important;
  text-decoration: none !important;
}

.sp-footer__socials {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.sp-footer__social {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: #f5f6f8;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.sp-footer__social:hover {
  background: #e8eaee;
}

.sp-footer__social svg {
  display: block;
  max-width: 24px;
  max-height: 24px;
}

.sp-footer__wordmark {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 80px;
  line-height: 0;
  flex: none;
}

.sp-footer__wordmark img,
.sp-footer__wordmark svg {
  display: block;
  width: 100%;
  height: auto;
}

.sp-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  margin-top: 80px;
}

.sp-footer__divider {
  width: 100%;
  height: 0;
  border: 0;
  border-top: 1px solid #ebedf0;
  margin: 0;
}

.sp-footer__legal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.sp-footer__copy,
.sp-footer__legal-link {
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  color: #9ea2ae !important;
  text-decoration: none !important;
}

.sp-footer__legal-link:hover {
  color: #6d717f !important;
}

.sp-footer__dev {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.sp-footer__dev .itb-copyright {
  gap: 12px;
  font-family: Roboto, Inter, sans-serif;
  font-size: 16px;
  line-height: 19px;
  --copyright-color: 19, 25, 39;
}

.sp-footer__dev .itb-copyright svg {
  display: block;
  width: 34px;
  height: 20px;
  flex: none;
}

.sp-footer .itb-copyright__popup {
  min-width: 300px;
  width: max-content;
  padding: 14px 18px;
  box-sizing: border-box;
  white-space: nowrap;
}

.sp-footer .itb-copyright.opened .itb-copyright__popup {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.sp-footer .itb-copyright__popup a {
  white-space: nowrap;
}

.sp-footer .itb-copyright__popup a + a {
  margin-left: 0;
}

@media (max-width: 1599px) {
  .sp-footer {
    padding: 96px 64px 16px;
  }

  .sp-footer__top {
    gap: 48px;
  }

  .sp-footer__wordmark,
  .sp-footer__bottom {
    margin-top: 64px;
  }
}

@media (max-width: 1199px) {
  .sp-footer {
    padding: 72px 32px 16px;
  }

  .sp-footer__top {
    flex-wrap: wrap;
    gap: 40px;
  }

  .sp-footer__brand {
    width: 100%;
    max-width: 298px;
  }

  .sp-footer__nav {
    max-width: none;
    flex: 1 1 200px;
  }

  .sp-footer__contacts {
    width: 100%;
    max-width: 320px;
  }

  .sp-footer__wordmark,
  .sp-footer__bottom {
    margin-top: 48px;
  }
}

/* Mobile — Figma Footer / 12 / */
@media (max-width: 776px) {
  .sp-footer {
    padding: 80px 16px 24px;
  }

  .sp-footer__inner {
    gap: 48px;
    max-width: none;
  }

  .sp-footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    min-height: 0;
  }

  .sp-footer__brand {
    width: 100%;
    max-width: none;
    gap: 16px;
  }

  .sp-footer__logo {
    width: 100%;
    max-width: 100%;
    height: 88px;
    border-radius: 12px;
  }

  .sp-footer__tagline {
    font-size: 13px;
    line-height: 18px;
  }

  .sp-footer__nav {
    width: 100%;
    max-width: none;
    flex: none;
  }

  .sp-footer__list {
    gap: 12px;
  }

  .sp-footer__item {
    height: 20px;
    line-height: 20px;
  }

  .sp-footer__link {
    font-size: 15px;
    line-height: 20px;
  }

  .sp-footer__nav > ul > li > a,
  .sp-footer__nav > ul > li:hover > a {
    height: 20px !important;
    font-size: 15px !important;
    line-height: 20px !important;
  }

  .sp-footer__contacts {
    width: 100%;
    max-width: none;
    gap: 24px;
  }

  .sp-footer__phone {
    font-size: 24px;
    line-height: 32px;
  }

  .sp-footer__address,
  .sp-footer__email {
    font-size: 15px;
    line-height: 20px;
  }

  .sp-footer__social {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .sp-footer__social svg {
    max-width: 20px;
    max-height: 20px;
    width: 20px;
    height: 20px;
  }

  .sp-footer__wordmark,
  .sp-footer__bottom {
    margin-top: 0;
  }

  .sp-footer__wordmark {
    overflow: hidden;
  }

  .sp-footer__bottom {
    gap: 16px;
  }

  .sp-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .sp-footer__dev {
    margin-top: 32px;
  }

  .sp-footer .itb-copyright__popup {
    min-width: 0;
    width: max-content;
    max-width: calc(100vw - 32px);
    white-space: normal;
  }

  .sp-footer .itb-copyright.opened .itb-copyright__popup {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Кнопка «Наверх» — поверх sticky-шапки и панелей */
.scroll_top-footer-main {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  left: auto !important;
  top: auto !important;
  z-index: 12050 !important;
  margin: 0;
}

.scroll_top-footer-main .sp-scroll-top,
a.sp-scroll-top#scroll_top-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #006ab5;
  color: #fff;
  box-shadow: 0 8px 24px rgba(19, 25, 39, 0.18);
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.scroll_top-footer-main .sp-scroll-top:hover,
a.sp-scroll-top#scroll_top-footer:hover {
  background: #005a9a;
  color: #fff;
  box-shadow: 0 10px 28px rgba(19, 25, 39, 0.22);
}

.scroll_top-footer-main .sp-scroll-top:active,
a.sp-scroll-top#scroll_top-footer:active {
  transform: translateY(1px);
}

.scroll_top-footer-main .sp-scroll-top svg {
  display: block;
  width: 20px;
  height: 20px;
}

.scroll_top-footer-main img {
  display: none;
}

@media (max-width: 776px) {
  .scroll_top-footer-main {
    right: 16px !important;
    bottom: 16px !important;
  }

  .scroll_top-footer-main .sp-scroll-top,
  a.sp-scroll-top#scroll_top-footer {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
}
