.doctor-details-button {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c58b35;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.doctor-details-button:hover {
  text-decoration: underline;
}
.doctor-details-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.55);
}
.doctor-details-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  background: #fff;
  border-radius: 8px;
  color: #242424;
  line-height: 1.65;
}
.doctor-details-modal h2 {
  margin: 0 36px 18px 0;
  font-family: Georgia, serif;
  font-size: 28px;
}
.doctor-details-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}
@media (max-width: 600px) {
  .doctor-details-modal { padding: 24px 18px; }
  .doctor-details-modal h2 { font-size: 23px; }
}

/* Оформление кнопки «Подробнее» */
.doctor-details-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 22px;
  border: 1px solid #b58a50;
  border-radius: 4px;
  background: #fff;
  color: #94703e;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.doctor-details-button::after {
  content: "→";
  font-size: 17px;
}
.doctor-details-button:hover {
  background: #b58a50;
  color: #fff;
  transform: translateY(-1px);
}

/* Фон и окно биографии */
.doctor-details-overlay {
  backdrop-filter: blur(4px);
  background: rgba(25, 30, 35, .65);
}
.doctor-details-modal {
  width: min(760px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 42px 46px;
  border-radius: 10px;
  border-top: 4px solid #b58a50;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .25);
  font-size: 15px;
  line-height: 1.8;
}
.doctor-details-modal h2 {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8dfd3;
  color: #343434;
  font-size: 29px;
  line-height: 1.3;
}
.doctor-details-modal p {
  margin: 0 0 18px;
  white-space: pre-line;
}
.doctor-details-close {
  color: #7c6a55;
  transition: color .2s ease;
}
.doctor-details-close:hover {
  color: #b58a50;
}
@media (max-width: 600px) {
  .doctor-details-modal {
    padding: 30px 22px;
  }
  .doctor-details-modal h2 {
    font-size: 23px;
  }
}

/* Компактные кнопки карточек врачей */
.doctor-details-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  min-height: 42px;
  padding: 10px 20px !important;
  margin-top: 10px;
  border: 1px solid #b89561 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #967344 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  transition: background .2s, color .2s, transform .2s;
}

.doctor-details-button:hover {
  background: #b89561 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Кнопка записи — заметнее, но без лишней высоты */
#root button,
#root a[role="button"] {
  line-height: 1.35;
}


/* Скрываем запись только в карточках врачей */
#root :has(.doctor-details-button) button,
#root :has(.doctor-details-button) a[role="button"] {
  /* Не скрываем остальные кнопки карточки */
}

