.site_footer {
  width: 100%;
  color: var(--color-text);
  background: #fff;
  font-size: 16px;
  line-height: 24px;
}

.footer_container {
  padding-block-end: 40px;
}

.footer_top {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 93px;
  border-block-end: 2px solid var(--color-search);
}

.footer_logo {
  display: block;
  flex: 0 0 208px;
  width: 208px;
}

.footer_logo_image {
  width: 208px;
  height: auto;
}

.footer_social {
  display: flex;
  align-items: center;
  margin-inline-start: auto;
}

.footer_social_title {
  flex: 0 1 276px;
  width: 276px;
  margin-inline-end: 44px;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.footer_social_title_mobile {
  display: none;
}

.footer_social_nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 208px;
  min-height: 24px;
}

.footer_social_link {
  position: relative;
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background-position: center;
  background-repeat: no-repeat;
  outline: 0;
}

.footer_social_icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: opacity 220ms ease;
}

.footer_social_icon--on {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.footer_social_link:hover .footer_social_icon--off,
.footer_social_link:focus-visible .footer_social_icon--off {
  opacity: 0;
}

.footer_social_link:hover .footer_social_icon--on,
.footer_social_link:focus-visible .footer_social_icon--on {
  opacity: 1;
}

.footer_social_link--aparat {
  background-image: url("../../Assets/images/social/aparat.svg");
}

.footer_social_link--telegram {
  background-image: url("../../Assets/images/social/telegram.svg");
}

.footer_social_link--twitter {
  background-image: url("../../Assets/images/social/twitter.svg");
}

.footer_social_link--linkedin {
  background-image: url("../../Assets/images/social/linkedin.svg");
}

.footer_social_link--instagram {
  background-image: url("../../Assets/images/social/instagram.svg");
}

.footer_social_link--aparat:hover,
.footer_social_link--aparat:focus-visible {
  background-image: url("../../Assets/images/social/aparat-hover.svg");
}

.footer_social_link--telegram:hover,
.footer_social_link--telegram:focus-visible {
  background-image: url("../../Assets/images/social/telegram-hover.svg");
}

.footer_social_link--twitter:hover,
.footer_social_link--twitter:focus-visible {
  background-image: url("../../Assets/images/social/twitter-hover.svg");
}

.footer_social_link--linkedin:hover,
.footer_social_link--linkedin:focus-visible {
  background-image: url("../../Assets/images/social/linkedin-hover.svg");
}

.footer_social_link--instagram:hover,
.footer_social_link--instagram:focus-visible {
  background-image: url("../../Assets/images/social/instagram-hover.svg");
}

.footer_social_link:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgb(157 0 61 / 24%);
}

.footer_main_content {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: 328px;
  padding-block-start: 32px;
  gap: 68px;
}

.footer_contact {
  flex: 0 1 380px;
  width: 380px;
  min-width: 320px;
  max-width: 380px;
}

.footer_section_title,
.footer_menu_title {
  color: var(--color-brand);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.footer_phone {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  width: 100%;
  min-height: 57px;
  margin-block-start: 24px;
  padding: 13px 16px;
  color: var(--color-text);
  border: 2px solid var(--color-search);
  border-radius: 8px;
}

.footer_phone_label {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.footer_phone_details {
  display: flex;
  flex: 1 1 190px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 8px;
  min-width: 0;
}

.footer_phone_extension {
  display: inline-flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 4px;
  max-width: 100%;
  padding-inline: 8px;
  color: #fff;
  background: var(--color-brand);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  overflow-wrap: anywhere;
  unicode-bidi: isolate;
}

.footer_phone_extension_label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer_phone_extension_number {
  flex: none;
  direction: ltr;
  unicode-bidi: isolate;
}

.footer_phone_number {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  color: var(--color-text);
  direction: ltr;
  font-size: 18px;
  font-weight: 600;
  line-height: 27px;
  overflow-wrap: anywhere;
  unicode-bidi: isolate;
}

.footer_contact_row {
  display: flex;
  width: 100%;
  padding-block-start: 12px;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.footer_contact_label {
  flex: 0 0 88px;
  width: 88px;
  font-weight: 600;
}

.footer_contact_value {
  flex: 1 1 auto;
  width: calc(100% - 88px);
  font-style: normal;
  font-weight: 400;
}

.footer_menus {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 656px;
}

.footer_menu_group--products {
  flex: 0 0 320px;
  width: 320px;
}

.footer_menu_group--services {
  flex: 0 0 208px;
  width: 208px;
}

.footer_menu_group--company {
  flex: 0 0 65px;
  width: 65px;
}

.footer_menu_toggle {
  display: none;
}

.footer_menu_title {
  display: flex;
  align-items: center;
  width: 100%;
  cursor: default;
}

.footer_menu_arrow {
  display: none;
}

.footer_menu_panel {
  display: block;
}

.footer_link_list {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  height: 240px;
  color: var(--color-menu-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.footer_link_list--products {
  display: block;
  width: 320px;
  height: auto;
  column-count: 2;
  column-gap: 16px;
}

.footer_link_list li {
  margin-block-start: 24px;
}

.footer_link_list--products li {
  margin-block-start: 0;
  padding-block-start: 24px;
  break-inside: avoid;
  overflow-wrap: anywhere;
}

.footer_link_list a {
  transition: color 120ms ease;
}

.footer_link_list a:hover,
.footer_link_list a:focus-visible {
  color: var(--color-brand-dark);
  outline: 0;
}

.footer_link_list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer_trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 125px;
  width: 125px;
  max-width: 340px;
  height: 296px;
}

.footer_trust_placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 125px;
  height: 136px;
  padding: 12px;
  color: var(--color-text-muted);
  background: #fff;
  border: 1px solid var(--color-search);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}

.footer_trust_placeholder_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-block-end: 10px;
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
  border-radius: 50%;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

@media (min-width: 991px) and (max-width: 1200px) {
  .footer_main_content {
    gap: 32px;
  }

  .footer_contact {
    flex-basis: 300px;
    min-width: 300px;
  }

  .footer_menus {
    flex: 1 1 auto;
  }

  .footer_menu_group--products {
    flex-basis: 50%;
    width: 50%;
  }

  .footer_menu_group--services {
    flex-basis: 30%;
    width: 30%;
  }

  .footer_menu_group--company {
    flex: 1 1 20%;
  }

  .footer_link_list--products {
    width: 100%;
  }

  .footer_contact_label {
    flex-basis: 82px;
    width: 82px;
  }

  .footer_contact_value {
    width: calc(100% - 82px);
  }

  .footer_trust {
    flex-basis: 100px;
    width: 100px;
  }

  .footer_trust_placeholder {
    width: 100px;
  }
}

@media (max-width: 990px) {
  .site_footer {
    font-size: 14px;
    line-height: 21px;
  }

  .footer_container {
    display: flex;
    flex-direction: column;
    padding-block: 24px 94px;
  }

  .footer_top,
  .footer_main_content {
    display: contents;
  }

  .footer_logo {
    order: 1;
    flex: none;
    width: 165px;
    margin-inline: auto;
  }

  .footer_logo_image {
    width: 165px;
  }

  .footer_contact {
    order: 2;
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .footer_contact_title {
    display: none;
  }

  .footer_phone {
    min-height: 54px;
    margin-block-start: 24px;
    padding: 13px 16px;
  }

  .footer_phone_label,
  .footer_phone_extension {
    font-size: 14px;
    line-height: 21px;
  }

  .footer_phone_number {
    font-size: 16px;
    line-height: 24px;
  }

  .footer_contact_row {
    padding-block-start: 12px;
    font-size: 14px;
    line-height: 21px;
  }

  .footer_contact_label {
    flex-basis: 74px;
    width: 74px;
  }

  .footer_contact_value {
    width: calc(100% - 74px);
  }

  .footer_menus {
    display: block;
    order: 3;
    width: 100%;
    max-width: none;
  }

  .footer_menu_group,
  .footer_menu_group--products,
  .footer_menu_group--services,
  .footer_menu_group--company {
    width: 100%;
  }

  .footer_menu_group--products {
    margin-block-start: 24px;
  }

  .footer_menu_group--services,
  .footer_menu_group--company {
    margin-block-start: 40px;
  }

  .footer_menu_toggle {
    display: block;
  }

  .footer_menu_title {
    padding-block-end: 4px;
    color: var(--color-brand);
    border-block-end: 1.5px solid var(--color-search);
    font-size: 14px;
    line-height: 21px;
    cursor: pointer;
  }

  .footer_menu_arrow {
    display: block;
    flex: 0 0 12px;
    width: 12px;
    height: 7px;
    margin-inline-start: auto;
    color: var(--color-text-muted);
    transform: rotate(180deg);
    transition: transform 180ms ease;
  }

  .footer_menu_panel {
    display: none;
  }

  .footer_menu_toggle:checked + .footer_menu_title + .footer_menu_panel {
    display: block;
  }

  .footer_menu_toggle:checked + .footer_menu_title .footer_menu_arrow {
    transform: rotate(0);
  }

  .footer_link_list,
  .footer_link_list--products {
    display: block;
    width: 100%;
    height: auto;
    font-size: 14px;
    line-height: 21px;
  }

  .footer_link_list li {
    margin-block-start: 16px;
  }

  .footer_link_list--products {
    column-count: 1;
  }

  .footer_link_list--products li {
    padding-block-start: 0;
  }

  .footer_trust {
    order: 4;
    width: 100%;
    max-width: none;
    height: auto;
    margin-block-start: 24px;
    padding-block: 24px;
  }

  .footer_social {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 5;
    width: 100%;
    margin: 0;
  }

  .footer_social_title {
    flex: none;
    width: auto;
    margin: 0;
    padding-block-end: 16px;
    font-size: 14px;
    line-height: 21px;
    text-align: center;
    white-space: normal;
  }

  .footer_social_title_desktop {
    display: none;
  }

  .footer_social_title_mobile {
    display: inline;
  }

  .footer_social_nav {
    width: 208px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer_social_icon,
  .footer_menu_arrow,
  .footer_link_list a {
    transition: none;
  }
}
