/* =========================================
   БАЗА
   ========================================= */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Картинки адаптивные */
img {
    max-width: 100%;
    height: auto;
}

/* Подстраховка для контейнеров */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   ГАМБУРГЕР-МЕНЮ ПОД ВАШУ ВЕРСТКУ
   ========================================= */

.header-top {
    position: relative;
}

/* Обёртка логотипа и гамбургера (справа) */
.header-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Логотип (общие параметры) */
.logo {
    display: block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

/* Кнопка гамбургера (по умолчанию скрыта) */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
    margin-left: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span,
.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #333;
    transition: 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle span {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span::before {
    top: -8px;
}

.mobile-menu-toggle span::after {
    top: 8px;
}

/* Состояние "крестик" */
.mobile-menu-toggle.active span {
    background: transparent;
}

.mobile-menu-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Мобильное меню */
.mobile-nav {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.25);
    padding: 70px 20px 20px;
    box-sizing: border-box;
}
.mobile-nav.open {
    display: block;
}

/* Список пунктов мобильного меню */
.mobile-nav-list,
.mobile-nav-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.mobile-nav-list li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #222;
    text-decoration: none;
    font-size: 16px;
}
.mobile-nav-list li a:hover {
    color: #c00;
}

/* Затемнение фона при открытом меню */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
}
.mobile-nav-overlay.visible {
    display: block;
}

/* =========================================
   ОБЩИЙ АДАПТИВ
   ========================================= */

@media (max-width: 1200px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }
}

/* Планшеты и телефоны (до 1024) */
@media (max-width: 1024px) {
    .company__title,
    .address {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ОСНОВНАЯ МОБИЛЬНАЯ ВЕРСИЯ (≤768px) */
@media (max-width: 768px) {

    body {
        font-size: 16px;
        line-height: 1.5;
    }
    h1 { font-size: 22px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }

    /* Верхний блок: компания и логотип в столбик */
    .company {
        width: 100% !important;
        float: none !important;
    }

    .header-logo-wrap {
        width: 100% !important;
        float: none !important;
        margin-top: 10px;
        justify-content: space-between;
    }

    .logo {
        max-width: 60%;
    }

    .company__title,
    .address {
        width: 100% !important;
        float: none !important;
        text-align: left;
        margin-bottom: 5px;
    }

    .address {
        margin-top: 10px;
    }

    /* Скрываем десктопное меню, включаем гамбургер */
    .header-menu-desktop {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: block;
    }

    /* Слайдер и правый блок (product-menu) – в столбик */
    .header-bottom .col-xs-9,
    .header-bottom .col-xs-3,
    .header-bottom .product-menu {
        width: 100% !important;
        float: none !important;
        clear: both;
    }

    .header-bottom {
        width: 96% !important;
        max-width: 96% !important;
        margin: 0 auto !important;
        box-sizing: border-box;
    }

    #carousel-example-generic {
        margin-top: 20px !important; /* отступ от шапки */
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        overflow: hidden !important;
        position: relative !important;
        z-index: 1;
    }

    #carousel-example-generic .carousel-inner,
    #carousel-example-generic .item {
        width: 100% !important;
        max-width: 100% !important;
    }

    #carousel-example-generic .carousel-inner img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    .header-bottom .product-menu {
        margin-top: 15px !important;
        position: relative !important;
        z-index: 1;
    }

    .header-bottom .product-menu form,
    .header-bottom .product-menu ul {
        width: 100% !important;
    }

    /* Кнопки крупнее */
    button,
    .btn,
    input[type="submit"] {
        font-size: 16px;
        padding: 10px 16px;
    }

    /* Таблицы – на всю ширину и с горизонтальной прокруткой при необходимости */
    table {
        width: 100% !important;
        font-size: 14px;
    }
    .content table,
    .main table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Любые блоки с жёсткой шириной поджимать под экран */
    [style*="width:"] {
        max-width: 100% !important;
    }

    /* Убираем float у колонок */
    .col-xs-3,
    .col-xs-4,
    .col-xs-6,
    .col-xs-8,
    .col-xs-9,
    .col-xs-12 {
        float: none !important;
    }

    /* Футер – в столбик */
    footer .col-xs-3,
    footer .col-xs-4,
    footer .col-xs-6 {
        width: 100% !important;
        float: none !important;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Очень маленькие экраны (≤480px) */
@media (max-width: 480px) {

    body {
        font-size: 15px;
    }
    h1 { font-size: 20px; }
    h2 { font-size: 18px; }

    .logo {
        max-width: 70%;
    }

    .company__title span {
        display: block;
        margin-top: 3px;
        font-size: 22px !important;
    }

    /* Доп. выравнивание шапки */
    .header-top .company {
        order: 2;
    }
    .col-xs-9.company {
        padding: 0 15px 0 6%;
    }
    .header-top .header-logo-wrap {
        order: 1;
    }
    .header-top {
        display: flex;
        flex-direction: column;
    }
    .header-logo-wrap {
        justify-content: space-between;
        margin-bottom: 10px;
    }
}

/* =========================================
   ЛОГОТИП: РАЗМЕРЫ ДЛЯ РАЗНЫХ ЭКРАНОВ
   ========================================= */

@media (min-width: 769px) {
    .header-top-left .logo,
    .logo {
        width: 200px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .header-top-left .logo,
    .logo {
        margin: 0 auto;
        width: 140px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .header-top-left .logo,
    .logo {
        width: 120px;
        height: 50px;
    }
}

/* =========================================
   ШАПКА НА ПК (≥ 992px)
   ========================================= */

@media (min-width: 992px) {

    .header-top {
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .header-top-line {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        width: 100% !important;
        margin-bottom: 10px;
    }

    .header-top-line > .header-top-left,
    .header-top-line > .header-top-center {
        float: none !important;
        width: auto !important;
    }

    .header-top-left .logo {
        display: block;
        width: 200px;
        height: 80px;
        margin-right: 20px;
    }

    .header-top-center .company__title {
        text-align: left;
        font-size: 14px;
        line-height: 1.4;
    }

    .header-top-center .company__title span {
        font-weight: bold;
    }

    .company .address {
        margin-top: 5px;
    }

    .header-menu-desktop {
        display: block !important;
        margin-top: 10px;
    }
    .header-menu-desktop menu {
        padding: 0;
    }

    /* На ПК мобильное меню не нужно */
    .mobile-menu-toggle,
    .mobile-nav,
    .mobile-nav-overlay {
        display: none !important;
    }
}

/* =========================================
   МОБИЛЬНОЕ МЕНЮ
   ========================================= */

@media (max-width: 768px) {

    .header-menu-desktop {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .mobile-nav {
        display: none;
        position: fixed;
        z-index: 1000;
        top: 0;
        left: 0;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: #ffffff;
        box-shadow: 2px 0 8px rgba(0,0,0,0.25);
        padding: 70px 20px 20px;
        box-sizing: border-box;
    }
    .mobile-nav.open {
        display: block;
        text-align: center;
    }

    .mobile-nav-overlay {
        display: none;
        position: fixed;
        z-index: 999;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.4);
    }
    .mobile-nav-overlay.visible {
        display: block;
    }
}

/* =========================================
   СПЕЦПРЕДЛОЖЕНИЯ: СЛАЙДЫ И ТЕКСТ (≤768px)
   ========================================= */

@media (max-width: 768px) {

    .carousel-inner {
        width: 100% !important;
        max-width: 100% !important;
    }

    .carousel-inner .item {
        width: 100% !important;
        max-width: 100% !important;
    }

    .carousel-inner .item img {
        display: block;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    .carousel-inner .item .carousel-caption {
        left: 0 !important;
        right: 0 !important;
        bottom: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;

        padding: 8px 10px !important;
        margin: 0 !important;

        background: rgba(0, 0, 0, 0.65) !important;
        color: #fff !important;
        text-align: center !important;

        overflow: visible !important;
    }

    .carousel-inner .item .carousel-caption p {
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .carousel-inner .item .carousel-caption p span {
        display: block !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
    }

    .carousel-indicators {
        left: 50% !important;
        transform: translateX(-50%);
        width: auto !important;
        margin-left: 0 !important;
        bottom: 5px !important;
    }
}

@media (max-width: 480px) {
    .carousel-inner .item .carousel-caption {
        padding: 6px 8px !important;
        bottom: 6px !important;
    }

    .carousel-inner .item .carousel-caption p {
        font-size: 12px !important;
    }
}

/* =========================================
   НИЖНИЕ БЛОКИ САЙТА (≤768px)
   ========================================= */

@media (max-width: 768px) {

    .container,
    .row,
    .content,
    .main,
    #content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-left: 0;
    }

    .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4,
    .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8,
    .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
        float: none !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .search-block,
    .spec-offers,
    .advantages,
    .about-company,
    .faq-block,
    .useful-info,
    .news-block,
    .map-block,
    .contacts-block,
    footer,
    #footer {
        width: 100% !important;
        box-sizing: border-box;
        padding-left: 10px;
        padding-right: 10px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 15px;
        overflow: hidden;
    }

    section,
    .section {
        width: 100% !important;
        box-sizing: border-box;
        padding-left: 10px;
    }

    .search-block form,
    .product-menu form,
    .search,
    .search form {
        width: 100% !important;
    }

    .search-block input[type="text"],
    .search input[type="text"],
    .search-block input[type="search"],
    .search input[type="search"] {
        width: 100% !important;
        box-sizing: border-box;
    }

    .spec-offers .col-xs-6,
    .spec-offers .col-xs-4,
    .spec-offers .col-xs-3,
    .spec-offers-item,
    .special-offer,
    .offer-item {
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    .advantages .col-xs-4,
    .advantages .col-xs-3,
    .advantages-item {
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px;
    }

    .about-company p,
    .about-company .text,
    .about-company .col-xs-6 {
        width: 100% !important;
        float: none !important;
    }

    .faq-block .question,
    .faq-block .answer,
    .faq-block .col-xs-6 {
        width: 100% !important;
        float: none !important;
    }

    .useful-info .col-xs-4,
    .useful-info .col-xs-3,
    .useful-item,
    .news-block .col-xs-4,
    .news-block .col-xs-3,
    .news-item {
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px;
    }

    .map-block iframe,
    .map-block .map,
    .map-block .col-xs-6,
    .contacts-block .col-xs-6 {
        width: 100% !important;
        float: none !important;
        max-width: 100% !important;
    }

    .map-block iframe {
        height: 260px;
    }

    footer .col-xs-3,
    footer .col-xs-4,
    footer .col-xs-6,
    #footer .col-xs-3,
    #footer .col-xs-4,
    #footer .col-xs-6 {
        width: 100% !important;
        float: none !important;
        text-align: center;
        margin-bottom: 10px;
    }

    footer,
    #footer {
        padding-left: 10px;
        padding-right: 10px;
    }

    [style*="width:"] {
        max-width: 100% !important;
    }
}
/* ===== ФИКС БЛОКА ПОИСКА + СПЕЦПРЕДЛОЖЕНИЙ (≤768px) ===== */
@media (max-width: 768px) {

    /* Поиск на главной (строка "Поиск на сайте") — отдельной строкой */
    .header-bottom .product-menu form,
    .header-bottom .product-menu .search,
    .header-bottom .product-menu .search-block {
        position: relative !important;
        z-index: 2 !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }

    /* Оранжевый баннер/слайдер спецпредложений под поиском */
    .spec-offers,
    .specoffers,
    .home-spec,
    .home-special {
        position: relative !important;
        z-index: 1 !important;
        margin-top: 15px !important;
        margin-bottom: 15px !important;

        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;

        padding-left: 5% !important;
        padding-right: 5% !important;
        box-sizing: border-box;
    }

    /* Внутренний слайдер спецпредложений — без отрицательных отступов и "прилипания" к поиску */
    .spec-offers .carousel,
    .spec-offers .carousel-inner,
    .spec-offers .item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        float: none !important;
    }

    .spec-offers .item img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    /* Текстовая часть спецпредложения — внутри баннера, не вылезает и не перекрывает блоки ниже */
    .spec-offers .carousel-caption,
    .spec-offers .item .carousel-caption {
        left: 0 !important;
        right: 0 !important;
        bottom: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 10px !important;

        background: rgba(0, 0, 0, 0.6) !important;
        color: #fff !important;
        text-align: center !important;
        overflow: visible !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .spec-offers .carousel-caption p {
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .spec-offers .carousel-caption p span {
        display: block !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
    }

    /* "НАШИ ПРЕИМУЩЕСТВА" — строго ПОД блоком спецпредложений */
    .advantages {
        position: relative !important;
        z-index: 1 !important;
        margin-top: 15px !important;

        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;

        padding-left: 5% !important;
        padding-right: 5% !important;
        box-sizing: border-box;
    }

    .advantages .col-xs-4,
    .advantages .col-xs-3,
    .advantages-item {
        float: none !important;
        width: 100% !important;
        margin-bottom: 10px;
    }

    /* Общая защита от ширины >100% у спецпредложений/преимуществ */
    .spec-offers [style*="width:"],
    .advantages [style*="width:"] {
        max-width: 100% !important;
    }
}

/* ===== ФИКС ПОИСКА И СПЕЦПРЕДЛОЖЕНИЙ НА ГЛАВНОЙ (≤768px) ===== */
@media (max-width: 768px) {

    /* 1. Поиск — отдельный белый блок поверх баннера, с отступом сверху */
    .header-bottom .product-menu form,
    .header-bottom .product-menu .search {
        position: relative !important;
        z-index: 3 !important;
        background: #ffffff !important;
        padding: 8px 10px !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        box-sizing: border-box;
    }

    .header-bottom .product-menu input[type="text"],
    .header-bottom .product-menu input[type="search"] {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 2. Оранжевый слайдер спецпредложений — под поиском, не «залазит» наверх */
    .spec-offers {
        position: relative !important;
        z-index: 1 !important;

        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;

        margin-top: 15px !important;
        margin-bottom: 15px !important;

        padding-left: 5% !important;
        padding-right: 5% !important;
        box-sizing: border-box;
    }

    .spec-offers .carousel,
    .spec-offers .carousel-inner,
    .spec-offers .item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        float: none !important;
    }

    .spec-offers .item img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    /* Подписи на слайдах спецпредложений — внутри баннера и не за пределами */
    .spec-offers .carousel-caption {
        left: 0 !important;
        right: 0 !important;
        bottom: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 10px !important;

        background: rgba(0, 0, 0, 0.6) !important;
        color: #fff !important;
        text-align: center !important;
        overflow: visible !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .spec-offers .carousel-caption p {
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .spec-offers .carousel-caption p span {
        display: block !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
    }

    /* 3. Блок «Наши преимущества» — строго НИЖЕ спецпредложений */
    .advantages {
        position: relative !important;
        z-index: 1 !important;

        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;

        margin-top: 15px !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
        box-sizing: border-box;
    }

    .advantages .col-xs-4,
    .advantages .col-xs-3,
    .advantages-item {
        float: none !important;
        width: 100% !important;
        margin-bottom: 10px;
    }

    /* 4. На всякий случай — не даём чему‑либо вылезти за ширину */
    .spec-offers [style*="width:"],
    .advantages [style*="width:"] {
        max-width: 100% !important;
    }
}
/* ===== БЛОКИ: СПЕЦПРЕДЛОЖЕНИЯ, НАШИ ПРЕИМУЩЕСТВА, НЕМНОГО О КОМПАНИИ (≤768px) ===== */
@media (max-width: 768px) {

    /* Внешняя колонка col-xs-9, где сидят спецпредложения и преимущества */
    .header-bottom .col-xs-9 {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box;
    }

    /* Блок "Спецпредложения" */
    .spec-offer {
        position: relative !important;
        z-index: 1 !important;

        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;

        margin-top: 15px !important;
        margin-bottom: 15px !important;

        padding-left: 5% !important;
        padding-right: 5% !important;
        box-sizing: border-box;
    }

    /* Внутренний слайдер спецпредложений */
    #carousel-offer-generic,
    #carousel-offer-generic .carousel-inner,
    #carousel-offer-generic .item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        float: none !important;
    }

    #carousel-offer-generic .item img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    /* Подписи на слайдах спецпредложений */
    #carousel-offer-generic .carousel-caption {
        left: 0 !important;
        right: 0 !important;
        bottom: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 10px !important;

        background: rgba(0, 0, 0, 0.6) !important;
        color: #fff !important;
        text-align: center !important;
        overflow: visible !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    #carousel-offer-generic .carousel-caption p {
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    #carousel-offer-generic .carousel-caption p span {
        display: block !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
    }

    #carousel-offer-generic .left.carousel-control,
    #carousel-offer-generic .right.carousel-control {
        width: 12%;
    }

    /* Блок "Наши преимущества" — строго под спецпредложениями, карточки в столбик */
    .our-advant {
        position: relative !important;
        z-index: 1 !important;

        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;

        margin-top: 15px !important;
        margin-bottom: 15px !important;

        padding-left: 5% !important;
        padding-right: 5% !important;
        box-sizing: border-box;
    }

    .our-advant .col-xs-4 {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px;
        text-align: left;
    }

    .our-advant .col-xs-4 img {
        display: block;
        margin-bottom: 5px;
    }

    /* Блок "Немного о компании" — отдельной колонкой под преимуществами */
    .about-company {
        position: relative !important;
        z-index: 1 !important;

        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;

        margin-top: 15px !important;
        margin-bottom: 15px !important;

        padding-left: 5% !important;
        padding-right: 5% !important;
        box-sizing: border-box;
    }

    .about-company p {
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px;
    }

    /* Подстраховка от жёсткой ширины */
    .spec-offer [style*="width:"],
    .our-advant [style*="width:"],
    .about-company [style*="width:"] {
        max-width: 100% !important;
    }
}
/* ===== ФИКС ДЕСКТОПНЫХ СТИЛЕЙ ИЗ style.css ДЛЯ МОБИЛЬНОЙ ВЕРСИИ (≤768px) ===== */
@media (max-width: 768px) {

    /* 1. ШАПКА: убираем фиксированную высоту, даём контенту дышать */
    section.header {
        height: auto !important;
        background-size: cover !important;
        padding-bottom: 10px !important;
    }

    header {
        padding-top: 15px !important;
    }

    /* 2. ЛЕВАЯ КОЛОНКА КОНТЕНТА (где спецпредложения и преимущества) – на всю ширину */
    section.content .container .row .col-xs-9 {
        padding: 0 10px !important;
        width: 100% !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    /* 3. БЛОК "СПЕЦПРЕДЛОЖЕНИЯ" (spec-offer) */
    section.content .container .row .spec-offer {
        margin-top: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box;
    }

    /* Слайдер спецпредложений по ширине экрана */
    #carousel-offer-generic,
    #carousel-offer-generic .carousel-inner,
    #carousel-offer-generic .item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        float: none !important;
    }

    #carousel-offer-generic .item img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    /* Подписи на слайдах спецпредложений – адаптивные и читаемые */
    section.content .container .row .spec-offer .carousel-inner .carousel-caption {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 10px !important;
        bottom: 10px !important;

        background: rgba(0, 0, 0, 0.6) !important;
        color: #fff !important;
        text-shadow: none !important;
        text-align: center !important;
    }

    section.content .container .row .spec-offer .carousel-inner .carousel-caption p {
        line-height: 1.4 !important;
        font-size: 14px !important;
        text-transform: none !important;
        color: #fff !important;
    }

    section.content .container .row .spec-offer .carousel-inner .carousel-caption p span {
        line-height: 1.4 !important;
        margin-bottom: 4px !important;
        font-size: 16px !important;
        color: #fff !important;
        display: block !important;
    }

    /* 4. БЛОК "НАШИ ПРЕИМУЩЕСТВА" (our-advant) */
    section.content .container .row .our-advant {
        margin-top: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        float: none !important;
        clear: both !important;
        padding: 0 10px !important;
        box-sizing: border-box;
    }

    section.content .container .row .our-advant .col-xs-4 {
        padding: 0 !important;
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px;
    }

    section.content .container .row .our-advant img {
        width: 60px !important;
        float: left !important;
        margin-right: 10px;
    }

    section.content .container .row .our-advant p {
        padding: 10px 0 0 70px !important;
        font-size: 14px !important;
    }

    /* 5. БЛОК "НЕМНОГО О КОМПАНИИ" */
    section.content .container .row .about-company {
        margin-top: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box;
    }

    section.content .container .row .about-company p {
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px;
    }

    /* 6. ПРАВАЯ КОЛОНКА НА ГЛАВНОЙ (новости/баннеры) – под левым блоком или в столбик */
    section.content .container .row .col-xs-3 {
        /*padding: 15px 10px 0 10px !important;*/
        width: 100% !important;
        float: none !important;
        box-sizing: border-box;
    }

    /* 7. Любые фиксированные ширины из style.css подрезаем под экран */
    section.content [style*="width:"] {
        max-width: 100% !important;
    }
}
/* ===== PRODUCT-MENU (ПОИСК + МЕНЮ) НА МОБИЛЬНЫХ, ПОД СЛАЙДЕРОМ ===== */
@media (max-width: 768px) {

    /* Слайдер и product-menu — строго в столбик */
    .header-bottom .col-xs-9,
    .header-bottom .col-xs-3.product-menu {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box;
    }

    /* Слайдер — отдельным блоком, без перекрытий */
    #carousel-example-generic {
        margin-top: 20px !important;           /* отодвигаем от шапки */
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        overflow: hidden !important;
        position: relative !important;
        z-index: 1;
    }

    #carousel-example-generic .carousel-inner,
    #carousel-example-generic .item {
        width: 100% !important;
        max-width: 100% !important;
    }

    #carousel-example-generic .carousel-inner img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    /* PRОDUCT-MENU — сразу под слайдером, на всю ширину */
    .col-xs-3.product-menu {
        margin-top: 15px !important;
        padding: 10px 10px 15px 10px !important;
        position: relative !important;
        z-index: 1;
    }

    /* ФОРМА ПОИСКА */
    #mse2_form {
        padding: 0 !important;
        margin: 0 0 10px 0 !important;
    }

    #mse2_form .row {
        margin: 0 !important;
    }

    #mse2_form .form-group {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 5px 0 !important;
    }

    #mse2_form .form-control {
        width: 100% !important;
        box-sizing: border-box;
        border-radius: 0 !important;
    }

    #mse2_form .btn.btn-primary {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        display: block !important;
    }

    /* СПИСОК РАЗДЕЛОВ МЕНЮ — аккуратный столбик по ширине экрана */
    .product-menu > ul {
        list-style: none;
        padding: 0 !important;
        margin: 10px 0 0 0 !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .product-menu > ul > li {
        width: 100% !important;
    }

    .product-menu > ul > li > a {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
        padding: 8px 10px !important;
        font-size: 13px !important;
        border-bottom: 1px solid #000 !important;
        white-space: normal;
        word-wrap: break-word;
    }

    /* На всякий случай: обрезаем любые фиксированные ширины внутри product-menu */
    .product-menu [style*="width:"] {
        max-width: 100% !important;
    }
}
/* ===== ФИКС СПЕЦПРЕДЛОЖЕНИЙ И ПРЕИМУЩЕСТВ НА МОБИЛЬНЫХ (≤768px) ===== */
@media (max-width: 768px) {

    /* Левая колонка контента (где спецпредложения и преимущества) — на всю ширину */
    section.content .container .row .col-xs-9 {
        padding: 0 10px !important;
        width: 100% !important;
        margin-right: 0 !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box;
    }

    /* Блок "СПЕЦПРЕДЛОЖЕНИЯ" */
    section.content .container .row .spec-offer {
        margin-top: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box;
        position: relative !important;
        z-index: 1 !important;
    }

    /* Слайдер спецпредложений — на всю ширину экрана */
    #carousel-offer-generic,
    #carousel-offer-generic .carousel-inner,
    #carousel-offer-generic .item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        float: none !important;
    }

    #carousel-offer-generic .item img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    /* Подписи на слайдах — не вылезают за слайдер */
    section.content .container .row .spec-offer .carousel-inner .carousel-caption {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 10px !important;
        bottom: 10px !important;

        background: rgba(0, 0, 0, 0.6) !important;
        color: #fff !important;
        text-shadow: none !important;
        text-align: center !important;
    }

    section.content .container .row .spec-offer .carousel-inner .carousel-caption p {
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        text-transform: none !important;
        color: #fff !important;
    }

    section.content .container .row .spec-offer .carousel-inner .carousel-caption p span {
        display: block !important;
        margin-bottom: 4px !important;
        font-size: 16px !important;
        color: #fff !important;
    }

    /* Блок "НАШИ ПРЕИМУЩЕСТВА" — строго ниже спецпредложений, в столбик */
    section.content .container .row .our-advant {
        margin-top: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        float: none !important;
        clear: both !important;
        padding: 0 10px !important;
        box-sizing: border-box;
        position: relative !important;
        z-index: 1 !important;
    }

    section.content .container .row .our-advant .col-xs-4 {
        padding: 0 !important;
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px;
    }

    section.content .container .row .our-advant img {
        width: 60px !important;
        display: block !important;
        float: left !important;
        margin-right: 10px;
    }

    section.content .container .row .our-advant p {
        padding: 10px 0 0 70px !important;
        font-size: 14px !important;
    }

    /* Блок "НЕМНОГО О КОМПАНИИ" — ещё ниже */
    section.content .container .row .about-company {
        margin-top: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box;
        position: relative !important;
        z-index: 1 !important;
    }

    section.content .container .row .about-company p {
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px;
    }

    /* Подстраховка: убираем жёсткие width из style.css под этими блоками */
    section.content .container .row .spec-offer [style*="width:"],
    section.content .container .row .our-advant [style*="width:"],
    section.content .container .row .about-company [style*="width:"] {
        max-width: 100% !important;
    }
}
/* ===== ГЛАВНАЯ: ПОИСК/МЕНЮ ПОД СЛАЙДЕРОМ, СПЕЦПРЕДЛОЖЕНИЯ И ПРЕИМУЩЕСТВА НИЖЕ (≤768px) ===== */
@media (max-width: 768px) {

    /* 1. Общий ряд header-bottom: обе колонки в столбик, без флоатов */
    .row.header-bottom > .col-xs-9,
    .row.header-bottom > .col-xs-3.product-menu {
        float: none !important;
        width: 100% !important;
        clear: both !important;
        box-sizing: border-box;
    }

    /* 2. Главный слайдер — отдельным блоком над всем, не перекрывает логотип и поиск */
    #carousel-example-generic {
        margin-top: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        overflow: hidden !important;
        position: relative !important;
        z-index: 1;
    }

    #carousel-example-generic .carousel-inner,
    #carousel-example-generic .item {
        width: 100% !important;
        max-width: 100% !important;
    }

    #carousel-example-generic .carousel-inner img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    /* 3. Правый блок product-menu (поиск + меню) — СРАЗУ ПОД СЛАЙДЕРОМ, на всю ширину */
    .col-xs-3.product-menu {
        margin-top: 15px !important;
        padding: 10px 10px 15px 10px !important;
        position: relative !important;
        z-index: 2 !important;  /* выше спецпредложений и преимуществ */
    }

    /* Форма поиска адаптивная */
    #mse2_form {
        padding: 0 !important;
        margin: 0 0 10px 0 !important;
    }

    #mse2_form .row {
        margin: 0 !important;
    }

    #mse2_form .form-group {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 5px 0 !important;
    }

    #mse2_form .form-control {
        width: 100% !important;
        box-sizing: border-box;
        border-radius: 0 !important;
    }

    #mse2_form .btn.btn-primary {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        display: block !important;
    }

    /* Меню товаров — аккуратный столбик */
    .product-menu > ul {
        list-style: none;
        padding: 0 !important;
        margin: 10px 0 0 0 !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .product-menu > ul > li {
        width: 100% !important;
    }

    .product-menu > ul > li > a {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
        padding: 8px 10px !important;
        font-size: 13px !important;
        border-bottom: 1px solid #000 !important;
        white-space: normal;
        word-wrap: break-word;
    }

    /* 4. Левая колонка контента (где спецпредложения и преимущества) — ниже product-menu */

    section.content .container .row .col-xs-9 {
        padding: 0 10px !important;
        width: 100% !important;
        margin-right: 0 !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box;
        position: relative !important;
        z-index: 1 !important; /* ниже блока product-menu */
    }

    /* Блок "СПЕЦПРЕДЛОЖЕНИЯ" */
    section.content .container .row .spec-offer {
        margin-top: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box;
        position: relative !important;
        z-index: 1 !important;
    }

    #carousel-offer-generic,
    #carousel-offer-generic .carousel-inner,
    #carousel-offer-generic .item {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        float: none !important;
    }

    #carousel-offer-generic .item img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    /* Подписи на спец-слайдах не вылезают и не перекрывают нижние блоки */
    #carousel-offer-generic .carousel-caption {
        left: 0 !important;
        right: 0 !important;
        bottom: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 10px !important;

        background: rgba(0,0,0,0.6) !important;
        color: #fff !important;
        text-align: center !important;
        overflow: visible !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    #carousel-offer-generic .carousel-caption p {
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    #carousel-offer-generic .carousel-caption p span {
        display: block !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
        font-size: 16px !important;
    }

    /* 5. Блок "НАШИ ПРЕИМУЩЕСТВА" — ещё ниже, в столбик */
    .our-advant {
        margin-top: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        padding: 0 10px !important;
        box-sizing: border-box;
        position: relative !important;
        z-index: 1 !important;
    }

    .our-advant .col-xs-4 {
        padding: 0 !important;
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px;
    }

    .our-advant img {
        width: 60px !important;
        float: left !important;
        margin-right: 10px !important;
    }

    .our-advant p {
        padding: 10px 0 0 70px !important;
        font-size: 14px !important;
    }

    /* 6. "Немного о компании" — ещё ниже, на всю ширину */
    .about-company {
        margin-top: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        padding: 0 10px !important;
        box-sizing: border-box;
        position: relative !important;
        z-index: 1 !important;
    }

    .about-company p {
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px;
    }

    /* 7. Страхуемся от всех фиксированных ширин снизу */
    .header-bottom [style*="width:"],
    .col-xs-3.product-menu [style*="width:"],
    section.content .container .row .spec-offer [style*="width:"],
    .our-advant [style*="width:"],
    .about-company [style*="width:"] {
        max-width: 100% !important;
    }
}
@media (max-width: 768px) {
  section.header {
    height: auto !important;
    background-size: cover !important;
  }
}
/* Адаптив спецпредложений и преимуществ */
@media (max-width: 768px) {

  /* Левая колонка с контентом */
  section.content .container .row .col-xs-9 {
    width: 100% !important;
    margin-right: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box;
  }

  /* Блок "Спецпредложения" */
  .spec-offer {
    width: 100% !important;
    margin-top: 20px;
  }

  .spec-offer img {
    width: 100%;
    height: auto;
    display: block;
  }

  .spec-offer .carousel-inner {
    width: 100%;
  }

  .spec-offer .carousel-caption {
    position: static;          /* убрать абсолютное позиционирование, чтоб текст не вылазил наружу */
    padding: 10px;
    text-align: left;
  }

  .spec-offer .carousel-caption p {
    font-size: 16px;
    line-height: 1.3;
    color: #000;
  }

  .spec-offer .carousel-caption p span {
    display: block;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
  }

  /* Стрелки карусели чуть сдвинем, чтобы не мешали */
  .spec-offer .carousel-control {
    width: 10%;
  }

  /* Блок "Наши преимущества" – по одному элементу в строке */
  .our-advant {
    width: 100% !important;
    margin-top: 20px;
  }

  .our-advant .col-xs-4 {
    width: 100%;
    float: none;
    padding: 10px 0;
  }

  .our-advant img {
    float: left;
    width: 60px;
    height: auto;
  }

  .our-advant p {
    padding: 10px 0 0 70px;
    font-size: 14px;
  }

  /* "О компании" – тоже во всю ширину */
  .about-company {
    width: 100% !important;
    margin-top: 20px;
  }
}
/* Общие стили спецпредложений */
.spec-offer img {
  display: block;
  width: 100%;
  height: auto;
}

/* Подпись под картинкой — обычный поток, без absolute */
.offer-caption {
  background: rgba(0, 0, 0, 0.6);
  padding: 15px 20px;
  color: #fff;
}

.offer-caption p {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.offer-caption p span {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

/* Адаптив: на мобильных растягиваем всё по ширине и стопроцентно исключаем наложения */
@media (max-width: 768px) {

  section.content .container .row .col-xs-9,
  section.content .container .row .spec-offer {
    width: 100% !important;
    margin-right: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box;
  }

  #carousel-offer-generic,
  #carousel-offer-generic .carousel-inner,
  #carousel-offer-generic .item {
    width: 100% !important;
    height: auto !important;
  }

  /* текст баннера всегда под картинкой, не поверх следующего блока */
  .offer-caption {
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.7);
  }

  .offer-caption p {
    font-size: 16px;
  }

  .offer-caption p span {
    font-size: 18px;
  }

  /* "Наши преимущества" ниже слайдера и в столбик */
  .our-advant {
    width: 100% !important;
    margin-top: 20px !important;
    clear: both !important;
  }

  .our-advant .col-xs-4 {
    width: 100% !important;
    float: none !important;
    padding: 10px 0 !important;
  }
}
@media (min-width: 769px) {
  .offer-caption {
    position: absolute;
    left: 75px;
    bottom: 30px;
    width: 535px;
  }
}
/* Мобильная версия: до 768px */
@media (max-width: 768px) {

  /* Блок "Немного о компании" во всю ширину, без наползаний */
  section.content .container .row .about-company {
    width: 100% !important;
    margin: 15px 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box;
  }

  section.content .container .row .about-company h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  section.content .container .row .about-company p {
    font-size: 14px;
    line-height: 1.4;
  }

  /* Серый блок "У ВАС ЕСТЬ ВОПРОСЫ?" и кнопка */
  section.pre-foot {
    height: auto;                 /* вместо фиксированной */
    background-size: cover;
    padding: 15px 10px 20px 10px;
    box-sizing: border-box;
  }

  section.pre-foot .row .col-xs-9,
  section.pre-foot .row .col-xs-3 {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
  }

  section.pre-foot .col-xs-3 a {
    width: 100%;                  /* кнопка во всю ширину */
  }

  /* Футер – не сжатый, текст не наползает */
  section.footer {
    height: auto;
  }

  section.footer p {
    line-height: 1.4;
    padding: 8px 10px;
    font-size: 12px;
  }

  /* Кнопка "Задать вопрос" не перекрывает контент */
  .b24-widget-button-block,
  .b24-widget-button-position-left,
  .zadat-vopros,
  .callback-button {
    right: 10px !important;
    left: auto !important;
    top: auto !important;
    bottom: 10px !important;   /* перемещаем вниз */
    z-index: 1000;
  }

}

/* Адаптив для низа страницы */
@media (max-width: 768px) {

  /* Блок "Немного о компании" */
  section.content .container .row .about-company {
    width: 100% !important;
    margin: 15px 0 0 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box;
  }

  section.content .container .row .about-company h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  section.content .container .row .about-company p {
    font-size: 14px;
    line-height: 1.4;
  }

  /* Серый блок "У ВАС ЕСТЬ ВОПРОСЫ?" */
  section.pre-foot {
    height: auto !important;        /* убираем фиксированную высоту 260px */
    padding: 15px 10px 20px 10px;
    box-sizing: border-box;
    background-size: cover;
  }

  section.pre-foot .row .col-xs-9,
  section.pre-foot .row .col-xs-3 {
    width: 100% !important;         /* в одну колонку */
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
  }

  section.pre-foot .col-xs-3 a {
    width: 100% !important;         /* кнопка "Оставить заявку" во всю ширину */
  }

  /* Футер с копирайтом */
  section.footer {
    height: auto !important;        /* убираем фикс 50px */
  }

  section.footer p {
    padding: 8px 10px;
    line-height: 1.4;
    font-size: 12px;
  }

  /* Кнопка "Задать вопрос" – переносим вниз, чтобы не лезла на текст */
  /* подставьте сюда реальный класс, который видите в DevTools */
  .b24-widget-button-block,
  .b24-widget-button-position-left,
  .zadat-vopros,
  .callback-button {
    left: auto !important;
    right: 10px !important;
    top: auto !important;
    bottom: 10px !important;
    z-index: 1000;
  }
}
@media (max-width: 768px) {

  /* Блок "Немного о компании" */
  section.content .container .row .about-company {
    width: 100% !important;
    margin: 15px 0 0 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box;
  }

  section.content .container .row .about-company h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  section.content .container .row .about-company p {
    font-size: 14px;
    line-height: 1.4;
  }

  /* Серый блок "У ВАС ЕСТЬ ВОПРОСЫ?" */
  section.pre-foot {
    background-size: cover;
    padding: 15px 10px 20px 10px;  /* равномерные отступы */
  }

  section.pre-foot .row .col-xs-9,
  section.pre-foot .row .col-xs-3 {
    width: 100% !important;       /* в одну колонку */
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
  }

  section.pre-foot .col-xs-3 a {
    width: 100% !important;       /* кнопка "ОСТАВИТЬ ЗАЯВКУ" на всю ширину */
  }

  /* Футер с копирайтом */
  section.footer {
    padding: 8px 10px !important;
  }

  section.footer p {
    margin: 0;
    line-height: 1.4;
    font-size: 12px;
  }

  /* Кнопка "Задать вопрос" – переносим вправо вниз, чтобы не закрывала текст */
  /* замените селекторы на те, что увидите в DevTools у вашей кнопки */
  .b24-widget-button-block,
  .b24-widget-button-position-left,
  .zadat-vopros,
  .callback-button {
    left: auto !important;
    right: 10px !important;
    top: auto !important;
    bottom: 10px !important;
    z-index: 1000;
  }
}
/* Мобильный порядок формы: Имя -> Телефон -> Email -> Сообщение -> Кнопка */
@media (max-width: 768px) {

  /* 0. Сбрасываем всё лишнее для этой формы */
  .ajax_form.af_example,
  .ajax_form.af_example * {
    box-sizing: border-box;
  }

  /* 1. Форма – flex-колонка */
  .ajax_form.af_example {
    display: flex !important;
    flex-direction: column !important;
  }

  /* 2. Две внешние колонки – одна под другой */
  .ajax_form.af_example .col-xs-4,
  .ajax_form.af_example .col-xs-8 {
    float: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 3. Порядок колонок: сначала поля, потом сообщение */
  .ajax_form.af_example .col-xs-4 {
    order: 1;
    display: flex;
    flex-direction: column;
  }

  .ajax_form.af_example .col-xs-8 {
    order: 2;
  }

  /* 4. Внутри col-xs-4: три первых control-group — поля */
  .ajax_form.af_example .col-xs-4 .control-group:nth-child(1),
  .ajax_form.af_example .col-xs-4 .control-group:nth-child(2),
  .ajax_form.af_example .col-xs-4 .control-group:nth-child(3) {
    order: 1;
  }

  /* 5. Последний control-group (с кнопкой) – после блока сообщения */
  .ajax_form.af_example .col-xs-4 .control-group:last-child {
    order: 3;
  }
}
@media (max-width: 1024px) {
section.content .container .row .col-xs-9 {
    padding: 0 0 0 4% !important;  }
}


@media (max-width: 768px) {

    .banners {
    text-align: center;
  }

  .banners .item-banner {
    position: relative;
    display: inline-block;      /* чтобы центрировалось как блок */
    width: 50%;                /* на всю ширину родителя */
    max-width: 100%;
    margin: 0 auto 15px auto;
    overflow: hidden;           /* текст не вылезет за картинку */
    height: 98px;
  }

  .banners .item-banner img {
    display: block;
    margin: 0 auto;
    width: 100%;                /* делаем крупнее */
    height: auto;
  }

  /* Текст поверх картинки, по центру и внутри её границ */
  .banners .item-banner p {
    position: absolute;
    left: 50%;
    bottom: 10px;               /* чуть выше низа картинки */
    transform: translateX(-50%);
    max-width: 95%;             /* чтобы не выходил за края */
    margin: 0;
    padding: 4px 8px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.4);  /* затемнение под текстом для читаемости */
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    text-align: center;
    white-space: normal;        /* разрешаем перенос */
    word-wrap: break-word;
    top: 30% !important;
  }
}
/* Мобильное отображение блоков .item-banner */
@media (max-width: 480px) {

  .banners {
    text-align: center;
  }

  .banners .item-banner {
    position: relative;
    display: inline-block;      /* чтобы центрировалось как блок */
    width: 100%;                /* на всю ширину родителя */
    max-width: 100%;
    margin: 0 auto 15px auto;
    overflow: hidden;           /* текст не вылезет за картинку */
  }

  .banners .item-banner img {
    display: block;
    margin: 0 auto;
    width: 100%;                /* делаем крупнее */
    height: auto;
  }

  /* Текст поверх картинки, по центру и внутри её границ */
  .banners .item-banner p {
    position: absolute;
    left: 50%;
    bottom: 10px;               /* чуть выше низа картинки */
    transform: translateX(-50%);
    max-width: 95%;             /* чтобы не выходил за края */
    margin: 0;
    padding: 4px 8px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.4);  /* затемнение под текстом для читаемости */
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    text-align: center;
    white-space: normal;        /* разрешаем перенос */
    word-wrap: break-word;
  }
}

/* Единый размер картинок в карточках каталога 
.ms2_product .span2.col-xs-5 {
    width: 125px;
    height: 125px;           /* квадратное "окно" под фото *
    padding: 0;
    background: #fff;
    border-radius: 10px 0 0 10px;
    overflow: hidden;        /* всё лишнее обрежется 
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms2_product .span2.col-xs-5 img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
} */
/* Базовый вид карточек каталога (ПК и до 1024) */
.col-xs-6.ms2_product {
    padding: 0;
    width: 340px;
    height: 125px;
    margin-top: 15px;
}

/* "Окно" под картинку – одинаковый размер */
.ms2_product .span2.col-xs-5 {
    width: 125px;
    height: 125px;
    padding: 0;
    background: #fff;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms2_product .span2.col-xs-5 img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

/* Блок с названием */
.ms2_product .span10.col-xs-7 {
    background: #d7dee5;
    height: 100%;
    width: 215px;
    padding: 0px 6px;
    color: #000;
    box-sizing: border-box;
}

.ms2_product .span10.col-xs-7 a {
    display: block;
    font-family: 'OpenSansSemiboldRegular', Arial, sans-serif;
    font-size: 14px;
    color: #000;
    line-height: 1.3;
    text-decoration: none;
}
/* Планшеты и маленькие ПК: 769–1024 px */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Центрируем основной контент */
  section.content .container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* Левая колонка с карточками */
  section.content .container .row .col-xs-9 {
    width: 70% !important;
    float: left !important;
    margin-right: 2% !important;
   /* padding: 0 !important;*/
    box-sizing: border-box;
  }

  /* Правая колонка с меню */
  section.content .container .row .col-xs-3.product-menu {
    width: 28% !important;
    float: left !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  /* Карточки – по одной в строку, по ширине левой колонки */
  .col-xs-6.ms2_product {
    width: 100% !important;
    height: auto !important;
    margin-top: 10px !important;
    float: none !important;
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  .ms2_product .span2.col-xs-5 {
    width: 35% !important;
    max-width: 140px;
    height: auto !important;
  }

  .ms2_product .span10.col-xs-7 {
    width: 65% !important;
    height: auto !important;
  }
}
/* Мобильная адаптация: по одной карточке на строку */
@media (max-width: 768px) {

  /* Карточка – во всю ширину, столбиком */
  .col-xs-6.ms2_product {
    width: 100% !important;
    height: auto !important;
    margin: 10px 0 !important;
    float: none !important;
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  /* Слева – картинка фиксированной ширины */
  .ms2_product .span2.col-xs-5 {
    width: 35% !important;
    max-width: 120px;
    height: auto !important;
    border-radius: 10px 0 0 10px;
  }

  /* Справа – название, центрируем по вертикали */
  .ms2_product .span10.col-xs-7 {
    width: 65% !important;
    height: auto !important;
    padding: 8px !important;
    display: flex;
    align-items: center;
    background: #d7dee5;
  }

  .ms2_product .span10.col-xs-7 a {
    font-size: 14px;
    white-space: normal;
  }
}

/* Очень маленькие экраны – картинка сверху, текст снизу */
@media (max-width: 480px) {

  .col-xs-6.ms2_product {
    flex-direction: column;
    align-items: center;
  }

  .ms2_product .span2.col-xs-5 {
    width: 100% !important;
    max-width: 220px;
    border-radius: 10px 10px 0 0;
    margin: 0 auto;
  }

  .ms2_product .span10.col-xs-7 {
    width: 100% !important;
    border-radius: 0 0 10px 10px;
  }

  .ms2_product .span10.col-xs-7 a {
    font-size: 13px;
  }
}
/* Контейнер со списком категорий */
#mse2_results {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* центрируем карточки по горизонтали */
    gap: 15px 30px;            /* расстояние между карточками */
}

/* Каждая карточка */
.ms2_product {
    float: none !important;    /* убираем старые float'ы bootstrap */
    width: 100%;
    max-width: 360px;          /* ширина карточки, подберите под макет */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 10px;
}

/* Внутри карточки: картинка слева, текст справа */
.ms2_product > .span2,
.ms2_product > .span10 {
    float: none;               /* тоже убираем float */
}

.ms2_product .span2 {
    flex: 0 0 auto;
   /* margin-right: 12px;*/
}

.ms2_product .span10 {
    flex: 1 1 auto;
}

/* Немного выравниваем картинку и ссылку по красоте */
.ms2_product img {
    display: block;
    max-width: 100%;
    height: auto;
}

.ms2_product .ms2_form a {
    display: inline-block;
    font-size: 16px;
    line-height: 1.3;
}
/* Базовое оформление (десктоп) */
.select_product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-bottom: 15px;
}

/* сам блок сортировки */
#mse2_sort {
    display: flex;
    /*align-items: center;*/
    margin: 0;
    /*padding: 0;*/
}

/* убираем влияние сетки внутри */
#mse2_sort > label {
    float: none;
    width: auto;
    margin: 0 10px 0 0;
    padding: 0;
    display: inline-block;
    white-space: nowrap;      /* чтобы слово "Сортировать" не рвалось */
}

#mse2_sort > .col-sm-8 {
    float: none;
    width: auto;
    padding: 0;
    display: inline-block;
}

/* блок иконок вида */
#mse2_tpl {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

/* размеры иконок — подставьте свои фоновые картинки */
#mse2_tpl a {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ===== Адаптив ===== */

/* Планшет и меньше (можете поменять 768px на свою точку перелома) */
@media (max-width: 768px) {
    .select_product {
        flex-wrap: wrap;              /* разрешаем перенос */
        justify-content: center;
    }

    #mse2_sort {
        width: 100%;                  /* сортировка на всю строку */
        justify-content: center;
        margin-bottom: 10px;
    }

    #mse2_sort > label {
        margin-bottom: 5px;
    }

    #mse2_sort > .col-sm-8 {
        width: 36%;                  /* селект также на всю ширину */
    }

    #sort-product {
        width: 100%;
    }

    #mse2_tpl {
        width: 100%;                  /* блок иконок — отдельной строкой */
        justify-content: center;      /* центрируем */
    }
}

/* Совсем узкие экраны (например, старые телефоны) */
@media (max-width: 480px) {
    #mse2_sort {
        /*flex-direction: column;        подпись над селектом */
        align-items: stretch;
    }

    #mse2_sort > label {
        margin-right: 0;
        text-align: left;
    }
}

@media (max-width: 768px) {
#mse2_tpl {
    position: absolute;
    right: -22px;    }
}

@media (max-width: 768px) {
    #mse2_tpl {
        position: absolute;
        right: -33%;
    }
    #mse2_sort > .col-sm-8 {
        width: 36%;
        left: -28%;
        z-index: 10000;
    }

}
/* Заголовок блока */
.haracters {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Каждая "строка" характеристик */
.haracters + .row,
.haracters + .row ~ .row {
    display: flex;
    flex-wrap: wrap;      /* разрешаем перенос внутри строки */
    margin: 0;
}

/* левая и правая ячейка */
.br1 {
    padding: 6px 10px;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
}

/* Лейбл слева */
.haracters + .row .br1:first-child,
.haracters + .row ~ .row .br1:first-child {
    flex: 0 0 55%;        /* фиксированная ширина колонки лейбла */
    font-weight: 500;
}

/* Значение справа */
.haracters + .row .br1:last-child,
.haracters + .row ~ .row .br1:last-child {
    flex: 1 1 45%;        /* занимает оставшееся место */
    text-align: right;    /* по желанию, можно убрать */
}

/* ===== Адаптив ===== */

/* На больших экранах можно сделать лейбл уже, если хотите */
@media (min-width: 992px) {
    .haracters + .row .br1:first-child,
    .haracters + .row ~ .row .br1:first-child {
        flex-basis: 40%;
    }
    .haracters + .row .br1:last-child,
    .haracters + .row ~ .row .br1:last-child {
        flex-basis: 60%;
    }
}

/* На мобильных просто чуть расширим лейбл, чтобы меньше ломался текст */
@media (max-width: 767px) {
    .haracters + .row .br1:first-child,
    .haracters + .row ~ .row .br1:first-child {
        flex-basis: 60%;
    }
    .haracters + .row .br1:last-child,
    .haracters + .row ~ .row .br1:last-child {
        flex-basis: 40%;
    }
}
