/* =========================================================
   Stylus-ch - брендовый слой поверх темплейта Medshop (index-2).
   Разметка секций родная, здесь переменные, типографика, ритм
   и адаптив. Файл подключается последним, после style.css
   и responsive.css темплейта.

   Оглавление
     1. Переменные и базовая типографика
     2. Ритм секций
     3. Шапка: верхняя строка, логотип, меню, поиск, мега-меню
     4. Первый экран: бенто-сетка со слайдером
     5. Преимущества
     6. Каталог: карточки, фильтр
     7. Направления поставок
     8. Поставки для организаций
     9. Подборки в три колонки
    10. Отзывы
    11. О компании
    12. Статьи
    13. Финальный CTA с формой
    14. Подвал
    15. Плавающие элементы, нижняя панель
    16. Бургер-меню и окно поиска
    17. Адаптив: планшет
    18. Адаптив: мобильные
    19. Служебное: reduced-motion, overflow обёртки

   Обходы ловушек темплейта помечены словом «темплейт» в комментарии,
   их не откатывать (см. README, раздел 7).
   ========================================================= */


/* ---------------------------------------------------------
   1. Переменные и базовая типографика
   --------------------------------------------------------- */
:root {
    /* шрифты: Onest - заголовки, Golos Text - текст; --thm-* читает темплейт */
    --thm-font: 'Golos Text', 'Golos Text Fallback A', 'Golos Text Fallback R', sans-serif;
    --thm-font-2: 'Onest', 'Onest Fallback A', 'Onest Fallback R', sans-serif;
    --thm-font-3: 'Onest', 'Onest Fallback A', 'Onest Fallback R', sans-serif;

    /* палитра снята с логотипа клиента */
    --brand-cyan: #01A3D4;
    --brand-cyan-dark: #0A7EA4;   /* логотипный голубой на белом даёт 2.6:1, для текста и кнопок берём темнее */
    --brand-cyan-deep: #076B8C;   /* мелкий текст на подложках --surface-*: 5:1 */
    --brand-red: #DC2B1B;
    --text-muted: #63707C;        /* даты, подписи, плейсхолдеры: 4.6:1 на подложках, 5:1 на белом */

    --thm-primary-color: #0A7EA4;
    --thm-primary-color-rgb: 10, 126, 164;
    --thm-secondary-color: #01A3D4;
    --thm-secondary-color-rgb: 1, 163, 212;

    --thm-body-font-color: #5C6874;
    --thm-body-font-size: 15px;
    --thm-body-line-height: 26px;
    --thm-heading-font-color: #14232E;
    --thm-black: #14232E;
    --thm-black-bg: #14232E;
    --thm-white: #ffffff;
    --thm-gray-bg: #F2F6F9;
    --thm-border-color: #E1E8EE;
    --thm-border-radius: 10px;

    --r-lg: 14px;   /* карточки, плитки, крупные блоки */
    --r-md: 10px;   /* вложенные плашки */
    --r-sm: 8px;    /* кнопки, табы, чипы, поля */

    --stock: #167A45;

    /* две нейтральные подложки вместо цветной мозаики по разделам */
    --surface-1: #F1F5F8;
    --surface-2: #E7EFF4;

    --gap: 24px;
    --sect-pad: 84px;
}

body {
    font-family: var(--thm-font);
    font-size: var(--thm-body-font-size);
    line-height: var(--thm-body-line-height);
    color: var(--thm-body-font-color);
    letter-spacing: -0.002em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--thm-font-2);
    color: var(--thm-heading-font-color);
    letter-spacing: -0.025em;
}

/* цифры цен не должны плясать по ширине */
.products-style2__single-content p,
.products-style3__single-text .price,
.banner-tile__price,
.header-top-phones a { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* единый радиус у всех интерактивных элементов */
.btn-one, .btn-one::after,
.btn-cart,
.btn-solid,
.btn-ghost,
.project-filter li,
.header-search-box .form-group input[type='search'],
.final-cta__form input,
.final-cta__form textarea,
.products-style2__single .text-box,
.featured-style4__single,
.testimonial-style1__single { border-radius: var(--r-sm); }

/* темплейт рисует кнопку через ::before/::after со своим радиусом */
.btn-one, .btn-one::before, .btn-one::after,
.btn-one:hover, .btn-one:hover::after { border-radius: var(--r-sm) !important; }
.btn-cart::before, .btn-cart::after { border-radius: var(--r-sm); }
.project-filter li::before, .project-filter li::after { border-radius: var(--r-sm); }


/* Ширины текста в em, не в ch: ch - ширина нуля текущего шрифта, на подложке до загрузки
   Golos Text она другая, и колонка меняла ширину (сдвиг макета). 1ch Golos Text = 0,62em. */

/* ---------------------------------------------------------
   2. Ритм секций: в темплейте 140px между блоками,
      для плотного B2B-каталога это пустота
   --------------------------------------------------------- */
.banner-style1 { padding-top: 32px; position: relative; z-index: 1; }
.featured-style4 { padding: 56px 0 var(--sect-pad); }
.latest-product-style1 { padding: var(--sect-pad) 0; }
.products-style5 { padding: var(--sect-pad) 0 calc(var(--sect-pad) - 30px); }
.products-style3 { padding: var(--sect-pad) 0 calc(var(--sect-pad) - 6px); }
.testimonial-style1 { padding: var(--sect-pad) 0; }
.about-strip { padding: 0 0 var(--sect-pad); }
.blog-style1 { padding: var(--sect-pad) 0; }
.final-cta { padding: var(--sect-pad) 0; }

.sec-title { padding-bottom: 34px; }
.sec-title h2 { font-size: 32px; font-weight: 600; line-height: 1.15; }
.sec-title--row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.sec-title__link { font-size: 14px; font-weight: 500; color: var(--brand-cyan-deep); white-space: nowrap; } /* 5,5:1 и на серой подложке */
.sec-title__link:hover { color: var(--brand-red); }


/* ---------------------------------------------------------
   3. Шапка
   --------------------------------------------------------- */
.main-header-style1__top--style2 { background-color: var(--thm-black); }
.main-header-style1__top-inner { min-height: 44px; }

/* верхняя строка: один шрифт и один размер у адреса, почты и телефонов */
.header-contact-info--style2 ul li .text h6,
.header-contact-info--style2 ul li .text h6 a,
.header-top-phones a {
    font-family: var(--thm-font);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0;
}
.header-contact-info--style2 ul li .icon span,
.header-top-phones a .icon-phone-call,
.header-top-phones a .fa-whatsapp { font-size: 15px; }

.header-top-phones { display: flex; align-items: center; gap: 22px; }
.header-top-phones a {
    color: #fff;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color .25s ease;
}
.header-top-phones a:hover { color: var(--brand-cyan); }
.header-top-phones a.wa { color: #35C15E; }
.header-top-phones a.wa:hover { color: #fff; }

/* логотип: знак + словесная часть */
.logo-box-style1 .brand-logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-box-style1 .brand-logo img { width: 42px; height: auto; }
.brand-logo__text {
    font-family: var(--thm-font-2);
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    color: var(--thm-black);
    letter-spacing: -0.035em;
}
.brand-logo__text em { font-style: normal; color: var(--brand-cyan); }
.brand-logo__text small {
    display: block;
    font-family: var(--thm-font);
    font-weight: 400;
    font-size: 10.5px;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--text-muted);
    margin-top: 5px;
    max-width: 200px;
}

/* меню */
.main-menu__wrapper, .main-menu__wrapper-inner { position: relative; z-index: 20; } /* мега-меню поверх первого экрана */
.main-menu .main-menu__list>li+li,
.stricky-header .main-menu__list>li+li { margin-left: 26px; }
.main-menu .main-menu__list>li>a,
.stricky-header .main-menu__list>li>a { font-size: 15.5px; font-weight: 500; }
.main-menu .main-menu__list>li>ul>li>a { font-size: 15px; font-weight: 500; }
.header-wishlist-cart-btn { margin-right: 16px; }

/* поиск в шапке: у темплейта поле-пилюля 30px и кнопка под неё,
   с радиусом 8px край кнопки торчал при фокусе */
.header-search-box { width: 250px; }
.header-search-box .form-group input[type='search'] {
    height: 46px;
    font-family: var(--thm-font);
    font-size: 14px;
    padding-left: 18px;
    padding-right: 50px;
    border: 1px solid var(--thm-border-color);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.header-search-box .form-group input[type='search']:focus {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(var(--thm-secondary-color-rgb), .14);
}
.header-search-box .form-group input[type='search']::placeholder { color: var(--text-muted); }
.header-search-box .form-group button {
    top: 1px;
    right: 1px;
    bottom: 1px;
    width: 46px;
    height: auto;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--thm-body-font-color);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.header-search-box .form-group input[type='search']:focus + button,
.header-search-box .form-group button:hover { background-color: var(--thm-primary-color); color: #fff; }

/* мега-меню каталога на родной конструкции темплейта
   (.megamenu-content-box > .container > __inner), у класса .megamenu
   свои left/right: 0 !important */
.megamenu-content-box__inner { border-radius: var(--r-lg); padding: 30px 34px; }
.megamenu__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .9fr);
    gap: 10px 32px;
}
.megamenu__col { display: flex; flex-direction: column; gap: 2px; }
.megamenu__title {
    font-family: var(--thm-font-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--brand-cyan-deep);
    margin-bottom: 10px;
}
.megamenu__col a {
    font-family: var(--thm-font);
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--thm-heading-font-color);
    padding: 4px 0;
    transition: color .2s ease;
}
.megamenu__col a:hover { color: var(--thm-primary-color); }
.megamenu__promo { background: var(--surface-1); border-radius: var(--r-md); padding: 18px 20px; }
.megamenu__promo p { font-size: 13.5px; line-height: 1.5; margin: 0 0 14px; }
.megamenu__promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #13873B; /* как у кнопок WhatsApp с текстом: 4,6:1 с белым */
    color: #fff !important; /* темплейт красит ссылки в мега-меню */
    border-radius: var(--r-sm);
    padding: 10px 16px;
    font-family: var(--thm-font-2);
    font-size: 13.5px;
    font-weight: 600;
}
.megamenu__promo-btn i { font-size: 15px; }
.megamenu__promo-btn:hover { background: #0F7A37; }


/* ---------------------------------------------------------
   4. Первый экран: бенто-сетка со слайдером, как у эталона
   --------------------------------------------------------- */
.banner-style1__inner .row { --bs-gutter-x: var(--gap); align-items: stretch; }
.banner-style1__inner .row > [class*="col-"] { display: flex; }
.banner-style1__inner .row > [class*="col-"] > div { width: 100%; }
.banner-grid__left,
.banner-grid__right { display: flex; flex-direction: column; gap: var(--gap); height: 100%; }
.banner-grid__right .banner-tile { flex: 1 1 0; }
.banner-grid__bottom { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }

/* плитка: кликабельна целиком, под ней размытая подложка из фото */
.banner-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface-1);
    padding: 30px 32px;
    min-height: 200px;
    cursor: pointer;
    transition: box-shadow .3s ease;
}
.banner-tile--alt { background: var(--surface-2); }
.banner-tile:hover { box-shadow: 0 18px 38px rgba(20, 35, 46, .12); }
.banner-tile__content { position: relative; z-index: 2; max-width: 62%; }
.banner-tile__label {
    display: inline-block;
    font-family: var(--thm-font-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-cyan-deep);
    margin-bottom: 8px;
}
.banner-tile__title { font-size: 21px; line-height: 1.2; font-weight: 600; margin: 0 0 8px; transition: color .25s ease; }
.banner-tile:hover .banner-tile__title { color: var(--thm-primary-color); }
.banner-tile__price {
    font-family: var(--thm-font-2);
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-cyan-deep);
}
.banner-tile__img {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 38%;
    max-width: 190px;
    mix-blend-mode: multiply;
}
.banner-tile__img img { width: 100%; height: 150px; object-fit: contain; }
.banner-tile__arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--thm-primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    opacity: 0;
    transform: translateX(-6px);
    transition: all .3s ease;
}
.banner-tile:hover .banner-tile__arrow { opacity: 1; transform: translateX(0); }

.banner-tile--wide { min-height: 232px; padding: 34px 34px; }
.banner-tile--wide .banner-tile__title { font-size: 24px; }
.banner-tile--wide .banner-tile__img { max-width: 230px; }
.banner-tile--wide .banner-tile__img img { height: 180px; }

/* размытая обесцвеченная подложка: фон не должен спорить с товаром,
   background-size вместо scale, чтобы блюр не вылезал за плитку */
.banner-tile__bg, .banner-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: 130% 130%;
    background-position: center;
    filter: blur(30px) grayscale(1) contrast(.85);
    opacity: .22;
    pointer-events: none;
}
.banner-hero__bg { filter: blur(44px) grayscale(1) contrast(.85); opacity: .2; }

/* большой слайдер */
.banner-hero {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface-2);
    min-height: 430px;
    display: block;
    padding: 0;
    flex: 1 1 auto;
}
/* owl вешает transform на .owl-stage (свой stacking context),
   поэтому фон под смешивание держим на самом слайде */
.banner-hero__slide {
    position: relative;
    display: flex !important; /* темплейт: owl ставит display inline-block */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 54px 48px 66px;
    min-height: 430px;
    background: var(--surface-2);
}
.banner-hero__content { position: relative; z-index: 2; max-width: 46%; }
.banner-hero__label {
    display: block;
    font-family: var(--thm-font-2);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-cyan-deep);
    margin-bottom: 12px;
}
.banner-hero__title { font-size: 38px; line-height: 1.1; font-weight: 700; margin-bottom: 14px; }
.banner-hero__title b { color: var(--thm-primary-color); font-weight: 700; }
.banner-hero__text { max-width: 380px; margin-bottom: 24px; }
.banner-hero__img {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 50%;
    display: flex;
    justify-content: center;
    mix-blend-mode: multiply;
}
.banner-hero__img img { max-height: 320px; width: auto; max-width: 100%; object-fit: contain; }
.banner-hero .owl-dots {
    position: absolute;
    left: 48px;
    bottom: 28px;
    margin: 0 !important; /* темплейт: margin-top у .owl-dots */
    display: flex;
    gap: 8px;
}
.banner-hero .owl-dots .owl-dot span {
    width: 9px; height: 9px; margin: 0; border-radius: 50%;
    background: rgba(20, 35, 46, 0.2);
    transition: all .3s ease;
}
.banner-hero .owl-dots .owl-dot.active span { width: 28px; border-radius: 5px; background: var(--thm-primary-color); }


/* ---------------------------------------------------------
   5. Преимущества
   --------------------------------------------------------- */
.featured-style4 .row { --bs-gutter-y: var(--gap); }
.featured-style4__single {
    border: 1px solid var(--thm-border-color);
    padding: 22px 22px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.featured-style4__single:hover {
    border-color: rgba(var(--thm-secondary-color-rgb), .5);
    box-shadow: 0 12px 28px rgba(20, 35, 46, .07);
}
.featured-style4__single .icon-box { flex: 0 0 auto; margin: 0; }
.featured-style4__single .text-box h3 { font-size: 16px; font-weight: 600; line-height: 1.25; margin-bottom: 4px; }
.featured-style4__single .text-box p { font-size: 13.5px; line-height: 1.4; }


/* ---------------------------------------------------------
   6. Каталог: карточки одной высоты, кнопка прижата к низу
   --------------------------------------------------------- */
.latest-product-style1 .row.filter-layout { --bs-gutter-y: var(--gap); }
.project-filter li { overflow: hidden; }
.project-filter li .filter-text {
    font-family: var(--thm-font-2);
    font-weight: 500;
    font-size: 14px;
    text-transform: none;
    border-radius: var(--r-sm);
}

.products-style2__single--style3 {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #fff;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.products-style2__single--style3:hover { border-color: var(--brand-cyan); }
.products-style2__single-img .inner { background: #fff; }
.products-style2__single-img .inner img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 16px;
    mix-blend-mode: multiply;
}
.products-style2__single-img .overlay-link a {
    overflow: hidden;
    background: rgba(20, 35, 46, .82);
    color: #fff;
    border-radius: var(--r-sm);
    transition: background .25s ease;
}
.products-style2__single-img .overlay-link a:hover { background: var(--thm-primary-color); color: #fff; }
.products-style2__single .text-box {
    background-color: var(--brand-red);
    font-family: var(--thm-font-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    padding: 4px 10px;
    line-height: 1.4;
}
.products-style2__single-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 16px 18px;
    text-align: left;
}
.products-style2__single-content h3 {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
    margin-bottom: 10px;
    min-height: 60px;
}
.products-style2__single-content h3 a { color: var(--thm-heading-font-color); }
.products-style2__single-content h3 a:hover { color: var(--thm-primary-color); }
.products-style2__single-content p {
    font-family: var(--thm-font-2);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--thm-primary-color);
    margin: 0 0 6px;
}
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.price-row p { margin: 0; }
.stock-label { display: inline-block; font-size: 12.5px; font-weight: 500; color: var(--stock); }
.products-style2__single-content .btn-box { margin-top: auto; }
.products-style2__single-content .btn-box .btn-cart,
.btn-cart {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px 16px;
    font-family: var(--thm-font-2);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff !important; /* темплейт красит a:hover внутри карточки */
    background: var(--thm-primary-color);
    transition: background .25s ease;
}
.btn-cart:hover { background: var(--thm-black); }


/* ---------------------------------------------------------
   7. Направления поставок: один тон на всех плитках,
      акцент только на наведении
   --------------------------------------------------------- */
.cat-grid { --bs-gutter-y: var(--gap); }
.cat-card {
    position: relative;
    display: block;
    height: 100%;
    padding: 22px 22px 20px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface-2);
    transition: background .3s ease, box-shadow .3s ease;
}
.cat-card:hover { background: #fff; box-shadow: 0 18px 36px rgba(20, 35, 46, .12); }
.cat-card__img { height: 128px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cat-card__img img { max-height: 128px; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat-card__text h3 { font-size: 16.5px; line-height: 1.25; font-weight: 600; margin-bottom: 5px; }
.cat-card__text p { font-size: 13px; line-height: 1.45; color: var(--thm-body-font-color); margin: 0; }
.cat-card__arrow {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--thm-primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    opacity: 0;
    transform: translateX(-6px);
    transition: all .3s ease;
}
.cat-card:hover .cat-card__arrow { opacity: 1; transform: translateX(0); }


/* ---------------------------------------------------------
   8. Поставки для организаций: фото на фоне, три шага
   --------------------------------------------------------- */
.slogan-style1__inner {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, #12303F 0%, #0A7EA4 100%);
    padding: 46px 48px;
}
.slogan-style1__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../images/stylus/bg-wholesale.webp") center right / cover no-repeat;
}
.slogan-style1__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(14,43,57,.86) 0%, rgba(14,43,57,.62) 46%, rgba(10,126,164,.42) 100%);
}
.wholesale {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 44px;
    align-items: center;
}
.wholesale__label {
    display: inline-block;
    font-family: var(--thm-font-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-cyan);
    margin-bottom: 12px;
}
.wholesale__left h2 { color: #fff; font-size: 30px; line-height: 1.18; font-weight: 600; }
.wholesale__left p { color: rgba(255,255,255,.78); margin-top: 14px; max-width: 440px; }
.wholesale__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.wholesale__right { display: grid; gap: 12px; }
.wholesale__step {
    position: relative;
    background: rgba(14,43,57,.55); /* фото под шагами светлое, текст держится на тёмной плашке */
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--r-md);
    padding: 16px 18px 16px 62px;
}
.wholesale__num {
    position: absolute;
    left: 18px;
    top: 16px;
    font-family: var(--thm-font-2);
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,.35);
}
.wholesale__step h3 { color: #fff; font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.wholesale__step p { color: rgba(255,255,255,.7); font-size: 13.5px; line-height: 1.45; margin: 0; }

/* кнопки на тёмных подложках */
.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--brand-red);
    color: #fff !important; /* темплейт красит a:hover */
    font-family: var(--thm-font-2);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    padding: 14px 24px;
    border: 0;
    transition: background .25s ease;
}
.btn-solid:hover { background: #B71F11; }
.btn-wa { background: #13873B; } /* зелёный WhatsApp, затемнён до 4,6:1 с белым текстом */
.btn-wa:hover { background: #0F7A37; }
.btn-solid--wide { width: 100%; justify-content: center; cursor: pointer; }
.btn-ghost {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.32);
    color: #fff;
    font-family: var(--thm-font-2);
    font-size: 14.5px;
    font-weight: 600;
    padding: 14px 22px;
    transition: all .25s ease;
}
.btn-ghost:hover { background: #fff; color: var(--thm-black) !important; }


/* ---------------------------------------------------------
   9. Подборки в три колонки
   --------------------------------------------------------- */
.products-col {
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-lg);
    padding: 28px 28px 18px;
    height: 100%;
    background: #fff;
}
.products-col__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--thm-border-color);
}
.products-col__head h3 { font-size: 23px; font-weight: 600; margin: 0; }
.products-col__all { font-size: 13.5px; font-weight: 500; color: var(--thm-primary-color); white-space: nowrap; }
.products-col__all:hover { color: var(--brand-red); }

.products-style3__single {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    padding: 16px 14px;
    margin: 0 -14px 4px;
    transition: background .25s ease;
}
.products-style3__single:hover {
    background: #fff;
    border-color: var(--brand-cyan);
    box-shadow: 0 12px 26px rgba(20, 35, 46, .08);
}
.products-style3__single-img {
    flex: 0 0 auto;
    width: 108px;
    height: 108px;
    background: var(--surface-1);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease;
}
.products-style3__single:hover .products-style3__single-img { background: var(--surface-2); }
.products-style3__single-img img { width: 92px; height: 92px; object-fit: contain; mix-blend-mode: multiply; }
.products-style3__single-text { flex: 1 1 auto; }
.products-style3__single-text h4 { font-size: 16px; line-height: 1.3; font-weight: 500; margin-bottom: 7px; }
.products-style3__single-text .price {
    font-family: var(--thm-font-2);
    font-size: 19px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -0.025em;
    color: var(--thm-primary-color);
    margin: 0;
}
.row-note { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }


/* ---------------------------------------------------------
   10. Отзывы
   --------------------------------------------------------- */
.testimonial-style1__single {
    border: 1px solid var(--thm-border-color);
    padding: 28px 30px;
    box-shadow: none;
}
.testimonial-style1__single .title h3 { font-size: 16px; font-weight: 600; }
.testimonial-style1__single .title span { font-size: 12.5px; color: var(--text-muted); }
.testimonial-style1__single .text-box p { font-size: 15px; line-height: 1.55; }
.testimonial-style1__single .icon-box span { color: rgba(var(--thm-secondary-color-rgb), .18); }


/* ---------------------------------------------------------
   11. О компании
   --------------------------------------------------------- */
.about-strip__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
    padding: 44px 48px;
    background: var(--surface-1);
    border-radius: var(--r-lg);
}
.about-strip__logo { width: 58px; height: auto; margin-bottom: 20px; }
.about-strip__left h1,
.about-strip__left h2 { font-size: 27px; line-height: 1.22; font-weight: 600; }
.about-strip__left h1 b,
.about-strip__left h2 b { color: var(--brand-cyan-deep); font-weight: 600; }
.about-strip__right p { font-size: 15px; line-height: 1.6; }
.about-strip__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 26px; }
.about-strip__fact { background: #fff; border-radius: var(--r-md); padding: 16px 18px 18px; }
.about-strip__fact b {
    display: block;
    font-family: var(--thm-font-2);
    font-size: 15px;
    color: var(--thm-heading-font-color);
    margin-bottom: 6px;
}
.about-strip__fact span { font-size: 13.5px; line-height: 1.5; color: var(--thm-body-font-color); }
.btn-outline {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--thm-heading-font-color);
    border-radius: var(--r-sm);
    padding: 13px 24px;
    font-family: var(--thm-font-2);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--thm-heading-font-color);
    transition: all .25s ease;
}
.btn-outline:hover { background: var(--thm-heading-font-color); color: #fff; }


/* ---------------------------------------------------------
   12. Статьи: карточка кликабельна целиком
   --------------------------------------------------------- */
.blog-style1 .row { --bs-gutter-y: var(--gap); }
.blog-style1__single {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: none;
    transition: border-color .3s ease;
}
.blog-style1__single:hover { box-shadow: none; border-color: var(--brand-cyan); }
.blog-style1__single-img { background: var(--surface-2); }
.blog-style1__single:hover .blog-style1__single-img img { transform: none; } /* темплейт увеличивает фото на наведении */
.blog-style1__single-img img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    padding: 22px;
    mix-blend-mode: multiply;
}
.blog-style1__single-content { display: flex; flex-direction: column; flex: 1 1 auto; padding: 22px 24px 26px; }
.blog-style1__single-content .meta-info li,
.blog-style1__single-content .meta-info li a { font-size: 12.5px; color: var(--text-muted); }
.blog-style1__single-content h2,
.blog-style1__single-content h3 { font-size: 17px; line-height: 1.3; font-weight: 600; margin: 8px 0 10px; transition: color .25s ease; }
.blog-style1__single:hover .blog-style1__single-content h2,
.blog-style1__single:hover .blog-style1__single-content h3 { color: var(--thm-primary-color); }
.blog-style1__single-content p { font-size: 14px; line-height: 1.5; }
.blog-more {
    margin-top: auto;
    padding-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--thm-font-2);
    font-size: 14px;
    font-weight: 600;
    color: var(--thm-primary-color);
    transition: color .25s ease;
}
.blog-more i { font-size: 11px; }
.blog-style1__single:hover .blog-more { color: var(--brand-red); }
.blog-style1__btn { margin-top: 36px; }


/* ---------------------------------------------------------
   13. Финальный CTA с формой заявки
   --------------------------------------------------------- */
.final-cta__inner {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: center;
    background: var(--thm-black);
    border-radius: var(--r-lg);
    padding: 46px 48px;
}
.final-cta__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(100deg, rgba(16,29,38,.84) 0%, rgba(16,29,38,.6) 48%, rgba(16,29,38,.36) 100%),
        url("../images/stylus/bg-cta.webp");
    background-size: cover, cover;
    background-position: center, center right;
    background-repeat: no-repeat, no-repeat;
}
.final-cta__text, .final-cta__form { position: relative; z-index: 2; }
.final-cta__label {
    display: inline-block;
    font-family: var(--thm-font-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-cyan);
    margin-bottom: 12px;
}
.final-cta__text h2 { color: #fff; font-size: 30px; line-height: 1.18; font-weight: 600; }
.final-cta__text p { color: rgba(255,255,255,.76); margin-top: 14px; max-width: 470px; }
.final-cta__contacts { display: grid; gap: 12px; margin-top: 28px; max-width: 420px; }
.final-cta__contact {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-md);
    padding: 14px 18px;
    transition: all .25s ease;
}
.final-cta__contact:hover { background: rgba(255,255,255,.13); border-color: var(--brand-cyan); }
.final-cta__contact > span:first-child,
.final-cta__contact > i { font-size: 20px; color: var(--brand-cyan); }
.final-cta__contact b { display: block; font-family: var(--thm-font-2); font-size: 15.5px; color: #fff; }
.final-cta__contact small { font-size: 12.5px; color: rgba(255,255,255,.62); }

.final-cta__form { background: #fff; border-radius: var(--r-lg); padding: 30px 30px 28px; }
.final-cta__form h2,
.final-cta__form h3 { font-size: 19px; font-weight: 600; margin-bottom: 16px; }
.final-cta__sub { font-size: 13.5px; color: var(--text-muted); margin: -10px 0 18px; }
.final-cta__form .form-row { margin-bottom: 12px; }
.final-cta__form input,
.final-cta__form textarea {
    width: 100%;
    border: 1px solid var(--thm-border-color);
    background: #fff;
    padding: 13px 16px;
    font-family: var(--thm-font);
    font-size: 14.5px;
    color: var(--thm-heading-font-color);
    outline: none;
    transition: border-color .25s ease;
    resize: none;
}
.final-cta__form input:focus,
.final-cta__form textarea:focus { border-color: var(--brand-cyan); }
.final-cta__note { font-size: 12px; color: var(--text-muted); margin-top: 12px; text-align: center; }


/* ---------------------------------------------------------
   14. Подвал
   --------------------------------------------------------- */
.footer-style1 { background-color: #101D26; }

/* дежурная строка контактов над колонками */
.footer-cta { border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 26px 0; }
.footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-cta__text h3 { color: #fff; font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.footer-cta__text p { color: #9FB0BC; font-size: 14px; margin: 0; }
.footer-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; flex: 0 0 auto; }
/* на десктопе текст и кнопки в один ряд: текст ужимается, кнопки нет */
@media only screen and (min-width: 992px) {
    .footer-cta__inner { flex-wrap: nowrap; }
    .footer-cta__text { flex: 1 1 auto; min-width: 0; max-width: 720px; }
}
.footer-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: var(--r-sm);
    padding: 12px 22px;
    font-family: var(--thm-font-2);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    transition: all .25s ease;
}
.footer-cta__btn--call { background: var(--thm-primary-color); color: #fff; }
.footer-cta__btn--call:hover { background: #fff; color: var(--thm-black); }
.footer-cta__btn--wa { background: #13873B; color: #fff; }
.footer-cta__btn--wa:hover { background: #0F7A37; color: #fff; }

/* колонки */
.footer-main { padding: 60px 0 38px; }
.footer-main .row { --bs-gutter-y: 34px; }
.single-footer-widget.mt70 { margin-top: 0; }
/* темплейт: под заголовком колонки полоска 70×2px (.title::before),
   у .footer-widget-links padding-top 38px и у .title ещё 15px -
   между подписью и ссылками получался провал */
.single-footer-widget .title { padding-bottom: 0; }
.single-footer-widget .title::before,
.single-footer-widget .title::after { display: none; }
.single-footer-widget .footer-widget-links { padding-top: 0; }
.single-footer-widget .title h2 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
    padding-bottom: 0;
}
.footer-widget-links ul li { margin-bottom: 2px; }
.footer-widget-links ul li a {
    font-size: 14px;
    line-height: 1.55;
    color: #9FB0BC;
    padding-left: 0;
    transition: color .25s ease;
}
.footer-widget-links ul li a::before { display: none; }
.footer-widget-links ul li a:hover { color: var(--brand-cyan); }

/* колонка компании */
.footer-logo-style1 .brand-logo { display: inline-flex; align-items: center; gap: 11px; }
.footer-logo-style1 .brand-logo img { width: 40px; }
.footer-logo-style1 .brand-logo__text { color: #fff; }
.our-company-info .text p { font-size: 13.5px; line-height: 1.55; color: #9FB0BC; margin-top: 16px; max-width: 320px; }
.footer-contact-info-style1 { margin-top: 20px; }
.footer-contact-info-style1 ul li { margin-bottom: 12px; align-items: flex-start; }
.footer-contact-info-style1 ul li .icon-box { flex: 0 0 auto; }
.footer-contact-info-style1 ul li .icon-box span { color: var(--brand-cyan); font-size: 16px; }
.footer-contact-info-style1 ul li .text-box p,
.footer-contact-info-style1 ul li .text-box a { font-size: 14px; line-height: 1.5; color: #C7D3DC; }
.footer-contact-info-style1 ul li .text-box a:hover { color: var(--brand-cyan); }

/* схема проезда: подпись сверху, плашки карт под ней */
.our-company-info .social-links--maps { display: block; }
/* специфичность выше правила темплейта для заголовков в подвале */
.our-company-info .social-links--maps .title-box h3 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    color: #9FB0BC;
    margin-bottom: 10px;
    white-space: nowrap;
}
/* темплейт: у списка margin-left 15px, из-за него 2ГИС не совпадал с подписью */
.social-links ul.footer-maps { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 0; padding-left: 0; }
.social-links ul.footer-maps li { margin: 0; padding: 0; }
.social-links ul.footer-maps li a {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .04);
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    color: #C7D3DC;
    white-space: nowrap;
    transition: all .25s ease;
}
.social-links ul.footer-maps li a::before,
.social-links ul.footer-maps li a::after { display: none; }
.social-links ul.footer-maps li a img { width: 16px; height: 16px; flex: 0 0 16px; object-fit: contain; border-radius: 3px; }
.social-links ul.footer-maps li a:hover { background: var(--thm-primary-color); border-color: var(--thm-primary-color); color: #fff; }

/* нижняя строка: воздух вместо разделителя */
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 0; }
.footer-bottom .bottom-inner { padding: 14px 0 16px; }
.copyright-text p, .copyright-text p a { font-size: 13px; color: #8394A1; }
.footer-bottom__menu ul li { padding-left: 0; padding-right: 24px; }
.footer-bottom__menu ul li:last-child { padding-right: 0; }
.footer-bottom__menu ul li::before { display: none; }
.footer-bottom__menu ul li a { font-size: 13px; color: #8394A1; }
.footer-bottom__menu ul li a:hover { color: var(--brand-cyan); }


/* ---------------------------------------------------------
   15. Плавающие элементы: WhatsApp слева, «наверх» с кольцом
       прогресса справа, нижняя панель на мобильных
   --------------------------------------------------------- */
.wa-float {
    position: fixed;
    left: 26px;
    bottom: 28px;
    z-index: 99;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .25s ease, visibility .25s ease;
}
.wa-float:hover { color: #fff; background: #1FB356; }
.wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    opacity: .5;
    animation: waPulse 2.4s ease-out infinite;
    z-index: -1;
}
@keyframes waPulse {
    0% { transform: scale(1); opacity: .5; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}
/* прячется у подвала, иначе перекрывает копирайт (stylus.js) */
.wa-float.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* темплейт: у контейнера rotate(90deg), fixed внутри него считается
   от повёрнутого предка и кнопка уезжает за экран */
.scroll-to-top { position: static !important; transform: none !important; }
.scroll-to-top > div { position: static !important; transform: none !important; }
.scroll-to-top .scroll-bar, .scroll-to-top .scroll-bar-text { display: none; }
.scroll-to-top .scroll-top-inner {
    position: fixed;
    right: 26px;
    bottom: 28px;
    z-index: 99;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    /* кольцо прогресса прокрутки: --scroll-progress пишет stylus.js */
    background: conic-gradient(var(--thm-primary-color) calc(var(--scroll-progress, 0) * 1%), rgba(20, 35, 46, .14) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.scroll-to-top .scroll-top-inner.visible { opacity: 1; visibility: visible; transform: translateY(0); }
/* внутренний круг */
.scroll-to-top .scroll-top-inner::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(20, 35, 46, .16);
    transition: background .25s ease;
}
/* стрелка - та же, что на плитках и карточках направлений, повёрнута вверх */
.scroll-to-top .scroll-top-inner::after {
    content: "\e90c";
    font-family: 'icomoon';
    font-size: 15px;
    line-height: 1;
    color: var(--thm-primary-color);
    position: relative;
    z-index: 2;
    transform: rotate(-90deg);
    transition: transform .25s ease, color .25s ease;
}
.scroll-to-top .scroll-top-inner:hover::before { background: var(--thm-primary-color); }
.scroll-to-top .scroll-top-inner:hover::after { color: #fff; transform: rotate(-90deg) translateX(2px); }

.mobile-bar { display: none; }
.mobile-search-btn { display: none; }
.swipe-hint { display: none; }


/* ---------------------------------------------------------
   16. Бургер-меню и окно поиска
   --------------------------------------------------------- */
.mobile-nav__content { padding: 26px 0 30px; }
.mobile-nav__content .logo-box { padding: 0 20px; margin-bottom: 22px; }
.mobile-nav__content .brand-logo { display: inline-flex; align-items: center; gap: 10px; }
.mobile-nav__content .brand-logo img { width: 38px; }
.mobile-nav__content .brand-logo__text { color: #fff; }
.mobile-nav__close {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    transition: background .25s ease;
}
.mobile-nav__close:hover { background: var(--brand-red); }
/* темплейт: класс .mobile-nav__toggler висит и на кнопке, и на подложке
   затемнения, размеры кнопки задаём только для .main-menu-box > a (п.17) */
.mobile-nav__overlay.mobile-nav__toggler {
    width: auto !important;
    height: auto !important;
    display: block !important;
    border-radius: 0 !important;
}

.mobile-nav-search-box { padding: 0 20px; margin-bottom: 20px; }
.mobile-nav-search-box .search-form { position: relative; border-radius: var(--r-sm); overflow: hidden; }
.mobile-nav-search-box input {
    height: 46px;
    padding: 0 52px 0 16px;
    font-family: var(--thm-font);
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--r-sm) !important; /* темплейт: свой радиус с !important */
    background: #fff;
    color: var(--thm-heading-font-color);
}
.mobile-nav-search-box button {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 var(--r-sm) var(--r-sm) 0 !important;
    background: var(--thm-primary-color);
    color: #fff;
}

.mobile-nav__content .main-menu__list { padding: 0 20px; }
.mobile-nav__content .main-menu__list > li > a { font-family: var(--thm-font-2); font-size: 15.5px; }
.mobile-nav__content .main-menu__list li a button { border-radius: var(--r-sm); }
.mobile-nav__contact { padding: 0 20px; }

/* мега-меню внутри бургера: одна колонка, без карточки-обёртки */
.mobile-nav__content .megamenu-content-box,
.mobile-nav__content .megamenu-content-box > .container { padding: 0 !important; max-width: none !important; }
.mobile-nav__content .megamenu-content-box__inner {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 6px 0 10px !important;
    border-radius: 0 !important;
}
.mobile-nav__content .megamenu__grid { display: block; }
.mobile-nav__content .megamenu__col { margin-bottom: 14px; }
.mobile-nav__content .megamenu__title { display: block; font-size: 11px; color: var(--brand-cyan); margin-bottom: 6px; }
.mobile-nav__content .megamenu__col a {
    display: block;
    font-size: 14.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .82);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.mobile-nav__content .megamenu__col a:hover { color: var(--brand-cyan); }
.mobile-nav__content .megamenu__promo { background: rgba(255, 255, 255, .07); border-radius: var(--r-md); padding: 14px 16px; }
.mobile-nav__content .megamenu__promo p { color: rgba(255, 255, 255, .7); font-size: 13px; }
.mobile-nav__content .megamenu__promo-btn { width: 100%; justify-content: center; }

/* окно поиска: плавное появление. В темплейте transition висит только
   на .active, закрытие шло рывком и вместе с фоном ехала плашка */
.search-popup {
    transform: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s ease, visibility .26s ease;
}
.search-popup.active { opacity: 1; visibility: visible; }
.search-popup__overlay { background: rgba(16, 29, 38, .72); backdrop-filter: blur(3px); }
.search-popup__content {
    position: relative;
    width: 100%;
    max-width: 620px;
    background: #fff;
    border-radius: var(--r-lg);
    padding: 30px 30px 26px;
    box-shadow: 0 30px 70px rgba(16, 29, 38, .3);
    opacity: 0;
    transform: translateY(-16px) scale(.98);
    transition: opacity .3s cubic-bezier(.2, .7, .3, 1) .04s,
                transform .3s cubic-bezier(.2, .7, .3, 1) .04s;
}
.search-popup.active .search-popup__content { opacity: 1; transform: translateY(0) scale(1); }
.search-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: var(--r-sm);
    background: var(--surface-1);
    color: var(--thm-heading-font-color);
    font-size: 15px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}
.search-popup__close:hover { background: var(--brand-red); color: #fff; }
.search-popup__label {
    display: block;
    font-family: var(--thm-font-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-cyan-dark);
    margin-bottom: 14px;
}
.search-popup__content form { position: relative; margin: 0; }
/* селектор той же специфичности, что у темплейта (form input[type="text"]) */
.search-popup__content form input[type="text"] {
    width: 100%;
    height: 56px;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    background: #fff;
    padding: 0 66px 0 18px;
    font-family: var(--thm-font);
    font-size: 15.5px;
    color: var(--thm-heading-font-color);
    text-align: left;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.search-popup__content form input[type="text"]:focus {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(var(--thm-secondary-color-rgb), .14);
}
.search-popup__content form input[type="text"]::placeholder { color: var(--text-muted); }
.search-popup__content form button.thm-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: auto;
    width: 52px;
    height: 46px;
    border: 0;
    border-radius: var(--r-sm);
    background: var(--thm-primary-color);
    color: #fff;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .25s ease;
}
.search-popup__content form button.thm-btn i { font-size: 16px; line-height: 1; }
.search-popup__content form button.thm-btn:hover { background: var(--thm-black); }
.search-popup__hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.search-popup__hints span { font-size: 13px; color: var(--text-muted); margin-right: 2px; }
.search-popup__hints a {
    font-size: 13px;
    color: var(--thm-heading-font-color);
    background: var(--surface-1);
    border-radius: 20px;
    padding: 7px 14px;
    transition: all .25s ease;
}
.search-popup__hints a:hover { background: var(--thm-primary-color); color: #fff; }


/* ---------------------------------------------------------
   17. Адаптив: планшет
   --------------------------------------------------------- */
@media only screen and (max-width: 1199px) {
    :root { --sect-pad: 64px; }
    .brand-logo__text small { display: none; }
    .banner-hero { min-height: 380px; }
    .banner-hero__slide { min-height: 380px; padding: 44px 36px 58px; }
    .banner-hero__title { font-size: 30px; }
}


@media only screen and (max-width: 991px) {
    .wholesale { grid-template-columns: 1fr; gap: 28px; }
    .final-cta__inner { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
    .about-strip__inner { grid-template-columns: 1fr; gap: 28px; padding: 30px 26px; }

    /* мобильная шапка: липнет сам header, у .main-menu родитель высотой
       63px и в его границах sticky заканчивается сразу */
    header.main-header-style1 {
        position: sticky;
        top: 0;
        z-index: 90;
        background: #fff;
        transition: box-shadow .25s ease;
    }
    header.main-header-style1.is-stuck { box-shadow: 0 6px 20px rgba(20, 35, 46, .1); }
    .main-header-style1 .main-menu { padding-top: 10px; background: #fff; }
    .main-menu__wrapper-inner { padding-bottom: 4px; }
    .main-menu-style1__middle { margin-left: auto; }

    /* без наведения стрелки перехода видны сразу */
    .banner-tile__arrow, .cat-card__arrow { opacity: 1; transform: none; }

    /* кнопки поиска и бургера в строку; темплейт: у .main-menu-box float и block */
    .main-menu-style1__middle .main-menu-box {
        display: flex;
        align-items: center;
        gap: 6px;
        width: auto;
        float: none;
        margin-left: auto;
    }
    .mobile-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: var(--r-sm);
        font-size: 17px;
        color: var(--thm-heading-font-color);
        transition: background .25s ease, color .25s ease;
    }
    .mobile-search-btn:hover,
    .mobile-search-btn:active { background: var(--surface-1); color: var(--thm-primary-color); }
    .main-menu .main-menu-box > a.mobile-nav__toggler {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        margin: 0;
        border-radius: var(--r-sm);
        font-size: 19px;
    }
}


@media only screen and (min-width: 768px) and (max-width: 1199px) {
    /* правая колонка плиток ложится в ряд */
    .banner-grid__right { flex-direction: row; gap: var(--gap); }
    .banner-grid__right .banner-tile { flex: 1 1 0; min-height: 176px; }
    .banner-tile__content { max-width: 100%; }
    .banner-tile__img { max-width: 108px; }
    .banner-tile__img img { height: 96px; }
    .cat-grid > li { width: 50%; }
    .products-style3 .col-md-6 + .col-md-6 { margin-top: 0; }
    .products-style3 .row { --bs-gutter-y: var(--gap); }
    .final-cta__inner, .about-strip__inner { padding: 34px 32px; }
    .megamenu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    /* узкий планшет: плитки не должны сжиматься в столбик текста */
    .banner-grid__right { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
    .banner-grid__right .banner-tile:last-child { grid-column: span 2; }
    .banner-tile { min-height: 150px; padding: 20px 22px; }
    .banner-tile__title, .banner-tile--wide .banner-tile__title { font-size: 17px; }
    .banner-tile__label { font-size: 11px; }
    .banner-tile__price { font-size: 15px; }
    .banner-tile__img { max-width: 96px; }
    .banner-tile__img img { height: 86px; }
    .banner-hero__title { font-size: 27px; }
    .banner-hero__content { max-width: 55%; }
}


/* ---------------------------------------------------------
   18. Адаптив: мобильные. Карусели вместо длинных колонок
   --------------------------------------------------------- */
@media only screen and (max-width: 767px) {
    :root { --sect-pad: 48px; --gap: 14px; }
    body { padding-bottom: 62px; } /* место под нижнюю панель */

    /* шапка и секции по одной контентной ширине. Темплейт задаёт
       паддинги контейнера шапки и первого экрана в responsive.css
       разными селекторами, перебить их без !important не выходит */
    .container,
    .banner-style1 .container,
    .main-menu .container,
    .main-header-style1__top .container { padding-left: 16px !important; padding-right: 16px !important; }
    .main-menu__wrapper-inner { padding-top: 0; padding-left: 0; padding-right: 0; }

    .sec-title { padding-bottom: 20px; text-align: left; }
    .sec-title h2 { font-size: 24px; }
    .sec-title--row { flex-direction: column; align-items: flex-start; gap: 6px; }

    /* первый экран */
    .banner-style1 { padding-top: 16px; }
    .banner-hero, .banner-hero__slide { min-height: 0; }
    .banner-hero__slide {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding: 24px 20px 46px;
        gap: 4px;
    }
    .banner-hero__content { max-width: 100%; }
    .banner-hero__title { font-size: 25px; }
    .banner-hero__text { font-size: 14px; margin-bottom: 18px; }
    .banner-hero__img { width: 100%; justify-content: flex-start; }
    .banner-hero__img img { max-height: 180px; }
    .banner-hero .owl-dots { left: 20px; bottom: 18px; }

    .banner-grid__right { flex-direction: column; height: auto; margin-top: var(--gap); } /* height:100% + margin резали последнюю плитку */
    .banner-tile__arrow { width: 26px; height: 26px; right: 14px; bottom: 14px; font-size: 10px; }
    .blog-style1__btn { margin-top: 22px; }
    .banner-grid__bottom { grid-template-columns: 1fr; }
    .banner-tile, .banner-tile--wide { min-height: 128px; padding: 18px 20px; }
    .banner-tile__content { max-width: 58%; }
    .banner-tile__title, .banner-tile--wide .banner-tile__title { font-size: 17px; }
    .banner-tile__img, .banner-tile--wide .banner-tile__img { width: 40%; max-width: 132px; }
    .banner-tile__img img, .banner-tile--wide .banner-tile__img img { height: 96px; }

    /* горизонтальные ленты со snap вместо простыней карточек */
    .featured-style4 .row,
    .latest-product-style1 .row.filter-layout,
    .blog-style1 .row,
    .cat-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-left: -16px;
        margin-right: -16px;
        padding: 2px 16px 12px;
        gap: var(--gap);
        --bs-gutter-x: 0;
    }
    .featured-style4 .row::-webkit-scrollbar,
    .latest-product-style1 .row.filter-layout::-webkit-scrollbar,
    .blog-style1 .row::-webkit-scrollbar,
    .cat-grid::-webkit-scrollbar { display: none; }
    /* последняя карточка не должна прилипать к краю */
    .featured-style4 .row::after,
    .latest-product-style1 .row.filter-layout::after,
    .blog-style1 .row::after,
    .cat-grid::after { content: ""; flex: 0 0 2px; }
    .featured-style4 .row > div,
    .latest-product-style1 .row.filter-layout > div,
    .blog-style1 .row > div,
    .cat-grid > li {
        flex: 0 0 auto;
        width: 74%;
        max-width: 300px;
        scroll-snap-align: start;
        padding: 0;
    }
    .featured-style4 .row > div { width: 68%; }

    /* подсказка «листается» под лентой */
    .swipe-hint {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 12.5px;
        color: var(--text-muted);
        margin: 8px 0 0;
    }
    .swipe-hint i { font-size: 12px; color: var(--brand-cyan); animation: swipeNudge 1.8s ease-in-out infinite; }
    @keyframes swipeNudge {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(5px); }
    }

    /* каталог: isotope не должен абсолютно позиционировать ленту (stylus.js
       снимает его на мобильных, здесь страховка) */
    .latest-product-style1 .row.filter-layout { height: auto !important; padding-top: 0; margin-top: 0; --bs-gutter-y: 0; }
    .latest-product-style1 .row.filter-layout > div {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        padding-top: 0;
        margin-top: 0;
    }
    /* фильтры: прокручиваемые чипы, воздух над табами больше, под ними меньше */
    .latest-product-style1__top { display: block; margin-bottom: 18px; }
    .latest-product-style1__top .sec-title { padding-bottom: 0; }
    .latest-product-style1 .project-menu-box { margin-top: 26px; margin-bottom: 0; }
    .project-filter {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        margin: 0 -16px;
        padding: 0 16px;
        scrollbar-width: none;
    }
    .project-filter::-webkit-scrollbar { display: none; }
    .project-filter li { flex: 0 0 auto; margin: 0 !important; } /* темплейт: margin-right через !important */

    /* направления */
    .cat-card__img { height: 100px; }
    .cat-card__img img { max-height: 100px; }

    /* опт и CTA: вертикальные кадры тех же фото под высокие блоки */
    .slogan-style1__inner { padding: 26px 20px 28px; }
    .slogan-style1__bg { background-image: url("../images/stylus/bg-wholesale-m.webp"); background-position: center; }
    .slogan-style1__bg::after { background: linear-gradient(160deg, rgba(14,43,57,.88) 0%, rgba(14,43,57,.72) 55%, rgba(10,126,164,.5) 100%); }
    .final-cta__bg {
        background-image:
            linear-gradient(160deg, rgba(16,29,38,.84) 0%, rgba(16,29,38,.62) 55%, rgba(16,29,38,.4) 100%),
            url("../images/stylus/bg-cta-m.webp");
        background-position: center, center;
    }
    .wholesale__left h2 { font-size: 23px; }
    .wholesale__actions .btn-solid, .wholesale__actions .btn-ghost { flex: 1 1 100%; justify-content: center; }

    /* подборки: три колонки в одну */
    .products-style3 .col-xl-4 + .col-xl-4 { margin-top: var(--gap); }
    .products-col { padding: 20px 18px 10px; }
    .products-col__head h3 { font-size: 19px; }
    .products-style3__single-img { width: 84px; height: 84px; }
    .products-style3__single-img img { width: 72px; height: 72px; }

    /* о компании и CTA */
    .about-strip__inner { padding: 24px 20px 26px; }
    .about-strip__left h1,
.about-strip__left h2 { font-size: 21px; }
    .about-strip__facts { grid-template-columns: 1fr; gap: 14px; margin: 18px 0 20px; }
    .final-cta__inner { padding: 26px 20px 28px; }
    .final-cta__text h2 { font-size: 23px; }
    .final-cta__form { padding: 22px 20px; }

    /* подвал */
    .footer-cta { padding: 20px 0; }
    .footer-cta__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-cta__actions { width: 100%; flex-direction: column; gap: 10px; }
    .footer-cta__btn { flex: 1 1 0; width: 100%; justify-content: center; white-space: nowrap; padding: 12px 18px; }
    .footer-main { padding: 30px 0 26px; }
    .footer-main .row { --bs-gutter-y: 22px; }
    .single-footer-widget .title h2 { margin-bottom: 10px; }
    .footer-widget-links ul li a { line-height: 1.4; padding: 5px 0; }
    .our-company-info .text p { margin-top: 12px; }
    .footer-contact-info-style1 { margin-top: 14px; }
    .footer-contact-info-style1 ul li { margin-bottom: 10px; }
    .footer-bottom .bottom-inner { flex-direction: column; gap: 10px; text-align: center; padding: 12px 0 14px; }

    /* нижняя панель действий; плавающие кнопки не должны с ней спорить */
    .mobile-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 98;
        background: #fff;
        border-top: 1px solid var(--thm-border-color);
        box-shadow: 0 -6px 20px rgba(20, 35, 46, .08);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    .mobile-bar a {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 6px 2px;
        font-size: 11px;
        font-weight: 500;
        color: #5C6874;
        line-height: 1.2;
    }
    .mobile-bar a i, .mobile-bar a span[class^="icon-"] { font-size: 18px; color: var(--thm-primary-color); }
    .mobile-bar a.is-wa i { color: #25D366; }
    .wa-float { display: none; }
    .scroll-to-top .scroll-top-inner { right: 14px; bottom: 78px; width: 46px; height: 46px; }

    /* окно поиска */
    .search-popup { padding-left: 16px; padding-right: 16px; }
    .search-popup__content { padding: 24px 20px 20px; }
    .search-popup__content form input[type="text"] { height: 50px; font-size: 15px; }
    .search-popup__content form button.thm-btn { height: 40px; width: 46px; }
    .search-popup__hints a { font-size: 12.5px; padding: 6px 12px; }
}

@media only screen and (max-width: 480px) {
    .latest-product-style1 .row.filter-layout > div,
    .blog-style1 .row > div { width: 80%; }
    .products-style2__single-img .inner img { height: 180px; }
}


/* ---------------------------------------------------------
   19. Служебное
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .swipe-hint i { animation: none; }
    .search-popup__content { transition: none; transform: none; }
}
@media (hover: none) {
    .banner-tile__arrow, .cat-card__arrow { opacity: 1; transform: none; }
}

/* темплейт: sticky не работает, пока у обёртки overflow: hidden.
   clip даёт ту же защиту от горизонтального скролла и не ломает залипание */
.page-wrapper.boxed_wrapper { overflow: clip; overflow-x: clip; }
@supports not (overflow: clip) {
    .page-wrapper.boxed_wrapper { overflow: visible; }
    body { overflow-x: hidden; }
}


/* =========================================================
   20. Шапка внутренней страницы
   ========================================================= */
.page-head {
    background: var(--surface-1);
    padding: 26px 0 34px;
    margin-bottom: var(--sect-pad);
}
.page-head--slim { padding: 18px 0; margin-bottom: 34px; }
.page-head--article { margin-bottom: 40px; }

.crumbs ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.crumbs li:not(:last-child)::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #B6C2CC; }
.crumbs a { color: var(--text-muted); transition: color .25s ease; }
.crumbs a:hover { color: var(--thm-primary-color); }

.page-head__title { margin-top: 14px; }
.page-head__title h1 {
    font-size: 36px;
    line-height: 1.12;
    font-weight: 700;
    margin: 0;
}


/* =========================================================
   21. Каталог: подбор и сетка
   ========================================================= */
/* темплейт: section { position: relative; z-index: 1 } создаёт стековый контекст,
   и шторка фильтра (fixed, z-index выше шапки) пряталась под липкой шапкой */
.catalog { position: static; z-index: auto; padding-bottom: var(--sect-pad); }
.catalog__layout { display: grid; grid-template-columns: 282px minmax(0, 1fr); gap: 32px; align-items: start; }

.catalog-filter {
    position: sticky;
    /* липкое меню темплейта висит поверх на высоте 86px: держим отступ под него */
    top: 106px;
    /* сайдбар прокручивается сам: список направлений может вырасти */
    max-height: calc(100vh - 126px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #C3CED7 transparent;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-lg);
    background: #fff;
    padding: 22px 22px 24px;
}
.catalog-filter__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.catalog-filter__head h2 { font-size: 18px; font-weight: 600; margin: 0; }
.catalog-filter__close { display: none; }

.filter-block { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--thm-border-color); }
.filter-block h3 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.filter-groups li + li { margin-top: 2px; }
.filter-groups button {
    display: flex;
    width: 100%;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: transparent;
    border-radius: var(--r-sm);
    padding: 8px 10px;
    font-family: var(--thm-font);
    font-size: 14.5px;
    line-height: 1.35;
    text-align: left;
    color: var(--thm-heading-font-color);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.filter-groups button span { font-size: 12.5px; color: var(--text-muted); }
.filter-groups button:hover { background: var(--surface-1); }
.filter-groups .is-active button { background: var(--surface-2); font-weight: 600; }
.filter-groups .is-active button span { color: var(--thm-primary-color); }

.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 7px 0; margin: 0; }
.check-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-row__box {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1px solid #C3CED7;
    border-radius: 4px;
    background: #fff;
    transition: border-color .2s ease, background .2s ease;
}
.check-row:hover .check-row__box { border-color: var(--thm-primary-color); }
.check-row input:focus-visible + .check-row__box { box-shadow: 0 0 0 3px rgba(var(--thm-secondary-color-rgb), .2); }
.check-row input:checked + .check-row__box {
    background: var(--thm-primary-color);
    border-color: var(--thm-primary-color);
    background-image: linear-gradient(45deg, transparent 44%, #fff 44%, #fff 56%, transparent 56%),
                      linear-gradient(-45deg, transparent 44%, #fff 44%, #fff 56%, transparent 56%);
    background-size: 10px 6px, 10px 6px;
    background-position: 3px 6px, 5px 6px;
    background-repeat: no-repeat;
}
.check-row__text { font-size: 14.5px; line-height: 1.35; color: var(--thm-heading-font-color); }
.check-row__text b { font-weight: 400; font-size: 12.5px; color: var(--text-muted); margin-left: 6px; }

.filter-price { display: flex; align-items: center; gap: 8px; }
.filter-price input {
    width: 100%;
    min-width: 0;
    height: 40px;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    padding: 0 12px;
    font-family: var(--thm-font);
    font-size: 14px;
    color: var(--thm-heading-font-color);
    outline: none;
    transition: border-color .25s ease;
}
.filter-price input:focus { border-color: var(--brand-cyan); }
.filter-price span { color: var(--text-muted); }
.filter-hint { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); margin-top: 10px; }

.filter-reset {
    width: 100%;
    border: 1px solid var(--thm-border-color);
    background: #fff;
    border-radius: var(--r-sm);
    padding: 11px 16px;
    font-family: var(--thm-font-2);
    font-size: 14px;
    font-weight: 600;
    color: var(--thm-heading-font-color);
    cursor: pointer;
    transition: border-color .25s ease, color .25s ease;
}
.filter-reset:hover { border-color: var(--thm-heading-font-color); }

.filter-help { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--thm-border-color); }
.filter-help h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.filter-help p { font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; }

.catalog-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--thm-border-color);
}
.catalog-bar__filter { display: none; }
.catalog-bar__count { margin: 0; font-size: 14.5px; color: var(--text-muted); }
.catalog-bar__count b { font-family: var(--thm-font-2); font-size: 17px; color: var(--thm-heading-font-color); }
.catalog-bar__sort { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.catalog-bar__sort label { font-size: 13.5px; color: var(--text-muted); }
.catalog-bar__sort select {
    height: 42px;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    background: #fff;
    padding: 0 38px 0 14px;
    font-family: var(--thm-font);
    font-size: 14px;
    color: var(--thm-heading-font-color);
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #5C6874 50%), linear-gradient(135deg, #5C6874 50%, transparent 50%);
    background-position: calc(100% - 19px) 18px, calc(100% - 14px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    transition: border-color .25s ease;
}
.catalog-bar__sort select:focus { outline: none; border-color: var(--brand-cyan); }

.catalog-grid { --bs-gutter-y: var(--gap); }
.card-note { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); margin: -6px 0 12px; }

.catalog-empty { display: none; padding: 48px 20px; text-align: center; background: var(--surface-1); border-radius: var(--r-lg); }
.catalog-empty.is-visible { display: block; }
.catalog-empty h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.catalog-empty p { max-width: 28.5em; margin: 0 auto 18px; }


/* =========================================================
   22. Карточка товара
   ========================================================= */
.product { padding-bottom: var(--sect-pad); }
.product__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }

.product__photo {
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-lg);
    background: #fff;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}
.product__photo img { max-width: 100%; max-height: 380px; object-fit: contain; mix-blend-mode: multiply; }
.product__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.product__thumb {
    width: 78px;
    height: 78px;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    background: #fff;
    padding: 6px;
    cursor: pointer;
    transition: border-color .2s ease;
}
.product__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product__thumb:hover { border-color: var(--brand-cyan); }
.product__thumb.is-active { border-color: var(--thm-primary-color); border-width: 2px; padding: 5px; }
.product__download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--thm-primary-color);
    transition: color .2s ease;
}
.product__download:hover { color: var(--brand-red); }

.product__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.product__sku { font-size: 13px; color: var(--text-muted); }
.product__name { font-size: 30px; line-height: 1.18; font-weight: 700; margin: 0 0 14px; }
.product__lead { font-size: 15.5px; line-height: 1.6; max-width: 34.7em; }

.product__buy {
    margin-top: 24px;
    padding: 22px 24px;
    background: var(--surface-1);
    border-radius: var(--r-lg);
}
.product__price { font-family: var(--thm-font-2); font-size: 30px; font-weight: 700; color: var(--thm-heading-font-color); }
.product__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; max-width: 460px; }
.product__actions .btn-cart,
.product__actions .btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    padding: 0 20px;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
}

.product__note { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin: 14px 0 0; }

.product__benefits { display: grid; gap: 12px; margin-top: 24px; }
.product__benefits li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 4px 14px;
    align-items: center;
}
.product__benefits span { grid-row: span 2; font-size: 20px; color: var(--thm-primary-color); }
.product__benefits b { font-family: var(--thm-font-2); font-size: 15px; color: var(--thm-heading-font-color); }
.product__benefits small { font-size: 13px; color: var(--text-muted); }

.product__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; margin-top: 56px; }
.product__body h2 { font-size: 24px; font-weight: 600; margin-bottom: 18px; }

.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--thm-border-color); vertical-align: top; }
.specs th { font-family: var(--thm-font); font-size: 14px; font-weight: 400; color: var(--text-muted); width: 46%; padding-right: 16px; }
.specs td { font-size: 14.5px; color: var(--thm-heading-font-color); }
/* подпись группы - caption своей таблицы (группа характеристик = отдельная таблица) */
.specs__group {
    caption-side: top;
    text-align: left;
    font-family: var(--thm-font-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--brand-cyan-deep);
    padding: 22px 0 11px;
    border-bottom: 1px solid var(--thm-border-color);
}
.product__col--specs .specs:first-of-type .specs__group,
.specs--plain tr:first-child th,
.specs--plain tr:first-child td { padding-top: 0; }

.product__text p { font-size: 15px; line-height: 1.65; margin-bottom: 14px; max-width: 39.7em; }
.product__docs { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--thm-border-color); border-radius: var(--r-lg); }
.product__docs h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.product__docs p { font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.product__manager {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--thm-border-color);
}
.product__manager > span:first-child { font-size: 20px; color: var(--thm-primary-color); }
.product__manager b { display: block; font-family: var(--thm-font-2); font-size: 16px; color: var(--thm-heading-font-color); }
.product__manager small { font-size: 12.5px; color: var(--text-muted); }

.similar { padding-bottom: var(--sect-pad); }
.similar .row { --bs-gutter-y: var(--gap); }


/* =========================================================
   23. О компании
   ========================================================= */
.about-intro { padding-bottom: var(--sect-pad); }
.about-intro__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 56px;
    align-items: start;
}
.about-intro__text h2 { font-size: 29px; line-height: 1.2; font-weight: 600; margin-bottom: 22px; }
.about-intro__text p { font-size: 15.5px; line-height: 1.7; margin-bottom: 14px; max-width: 38.4em; }
.about-intro__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.about-intro__media { margin: 0; }
.about-intro__media img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--r-lg);
    display: block;
}
.about-intro__media figcaption {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--thm-border-color);
}
.fact-tile { background: transparent; border-radius: 0; padding: 0; }
.fact-tile b {
    display: block;
    font-family: var(--thm-font-2);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.05;
    color: var(--thm-primary-color);
}
.fact-tile__label {
    display: block;
    font-family: var(--thm-font-2);
    font-size: 15px;
    font-weight: 600;
    color: var(--thm-heading-font-color);
    margin: 8px 0 6px;
}
.fact-tile__text { display: block; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }

.info-section { padding-bottom: var(--sect-pad); }
.info-section--tinted { background: var(--surface-1); padding-top: var(--sect-pad); margin-bottom: var(--sect-pad); }
.info-section .row { --bs-gutter-y: var(--gap); }

.info-card {
    height: 100%;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-lg);
    background: #fff;
    padding: 26px 26px 28px;
    transition: border-color .25s ease;
}
.info-card:hover { border-color: var(--brand-cyan); }
.info-card__icon { font-size: 26px; color: var(--thm-primary-color); margin-bottom: 14px; }
.info-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.info-card p { font-size: 14px; line-height: 1.55; margin: 0; }

/* шаги работы: нумерованная лента с соединительной линией */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: flow; }
.flow__step { position: relative; padding-top: 58px; }
.flow__step::before {
    content: "";
    position: absolute;
    left: 0;
    right: calc(var(--gap) * -1);
    top: 21px;
    height: 1px;
    background: #C9D6E0;
}
.flow__step:last-child::before { right: 0; }
.flow__num {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--thm-primary-color);
    color: #fff;
    font-family: var(--thm-font-2);
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px var(--surface-1);
}
.flow__text h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.flow__text p { font-size: 14px; line-height: 1.55; margin: 0; }
.flow__note { margin: 30px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); max-width: 53.3em; }

/* сегменты заказчиков: фото + перечень позиций */
.client-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-lg);
    background: #fff;
    overflow: hidden;
    transition: border-color .25s ease;
}
.client-card:hover { border-color: var(--brand-cyan); }
.client-card__img { aspect-ratio: 3 / 2; background: var(--surface-2); }
.client-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.client-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 24px 24px 26px; }
.client-card h3 { font-size: 18px; line-height: 1.3; font-weight: 600; margin-bottom: 8px; }
.client-card p { font-size: 14px; line-height: 1.55; margin: 0 0 16px; }
.client-card__list { margin-top: auto; display: grid; gap: 8px; }
.client-card__list li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--thm-heading-font-color);
}
.client-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--brand-cyan);
    border-bottom: 2px solid var(--brand-cyan);
    transform: rotate(-45deg);
}

.docs-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 32px;
    padding: 28px 30px;
    background: var(--surface-1);
    border-radius: var(--r-lg);
}
.docs-note h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.docs-note p { font-size: 14.5px; line-height: 1.6; margin: 0; max-width: 48.4em; }
.docs-note .btn-outline { flex: 0 0 auto; }


/* =========================================================
   24. Контакты и карта
   ========================================================= */
.contacts-section { padding-bottom: var(--sect-pad); }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; }

.contact-card { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--thm-border-color); }
.contact-card:first-child { padding-top: 0; }
.contact-card__icon { flex: 0 0 auto; font-size: 20px; color: var(--thm-primary-color); }
.contact-card__label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.contact-card p { font-size: 15.5px; line-height: 1.6; color: var(--thm-heading-font-color); margin: 0; }
.contact-card a { color: var(--thm-heading-font-color); transition: color .2s ease; }
.contact-card a:hover { color: var(--thm-primary-color); }

.contact-note { margin-top: 26px; background: var(--surface-1); border-radius: var(--r-lg); padding: 24px 26px; }
.contact-note p { font-size: 14.5px; line-height: 1.6; margin-bottom: 16px; }

.map-section { padding-bottom: var(--sect-pad); }
.map-tabs { position: relative; }
.map-tabs__radio { position: absolute; opacity: 0; width: 0; height: 0; }
.map-tabs__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px 16px 0;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    padding: 9px 16px;
    font-family: var(--thm-font-2);
    font-size: 14px;
    font-weight: 600;
    color: var(--thm-heading-font-color);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.map-tabs__label:hover { border-color: var(--thm-primary-color); }
.map-tabs__radio:checked + .map-tabs__label { border-color: var(--thm-heading-font-color); background: var(--surface-1); }
.map-tabs__radio:focus-visible + .map-tabs__label { box-shadow: 0 0 0 3px rgba(var(--thm-secondary-color-rgb), .2); }
.map-pane { display: none; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--thm-border-color); }
.map-pane iframe { display: block; width: 100%; height: 440px; border: 0; }
#map-yandex:checked ~ .map-pane--yandex { display: block; }
#map-google:checked ~ .map-pane--google { display: block; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; }
.map-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--thm-primary-color);
    transition: color .2s ease;
}
.map-links a:hover { color: var(--brand-red); }
.map-links img { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; }


/* =========================================================
   25. Вопрос-ответ
   ========================================================= */
.faq-section { padding-bottom: var(--sect-pad); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }

.faq-accordion .accordion {
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-lg);
    background: #fff;
    margin-bottom: 12px;
    transition: border-color .25s ease;
}
.faq-accordion .accordion.is-open { border-color: var(--brand-cyan); }
.faq-accordion .accord-btn {
    position: relative;
    cursor: pointer;
    padding: 20px 58px 20px 24px;
    user-select: none;
}
.faq-accordion .accord-btn h2 { font-size: 16.5px; line-height: 1.4; font-weight: 600; margin: 0; transition: color .2s ease; }
.faq-accordion .accord-btn:hover h2,
.faq-accordion .accord-btn.is-open h2 { color: var(--thm-primary-color); }
.faq-accordion .accord-btn::after {
    content: "";
    position: absolute;
    right: 26px;
    top: 26px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--thm-primary-color);
    border-bottom: 2px solid var(--thm-primary-color);
    transform: rotate(45deg);
    transition: transform .3s ease, top .3s ease;
}
.faq-accordion .accord-btn.is-open::after { transform: rotate(-135deg); top: 30px; }
/* высоту анимирует stylus.js: overflow держит контент внутри на время перехода */
.faq-accordion .accord-content {
    height: 0;
    overflow: hidden;
    transition: height .32s cubic-bezier(.4, 0, .2, 1); /* impeccable-disable-line layout-transition: аккордеон «Вопрос-ответ» раскрывается по высоте, до 10 пунктов, плавность просил заказчик */
}
.faq-accordion .accord-content p {
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0;
    padding: 0 58px 22px 24px;
}

.faq-help { position: sticky; top: 106px; background: var(--surface-1); border-radius: var(--r-lg); padding: 26px 26px 28px; }
.faq-help h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.faq-help p { font-size: 14px; line-height: 1.55; margin-bottom: 18px; }
.faq-help__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--thm-font-2);
    font-size: 19px;
    font-weight: 700;
    color: var(--thm-heading-font-color);
    margin-bottom: 16px;
    transition: color .2s ease;
}
.faq-help__phone span { font-size: 17px; color: var(--thm-primary-color); }
.faq-help__phone:hover { color: var(--thm-primary-color); }
.faq-help__hours { font-size: 13px; color: var(--text-muted); margin: 14px 0 0; }


/* =========================================================
   26. Статьи
   ========================================================= */
.articles { padding-bottom: var(--sect-pad); }
.articles .row { --bs-gutter-y: var(--gap); }
.articles--more { padding-top: 0; }

.article { padding-bottom: var(--sect-pad); }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.article__meta { display: flex; gap: 10px; margin-top: 14px; }
.article__meta li { font-size: 13px; color: var(--text-muted); }
.article__cover {
    width: 100%;
    height: 360px;
    object-fit: contain;
    background: var(--surface-2);
    border-radius: var(--r-lg);
    padding: 26px;
    margin-bottom: 30px;
}
.article__lead { font-size: 17px; line-height: 1.6; color: var(--thm-heading-font-color); margin-bottom: 26px; }
.article__body h2 { font-size: 24px; line-height: 1.25; font-weight: 600; margin: 32px 0 14px; }
.article__body p { font-size: 15.5px; line-height: 1.7; margin-bottom: 14px; }

.article__callout { margin-top: 36px; background: var(--surface-1); border-radius: var(--r-lg); padding: 26px 28px 28px; }
.article__callout h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.article__callout p { font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }

.article-side { border: 1px solid var(--thm-border-color); border-radius: var(--r-lg); padding: 24px 24px 26px; }
.article-side + .article-side { margin-top: 16px; }
.article-side h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.article-side p { font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.article-side--contact { background: var(--surface-1); border-color: transparent; }
.article-side--contact p:last-child { margin-bottom: 0; }


/* =========================================================
   27. Подтверждение добавления в корзину
   ========================================================= */
.cart-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 1000020;
    transform: translate(-50%, 16px);
    max-width: calc(100% - 32px);
    background: var(--thm-black);
    color: #fff;
    border-radius: var(--r-sm);
    padding: 14px 20px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 14px 34px rgba(20, 35, 46, .28);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.cart-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }


/* =========================================================
   28. Внутренние страницы: планшет и мобильные
   ========================================================= */
@media only screen and (max-width: 1199px) {
    .page-head__title h1 { font-size: 30px; }
    .catalog__layout { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; }
    .product__top, .product__body { gap: 32px; }
    .about-intro__inner { gap: 36px; }
    .faq-grid, .article__layout { gap: 32px; }
}

@media only screen and (max-width: 991px) {
    .about-intro__inner { grid-template-columns: 1fr; gap: 32px; }
    .about-intro__media img { height: 380px; }
    .about-facts { grid-template-columns: 1fr 1fr; gap: 28px var(--gap); margin-top: 40px; padding-top: 32px; }
    .flow { grid-template-columns: 1fr 1fr; gap: 32px var(--gap); }
    .flow__step:nth-child(2)::before { right: 0; }
    .docs-note { flex-direction: column; align-items: flex-start; gap: 18px; }
    .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
    .faq-grid, .article__layout { grid-template-columns: 1fr; }
    .faq-help, .catalog-filter { position: static; }
    .work-steps { grid-template-columns: 1fr 1fr; }
    .product__top { grid-template-columns: 1fr; }
    .product__body { grid-template-columns: 1fr; gap: 36px; }
    .article-side { display: none; }
    .article-side:first-child { display: block; }

    /* фильтр каталога выезжает шторкой */
    .catalog__layout { display: block; }
    .catalog-filter {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 110;
        width: min(340px, 86vw);
        border-radius: 0;
        border: 0;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .3s ease;
        box-shadow: 18px 0 40px rgba(20, 35, 46, .16);
    }
    .catalog-filter.is-open { transform: translateX(0); }
    .catalog-filter__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: var(--r-sm);
        background: var(--surface-1);
        color: var(--thm-heading-font-color);
        font-size: 15px;
        cursor: pointer;
    }

    .catalog-bar__filter {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        border: 1px solid var(--thm-border-color);
        border-radius: var(--r-sm);
        background: #fff;
        padding: 10px 18px;
        font-family: var(--thm-font-2);
        font-size: 14px;
        font-weight: 600;
        color: var(--thm-heading-font-color);
        cursor: pointer;
    }
    .catalog-bar__filter span { color: var(--thm-primary-color); }
}

@media only screen and (max-width: 767px) {
    .page-head { padding: 18px 0 24px; }
    .page-head__title h1 { font-size: 25px; }
    .crumbs li { font-size: 12.5px; }

    .catalog-bar { flex-wrap: wrap; gap: 12px; }
    .catalog-bar__sort { width: 100%; margin-left: 0; }
    .catalog-bar__sort select { flex: 1 1 auto; }

    .product__photo { min-height: 240px; padding: 18px; }
    .product__photo img { max-height: 260px; }
    .product__thumb { width: 64px; height: 64px; }
    .product__name { font-size: 23px; }
    .product__price { font-size: 26px; }
    .product__buy { padding: 18px 20px; }
    .product__actions { display: grid; grid-template-columns: 1fr; }
    .product__actions .btn-cart, .product__actions .btn-outline { width: 100%; justify-content: center; text-align: center; }
    .product__body h2 { font-size: 21px; }
    .specs th { width: 50%; }

    .about-intro__text h2 { font-size: 24px; }
    .about-intro__text h2 br { display: none; }
    .about-intro__media img { height: 300px; }
    .about-facts { grid-template-columns: 1fr; gap: 22px; }
    .fact-tile b { font-size: 28px; }
    .flow { grid-template-columns: 1fr; gap: 26px; }
    .flow__step { padding-top: 0; padding-left: 60px; min-height: 44px; }
    .flow__step::before { left: 21px; right: auto; top: 44px; bottom: -26px; width: 1px; height: auto; }
    .flow__step:last-child::before { display: none; }
    .docs-note { padding: 22px 20px 24px; }

    .contact-card { padding: 16px 0; }
    .map-pane iframe { height: 320px; }

    .faq-accordion .accord-btn { padding: 16px 48px 16px 18px; }
    .faq-accordion .accord-btn h2 { font-size: 15.5px; }
    .faq-accordion .accord-btn::after { right: 20px; top: 22px; }
    .faq-accordion .accord-btn.is-open::after { top: 26px; }
    .faq-accordion .accord-content p { padding: 0 48px 18px 18px; }

    .article__cover { height: 220px; padding: 18px; margin-bottom: 22px; }
    .article__lead { font-size: 15.5px; }
    .article__body h2 { font-size: 20px; margin-top: 26px; }
    .article__body p { font-size: 15px; }
    .article__callout { padding: 20px 20px 22px; }

    .cart-toast { left: 16px; right: 16px; bottom: 74px; transform: translateY(16px); max-width: none; }
    .cart-toast.is-visible { transform: translateY(0); }
}


/* =========================================================
   29. Каталог: активные фильтры, пагинация, подложка шторки
   ========================================================= */
.filter-chips { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-chips.is-visible { display: flex; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    background: var(--surface-1);
    padding: 8px 14px;
    font-family: var(--thm-font);
    font-size: 13.5px;
    color: var(--thm-heading-font-color);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.filter-chip i { font-size: 11px; color: var(--text-muted); }
.filter-chip:hover { border-color: var(--thm-heading-font-color); background: #fff; }
.filter-chip:hover i { color: var(--brand-red); }

.filter-groups li.is-empty button { opacity: .45; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.pager__btn {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    background: #fff;
    font-family: var(--thm-font-2);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--thm-heading-font-color);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.pager__btn:hover:not(:disabled) { border-color: var(--thm-heading-font-color); }
.pager__btn.is-active {
    background: var(--thm-primary-color);
    border-color: var(--thm-primary-color);
    color: #fff;
}
.pager__btn:disabled { opacity: .4; cursor: default; }
.pager__btn i { font-size: 11px; }
.pager__btn--prev i { display: inline-block; transform: rotate(180deg); }

.filter-backdrop { display: none; }

/* =========================================================
   30. Лайтбокс фотографий товара
   ========================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000005;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 5vh 84px;
    background: rgba(16, 29, 38, .92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--r-sm);
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}
.lightbox__img.is-dragging { cursor: grabbing; }
.lightbox__close,
.lightbox__nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); border-color: #fff; }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--prev i { display: inline-block; transform: rotate(180deg); }
.lightbox__nav--next { right: 24px; }
.lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    font-family: var(--thm-font-2);
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
}
.product__photo { cursor: zoom-in; }
.product__photo img { cursor: grab; user-select: none; -webkit-user-drag: none; }
.product__photo img.is-dragging { cursor: grabbing; }

@media only screen and (max-width: 991px) {
    .filter-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 105;
        background: rgba(16, 29, 38, .5);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
    }
    .filter-backdrop.is-visible { opacity: 1; visibility: visible; }
}

@media only screen and (max-width: 767px) {
    .pager { margin-top: 26px; }
    .pager__btn { min-width: 40px; height: 40px; font-size: 14px; }
    .lightbox { padding: 64px 12px 72px; }
    .lightbox__close { top: 12px; right: 12px; }
    .lightbox__nav { top: auto; bottom: 14px; transform: none; }
    .lightbox__nav--prev { left: 24%; }
    .lightbox__nav--next { right: 24%; }
    .lightbox__counter { bottom: 28px; }
}


/* =========================================================
   31. Каталог: вид сеткой и списком, рубрики статей
   ========================================================= */
.catalog-filter::-webkit-scrollbar { width: 6px; }
.catalog-filter::-webkit-scrollbar-thumb { background: #C3CED7; border-radius: 3px; }
.catalog-filter::-webkit-scrollbar-track { background: transparent; }

.view-switch { display: flex; gap: 4px; margin-left: 14px; }
.view-switch__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    line-height: 1;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.view-switch__btn:hover { border-color: var(--thm-heading-font-color); color: var(--thm-heading-font-color); }
.view-switch__btn.is-active {
    border-color: var(--thm-heading-font-color);
    background: var(--thm-heading-font-color);
    color: #fff;
}

/* ссылка на карточку видна только в списочном виде */
.card-more { display: none; }

/* список: фото слева, описание и кнопка справа */
.catalog-grid.is-list > .filter-item { width: 100%; max-width: none; flex: 0 0 100%; }
.catalog-grid.is-list .products-style2__single--style3 { flex-direction: row; align-items: stretch; }
.catalog-grid.is-list .products-style2__single-img { flex: 0 0 240px; border-right: 1px solid var(--thm-border-color); }
.catalog-grid.is-list .products-style2__single-img .inner img { height: 100%; min-height: 190px; padding: 18px; }
.catalog-grid.is-list .products-style2__single-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 4px 28px;
    padding: 24px 26px;
}
.catalog-grid.is-list .products-style2__single-content h3 {
    grid-column: 1;
    font-size: 17px;
    min-height: 0;
    margin-bottom: 4px;
    align-self: end;
}
.catalog-grid.is-list .price-row { grid-column: 1; margin: 0; align-self: start; }
.catalog-grid.is-list .products-style2__single-content .btn-box {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
}
.catalog-grid.is-list .products-style2__single-img .overlay-link { display: none; }
.catalog-grid.is-list .card-more {
    grid-column: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--thm-primary-color);
    transition: color .2s ease;
}
.catalog-grid.is-list .card-more i { font-size: 11px; }
.catalog-grid.is-list .card-more:hover { color: var(--brand-red); }
.catalog-grid.is-list .products-style2__single-content { grid-template-rows: auto auto auto; }
.catalog-grid.is-list .products-style2__single-content .btn-box { grid-row: 1 / span 3; }

/* рубрики статей */
.rubrics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.rubric-tab {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    background: #fff;
    padding: 10px 18px;
    font-family: var(--thm-font-2);
    font-size: 14px;
    font-weight: 600;
    color: var(--thm-heading-font-color);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.rubric-tab span { font-family: var(--thm-font); font-size: 12.5px; font-weight: 400; color: var(--text-muted); }
.rubric-tab:hover { border-color: var(--thm-heading-font-color); }
.rubric-tab.is-active {
    background: var(--thm-heading-font-color);
    border-color: var(--thm-heading-font-color);
    color: #fff;
}
.rubric-tab.is-active span { color: rgba(255, 255, 255, .65); }

/* кнопка запроса КП с иконкой мессенджера */
.btn-outline--wa { gap: 9px; }
.btn-outline--wa i { font-size: 16px; color: #25D366; }
.btn-outline--wa:hover i { color: #fff; }

@media only screen and (max-width: 991px) {
    .catalog-filter { max-height: none; }
    .catalog-filter.is-open { max-height: 100%; }
}

@media only screen and (max-width: 767px) {
    .view-switch { display: none; } /* на узком экране список и сетка совпадают */
    .catalog-grid.is-list > .filter-item { width: 100%; }
    .rubrics { margin: 0 -16px 22px; padding: 0 16px 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .rubrics::-webkit-scrollbar { display: none; }
    .rubric-tab { flex: 0 0 auto; }
}


/* =========================================================
   32. Мобильные и планшет: пункт «Главная», плотная сетка каталога
   ========================================================= */
/* на десктопе на главную ведёт логотип, пункт нужен только в бургере */
.main-menu .menu-home,
.stricky-header .menu-home { display: none; }
.mobile-nav__content .menu-home { display: block; }

@media only screen and (min-width: 576px) and (max-width: 767px) {
    .catalog-grid > .filter-item { width: 50%; }
}

@media only screen and (min-width: 576px) and (max-width: 991px) {
    /* на планшете между ценой и кнопкой висела пустота в треть карточки */
    .catalog-grid .products-style2__single-img .inner img { height: 190px; padding: 14px; }
    .catalog-grid .products-style2__single-content { padding: 16px 16px 18px; }
    .catalog-grid .products-style2__single-content h3 { font-size: 14.5px; min-height: 0; margin-bottom: 10px; }
    .catalog-grid .price-row { margin-bottom: 14px; }
}

@media only screen and (max-width: 575px) {
    /* карточка каталога ложится в строку: вертикальная тянулась на пол-экрана */
    .catalog-grid > .filter-item { width: 100%; max-width: none; }
    .catalog-grid .products-style2__single--style3 { flex-direction: row; align-items: stretch; }
    .catalog-grid .products-style2__single-img {
        flex: 0 0 118px;
        border-right: 1px solid var(--thm-border-color);
    }
    .catalog-grid .products-style2__single-img .inner img {
        height: 100%;
        min-height: 128px;
        padding: 10px;
    }
    .catalog-grid .products-style2__single-img .overlay-link { display: none; }
    .catalog-grid .products-style2__single .text-box { font-size: 11px; padding: 3px 8px; }
    .catalog-grid .products-style2__single-content { padding: 14px 14px 16px; }
    .catalog-grid .products-style2__single-content h3 {
        font-size: 14.5px;
        line-height: 1.35;
        min-height: 0;
        margin-bottom: 8px;
    }
    .catalog-grid .products-style2__single-content p { font-size: 17px; }
    .catalog-grid .price-row { gap: 8px; margin-bottom: 12px; }
    .catalog-grid .stock-label { font-size: 12px; }
    .catalog-grid .btn-cart { padding: 10px 14px; font-size: 13.5px; }
    .catalog-grid .card-more { display: none; }
}


/* =========================================================
   33. Модальная форма заявки
   ========================================================= */
/* кнопки-заявки вёрстаются <button>: снимаем браузерные умолчания */
button.btn-solid,
button.btn-outline {
    font-family: var(--thm-font-2);
    cursor: pointer;
}
button.btn-solid { border: 0; }

.btn-arrow { gap: 10px; }
.btn-arrow i { font-size: 11px; transition: transform .25s ease; }
.btn-arrow:hover i { transform: translateX(4px); }

.lead-modal {
    position: fixed;
    inset: 0;
    /* липкое меню темплейта сидит на 999999, перекрываем его */
    z-index: 1000010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    transition: opacity .24s ease;
}
.lead-modal.is-open { opacity: 1; }
.lead-modal__overlay { position: absolute; inset: 0; background: rgba(16, 29, 38, .72); }


.lead-modal__card {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #fff;
    border-radius: var(--r-lg);
    padding: 34px 34px 30px;
    box-shadow: 0 30px 70px rgba(16, 29, 38, .3);
    transform: translateY(-14px) scale(.98);
    transition: transform .28s cubic-bezier(.2, .7, .3, 1);
}
.lead-modal.is-open .lead-modal__card { transform: translateY(0) scale(1); }

.lead-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: var(--r-sm);
    background: var(--surface-1);
    color: var(--thm-heading-font-color);
    font-size: 14px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}
.lead-modal__close:hover { background: var(--brand-red); color: #fff; }

.lead-modal__title { font-size: 23px; line-height: 1.2; font-weight: 600; margin: 0 40px 8px 0; }
.lead-modal__sub { font-size: 14px; line-height: 1.5; color: var(--text-muted); margin-bottom: 22px; }

.lead-modal__form .form-row { margin-bottom: 12px; }
.lead-modal__form input,
.lead-modal__form textarea {
    width: 100%;
    border: 1px solid var(--thm-border-color);
    border-radius: var(--r-sm);
    background: #fff;
    padding: 13px 16px;
    font-family: var(--thm-font);
    font-size: 14.5px;
    color: var(--thm-heading-font-color);
    outline: none;
    resize: none;
    transition: border-color .2s ease;
}
.lead-modal__form input:focus,
.lead-modal__form textarea:focus { border-color: var(--thm-primary-color); }
.lead-modal__form input.is-invalid,
.lead-form input.is-invalid { border-color: var(--brand-red); }
.lead-modal__form input::placeholder,
.lead-modal__form textarea::placeholder { color: var(--text-muted); }
.lead-modal__note { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin: 12px 0 0; text-align: center; }

.lead-modal__done { text-align: center; padding: 8px 0 4px; }
.form-done { background: #fff; border-radius: var(--r-lg); padding: 34px 30px 30px; }
.lead-modal__check {
    display: inline-flex;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(22, 122, 69, .1);
    margin-bottom: 16px;
    position: relative;
}
.lead-modal__check::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 19px;
    width: 18px;
    height: 9px;
    border-left: 2.5px solid var(--stock);
    border-bottom: 2.5px solid var(--stock);
    transform: rotate(-45deg);
}
.lead-modal__done h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.lead-modal__done p { font-size: 14.5px; line-height: 1.6; margin-bottom: 20px; }
.lead-modal__done a { color: var(--thm-primary-color); font-weight: 600; }

@media only screen and (max-width: 767px) {
    .lead-modal { padding: 16px; align-items: flex-end; }
    .lead-modal__card { padding: 26px 20px 22px; max-height: calc(100vh - 32px); }
    .lead-modal__title { font-size: 20px; }
}


/* =========================================================
   34. Блокировка прокрутки для всплывающих слоёв
   ========================================================= */
/* место под полосу прокрутки резервируется заранее: там, где браузер это
   умеет, при открытии слоёв вообще ничего не сдвигается */
html { scrollbar-gutter: stable; }

body.scroll-locked { overflow: hidden; padding-right: var(--sb, 0px); }
/* фиксированные и липкие элементы живут вне потока: отступ им нужен свой,
   иначе шапка расширяется на ширину исчезнувшей полосы */
/* только элементы с position: fixed - остальные сдвигает отступ body */
body.scroll-locked .stricky-header,
body.scroll-locked .mobile-bar { padding-right: var(--sb, 0px); }
body.scroll-locked .scroll-to-top .scroll-top-inner { right: calc(26px + var(--sb, 0px)); }
body.scroll-locked .cart-toast { margin-left: calc(var(--sb, 0px) / -2); }

@media only screen and (max-width: 767px) {
    body.scroll-locked .scroll-to-top .scroll-top-inner { right: calc(14px + var(--sb, 0px)); }
}
