/* =========================================================
   Статья блога — новая вёрстка (доработки части 1 и 2).
   Подключается ТОЛЬКО на шаблоне template-blog-new.php, поверх blog-page.css.
   При выкатке на все статьи содержимое переносится в blog-page.css.
   ========================================================= */

/* ---------- Блоки внутри текста статьи (общее) ---------- */

/* Колонка текста — flex-элемент: без min-width: 0 слайдеры внутри (9+ карточек по 280px)
   растягивают её на всю ширину слайдов и ломают сетку статьи. */
body.single-post .section__row > .section__text,
body.single-post .section__content,
.blog-inline,
.blog-inline__slider-wrap {
  min-width: 0;
  max-width: 100%;
}

.blog-inline {
  margin: 48px 0;
}

.blog-inline_slider {
  position: relative;
}

.blog-inline__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.blog-inline__title {
  font-family: Geologica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
  color: #2a7831;
}

.blog-inline__nav {
  display: flex;
  flex: none;
}

.blog-inline__arrow {
  width: 50px;
  height: 50px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #133226 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 15' fill='none'%3E%3Cpath d='M1 1l6 6.5L1 14' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 8px 15px no-repeat;
  cursor: pointer;
  transition: opacity 0.3s;
}

.blog-inline__arrow_prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 15' fill='none'%3E%3Cpath d='M7 1L1 7.5 7 14' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.blog-inline__arrow.swiper-button-disabled {
  opacity: 0.4;
  cursor: default;
}

.blog-inline__slider-wrap {
  position: relative;
}

/* у слайдера нет класса .swiper — задаём базовые свойства контейнера сами */
.blog-inline__slider {
  position: relative;
  overflow: hidden;
}

.blog-inline__slider .swiper-slide {
  flex-shrink: 0;
  width: 280px;
  height: auto;
}

/* растушёвка справа, как в макете; исчезает, когда дошли до последней карточки */
.blog-inline__slider-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  z-index: 2;
  width: 148px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
  transition: opacity 0.3s;
}

.blog-inline__slider-wrap.is-end::after {
  opacity: 0;
}

.blog-inline a.blog-inline__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding: 12px 24px;
  border-radius: 10px;
  background: #e85454;
  box-shadow: inset 0 0 13px 0 rgba(255, 255, 255, 0.25), 0 3px 0 0 #db4e4e;
  font-family: Geologica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}

.blog-inline a.blog-inline__more:hover {
  background: #db4e4e;
  color: #fff;
}

/* ---------- Карточки программ ---------- */

.blog-program {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dbdbdb;
  border-radius: 20px;
  background: #fff;
  transition: background 0.3s, border-color 0.3s;
}

.blog-program__img {
  flex: none;
  height: 120px;
  background: #f0f0f0;
}

.blog-inline .blog-program__img img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

.blog-program__body {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 301px;
  padding: 25px 20px 24px;
}

.blog-program__title {
  font-family: Geologica, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  color: #11131d;
  transition: color 0.3s;
}

.blog-program__desc {
  margin-top: 6px;
  font-family: Geologica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #777;
  transition: color 0.3s;
}

.blog-inline a.blog-program__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border: 1px solid #2ba77b;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 13px 0 rgba(255, 255, 255, 0.25), 0 3px 0 0 #2ba77b;
  font-family: Geologica, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 18px;
  color: #2a2a2a;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

/* наведение — как в макете: карточка целиком зелёная */
.blog-program:hover {
  border-color: #26966e;
  background: #26966e;
}

.blog-program:hover .blog-program__title {
  color: #fff;
}

.blog-program:hover .blog-program__desc {
  color: #f6f6f6;
}

.blog-inline .blog-program:hover a.blog-program__btn {
  border-color: #2ba77b;
  background: #2ba77b;
  box-shadow: inset 0 0 13px 0 rgba(255, 255, 255, 0.25), 0 3px 0 0 #1f8a63;
  color: #fff;
}

/* ---------- Вступление (текст до первого H2) на подложке ---------- */

.blog-intro {
  margin: 0 0 48px;
  padding: 12px 24px 14px;
  border-radius: 12px;
  background: #eefbf5;
}

.section__text .blog-intro > :first-child {
  margin-top: 0 !important;
}

.section__text .blog-intro > :last-child {
  margin-bottom: 0 !important;
}

.blog-intro + .blog-inline {
  margin-top: 0;
}

/* ---------- Плашка «Важно!» ---------- */

.blog-inline_warning .warning-content {
  margin-top: 0;
  padding: 12px 24px;
  gap: 8px;
}

.blog-inline_warning .warning-content .warning-text {
  display: block;
  margin: 0;
  padding: 0;
  font-family: Geologica, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 28px;
}

.blog-inline_warning .warning-content .bold {
  padding-top: 12px;
  font-size: 18px;
  line-height: 28px;
}

.blog-inline_warning .warning-content a.warning-btn {
  display: block;
  line-height: 20px;
}

/* ---------- Карточки услуг (макет: 280×260) ---------- */

.blog-inline_services .service-card__item {
  box-sizing: border-box;
  min-height: 260px;
  padding: 19px 19px 28px;
  border-radius: 15px;
}

.blog-inline_services .service-card__logo {
  left: 19px;
  top: 113px;
  width: 244px;
  height: 63px;
}

.blog-inline .service-card__logo-img {
  margin: 0;
  border-radius: 0;
}

.blog-inline_services .service-card__body {
  align-items: stretch;
  gap: 32px;
}

.blog-inline_services .service-card__info {
  gap: 0;
  height: auto;
}

.blog-inline_services .service-card__badge {
  padding: 6px 16px;
  border-radius: 40px;
  font-family: Geologica, sans-serif;
  font-size: 16px;
  line-height: 18px;
}

.blog-inline_services .service-card__title {
  margin-top: 20px;
  font-family: Geologica, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 23px;
}

.blog-inline_services .service-card__title:first-child {
  margin-top: 0;
}

.blog-inline_services .service-card__price {
  margin-top: 12px;
  font-family: Geologica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 23px;
}

.blog-inline_services a.service-card__btn {
  height: 48px;
  padding: 0 24px;
  border-radius: 20px;
  font-family: Geologica, sans-serif;
  font-size: 18.8px;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
  text-decoration: none;
}

/* ---------- Карточки врачей в узкой колонке текста ---------- */

.blog-inline_doctors {
  padding: 0;
  background: none;
}

/* карточка врача в статье — отличия от общей (test-style.css) */

.section__text .blog-inline_doctors .doctor-slide-new-scnd__swiper-slide {
  width: 280px;
  border-color: #efefef;
}

/* фото */
.section__text .blog-inline_doctors .doctor-slide-new-scnd__swiper-slide_top {
  background: #f6f6f6;
  border: 0;
  border-radius: 24px 24px 12px 12px;
}

.section__text .blog-inline_doctors .doctor__img.img {
  height: 240px;
  border-radius: 24px 24px 12px 12px;
  overflow: hidden;
}

.section__text .blog-inline_doctors .doctor__img.img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
	top: 20px;
}

/* бейдж «Опыт» */
.section__text .blog-inline_doctors .doctor-slide-new-scnd__swiper-slide_experience {
  top: 12px;
  right: auto;
  left: 12px;
}

.section__text .blog-inline_doctors .doctor__experience {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px 4px;
  border: 1px solid #000;
  border-radius: 40px;
  background: #fff;
  font-size: 16px;
  line-height: 22px;
  color: #2a2a2a;
  margin: 0;
}

.section__text .blog-inline_doctors .doctor__experience-label {
  color: #656565;
}

/* ФИО: видимое, 2 строки */
.section__text .blog-inline_doctors .doctor-slide-new-scnd__swiper-slide_name {
  min-height: 48px;
}

.section__text .blog-inline_doctors .doctor__name {
  width: auto !important;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  color: #2a2a2a;
}

.section__text .blog-inline_doctors .doctor__name:hover {
  color: #2a7831;
}

.section__text .blog-inline_doctors .doctor__specializing {
  display: block !important;
  margin: 12px 0 0 !important;
  font-size: 16px;
  line-height: 24px;
  color: #2a2a2a;
}

/* кнопки */
.section__text .blog-inline_doctors .doctor-slide-new-scnd__swiper-slide_btns-wrapper {
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.section__text .blog-inline_doctors .doctor-slide-new-scnd__swiper-slide_btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 100%;
  height: 42px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: #2ba77b;
  box-shadow: none;
  font-size: 15px;
  line-height: 18px;
  color: #fff;
}

/* гасим блик .btn45 */
.section__text .blog-inline_doctors .doctor-slide-new-scnd__swiper-slide_btn::before {
  display: none;
}

.section__text .blog-inline_doctors .doctor-slide-new-scnd__swiper-slide_btn--2 {
  border: 1px solid #2ba77b;
  background: #fff;
  color: #2a2a2a;
}

/* ---------- «Акции» под статьёй ---------- */

/* геометрия контейнера — как у соседнего блока «Другие статьи» (.slider-readMore) */
.blog-stock {
  box-sizing: border-box;
  max-width: 110.875em;
  margin: 3rem auto;
  padding: 0 20px;
}

/* «Другие статьи» и «Акции» — заголовки и отступы по макету (44/700 зелёный, 120px между блоками) */
.post-template-template-blog-new .slider-readMore.furor-linking-articles {
  margin: 120px auto;
}

.post-template-template-blog-new .blog-stock {
  margin: 120px auto 0;
}

.post-template-template-blog-new .slider-readMore .slider-readMore__head {
  margin-bottom: 32px;
}

.post-template-template-blog-new .slider-readMore .read-more__title {
  margin: 0;
  font-family: Geologica, sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 55px;
  color: #2a7831;
}

.blog-stock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.blog-stock__heading {
  font-family: Geologica, sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 55px;
  color: #2a7831;
}

.blog-stock__slider {
  position: relative;
  overflow: hidden;
}

.blog-stock__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  box-sizing: border-box;
  height: auto;
  min-height: 281px;
  padding: 20px;
  overflow: hidden;
  border-radius: 24px;
  background: #14392c;
  box-shadow: inset 0 0 40px 0 rgba(255, 255, 255, 0.25);
  font-family: Geologica, sans-serif;
  color: #fff;
}

.blog-stock__timer {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 12px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #2a2a2a;
  white-space: nowrap;
}

.blog-stock__timer svg {
  flex: none;
  color: #e85453;
}

.blog-stock__timer b {
  font-weight: 700;
  color: #e85454;
  text-decoration: underline;
}

.blog-stock__title {
  position: relative;
  z-index: 1;
  max-width: 265px;
  font-size: 24px;
  font-weight: 500;
  line-height: 29px;
}

.blog-stock__title span {
  color: #26966e;
}

.blog-stock__tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 252px;
  max-width: 100%;
  margin: 12px 0 20px;
  padding: 0;
  list-style: none;
}

.blog-stock__tags li {
  margin: 0;
  padding: 3px 6px;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #2a2a2a;
}

.blog-stock__tags li::before {
  content: none;
}

/* светлая карточка */
.blog-stock__card_light {
  background: #f8f8f8;
  color: #2a2a2a;
}

.blog-stock__card_light .blog-stock__timer {
  background: #a2a2a2;
  color: #f7f7f7;
}

.blog-stock__card_light .blog-stock__timer svg,
.blog-stock__card_light .blog-stock__timer b {
  color: #fff;
}

.blog-stock__card_light a.blog-stock__btn,
.blog-stock__card_light a.blog-stock__btn:hover {
  background: #52a17b;
  color: #fff;
}

.blog-stock__card_light .blog-stock__img {
  right: -22px;
  bottom: -21px;
  max-width: 193px;
  height: 179px;
}

.blog-stock__text {
  position: relative;
  z-index: 1;
  max-width: 244px;
  margin: 8px 0 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

a.blog-stock__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 41px;
  margin-top: auto;
  padding: 0 17.5px;
  border-radius: 7px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #14392c;
  text-decoration: none;
  transition: opacity 0.3s;
}

a.blog-stock__btn:hover {
  opacity: 0.9;
  color: #14392c;
}

.blog-stock__img {
  position: absolute;
  right: 2px;
  bottom: 0;
  width: auto;
  max-width: 184px;
  height: 145px;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

/* ---------- Блоки закрепа, перенесённые в текст (планшет и мобильный, ≤1200 — там закреп скрыт) ---------- */

/* «Другие статьи»: без внутреннего отступа — края совпадают с «Акциями» */
.post-template-template-blog-new .slider-readMore.furor-linking-articles .read-more {
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* «Содержание статьи» — внутри основного текста после вводного абзаца */
.blog-side__content.blog-new-toc-inline {
  box-sizing: border-box;
  width: 100%;
  margin: 32px 0 48px;
}

/* карточка записи в тексте */
.appointment-card.blog-new-card-mob {
  margin: 48px 0;
}

/* карточка записи внутри текста: гасим типографику статьи (h2, p, a) */
.section__text .appointment-card.blog-new-card-mob h2.appointment-card__title {
  margin: 0 !important;
  padding: 0;
  font-size: 20px !important;
  line-height: 20px !important;
}

.section__text .appointment-card.blog-new-card-mob .appointment-card__title-bold {
  font-size: inherit;
  line-height: inherit;
}

.section__text .appointment-card.blog-new-card-mob .appointment-card__badge,
.section__text .appointment-card.blog-new-card-mob .appointment-card__badge-muted {
  font-size: 12px;
  line-height: 17px;
}

.section__text .appointment-card.blog-new-card-mob p.appointment-card__legal {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 12px !important;
  color: #656565 !important;
}

.section__text .appointment-card.blog-new-card-mob a.appointment-card__phone {
  font-size: 14px;
  color: #292929;
  text-decoration: none;
}

/* ---------- Плавающая плашка записи (временно скрыта) ---------- */

.post-template-template-blog-new .article-alert {
  display: none !important;
}

/* ---------- Планшет ---------- */

@media (max-width: 1200px) {
  .post-template-template-blog-new .slider-readMore.furor-linking-articles {
    margin: 80px auto;
  }

  .post-template-template-blog-new .blog-stock {
    margin: 80px auto 0;
  }

  .post-template-template-blog-new .slider-readMore .read-more__title,
  .blog-stock__heading {
    font-size: 34px;
    line-height: 42px;
  }
}

@media (min-width: 600px) and (max-width: 1200px) {
  /* узкие карточки акций: картинка меньше, текст не заходит под неё */
  .blog-stock__img {
    max-width: 150px;
    height: 120px;
  }

  .blog-stock__card_light .blog-stock__img {
    max-width: 193px;
    height: 179px;
  }

  .blog-stock__text {
    max-width: min(244px, calc(100% - 130px));
  }
}

/* ---------- Мобильная версия (макет 390) ---------- */

@media (max-width: 768px) {
  /* блоки в тексте */
  .blog-inline__arrow {
    width: 50px;
    height: 50px;
  }

  /* заголовок и стрелки в одну строку */
  .blog-inline__head {
    gap: 8px;
  }

  .blog-inline__slider-wrap::after {
    display: none;
  }

  .blog-inline a.blog-inline__more {
    display: flex;
    margin-top: 24px;
  }

  .blog-inline_warning .warning-content {
    padding: 20px 24px;
  }

  .blog-intro {
    padding: 20px 24px;
  }

  /* «Другие статьи» и «Акции» */
  .post-template-template-blog-new .slider-readMore.furor-linking-articles {
    margin: 45px auto 56px;
  }

  .post-template-template-blog-new .blog-stock {
    margin: 45px auto 0;
  }

  .post-template-template-blog-new .slider-readMore .read-more__title,
  .blog-stock__heading {
    font-size: 26px;
    line-height: 29px;
  }

  /* форма «Запишитесь на бесплатную консультацию» на мобильном не выводится */
  .post-template-template-blog-new .feedbackSectionUnique {
    display: none;
  }

  .appointment-card.blog-new-card-mob {
    max-width: none;
  }

  /* липкая плашка «Позаботьтесь о своём здоровье» */
  .post-template-template-blog-new .article-alert {
    position: fixed;
    left: 0;
    bottom: 12px;
    box-sizing: border-box;
    padding: 0 20px;
  }

  .post-template-template-blog-new .article-alert .center-wrap {
    padding: 0;
  }

  .post-template-template-blog-new .article-alert__content-info {
    margin-top: 0;
    background: linear-gradient(180deg, rgba(246, 246, 246, 0.75) 0%, rgba(255, 255, 255, 0.2) 100%);
    box-shadow: 0 8px 24px 0 rgba(0, 67, 139, 0.12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .post-template-template-blog-new .article-alert__content {
    gap: 24px;
  }

  .blog-side__content.blog-new-toc-inline {
    margin: 24px 0 32px;
  }
}

