footer {
  background-color: var(--grey);
  color: var(--white);
  padding: 5rem 0 4.25rem;
}
footer .main-footer {
  gap: 3rem;
  position: relative;
  padding-right: 3rem;
  padding-bottom: 1rem;
}
@media (max-width: 500px) {
  footer .main-footer {
    padding: 0;
  }
}
footer .main-footer > *:nth-child(1) {
  width: calc((100% - 7rem) / 3);
}
@media (max-width: 500px) {
  footer .main-footer > *:nth-child(1) {
    width: 100%;
  }
}
footer .main-footer > *:nth-child(2) {
  width: calc((100% - 7rem) / 3 * 2 + 3.5rem);
}
@media (max-width: 500px) {
  footer .main-footer > *:nth-child(2) {
    width: 100%;
  }
}
footer .main-footer > *:nth-child(2) > * {
  width: 100%;
}
footer .main-footer > *:nth-child(2) > * > * {
  width: calc((100% - 3.5rem) / 2);
}
@media (max-width: 500px) {
  footer .main-footer > *:nth-child(2) > * > * {
    width: 100%;
  }
}
@media (max-width: 500px) {
  footer .main-footer > * {
    width: 100%;
  }
}
footer .main-footer::before, footer .main-footer::after {
  content: "";
  position: absolute;
  background-color: var(--red);
  right: 0;
}
@media (max-width: 500px) {
  footer .main-footer::before, footer .main-footer::after {
    display: none;
  }
}
footer .main-footer::before {
  bottom: 0;
  width: 7.5rem;
  height: 1rem;
}
footer .main-footer::after {
  bottom: 1rem;
  width: 1rem;
  height: 15.5rem;
}
footer .main-footer .symbol {
  background-image: url("../assets/images/ab-symbol.svg");
  background-size: contain;
  background-repeat: no-repeat;
  aspect-ratio: 1/1;
}
@media (max-width: 500px) {
  footer .main-footer .symbol {
    order: 3;
  }
}
footer .main-kontakts > * {
  margin-bottom: 1.4rem;
}
footer .kontakts > * {
  margin-bottom: 1.9rem;
}
@media (max-width: 500px) {
  footer .kontakts > *:nth-child(1), footer .kontakts > *:nth-child(3) {
    order: -1;
  }
}
footer .copyright {
  margin-top: -0.96rem;
  padding-bottom: 1.4rem;
}
footer .copyright p {
  font-size: 0.8rem;
}
footer .footer-nav {
  font-weight: 700;
  line-height: 150%;
}
footer .footer-nav a {
  text-transform: uppercase;
}
footer .footer-nav a:hover, footer .footer-nav a:focus {
  color: var(--red);
  text-decoration: none;
}
footer .footer-nav span {
  color: var(--red);
}