#footer.home-footer {
  position: relative;
  isolation: isolate;
  padding: clamp(34px, 4.3vw, 58px) 0 20px;
  background: var(--section-bg, #0b0b0e);
}

.home-footer::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  pointer-events: none;
  inset-inline: 0;
  height: min(310px, 78%);
  background: radial-gradient(ellipse 60% 61% at 50% 28%, rgb(var(--scene-violet) / .19), transparent 80%);
  mask-image: linear-gradient(transparent, #000 29%);
}

.home-footer > .container {
  width: min(1136px, calc(100% - 80px));
}

.home-footer-finale {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.home-footer-finale h2 {
  font-size: clamp(33px, 4.15vw, 53px);
  font-weight: 735;
  line-height: 1.08;
  letter-spacing: -.057em;
}

.home-footer-finale p {
  margin: 14px 0 19px;
  color: #aaa5b3;
  font-size: 14px;
  line-height: 1.75;
}

.home-footer-finale .button {
  gap: 11px;
  min-height: 44px;
  padding: 11px 18px;
  font-size: 13px;
}

.home-footer-navigation {
  display: grid;
  grid-template-columns: minmax(185px, .88fr) minmax(0, 2.58fr);
  gap: clamp(20px, 3vw, 38px);
  margin-bottom: 28px;
}

.home-footer .footer-top {
  display: block;
  padding: 0;
}

.home-footer .footer-top .brand {
  display: inline-block;
  font-size: 37px;
  line-height: 1.1;
}

.home-footer .footer-top p {
  max-width: 195px;
  margin: 12px 0 0;
  color: #aaa5b3;
  font-size: 13px;
}

.home-footer .footer-top .home-footer-contact {
  margin-top: 20px;
}

.home-footer-contact a {
  color: #ece8f2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-footer-contact strong {
  color: #ece8f2;
  font-weight: 650;
}

.home-footer .footer-map {
  grid-template-columns: .97fr .98fr 1.04fr 1.18fr;
  gap: clamp(12px, 1.8vw, 24px);
  padding: 0 0 0 clamp(16px, 2vw, 25px);
  border-inline-start: 1px solid #ffffff15;
}

[dir=rtl] .home-footer .footer-map {
  padding: 0 clamp(16px, 2vw, 25px) 0 0;
}

.home-footer .footer-map h3 {
  margin-bottom: 11px;
  color: rgb(var(--scene-highlight) / .88);
  font-size: 13px;
  line-height: 1.4;
}

.home-footer .footer-map a {
  width: fit-content;
  margin-top: 7px;
  color: #b4adbf;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: rgb(var(--scene-highlight) / .35);
  text-underline-offset: 3px;
}

.home-footer .footer-map a:is(:hover, :focus-visible) {
  text-decoration-color: currentColor;
}

.home-footer .footer-map a:hover,
.home-footer .back-top:hover {
  color: rgb(var(--scene-white));
}

.home-footer .footer-bottom {
  align-items: center;
  padding-top: 15px;
  color: #a39bae;
  font-size: 12px;
}

.home-footer-meta,
.home-footer-documents {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
}

.home-footer-documents a:hover {
  color: rgb(var(--scene-white));
}

.home-footer :is(.footer-map, .home-footer-documents) a:focus-visible {
  outline: 2px solid rgb(var(--scene-highlight));
  outline-offset: 3px;
}

.home-footer .back-top {
  gap: 10px;
}

.home-footer .back-top svg {
  width: 16px;
  height: 16px;
  color: rgb(var(--scene-highlight));
}

@media (max-width: 780px) {
  .home-footer > .container {
    width: calc(100% - 40px);
  }

  .home-footer-navigation {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-footer .footer-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 21px;
    padding: 0;
    border: 0;
  }
}

/* на телефоне ссылки подвала были 18–22 px высотой — мимо пальца; цель нажатия не меньше 40 px */
@media (max-width: 800px) {
  .home-footer :is(.footer-map, .home-footer-contact, .home-footer-documents) a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .home-footer .footer-map a {
    display: flex;
    margin-top: 0;
  }

  .home-footer-documents {
    row-gap: 0;
  }
}
