/* ========== Doctor Styles ========== */

.Doctor {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.Doctor__Wrap {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.Doctor__Content {
  width: 50%;
  padding: 80px 60px;
  position: relative;
  z-index: 2;
  margin-right: 5%;
  text-align: center; /* Центрируем весь текст */
}

.Doctor__Name {
  font-family: var(--font-tertiary);
  font-size: 52px;
  line-height: 1.1;
  color: #000; /* Черный текст */
  margin-bottom: 25px;
  text-align:center;
}

.Doctor__Description {
  font-size: 16px;
  color: #000; /* Черный текст */
  margin-bottom: 0px;
  line-height: normal;
  opacity: 0.9;
  text-align:center;
}

.Doctor__Button {
  background: #000;
  color: var(--color-white);
  border: 2px solid #000;
  width: 60%;
  margin: 35px auto 0; /* Отступ сверху и центрирование */
  display: block;
}

.Doctor__Button:hover {
  background: #333;
  border-color: #333;
  transform: translateY(-2px);
}

.Doctor__Bg {
  position: absolute;
  top: 40px; /* Отступы для скругления */
  left: 40px;
  right: 40px;
  bottom: 40px;
  z-index: 1;
  border-radius: 30px; /* Скругление краев картинки */
  overflow: hidden;
}

.Doctor__Bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Responsive */
@media(max-width: 900px) {
  .Doctor__Wrap {
    min-height: 500px;
    justify-content: center;
  }

  .Doctor__Content {
    width: 60%;
    margin-right: 0;
    text-align: center;
  }

  .Doctor__Name {
    font-size: 42px;
  }

  .Doctor__Bg {
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    border-radius: 25px;
  }
}

@media(max-width: 768px) {
  .Doctor__Wrap {
    min-height: 400px;
    flex-direction: column;
    aspect-ratio: auto;
    display: flex;
    justify-content: flex-end;
    margin: 24px;
    aspect-ratio: auto;
  }

  .Doctor__Content {
    width: 80%;
    padding: 30px 25px;
  }

  .Doctor__Name {
    font-size: 36px;
  }

  .Doctor__Bg {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: url(/images/doctor-bg.png);
    background-size: auto 100%;
    background-position-x: -100px;
  }
  .Doctor__Bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: none;
}
}

@media(max-width: 480px) {
  .Doctor__Wrap {
    min-height: 350px;
    aspect-ratio: 2 / 3;
  }

  .Doctor__Content {
    width: 100%;
    padding: 16px 16px;
    background: linear-gradient(0deg, #ffffff 0%, rgba(12, 13, 13, 0) 100%);
    border-radius: 0 20px 20px;
  }

  .Doctor__Name {
    font-size: 24px;
    margin-bottom: 16px;
    font-family: var(--font-tertiary);
    background: var(--color-white);
    background-image: var(--color-grad);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* Responsive */
@media(max-width:900px){
  .Service{grid-template-columns:1fr}
  .Doctor__Wrap{flex-direction:column;display: flex;justify-content: flex-end;margin: 24px;aspect-ratio: auto;}
  .Gift__Wrap{flex-direction:column}
  .Benefits__Grid{grid-template-columns:1fr}
}
