.service-content {
  width: 100%;
  max-width: 1440px;
  margin-top: 80px;
}

.service-content__rule {
  width: 100%;
  height: 1px;
  background: rgba(47, 40, 83, 0.1);
}

.service-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 369px;
  gap: 32px;
  margin-top: 32px;
}

.service-content__grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.service-content__article {
  min-width: 0;
}

.service-content__sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.service-content__blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-content__blog-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
}

.service-content__blog-item + .service-content__blog-item {
  border-top: 1px solid rgba(77, 72, 108, 0.08);
}

.service-content__blog-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
}

.service-content__blog-date {
  font-size: 16px;
  line-height: 19px;
  font-weight: 500;
  color: #443e64;
}

.service-content__blog-title {
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  line-height: 21px;
  font-weight: 600;
  letter-spacing: -0.396px;
  color: #2f2853;
  margin: 0;
}

/* Policy/content page title */
.site-main h1 {
  font-family: "Raleway", sans-serif;
}

article.content,
.wysiwyg-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  color: #443e64;
  font-family: "Raleway", sans-serif;
}

article.content h2,
article.content h3,
article.content h4,
.wysiwyg-content h2,
.wysiwyg-content h3,
.wysiwyg-content h4 {
  margin: 0;
  color: #2f2853;
  font-family: "Raleway", sans-serif;
  letter-spacing: -0.616px;
}

article.content h2,
.wysiwyg-content h2 {
  margin-top: 24px;
}

article.content h3,
.wysiwyg-content h3 {
  margin-top: 16px;
  letter-spacing: -0.44px;
}

article.content h4,
.wysiwyg-content h4 {
  margin-top: 12px;
  letter-spacing: -0.374px;
}

article.content p,
.wysiwyg-content p {
  letter-spacing: -0.352px;
  color: #443e64;
}


article.content strong,
.wysiwyg-content strong {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  color: #2f2853;
}

article.content a strong,
article.content strong a,
.wysiwyg-content a strong,
.wysiwyg-content strong a {
  color: rgba(161, 106, 167, 1) !important;
}

article.content a:hover strong,
article.content strong a:hover,
.wysiwyg-content a:hover strong,
.wysiwyg-content strong a:hover {
  color: rgba(161, 106, 167, 0.75) !important;
}

article.content a,
.wysiwyg-content a {
  text-decoration: none;
}

article.content ul,
article.content ol,
.wysiwyg-content ul,
.wysiwyg-content ol {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

article.content ul,
.wysiwyg-content ul {
  gap: 8px;
  margin: 8px 0;
}

article.content ol li::before,
.wysiwyg-content ol li::before {
  line-height: 1.2 !important;
}

article.content ul li,
.wysiwyg-content ul li {
  position: relative;
  display: block;
  padding-left: 18px;
  color: #443e64;
}

article.content ul li::before,
.wysiwyg-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(161, 106, 167, 1);
  box-shadow: 0 0 0 3px rgba(161, 106, 167, 0.15);
  box-sizing: border-box;
}

article.content ul li strong,
.wysiwyg-content ul li strong {
  display: inline;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.352px;
  color: #2f2853;
}

article.content ul li span,
.wysiwyg-content ul li span {
  display: block;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
  letter-spacing: -0.352px;
  color: #443e64;
}

article.content ol,
.wysiwyg-content ol {
  gap: 8px;
  padding-left: 0;
  list-style: none;
  counter-reset: ol-counter;
  counter-reset: ol-counter calc(attr(start type(<number>), 1) - 1);
}

article.content ol li,
.wysiwyg-content ol li {
  position: relative;
  display: block;
  padding-left: 20px;
  letter-spacing: -0.352px;
  color: #443e64;
  list-style: none;
  counter-increment: ol-counter;
}

article.content ol li::before,
.wysiwyg-content ol li::before {
  content: counter(ol-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  color: #2f2853;
  min-width: 20px;
}

article.content ol li:has(> strong:first-child)::before,
.wysiwyg-content ol li:has(> strong:first-child)::before {
  font-weight: 700;
}

/* Nested ol resets counter independently */
article.content ol ol,
.wysiwyg-content ol ol {
  counter-reset: ol-counter-nested;
  margin-top: 8px;
  gap: 8px;
}

article.content ol ol li,
.wysiwyg-content ol ol li {
  counter-increment: ol-counter-nested;
  padding-left: 22px;
}

article.content ol ol li::before,
.wysiwyg-content ol ol li::before {
  content: counter(ol-counter-nested) ".";
  color: #443e64;
  font-weight: 600;
  font-size: 13px;
  line-height: 20px;
}

/* Nested ul inside ol li (Gutenberg pattern) */
article.content ol li > ul,
.wysiwyg-content ol li > ul {
  margin-top: 8px;
  margin-bottom: 0;
  gap: 8px;
}

article.content ol li > ul li,
.wysiwyg-content ol li > ul li {
  display: block;
  position: relative;
  padding-left: 14px;
  font-size: 16px;
  line-height: 20px;
  counter-increment: none;
}

article.content ol li > ul li::before,
.wysiwyg-content ol li > ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: #a16aa7;
  box-shadow: none;
  min-width: auto;
  font-size: 0;
}

/* WP editor: <li><strong>Title.</strong>Description… </li> */
article.content ol li > strong,
.wysiwyg-content ol li > strong {
  display: inline;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.352px;
  color: #2f2853;
}

article.content br,
.wysiwyg-content br {
  display: block;
}


/* Figma markup: first span = bold title, second span = description */
article.content ol li > span,
.wysiwyg-content ol li > span {
  line-height: 1.2 !important;
}

article.content ol li > span:first-child,
.wysiwyg-content ol li > span:first-child {
  display: block;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.352px;
  color: #443e64;
}

article.content ol li > span + span,
.wysiwyg-content ol li > span + span {
  display: block;
  margin-top: 8px;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
  letter-spacing: -0.352px;
  color: #443e64;
}

.service-content__price-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-content__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
  padding: 11px 16px 12px;
  border-radius: 8px;
  background: rgba(77, 72, 108, 0.06);
}

.service-content__price-row:nth-child(even) {
  background: #ffffff;
}

.service-content__price-name,
.service-content__price-value {
  font-size: 16px;
  line-height: 19px;
  font-weight: 500;
  color: #2f2853;
}

.service-content__price-name {
  min-width: 0;
}

.service-content__price-value {
  white-space: nowrap;
  text-align: right;
  flex: 0 0 auto;
}

article.content > div {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  padding: 16px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: none;
}

article.content > div > div {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 32px;
  min-height: 238px;
  max-width: 100%;
  background: #fbe8fd;
  border-radius: 4px;
  box-sizing: border-box;
}

article.content > div > div > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 431px;
}

article.content > div h2 {
  font-family: "Raleway", sans-serif;
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: -0.792px;
  color: #2f2853;
  margin: 0;
}

article.content > div p {
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  line-height: 19px;
  font-weight: 500;
  letter-spacing: -0.352px;
  color: #443e64;
  margin: 0;
}

article.content blockquote,
.wysiwyg-content blockquote {
  margin: 0 0 8px 2px;
  padding: 8px 0 0 12px;
  border-left: 3px solid #443e64;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

article.content blockquote p,
.wysiwyg-content blockquote p {
  margin: 0 0 8px;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.352px;
  color: #443e64;
}

article.content > div > div > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  margin-top: 32px;
  padding: 13px 22px 14px;
  border-radius: 8px;
  background: #2f2853;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  line-height: 19px;
  font-weight: 700;
  letter-spacing: -0.352px;
  align-self: flex-start;
  transition: background-color 300ms;
}

article.content > div > div > a:hover {
  background: #443e64;
}

article.content > div > div > a span {
  display: block;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  line-height: 19px;
  font-weight: 700;
  letter-spacing: -0.352px;
  color: #ffffff;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .service-content__sidebar {
    position: static;
  }

  .service-content {
    margin-top: 56px;
  }

  .service-content__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }
  article.content > div > div > a {
    width: 100%;
    justify-content: center;
  }

  article.content blockquote p:last-child,
  .wysiwyg-content blockquote p:last-child {
    margin: 0;
  }
}

/* Doctors swiper nav */
.doctors-swiper-pagination {
  margin: 0;
  width: auto !important;
  flex: 0 0 auto !important;
}

.doctors-swiper-pagination .doctors-swiper-bullet {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  flex: 0 0 10px;
  border-radius: 9999px;
  background: rgba(77, 72, 108, 0.06);
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
  opacity: 1;
}

.doctors-swiper-pagination .doctors-swiper-bullet.is-active {
  background: #2f2853;
}

.doctors-swiper-prev,
.doctors-swiper-next {
  background: #ffffff;
  color: #2f2853;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.doctors-swiper-prev.is-disabled,
.doctors-swiper-next.is-disabled {
  background: rgba(77, 72, 108, 0.06) !important;
  color: rgba(47, 40, 83, 0.48) !important;
  cursor: not-allowed;
  opacity: 1;
}

.doctors-swiper-prev:not(.is-disabled):hover,
.doctors-swiper-next:not(.is-disabled):hover {
  background: #ffffff;
}

.slider-edge-mask-left {
  background: linear-gradient(90deg, #f2f2f2 0%, rgba(242, 242, 242, 0) 100%) !important;
}

.slider-edge-mask-right {
  background: linear-gradient(270deg, #f2f2f2 0%, rgba(242, 242, 242, 0) 100%) !important;
}

.blog-title-clamp {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .slider-overflow-shell {
    width: calc(100% + 120px) !important;
  }
}

@media (max-width: 639px) {
  .service-content {
    margin-top: 40px;
  }

  /* .licenses-swiper {
    padding: 0 16px;
    box-sizing: border-box;
  } */

  .licenses-swiper .swiper-slide {
    width: calc(50% - 8px) !important;
  }

  .service-content__rule {
    display: none;
  }

  .service-content__blog-title {
    font-size: 17px;
    line-height: 20px;
  }

  .service-content__price-row {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}
