﻿.footer {
  position: relative;
  background-color: #27304A;
  padding: 20px 0;
}

.footer::before {
background-image: url('../img/bg-footer.png');
background-image: image-set(url('../img/bg-footer.webp') type('image/webp'), url('../img/bg-footer.png') type('image/png'));
position: absolute;
display: block;
content: '';
width: 100%;
height: 100%;
left: 0;
top: 0;
background-repeat: no-repeat;
background-size: 100% auto;
opacity: 0.2;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.footer__info {
  width: 305px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo {
  width: 100%;
  height: auto;
}

.footer__logo img {
  width: 100%;
  height: auto;
}

.footer__text {
  color: var(--background);
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__social {
  font-size: 0;
  color: transparent;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: auto;
}

.footer__nav p {
  color: var(--background);
  display: none;
}

.footer__menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__menu a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 22px;
  line-height: 30px;
  color: var(--background);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 305px;
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--background);
  padding-bottom: 10px;
  border-bottom: 1px solid #CDD5E366;
}

.footer__contact svg {
  flex-shrink: 0;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link,
.footer__links p {
  color: var(--background);
}

@media (max-width: 1080px) {
  .footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 8px;
  }

  .footer__info,
  .footer__contacts {
    width: 100%;
  }

  .footer__contacts {
    order: -1;
  }

  .footer__info {
    order: -2;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 10px 0;
  }

  .footer__info {
    order: 1;
  }

  .footer__nav {
    order: 2;
  }

  .footer__contacts {
    order: 3;
    grid-column: span 2;
  }

  .footer__links {
    order: 4;
    grid-column: span 2;
    align-items: center;
    text-align: center;
  }

  .footer__nav p {
    display: block;
  }

  .footer__menu {
    gap: 10px;
  }

  .footer__menu a {
    font-size: 16px;
    line-height: 24px;
  }

  .footer__contact {
    gap: 10px;
  }
}