﻿/* ==================== DOCTORS HERO ==================== */
.doctors-hero {
  padding: clamp(100px, 15vw, 160px) 0 clamp(60px, 10vw, 80px);
  background: var(--color-primary); /* Темный фон */
  text-align: left; /* Выравнивание строго по левому краю */
  position: relative;
  overflow: hidden;
}

.doctors-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 100%;
  background-image: url('../img/elements/adv_shape_teal.webp');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right center;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.doctors-hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(169, 210, 211, 0.25) 0%, rgba(169, 210, 211, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.doctors-hero .container {
  position: relative;
  z-index: 1;
}

.doctors-hero .section-title {
  color: var(--color-white);
}

.doctors-hero .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-left: 0;
  max-width: 700px;
}

.doctors-hero .section-badge {
  justify-content: flex-start;
}

/* ==================== DOCTORS GRID ==================== */
.doctors-section {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--color-white);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* Doctor Card */
.doctor-card {
  background: var(--color-gray-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(11, 19, 29, 0.08);
}

.doctor-card__image {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, #e0eceb 0%, #f4f8f7 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.doctor-card__image img {
  width: auto;
  height: 90%;
  object-fit: contain;
  object-position: bottom;
  transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-card__image img {
  transform: scale(1.05);
}

.doctor-card__content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.doctor-card__name {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.doctor-card__spec {
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doctor-card__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

.doctor-card:hover .doctor-card__btn {
  color: var(--color-accent);
}

/* ==================== DOCTOR MODAL ==================== */
.doctor-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 29, 0.8);
  
  
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  will-change: opacity;
}

.doctor-modal.active {
  opacity: 1;
  visibility: visible;
}

.doctor-modal__content {
  background: var(--color-white);
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: var(--radius-card);
  overflow-y: auto;
  position: relative;
  transform: translate3d(0, 30px, 0);
  backface-visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  display: flex;
  flex-direction: column;
}

/* Hide scrollbar for Modal Content but keep it scrollable */
.doctor-modal__content::-webkit-scrollbar {
  display: none;
}
.doctor-modal__content {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.doctor-modal.active .doctor-modal__content {
  transform: translate3d(0, 0, 0);
}

.doctor-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-gray-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all 0.3s ease;
  z-index: 10;
}

.doctor-modal__close:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.doctor-profile {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
}

.doctor-profile__left {
  background: linear-gradient(135deg, var(--color-accent) 0%, #3e9e97 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.doctor-profile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
  display: block;
}

.doctor-profile__right {
  padding: clamp(24px, 3vw, 32px);
  position: relative;
  z-index: 1;
}

/* Фирменные элементы (формы) */
.doc-shape {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 70px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}
.doc-shape--navy {
  transform: rotate(15deg);
}
.doc-shape--teal {
  transform: rotate(-10deg);
}
.doc-shape--orange {
  transform: rotate(20deg);
}

.doctor-profile__name {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.doctor-profile__spec {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(82, 178, 171, 0.1);
  color: var(--color-accent);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.doctor-profile__bio {
  color: rgba(23, 37, 53, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}

.doctor-profile__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(23, 37, 53, 0.05);
}

.stat-item h5 {
  font-size: 14px;
  color: rgba(23, 37, 53, 0.5);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 600;
}

/* Education & Certificates Text List */
.doctor-education h3 {
  font-size: 20px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.education-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px 24px;
}

.education-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(23, 37, 53, 0.8);
}

.education-list li::before {
  content: "•";
  color: var(--color-accent);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
  line-height: 1.2;
}

.education-list li strong {
  color: var(--color-primary);
}

/* ==================== CTA SECTION ==================== */
.doctors-cta {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--color-gray-bg);
  text-align: center;
}

.doctors-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--color-primary);
  margin-bottom: 16px;
}

.doctors-cta p {
  color: rgba(23, 37, 53, 0.7);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.doctors-form-wrapper {
  max-width: 500px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-card);
  box-shadow: 0 10px 40px rgba(11, 19, 29, 0.05);
  text-align: left;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 29, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
  .doctor-profile {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .doctor-profile__left {
    height: 400px;
  }
  .doctor-profile__image {
    object-position: top center;
  }
  .doctor-profile__right {
    padding: 32px;
  }
}

@media (max-width: 576px) {
  .doctor-profile__stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .doctor-modal__content {
    border-radius: 12px;
  }
  .doctor-modal__close {
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
}

/* ==================== HERO STATS ==================== */
.hero-stats {
  display: flex;
  justify-content: flex-start;
  gap: clamp(30px, 4vw, 60px);
  margin-top: 50px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.stat-number {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
}

.stat-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
  text-align: left;
}

/* ==================== SKILL TAGS ==================== */
.doctor-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 20px;
}

.skill-tag {
  background: rgba(169, 210, 211, 0.15);
  color: var(--color-accent);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}

/* ==================== BOOK BUTTON ==================== */
.doctor-action {
  margin-top: 24px;
}

.btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 1.5vw, 16px) clamp(20px, 3vw, 32px);
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-book:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(169, 210, 211, 0.4);
}



