/* Правки по ревью сайта (документ «Правки Дентум»).
   Вынесено из additional.css отдельным файлом: у WP Rocket осталась старая
   минифицированная сборка additional.css, которую он не пересобирает. */

/* Блок «90% пациентов приходят по рекомендации» на главной.
   WP Rocket (Automatic Lazy Rendering) вешает на секцию content-visibility: auto,
   а оно обрезает фото видеоотзывов, которые по макету выходят за края плашки. */
.recommend[data-wpr-lazyrender] {
  content-visibility: visible;
}

/* Заголовок страницы кейсов: без балансировки «лечения» уезжает на вторую строку одно */
.cases_page .page_title {
  text-wrap: balance;
}

/* --- Страница новости и памятки (single.php) — по макету Figma «новость» ---------------
   Статья: колонка 900 px по центру. «назад» стоит у левого края контейнера,
   дата и заголовок — по левому краю колонки.
   Блоки под статьёй (акции, отзывы, консультация, «Еще новости») лежат в .news_flow
   с шагом 120 px. Градиент акций и формы консультации (#B7D0E9 → #C5BFD5) — только здесь. */

@media screen and (min-width: 1200px) {
  .news_article .news_inside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 900px) minmax(0, 1fr);
  }

  /* строку «назад + дата» раскладываем по колонкам статьи */
  .news_article .news_inside .inform {
    display: contents;
  }

  .news_article .news_inside .go_back {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    column-gap: 12px;
    font-weight: 400;
  }

  .news_article .news_inside .date {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-weight: 400;
  }

  .news_article .news_inside .page_title,
  .news_article .news_inside .news_inside__content {
    grid-column: 2;
  }

  .news_article .news_inside .page_title {
    margin-bottom: 20px;
  }
}

.news_article .news_inside .news_inside__content {
  min-width: 0;
}

/* ритм текста из макета: 20 px между абзацами, 34 px перед подзаголовком,
   40 px перед фото, 60 px между блоками «адрес + фото» */
.news_article .news_inside .news_inside__content > * {
  margin-block: 0;
}
.news_article .news_inside .news_inside__content > * + * {
  margin-top: 20px;
}
.news_article .news_inside .news_inside__content > * + :is(h2, h3, h4) {
  margin-top: 34px;
}
.news_article .news_inside .news_inside__content > * + :is(figure, .gallery, .wp-block-gallery) {
  margin-top: 40px;
}
.news_article .news_inside .news_inside__content > :is(figure, .gallery, .wp-block-gallery) + :is(h2, h3, h4) {
  margin-top: 60px;
}

.news_article .news_inside .news_inside__content h3,
.news_article .news_inside .news_inside__content h4 {
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.48px;
  color: #444;
}

@media screen and (max-width: 1199px) {
  .news_article .news_inside .news_inside__content > * + * {
    margin-top: 16px;
  }
  .news_article .news_inside .news_inside__content > * + :is(h2, h3, h4) {
    margin-top: 24px;
  }
  .news_article .news_inside .news_inside__content > * + :is(figure, .gallery, .wp-block-gallery) {
    margin-top: 24px;
  }
  .news_article .news_inside .news_inside__content > :is(figure, .gallery, .wp-block-gallery) + :is(h2, h3, h4) {
    margin-top: 32px;
  }
  .news_article .news_inside .news_inside__content h3,
  .news_article .news_inside .news_inside__content h4 {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.32px;
  }
}

/* картинки редактор вставляет с инлайновой шириной */
.news_article .news_inside .news_inside__content img:not(.emoji) {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  margin: 0;
}

/* пара фото в ряд (галерея блока WordPress или [gallery]) */
.news_article .news_inside .news_inside__content :is(.wp-block-gallery, .gallery) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.news_article .news_inside .news_inside__content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image),
.news_article .news_inside .news_inside__content .gallery .gallery-item {
  display: flex;
  float: none;
  width: auto !important;
  max-width: none;
  margin: 0;
}
.news_article .news_inside .news_inside__content .wp-block-gallery figure.wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news_article .news_inside .news_inside__content .gallery img {
  width: 100%;
}
@media screen and (max-width: 767px) {
  .news_article .news_inside .news_inside__content :is(.wp-block-gallery, .gallery) {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* блоки под статьёй */
.news_flow {
  display: flex;
  flex-direction: column;
  row-gap: 120px;
  margin-top: 120px;
}
@media screen and (max-width: 1199px) {
  .news_flow {
    row-gap: 80px;
    margin-top: 80px;
  }
}
@media screen and (max-width: 767px) {
  .news_flow {
    row-gap: 56px;
    margin-top: 56px;
  }
}
.news_flow > section {
  margin-top: 0;
}

/* заголовок блока + стрелки 50 px справа */
.news_flow .news_head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.news_flow .news_head__title,
.news_flow .section_title {
  color: #444;
  font-size: 32px;
  font-weight: 500;
  line-height: 38px;
  letter-spacing: -0.64px;
}
.news_flow .news_head__nav {
  display: flex;
  gap: 8px;
}
@media (hover: hover) {
  .news_flow .news_head__nav .swiper-button-prev:hover svg path,
  .news_flow .news_head__nav .swiper-button-next:hover svg path {
    stroke: #444;
  }
  .news_flow .news_head__nav .swiper-button-prev:hover svg rect,
  .news_flow .news_head__nav .swiper-button-next:hover svg rect {
    fill: #ececec;
  }
}
@media screen and (max-width: 1199px) {
  .news_flow .news_head {
    margin-bottom: 24px;
  }
  .news_flow .news_head__title,
  .news_flow .section_title {
    font-size: 26px;
    line-height: 32px;
    letter-spacing: -0.52px;
  }
}
@media screen and (max-width: 767px) {
  .news_flow .news_head {
    margin-bottom: 16px;
  }
  .news_flow .news_head__title,
  .news_flow .section_title {
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -0.4px;
  }
  .news_flow .news_head__nav {
    display: none;
  }
}

/* «Акции и скидки»: карточка 325 × 400, справа внизу белый вырез с кнопкой-стрелкой */
.news_flow .sw_stock_cards .stock_card {
  position: relative;
  display: block;
  height: 400px;
  padding: 26px 26px 0 32px;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #b7d0e9 0%, #c5bfd5 100%);
}
.news_flow .stock_card::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: 0;
  width: 80px;
  height: 80px;
  border-top-left-radius: 40px;
  background: #fff;
}
.news_flow .stock_card__icon {
  display: block;
  width: 80px;
  height: 80px;
  margin-left: -6px;
}
.news_flow .stock_card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 266px;
  margin: 110px 0 0;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.48px;
}
.news_flow .stock_card__price {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 26px;
  bottom: 0;
  padding: 16px 10px 29px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}
.news_flow .stock_card__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.28px;
  opacity: 0.6;
}
.news_flow .stock_card__value {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.48px;
}
.news_flow .stock_card__more {
  position: absolute;
  z-index: 1;
  right: 3px;
  bottom: 8px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #b7d0e9 0%, #c5bfd5 100%);
  transition: transform 0.3s;
}
.news_flow .stock_card__more svg {
  display: block;
}
@media (hover: hover) {
  .news_flow .stock_card:hover .stock_card__more {
    transform: scale(1.08);
  }
}
.news_flow .stock_card:focus-visible {
  outline: 2px solid #0b9da6;
  outline-offset: 2px;
}
@media screen and (max-width: 1199px) {
  .news_flow .sw_stock_cards .swiper-slide {
    width: 280px;
  }
  .news_flow .sw_stock_cards .stock_card {
    height: 360px;
  }
  .news_flow .stock_card__title {
    margin-top: 70px;
  }
}

/* «Бесплатная консультация!»: тот же блок feedback-form.php, но в цветах макета новости */
.news_flow .free_consult .free_consult_wrap {
  border-radius: 20px;
  background: linear-gradient(180deg, #b7d0e9 0%, #c5bfd5 100%);
}
.news_flow .free_consult .free_consult_wrap .form_circle {
  display: none;
}
@media screen and (min-width: 1200px) {
  .news_flow .free_consult .free_consult_wrap {
    min-height: 480px;
  }
  .news_flow .free_consult .free_consult_wrap .left {
    margin-left: -15px;
  }
}
.news_flow .free_consult .free_consult_wrap .form_bg {
  right: 0;
  max-width: 441px;
}

/* «Отзывы»: тот же include/reviews-section.php, раскладка макета — видео 210 × 325, кнопка «Все отзывы»,
   рейтинги тремя карточками на всю ширину контейнера */
@media screen and (min-width: 1200px) {
  .news_flow .review_block .sw_bl_rew_video .item .image_wrap {
    aspect-ratio: 210 / 325;
    border-radius: 20px;
  }
  .news_flow .review_block .sw_bl_rew_video .item .image_wrap .icon,
  .news_flow .review_block .sw_bl_rew_video .item .image_wrap .icon svg {
    width: 50px;
    height: 50px;
  }
  .news_flow .review_block .sw_bl_rew_video .item .date {
    margin-top: 20px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.28px;
  }
}
.news_flow .review_block .sw_bl_rew_video .item .title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: #444;
}
.news_flow .review_block .news_reviews_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 30px;
  padding: 12px 24px 14px;
  border-radius: 24px;
  background: #f8f8f8;
  color: #444;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.28px;
  transition: background 0.3s;
}
@media (hover: hover) {
  .news_flow .review_block .news_reviews_btn:hover {
    background: #ececec;
  }
}
.news_flow .review_block .news_reviews_ratings .sw_rew_rating {
  margin-top: 60px;
}
@media screen and (min-width: 1200px) {
  .news_flow .review_block .services_sidebar {
    margin-top: 30px;
  }
}
@media screen and (min-width: 1200px) {
  .news_flow .review_block .news_reviews_ratings .sw_rew_rating .swiper-wrapper {
    display: flex;
  }
  .news_flow .review_block .news_reviews_ratings .sw_rew_rating .item {
    width: calc((100% - 40px) / 3);
    max-width: none;
    height: 170px;
    padding: 17px;
    border: 2px solid #f8f8f8;
    border-radius: 20px;
    /* swiper ставит отступ между слайдами инлайном (14 px) — в макете 20 */
    margin-right: 20px !important;
  }
  .news_flow .review_block .news_reviews_ratings .sw_rew_rating .item:last-child {
    margin-right: 0 !important;
  }
}

/* «Еще новости»: серые карточки 440 × 160 — заголовок до трёх строк, дата внизу, без стрелки */
.news_flow .news_more .news {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 20px;
  border-radius: 20px;
}
.news_flow .news_more .news .inform {
  flex: 1 1 auto;
  justify-content: space-between;
  row-gap: 10px;
}
/* в additional.css дата у .news_page .news скрыта — в макете новости она есть */
.news_flow .news_more .news .inform .date {
  display: block;
}
.news_flow .news_more .news .inform .title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 3lh;
  color: #444;
}

/* --- Карточка кейса по макету C1: фото 170×150 слева, текст и кнопки справа ---
   /primery-rabot/ и рубрики, карусели на главной и на странице кейса.
   Миниатюры 60×60 с размытием убраны: в кейсах обычно одно фото — коллаж «до / после». */
.cases_page .cases_wrapper .case,
.cases_block .case {
  row-gap: 20px;
}
.cases_page .cases_wrapper .case__meta .case_row,
.cases_block .case__meta .case_row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 20px;
}
.cases_page .cases_wrapper .case__meta .case_media,
.cases_block .case__meta .case_media {
  flex: 0 0 170px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
}
.cases_page .cases_wrapper .case__meta .case_media img,
.cases_block .case__meta .case_media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cases_page .cases_wrapper .case__meta .case_side,
.cases_block .case__meta .case_side {
  flex: 1 1 auto;
  min-width: 0;
}
.cases_page .cases_wrapper .case__meta .case_side .case_text,
.cases_block .case__meta .case_side .case_text {
  margin-top: 0;
  -webkit-line-clamp: 4;
}
/* кнопки раньше стояли абсолютно рядом с миниатюрами — возвращаем в поток */
.cases_page .cases_wrapper .case__meta .case_side .case__meta_action .case_btns,
.cases_block .case__meta .case_side .case__meta_action .case_btns {
  position: static;
  margin-top: 14px;
}
/* обычный размер кнопки, как в макете: 12px был под старую раскладку с миниатюрами
   (до 1199px все кнопки сайта и так 12px — там не трогаем) */
@media screen and (min-width: 1200px) {
  .cases_page .cases_wrapper .case__meta .case_side .case__meta_action .case_btns .btn,
  .cases_block .case__meta .case_side .case__meta_action .case_btns .btn {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.28px;
  }
}
/* в карусели карточки стоят рядом: заголовок всегда в две строки, под текст — место на четыре,
   иначе фото и «Смотреть» в соседних слайдах оказываются на разной высоте */
.cases_block .case__meta .case_title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2lh;
}
.cases_block .case__meta .case_side .case_text {
  min-height: 4lh;
}
/* в карусели до 1199px карточка 300px — фото над текстом */
@media screen and (max-width: 1199px) {
  .cases_block .case__meta .case_row {
    flex-direction: column;
    gap: 16px;
  }
  .cases_block .case__meta .case_media {
    flex-basis: auto;
    width: 100%;
    height: 200px;
  }
}
@media screen and (max-width: 767px) {
  .cases_page .cases_wrapper .case__meta .case_row {
    flex-direction: column;
    gap: 16px;
  }
  .cases_page .cases_wrapper .case__meta .case_media {
    flex-basis: auto;
    width: 100%;
    height: 200px;
  }
}

/* Doctor profiles use the home card in one readable desktop column. */
.doctor_page .doctor_wrap .doctor-cases .sw_job .swiper-wrapper {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 20px;
}
.doctor_page .doctor_wrap .doctor-cases .sw_job .swiper-wrapper .swiper-slide .case {
  width: 100%;
  max-width: none;
  height: 100%;
  margin-bottom: 0;
  row-gap: 20px;
}
.doctor_page .doctor_wrap .doctor-cases .case__meta { height: auto; }
.doctor_page .doctor_wrap .doctor-cases .case__meta .case_title { margin: 0; }
.doctor_page .doctor_wrap .doctor-cases .case__meta .case_side .case_text {
  margin-top: 0;
  -webkit-line-clamp: 4;
}
.doctor_page .doctor_wrap .doctor-cases .case__meta .case_side .case_text p { margin: 0; }
.doctor_page .doctor_wrap .doctor-cases .case__meta .case__meta_action .case_btns {
  position: static;
  margin-top: 14px;
}
@media (min-width: 1200px) {
  .doctor_page .doctor_wrap .doctor-cases .case__meta .case_btns .btn {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.28px;
  }
}
@media (max-width: 1199px) {
  .doctor_page .doctor_wrap .doctor-cases .sw_job .swiper-wrapper .swiper-slide {
    width: 300px;
    max-width: 300px;
  }
}

/* === Версия для слабовидящих (виджет lidrekon.ru) === */

/* виджет при загрузке прячет всю страницу и проявляет её за секунду — у всех посетителей */
html {
  display: block !important;
  opacity: 1 !important;
}

/* кнопка включения: раньше картинка с lidrekon.ru, до которой не добраться с клавиатуры */
.header__wrap .header_accessibility .header_accessibility_button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #000;
}
.header__wrap .header_accessibility .header_accessibility_button:focus-visible {
  outline: 2px solid #0b9da6;
  outline-offset: 2px;
}

/* панель виджета закреплена сверху и закрывала шапку: логотип, меню, телефон, на телефоне — кнопку «Меню».
   Опускаем шапку и страницу на высоту панели (--special-panel-h ставит js/special-fixes.js) */
html.special {
  scroll-padding-top: calc(64px + var(--special-panel-h, 50px));
}
html.special body {
  padding-top: var(--special-panel-h, 50px);
}
html.special .header {
  top: var(--special-panel-h, 50px);
}

/* в тёмных схемах фото врачей пропадали: у них mix-blend-mode: darken, на чёрном фоне картинка чернеет;
   слово «ДЕНТУМ» в логотипе залито #222 — красим цветом текста схемы */
html.special img {
  mix-blend-mode: normal !important;
}
html.special .logo .st2 {
  fill: currentColor;
}

/* виджет снимает все фоны — без рамки и подчёркивания кнопки и ссылки неотличимы от текста;
   плавающая «Записаться онлайн» тоже снова выглядит кнопкой */
html.special :is(.btn, button, input[type="submit"], input[type="button"]):not(#special *),
html.special .die .item a {
  border: 2px solid currentColor !important;
}
html.special a:not(.btn) {
  text-decoration: underline !important;
  text-underline-offset: 0.15em;
}

/* заголовки: виджет ставит всем элементам один размер — возвращаем иерархию от выбранного размера текста */
html.special :is(h1, h2, h3):not(#special *) {
  line-height: 1.2 !important;
}
html.special :is(h1, h2, h3):not(#special *) * {
  font-size: inherit !important;
  line-height: inherit !important;
}
html.special-font-size-1 h1:not(#special *) { font-size: 2rem !important; }
html.special-font-size-1 h2:not(#special *) { font-size: 1.625rem !important; }
html.special-font-size-1 h3:not(#special *) { font-size: 1.25rem !important; }
html.special-font-size-2 h1:not(#special *) { font-size: 2.5rem !important; }
html.special-font-size-2 h2:not(#special *) { font-size: 2rem !important; }
html.special-font-size-2 h3:not(#special *) { font-size: 1.5625rem !important; }
html.special-font-size-3 h1:not(#special *) { font-size: 3rem !important; }
html.special-font-size-3 h2:not(#special *) { font-size: 2.375rem !important; }
html.special-font-size-3 h3:not(#special *) { font-size: 1.875rem !important; }

/* движение: бегущая строка стоит (кнопки паузы у неё нет), видео и автопрокрутку слайдеров
   останавливает js/special-fixes.js; при выключенных изображениях прячем и видео */
html.special .js-marquee-wrapper {
  animation: none !important;
}
html.special-images-0 video {
  visibility: hidden !important;
}

/* фокус с клавиатуры на кнопках панели виджета был не виден */
html #special button:focus-visible {
  outline: 3px solid currentColor !important;
  outline-offset: 2px !important;
}

/* карта на странице контактов: виджет заливает фоном все слои Яндекс Карт поверх тайлов — слои делаем
   прозрачными; подписи меток, копирайт, кнопки и балун остаются на фоне схемы */
html.special #map ymaps:not([class*="caption"]):not([class*="copyright"]):not([class*="goto"]):not([class*="balloon"]) {
  background: transparent !important;
}

/* --- Карточка акции в сайдбаре «Услуг» (archive-services.php, .services_stock) — вариант B1 «компактная» ---
   Текст на всю ширину, кнопка сразу под ним, высота по содержимому, без картинки.
   Слайды не тянем под самую длинную акцию, а описание держим в трёх строках —
   иначе карточка снова вытягивается и кнопка уезжает вниз. */
.services_stock .swiper-wrapper {
  align-items: flex-start;
}

.services_stock_card {
  row-gap: 16px;
}

.services_stock_card_inform {
  margin-top: 0;
}

.services_stock_card_inform_description {
  max-width: none;
  margin-top: 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.services_stock_card_btn.btn {
  margin-top: 0;
}

.services_stock_card_image {
  display: none;
}

/* --- Баннер на главной (front-page.php, .stock) — макет A3 «фото на сером» ---------
   Фото — карточка 380×350 со скруглением и полями 40 px от краёв плашки,
   текст с отступом 115 px; на телефоне фото уходит наверх во всю ширину. */
.stock .stock_wrap {
  padding: 40px 40px 40px 115px;
  column-gap: 40px;
}

.stock .stock_wrap .content {
  max-width: 555px;
}

.stock .stock_wrap .image {
  flex: 0 0 380px;
  max-width: 380px;
  height: 350px;
  max-height: none;
  border-radius: 14px;
  overflow: hidden;
}

.stock .stock_wrap .image img {
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 1199px) {
  .stock .stock_wrap {
    padding: 20px;
    column-gap: 20px;
  }

  /* те же пропорции 380:350 */
  .stock .stock_wrap .image {
    flex-basis: 300px;
    max-width: 300px;
    height: 276px;
  }
}

@media screen and (max-width: 767px) {
  .stock .stock_wrap {
    flex-direction: column;
    align-items: stretch;
    row-gap: 16px;
    padding: 20px 20px 24px;
  }

  .stock .stock_wrap .image {
    order: -1;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    height: 220px;
    max-height: none;
    border-radius: 12px;
  }

  .stock .stock_wrap .content,
  .stock .stock_wrap .content__meta {
    row-gap: 16px;
  }

  .stock .stock_wrap .content__meta .title {
    line-height: 30px;
  }

  /* справа больше нет маленькой картинки — текст на всю ширину */
  .stock .stock_wrap .content__meta .text {
    margin-right: 0;
  }
}

/* --- Видеоотзывы на главной (front-page.php, .recommend) — видео играет прямо в маске ---
   Кнопка .rec_play на всю площадь запускает и ставит на паузу. */
.recommend .rec_rev video,
.recommend .sw_rec_video .item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommend .rec_play {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* значок «плей» по центру маски; пока видео играет — прячем, на паузе — снова виден */
.recommend .rec_play svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: opacity 0.3s, transform 0.3s;
}

.recommend .rec_play:hover svg {
  transform: scale(1.06);
}

.recommend .is-playing .rec_play svg {
  opacity: 0;
}

.recommend .rec_play:focus-visible {
  outline: 2px solid #0b9da6;
  outline-offset: 2px;
}

/* подпись-заставку прячем, пока идёт видео */
.recommend .is-started img,
.recommend .is-playing .icon {
  opacity: 0;
}

/* October 2026 client review: shared readable headings and safe photo disclosure. */
.our_doctors .section_title,
.clinic-story .section_title,
.promo_sales .section_title,
.cases .section_title,
.cases_block .section_title,
.popular_services .section_title {
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.15;
  font-weight: 500;
  color: #444;
  margin-bottom: 32px;
}
.index_first_left__tags { display: none; }
.principles_head__title { background: none; padding: 0; color: #444; }
.principles__wrap .sw_principles .item__icon {
  height: 64px;
  max-height: 64px;
  align-items: center;
}
.principles__wrap .sw_principles .item__icon svg,
.principles__wrap .sw_principles .item__icon img {
  display: block;
  width: 96px;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 1199px) {
  .principles__wrap .sw_principles .item__icon { height: 56px; max-height: 56px; }
  .principles__wrap .sw_principles .item__icon svg,
  .principles__wrap .sw_principles .item__icon img { width: 84px; }
}
.popular_services .item_wrap > .image img { object-fit: cover; }
.index_about_wrap__bottom:empty { display: none; }
.dentum-case-sensitive { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; }
.dentum-case-sensitive .dentum-case-photo { display: block; width: 100%; height: 100%; filter: blur(18px); }
.dentum-case-sensitive .dentum-case-photo img { width: 100%; height: 100%; object-fit: cover; }
.dentum-case-reveal { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: #444; background: #ffffffb3; font-size: 14px; line-height: 1.4; }
.dentum-case-sensitive.is-revealed .dentum-case-photo { filter: none; }
.dentum-case-sensitive.is-revealed .dentum-case-reveal { display: none; }
.family-review-label { position: absolute; inset: auto 12px 12px; padding: 10px 16px; border-radius: 24px; background: #fff; color: #087b82; font-size: 14px; text-align: center; }
.doctor-review-link { margin-block: 20px; }
.reviews .date { display: none; }
.footer .footer_wrap .footer_left__text { margin-top: 0; }
.doctor_page .doctor_wrap .inform { min-width: 0; }
.doctor_page .doctor_wrap .inform > .text { height: auto; max-height: none; overflow: visible; display: block; -webkit-line-clamp: unset; }
.doctor_page .doctor_wrap .inform > .text p,
.doctor_page .doctor_wrap .inform > .text li { line-height: 1.55; overflow-wrap: anywhere; }
.doctor_page .doctor_wrap .inform .text_visible { display: none; }
.clinic-story { margin-block: 80px; }
.clinic-story__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.clinic-story__doctors a { color: #087b82; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.clinic-story__call { margin-top: 24px; }
.clinic-story__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.clinic-story__photos img { width: 100%; height: 260px; object-fit: cover; border-radius: 14px; }
.mobile-call-button { display: none; }
@media (max-width: 767px) {
  .header__wrap { position: relative; padding-left: 78px; column-gap: 8px; }
  .header__wrap .header_right__burger { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
  .header__wrap .header_right { position: static; }
  .header__wrap .logo { order: 2; max-width: 106px; min-width: 0; flex-shrink: 1; }
  .header__wrap .header_accessibility { order: 1; }
  .header__wrap .header_right { order: 0; flex-shrink: 0; }
  .mobile-call-button { position: fixed; display: grid; place-items: center; right: 20px; bottom: calc(108px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; background: #0b9da6; color: #fff; border-radius: 50%; z-index: 999; }
  .mobile-call-button svg { width: 24px; height: 24px; }
  .mobile-call-button:focus-visible { outline: 3px solid #444; outline-offset: 3px; }
  .clinic-story__wrap { grid-template-columns: 1fr; gap: 24px; }
  .clinic-story__photos img { height: 210px; }
  .index_about_wrap__head .title { font-size: 24px; line-height: 1.35; }
}
@media (max-width: 374px) {
  .header__wrap { padding-left: 72px; column-gap: 6px; }
  .header__wrap .header_right__burger { width: 60px; padding-inline: 0; }
  .header__wrap .header_right__contact { column-gap: 4px; }
  .header__wrap .header_right__contact .wa,
  .header__wrap .header_accessibility .header_accessibility_button {
    width: 30px;
    max-width: 30px;
    height: 30px;
    max-height: 30px;
  }
}
.is-sensitive-gallery img { filter: blur(18px); }
.is-sensitive-gallery a { pointer-events: none; }
.recomend_wrap__right .item__title strong,
.sw_rew_rating .item__title strong { font-size: 22px; line-height: 1.2; color: #444; }
.recomend_wrap__right .item__quanit,
.sw_rew_rating .item__quanit { color: #444; }
@media (min-width: 1200px) and (max-width: 1399px) {
  .header__wrap nav ul li a { font-size: 12px; line-height: 18px; padding: 10px; white-space: nowrap; }
  .header__wrap .logo { max-width: 110px; }
  .header__wrap .header_right__contact .btn { font-size: 12px; white-space: nowrap; }
}
#message-2 .message_wrapper .text a.btn.orange,
#message-2 .message_wrapper .text a.btn.orange:hover,
#message-2 .message_wrapper .text a.btn.orange:focus-visible { color: #fff !important; }
#message-2 .message_wrapper .title { text-wrap: balance; }
#message-2 .message_wrapper .text a.doctor-notice-link { white-space: nowrap; }

/* Space certificates from the preceding content, rather than a full section. */
.doctor_page .doctor_wrap > .certificates { margin-top: 32px; }
.doctor_page .doctor_wrap > .certificates > h2 { margin-top: 0; }

@media (max-width: 1199px) {
  /* Reserve two lines for clinic labels so every rating keeps the same rows. */
  .sw_rew_rating .item__quanit { min-height: 48px; }
}
