.site-footer {
  position: relative;
  overflow: hidden;
  transform: scale(var(--footer-scale, 1));
  transform-origin: center top;
  border-radius: var(--footer-radius, 0px) var(--footer-radius, 0px) 0 0;
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: 0;
  color: #fff;
  background:
    radial-gradient(ellipse at 50% 0, rgba(44, 167, 64, .28), transparent 55%),
    linear-gradient(180deg, #147024, #142b1c 52%, #1c201d 88%);
}

.footer-hub {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.footer-hub h2 {
  margin: 0;
  font-size: clamp(28px, 5.3vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.065em;
  word-spacing: .1em;
  text-wrap: balance;
}

.footer-intro {
  max-width: 440px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.6;
  text-wrap: pretty;
}

.footer-rotator {
  display: grid;
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0;
  padding: .2em .4em .25em;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 14px;
  color: #145f25;
  background: #e4f2df;
  box-shadow: 0 8px 30px rgba(8, 32, 16, .12);
  font-size: .82em;
  line-height: 1.12;
  letter-spacing: -.05em;
}

.footer-phrase {
  grid-area: 1 / 1;
  opacity: 0;
  filter: blur(4px);
  transform: translateY(.25em);
  pointer-events: none;
  transition: opacity .45s ease, filter .45s ease, transform .55s cubic-bezier(.16, 1, .3, 1);
}

.footer-phrase.is-active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.footer-phrase.is-leaving {
  transform: translateY(-.25em);
}

.footer-phone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: min(100%, 660px);
  min-height: 82px;
  margin: 36px auto 0;
  padding: 18px 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 60px;
  background: rgba(255, 255, 255, .1);
  font-size: clamp(23px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -.04em;
  transition: background-color .25s ease, border-color .25s ease;
}

.footer-phone > span {
  position: absolute;
  right: 30px;
  font-size: 32px;
  font-weight: 400;
}

.footer-phone:hover,
.footer-socials a:hover {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .17);
}

.footer-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  gap: 6px;
  margin: 0;
  color: rgba(255, 255, 255, .75);
  font-size: 11px;
  font-style: normal;
  line-height: 1.6;
  text-align: right;
}

.footer-details a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 5px;
}

.footer-brand-block {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
}

.footer-brand-block .brand {
  flex-shrink: 0;
}

.footer-brand-block .brand-logo {
  width: 220px;
  height: auto;
}

.footer-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin-top: 64px;
  padding-bottom: 28px;
}

.footer-navigation nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.footer-back {
  justify-self: start;
}

.footer-socials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 660px);
  margin: 12px auto 0;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 60px;
  background: rgba(255, 255, 255, .1);
  font-size: 13px;
  font-weight: 700;
  transition: background-color .25s ease, border-color .25s ease;
}

.footer-socials a > span {
  color: rgba(255, 255, 255, .75);
  font-size: 18px;
  font-weight: 400;
}

.footer-navigation a {
  font-size: 11px;
  font-weight: 600;
}

.footer-back > span {
  display: inline-block;
  margin-left: 5px;
  color: rgba(255, 255, 255, .6);
}

.footer-navigation a:hover,
.footer-details a:hover,
.footer-legal a:hover,
.footer-credit a:hover {
  color: #c6e9cb;
}

.footer-legal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: baseline;
  gap: 12px 28px;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .5);
  font-size: 10px;
  line-height: 1.6;
}

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

.footer-business {
  text-align: center;
}

.site-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

.footer-credit {
  justify-self: end;
  color: rgba(255, 255, 255, .65);
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}

.footer-credit strong {
  color: #fff;
  font-weight: 800;
}

.footer-phone:focus-visible,
.footer-socials a:focus-visible {
  outline-offset: -6px;
}

@media (max-width: 1000px) {
  .footer-navigation {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .footer-back {
    justify-self: center;
  }

  .footer-details {
    align-items: center;
    justify-self: center;
    text-align: center;
  }

  .footer-navigation nav {
    gap: 14px 22px;
  }
}

@media (max-width: 600px) {
  .footer-hub h2 {
    font-size: clamp(24px, 6.2vw, 34px);
    line-height: 1.08;
  }

  .footer-intro {
    margin-top: 22px;
    font-size: 13px;
  }

  .footer-phone {
    min-height: 68px;
    margin-top: 28px;
    padding: 16px 20px;
    gap: 12px;
    font-size: clamp(20px, 5.6vw, 30px);
    white-space: nowrap;
  }

  .footer-phone > span {
    right: 20px;
    font-size: 26px;
  }

  .footer-details {
    font-size: 12px;
  }

  .footer-socials {
    gap: 10px;
  }

  .footer-socials a {
    justify-content: center;
    min-height: 48px;
    padding: 12px 8px;
    font-size: 12px;
  }

  .footer-socials a > span {
    display: none;
  }

  .footer-brand-block {
    margin-top: 44px;
  }

  .footer-brand-block .brand-logo {
    width: 200px;
  }

  .footer-navigation {
    gap: 28px;
    margin-top: 44px;
    text-align: center;
  }

  .footer-navigation nav {
    justify-content: center;
    gap: 16px 24px;
  }

  .footer-navigation a {
    padding-block: 6px;
  }

  .footer-legal {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .footer-copyright {
    align-items: center;
  }

  .footer-credit {
    justify-self: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer {
    transform: none;
    border-radius: 0;
  }

  .footer-phrase {
    transition: none;
    transform: none;
    filter: none;
  }

  .footer-phone,
  .footer-socials a {
    transition: none;
  }
}
