.footer {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: "Poppins", sans-serif;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 10% 0%, rgba(179, 27, 111, 0.13), transparent 34%),
    #09090c;
  font-family: var(--default-font);
  font-size: 14px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer a {
  text-decoration: none;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.55px, transparent 0.55px);
  background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 74%);
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
}

.footer .footer-top {
  position: relative;
  z-index: 1;
  padding-top: clamp(54px, 7vw, 82px);
  padding-bottom: clamp(44px, 5vw, 64px);
}

.footer .footer-about .logo {
  line-height: 1;
  width: fit-content;
  margin-bottom: 24px;
}

.footer .footer-about .logo img {
  max-height: 46px;
  width: auto;
  margin-right: 0;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer .footer-about p {
  max-width: 34rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  line-height: 1.7;
  font-family: var(--default-font);
  text-wrap: pretty;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.035);
  font-size: 19px;
  color: rgba(255, 255, 255, 0.82);
  margin-right: 9px;
  transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.footer .social-links a:hover {
  color: #fff;
  border-color: rgba(207, 77, 147, 0.9);
  background: rgba(179, 27, 111, 0.26);
  transform: translateY(-3px);
}

.footer .social-links a:active {
  transform: translateY(-1px) scale(0.97);
}

.footer .social-links a:focus-visible,
.footer a:focus-visible {
  outline: 2px solid #cf4d93;
  outline-offset: 4px;
}

.footer h4 {
  margin-bottom: 12px;
  font-family: var(--heading-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.footer .footer-links {
  margin-bottom: 1px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 7px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: rgba(255, 255, 255, 0.64);
  display: inline-block;
  line-height: 1.35;
  transition: color 200ms ease, transform 200ms ease;
}

.footer .footer-links ul a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer-phone {
  font-size: 18px;
}

.footer-legal__panel {
  position: relative;
  height: 100%;
  padding: 24px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px 4px 18px 4px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(13, 13, 18, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-legal__panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  width: 42px;
  height: 2px;
  background: #c93f89;
}

.footer-legal__eyebrow {
  display: block;
  margin-bottom: 13px;
  color: #d868a5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer .footer-legal__name {
  max-width: 21rem;
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--heading-font);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.footer-legal__details {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.footer-legal__details>div {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal__details dt,
.footer-legal__details dd {
  margin: 0;
}

.footer-legal__details dt {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-legal__details dd {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.5;
}

.footer-legal__details .footer-legal__address {
  grid-template-columns: 1fr;
  gap: 5px;
  padding-bottom: 0;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom__meta,
.footer-service-links,
.footer-service-link {
  display: flex;
  align-items: center;
}

.footer-bottom__meta {
  gap: 18px;
}

.footer-bottom__copyright {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.footer-metrika {
  display: inline-flex;
  opacity: 0.42;
  filter: grayscale(1);
  transition: opacity 200ms ease, filter 200ms ease;
}

.footer-metrika:hover {
  opacity: 0.8;
  filter: grayscale(0);
}

.footer-service-links {
  justify-content: flex-end;
  gap: 10px;
}

.footer-service-link {
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.58);
  border-radius: 8px 2px 8px 2px;
  font-size: 12px;
  line-height: 1.2;
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.footer-service-link--developer {
  color: rgba(255, 255, 255, 0.72);
}

.footer-service-link--admin {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.footer-service-link:hover {
  color: #fff;
  border-color: rgba(207, 77, 147, 0.5);
  background: rgba(179, 27, 111, 0.11);
  transform: translateY(-2px);
}

.footer-service-link:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 991.98px) {
  .footer-legal__panel {
    padding: 22px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .footer-service-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .footer-bottom {
    align-items: center;
    text-align: center;
  }

  .footer-bottom__meta {
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
  }

  .footer-service-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .footer-service-link {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .footer .footer-top {
    padding-left: 8px;
    padding-right: 8px;
  }
}
