.site-footer {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid rgb(255 255 255 / 10%);
  background: #07142f;
  color: #dce8ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
}

.site-footer::after {
  position: absolute;
  top: -7rem;
  right: -5rem;
  width: 19rem;
  height: 19rem;
  border: 1px solid rgb(79 139 255 / 18%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  width: min(84rem, calc(100% - 2rem));
  margin: 0 auto;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 1.05fr) minmax(30rem, 1.55fr) minmax(14rem, .85fr);
  gap: clamp(2rem, 4vw, 4rem);
  min-height: 11rem;
  align-items: center;
  padding: 2rem 0;
}

.site-footer .footer-grid--without-social { grid-template-columns: minmax(18rem, 1fr) minmax(30rem, 1.65fr); }

.site-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font: 700 1.4rem/1 Cambria, Georgia, "Times New Roman", serif;
  text-decoration: none;
}

.site-footer .brand em { color: #4ee1d5; font-style: normal; }
.site-footer .brand-mark { display: block; width: 2.75rem; height: 2.75rem; flex: none; border-radius: .82rem; object-fit: contain; }
.site-footer .footer-brand p { max-width: 31rem; margin: .65rem 0 0; color: #adc0df; font-size: .82rem; font-weight: 400; line-height: 1.65; }
.site-footer h2 { margin: 0 0 .5rem; color: #fff; font: 700 .88rem/1.2 Cambria, Georgia, "Times New Roman", serif; }

.footer-menu__links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .72rem;
  align-items: center;
}

.footer-menu__links a,
.footer-contact a {
  color: #dce8ff;
  text-underline-offset: .22em;
}

.footer-menu__links a { font-size: .82rem; font-weight: 400; text-decoration: none; }
.footer-menu__links i,
.footer-contact__phones i { color: #5c759c; font-style: normal; }
.footer-menu__links a:hover,
.footer-menu__links a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible { color: #fff; text-decoration: underline; }

.footer-social__links { display: flex; flex-wrap: wrap; gap: .4rem; }
.footer-social__links a { display: inline-grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid rgb(220 232 255 / 24%); border-radius: .55rem; color: #dce8ff; text-decoration: none; transition: border-color .18s ease, background-color .18s ease, color .18s ease; }
.footer-social__links a:hover,
.footer-social__links a:focus-visible { border-color: #5fe1d6; background: rgb(95 225 214 / 12%); color: #fff; }
.footer-social__links svg { width: .95rem; height: .95rem; fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.site-footer .footer-bottom {
  display: flex;
  min-height: 4rem;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding: .65rem max(1rem, calc((100vw - 84rem) / 2));
  background: rgb(0 0 0 / 18%);
}

.footer-contact {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: .65rem clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.footer-contact__item,
.footer-contact__phones {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  font-size: .78rem;
  font-weight: 400;
}
.footer-contact__phones { gap: .42rem; }
.footer-contact__separator { color: #7389aa; line-height: 1; }

.footer-contact__item > svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  fill: none;
  stroke: #5fe1d6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.footer-copyright { flex: none; margin: 0; color: #adc0df; font-size: .68rem; font-weight: 400; line-height: 1.5; text-align: right; }
.site-footer .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-footer a:focus-visible { outline: 3px solid #ffd84d; outline-offset: 4px; }

@media (max-width: 1120px) {
  .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer .footer-social { grid-column: 1 / -1; }
  .site-footer .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-copyright { text-align: left; }
}

@media (max-width: 640px) {
  .site-footer__inner { width: min(100% - 1.5rem, 84rem); }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2rem; }
  .site-footer .footer-social { grid-column: auto; }
  .footer-menu__links { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .footer-menu__links i { display: none; }
  .footer-contact { align-items: flex-start; flex-direction: column; }
  .footer-contact__item { max-width: 100%; }
  .footer-contact__phones { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer *, .site-footer *::before, .site-footer *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
