.site-footer {
  padding: 52px 0 30px;
  border-top: 1px solid #e9ebee;
  background: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 48px;
}

.footer-information,
.footer-navigation {
  min-width: 0;
}

.footer-description {
  margin-top: 18px;
  color: #646972;
  font-size: .8125rem;
  line-height: 1.8;
}

.footer-clinic {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  color: #707580;
  font-size: .75rem;
  font-style: normal;
  line-height: 1.9;
}

.footer-clinic strong {
  color: #646972;
  font-weight: 550;
}

.footer-clinic a {
  white-space: nowrap;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 18px;
}

.footer-menu a,
.footer-menu button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #565c66;
  font: inherit;
  font-size: .75rem;
  line-height: 1.6;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-menu a:hover,
.footer-menu button:hover,
.footer-clinic a:hover {
  color: var(--brand);
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.footer-hospital-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 18px;
  border: 1px solid #d9dce2;
  border-radius: 10px;
  background: #fff;
  color: #414751;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.6;
}

.footer-hospital-link:hover {
  border-color: #e5b5b5;
  background: var(--brand-tint);
  color: var(--brand);
}

.footer-hospital-link svg {
  flex-shrink: 0;
}

.footer-actions p {
  color: #707580;
  font-size: .75rem;
  line-height: 1.8;
  text-align: right;
}

.footer-legal {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #eef0f2;
  color: #707580;
  font-size: .75rem;
  line-height: 1.9;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 18px;
}

@media (max-width: 1024px) {
  .footer-main {
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: 34px 0 24px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-menu {
    justify-content: flex-start;
    gap: 4px 18px;
  }

  .footer-menu a,
  .footer-menu button {
    min-height: 44px;
  }

  .footer-actions {
    align-items: stretch;
    margin-top: 16px;
  }

  .footer-hospital-link {
    justify-content: space-between;
  }

  .footer-actions p {
    text-align: left;
  }

  .footer-legal {
    margin-top: 28px;
    padding-top: 20px;
  }

  .footer-meta {
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
  }
}
