footer ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.footer-block__wrapper {
  display: flex;
  flex-direction: column;
}

.footer-block__bot-policy-list a {
  position: relative;
  color: var(--black-color);
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-block__bot-policy-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-block__bot-policy-list a:hover {
  color: var(--primary-color);
}

.footer-block__bot-policy-list a:hover::after {
  width: 100%;
}

.footer-block__bot {
  position: relative;
  padding-top: 24px;
}

.footer-block__bot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #cfcfcf;
}

.footer-block__bot-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-block__bot-copyright p {
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: #4f4f4f;
}

.footer-block__bot-socials .footer-block__bot-socials-list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-block__bot-socials .footer-block__bot-socials-list li img {
  transition: all 0.3s;
}

.footer-block__top.footer-block__top--desktop {
  display: flex;
  gap: 60px;
  justify-content: space-between;
}

.footer-block__info {
  display: flex;
  flex-direction: column;
  flex-basis: 274px;
}

.footer-block__info-logo {
  display: flex;
  margin-bottom: 16px;
}

.footer-block__info-logo img {
  width: 100%;
  max-width: 146px;
}

.footer-block__info-description {
  margin-bottom: 24px;
}

.footer-block__info-description p {
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: #4f4f4f;
  max-width: 274px;
}

.footer-block__info-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-block__info-contacts-title {
  font-weight: 500;
  font-size: 16px;
  line-height: 130%;
  color: #949393;
}

.footer-block__info-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-block__info-contacts-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #949393;
  background: transparent;
  border-radius: 40px;
  box-sizing: border-box;
  transition: all 0.3s;
}

.footer-block__info-contacts-item p {
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: var(--black-color);
}

.footer-block__info-contacts-item a {
  color: inherit;
  text-decoration: none;
}

.footer-block__info-contacts-item svg {
  min-width: 20px;
  height: auto;
}

.footer-block__info-contacts-item svg * {
  transition: all 0.3s;
}

.footer-block__bot-socials {
  margin-top: auto;
  margin-left: auto;
}

.footer-block__bot-socials--mobile {
  display: none;
}

.footer-block__menus-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.footer-block__menus {
  display: flex;
  /*flex-basis: calc(100% - 274px - 60px);*/
  width: 100%;
  margin-left: auto;
  max-width: 966px;
  gap: 24px;
  justify-content: space-between;
}

.footer-block__menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-block__menu-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 130%;
  color: var(--black-color);
  margin-right: 16px;
}

.footer-block__menu-title a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.footer-block__menu-title a:hover {
  color: var(--primary-color);
}

.footer-block ul.footer-block__menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 137px;
  overflow-y: scroll;
  position: relative;
}

.footer-block ul.footer-block__menu-list::-webkit-scrollbar {
  display: none;
}

.footer-block ul.footer-block__menu-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.custom-scrollbar-container-footer {
  position: absolute;
  top: 0;
  width: 8px;
  background: transparent;
  z-index: 10;
}

.custom-scrollbar-thumb-footer {
  background: #e0e0e0;
  width: 8px;
  border-radius: 99px;
  transition: all 0.3s ease;
  opacity: 0;
}

.footer-block ul.footer-block__menu-list li a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #4f4f4f;
  text-decoration: none;
  position: relative;
  transition: all 0.3s;
}

.footer-block ul.footer-block__menu-list li a span {
  display: flex;
}

.footer-block ul.footer-block__menu-list li a span svg {
  flex-shrink: 0;
  min-width: 16px;
  height: auto;
  opacity: 0;
  transition: all 0.3s ease;
}

@media screen and (min-width: 1201px) {
  .footer-block__info-contacts-item:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
  }

  .footer-block__menu:hover .custom-scrollbar-thumb-footer {
    opacity: 1;
  }

  .custom-scrollbar-thumb-footer:hover,
  .custom-scrollbar-thumb-footer:active {
    background: var(--primary-color);
  }

  .footer-block ul.footer-block__menu-list li a:hover {
    color: var(--primary-color);
  }

  .footer-block__info-contacts-item:hover p {
    color: #fff;
  }

  .footer-block__info-contacts-item:hover svg path {
    stroke: #fff;
  }

  .footer-block__menu ul li a:hover span svg {
    opacity: 1;
  }

  .footer-block__info-contacts-item {
    padding: 6px 22px;
    max-width: fit-content;
  }

  .footer-block__top--mobile {
    display: none !important;
  }

  .footer-block__bot {
    margin-top: 24px;
  }

  .footer-block ul.footer-block__menu-list {
    padding-right: 18px;
  }

  .custom-scrollbar-container-footer {
    right: 5px;
    margin-top: 34px;
    height: calc(100% - 34px);
  }
}

@media screen and (max-width: 1200px) {
  .footer-block__info {
    margin-bottom: 40px;
  }

  .footer-block__info-description {
    margin-bottom: unset;
  }

  .footer-block__bot-wrapper {
    margin-top: 8px;
  }

  .footer-block__bot-socials--mobile {
    display: block;
  }

  .footer-block__bot-socials--mobile ul {
    display: flex;
  }

  .footer-block__top--desktop {
    display: none !important;
  }

  .footer-block ul.footer-block__menu-list {
    max-height: 184px;
    gap: 8px;
    padding-right: 29px;
  }

  .custom-scrollbar-container-footer {
    right: 11px;
    margin-top: 16px;
    height: calc(100% - 16px);
  }

  .footer-block__bot {
    margin-top: 40px;
  }

  .footer-block__info-contacts-title {
    line-height: 150%;
  }

  .footer-block__info-contacts {
    margin-top: 24px;
  }

  .footer-block__info-contacts-item {
    padding: 10px 22px;
    justify-content: center;
    max-width: fit-content;
  }
}

/* Footer accordion (mobile menu)*/
.footer-block__accordion-wrapper .c-accordion__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 500;
  font-size: 16px;
  line-height: 140%;
  color: var(--black-color);
}

.footer-block__accordion-wrapper .c-accordion__title a {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

.footer-block__accordion-wrapper .c-accordion__title svg {
  width: 100%;
  height: auto;
  min-width: 24px;
  max-width: 24px;
  transition: all 0.3s;
  transform-origin: center;
  margin-right: 4px;
}

.footer-block__accordion-wrapper .c-accordion__title svg path {
  transition: all 0.3s;
  transform-origin: center;
}

.footer-block__accordion-wrapper .c-accordion__title.active svg {
  transform: rotate(180deg);
}

.footer-block__accordion-wrapper .c-accordion__title.active {
  color: var(--primary-color);
}

.footer-block__accordion-wrapper .c-accordion__title.active svg path {
  stroke: var(--primary-color);
}

.heading {
  cursor: pointer;
}

.contents {
  display: none;
}

.footer-block__accordion-wrapper .c-accordion__title::before,
.footer-block__accordion-wrapper .c-accordion__title::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 16px;
  left: 0;
}

.footer-block__accordion-wrapper .c-accordion__title::before {
  top: 0;
}

.footer-block__accordion-wrapper .c-accordion__title::after {
  bottom: 0;
}

.footer-block__accordion-wrapper .c-accordion__content {
  padding-top: 16px;
}

.footer-block__accordion-wrapper .c-accordion__item {
  cursor: pointer;
  padding-bottom: 16px;
  padding-top: 16px;
  position: relative;
}
