.container {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 0 10px;
}

.doctor-main__wrapper {
  margin: 40px 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;
}
.doctor-main__header {
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}
.doctor-main__logo {
  max-width: 75px;
  height: auto;
}
.doctor-main__photo {
  flex: 0 0 auto;
  max-width: 350px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative; 
  display: inline-block;
}
.doctor-main__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-main__photo span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doctor-main__content {
  flex: 1 1 auto;
  padding: 60px 40px;
  background-color: #f2f5f9;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.doctor-main__content h1 {
  font-size: 38px;
  margin: 0;
  font-weight: bold;
  color: #313541;
  margin-bottom: 10px;
}
.doctor-main__rank {
  font-size: 20px;
  color: #5b6475;
  font-weight: bold;
}
.doctor-main__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  margin-top: 15px;
  gap: 12px;
}
.doctor-main__list li {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  color: #2050a8;
  font-size: 16px;
  font-weight: bold;
}
.doctor-main__list li svg,
.doctor-main__list li img {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}
.doctor-main .btn {
  margin-top: 24px;
  display: flex;
  width: auto;
  text-transform: none;
}
.doctor-main__discription {
  margin: 50px 0;
}
.doctor-main__discription h2 {
  font-size: 36px;
  font-weight: bold;
  color: #313541;
  margin-bottom: 30px;
}
.doctor-main__discription p {
  font-size: 16px;
  line-height: 1.6;
}
.doctor-main__features {
  margin: 50px 0;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;
}
.doctor-main__item {
  flex: 1 1 33.333%;
  background-color: #f2f5f9;
  padding: 20px;
  border-radius: 20px;
}
.doctor-main__item h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #313541;
  margin-bottom: 20px;
}
.doctor-main__item ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doctor-main__item ul li {
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.doctor-education {
  padding: 50px 0;
  background-color: #f2f5f9;
}
.doctor-education h2 {
  font-size: 30px;
  font-weight: bold;
  color: #313541;
  margin-bottom: 30px;
}
.doctor-education__block {
  margin-bottom: 50px;
}
.doctor-education__block h3 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #313541;
  margin-bottom: 20px;
}
.doctor-education__list {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 24px;
  flex-wrap: wrap;
}
.doctor-education__item {
  flex: 0 0 calc(32% - 14px);
}
.doctor-education__item h4 {
  margin: 0;
  margin-bottom: 15px;
}
.doctor-education__item a {
  margin: 0 10px;
  margin-top: 15px;
  color: #123e8f;
}
.doctor-education__item a:first-child {
  margin-left: 0;
}
.doctor-education__item a:last-child {
  margin-right: 0;
}
.doctor-education__images {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.doctor-education__images a {
  flex: 1 0 40%;
}

.doctor-table {
  margin: 50px 0;
}
.doctor-table__container {
  display: flex;
  gap: 60px;
}

.doctor-price {
  padding-top: 34px;
  flex: 1 1 auto;
}
.doctor-price h2 {
  font-size: 30px;
  font-weight: bold;
  color: #313541;
  margin-bottom: 30px;
}
.doctor-price__filter {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.doctor-price__filter p {
  font-size: 16px;
  font-weight: bold;
  color: #313541;
  margin: 0;
  padding: 0;
}
.doctor-price__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doctor-price__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 10px;
}
.doctor-price__item a {
  font-weight: bold;
}
.doctor-price__item a:hover {
  color: #123e8f;
}
.doctor-price__item span {
  color: #7c7c7c;
  font-size: 16px;
}
.doctor-price__item span:last-child {
  font-size: 18px;
  font-weight: bold;
  color: #123e8f;
}

.doctor-time {
  flex: 0 0 auto;
  max-width: 480px;
  width: 100%;
  padding: 34px 80px;
  background-color: #f2f5f9;
  border-radius: 20px;
}
.doctor-time h2 {
  font-size: 30px;
  font-weight: bold;
  color: #313541;
  margin-bottom: 30px;
}
.doctor-time__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doctor-time__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 10px;
}
.doctor-time__item span {
  color: #7c7c7c;
  font-size: 16px;
}
.doctor-time__item span:last-child {
  font-size: 18px;
  font-weight: bold;
  color: #123e8f;
}
.doctor-time__item span:last-child.red {
  color: #de5f5f;
}

.doctor-appointment__list {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 30px;
}
.doctor-appointment__item {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
}
.doctor-appointment__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}
.doctor-appointment__content h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #313541;
  margin-bottom: 8px;
}
.doctor-appointment__content p {
  margin: 0;
}

.doctor-reviews,
.doctor-personal,
.doctor-form,
.doctor-appointment {
  margin: 50px 0;
}
.doctor-reviews h2,
.doctor-personal h2,
.doctor-form h2,
.doctor-appointment h2 {
  font-size: 30px;
  font-weight: bold;
  color: #313541;
  margin-bottom: 30px;
}

.doctor-row {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 30px;
}
.doctor-row h2 {
  margin-bottom: 0;
}
.doctor-row svg {
  width: 18px;
  height: 18px;
}

.doctor-raiting {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.consultations {
  margin: 50px 0;
}
.consultations h2 {
  font-size: 30px;
  font-weight: bold;
  color: #313541;
  margin-bottom: 30px;
}
.consultations p {
  font-size: 16px;
  line-height: 24px;
}
.consultations__list {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 25px;
  flex-wrap: wrap;
}
.consultations__list > div {
  flex: 0 0 calc(33.333% - 25px);
  display: flex;
  flex-direction: column;
}
.consultations__list > div h3 {
  font-size: 20px;
  font-weight: bold;
  color: #123e8f;
  margin-bottom: 20px;
}
.consultations .btn {
  margin-top: auto;
}

.btn-stand {
  margin-top: auto;
  width: auto;
  background-color: #123e8f;
  padding: 10px 12px;
  margin-top: 3px;
  font-size: 14px;
  text-decoration: none;
  color: white;
  text-align: center;
  border: none;
}

.popup-services-container {
  max-width: 98%;
  width: 100%;
}

.popup-services {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 20px;
  max-height: 80vh;
  overflow: auto;
}

.popup-services .doctor-price__item {
  flex: 0 0 calc(50% - 10px);
}

.select {
  display: block;
  max-width: 215px;
  width: 100%;
  position: relative;
}

.new-select {
  position: relative;
  border: 1px solid #ced4da;
  padding: 10px 15px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.new-select__list {
  position: absolute;
  top: 45px;
  left: 0;
  border: 1px solid #ced4da;
  cursor: pointer;
  width: 100%;
  z-index: 2;
  background: #fff;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  max-height: 240px;
  overflow: auto;
}

.new-select__list.on {
  display: block;
}

.new-select__item span {
  display: block;
  padding: 10px 15px;
}

.new-select__item span:hover {
  color: #123e8f;
}

.new-select:after {
  content: "";
  display: block;
  width: 25px;
  height: 25px;
  position: absolute;
  right: 9px;
  top: 9px;
  background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 9L12 15L6 9' stroke='%23123E8F' stroke-width='2'/%3E%3C/svg%3E%0A") no-repeat right center/cover;
  opacity: 0.6;
  transition: all 0.27s ease-in-out;
  transform: rotate(0deg);
}

.new-select.on:after {
  transform: rotate(180deg);
}

.btn-line {
  color: #123E8F;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  padding-top: 12px;
}
.btn-line::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M9.28296 3.99998L5.27602 8.00692L4.33321 7.06411L7.39734 3.99998L4.33321 0.935852L5.27602 -0.00695769L9.28296 3.99998Z' fill='%23123E8F' /%3E%3Cpath d='M5.66655 3.99998L1.65961 8.00692L0.716797 7.06411L3.78093 3.99998L0.716798 0.935851L1.65961 -0.00695801L5.66655 3.99998Z' fill='%23123E8F' /%3E%3C/svg%3E%0A") no-repeat right center/contain;
}

.doctor-publications {
  padding: 40px 20px;
  background-color: #f9f9f9;
  font-family: 'Segoe UI', sans-serif;
}

.doctor-publications h2 {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  color: #333;
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 370px));
  align-items: stretch;
  gap: 24px;
}

.publication {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.publication:hover {
  transform: translateY(-5px);
}

.publication-image img {
  width: 100%;
  height: auto;
  display: block;
}

.publication-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.publication-content a {
  margin-top: auto;
}

.publication-content h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: #222;
}

.publication-content p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #555;
}

.pub-date {
  font-style: italic;
  font-size: 13px;
  color: #999;
}


@media (max-width: 1024px) {
  .doctor-main {
    background-color: #f2f5f9;
  }
  .doctor-main__wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .doctor-main__photo {
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .doctor-main__content {
    padding: 0px;
    border-radius: 0px;
  }
  .doctor-main__content h1 {
    font-size: 28px;
  }
  .doctor-main__discription h2 {
    font-size: 24px;
  }
  .doctor-main__features {
    flex-direction: column;
    gap: 20px;
  }
  .doctor-main__item {
    flex: 1 1 auto;
    padding: 0px;
  }
  .doctor-main__item h2 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #313541;
    margin-bottom: 20px;
  }
  .doctor-main__item ul {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .doctor-main__item ul li {
    font-size: 14px;
    line-height: 1.6;
  }
  .doctor-table {
    margin: 30px 0;
  }
  .doctor-table__container {
    flex-direction: column;
  }
  .doctor-time {
    max-width: 100%;
    padding: 30px 0;
  }
  .doctor-time h2 {
    font-size: 24px;
  }
  .doctor-education h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .doctor-education__block h3 {
    margin: 0;
    font-size: 18px;
    margin-bottom: 15px;
  }
  .doctor-appointment__list {
    flex-wrap: wrap;
    gap: 20px;
  }
  .doctor-appointment__item {
    flex: 0 0 40%;
  }
  .doctor-reviews h2 {
    margin-bottom: 0;
  }
  .doctor-row {
    flex-direction: column;
  }
  .doctor-personal,
  .doctor-form,
  .doctor-appointment {
    margin: 40px 0;
  }
  .doctor-personal h2,
  .doctor-form h2,
  .doctor-appointment h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
}
@media (max-width: 768px) {
  .doctor-main__photo img {
    width: 80%;
  }
  .doctor-main__content h1 {
    font-size: 20px;
  }
  .doctor-main__rank {
    font-size: 14px;
  }
  .doctor-main__list li {
    font-size: 14px;
  }
  .doctor-main__list li svg {
    width: 18px;
    height: 18px;
  }
  .doctor-main .btn {
    width: 100%;
  }
  .doctor-main__discription h2 {
    font-size: 24px;
  }
  .doctor-main__features {
    flex-direction: column;
    gap: 20px;
  }
  .doctor-main__item {
    flex: 1 1 auto;
    padding: 0px;
  }
  .doctor-main__item h2 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #313541;
    margin-bottom: 20px;
  }
  .doctor-main__item ul {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .doctor-main__item ul li {
    font-size: 14px;
    line-height: 1.6;
  }
  .doctor-table {
    margin: 30px 0;
  }
  .doctor-table__container {
    gap: 20px;
  }
  .popup-services .doctor-price__item, .doctor-price__item {
    flex: 0 0 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .doctor-price,
  .doctor-time {
    padding-top: 0px;
    flex: 1 1 auto;
  }
  .doctor-price h2,
  .doctor-time h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .doctor-price__item,
  .doctor-time__item {
    flex-wrap: wrap;
    padding: 5px 0;
  }
  .doctor-price__item span,
  .doctor-time__item span {
    font-size: 14px;
  }
  .doctor-price__item span:last-child,
  .doctor-time__item span:last-child {
    font-size: 16px;
  }
  .doctor-education {
    padding: 30px 0;
  }
  .doctor-education h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .doctor-education__block {
    margin-bottom: 20px;
  }
  .doctor-education__block h3 {
    margin: 0;
    font-size: 18px;
    margin-bottom: 15px;
  }
  .doctor-education__item {
    flex: 1 1 100%;
  }
  .doctor-appointment__list {
    flex-wrap: wrap;
    gap: 20px;
  }
  .doctor-appointment__item {
    flex: 0 0 100%;
  }
  .doctor-reviews {
    padding-top: 0;
    padding-bottom: 0;
  }
  .doctor-reviews h2 {
    margin-bottom: 0;
  }
  .doctor-row {
    margin-bottom: 0;
    flex-direction: column;
    gap: 10px;
  }
  .doctor-personal,
  .doctor-form,
  .doctor-appointment {
    margin: 30px 0;
  }
  .doctor-personal h2,
  .doctor-form h2,
  .doctor-appointment h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .consultations {
    margin: 30px 0;
  }
  .consultations h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .consultations__list {
    flex-direction: column;
  }
  .consultations__list > div {
    flex: 0 0 auto;
  }
  .consultations__list > div h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .consultations__list > div .btn {
    margin-top: 10px;
    font-size: 14px;
  }
}

.doctor-swiper {
  max-width: 350px;
  padding-bottom: 10px !important;
  margin-bottom: 12px;
}

.swiper-pagination-bullet {
  opacity: 0.5;
  transition: opacity 0.3s;
}
.swiper-pagination-bullet-active {
  opacity: 1;
}