/* ==========
   Страница «Наши специалисты»
   ========== */

.specialists-page-grid {
  padding: 40px 0 72px;
}

.specialists-page-grid__inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, 310px);
  gap: 16px;
  justify-content: center;
}

.services-page-hero__text {
    margin: 0;
    color: #4b5563;
    max-width: 536px;
    font-family: Onest;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 1.3;
    letter-spacing: -0.03rem;
    margin-top: 46px;
}

.specialists-page-doctor-card {
  display: flex;
  flex-direction: column;
  height: 375px;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.specialists-page-doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.specialists-page-doctor-card__photo {
  position: relative;
  width: 100%;
  height: 305px;
  min-height: 180px;
  background-color: #e8eaed;
  overflow: hidden;
  flex-shrink: 0;
}

.specialists-page-doctor-card__photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.specialists-page-doctor-card__name {
  margin: 0;
  padding: 16px 12px;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 130%;
  letter-spacing: -0.02em;
  color: #111827;
  flex: 1;
}

@media (max-width: 768px) {
  .specialists-page-grid {
    padding: 24px 0 48px;
  }

  .specialists-page-grid__inner {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .specialists-page-doctor-card {
    height: auto;
    min-height: 240px;
  }

  .specialists-page-doctor-card__photo {
    height: 280px;
  }

  .specialists-page-doctor-card__photo img {
    height: 375px;
  }

  .specialists-page-doctor-card__name {
    font-size: 13px;
    padding: 12px 10px;
  }
}
