.site-footer {
  display: block;
  padding: 0;
  background: #0b2928;
  color: #d7e5e1;
  font-size: 0.9rem;
}

.footer-shell {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.2rem, 7vw, 7rem) 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(250px, 1.1fr) minmax(250px, 0.9fr) minmax(220px, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-identity .footer-logo-link {
  max-width: 285px;
}

.footer-tagline {
  max-width: 34ch;
  color: #d7e5e1;
  font-size: 1rem;
}

.footer-registration {
  margin: 1.6rem 0 0;
  color: #b7cbc7;
  line-height: 1.55;
}

.footer-registration strong {
  color: #fff;
}

.footer-contact h2,
.footer-clinics-heading h2 {
  color: #fff;
  font-size: clamp(1.75rem, 2.7vw, 2.6rem);
}

.footer-contact > p {
  max-width: 35ch;
  color: #c7d8d4;
}

.footer-phone {
  display: inline-block;
  color: #fff;
  font: 600 clamp(1.8rem, 3vw, 2.7rem) / 1.1 var(--serif);
  text-decoration: none;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.footer-action.primary {
  border-color: #f8f3e9;
  background: #f8f3e9;
  color: #103230;
}

.footer-navigation > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
}

.footer-navigation a {
  color: #eef5f3;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.footer-phone:hover,
.footer-navigation a:hover,
.footer-clinics article > a:hover,
.footer-bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-action:hover {
  transform: translateY(-1px);
}

.footer-clinics {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) repeat(2, minmax(260px, 1fr));
  gap: 1rem;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-clinics-heading {
  padding: 1rem clamp(0rem, 2vw, 1.5rem) 1rem 0;
}

.footer-clinics article {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.055);
}

.footer-clinics article > span {
  display: block;
  margin-bottom: 0.55rem;
  color: #d7e5e1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-clinics h3 {
  color: #fff;
  font-size: 1.35rem;
}

.footer-clinics article > p {
  min-height: 3.2em;
  color: #c7d8d4;
}

.footer-clinics dl {
  margin: 1.2rem 0;
}

.footer-clinics dl div {
  gap: 1rem;
  padding: 0.5rem 0;
  border-color: rgba(255, 255, 255, 0.14);
}

.footer-clinics dt {
  color: #acc4bf;
}

.footer-clinics dd {
  max-width: 68%;
  color: #fff;
  text-align: right;
}

.footer-clinics article > a {
  color: #fff;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.6rem;
  color: #afc5c0;
}

.footer-bottom p {
  max-width: 70ch;
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
}

.footer-bottom a {
  color: #d7e5e1;
}

.site-footer a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-navigation {
    grid-column: 1 / -1;
  }

  .footer-navigation > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-clinics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-clinics-heading {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .site-footer {
    padding-bottom: 0;
  }

  .footer-shell {
    padding: 3.5rem 1.2rem 2rem;
  }

  .footer-top,
  .footer-clinics {
    grid-template-columns: 1fr;
  }

  .footer-navigation,
  .footer-clinics-heading {
    grid-column: auto;
  }

  .footer-navigation > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-clinics article > p {
    min-height: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom nav {
    justify-content: flex-start;
  }
}
