footer {
  background-color: var(--second-bg-color);
}

footer .top_footer {
  max-width: 1920px;
  margin: 0  auto;
  padding: 20px 0 0 0;
  
}

footer .top_footer > .container-fluid::after,
footer .top_footer > .container-fluid::before {
  width: 100%;
  border-top: 1px solid var(--shade);
}

@media (min-width: 768px) {
  footer .top_footer > .container-fluid {
    padding: 0 40px;
  }
}

footer .top_footer .row_menu_contacts_footer {
  padding: 40px 0;
}

footer .logo {
  margin: 0 0 48px;
  min-height: 48px;
}

footer .logo img {
  min-height: 48px;
}

footer .footer-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer #footer_contacts {
  display: flex;
  flex-direction: column;
  gap: var(--gap-m);
}

footer span.title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light-color);
}

footer span.title ~ * {
  font-size: 16px;
  font-weight: 700;
  color: var(--sm-text-color);
}

footer .top_footer .row_menu_contacts_footer > .col-sm-12 {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

footer .section_top_footer .title {
  display: inline-block;
  margin-bottom: 20px;
}

footer .list_footer ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

footer .list_footer ul li a {
  font-size: 16px;
  line-height: 21px;
  font-weight: 700;
}

footer #callback {
  margin: 25px 0;
  color: var(--white);
}

footer .social_group_footer {
  display: flex;
  gap: var(--gap-m);
  margin-top: auto;
}

footer .social_group_footer a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  border-radius: var(--radius-l);
  background-color: var(--green);
}

footer .logo-wrap {
  display: flex;
  gap: 16px;
}

footer .social_group_footer svg {
  width: 32px;
  height: 32px;
}

.bottom_footer .copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 40px;
  color: var(--text-light-color);
  font-size: 14px;
  font-weight: 700;
}

.bottom_footer .copyright p {
  margin: 0;
}

.bottom_footer .copyright img,
.bottom_footer .copyright svg {
  height: 32px;
  width: 53px;
}

@media (max-width: 991px) {
  footer .top_footer .row_menu_contacts_footer {
    padding: 32px 0;
  }

  footer .contacts_info_footer {
    padding-bottom: 32px;
  }

  footer .section_top_footer {
    width: 100%;
  }

  footer .section_top_footer:nth-of-type(2) {
    padding-top: 32px;
    border-top: 1px solid var(--shade);
  }

  footer .section_top_footer > div {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  footer .section_top_footer .toggle-xs svg {
    width: 40px;
    height: 40px;
    color: var(--red);
  }

  footer .section_top_footer:not(:last-child) {
    margin-bottom: var(--gap-m);
  }

  footer .section_top_footer .title {
    margin: 0;
    padding: 10.5px 0;
    color: var(--red);
    font-size: 18px;
    line-height: 18px;
    font-family: 'Cy Grotesk Key';
    font-weight: 500;
  }

  footer .section_top_footer .toggle-xs {
    display: inline-block;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background-color: transparent;
  }

  footer .section_top_footer .toggle-xs:not(.active) .minus,
  footer .section_top_footer .toggle-xs.active .plus {
    display: none;
  }

  footer .list_footer {
    margin: 25px 0;
  }

  footer .list_footer:not(.active) {
    display: none;
  }

  footer .top_footer > .container::before {
    border-color: #fae6c7;
  }

  footer .logo {
    justify-content: start;
  }
  
  footer .logo a,
  footer .logo img {
    max-height: unset;
    min-height: 40px;
    height: 40px;
  }

  footer .list_footer ul li a {
    font-size: 14px;
  }

  .bottom_footer .copyright {
    padding: 0 16px;
  }
}

@media (max-width: 767px) {
  footer .contacts_info_footer {
    width: 100%;
  }
}

@media (min-width: 991px) {
  footer .section_top_footer button {
    display: none;
  }
}


@media (max-width: 500px) {
  footer .top_footer {
    padding: 0;
  }
}
