.site-footer {
  position: relative;
  background: #3b3b3b;
  color: #d7d7d7;
  padding: 30px 0 36px;
}

.site-footer__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: clamp(78px, 9.4vw, 182px);
  background: url("../images/footer-wave.png") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.footer-nav {
  width: min(1260px, calc(100% - 120px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px 40px;
}

.footer-nav__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-nav__head,
.footer-nav__links {
  display: contents;
}

.footer-nav__toggle {
  display: none;
}

.footer-nav a {
  color: #cfcfcf;
  font-size: clamp(13px, calc(100vw * 15 / 1920), 15px);
  line-height: 1.35;
  text-decoration: none;
}

.footer-nav__title {
  margin-bottom: 14px;
  color: #f2f2f2;
  font-size: clamp(14px, calc(100vw * 16 / 1920), 16px);
  font-weight: 700;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  margin-top: 40px;
  text-align: center;
}

.footer-legal__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 0;
}

.footer-legal__links a {
  color: #e8e8e8;
  font-size: clamp(13px, calc(100vw * 15 / 1920), 15px);
  text-decoration: none;
}

.footer-legal__links a:hover,
.footer-legal__links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal__copy {
  margin: 14px 0 0;
  color: #d0d0d0;
  font-size: clamp(12px, calc(100vw * 13 / 1920), 13px);
}

@media (max-width: 1100px) {
  .footer-nav {
    width: min(980px, calc(100% - 48px));
    gap: 18px 22px;
  }
}

@media (max-width: 800px) {
  .site-footer {
    padding: 28px 0 32px;
  }

  .footer-nav {
    display: block;
    width: calc(100% - 40px);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
  }

  .footer-nav__col {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .footer-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
  }

  .footer-nav__title {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .footer-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
  }

  .footer-nav__icon {
    position: relative;
    width: 14px;
    height: 14px;
  }

  .footer-nav__icon::before,
  .footer-nav__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
  }

  .footer-nav__icon::before {
    width: 14px;
    height: 1px;
  }

  .footer-nav__icon::after {
    width: 1px;
    height: 14px;
  }

  .footer-nav__col.is-open .footer-nav__icon::after {
    display: none;
  }

  .footer-nav__links {
    display: none;
    flex-direction: column;
    padding: 0 0 8px;
  }

  .footer-nav__col.is-open .footer-nav__links {
    display: flex;
  }

  .footer-nav__links a {
    padding: 8px 0;
    color: #e4e4e4;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .footer-legal {
    margin-top: 32px;
  }
}
