body, html {
  overflow-x: hidden;
}
/* Hero врача */



/* === Биография врача === */
.doctor-bio {
    font-family: 'Open Sans', sans-serif;
    margin: 20px auto 40px auto;
    max-width: 1100px;
    color: #333;
    line-height: 1.6;

    background-color: #F5F7FA;  
    border-radius: 16px;
    position: relative;
    z-index: 1;
    padding: 30px;            
}

.doctor-bio .bio-short {
    font-size: 18px;
    margin-bottom: 16px;
    color: #444;
    font-weight: 500;
}

.doctor-bio .bio-full {
    font-size: 16px;
    margin-bottom: 16px;
    color: #555;
}

.doctor-bio .bio-full p:last-child,
.doctor-bio .bio-short:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .doctor-bio {
        padding: 20px;
        margin: 15px auto 30px auto;
    }
    .doctor-bio .bio-short {
        font-size: 16px;
    }
    .doctor-bio .bio-full {
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (max-width: 430px) {
    .doctor-bio {
        padding: 15px;
        margin: 10px auto 20px auto;
    }
    .doctor-bio .bio-short {
        font-size: 15px;
    }
    .doctor-bio .bio-full {
        font-size: 13px;
        margin-bottom: 12px;
    }
}

/* === Блок: Сертификаты === */
.doctor-certificates {
  background: #fff;
  padding: 40px 0;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
}

.team-container {
  max-width: 1200px;
  margin: 0 auto;
}

.team-title {
  font-size: 32px;
  margin-bottom: 40px;
  color: #333;
}

.cert-slider {
  width: 1200px; 
  max-width: 90%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cert-slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  margin: 0 -10px;
}

.cert-card {
  flex: 0 0 33.3333%; 
  box-sizing: border-box;
  padding: 0 10px;
}

.cert-card img {
  display: block;
  width: 100%;  
  height: auto;
  
}

.cert-title {
  margin-top: 12px;
  font-size: 15px;
  color: #333;
}

.cert-slider button {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  background: rgba(0,0,0,0); 
  color: rgba(255, 255, 255, 0);
  border: none;
  cursor: pointer;
  font-size: 28px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:  0.3s;
}

.cert-slider button:hover {
  background: rgba(0,0,0,0.15);
  color: white;
}

.cert-prev {
  left: 0;
  justify-content: flex-start;
  padding-left: 10px;
}
.cert-next {
  right: 0;
  justify-content: flex-end;
  padding-right: 10px;
}


.cert-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.cert-lightbox.show {
  display: flex;
}

.cert-lightbox-content {
  text-align: center;
  max-width: 90%;
}

.cert-lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  margin-bottom: 15px;
}

.cert-lightbox-text {
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
}

/* Адаптив */
@media (max-width: 900px) {
  .cert-card img { max-height: 350px; }

}

@media (max-width: 600px) {
  .cert-slider {
    width: 800px;
  }
  .cert-card {
    flex: 0 0 50%;
  }
  .cert-card img {
    max-height: 250px;
    width: 100%; 
  }

}


@media (max-width: 980px) {
  .team-title {
    font-size: 28px;
  }
}

@media (max-width: 864px) {
  .team-title {
    font-size: 28px;
  }
}

@media (max-width: 792px) {
  .team-title {
    font-size: 26px;
    margin-bottom: 40px; 
  }
}

@media (max-width: 500px) {
  .team-title {
    font-size: 22px;
  }
}

@media (max-width: 375px) {
  .team-title {
    font-size: 24px;
    margin-bottom: 24px;
  }
}


/* ===== Блок: Услуги врача в виде таблицы  ===== */
.doctor-services {
  padding: 60px 0%;
  background-color: #fff;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  margin-top: -60px;
}

.doctor-services h2 {
  font-size: clamp(20px, 2vw, 32px);
  margin-bottom: 30px;
  text-align: left;
  color: #333;
}

.doctor-services table {
  width: 100%;
  border-collapse: collapse;
}

.doctor-services thead th {
  text-align: left;
  font-weight: 600;
  padding: 12px 15px;
  border-bottom: 2px solid #ddd;
  color: #333;
}

.doctor-services tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  color: #555;
}

.doctor-services tbody td:nth-child(2) {
  max-width: 50%;
}

.doctor-services .service-desc .desc-full { display: inline; }
.doctor-services .service-desc .desc-half { display: none; }

.doctor-services td:nth-child(3) {
  white-space: nowrap;
}

.doctor-services .btn {
  display: inline-block;
  padding: 14px 28px;
  background-color: #b2763c;
  color: #fff;
  font-size: 16px;
  border-radius: 30px;
  text-decoration: none;
  transition: .3s;
}

.doctor-services .btn:hover {
  background-color: #945f2f;
}


@media (max-width: 1028px) {
  .doctor-services h2 {
    font-size: 28px;
  }
  .doctor-services tbody td {
    font-size: 15px;
  }
  .doctor-services .btn {
    font-size: 15px;
    padding: 12px 24px;
  }
}

@media (max-width: 768px) {
  .doctor-services h2 {
    font-size: 28px;
    text-align: center;
  }

  .doctor-services thead th {
    font-size: 14px;
    padding: 8px 10px;
  }

  .doctor-services tbody td {
    font-size: 13px;
    padding: 8px 10px;
  }

  .doctor-services tbody td:nth-child(1) {
    font-weight: 600;
    font-size: 14px;
  }

  .doctor-services .btn {
    font-size: 13px;
    padding: 8px 16px;
  }
}

@media (max-width: 625px) {
  .doctor-services .service-desc .desc-full { display: none; }
  .doctor-services .service-desc .desc-half { display: inline; }
}

@media (max-width: 520px) {
  .doctor-services h2 {
    font-size: 26px;
    text-align: center;
  }

  .doctor-services table,
  .doctor-services thead th,
  .doctor-services tbody td {
    font-size: 10px !important;
    line-height: 1.3;
  }

  .doctor-services .btn {
    font-size: 8px !important;
    padding: 6px 14px !important;
  }
}

@media (max-width: 400px) {
  .doctor-services h2 {
    font-size: 24px;
  }
  .doctor-services tbody td:nth-child(1) {
    font-size: 15px;
  }
  .doctor-services tbody td:nth-child(2) {
    font-size: 13px;
  }
  .doctor-services .btn {
    font-size: 12px;
    padding: 8px 16px;
  }
}

@media (max-width: 390px) {
  .doctor-services table,
  .doctor-services thead th,
  .doctor-services tbody td {
    font-size: 8px !important;
    line-height: 1.2;
    padding: 6px 8px;
  }

  .doctor-services .btn {
    font-size: 6px !important;
    padding: 4px 10px;
  }
}



/* --- СТА --- */
.cta-section {
  background-color: #C6AEA6;
  color: #FFFFFF;
  text-align: center;
  padding: 60px 20px;
}

.cta-section .cta-title {
  font-size: 36px;
  margin: 0 0 20px;
}

.cta-section .cta-text {
  font-size: 18px;
  margin: 0 0 40px;
}

.cta-section .cta-btn {
  display: inline-block;
  padding: 14px 28px;
  background-color: #B77F41;
  color: #fff;
  font-size: 16px;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-section .cta-btn:hover {
  background-color: #A06D38;
}

@media (max-width: 1280px) {
  .cta-section .cta-title { font-size: 32px; }
  .cta-section .cta-text { font-size: 17px; }
  .cta-section .cta-btn { font-size: 15px; padding: 13px 26px; }
}

@media (max-width: 1024px) {
  .cta-section .cta-title { font-size: 30px; }
  .cta-section .cta-text { font-size: 16px; }
  .cta-section .cta-btn { font-size: 14px; padding: 12px 24px; }
}

@media (max-width: 768px) {
  .cta-section { padding: 40px 16px; }
  .cta-section .cta-title { font-size: 26px; }
  .cta-section .cta-text { font-size: 15px; }
  .cta-section .cta-btn { font-size: 13px; padding: 11px 22px; }
}

@media (max-width: 420px){
  .cta-section .cta-title { font-size: 23px; }
}

@media (max-width: 375px) {
  .cta-section { padding: 30px 12px; }
  .cta-section .cta-title { font-size: 22px; margin-bottom: 14px; }
  .cta-section .cta-text { font-size: 13px; margin-bottom: 25px; }
  .cta-section .cta-btn { font-size: 11px; padding: 10px 20px; }
}