.site-footer {
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  background: #202529;
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
}

.site-footer__inner {
  width: min(calc(100% - 2 * var(--gutter)), var(--content-max));
  margin: 0 auto;
  padding: clamp(76px, 7.4vw, 116px) 0 clamp(24px, 2vw, 34px);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(130px, .45fr) minmax(140px, .48fr) minmax(230px, .75fr);
  gap: clamp(38px, 5vw, 84px);
  align-items: start;
  padding-bottom: clamp(76px, 8vw, 124px);
}

.site-footer__phone {
  display: block;
  width: fit-content;
  color: #fff;
  font-size: clamp(48px, 5.15vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.055em;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__phone--secondary {
  margin-top: clamp(12px, 1.25vw, 20px);
}

.site-footer__email {
  display: block;
  width: fit-content;
  margin-top: clamp(22px, 2vw, 32px);
  color: rgba(255, 255, 255, .72);
  font-size: clamp(23px, 2.15vw, 34px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.03em;
  text-decoration: none;
}

.site-footer__messengers {
  margin-top: clamp(26px, 2.25vw, 34px);
}

.site-footer__messengers p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .56);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.site-footer__messenger-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__messenger-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 9px 13px 9px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.site-footer__messenger-links a:hover,
.site-footer__messenger-links a:focus-visible {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .1);
  transform: translateY(-1px);
}

.site-footer__messenger-links svg,
.site-footer__messenger-links img {
  display: block;
  width: 20px;
  height: 20px;
}

.site-footer__messenger-links .site-footer__telegram-icon {
  fill: #31a8ff;
}

.site-footer__nav,
.site-footer__social,
.site-footer__address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__nav a,
.site-footer__social a,
.site-footer__address address,
.site-footer__address a {
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}

.site-footer__nav a + a,
.site-footer__social a + a {
  margin-top: 4px;
}

.site-footer__roll-link {
  height: 1.5em;
  overflow: hidden;
}

.site-footer__roll-link span {
  display: block;
  transition: transform .55s var(--ease-out);
}

.site-footer__roll-link:hover span,
.site-footer__roll-link:focus-visible span {
  transform: translateY(-100%);
}

.site-footer__location {
  display: grid;
  gap: 8px;
}

.site-footer__location + .site-footer__location {
  margin-top: 26px;
}

.site-footer__location a {
  width: fit-content;
  margin-top: 0;
  font-size: 18px;
}

.site-footer__route {
  border-bottom: 1px solid rgba(255, 255, 255, .32);
}

.site-footer a,
.site-footer button {
  transition: opacity .35s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer button:hover,
.site-footer button:focus-visible {
  opacity: .68;
}

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

.site-footer__legal {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto;
  gap: 18px 34px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .48);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.35;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal button,
.site-footer__legal a {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .25);
  text-underline-offset: 4px;
  cursor: pointer;
}

.site-footer__logo {
  display: block;
  width: 100%;
  margin-top: clamp(14px, 1.7vw, 28px);
}

.site-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 1099px) {
  .site-footer__top {
      grid-template-columns: 1fr 1fr;
    }

  .site-footer__contact {
      grid-column: 1 / -1;
    }

  .site-footer__legal {
      grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
  .site-footer__inner {
      width: calc(100% - 40px);
      padding-top: 58px;
      padding-bottom: 20px;
    }

  .site-footer__top {
      grid-template-columns: 1fr;
      gap: 52px;
      padding-bottom: 58px;
    }

  .site-footer__contact {
      grid-column: auto;
    }

  .site-footer__phone {
      font-size: clamp(35px, 10.5vw, 48px);
      white-space: normal;
    }

  .site-footer__phone--secondary {
      margin-top: 12px;
    }

  .site-footer__email {
      margin-top: 20px;
      font-size: 22px;
    }

  .site-footer__messengers {
      margin-top: 26px;
    }

  .site-footer__nav a,
    .site-footer__social a,
    .site-footer__address address,
    .site-footer__address a {
      font-size: 18px;
    }

  .site-footer__legal {
      grid-template-columns: 1fr;
      gap: 12px;
      padding: 22px 0;
    }

  .site-footer__logo {
      margin-top: 18px;
    }
}
