.siteFooter {
  --footer-slope: 136px;
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: visible;
  background: var(--bg);
  color: var(--white);
  isolation: isolate;
}

.siteFooter::before {
  content: "";
  position: absolute;
  top: calc(var(--footer-slope) * -1);
  right: 0;
  z-index: 1;
  width: 100%;
  height: var(--footer-slope);
  background: var(--bg);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.siteFooter__inner {
  position: relative;
  z-index: 2;
  padding-top: 76px;
  padding-bottom: 28px;
}

.siteFooter__top {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 0.8fr) minmax(360px, 1fr);
  align-items: start;
  gap: 90px;
  padding-bottom: 62px;
}

.siteFooter__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.siteFooter__logo {
  display: block;
  width: 230px;
}

.siteFooter__logo img {
  width: 100%;
}

.siteFooter__tagline {
  margin-top: 28px;
  color: rgba(243, 240, 236, 0.5);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.siteFooter__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 44px;
  row-gap: 18px;
  padding-top: 4px;
}

.siteFooter__nav a {
  position: relative;
  width: fit-content;
  padding-bottom: 5px;
  color: rgba(243, 240, 236, 0.68);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.siteFooter__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.siteFooter__nav a:hover {
  color: var(--white);
}

.siteFooter__nav a:hover::after {
  transform: scaleX(1);
}

.siteFooter__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 34px;
  border-left: 1px solid rgba(243, 240, 236, 0.12);
}

.siteFooter__contactLabel {
  color: rgba(243, 240, 236, 0.44);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.siteFooter__contactLink {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-width: 290px;
  margin-top: 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(243, 240, 236, 0.34);
  color: var(--white);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
  text-transform: uppercase;
  transition: border-color 0.2s ease,
    color 0.2s ease;
}

.siteFooter__contactLink b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(243, 240, 236, 0.28);
  border-radius: 50%;
  font-family: var(--text);
  font-size: 18px;
  font-weight: 400;
  transition: border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.siteFooter__contactLink:hover {
  border-color: var(--sand);
  color: var(--sand);
}

.siteFooter__contactLink:hover b {
  border-color: var(--sand);
  background: var(--sand);
  color: var(--bg);
  transform: rotate(45deg);
}

.siteFooter__contactText {
  max-width: 430px;
  margin-top: 18px;
  color: rgba(243, 240, 236, 0.5);
}

.siteFooter__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 240, 236, 0.12);
  color: rgba(243, 240, 236, 0.4);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.siteFooter__legalLinks {
  display: flex;
  align-items: center;
  gap: 34px;
}

.siteFooter__legal a {
  transition: color 0.2s ease;
}

.siteFooter__legal a:hover {
  color: var(--white);
}

.siteFooter__brand,
.siteFooter__nav,
.siteFooter__contact,
.siteFooter__legal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.siteFooter.is-active .siteFooter__brand,
.siteFooter.is-active .siteFooter__nav,
.siteFooter.is-active .siteFooter__contact,
.siteFooter.is-active .siteFooter__legal {
  opacity: 1;
  transform: none;
}

.siteFooter.is-active .siteFooter__nav {
  transition-delay: 0.06s;
}

.siteFooter.is-active .siteFooter__contact {
  transition-delay: 0.12s;
}

.siteFooter.is-active .siteFooter__legal {
  transition-delay: 0.18s;
}

.siteFooter::before {
  top: calc((var(--footer-slope) * -1) - 3px);
  right: -3px;
  width: calc(100% + 6px);
  height: calc(var(--footer-slope) + 6px);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.siteFooter__contactText {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

@media (max-width: 1700px) {
  .siteFooter {
    --footer-slope: 120px;
  }
}

@media (max-width: 1440px) {
  .siteFooter__top {
    grid-template-columns: minmax(240px, 0.82fr) minmax(300px, 0.76fr) minmax(320px, 1fr);
    gap: 54px;
  }

  .siteFooter__logo {
    width: 210px;
  }

  .siteFooter__contact {
    padding-left: 28px;
  }
}

@media (max-width: 1200px) {
  .siteFooter__inner {
    padding-top: 66px;
  }

  .siteFooter__top {
    grid-template-columns: 1fr 1fr;
    gap: 54px 70px;
  }

  .siteFooter__contact {
    grid-column: 1 / -1;
    max-width: 680px;
    padding-top: 34px;
    padding-left: 0;
    border-top: 1px solid rgba(243, 240, 236, 0.12);
    border-left: 0;
  }

  .siteFooter {
    --footer-slope: 110px;
  }

  .siteFooter {
    --footer-slope: 110px;
  }

  .siteFooter__inner {
    padding-top: 56px;
  }
}

@media (max-width: 900px) {
  .siteFooter {
    --footer-slope: 92px;
  }

  .siteFooter {
    --footer-slope: 92px;
  }

  .siteFooter__inner {
    padding-top: 48px;
  }
}

@media (max-width: 700px) {
  .siteFooter__inner {
    padding-top: 54px;
    padding-bottom: 22px;
  }

  .siteFooter__top {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-bottom: 44px;
  }

  .siteFooter__logo {
    width: 190px;
  }

  .siteFooter__tagline {
    margin-top: 22px;
    font-size: 12px;
  }

  .siteFooter__nav {
    column-gap: 28px;
  }

  .siteFooter__contact {
    grid-column: auto;
    padding-top: 30px;
  }

  .siteFooter__contactLink {
    width: 100%;
    min-width: 0;
    font-size: 20px;
  }

  .siteFooter__legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .siteFooter__legalLinks {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .siteFooter {
    --footer-slope: 76px;
  }

  .siteFooter {
    --footer-slope: var(--mobile-slope);
  }

  .siteFooter__inner {
    padding-top: 40px;
    padding-bottom: 18px;
  }

  .siteFooter__top {
    gap: 28px;
    padding-bottom: 30px;
  }

  .siteFooter__tagline {
    margin-top: 16px;
  }

  .siteFooter__contact {
    padding-top: 22px;
  }

  .siteFooter__legal {
    gap: 14px;
    padding-top: 18px;
  }

  .siteFooter__brand,
  .siteFooter__nav,
  .siteFooter__contact,
  .siteFooter__legal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s;
  }
}

@media (max-width: 480px) {
  .siteFooter__nav {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .siteFooter__contactLink {
    font-size: 18px;
  }

  .siteFooter {
    --footer-slope: 62px;
  }

  .siteFooter__inner {
    padding-top: 34px;
  }
}

@media (min-width: 1201px) and (max-height: 860px) {
  .siteFooter {
    --footer-slope: 94px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .siteFooter__brand,
  .siteFooter__nav,
  .siteFooter__contact,
  .siteFooter__legal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
