/* ===== КАРТОЧКИ ВРАЧЕЙ НА ГЛАВНОЙ ===== */

.doctors__card-schedule {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    margin: 15px 0;
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 100%);
    border-left: 3px solid #019934;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.doctors__card-schedule-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #019934;
    margin-top: 2px;
}

.doctors__card-schedule-icon svg {
    width: 100%;
    height: 100%;
}

.doctors__card-schedule-text {
    color: #2c3e50;
    font-weight: 500;
}

.doctors__card:hover .doctors__card-schedule {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    transition: background 0.3s ease;
}

@media (max-width: 480px) {
    .doctors__card-schedule {
        padding: 10px 12px;
        font-size: 13px;
    }
}

.doctors__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.doctors__list:after {
  content: "";
  grid-column: span 3;
  height: 0;
}

@media (max-width: 1250px) {
  .firstpage__content-features-item {
    min-height: 90px;
  }
  .doctors__list-person {
    width: calc(33% - 20px);
  }
  .directions__item {
    width: calc(33% - 20px);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
    max-width: 100%;
  }
  .doctors__list-person {
    width: calc(50% - 20px);
  }
  .price__tabs-item {
    width: calc(50% - 10px);
  }
  .contacts__content {
    flex-direction: column;
  }
  .contacts__content-info, .contacts__content-photo {
    width: 100%;
  }
  .header__booking {
    display: none;
  }
  .directions__item {
    width: calc(50% - 20px);
  }
}


.doctors__card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.doctors__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}
.doctors__card-image {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.doctors__card-image-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.doctors__card-image-link:hover img {
  transform: scale(1.05);
}
.doctors__card-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.doctors__card-image img {
  width: 100%;
  height: 100% !important;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center top;
     object-position: center top;
  transition: transform 0.5s ease;
}
.doctors__card-experience {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 15px;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.doctors__card-experience span {
  display: block;
  font-weight: bold;
  font-size: 1.2rem;
  color: #2c3e50;
}
.doctors__card-experience small {
  font-size: 0.8rem;
  color: #7f8c8d;
}
.doctors__card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.doctors__card-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f8f9fa;
}
.doctors__card-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.doctors__card-name-link {
  text-decoration: none;
  display: inline-block;
}
.doctors__card-name-link:hover .doctors__card-name {
  color: #019934;
}
.doctors__card-specialty {
  font-size: 1rem;
  color: #019934;
  font-weight: 500;
}
.doctors__card-info {
  margin-bottom: 25px;
  flex: 1;
}
.doctors__card-info h4 {
  font-size: 0.95rem;
  color: #2c3e50;
  margin: 15px 0 5px 0;
  font-weight: 600;
}
.doctors__card-info p, .doctors__card-info li {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}
.doctors__card-info ul {
  list-style: none;
  padding-left: 0;
}
.doctors__card-info ul li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 5px;
}
.doctors__card-info ul li:before {
  content: "•";
  color: #019934;
  position: absolute;
  left: 0;
}
.doctors__card-footer {
  margin-top: auto;
  text-align: center;
}
.doctors__card-button {
  padding: 12px 35px;
  background: #019934;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}
.doctors__card-button:hover {
  background: #017a2b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(1, 153, 52, 0.2);
}


@media (max-width: 768px) {
  .doctors__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .doctors__card-image {
    height: 320px;
  }
}