/*
 * Стили главной страницы — единый файл (20.10.2026).
 * Подключение: header.php, только на главной, после order-ui.css и перед intro-hero.css
 * (место бывшего home-mobile.css; между style.css и этим местом — socials, btn-feedback,
 * catalog-link, page-loading, action-loading: общих селекторов с главной нет, каскад прежний).
 * Часть 1 — правила главной, перенесённые из style.css (все ширины, медиазапросы Bootstrap).
 * Часть 2 — бывший home-mobile.css: телефонная раскладка ≤767.98px, вариант A «магазин сначала».
 */

/* ===== Часть 1. Перенесено из style.css ===== */
.intro {
  padding-top: 0;
}
.intro .slider {
  overflow: hidden;
  border-radius: 9px;
  position: relative;
}
.showroom {
  width: 100%;
  height: 550px;
  display: flex;
  align-items: center;
  padding-left: 72px;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 9px;
}
.introslider-nav_next {
  position: absolute;
  cursor: pointer;
  top: calc(50% - 20px);
  right: 38px;
  z-index: 1;
}
.intro .showroom {
  transition: 2s;
  position: relative;
  border-radius: 9px;
  overflow: hidden;
}
.intro .showroom .arrow {
  display: none;
}
.intro .showroom .text {
  font-style: normal;
  font-weight: 400;
  font-size: var(--font-sm);
  line-height: 100%;
  color: #FFF;
  position: relative;
  z-index: 1;
}
@media (max-width: 991.98px) {
  .intro {
    padding-bottom: 0;
    }
  .introslider-nav_next {
    z-index: 0
    }
}
.benefits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.benefits .benefits-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  width: 25%;
  padding-right: 36px;
}
.benefits .benefits-item .img {
  max-width: 440px;
  position: relative;
}
.benefits .benefits-item .img img {
  transition: .5s;
}
.benefits .benefits-item .img img:last-child {
  position: absolute;
  left: 0;
  opacity: 0;
}
.benefits .benefits-item .heading {
  font-weight: 600;
  font-size: var(--font-md);
  line-height: 120%;
  margin: 30px 0 24px;
  transition: .3s;
}
.benefits .benefits-item .text {
  color: var(--color-lowgrey);
  font-weight: 600;
  font-size: var(--font-18);
  line-height: 140%;
  min-height: 100px;
  max-width: 390px;
  margin-bottom: 24px;
}
.benefits .benefits-item:hover .heading {
  background: linear-gradient(58.7deg, #DB001F 4.42%, #FCD9C2 91.74%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.benefits .benefits-item:hover .img img:first-child {
  opacity: 0;
}
.benefits .benefits-item:hover .img img:last-child {
  opacity: 1;
}
@media (max-width: 1399.98px) {
  .benefits .benefits-item {
    min-width: 50%;
    }
}
@media (max-width: 991.98px) {
  .benefits {
    padding: 0;
    }
  .benefits .benefits-item .heading {
    font-size: var(--font-16);
    margin: 24px 0 12px;
    }
  .benefits .benefits-item .heading br {
    display: none;
    }
  .benefits .benefits-item .text {
    font-size: 12px;
    }
}
@media (max-width: 1199.98px) {
  .benefits .benefits-item .img {
    max-width: 360px;
    }
  .benefits .benefits-item .text {
    min-height: unset;
    }
}
@media (max-width: 991.98px) {
  .benefits .benefits-item .img {
    max-width: 200px;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .main > section.intro {
    order: 1;
    }
  .main > section.benefits {
    order: 2;
    }
  .main > .screen-mob {
    order: 3;
    }
}
@media (min-width: 992px) {
  main.main > section > .loader-wrapper,
    main.main .tab-pane > .loader-wrapper {
    margin-top: 8px;
    }
}
@media (max-width: 991.98px) {
  .loader-wrapper.link {
    display: none;
    }
}
.sections-list .flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.contacts_item {
  max-width:1300px;
  margin:30px auto;
}
.contacts_item .bold {
  font-weight:700;
}
.contacts_item a {
  text-decoration:underline;
  color:var(--color-red);
}
.contacts_desc {
  margin-top:15px;
}
.quiz-section {
  border-radius: 9px;
  overflow: visible;
  padding: 0;
  margin: 60px 0;
}
.main-engage {
  display: grid;
  grid-template-columns: minmax(0, 1.857fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  margin: 60px 0;
}
.main-engage .quiz-section {
  margin: 0;
  height: auto;
}
.main-engage__feedback {
  position: relative;
  background: #FFF;
  border-radius: 9px;
  padding: 32px 32px 24px;
  display: flex;
  flex-direction: column;
}
.main-engage__feedback h2 {
  margin-top: 0;
}
.main-engage__feedback .feedbackMain {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.main-engage .feedbackMain .feedbackMainInputs {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  flex: 1 1 auto;
}
.main-engage .feedbackMain .textarea-block {
  flex: 1 1 auto;
}
@media (max-width: 991.98px) {
  .main-engage__quiz,
    .main-engage .quiz-section {
    display: block;
    }
  .main-engage__feedback {
    background: #FFF;
    border-radius: 9px;
    }
  .main-engage__feedback h2 {
    margin-bottom: 16px;
    }
}
.salon-slider {
  border-radius: 9px;
  overflow: hidden;
  position: relative;
}
.salon-slider .contacts_item a {
  color: #FFF;
  text-decoration: none;
}
.salon-slider .contacts_item {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 9px;
  overflow: hidden;
}
.salon-slider .contacts_item .salon-info {
  padding: 60px;
  width: 100%;
}
.salon-slider .contacts_item .salon-img {
  width: 50%;
  min-width: 50%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.salon-slider .dots-wrapper {
  position: absolute;
  bottom: 30px;
  left: 30px;
}
@media (max-width: 991.98px) {
  .salon-slider {
    overflow: visible;
    }
  .salon-slider .contacts_item {
    flex-direction: column;
    justify-content: space-between;
    }
  .salon-slider .contacts_item .salon-info {
    padding: 24px;
    }
  .salon-slider .contacts_item .salon-img {
    height: 240px;
    width: 100%;
    min-width: 100%;
    }
  .salon-slider .contacts_desc {
    display: none;
    }
  .salon-slider .dots-wrapper {
    bottom: -45px;
    left: 0;
    right: 0;
    }
}
.feedbackMain .feedbackMainInputs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.feedbackMain .textarea-block {
  margin-left: 1%;
  width: 49%;
}
.feedbackMain .textarea-block textarea {
  resize: none;
}
@media (max-width: 767.98px) {
  .feedbackMain .feedbackMainInputs {
    flex-direction: column;
    }
  .feedbackMain .textarea-block {
    margin-left: 0%;
    width: 100%;
    }
}
@media (max-width: 991.98px) {
  .benefits-mob,
    .pop-section {
    display: none!important;
    }
}
@media screen and (max-width: 767.98px) {
  .catalog-subsections-slider a {
    height:auto;
    margin:0 8px;
    }
  .catalog-subsections-slider {
    position:relative;
    }
  .catalog-subsections-slider a .img {
    height:120px;
    max-height:120px;
    }
  .catalog-subsections-slider a .img img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    }
}
.quiz-section {
  max-height: none;
}
.catalog-list.catalog-main .tab-content section {
  padding-top: 0;
}
.catalog-list.catalog-main .nav-tabs {
  scrollbar-width: none;
}
.catalog-list.catalog-main .nav-tabs .nav-link {
  white-space: nowrap;
  flex-shrink: 0;
}
.catalog-list.catalog-main .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 8px;
  overflow: visible;
  overflow-x: visible;
  overflow-y: visible;
  -webkit-overflow-scrolling: auto;
  max-height: none;
}
.catalog-list.catalog-main .nav-tabs::-webkit-scrollbar {
  display: none;
}
.catalog-list.catalog-main nav {
  overflow: visible;
  max-height: none;
}
@media (max-width: 767.98px) {
  .catalog-list.catalog-main .nav-tabs {
    flex-wrap: wrap;
    overflow: visible;
    }
}
.main-engage .quiz-section {
  overflow: hidden;
  border-radius: 9px;
  background: #2b2724;
  min-height: 840px;
  display: flex;
  flex-direction: column;
}
.main-engage__feedback {
  max-width: none;
  width: 100%;
  min-width: 0;
}
@media (max-width: 991.98px) {
  .main-engage {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 20px 0 28px;
    align-items: start;
    }
  .main-engage__feedback {
    padding: 20px 16px 20px;
    margin-bottom: 8px;
    }
}
.catalog-list.catalog-main .popular-items {
  position: relative;
}
.catalog-list.catalog-main .popular-items a,
.catalog-list.catalog-main .popular-items img {
  -webkit-user-drag: none;
}
@media (max-width: 991.98px) {
  .catalog-list.catalog-main .popular-items .slider-nav_prev,
    .catalog-list.catalog-main .popular-items .slider-nav_next {
    display: none !important;
    }
}
.intro-wrapper {
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.intro a.showroom,
.intro .showroom {
  flex: 0 0 calc(35% - 8px);
  width: calc(35% - 8px);
  max-width: calc(35% - 8px);
  margin-left: 0;
  height: 550px;
  padding-left: 24px;
  box-sizing: border-box;
  background-size: cover;
  background-position: center center;
}
@media (max-width: 1399.98px) {
  .intro .showroom,
    .intro a.showroom {
    display: none !important;
    }
}
@media (max-width: 991.98px) {
  .intro .showroom,
    .intro a.showroom {
    display: none !important;
    }
}
.main-engage .feedbackMain .agree-box,
form.feedbackMain .agree-box {
  position: relative;
  text-align: left;
  margin: 8px 0 16px;
}
@media (max-width: 991.98px) {
  .main-engage .feedbackMain .agree-box,
    form.feedbackMain .agree-box {
    margin: 8px 0 12px;
    }
}
@media (min-width: 992px) {
  .intro {
    padding-top: 0
    }
  .intro .slider {
    border-radius: 7.65px
    }
  .showroom {
    width: 100%;
    height: 467.5px;
    padding-left: 61.2px;
    background-size: cover;
    border-radius: 7.65px
    }
  .introslider-nav_next {
    top: calc(50% - 17px);
    right: 32.3px
    }
  .intro .showroom {
    border-radius: 7.65px
    }
  .intro .showroom .text {
    font-size: var(--font-sm)
    }
  .benefits .benefits-item {
    width: 25%;
    padding-right: 30.6px
    }
  .benefits .benefits-item .img {
    max-width: 374px
    }
  .benefits .benefits-item .img img:last-child {
    left: 0
    }
  .benefits .benefits-item .heading {
    font-size: var(--font-md);
    margin: 25.5px 0 20.4px
    }
  .benefits .benefits-item .text {
    font-size: var(--font-18);
    min-height: 85px;
    max-width: 331.5px;
    margin-bottom: 20.4px
    }
}
@media (min-width: 992px) {
  @media (max-width: 1399.98px) {
    .benefits .benefits-item {
      min-width: 50%
      }
  }
}
@media (min-width: 992px) {
  @media (max-width: 1199.98px) {
    .benefits .benefits-item .img {
      max-width: 306px
      }
    .benefits .benefits-item .text {
      min-height: unset
      }
  }
}
@media (min-width: 992px) {
  .sections-list .flex {
    gap: 6.8px;
    margin-bottom: 6.8px
    }
  .contacts_item {
    max-width: 1105px;
    margin: 25.5px auto
    }
  .contacts_desc {
    margin-top: 12.75px
    }
  .quiz-section {
    border-radius: 7.65px;
    padding: 0;
    margin: 51px 0
    }
  .main-engage {
    grid-template-columns: minmax(0, 1.857fr) minmax(0, 1fr);
    gap: 20.4px;
    margin: 51px 0
    }
  .main-engage .quiz-section {
    margin: 0;
    height: auto
    }
  .main-engage__feedback {
    border-radius: 7.65px;
    padding: 27.2px 27.2px 20.4px
    }
  .main-engage__feedback h2 {
    margin-top: 0
    }
  .main-engage__feedback .feedbackMain {
    flex: 1 1 auto
    }
  .main-engage .feedbackMain .feedbackMainInputs {
    flex: 1 1 auto
    }
  .main-engage .feedbackMain .textarea-block {
    flex: 1 1 auto
    }
  .salon-slider {
    border-radius: 7.65px
    }
  .salon-slider .contacts_item {
    height: auto
    }
  .salon-slider .contacts_item {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 7.65px
    }
  .salon-slider .contacts_item .salon-info {
    padding: 51px;
    width: 100%
    }
  .salon-slider .contacts_item .salon-img {
    width: 50%;
    min-width: 50%;
    background-size: cover;
    background-position: center
    }
  .salon-slider .dots-wrapper {
    bottom: 25.5px;
    left: 25.5px
    }
  .feedbackMain .textarea-block {
    margin-left: 1%;
    width: 49%
    }
  .quiz-section {
    max-height: none
    }
  .catalog-list.catalog-main .tab-content section {
    padding-top: 0
    }
  .catalog-list.catalog-main .nav-tabs {
    row-gap: 6.8px;
    max-height: none
    }
  .catalog-list.catalog-main nav {
    max-height: none
    }
  .main-engage .quiz-section {
    border-radius: 7.65px;
    min-height: 714px
    }
  .main-engage__feedback {
    max-width: none;
    width: 100%;
    min-width: 0
    }
  .intro-wrapper {
    gap: 13.6px
    }
  .intro .slider {
    flex: 1 1 auto;
    width: calc(65% - 6.8px);
    min-width: 0;
    max-width: calc(65% - 6.8px);
    height: 467.5px
    }
  .intro a.showroom, .intro .showroom {
    flex: 0 0 calc(35% - 6.8px);
    width: calc(35% - 6.8px);
    max-width: calc(35% - 6.8px);
    margin-left: 0;
    height: 467.5px;
    padding-left: 20.4px;
    background-size: cover;
    background-position: center center
    }
}
@media (min-width: 992px) {
  @media (max-width: 1399.98px) {
    .intro .slider {
      width: 100%;
      min-width: 100%;
      max-width: 100%;
      height: 467.5px
      }
  }
}
@media (min-width: 992px) {
  .main-engage .feedbackMain .agree-box, form.feedbackMain .agree-box {
    margin: 6.8px 0 13.6px
    }
}

/* ===== Часть 2. Телефон ≤767.98px (бывший home-mobile.css), вариант A «магазин сначала» ===== */
/* Исключение — «Акции партнеров» с 1–3 акциями: виден только ≤767.98px. */

/* Акции партнеров, 1–3 акции: шаблон actions_main ставит модификатор.
   Вне мобильной раскладки блок скрыт (на ПК порог 4, на планшете 2 в ряд —
   остался бы пустой ряд). Показ — в медиазапросе ≤768 ниже. */
.discount-section--mobile-only {
  display: none;
}

@media screen and (max-width: 767.98px) {

  /* ------------------------------------------------------------------ */
  /* Порядок секций: screen-mob → contents, чтобы дети участвовали в flex */
  /* ------------------------------------------------------------------ */
  main.main {
    display: flex;
    flex-direction: column;
  }
  main.main > .screen-mob {
    display: contents;
  }
  /* дефолт для всего, что не перечислено */
  main.main > section,
  main.main > .screen-mob > section {
    order: 50;
  }
  main.main > section.intro {
    order: 1;
  }
  main.main > .screen-mob > section.section-list {
    order: 2;
  }
  main.main > section.catalog-list.catalog-main {
    order: 3;
  }
  main.main > section.video-section {
    order: 4;
  }
  main.main > section.pop-brands-section {
    order: 5;
  }
  main.main > section.discount-section {
    order: 6;
  }
  main.main > section.main-engage {
    order: 7;
  }
  main.main > section.salon-section {
    order: 8;
  }
  /* benefits-mob: после салонов, перед блогом; un-hide vs style.css ≤991 */
  main.main > .screen-mob > section.benefits-mob {
    order: 9;
    display: block !important;
  }
  main.main > section.blog-list.blog-main {
    order: 10;
  }
  /* Популярные категории и десктоп-benefits на мобилке не нужны */
  main.main > section.pop-section {
    display: none !important;
  }
  main.main > section.benefits {
    display: none !important;
  }

  /* ------------------------------------------------------------------ */
  /* Ритм отступов между секциями                                       */
  /* ------------------------------------------------------------------ */
  main.main > section,
  main.main > .screen-mob > section {
    padding-top: 28px;
    padding-bottom: 28px;
    margin: 0;
  }
  main.main > section.intro {
    padding-top: 0;
    padding-bottom: 16px;
  }

  /* ------------------------------------------------------------------ */
  /* Каталог: крупные плитки 2 колонки, без стены подкатегорий          */
  /* ------------------------------------------------------------------ */
  .section-list .section-top {
    margin-bottom: 12px;
  }
  .section-list .section-header h2 {
    margin-bottom: 0;
  }
  .section-list .sections-list .grid {
    display: grid !important;
    column-count: unset !important;
    -moz-column-count: unset !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .section-list .sections-list .grid .item {
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
  }
  .section-list .sections-list .item .section-menu,
  .section-list .sections-list .item .all {
    display: none !important;
  }
  .section-list .sections-list .item .name {
    border-bottom: none;
    padding: 12px 12px 14px;
    font-size: 15px;
    line-height: 120%;
    /* Длинные названия разделов на 320 px переносятся по слогам, а не обрезаются */
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
  .section-list .sections-list .item .name .section-pic-slot {
    margin-bottom: 10px;
    border-radius: 6px;
  }
  .section-list .sections-list .item .name .section-pic-slot img {
    margin-bottom: 0;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
  }
  .section-list .sections-list .item .name > img {
    margin-bottom: 10px;
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  /* ------------------------------------------------------------------ */
  /* Хиты/новинки: карточка ниже за счёт фото (слот 4/3 вместо 1/1,     */
  /* это минус четверть высоты картинки). Кегль не трогаем: 9px уже    */
  /* не читается. Каталог, поиск и карточка товара не задеты.           */
  /* Ширина карточки (две и край третьей) — slider/style.css.           */
  /* ------------------------------------------------------------------ */
  .catalog-list.catalog-main .popular-items .item {
    padding: 18px 12px 52px;
  }
  .catalog-list.catalog-main .popular-items .item .img {
    aspect-ratio: 4 / 3;
    margin-bottom: 16px;
  }
  .catalog-list.catalog-main .tm-home-tab-skel__card {
    height: 220px;
  }
  .catalog-list.catalog-main .nav-tabs {
    margin-bottom: 12px;
  }

  /* ------------------------------------------------------------------ */
  /* Хиты/новинки/лучшая цена: цена как в превью корзины.               */
  /* Старая зачёркнутая и процент в одной строке, текущая крупнее ниже. */
  /* Без скидки остаётся только текущая, но место под верхнюю строку   */
  /* сохраняется. Каталог, поиск и карточка товара не задеты.           */
  /* Кегль не ниже шкалы превью (18 / 12 / 11).                         */
  /* ------------------------------------------------------------------ */
  .catalog-list.catalog-main .popular-items .item .price,
  .catalog-list.catalog-main .popular-items .item .price.price--sale {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    min-height: 48px;
    margin-top: auto;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    white-space: normal;
  }
  .catalog-list.catalog-main .popular-items .item .price-current {
    order: 2;
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: #423B38;
    white-space: nowrap;
  }
  .catalog-list.catalog-main .popular-items .item .price-old {
    order: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
    max-width: 100%;
    min-width: 0;
  }
  .catalog-list.catalog-main .popular-items .item .price-base {
    order: 1;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #AAA09C;
    text-decoration: line-through;
    white-space: nowrap;
  }
  .catalog-list.catalog-main .popular-items .item .price-percent {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    border-radius: 4px;
    background: #F7E9EB;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #8C0014;
    white-space: nowrap;
  }

  /* ------------------------------------------------------------------ */
  /* Бренды: ОДИН scroll-x ряд + peek; плитки ~2:1 (гориз. прямоуг.)    */
  /* Ширина ×1.3: делитель 2.25 → 1.7308 (2.25/1.3). Высота слота       */
  /* растёт вместе с шириной (aspect-ratio 2/1). Лого contain, без кропа*/
  /* ≤10. Страница брендов этот файл не грузит.                         */
  /* ------------------------------------------------------------------ */
  .pop-brands-section .h2 {
    margin-bottom: 12px;
  }
  .pop-brands-section .sections-list .flex {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    align-items: stretch;
    align-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 4px;
    height: auto;
    min-height: 0;
  }
  .pop-brands-section .sections-list .flex::-webkit-scrollbar {
    display: none;
  }
  .pop-brands-section .sections-list .flex .item {
    /* % от .flex ок в scroll-x режиме (трек = viewport); в marquee — перебьём cqw */
    flex: 0 0 calc((100% - 10px) / 1.7308);
    width: calc((100% - 10px) / 1.7308) !important;
    min-width: calc((100% - 10px) / 1.7308) !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    align-self: flex-start;
    box-sizing: border-box;
  }
  .pop-brands-section:not(.brands-marquee-active) .sections-list .flex .item:nth-child(n+11) {
    display: none !important;
  }
  .pop-brands-section .sections-list .item .name {
    border-bottom: none;
    padding: 8px 10px;
    box-sizing: border-box;
  }
  .pop-brands-section .sections-list .item .name .brand-logo-slot {
    aspect-ratio: 2 / 1;
    margin-bottom: 0;
    padding: 6px 10px;
    box-sizing: border-box;
  }
  .pop-brands-section .sections-list .item .name .brand-logo-slot img,
  .pop-brands-section .sections-list .item .name .brand-logo-slot img.img-fluid {
    max-width: 94%;
    max-height: 94%;
    object-fit: contain;
    object-position: center;
  }
  .pop-brands-section .loader-wrapper {
    margin-top: 12px;
    display: flex;
    justify-content: center;
  }
  /* «Все бренды»: база компактного pill (= .video-section__all--mob до ×1.15) */
  .pop-brands-section .showmore.wide {
    width: auto;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    border-radius: 4px;
    border: 1.5px solid rgba(140, 0, 20, 0.38);
    color: var(--color-black, #423b38);
    text-decoration: none;
    background: linear-gradient(
      165deg,
      #ffe9da 0%,
      var(--color-orange, #fcd9c2) 42%,
      #f3c4a0 100%
    );
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.65) inset,
      0 2px 8px rgba(66, 59, 56, 0.1);
  }
  .pop-brands-section .showmore.wide:before {
    width: 18px;
    height: 18px;
    margin-right: 6px;
  }
  .pop-brands-section .showmore.wide:hover,
  .pop-brands-section .showmore.wide:focus-visible {
    color: #fff;
    text-decoration: none;
    border-color: var(--color-red, #8c0014);
    background: linear-gradient(
      165deg,
      #a31024 0%,
      var(--color-red, #8c0014) 48%,
      #6a0010 100%
    );
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.14) inset,
      0 0 0 2px rgba(140, 0, 20, 0.1),
      0 4px 12px rgba(140, 0, 20, 0.22);
  }

  /* ------------------------------------------------------------------ */
  /* Бегущая лента брендов до 768 px: своё окно просмотра и сдвиг из custom.js */
  /* Защита от прошлых багов:                                           */
  /*  - НЕ % ширины .item от трека при width:max-content (цикл→wrap→    */
  /*    белая стена). Item = cqw/vw от viewport (container-type).       */
  /*  - обрезка только на узком .brands-marquee; лента в одну строку;  */
  /*    height:auto — клоны в одном ряду, секция/страница не раздуваются*/
  /*  - transform только на .flex; document/body/main не трогаем        */
  /* ------------------------------------------------------------------ */
  .pop-brands-section .brands-marquee {
    position: relative;
    width: 100%;
    box-sizing: border-box;
  }
  .pop-brands-section .brands-marquee.brands-marquee--on {
    overflow: hidden; /* узкий viewport: клип по ширине секции */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    container-type: inline-size;
    container-name: tm-brands-marquee;
    /* высота = один ряд плиток (nowrap); не 100vh / не stretch */
    height: auto;
    max-height: none;
    /* drag: гориз. жест наш; вертикаль страницы — pan-y; страница не едет */
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }
  .pop-brands-section .brands-marquee.brands-marquee--on.is-dragging {
    cursor: grabbing;
  }
  .pop-brands-section .brands-marquee.brands-marquee--on .col-content,
  .pop-brands-section .brands-marquee.brands-marquee--on .sections-list {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
  }
  .pop-brands-section .brands-marquee.brands-marquee--on .sections-list .flex {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* style.css имеет wrap — иначе белая стена */
    align-items: stretch;
    align-content: flex-start;
    gap: 10px;
    /* max-content ок: ширина .item задана cqw, не % от этого трека */
    width: max-content !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 0;
    padding-bottom: 0;
    overflow: visible !important;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior-x: auto;
    will-change: transform;
    /* translate ставит custom.js (rAF); CSS @keyframes не используем */
  }
  .pop-brands-section .brands-marquee.brands-marquee--on .sections-list .flex .item {
    /* 100cqw — ширина .brands-marquee; vw — запасной вариант для браузеров без контейнерных запросов */
    flex: 0 0 calc((100vw - 24px - 10px) / 1.7308) !important;
    flex-basis: calc((100cqw - 10px) / 1.7308) !important;
    width: calc((100vw - 24px - 10px) / 1.7308) !important;
    width: calc((100cqw - 10px) / 1.7308) !important;
    min-width: calc((100vw - 24px - 10px) / 1.7308) !important;
    min-width: calc((100cqw - 10px) / 1.7308) !important;
    max-width: calc((100vw - 24px - 10px) / 1.7308) !important;
    max-width: calc((100cqw - 10px) / 1.7308) !important;
    height: auto !important;
    min-height: 0 !important;
    align-self: flex-start;
    box-sizing: border-box;
  }
  .pop-brands-section .brands-marquee.brands-marquee--on .sections-list .flex .item .name,
  .pop-brands-section .brands-marquee.brands-marquee--on .sections-list .flex .item .name .brand-logo-slot {
    height: auto !important;
    max-height: none;
  }

  /* ------------------------------------------------------------------ */
  /* Доверие (benefits-mob): вертикальный стек 4 карт. на 100% ширины   */
  /* Жёсткий вертикальный gap ≥16px (style.css margin-bottom:9 /       */
  /* ширину в половину ряда перебиваем с !important; отступы — зазор и нижнее поле */
  /* ------------------------------------------------------------------ */
  .benefits-mob {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0;
    padding-right: 0;
  }
  .benefits-mob__track {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    /* gap 0 — вертикальный зазор только через margin-bottom .item
       (работает и если track отсутствует / display не flex) */
    gap: 0 !important;
    row-gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: visible;
    padding-bottom: 0;
  }
  .benefits-mob .item,
  .benefits-mob__track > .item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 12px;
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    /* вертикальный gap ≥16px; перебивает прежний style.css mb:9 / calc(50%-3px) */
    margin-bottom: 16px !important;
    padding: 16px !important;
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box;
    border-radius: 9px;
    background: #FFF; /* было в style.css .benefits-mob .item — база перенесена сюда */
    justify-content: flex-start !important;
    pointer-events: none;
    cursor: default;
    position: relative;
  }
  .benefits-mob .item:last-child,
  .benefits-mob__track > .item:last-child {
    margin-bottom: 0 !important;
  }
  .benefits-mob .item:before {
    display: none !important; /* старый checkmark; иконка из IMG_1 */
  }
  .benefits-mob .item .img {
    flex: 0 0 48px;
    width: 48px !important;
    max-width: 48px !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
  }
  .benefits-mob .item .img img {
    display: block;
    width: 100%;
    height: auto;
  }
  .benefits-mob .item .text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 130%;
  }
  .benefits-mob .item .name {
    font-size: 15px;
    font-weight: 600;
    line-height: 120%;
    margin-bottom: 6px;
  }
  .benefits-mob .item .desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 13px;
    line-height: 130%;
  }
  .benefits-mob .item .desc p {
    margin: 0;
    display: inline;
  }
  .benefits-mob .item a {
    display: none !important;
    pointer-events: none !important;
  }

  /* ------------------------------------------------------------------ */
  /* Акции: максимум 3 карточки                                         */
  /* ------------------------------------------------------------------ */
  .discount-section.blog-list .grid .item:nth-child(n+4) {
    display: none !important;
  }
  /* Здесь карточки стопкой — блок виден от одной акции */
  .discount-section--mobile-only {
    display: block;
  }
  .discount-section.blog-list .grid .item {
    min-width: 100% !important;
    width: 100% !important;
    height: auto;
    min-height: 0;
    margin-bottom: 8px;
  }

  /* ------------------------------------------------------------------ */
  /* Блог: 2 карточки + «Все»                                           */
  /* ------------------------------------------------------------------ */
  .blog-list.blog-main .grid .item:nth-child(n+3) {
    display: none !important;
  }
  .blog-list.blog-main .grid .item {
    min-width: 100% !important;
    width: 100% !important;
    height: auto;
    min-height: 0;
    margin-bottom: 8px;
  }
  .blog-list.blog-main .loader-wrapper.link .showmore {
    width: 100%;
    max-width: 100%;
  }
  /* «больше статей» дубль на мобилке — прячем, оставляем «Перейти в блог» */
  .blog-list.blog-main .screen-mob {
    display: none !important;
  }

  /* ------------------------------------------------------------------ */
  /* Обратная связь / салоны — чуть плотнее                             */
  /* ------------------------------------------------------------------ */
  .main-engage__feedback-title {
    margin-bottom: 12px;
  }
  .salon-section h2 {
    margin-bottom: 12px;
  }
}

/* Лента брендов при уменьшении движения: ручная прокрутка вбок, без самостоятельного движения (скрипт отключается) */
@media (prefers-reduced-motion: reduce) {
  .pop-brands-section .brands-marquee.brands-marquee--on {
    overflow: visible;
  }
  .pop-brands-section .brands-marquee.brands-marquee--on .col-content,
  .pop-brands-section .brands-marquee.brands-marquee--on .sections-list {
    overflow: visible;
  }
  .pop-brands-section .brands-marquee.brands-marquee--on .sections-list .flex {
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    height: auto !important;
    will-change: auto;
  }
}
