/**
 * =============================================================================
 * @encoding UTF-8
 * @author [Сетевые бизнес технологии](//netbis.ru)
 * @project [Авиценна - Стоматологическая клиника](//avicenamc.ru)
 * @summary Исправление выравнивания кнопок в карточках докторов
 * @created 2025-01
 * @modified 2025-01
 *
 * @remarks Стили для выравнивания кнопок "записаться к врачу" на одном уровне
 * ============================================================================
 */

/* Исправление выравнивания карточек докторов */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.doctor-card-flex {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  overflow: hidden;
  transition: all 0.3s ease;
}

.doctor-card-flex:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(76, 175, 80, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-photo-container {
  position: relative;
  flex-shrink: 0;
}

.doctor-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.doctor-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

.doctor-info-container {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doctor-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.doctor-header {
  margin-bottom: 1rem;
}

.doctor-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.doctor-position {
  color: #4caf50;
  font-weight: 500;
  font-size: 1rem;
}

.doctor-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.doctor-detail-item {
  display: flex;
  align-items: flex-start;
}

.doctor-detail-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #4caf50;
  border-radius: 50%;
  margin-right: 0.75rem;
  margin-top: 0.375rem;
  flex-shrink: 0;
}

.doctor-detail-content {
  flex-grow: 1;
}

.doctor-detail-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.125rem;
}

.doctor-detail-value {
  color: #1a202c;
  font-weight: 500;
}

.doctor-description {
  margin-bottom: 1rem;
}

.doctor-description-text {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

.doctor-achievements {
  margin-bottom: 1rem;
}

.doctor-achievements-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a202c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.doctor-achievements-text {
  font-size: 0.75rem;
  color: #64748b;
}

.doctor-education {
  margin-bottom: 1.5rem;
}

.doctor-education-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a202c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.doctor-education-text {
  font-size: 0.75rem;
  color: #64748b;
}

.doctor-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}


.doctor-appointment-button {
  background-color: #4caf50;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  width: 100%;
}

.doctor-appointment-button:hover {
  background-color: #45a049;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.doctor-appointment-button:active {
  transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 1024px) {
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .doctors-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .doctor-photo {
    height: 280px;
  }
  
  .doctor-info-container {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .doctors-grid {
    gap: 1rem;
  }
  
  .doctor-photo {
    height: 240px;
  }
  
  .doctor-info-container {
    padding: 1rem;
  }
}
