/* =========================================================
   BTL Blog Product Slider
   ========================================================= */

.btl-blog-product-slider {
  --btl-product-blue: #00568d;
  --btl-product-cyan: #009bd9;
  --btl-product-line: rgba(0, 86, 141, 0.2);
  --btl-product-gap: 14px;
  --btl-product-overhang: clamp(34px, 6vw, 92px);

  position: relative;
  width: calc(100% + (var(--btl-product-overhang) * 2));
  margin: 42px calc(var(--btl-product-overhang) * -1);
  padding: 28px 0;
  box-sizing: border-box;
  border-top: 1px dotted var(--btl-product-line);
  border-bottom: 1px dotted var(--btl-product-line);
}

.btl-blog-product-slider.is-hovering {
  z-index: 40;
}

.btl-blog-product-slider *,
.btlBlogProductModal * {
  box-sizing: border-box;
}

.btl-blog-product-slider__heading {
  margin: 0 54px 22px;
  color: var(--btl-product-blue);
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1.15;
  font-weight: 600;
  text-align: center;
}

.btl-blog-product-slider__carousel {
  position: relative;
  min-width: 0;
}

.btl-blog-product-slider__viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  /*
   * Для scale > 100% изображение растет от нижней точки вверх.
   * JS вычисляет максимальную дополнительную высоту увеличенных изображений
   * и добавляет ее как верхний запас viewport. Вся строка карточек опускается
   * на этот запас, поэтому увеличенное изображение получает место сверху,
   * не обрезается и при этом сохраняет исходный нижний отступ до подписи.
   */
  --btl-product-image-top-overflow: 0px;
  padding: calc(10px + var(--btl-product-image-top-overflow)) 2px 0;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.btl-blog-product-slider__viewport::-webkit-scrollbar {
  display: none;
}

.btl-blog-product-slider__viewport:focus-visible {
  outline: 2px solid rgba(0, 155, 217, 0.45);
  outline-offset: 4px;
}

.btl-blog-product-slider__track {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: var(--btl-product-gap);
  align-items: flex-start;
  width: 100%;
  min-height: 0;
}

.btl-blog-product-slider.is-overflowing .btl-blog-product-slider__track {
  justify-content: flex-start;
}

.btl-blog-product-card {
  position: relative;
  flex: 0 0 calc((100% - (var(--btl-product-gap) * 2)) / 3);
  min-width: 0;
  height: auto;
  min-height: 282px;
  margin: 0 !important;
  padding: 0 !important;
  scroll-snap-align: start;
  text-align: center;
}

.btl-blog-product-card__base {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 4px 8px 0;
}

.btl-blog-product-card__product-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

/*
 * У всех карточек одинаковая "сцена" для изображения. Само изображение
 * выводится по фиксированной высоте. Небольшое разрешение по ширине сверх
 * карточки компенсирует прозрачные поля у некоторых исходных WEBP/PNG
 * (например, у SIS Elite), не обрезая сам аппарат.
 */
.btl-blog-product-card__media,
.btl-blog-product-card__overlay-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 232px;
  overflow: visible;
}

.btl-blog-product-card__media img,
.btl-blog-product-card__overlay-media img {
  display: block;
  width: auto;
  height: 224px;
  max-width: 122%;
  max-height: 224px;
  object-fit: contain;
  object-position: center center;
  transform-origin: var(--btl-product-image-origin, center center);
  transform:
    translate(var(--btl-product-image-x, 0%), var(--btl-product-image-y, 0%))
    scale(var(--btl-product-image-scale, 1));
  transition: transform 0.24s ease;
}

/*
 * Пока открыт desktop-hover, исходное изображение карточки скрываем,
 * но не вынимаем из layout. Это особенно важно для scale > 100%:
 * увеличенная картинка основного ряда может выступать выше белого hover.
 */
@media (min-width: 1025px) {
  .btl-blog-product-card.is-hovered .btl-blog-product-card__media img {
    visibility: hidden !important;
  }
}

.btl-blog-product-card__title,
.btl-blog-product-card__overlay-title {
  display: block;
  color: var(--btl-product-blue);
  line-height: 1.2;
  text-align: center;
}

.btl-blog-product-card__title {
  margin-top: 10px;
}

/*
 * На десктопе обычное название карточки делаем уже самой карточки.
 * Floating hover шире этой текстовой зоны, поэтому длинный H1 больше
 * не выглядывает по бокам из-под раскрытой карточки.
 */
@media (min-width: 1025px) {
  .btl-blog-product-card__title {
    width: min(250px, 82%);
    margin-left: auto;
    margin-right: auto;
  }
}

.btl-blog-product-card__category,
.btl-blog-product-card__model {
  display: block;
}

/* Категория показывается только в hover и модальном окне. */
.btl-blog-product-card__category {
  font-size: 14px;
  font-weight: 500;
}

.btl-blog-product-card__model {
  margin-top: 0;
  font-size: 17px;
  line-height: 1.22;
  font-weight: 700;
}

/*
 * Оригинал overlay хранится внутри карточки как шаблон. При hover JS клонирует
 * его непосредственно в корень слайдера. Поэтому раскрытая карточка не влияет
 * на высоту слайдера и может перекрывать следующий контент.
 */
.btl-blog-product-card > .btl-blog-product-card__overlay {
  display: none;
}

.btl-blog-product-card__overlay--floating {
  --btl-product-blue: #00568d;
  --btl-product-cyan: #009bd9;

  /*
   * Hover переносится JS непосредственно в <body>. position: fixed
   * выводит его из всех overflow/stacking-context контейнеров статьи,
   * поэтому карточка может свободно идти поверх следующего блока.
   */
  position: fixed;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 380px;
  padding: 22px 18px 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 65, 104, 0.16);
  opacity: 0;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(6px) scale(0.985);
  transform-origin: center center;
  transition:
    opacity 0.2s cubic-bezier(.22, .61, .36, 1),
    transform 0.2s cubic-bezier(.22, .61, .36, 1);
}

.btl-blog-product-card__overlay--floating.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.btl-blog-product-card__overlay--floating.is-hiding {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px) scale(0.99);
  transition-duration: 0.15s;
}

.btl-blog-product-card__overlay--floating .btl-blog-product-card__overlay-media {
  width: 100%;
  height: 226px;
  overflow: hidden;
}

/*
 * Hover имеет собственную фиксированную систему масштаба. При 100% картинка
 * занимает 84% media-окна, что оставляет резерв для увеличения. JS переносит
 * 25–100% пропорционально, а диапазон 100–200% нормализует в оставшиеся
 * 84–100% окна. object-fit:contain сохраняет пропорции любого исходника.
 */
.btl-blog-product-card__overlay--floating .btl-blog-product-card__overlay-media img {
  width: 84%;
  height: 84%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  transform-origin: center center;
  transform: scale(var(--btl-product-hover-scale, 1));
}

.btl-blog-product-card__overlay-title {
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
}

.btl-blog-product-card__overlay-title .btl-blog-product-card__model {
  margin-top: 4px;
}

.btl-blog-product-card__lead {
  width: 100%;
  max-width: 100%;
  margin: 12px 0 18px;
  padding: 0 2px;
  color: #335e7e;
  font-size: 16px;
  line-height: 1.38;
  text-align: center;
}

.btl-blog-product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

/* Даже без lead заголовок hover-карточки не должен прилипать к CTA. */
.btl-blog-product-card__overlay.has-no-lead .btl-blog-product-card__actions,
.btl-blog-product-card__overlay--floating.has-no-lead .btl-blog-product-card__actions {
  padding-top: 16px;
}

.btl-blog-product-card__mobile-more {
  display: none;
}

.btl-blog-product-btn,
.btlBlogProductModal__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px !important;
  padding: 7px 14px !important;
  border: 1.5px solid transparent !important;
  border-radius: 999px;
  background: #fff;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btl-blog-product-btn--go {
  border-color: var(--btl-product-cyan) !important;
  color: var(--btl-product-cyan) !important;
  box-shadow:
    0 0 0 1px rgba(0, 155, 217, 0.16),
    0 0 5px rgba(0, 155, 217, 0.2);
}

.btl-blog-product-btn--go:hover,
.btl-blog-product-btn--go:focus-visible {
  background: var(--btl-product-cyan) !important;
  color: #fff !important;
  box-shadow: 0 0 13px rgba(0, 155, 217, 0.3) !important;
}

.btl-blog-product-btn--secondary,
.btlBlogProductModal__actions .btl-popup-trigger {
  border-color: var(--btl-product-blue) !important;
  color: var(--btl-product-blue) !important;
  box-shadow: none !important;
}

.btl-blog-product-btn--secondary:hover,
.btl-blog-product-btn--secondary:focus-visible,
.btlBlogProductModal__actions .btl-popup-trigger:hover,
.btlBlogProductModal__actions .btl-popup-trigger:focus-visible {
  background: var(--btl-product-blue) !important;
  color: #fff !important;
}



/*
 * Desktop floating hover: содержимое увеличено соразмерно самому hover.
 * Основные карточки, мобильная версия и модальное окно не затрагиваются.
 */
@media (min-width: 1025px) {
  .btl-blog-product-card__overlay--floating
  .btl-blog-product-card__category {
    font-size: 15.5px;
  }

  .btl-blog-product-card__overlay--floating
  .btl-blog-product-card__model {
    font-size: 19px;
    line-height: 1.22;
  }

  .btl-blog-product-card__overlay--floating
  .btl-blog-product-card__lead {
    margin-top: 13px;
    margin-bottom: 20px;

    font-size: 17.5px;
    line-height: 1.38;
  }

  .btl-blog-product-card__overlay--floating
  .btl-blog-product-card__actions {
    gap: 11px;
  }

  .btl-blog-product-card__overlay--floating
  .btl-blog-product-btn {
    min-height: 40px !important;

    padding: 8px 16px !important;

    font-size: 13.5px !important;
    line-height: 1.2 !important;
  }

  .btl-blog-product-card__overlay--floating.has-no-lead
  .btl-blog-product-card__actions {
    padding-top: 18px;
  }
}

.btl-blog-product-slider__arrow {
  display: none !important;
  position: absolute;
  top: 112px;
  z-index: 20;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #00a1e4;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btl-blog-product-slider__arrow.is-visible {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.btl-blog-product-slider__arrow:hover,
.btl-blog-product-slider__arrow:focus-visible {
  transform: scale(1.18);
  outline: none;
}

.btl-blog-product-slider__arrow--prev {
  left: -47px;
}

.btl-blog-product-slider__arrow--next {
  right: -47px;
}

.btl-blog-product-slider__popup-bank {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   Modal
   ========================================================= */

.btlBlogProductModal {
  --btl-product-blue: #00568d;
  --btl-product-cyan: #009bd9;

  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  -webkit-overflow-scrolling: touch;
  transition: visibility 0s linear 0.22s;
}

.btlBlogProductModal.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.btlBlogProductModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.18s cubic-bezier(.22, .61, .36, 1);
}

.btlBlogProductModal.is-open .btlBlogProductModal__backdrop {
  opacity: 1;
}

.btlBlogProductModal__dialog {
  position: relative;
  z-index: 2;
  width: min(1110px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(20, 48, 76, 0.22);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transform-origin: center center;
  transition:
    opacity 0.23s cubic-bezier(.22, .61, .36, 1),
    transform 0.23s cubic-bezier(.22, .61, .36, 1);
}

.btlBlogProductModal.is-open .btlBlogProductModal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.btlBlogProductModal__content {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: hidden;
}

.btlBlogProductModal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d5e6f5;
  color: #5d7fa1;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.btlBlogProductModal__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 18px;
}

.btlBlogProductModal__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 520px;
  max-height: min(520px, calc(100dvh - 72px));
  object-fit: contain;
}

.btlBlogProductModal__body {
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding: 68px 52px 42px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.btlBlogProductModal__title {
  margin: 0 0 16px;
  color: var(--btl-product-blue);
  line-height: 1.08;
}

.btlBlogProductModal__category,
.btlBlogProductModal__model {
  display: block;
  white-space: pre-line;
}

.btlBlogProductModal__category {
  color: var(--btl-product-cyan);
  font-size: 22px;
  font-weight: 600;
}

.btlBlogProductModal__model {
  margin-top: 5px;
  color: var(--btl-product-blue);
  font-size: 32px;
  font-weight: 700;
}

.btlBlogProductModal__lead {
  margin: 0 0 25px;
  white-space: pre-line;
  color: var(--btl-product-cyan);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
}

.btlBlogProductModal__featuresTitle {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.btlBlogProductModal__features {
  margin: 0 0 28px;
  padding: 0;
  list-style: none !important;
}

.btlBlogProductModal__featureRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 180px);
  align-items: baseline;
  column-gap: 16px;
  margin-bottom: 9px;
}

.btlBlogProductModal__featureLabel {
  color: #4f7da6;
  font-size: 15px;
  line-height: 1.4;
}

.btlBlogProductModal__featureValue {
  color: var(--btl-product-cyan);
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
}

.btlBlogProductModal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btlBlogProductModal__actions .button-wrapper {
  margin: 0 !important;
}

.btlBlogProductModal__actions .btl-blog-product-btn,
.btlBlogProductModal__actions .btn {
  width: auto !important;
  min-width: 170px !important;
  min-height: 42px !important;
  padding: 10px 25px !important;
  font-size: 14px !important;
  white-space: nowrap;
}

html.btlBlogProductModal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.btlBlogProductModal-open {
  position: fixed !important;
  top: var(--btl-blog-product-modal-scroll-offset, 0) !important;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

.btlBlogProductModal.is-hiding .btlBlogProductModal__backdrop {
  opacity: 0;
  transition-duration: 0.15s;
}

.btlBlogProductModal.is-hiding .btlBlogProductModal__dialog {
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  transition-duration: 0.17s;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1199px) {
  .btl-blog-product-slider {
    --btl-product-overhang: 28px;
    --btl-product-gap: 12px;
  }

  .btl-blog-product-card {
    flex-basis: calc((100% - (var(--btl-product-gap) * 1.2)) / 2.2);
  }

  .btl-blog-product-card__media {
    height: 214px;
  }

  .btl-blog-product-card__media img {
    height: 206px;
    max-height: 206px;
  }
}

@media (max-width: 1024px) {
  .btl-blog-product-slider__arrow {
    display: none !important;
  }

  .btl-blog-product-card {
    min-height: 300px;
  }

  .btl-blog-product-card__overlay,
  .btl-blog-product-card__overlay--floating {
    display: none !important;
  }

  .btl-blog-product-card__mobile-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin-top: 14px;
    padding: 7px 18px;
    border: 1.5px solid var(--btl-product-blue);
    border-radius: 999px;
    background: #fff;
    color: var(--btl-product-blue);
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
  }

  .btlBlogProductModal__dialog {
    width: min(720px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    border-radius: 24px;
  }

  .btlBlogProductModal__content {
    display: block;
    min-height: 0;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .btlBlogProductModal__media {
    float: left;
    width: 220px;
    margin: 0 18px 8px 0;
    padding: 34px 10px 12px 22px;
  }

  .btlBlogProductModal__media img {
    max-height: 250px;
  }

  .btlBlogProductModal__body {
    max-height: none;
    padding: 34px 26px 26px;
    overflow: visible;
  }

  .btlBlogProductModal__body::after {
    content: "";
    display: block;
    clear: both;
  }

  .btlBlogProductModal__title {
    margin-top: 28px;
  }

  .btlBlogProductModal__featuresBlock,
  .btlBlogProductModal__actions {
    clear: both;
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {
  /*
   * .column-wrapper.align-center является flex-контейнером с
   * align-items:center. Если дочерний слайдер получает ширину >100%,
   * .text-wrap может перейти в shrink-to-fit и разрастись до ширины
   * контента. Тогда уже весь текст статьи становится шире viewport.
   *
   * Фиксируем host как обычную 100%-ную текстовую колонку.
   * Класс добавляется JS; :has() ниже страхует первый рендер в
   * современных браузерах.
   */
  .text-wrap.btl-blog-product-slider-host {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  @supports selector(.text-wrap:has(.btl-blog-product-slider)) {
    .componentPrimary
    .column-wrapper.align-center
    > .text-wrap:has(.btl-blog-product-slider) {
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
    }
  }

  .btl-blog-product-slider {
    --btl-product-gap: 8px;
    --btl-product-overhang: 0px;

    /*
     * Сам root больше не становится шире текстовой колонки.
     * Это принципиально: он не участвует в расчете intrinsic-width
     * родительского flex-item и не может растянуть весь текст статьи.
     */
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 34px;
    margin-bottom: 34px;
    margin-left: 0;
    margin-right: 0;
    padding: 24px 0;
  }

  /*
   * Полноширинный визуальный выход делаем только у внутренних частей.
   * width:auto + отрицательные margins не создают циклический расчет
   * вида width:calc(100% + 40px) у flex-предка.
   */
  .btl-blog-product-slider__heading {
    width: auto;
    margin: 0 -20px 18px;
    padding: 0 18px;
    box-sizing: border-box;
    font-size: 24px;
  }

  .btl-blog-product-slider__viewport {
    width: auto;
    max-width: none;
    box-sizing: border-box;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 14px;
    padding-right: 14px;
    scroll-padding-left: 14px;
    scroll-padding-right: 14px;
  }

  .btl-blog-product-slider__track {
    justify-content: flex-start;
  }

  .btl-blog-product-card {
    /*
     * Фиксированная высота на мобильном нужна не ради пустого места,
     * а чтобы карточки с моделями в 1, 2 и 3 строки имели одну геометрию.
     * Кнопка прижимается к низу карточки через flex, поэтому все CTA
     * оказываются на одном уровне независимо от длины названия.
     */
    flex-basis: min(64vw, 285px);
    height: 366px;
    min-height: 366px;
  }

  .btl-blog-product-card__base {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 4px 6px 8px;
  }

  .btl-blog-product-card__media {
    height: 222px;
  }

  .btl-blog-product-card__media img {
    height: 214px;
    max-width: 138%;
    max-height: 214px;
  }

  .btl-blog-product-card__category {
    font-size: 11px;
  }

  .btl-blog-product-card__model {
    font-size: 15px;
  }

  /*
   * Текст модели не растягиваем на всю ширину карточки: при длинных
   * названиях строка становится короче и композиция выглядит компактнее.
   */
  .btl-blog-product-card__title {
    width: min(172px, 70%);
    height: 55px;
    min-height: 55px;
    margin: 10px auto 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  /*
   * Для сложного H1 (например category + model + category) в обычной
   * карточке показываем весь заголовок. Ему нужна более высокая текстовая
   * зона, но сама карточка остаётся той же высоты, поэтому CTA у соседних
   * товаров сохраняют одну линию.
   */
  .btl-blog-product-card.is-complex-title .btl-blog-product-card__title {
    width: min(205px, 84%);
    height: 70px;
    min-height: 70px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
  }

  .btl-blog-product-card.is-complex-title .btl-blog-product-card__title .btl-blog-product-card__model {
    font-size: 13px;
    line-height: 1.15;
  }

  /* На телефоне "Подробнее" визуально совпадает с "Перейти к товару". */
  .btl-blog-product-card__mobile-more {
    align-self: center;
    margin-top: auto;
    border-color: var(--btl-product-cyan);
    color: var(--btl-product-cyan);
    box-shadow:
      0 0 0 1px rgba(0, 155, 217, 0.16),
      0 0 5px rgba(0, 155, 217, 0.2);
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  .btl-blog-product-card__mobile-more:hover,
  .btl-blog-product-card__mobile-more:focus-visible {
    border-color: var(--btl-product-cyan);
    background: var(--btl-product-cyan);
    color: #fff;
    box-shadow: 0 0 13px rgba(0, 155, 217, 0.3);
    outline: none;
  }

  /*
   * На мобильном оставляем ровно один вертикальный scroll-контейнер:
   * .btlBlogProductModal__content. Ранее одновременно скроллились modal,
   * dialog и content, из-за чего жест часто "залипал" на границе блока.
   */
  .btlBlogProductModal {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .btlBlogProductModal.is-open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 0;
    overflow: hidden;
  }

  .btlBlogProductModal__dialog {
    display: flex;
    flex-direction: column;
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
  }

  .btlBlogProductModal__content {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    overflow-x: hidden;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-gutter: stable;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .btlBlogProductModal__media {
    float: none;
    width: auto;
    margin: 0;
    padding: 48px 18px 6px;
  }

  .btlBlogProductModal__media img {
    max-height: 125px;
  }

  .btlBlogProductModal__body {
    padding: 10px 18px 22px;
    overflow: visible;
  }

  .btlBlogProductModal__title {
    margin: 0 0 12px;
  }

  .btlBlogProductModal__category {
    font-size: 16px;
  }

  .btlBlogProductModal__model {
    font-size: 24px;
  }

  .btlBlogProductModal__lead {
    margin-bottom: 18px;
    font-size: 16px;
  }

  .btlBlogProductModal__featuresTitle {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .btlBlogProductModal__features {
    margin-bottom: 18px;
  }

  .btlBlogProductModal__featureRow {
    grid-template-columns: minmax(0, 1fr) minmax(70px, 38%);
    align-items: start;
    column-gap: 10px;
    margin-bottom: 8px;
  }

  .btlBlogProductModal__featureLabel,
  .btlBlogProductModal__featureValue {
    font-size: 12px;
    line-height: 1.3;
  }

  .btlBlogProductModal__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btlBlogProductModal__actions .btl-blog-product-btn,
  .btlBlogProductModal__actions .btn,
  .btlBlogProductModal__actions .button-wrapper,
  .btlBlogProductModal__actions .button-wrapper .btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btl-blog-product-slider__viewport {
    scroll-behavior: auto;
  }

  .btl-blog-product-card__overlay,
  .btl-blog-product-card img,
  .btl-blog-product-btn,
  .btlBlogProductModal,
  .btlBlogProductModal__backdrop,
  .btlBlogProductModal__dialog {
    transition: none !important;
  }
}
