.footer-service-link {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 400;
  line-height: inherit;
  white-space: nowrap;
}

.footer-service-link:hover,
.footer-service-link:focus-visible {
  color: var(--ink);
}

.footer-service-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.service-modal {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: none;
  place-items: center;
  padding: 70px 30px 30px;
  background: rgba(24, 33, 40, 0.3);
  -webkit-backdrop-filter: blur(18px) saturate(0.94);
  backdrop-filter: blur(18px) saturate(0.94);
}

.service-modal.open {
  display: grid;
  animation: serviceModalAppear 0.24s ease;
}

@keyframes serviceModalAppear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.service-panel {
  position: relative;
  width: min(100%, 570px);
  padding: 44px 46px 38px;
  border: 1px solid rgba(17, 25, 35, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), transparent 48%),
    #f7f9f8;
  box-shadow: 0 30px 86px rgba(13, 24, 32, 0.2);
}

.service-panel .service-close {
  top: 17px;
  right: 17px;
  width: 38px;
  height: 38px;
  font-size: 20px;
}

.service-heading > span {
  color: #6d7e8e;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.service-heading h2 {
  max-width: 430px;
  margin: 14px 0 0;
  color: #152129;
  font-size: 32px;
  font-weight: 780;
  line-height: 1.18;
}

.service-heading p {
  max-width: 430px;
  margin: 16px 0 0;
  color: #5d6971;
  font-size: 13px;
  line-height: 1.8;
}

.service-offerings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 26px;
}

.service-offer {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
  border: 1px solid rgba(17, 25, 35, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.service-offer strong {
  color: #293740;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.service-contact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid rgba(17, 25, 35, 0.11);
}

.service-contact span {
  color: #7a858b;
  font-size: 11px;
  font-weight: 650;
}

.service-contact strong {
  color: #1d2b33;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .footer-facts > .footer-service-link {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
  }

  .service-modal {
    place-items: end center;
    padding: var(--nav-height) 12px 12px;
    background: rgba(24, 33, 40, 0.28);
  }

  .service-panel {
    width: 100%;
    max-height: calc(100dvh - var(--nav-height) - 24px);
    padding: 42px 22px max(26px, env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 1px solid rgba(17, 25, 35, 0.13);
    border-radius: 20px;
    box-shadow: 0 -18px 60px rgba(13, 24, 32, 0.2);
  }

  .service-panel::before {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(41, 53, 61, 0.18);
    content: "";
    transform: translateX(-50%);
  }

  .service-panel .service-close {
    top: 19px;
    right: 18px;
    width: 36px;
    height: 36px;
  }

  .service-heading {
    padding-right: 44px;
  }

  .service-heading h2 {
    margin-top: 10px;
    font-size: 29px;
    line-height: 1.2;
  }

  .service-heading p {
    margin-top: 13px;
    font-size: 12px;
    line-height: 1.75;
  }

  .service-offerings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 21px;
  }

  .service-offer {
    min-height: 58px;
    justify-content: center;
    padding: 8px 6px;
    border-radius: 8px;
    text-align: center;
  }

  .service-offer strong {
    font-size: 10px;
    line-height: 1.35;
  }

  .service-contact {
    margin-top: 20px;
  }
}

@media (max-width: 360px) {
  .service-offer {
    padding-inline: 4px;
  }

  .service-offer strong {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-modal.open {
    animation: none;
  }
}
