/**
 * @file
 * The footer components.
 *
 * It includes styles for the footer itself and its
 * components.
 *
 *
 *
 * Global footer rules
 */

.main__footer {
  margin-top: auto;
}
.footer-block {
  background-color: var(--color-primary-dark);
  padding: 1rem 1.5rem;
  color: var(--color-white);
}
.footer-block ul.menu a.is-active {
  color: var(--color-white);
}
.footer-block__wrapper {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media all and (min-width: 650px) {
  .footer-block__wrapper {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
@media all and (min-width: 1000px) {
  .footer-block {

  }
  .footer-block__content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }
  .footer-block__wrapper {
    width: calc(66.6666% - 1rem);
  }
}
@media all and (min-width: 1400px) {
  .footer-block__wrapper {
    width: calc(58.333% - 1.3333rem);
  }
}


/**
 * Logo
 */

.footer-block__logo {
  padding-top: 2rem;
}
.footer-block__logo img{
  margin: 0 auto;
  max-width: 185px;
}
@media all and (min-width: 1000px) {
  .footer-block__logo {
    width: calc(33.333% - 1rem);
  }
}
@media all and (min-width: 1400px) {
  .footer-block__logo {
    width: calc(16.666% - 1.3333rem);
  }
}

/**
 * Text
 */

.footer-block__text {
  display: flex;
  flex-direction: column;
  gap: 0.675rem;
}
.footer-block__text strong {
  font-size: 1.145rem;
}
.footer-block__text p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 170%;
}
.footer-block__text a {
  color: var(--color-white);
  text-decoration: underline;
}
@media all and (min-width: 650px) {
  .footer-block__text {
    width: calc(50% - 1rem);
  }
}


/**
 * General footer menu fix
 */

.footer-block .menu {
  padding: 0;
  margin: 0;
}

/**
 * Menu RS
 */

.footer-block__menu-rs .menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-block__menu-rs .menu__link {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 100%;
  text-indent: -9999px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  background-position: center;
}
.footer-block__menu-rs .menu__link:hover {
  background-color: var(--color-primary);
}
.footer-block__menu-rs .rs-facebook {
  background-image: url("../../images/footer/facebook.svg");
}
.footer-block__menu-rs .rs-twitter {
  background-image: url("../../images/footer/twitter.svg");
  background-size: 20px 20px;
}
.footer-block__menu-rs .rs-linkedin {
  background-image: url("../../images/footer/linkedin.svg");
}
@media all and (min-width: 1400px) {
  .footer-block__menu-rs {
    width: calc(25% - 1.3333rem);
  }
}

/**
 * Menu Footer
 */

.footer-block__menu-footer {
  margin: 1.5rem 0 2rem;
}
.footer-block__menu-footer .menu__link {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-white);
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 0.615rem;
}
.footer-block__menu-footer .menu__link::before,
.footer-block__menu-footer .menu__link::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.footer-block__menu-footer .menu__link::after {
  background-image: url("../../images/footer/arrow.svg");
  margin-left: auto;
  transition: 0.1s;
}
.footer-block__menu-footer .menu__link--list::before {
  background-image: url("../../images/footer/list.svg");
}
.footer-block__menu-footer .menu__link--familly::before {
  background-image: url("../../images/footer/family.svg");
}
.footer-block__menu-footer .menu__link--write::before {
  background-image: url("../../images/footer/form.svg");
}
.footer-block__menu-footer .menu__link--paper::before {
  background-image: url("../../images/footer/news.svg");
}
.footer-block__menu-footer .menu__link:hover {
  text-decoration: none;
}
.footer-block__menu-footer .menu__link:hover:after {
  transform: translateX(5px);
}
@media all and (min-width: 900px) {
  .footer-block__menu-footer {
    margin: 0 auto;
  }
}
@media all and (min-width: 1300px) {
  .footer-block__menu-footer {
    margin: 1rem auto;
  }
}

/**
 * Menu Legal
 */

.footer-block__menu-legal {
  margin: 4rem 0 2rem;
}
.footer-block__menu-legal .menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-block__menu-legal .menu__link {
  color: var(--color-white);
}
@media all and (min-width: 650px) {
  .footer-block__menu-legal .menu {
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    justify-content: center;
  }
}
@media all and (min-width: 900px) {
  .footer-block__menu-legal {

  }
}
