/* C02T: persistent section navigation and optional doctor on the left. */
[data-mama-reading-server] .b-service__nav,
[data-mama-reading-server] .b-service__breadcrums,
[data-mama-reading-server] .mama-service-site__legacy-title {
  display: none !important;
}
@media (max-width: 991px) {
  .mama-service-site--reading-top[data-mama-reading-server] .mama-reading-flow {
    display: flex;
    flex-direction: column;
  }
  .mama-service-site--reading-top[data-mama-reading-server]
    .mama-reading-flow
    > .mama-reading-top__promo {
    order: 2;
  }
}
.mama-section-ui2--reading-top .mama-reading-top__left {
  min-width: 0;
  border: 0;
  background: transparent;
}
.mama-section-ui2--site.mama-section-ui2--reading-top {
  position: relative;
}
.mama-section-ui2--site.mama-section-ui2--reading-top
  > .mama-section-ui2__mobile-toggle {
  position: absolute;
  top: 12px;
  left: 24px;
  width: 222px;
  margin: 0;
}
.mama-section-ui2--site.mama-section-ui2--reading-top .mama-reading-top__left {
  padding-top: 68px;
}
.mama-section-ui2--reading-top .mama-reading-top__left .mama-section-ui2__side {
  align-content: start;
  padding-bottom: 16px;
  border-right: 0;
}
.mama-section-ui2--reading-top .mama-reading-top__doctor {
  box-sizing: border-box;
  width: auto;
  margin: 8px 20px 24px 24px;
}
.section-encyclopedia
  .mama-reading-top__left
  .b-service__rightbar.mama-reading-top__doctor {
  position: static !important;
  inset: auto !important;
  float: none;
  min-width: 0;
  width: auto !important;
  margin: 8px 20px 24px 24px;
}
.section-encyclopedia
  .mama-reading-top__left
  .b-service__rightbar.mama-reading-top__doctor
  > br {
  display: none;
}
.section-encyclopedia
  .mama-reading-top__left
  .b-service__rightbar.mama-reading-top__doctor
  #slides {
  width: 100% !important;
}
.section-encyclopedia
  .mama-reading-top__left
  .b-service__rightbar.mama-reading-top__doctor
  :is(.slidesjs-container, .slidesjs-control) {
  width: 100% !important;
}
.section-encyclopedia
  .mama-reading-top__left
  .b-service__rightbar.mama-reading-top__doctor
  .ask_question {
  width: 100%;
  height: auto;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.section-encyclopedia .mama-reading-top__left .mama-article-rail-search {
  margin: 8px 20px 24px 24px;
}
.mama-section-ui2--reading-top .mama-reading-top__promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 32px;
  padding: 22px 24px;
  border: 1px solid var(--mama-color-border);
  border-radius: var(--mama-radius-lg);
  background: var(--mama-color-selected-surface);
}
.mama-section-ui2--reading-top .mama-reading-top__promo-copy {
  min-width: 0;
}
.mama-section-ui2--reading-top .mama-reading-top__promo-copy h2 {
  margin: 0 0 6px;
  color: var(--mama-color-heading);
  font: 600 21px/1.25 var(--mama-font-sans);
}
.mama-section-ui2--reading-top .mama-reading-top__promo-copy p {
  margin: 0;
  color: var(--mama-color-text);
  font: 400 15px/1.5 var(--mama-font-sans);
}
.mama-section-ui2--reading-top .mama-reading-top__promo .mama-button {
  flex: none;
  white-space: nowrap;
  color: var(--mama-color-action-text);
  font-weight: 600;
}
.mama-section-ui2--reading-top .mama-reading-top__article {
  max-width: var(--mama-reading-width);
  color: var(--mama-color-text);
  font: 400 17px/1.65 var(--mama-font-sans);
}
.mama-section-ui2--reading-top .mama-reading-top__article p {
  margin: 0 0 18px;
}
.mama-section-ui2--reading-top .mama-reading-top__price {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  margin: 0 20px 24px 24px;
}

/* The site adapter moves existing Bitrix blocks into this composition. */
body.mama-ui2-shell .mama-service-site--reading-top .mama-section-ui2__main {
  min-width: 0;
}
body.mama-ui2-shell
  .mama-service-site--reading-top
  .b-service__row:has(> .b-service__content--wrapper) {
  display: block;
}
body.mama-ui2-shell
  .mama-service-site--reading-top
  .b-service__row
  > .b-service__content--wrapper {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  float: none;
}
body.mama-ui2-shell
  .mama-service-site--reading-top
  :where(.mama-service-rail-cell, .mama-reading-top__old-rail-cell) {
  display: none;
}
body.mama-ui2-shell .mama-section-ui2--reading-top .mama-reading-top__promo {
  box-sizing: border-box;
}
body.mama-ui2-shell
  .mama-section-ui2--reading-top
  .mama-reading-top__promo
  > :where(.hidden-tablet.hidden-mobile, .hidden-md.hidden-lg) {
  flex: 1 1 100%;
  min-width: 0;
  width: 100%;
}
body.mama-ui2-shell
  .mama-section-ui2--reading-top
  .mama-reading-top__promo:empty,
body.mama-ui2-shell
  .mama-service-site--reading-top
  .mama-reading-top__price:empty,
body.mama-ui2-shell
  .mama-service-site--reading-top
  .mama-reading-top__doctor:empty {
  display: none;
}
body.mama-ui2-shell
  .mama-service-site--reading-top:has(.mama-reading-top__promo)
  .b-service__content--article
  > .button_send.visible-tablet {
  display: none !important;
}
body.mama-ui2-shell
  .mama-section-ui2--reading-top
  .mama-reading-top__promo
  .action-rightbar {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 0;
}
body.mama-ui2-shell
  .mama-section-ui2--reading-top
  .mama-reading-top__promo
  > .hidden-md.hidden-lg {
  display: none !important;
}
body.mama-ui2-shell
  .mama-section-ui2--reading-top
  .mama-reading-top__promo
  .action-rightbar-rotator {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  margin: 0;
  padding-bottom: 32px;
}
body.mama-ui2-shell
  .mama-section-ui2--reading-top
  .mama-reading-top__promo
  .orange-border {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: var(--mama-color-heading) !important;
  box-shadow: none !important;
  text-align: left;
  font: 600 18px/1.3 var(--mama-font-sans);
}
body.mama-ui2-shell
  .mama-section-ui2--reading-top
  .mama-reading-top__promo
  .orange-border
  b {
  color: var(--mama-color-heading);
  font-size: 21px;
}
body.mama-ui2-shell
  .mama-section-ui2--reading-top
  .mama-reading-top__promo
  .orange-border
  > span {
  color: var(--mama-color-text-muted) !important;
  font-size: 14px;
  font-weight: 400;
}
body.mama-ui2-shell
  .mama-section-ui2--reading-top
  .mama-reading-top__promo
  .orange-border
  > div[style] {
  margin-top: 8px !important;
  color: var(--mama-color-text) !important;
  font: 400 13px/1.45 var(--mama-font-sans) !important;
}
body.mama-ui2-shell
  .mama-section-ui2--reading-top
  .mama-reading-top__promo
  .action-rightbar__cta {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
body.mama-ui2-shell
  .mama-section-ui2--reading-top
  .mama-reading-top__promo
  .action-rightbar__cta
  .b-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--mama-radius-sm);
  background: var(--mama-color-action) !important;
  color: var(--mama-color-action-text) !important;
  box-shadow: none !important;
  text-decoration: none;
  text-shadow: none;
  font: 600 15px/1.35 var(--mama-font-sans) !important;
}
body.mama-ui2-shell
  .mama-section-ui2--reading-top
  .mama-reading-top__promo
  .action-rightbar__cta
  .b-button
  .b-button__content {
  border: 0;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
}
body.mama-ui2-shell
  .mama-service-site--reading-top
  .mama-reading-top__left
  .b-service__rightbar {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  margin: 8px 20px 24px 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.mama-ui2-shell .mama-service-site--reading-top .mama-reading-top__doctor {
  float: none !important;
  clear: both;
}
body.mama-ui2-shell .mama-reading-top__price .gray-dashed-box-right {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--mama-color-border);
  border-radius: var(--mama-radius-lg);
  background: var(--mama-color-surface);
  box-shadow: none;
}
body.mama-ui2-shell .mama-reading-top__price .gray-dashed-box-right > .h3 {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  border: 0 !important;
  background: none !important;
  color: var(--mama-color-heading) !important;
  font: 600 20px/1.25 var(--mama-font-sans);
  text-decoration: none;
  text-align: left;
}
body.mama-ui2-shell
  .mama-reading-top__price
  .gray-dashed-box-right
  > .h3::before,
body.mama-ui2-shell
  .mama-reading-top__price
  .gray-dashed-box-right
  > .h3::after {
  display: none;
}
body.mama-ui2-shell
  .mama-reading-top__price
  .gray-dashed-box-right
  > .h3
  .i-link__decoration {
  border: 0;
  background: none !important;
  color: var(--mama-color-heading) !important;
  text-decoration: none;
}
body.mama-ui2-shell .mama-reading-top__price .rightbar_text a {
  color: var(--mama-color-link) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.mama-ui2-shell .mama-reading-top__price .b-service__rightbar__button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--mama-color-border-subtle);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.mama-ui2-shell .mama-reading-top__price .rightbar_text {
  min-width: 0;
}
body.mama-ui2-shell .mama-reading-top__price .rightbar_price {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
body.mama-ui2-shell
  .mama-reading-top__price
  :where(.rightbar_text, .rightbar_text a, .rightbar_price, strong) {
  color: var(--mama-color-text) !important;
  font: 400 14px/1.45 var(--mama-font-sans);
  overflow-wrap: anywhere;
}
body.mama-ui2-shell .mama-reading-top__price .rightbar_price strong {
  font-weight: 600;
}
body.mama-ui2-shell
  .mama-service-site--reading-top
  .mama-reading-top__doctor
  #slides:not(:has(.slidesjs-container)) {
  height: auto !important;
}

/* C02T + RVR-001: на странице отзыва блоки Битрикс расположены под левым меню. */
body.mama-ui2-shell .mama-section-ui2--review-detail .mama-review-detail__left {
  min-width: 0;
}
body.mama-ui2-shell .mama-section-ui2--review-detail .mama-review-detail__rail {
  box-sizing: border-box;
  min-width: 0;
  padding: 0 20px 24px 24px;
}
body.mama-ui2-shell
  .mama-section-ui2--review-detail
  .mama-review-detail__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: static !important;
  inset: auto !important;
  float: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.mama-ui2-shell
  .mama-section-ui2--review-detail
  .mama-review-detail__aside
  > br {
  display: none;
}
body.mama-ui2-shell
  .mama-section-ui2--review-detail
  .mama-review-detail__aside
  #slides {
  order: 1;
  width: 100% !important;
  max-width: 100%;
}
body.mama-ui2-shell
  .mama-section-ui2--review-detail
  .mama-review-detail__aside
  :is(.slidesjs-container, .slidesjs-control) {
  max-width: 100%;
  width: 100% !important;
}
body.mama-ui2-shell
  .mama-section-ui2--review-detail
  .mama-review-detail__aside
  .gray-dashed-box-right {
  order: 2;
  margin: 0;
}
body.mama-ui2-shell
  .mama-section-ui2--review-detail
  .mama-review-detail__aside
  .ask_quesction_link {
  order: 3;
  margin: 0;
}
body.mama-ui2-shell
  .mama-section-ui2--review-detail
  .mama-review-detail__aside
  .ask_question {
  width: 100%;
  height: auto;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
body.mama-ui2-shell .mama-section-ui2--review-detail .news-page-detail {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
body.mama-ui2-shell .mama-section-ui2--review-detail .content_text-reviews,
body.mama-ui2-shell .mama-section-ui2--review-detail .b-service,
body.mama-ui2-shell .mama-section-ui2--review-detail .b-service__row,
body.mama-ui2-shell
  .mama-section-ui2--review-detail
  .b-service__content--wrapper,
body.mama-ui2-shell
  .mama-section-ui2--review-detail
  .b-service__content--has-rightbar {
  box-sizing: border-box;
  float: none;
  position: static;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: 0;
}
body.mama-ui2-shell .mama-section-ui2--review-detail .b-service__row {
  display: block;
}
body.mama-ui2-shell
  .mama-section-ui2--review-detail
  .b-service__content--wrapper {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.mama-ui2-shell .mama-section-ui2--review-detail .review_header {
  margin: 0 0 var(--mama-space-6);
}
body.mama-ui2-shell
  .mama-section-ui2--review-detail
  .b-service__content--has-rightbar
  > .mama-review-body {
  color: var(--mama-color-text);
  font: 400 16px/1.65 var(--mama-font-sans);
  overflow-wrap: anywhere;
}

@media (max-width: 991px) {
  .mama-section-ui2--site.mama-section-ui2--reading-top
    > .mama-section-ui2__mobile-toggle {
    position: static;
    width: 100%;
    margin: 12px 0;
  }
  .mama-section-ui2--site.mama-section-ui2--reading-top
    .mama-reading-top__left {
    padding-top: 0;
  }
  body.mama-ui2-shell .mama-section-ui2--review-detail {
    display: flex;
    flex-direction: column;
  }
  body.mama-ui2-shell
    .mama-section-ui2--review-detail
    .mama-review-detail__left {
    display: contents;
  }
  body.mama-ui2-shell
    .mama-section-ui2--review-detail
    .mama-section-ui2__mobile-toggle {
    order: 0;
  }
  body.mama-ui2-shell .mama-section-ui2--review-detail .mama-section-ui2__main {
    order: 1;
  }
  body.mama-ui2-shell
    .mama-section-ui2--review-detail
    .mama-review-detail__rail {
    order: 2;
    padding: 0 16px 24px;
  }
  body.mama-ui2-shell
    .mama-section-ui2--review-detail
    .mama-review-detail__aside {
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (max-width: 991px) {
  body.mama-ui2-shell
    .mama-section-ui2--reading-top
    .mama-reading-top__promo
    > .hidden-md.hidden-lg {
    display: block !important;
  }
  body.mama-ui2-shell
    .mama-section-ui2--reading-top
    .mama-reading-top__promo
    > .hidden-tablet.hidden-mobile {
    display: none !important;
  }
  .mama-section-ui2--reading-top {
    display: flex;
    flex-direction: column;
  }
  .mama-section-ui2--reading-top .mama-section-ui2__main {
    order: 1;
  }
  .mama-section-ui2--reading-top .mama-reading-top__left {
    order: 2;
    border: 0;
    background: transparent;
  }
  .mama-section-ui2--reading-top
    .mama-reading-top__left
    .mama-section-ui2__side {
    display: none;
  }
  .mama-section-ui2--reading-top .mama-reading-top__doctor {
    max-width: 360px;
    margin: 0 16px 24px;
  }
  .section-encyclopedia
    .mama-reading-top__left
    .b-service__rightbar.mama-reading-top__doctor {
    max-width: 360px;
    margin: 0 16px 24px;
  }
  .section-encyclopedia .mama-reading-top__left .mama-article-rail-search {
    max-width: 680px;
    margin: 0 16px 24px;
  }
  .mama-section-ui2--reading-top .mama-reading-top__price {
    width: auto;
    max-width: 680px;
    margin: 0 16px 24px;
  }
  body.mama-ui2-shell
    .mama-service-site--reading-top
    .mama-reading-top__left
    .b-service__rightbar {
    max-width: 360px;
    margin: 0 16px 24px;
  }
  body.mama-ui2-shell
    .mama-section-ui2--reading-top
    .mama-reading-top__promo
    .action-rightbar {
    flex-wrap: wrap;
    gap: 0;
  }
  body.mama-ui2-shell
    .mama-section-ui2--reading-top
    .mama-reading-top__promo
    .action-rightbar-rotator {
    flex: 0 0 100%;
    width: 100% !important;
    padding-bottom: 0;
  }
  body.mama-ui2-shell
    .mama-section-ui2--reading-top
    .mama-reading-top__promo
    .action-rightbar__cta {
    margin-top: 18px;
  }
  .mama-section-ui2--reading-top .mama-reading-top__promo {
    flex-wrap: wrap;
  }
}
@media (max-width: 599px) {
  .mama-section-ui2--reading-top .mama-reading-top__promo {
    display: block;
    padding: 20px;
  }
  .mama-section-ui2--reading-top .mama-reading-top__promo .mama-button {
    display: inline-flex;
    margin-top: 18px;
  }
}
