.footer {
  position: relative;
  width: 100%;
  background: #ffdbdb;
  color: var(--color-black);
  padding-top: 20px;
  padding-bottom: 23px;
}

.footer.locked {
  display: none;
}

.footer__title {
  font-family: "Helvetica", sans-serif, "Sharp Grotesk Bold 15", "-apple-system",
    "BlinkMacSystemFont", "Segoe UI", "Helvetica", "Arial", "Apple Color Emoji",
    "Segoe UI Emoji";
  position: relative;
  top: 3px;
  font-weight: 400;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  padding: 15px 0;
  margin: 0;
}

.footer__bottom {
  position: relative;
  padding-top: 18px;
  padding-bottom: 16px;
  color: var(--color-black);
  background: #ffdbdb;
  font-size: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row;
  gap: 20px;
}

.footer__bottom.locked {
  display: none;
}

.footer__bottom::before {
  content: "";
  height: 1px;
  background-color: var(--color-black);
  position: absolute;
  opacity: 0.4;
  top: 0;
  left: 24px;
  right: 24px;
}

.footer__bottom aside {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.footer__bottom main {
  display: block;
  font-size: 10px;
}

.footer__bottom main span {
  position: relative;
  top: -1px;
  max-width: 115px;
  display: block;
}

.footer__logo {
  display: block;
}

.footer__logo svg {
  width: 80px;
}

/* Footer social media icons */
.footer__bottom aside {
  gap: 8px;
}

.footer__bottom aside>a {
  opacity: 1;
}

.footer__bottom aside>a:hover,
.footer__bottom aside>a:focus {
  opacity: 0.7;
}


.footer__bottom aside>a svg path {
  fill: var(--color-black);
}

.footer__bottom aside>a.x svg {
  position: relative;
  left: 1px;
  height: 22px;
}

.footer__bottom aside>a.telegram svg {
  position: relative;
  left: 1px;
}

/* Fix icon height */
.footer__bottom .social__square {
  height: 17px;
}

.footer__wrap {
  flex-direction: column;
  padding-top: 0;
}

.footer__wrap aside:first-of-type {
  display: none;
}

.footer__wrap aside {
  flex: 1 1 0;
}

.footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
  min-width: 145px;
}

.footer ul li {
  margin-top: 4px;
  list-style: none;
}

.footer ul li a {
  -webkit-text-size-adjust: 100%;
  word-wrap: break-word;
  font-size: 14px;
  color: var(--color-black);
  transition: opacity 0.32s ease;
}

.footer ul li a:hover,
.footer ul li a:focus {
  opacity: 0.6;
  text-decoration: underline;
}

.footer .footer__wrap nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer .footer__wrap nav:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-black);
  opacity: 0.6;
}

.footer aside:last-of-type nav::after {
  display: none;
}

.footer .footer__wrap nav .icon {
  position: relative;
  top: 2px;
  right: -5px;
  padding: 5px;
  box-sizing: content-box;
  width: 12px;
}

.footer .footer__wrap nav~ul {
  display: none;
  padding-left: 16px;
  position: relative;
}

.footer .footer__wrap nav~ul li {
  margin-bottom: 11px;
}

.footer .footer__wrap nav~ul li:last-of-type {
  margin-bottom: 19px;
}

.footer .footer__wrap nav .icons--up {
  display: none;
}

.footer .footer__wrap nav.active~ul {
  display: block;
}

.footer .footer__wrap nav.active~ul::after {
  content: "";
  position: absolute;
  /* bottom: 0; */
  left: 0;
  right: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-black);
  opacity: 0.6;
}

.footer .footer__wrap nav.active .icons--up {
  display: block;
}

.footer .footer__wrap nav.active:after,
.footer .footer__wrap nav.active .icons--down {
  display: none;
}

/* Responsive design  */
/* On 768px footer menu item cant fit to full widh. */
@media (min-width: 845px) {
  .footer {
    padding-top: 25px;
    padding-bottom: 80px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .footer__logo svg {
    width: 105px;
    position: relative;
  }

  .footer__wrap {
    flex-direction: row;
    gap: 15px;
  }

  .footer__wrap aside {
    padding: 0;
    max-width: 226px;
  }

  .footer__title {
    font-weight: 700;
    font-size: 12px;
  }

  .footer .footer__wrap nav:after,
  .footer .footer__wrap nav.active .icon,
  .footer .footer__wrap nav .icon {
    display: none;
  }

  .footer .footer__wrap nav~ul {
    display: block;
    padding-left: 0;
  }

  .footer .footer__wrap nav~ul li {
    margin-bottom: 10px;
  }

  .footer .footer__wrap nav~ul li:last-of-type {
    margin-bottom: 0;
  }

  .footer .footer__wrap nav {
    padding-bottom: 5px;
  }

  .footer__bottom::before {
    left: 40px;
    right: 40px;
  }

  .footer__bottom main {
    display: flex;
    font-size: 12px;
    align-items: center;
    gap: 6px;
  }

  .footer__bottom main span {
    top: 0;
    max-width: 100%;
  }

  .footer__bottom aside {
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  .footer__wrap aside:first-of-type {
    display: block;
    padding: 5px 0;
    max-width: 156px;
  }

  .footer__bottom .footer__logo {
    display: none;
  }

  .footer__bottom {
    align-items: center;
    padding-top: 10px;
    padding-bottom: 14px;
  }

  .footer__logo {
    position: relative;
    top: 11px;
  }
}