/* General Layout */
.home-new-wrapper {
  width: 100%;
  overflow: hidden;
  font-family:
    'Raleway', sans-serif; /* Matching the font from provided style.css */
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.h-100 {
  height: 100%;
}
.align-items-center {
  display: flex;
  align-items: center;
}

/* 1. Hero Section */
.hero-section-new {
  position: relative;
  background: #fff; /* Fallback */
  overflow: hidden;
  /* цветки должны быть фоном ВСЕГО слайдера (не слайда) */
  --hero-flow: url('../images/flow.png');
}

.hero-section-new:after {
  content: '';
  position: absolute;
  width: 368px;
  height: 353px;
  right: 40px;
  top: 120px;
  background-image: var(--hero-flow);
  background-repeat: no-repeat;
  background-size: 368px 353px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero-section-new:before {
  content: '';
  position: absolute;
  left: 30px;
  top: 70px;
  width: 368px;
  height: 353px;
  background-image: var(--hero-flow);
  background-repeat: no-repeat;
  background-size: 368px 353px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero-section-new .hero-slider-new {
  z-index: 1;
}

/* Make owl carousel items full width */
#hero-slider-new .hero-slide-item {
  width: 100%;
  height: 600px;
  position: relative;
  /* Tech image is rendered inside .container (see :before below) */
  background: none;
}

/* Render the tech image inside the slide container (keeps image within container bounds) */
#hero-slider-new .hero-slide-item .container {
  position: relative;
}

/* Single tech image element (avoids pseudo-element double paint on some mobile layouts) */
#hero-slider-new .hero-slide-item .hero-tech-bg {
  position: absolute;
  /* Desktop: slightly to the right of container edge */
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(320px, 40vw, 560px);
  height: clamp(320px, 36vw, 520px);
  object-fit: contain;
  object-position: right center;
  pointer-events: none;
  z-index: 2;
}

/* ВАЖНО: цветки больше не на .hero-slide-item, чтобы не "ездили" при переключении слайдов */

.hero-content-col {
  z-index: 10;
  position: relative;
  padding-left: 0;
}

/* Legacy: right column image removed from markup, keep class safe if any cached HTML exists */
.hero-tech-col {
  display: none;
}

.hero-tech-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-tech-img {
  max-width: 520px;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.hero-content-inner {
  max-width: 550px;
}

.hero-title {
  font-family: 'Raleway', sans-serif;
  font-size: 50px;
  font-weight: 700;
  color: #000;
  margin-bottom: 25px;
  line-height: 1.2;
  text-align: left;
}

.hero-subtitle {
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 35px;
  line-height: 1.5;
  text-align: left;
}

.hero-btn {
  display: inline-block;
  background: #f190a4;
  color: #fff;
  padding: 15px 35px;
  font-size: 16px;
  font-weight: 400;
  border-radius: 4px; /* Slight radius */
  text-decoration: none;
  text-transform: none; /* As per design screenshot */
  border: none;
  transition: background 0.3s;
}

.hero-btn--mobile {
  display: none;
}
.hero-mobile-cta {
  display: none;
}

.hero-btn:hover {
  background: #d67a8c;
  color: #fff;
  text-decoration: none;
}

/* Slider Pagination (Bullets) */
#hero-slider-new .owl-pagination {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 20;
}

#hero-slider-new .owl-page {
  display: inline-block;
  margin: 0 5px;
}

#hero-slider-new .owl-page span {
  display: block;
  width: 12px;
  height: 12px;
  background: #f190a4; /* Light pink default */
  border-radius: 50%;
  opacity: 0.3;
  transition: opacity 0.3s;
}

#hero-slider-new .owl-page.active span {
  opacity: 1; /* Full opacity for active */
  background: #c2185b; /* Darker pink for active */
}

/* Responsive Hero */
@media (max-width: 991px) {
  #hero-slider-new .hero-slide-item {
    height: auto;
    min-height: 500px;
  }

  #hero-slider-new .hero-slide-item .hero-tech-bg {
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(260px, 52vw, 420px);
    height: clamp(260px, 44vw, 420px);
  }
  .hero-content-col {
    background: rgba(
      255,
      255,
      255,
      0.8
    ); /* Readability if text overlaps image */
    padding: 30px;
    margin: 20px;
    border-radius: 10px;
  }
  .hero-title {
    font-size: 32px;
  }

  .hero-section-new:before {
    left: 10px;
    top: 40px;
    width: 300px;
    height: 288px;
    background-size: 300px 288px;
  }
  .hero-section-new:after {
    right: 20px;
    top: 160px;
    width: 320px;
    height: 307px;
    background-size: 320px 307px;
  }
}

/* Tablet (769–991): обычные 2 колонки, без absolute-оверлея */
@media (max-width: 991px) and (min-width: 769px) {
  .hero-content-col {
    width: 55%;
    flex: 0 0 55%;
  }
  .hero-tech-col {
    width: 45%;
    flex: 0 0 45%;
    position: relative !important;
  }
  .hero-content-inner {
    padding-right: 0;
  }
  .hero-tech-img {
    max-width: 420px;
  }
  .hero-btn {
    width: auto;
    display: inline-block;
    border-radius: 4px;
    font-size: 16px;
    padding: 15px 35px;
  }
}

/* Phone (≤560): техника справа оверлеем, кнопка НЕ на всю ширину */
@media (max-width: 560px) {
  #hero-slider-new .hero-slide-item {
    height: auto;
    min-height: 350px;
    padding-bottom: 30px;
  }
  #hero-slider-new .owl-pagination {
    display: none;
  }
  .about-section-v2 {
    padding-top: 0px !important;
  }
  #hero-slider-new .hero-slide-item .container {
    position: relative;
  }

  #hero-slider-new .hero-slide-item .hero-tech-bg {
    /* On phone: stick to the right edge of the container */
    right: 0;
    top: 0px;
    transform: none;
    width: 52%;
    max-width: 360px;
    height: 320px;
    object-position: right top;
  }

  .hero-content-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .hero-content-inner {
    text-align: left !important;
    margin: 0;
    padding-right: 0;
    width: 60%;
  }

  /* Remove the white card on phone so text can sit over the background image */
  .hero-content-col {
    background: transparent !important;
    padding: 24px 15px !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .hero-title {
    text-align: left !important;
    font-size: 24px;
    line-height: 1.15;
  }

  .hero-subtitle {
    text-align: left !important;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 22px;
  }

  /* на телефоне показываем отдельную кнопку под блоками */
  .hero-btn--desktop {
    display: none;
  }
  .hero-mobile-cta {
    display: block;
    margin-top: 50px;
  }
  .hero-btn--mobile {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 0;
  }

  .hero-section-new:before {
    display: none;
  }
  .hero-section-new:after {
    display: none;
  }
}

/* Typography & General */
.section-title {
  font-size: 40px;
  color: #000; /* Black titles mostly */
  font-weight: 700;
  margin-bottom: 30px;
  margin-top: 0px;
  text-align: center;
  text-transform: none; /* Reset uppercase if needed */
}

.section-title span {
  color: #f190a4; /* Highlights if used */
}

.section-title-left {
  font-size: 30px;
  color: #000;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: left;
  line-height: 1.3;
}

.section-header-center {
  text-align: center;
  margin-bottom: 40px;
}

/* Sections Spacing */
.section-new {
  padding: 35px 0;
}

/* 2. About Section */
.about-section {
  background: #fff;
}

.about-section-v2 {
  padding-top: 40px;
  padding-bottom: 40px;
}

.about-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  color: #000;
  margin: 0 0 22px 0;
}

.about-title span {
  color: #f78da7;
}

.about-title--mobile {
  display: none;
}

.about-subtitle {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: #000;
  margin-bottom: 14px;
}

.about-text-v2 {
  font-size: 15px;
  line-height: 1.55;
  color: #000;
}

.about-text-v2 ul {
  margin: 12px 0 0 0;
  padding-left: 18px;
}

.about-text-v2 li {
  margin: 6px 0;
}

.about-img-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about-img {
  width: 100%;
  max-width: 720px;
  height: auto;
}

/* 2.1 Benefits (4 images) */
.benefits-section {
  padding-top: 10px;
  padding-bottom: 40px;
}

.benefits-title {
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  color: #000;
  margin: 0 0 26px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 100px;
  padding: 0 65px;
}

.benefits-card-media {
  position: relative;
  border: none;
  overflow: hidden;
  background: #fff;
}

.benefits-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}

.benefits-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d64e6fbf;
  color: #fff;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
  /* equal height ribbons */
  min-height: 86px;
  display: flex;
  align-items: center;
}

@media (max-width: 560px) {
  .section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .section-new {
    padding: 15px 0;
  }
  .section-header-center {
    margin-bottom: 15px;
  }
  .benefits-title {
    text-align: left;
    font-size: 14px;
    margin-bottom: 16px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 0;
  }
  .benefits-card-caption {
    padding: 14px 14px;
    font-size: 16px;
    min-height: 72px;
  }

  /* Offers mobile */
  .offers-list {
    max-width: 100%;
    padding: 0 10px;
    gap: 18px;
  }
  .offer-item {
    padding: 22px 18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  }
  .offer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .offer-text {
    max-width: 100%;
    padding-right: 0;
  }
  .offer-btn {
    align-self: stretch;
    width: 100%;
    min-width: 0;
    text-align: center;
  }
  /* mobile: flowers must be hidden */
  .offer-flower {
    display: none !important;
  }
}

/* Responsive for About v2 */
@media (max-width: 991px) {
  .about-title {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  /* mobile: title -> image -> text (like design) */
  .about-title--desktop {
    display: none;
  }
  .about-title--mobile {
    display: block;
  }

  .about-v2-row {
    display: flex;
    flex-direction: column;
  }
  .about-v2-imgcol {
    order: 1;
  }
  .about-v2-textcol {
    order: 2;
  }

  .about-title {
    font-size: 24px;
    margin-bottom: 16px;
  }
  .about-subtitle {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .about-text-v2 {
    font-size: 14px;
  }

  /* image narrower + spacing like design */
  .about-img-wrap {
    justify-content: center;
  }
  .about-img {
    max-width: 80%;
    border-radius: 0;
  }
  .about-v2-imgcol {
    margin-bottom: 14px;
  }
}
.about-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.about-text ul {
  margin-top: 15px;
  padding-left: 20px;
}

.about-text li {
  margin-bottom: 8px;
  list-style: disc;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.about-gallery-item img {
  width: 100%;
  height: 200px;
  border-radius: 5px;
  object-fit: cover;
}

/* 3. Offers Section */
.offers-section {
  background: #fff; /* white background like design */
  --offers-flower: url('../images/offers-flower.png');
}

.offers-list {
  display: flex;
  flex-direction: column;
  gap: 32px; /* spacing between cards like design */
  max-width: 941px;
  margin: 0 auto;
}

.offer-item {
  position: relative;
  background: #f6c7d2; /* light pink card */
  border-left: none;
  padding: 28px 28px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

@media screen and (max-width: 560px) {
  .offer-item {
    padding: 15px 15px;
  }
  .offer-title {
    font-size: 16px !important;
  }
  .offer-desc p,
  .offer-desc ul li {
    font-size: 12px !important;
  }
}

.offer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.offer-text {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  max-width: 626px;
}

.offer-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 8px 0;
}

.offer-desc ul li {
  list-style: disc;
}

.offer-desc ul {
  padding-left: 25px;
}

.offer-desc p,
.offer-desc ul li {
  font-size: 16px;
  line-height: 1.45;
}

.offer-text p {
  margin: 0 0 8px 0;
}

.offer-text p:last-child {
  margin-bottom: 0;
}

.offer-text strong {
  font-weight: 700;
}

.offer-btn {
  background: #f190a4;
  color: #fff;
  padding: 12px 26px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  min-width: 140px;
  text-align: center;
  cursor: pointer;
  display: inline-block;
}

.offer-btn:hover {
  background: #333;
  color: #fff;
}

/* flower watermark INSIDE each card (so it's visible) */
.offer-flower {
  position: absolute;
  top: 50%;
  right: -60px;
  /* единый размер для всех карточек: 228px */
  width: 228px;
  height: 228px;
  transform: translateY(-50%);
  background-image: var(--offers-flower);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.1; /* по задаче: 10% */
  pointer-events: none;
  z-index: 1;
}

/* placement/cropping like the design (repeat every 4 cards) */
.offers-list .offer-item:nth-child(4n + 1) .offer-flower {
  top: -22px;
  right: -70px;
  transform: none;
}
.offers-list .offer-item:nth-child(4n + 2) .offer-flower {
  top: 50%;
  right: -50px;
  transform: translateY(-50%);
}
.offers-list .offer-item:nth-child(4n + 3) .offer-flower {
  top: auto;
  bottom: -60px;
  right: -70px;
  transform: none;
}
.offers-list .offer-item:nth-child(4n) .offer-flower {
  top: auto;
  bottom: -90px;
  right: -50px;
  transform: none;
}
/* 4. We Can Help Section */
.help-section {
  background: #fff1f4;
  position: relative;
  overflow: hidden;
  box-shadow: 0px 0px 20px 30px #fff1f4;
  padding: 0;
  margin: 100px 0;
}

@media (max-width: 560px) {
  .help-section {
    margin: 30px 0;
  }
}

/* background blur layer (as in design) */
.help-section:before {
  content: '';
  position: absolute;
  inset: -60px;
  background: #fff1f4;
  filter: blur(32px);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.help-section .container {
  position: relative;
  z-index: 1;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 60px;
  align-items: start;
}

.help-item {
  display: flex;
  align-items: flex-start;
}

.help-number {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #f190a4;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  margin-right: 18px;
  line-height: 1;
  flex: 0 0 44px;
}

.help-item-title {
  font-size: 20px;
  line-height: 2;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
  color: #000;
}

.help-item-text {
  font-size: 16px;
  color: #000;
  line-height: 1.55;
}

/* 5. Reasons Section */
.reasons-section {
  background: #fff;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 186px;
  row-gap: 40px;
}

.reason-item {
  display: block;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.reason-img {
  width: 100%;
  margin: 0 0 18px 0;
  overflow: hidden;
  aspect-ratio: 520 / 240;
}

.reason-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.reason-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 0 0 18px 0;
}

.reason-text {
  font-size: 16px;
  line-height: 1.6;
  color: #000;
}

.reasons-section .section-header-center {
  margin-bottom: 56px;
}

/* 7. Video Section */
.video-section {
  background: #fff;
  text-align: center;
}

.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.video-wrapper iframe {
  width: 100%;
  height: 450px;
  border-radius: 10px;
}

/* 8. Gallery Section */
.gallery-section {
  background: #fff;
}

.doctors-gallery-title {
  text-decoration: none;
}

.gallery-section .doctors-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr 1fr;
  /* make it one solid rectangle like in design */
  width: 100%;
  aspect-ratio: 1130 / 620;
  grid-template-rows: 0.42fr 0.58fr;
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  background: #fff;
}

.gallery-section .doctors-gallery-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-section .doctors-gallery-grid a.dg-lightbox {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.gallery-section .dg-a {
  grid-column: 1;
  grid-row: 1;
}
.gallery-section .dg-b {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}
.gallery-section .dg-c {
  grid-column: 3;
  grid-row: 1;
}
.gallery-section .dg-d {
  grid-column: 1 / span 2;
  grid-row: 2;
}
.gallery-section .dg-e {
  grid-column: 3;
  grid-row: 2;
}

.gallery-section .dg-item,
.gallery-section .dg-b1,
.gallery-section .dg-b2 {
  width: 100%;
  height: 100%;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}
.gallery-section .dg-b1 img,
.gallery-section .dg-b2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile slider (hidden on desktop) */
.gallery-section .doctors-gallery-slider {
  display: none !important;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.gallery-section .doctors-gallery-slider .dg-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-section .doctors-gallery-slider .dg-slide {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gallery-section .doctors-gallery-slider .dg-slide > a.dg-lightbox {
  display: block;
  width: 100%;
  height: 100%;
}

/* Ensure arrows are visible for both Owl v1 (.owl-buttons) and Owl v2 (.owl-nav) */
.gallery-section .doctors-gallery-slider .owl-controls,
.gallery-section .doctors-gallery-slider .owl-buttons,
.gallery-section .doctors-gallery-slider .owl-nav {
  display: block !important;
  opacity: 1 !important;
}

/* Make arrow layer cover the whole slider so arrows sit "outside" the image and stay clickable */
.gallery-section .doctors-gallery-slider .owl-buttons,
.gallery-section .doctors-gallery-slider .owl-nav {
  position: absolute;
  inset: 0;
  pointer-events: none; /* buttons re-enable */
}

/* Owl arrows styling (old Owl v1 markup) */
.gallery-section .doctors-gallery-slider .owl-buttons div {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #000;
  font-size: 44px;
  line-height: 1;
  padding: 0;
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
}
.gallery-section .doctors-gallery-slider .owl-buttons .owl-prev {
  left: 0;
}
.gallery-section .doctors-gallery-slider .owl-buttons .owl-next {
  right: 0;
}

/* Owl v1 buttons may be empty; force visible glyph arrows */
.gallery-section .doctors-gallery-slider .owl-buttons div:before {
  display: block;
  font-size: 44px;
  line-height: 1;
  color: #000;
}

/* Owl v2 arrows */
.gallery-section .doctors-gallery-slider .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: 0 !important;
  color: #000 !important;
  font-size: 44px !important;
  line-height: 1 !important;
  padding: 0 !important;
  opacity: 1 !important;
  z-index: 5;
  pointer-events: auto;
}

/* Force BLACK arrows on mobile (override owl-theme defaults) */
.gallery-section
  .doctors-gallery-slider.owl-theme
  .owl-controls
  .owl-buttons
  div,
.gallery-section
  .doctors-gallery-slider.owl-theme
  .owl-controls
  .owl-buttons
  div.owl-prev,
.gallery-section
  .doctors-gallery-slider.owl-theme
  .owl-controls
  .owl-buttons
  div.owl-next,
.gallery-section
  .doctors-gallery-slider.owl-theme
  .owl-controls
  .owl-nav
  button,
.gallery-section .doctors-gallery-slider.owl-theme .owl-nav button {
  color: #000 !important;
  opacity: 1 !important;
}
.gallery-section .doctors-gallery-slider .owl-nav .owl-prev {
  left: 8px;
}
.gallery-section .doctors-gallery-slider .owl-nav .owl-next {
  right: 8px;
}

/* 9. Doctors Cards Section (carousel) */
.doctors-cards-section {
  background: #fff;
}

.doctors-cards-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 40px;
}

.doctors-carousel-new .doctor-item-new2 {
  padding: 0 14px;
  height: 100%;
  display: flex;
}

.doctor-card-new2 {
  background: transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.doctor-photo-new2 img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover;
  display: block;
}

.doctor-info-new2 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 175px; /* keeps CTA aligned across cards */
}

.doctor-name-new2 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 800;
  color: #f190a4;
  line-height: 1.15;
  min-height: 42px; /* 2 lines */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.doctor-name-new2 a {
  color: #f190a4;
  text-decoration: none;
}

.doctor-pos-new2,
.doctor-preview-new2 {
  font-size: 16px;

  color: #000;
  margin-top: 16px;
  line-height: 1.45;
}

.doctor-pos-new2 b,
.doctor-preview-new2 b {
  font-weight: 400 !important;
}

.doctor-pos-new2 {
  min-height: 42px; /* 2 lines */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.doctor-preview-new2 {
  min-height: 22px; /* 1 line */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

.doctor-btn-new2 {
  display: block;
  margin-top: 14px;
  margin-top: 16px; /* push button to bottom => aligned */
  background: #f190a4;
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  width: 100%;
}
.doctor-btn-new2:hover {
  color: #fff;
  background: #d67a8c;
}

.doctors-all-wrap-new2 {
  text-align: center;
  margin-top: 38px;
}

@media screen and (max-width: 767px) {
  .doctors-carousel-new .doctor-photo-new2 {
    padding: 0 30px;
  }
  .doctors-section .owl-buttons {
    display: block;
  }
}
.doctors-all-btn-new2 {
  display: inline-block;
  background: #f190a4;
  color: #fff;
  text-decoration: none;
  padding: 20px 20px;
  font-size: 20px;
  font-weight: 700;
}
.doctors-all-btn-new2:hover {
  color: #fff;
  background: #d67a8c;
}

/* Doctors arrows (Owl v1 + v2) */
.doctors-carousel-new .owl-buttons div,
.doctors-carousel-new .owl-nav button {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  background: transparent !important;
  border: 0 !important;
  color: #000 !important;
  font-size: 44px !important;
  line-height: 1 !important;
  padding: 0 !important;
  opacity: 1 !important;
  z-index: 5;
}
.doctors-carousel-new .owl-buttons .owl-prev,
.doctors-carousel-new .owl-nav .owl-prev {
  left: -36px;
}
.doctors-carousel-new .owl-buttons .owl-next,
.doctors-carousel-new .owl-nav .owl-next {
  right: -36px;
}

/* 9. Reviews Section */
.reviews-section {
  background: #fff;
}

.editor-content h2 {
  font-size: 40px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

.su-column-inner {
  font-family: 'RalewayRegular', sans-serif !important;
  font-size: 20px;
  line-height: 27px;
  font-weight: 300;
}

@media screen and (max-width: 767px) {
  .su-column-inner {
    font-family: 'RalewayRegular', sans-serif !important;
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
  }
  .editor-content h2 {
    font-size: 24px !important;
    line-height: 32px !important;
    font-weight: 700 !important;
  }
}

/* New home reviews (scoped so /otzyvy/ is unaffected) */
.reviews-section-new .reviews-summary-new {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  margin: 10px 0 34px;
  font-size: 20px;
}

.reviews-section-new .reviews-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
}

.reviews-section-new .reviews-summary-value {
  font-weight: 800;
}

.reviews-section-new .reviews-summary-star svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -3px;
}

.reviews-section-new .reviews-list-new {
  max-width: 1100px;
  margin: 0 auto;
}

.reviews-section-new .wpmtst-testimonial {
  margin: 0 0 46px 0;
}

.reviews-section-new .wpmtst-testimonial-inner {
  position: relative;
  background: #fff1f4;
  border-radius: 0;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  padding: 26px 28px 40px;
}

/* name */
.reviews-section-new .wpmtst-testimonial-heading {
  min-width: 250px;
  font-size: 18px;
  font-weight: 800;
  color: #000;
  margin: 0;
  padding-right: 0;
}

/* name + stars (desktop) */
.reviews-section-new .testimonial-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px 0;
  flex-wrap: wrap;
}
.reviews-section-new .testimonial-stars--head {
  margin: 0;
}
.reviews-section-new .testimonial-stars--head .strong-rating-wrapper {
  position: static;
  display: inline-block;
}
.reviews-section-new .wpmtst-testimonial-inner .strong-rating .star svg {
  width: 18px;
  height: 18px;
}
.reviews-section-new .wpmtst-testimonial-inner .strong-rating .star_solid path {
  fill: #ffb900;
}
.reviews-section-new
  .wpmtst-testimonial-inner
  .strong-rating
  .star_regular
  path {
  fill: rgba(0, 0, 0, 0.15);
}

/* badges row */
.reviews-section-new .testimonial-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}
.reviews-section-new .testimonial-badges-row .testimonial-badge.verified {
  margin-left: 0; /* keep in the same row as other badges */
}
.reviews-section-new .testimonial-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  margin: 0;
  border: 1px solid #f190a4;
  color: #f190a4;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.reviews-section-new .testimonial-badge.service-name,
.reviews-section-new .testimonial-badge.google {
  color: #fff;
}

/* Linked service badge stays pink */
.reviews-section-new .testimonial-badge.service-name {
  background: #f190a4;
  border-color: #f190a4;
}

/* Google Maps badge must be blue */
.reviews-section-new .testimonial-badge.google {
  background: #6b95ff;
  border-color: #6b95ff;
}

.reviews-section-new .testimonial-badge.verified {
  background: #57c77b;
  color: #fff;
  border-color: #57c77b;
}

/* content */
.reviews-section-new .wpmtst-testimonial-content {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #000;
}

/* date bottom-right (desktop) */
.reviews-section-new .testimonial-date,
.reviews-section-new
  .wpmtst-testimonial-inner
  > .testimonial-field:nth-last-child(3) {
  position: absolute;
  right: 26px;
  bottom: 14px;
  font-size: 14px;
  color: #000;
  opacity: 0.85;
}

/* (stars are now rendered in .testimonial-head-row; no extra field in DOM) */
/* If plugin outputs legacy stars field, hide it to avoid duplicate stars */
.reviews-section-new
  .wpmtst-testimonial-inner
  > .testimonial-field.testimonial-stars,
.reviews-section-new
  .wpmtst-testimonial-inner
  > .wpmtst-testimonial-field.testimonial-field.testimonial-stars {
  display: none !important;
}

/* "mobile/tablet" layout for reviews */
@media (max-width: 992px) {
  .reviews-section-new .reviews-summary-new {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    font-size: 16px;
    margin: 8px 0 22px;
  }

  /* mobile card layout */
  .reviews-section-new .wpmtst-testimonial-inner {
    padding: 18px 16px 38px;
    display: flex !important;
    flex-direction: column;
  }

  /* keep name+stars readable on mobile (allow wrap if needed) */
  .reviews-section-new .testimonial-head-row {
    order: 1;
    margin-bottom: 8px;
  }

  .reviews-section-new .testimonial-badges-row {
    order: 2;
    margin-top: 0;
  }
  .reviews-section-new .testimonial-badges-row .testimonial-badge.verified {
    margin-left: 0; /* don't force right alignment on wrap-heavy mobile */
  }

  .reviews-section-new .wpmtst-testimonial-content {
    order: 3;
  }

  .reviews-section-new .testimonial-badge {
    white-space: normal;
  }

  .reviews-section-new .testimonial-date,
  .reviews-section-new
    .wpmtst-testimonial-inner
    > .testimonial-field:nth-last-child(3) {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin-top: 20px !important; /* spacing from text */
    text-align: left;
    order: 4 !important;
  }

  /* keep clear element last */
  .reviews-section-new .wpmtst-testimonial-inner > .clear {
    order: 99 !important;
  }
}

.btn-all-reviews {
  display: inline-block;
  background: #f190a4;
  color: #fff;
  text-decoration: none;
  padding: 20px 20px;
  font-size: 20px;
  font-weight: 700;
  max-width: 340px;
}

.btn-wrapper-center {
  text-align: center;
}

/* 10. Info Section */
.info-section {
  background: #fdfdfd;
}

/* Carousel layout (like design) */
.info-carousel-new {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.info-carousel-new .info-slide-new {
  /* extra vertical space so card shadow isn't clipped by Owl wrapper */
  padding: 18px 16px 28px;
}

/* Owl wrappers (v1/v2): add breathing room so box-shadow is not cut */
.info-carousel-new .owl-wrapper-outer,
.info-carousel-new .owl-stage-outer {
  padding: 18px 0 28px;
  box-sizing: border-box;
}

.info-card-new {
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.info-card-new .info-img-new {
  display: block;
}

.info-card-new .info-img-new img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.info-body-new {
  background: #fff1f4;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.info-body-new .info-date {
  font-size: 16px;
  color: #000;
  opacity: 0.85;
}

.info-body-new .info-title {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  /* keep equal heights */
  min-height: 42px; /* ~2 lines */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.info-body-new .info-title a {
  color: #f190a4;
  text-decoration: none;
}

.info-body-new .info-excerpt {
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #656464;
  line-height: 1.45;
  flex: 1;
  /* keep equal heights */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  /* fewer lines so text never collides with the button */
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.info-more-btn {
  margin-top: 14px;
  margin-left: auto; /* right edge like design */
  align-self: flex-end;
  margin-top: auto; /* push button to bottom => equal bottoms */
  background: #f190a4;
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  min-width: 150px;
  text-align: center;
}
.info-more-btn:hover {
  background: #d67a8c;
  color: #fff;
}

.info-all-wrap-new {
  text-align: center;
  margin-top: 38px;
}

.info-all-btn-new {
  display: inline-block;
  background: #f190a4;
  color: #fff;
  text-decoration: none;
  padding: 20px 20px;
  font-size: 20px;
  font-weight: 700;
  max-width: 340px;
}
.info-all-btn-new:hover {
  background: #d67a8c;
  color: #fff;
}

/* Info arrows (Owl v1 + v2) */
.info-carousel-new .owl-controls,
.info-carousel-new .owl-buttons,
.info-carousel-new .owl-nav {
  display: block !important;
  opacity: 1 !important;
}

.info-carousel-new .owl-buttons,
.info-carousel-new .owl-nav {
  position: absolute;
  inset: 0;
  pointer-events: none; /* buttons will re-enable */
}

.info-carousel-new .owl-buttons div,
.info-carousel-new .owl-nav button {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  background: transparent !important;
  border: 0 !important;
  color: #000 !important;
  font-size: 44px !important;
  line-height: 1 !important;
  padding: 0 !important;
  opacity: 1 !important;
  z-index: 5;
  pointer-events: auto;
}

/* Editor content section (content from WP editor) */
.editor-content-section {
  background: #fff;
}
.editor-content-section .editor-content {
  max-width: 1170px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.7;
  color: #000;
}
.editor-content-section .editor-content p {
  margin: 0 0 12px 0;
}
.editor-content-section .editor-content p:last-child {
  margin-bottom: 0;
}
.info-carousel-new .owl-buttons .owl-prev,
.info-carousel-new .owl-nav .owl-prev {
  left: -36px;
}
.info-carousel-new .owl-buttons .owl-next,
.info-carousel-new .owl-nav .owl-next {
  right: -36px;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
  .help-grid,
  .reasons-grid,
  .info-grid-new,
  .about-gallery {
    grid-template-columns: 1fr;
  }
  .help-grid {
    gap: 28px;
  }
  .help-number {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    font-size: 24px;
  }

  /* Reasons: keep design typography on mobile */
  .reasons-grid {
    row-gap: 44px;
  }
  .reasons-section .section-header-center {
    margin-bottom: 34px;
  }
  .reasons-section .section-title {
    font-size: 24px;
    line-height: 1.15;
    text-align: left;
  }
  .reason-title {
    font-size: 16px;
    margin-bottom: 14px;
    text-align: center;
  }
  .reason-img {
    aspect-ratio: 16 / 9;
    margin-bottom: 14px;
  }

  /* mobile: icon + title centered */
  .help-section .section-title {
    text-align: left;
  }
  .help-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .help-number {
    margin: 0 auto 12px;
  }
  .help-item-title {
    font-size: 16px;
    width: 100%;
    text-align: center;
  }
  .help-item-text {
    text-align: left;
  }

  /* Doctors gallery: switch to slider */
  .gallery-section .doctors-gallery-grid {
    display: none !important;
  }
  .gallery-section .doctors-gallery-slider {
    display: block !important;
    padding: 0 44px;
    box-sizing: border-box;
  }

  /* Doctors cards: mobile */
  .doctors-cards-title {
    font-size: 24px;
    text-align: left;
    margin-bottom: 22px;
  }
  .doctors-carousel-new .doctor-item-new2 {
    padding: 0;
  }
  /* match design: stable photo block on mobile */
  .doctor-photo-new2 img {
    height: 360px !important;
    object-fit: cover;
  }
  .doctor-name-new2 {
    font-size: 20px;
    min-height: auto;
  }
  .doctors-all-wrap-new2 {
    margin-top: 0px;
  }
  .info-all-btn-new {
    max-width: 100%;
  }

  /* Slider block should be narrower and centered (like design) */
  .doctors-carousel-new {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
  }
  .doctors-all-btn-new2 {
    width: 100%;
    min-width: 0;
  }

  /* Arrow layer spans full slider width so arrows are on the sides */
  .doctors-carousel-new .owl-buttons,
  .doctors-carousel-new .owl-nav {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .doctors-carousel-new .owl-buttons .owl-prev,
  .doctors-carousel-new .owl-nav .owl-prev {
    left: 0 !important;
    top: 30% !important;
  }
  .doctors-carousel-new .owl-buttons .owl-next,
  .doctors-carousel-new .owl-nav .owl-next {
    right: 0 !important;
    top: 30% !important;
  }
  /* arrows centered on the photo like design */
  .doctors-carousel-new .owl-buttons div,
  .doctors-carousel-new .owl-nav button {
    top: 180px;
    pointer-events: auto;
  }

  /* Owl v1 buttons may be empty; force visible glyph arrows */
  .doctors-carousel-new .owl-buttons div:before {
    display: block;
    font-size: 44px;
    line-height: 1;
    color: #000;
  }

  /* Force BLACK arrows on mobile (override owl-theme defaults) */
  .doctors-carousel-new.owl-theme .owl-controls .owl-buttons div,
  .doctors-carousel-new.owl-theme .owl-controls .owl-buttons div.owl-prev,
  .doctors-carousel-new.owl-theme .owl-controls .owl-buttons div.owl-next,
  .doctors-carousel-new.owl-theme .owl-controls .owl-nav button,
  .doctors-carousel-new.owl-theme .owl-nav button {
    color: #000 !important;
    opacity: 1 !important;
  }

  /* Info carousel: mobile */
  .info-carousel-new {
    max-width: 520px;
    width: 90%;
  }
  .info-carousel-new .info-slide-new {
    padding: 18px 0 0px;
  }
  .info-carousel-new .owl-wrapper-outer,
  .info-carousel-new .owl-stage-outer {
    padding-bottom: 0px;
  }
  .info-body-new .info-date,
  .info-body-new .info-title,
  .info-body-new .info-excerpt {
    padding: 0 20px;
  }
  .info-all-wrap-new {
    margin-top: 10px;
  }
  .owl-carousel .owl-item {
    padding: 0 20px;
  }
  .editor-content-section .editor-content p {
    font-size: 16px;
    line-height: 1.4;
  }

  .info-card-new .info-img-new img {
    height: 220px;
  }
  .info-all-btn-new {
    width: 100%;
    min-width: 0;
  }
  .info-carousel-new .owl-buttons .owl-prev,
  .info-carousel-new .owl-nav .owl-prev {
    left: 8px;
  }
  .info-carousel-new .owl-buttons .owl-next,
  .info-carousel-new .owl-nav .owl-next {
    right: 8px;
  }

  /* arrows centered on the image like in design */
  .info-carousel-new .owl-buttons div,
  .info-carousel-new .owl-nav button {
    top: 110px;
  }

  /* mobile: button full width like design, and text blocks natural */
  .info-body-new {
    padding: 14px 0px 16px;
  }
  .info-body-new .info-title {
    min-height: 0;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  .info-body-new .info-excerpt {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  .info-more-btn {
    width: 100%;
    margin-left: 0;
    align-self: stretch;
    margin-top: 14px;
    padding: 16px 16px;
    font-size: 16px;
  }
}

/* Phone: hide flowers + full-width button like design */
@media (max-width: 560px) {
  .video-section .section-title,
  .doctors-gallery-section .section-title {
    text-align: left;
    line-height: 1.4;
  }
}
@media (max-width: 1230px) {
  .header .nav {
    margin: 0 !important;
    float: none;
  }
}
