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

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;
    }

    /* Доп. выравнивание шапки */
    .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;
    }

    .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;
    }

    .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;
  }
}