/* AKB 2026-11-15: мобильная версия (≤767px). Подключается в common/header.tpl после akb_product.css. */
@media (max-width: 767px) {
    /* Главная: в шапке второй поиск дублирует большой поиск в первом экране */
    body.akb-home-stage1 .mobsearch { display: none !important; }

    /* Категории: теги-фильтры одной лентой с прокруткой вместо полэкрана кнопок */
    #content .module-tile .tiles {
        flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; gap: 8px; padding: 2px 2px 6px; height: auto !important; max-height: none !important;
    }
    #content .module-tile .tiles::-webkit-scrollbar { display: none; }
    #content .module-tile .tiles > a { flex: 0 0 auto; white-space: nowrap; margin: 0 !important; }
    #content .module-tile .button_tiles { display: none !important; }

    /* Карточки в списках: крупное фото (в кадре много пустых полей — слегка увеличиваем), без одинаковых у всех строк «Установка / Доставка» */
    #content .product-grid .product-thumb { padding: 12px 14px 14px !important; }
    #content .product-grid .product-thumb .image { height: 270px !important; min-height: 0 !important; overflow: hidden; }
    #content .product-grid .product-thumb .image .akb-card-photo { display: flex; align-items: center; justify-content: center; height: 100%; }
    #content .product-grid .product-thumb .image .akb-card-photo img {
        width: 270px !important; height: 270px !important; max-width: 100% !important; max-height: none !important;
        object-fit: contain; transform: scale(1.15);
    }
    #content .product-grid .product-services { display: none !important; }
}

/* AKB 2026-11-15: заметный поиск в шапке — телефон (.mobsearch) и компьютер (.bigsearch) */
#top2 .mobsearch .search.input-group,
.bigsearch .search.input-group {
    display: flex !important; width: 100% !important; margin: 0 !important; padding: 0; border: 0; background: none; box-shadow: none;
}
#top2 .mobsearch .search input.form-control,
.bigsearch .search input.form-control {
    flex: 1; width: auto !important; min-width: 0; float: none !important;
    height: 46px !important; padding: 0 14px 0 40px !important; font-size: 16px !important; color: #142b45;
    background: #f2f4f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center !important;
    border: 1.5px solid #f2f4f7 !important; border-radius: 12px 0 0 12px !important; box-shadow: none !important;
    transition: border-color .15s, background-color .15s;
}
#top2 .mobsearch .search input.form-control:focus,
.bigsearch .search input.form-control:focus { border-color: #2787f5 !important; background-color: #fff !important; outline: 0; }
#top2 .mobsearch .search input.form-control::placeholder,
.bigsearch .search input.form-control::placeholder { color: #8a94a6; }
#top2 .mobsearch .search .input-group-btn,
.bigsearch .search .input-group-btn { display: block !important; flex: 0 0 auto; width: auto !important; overflow: visible; }
#top2 .mobsearch .search .search-button,
.bigsearch .search .search-button {
    width: auto !important; min-width: 54px; height: 46px !important; padding: 0 !important; border: 0 !important;
    border-radius: 0 12px 12px 0 !important; background: #2787f5 !important; color: #fff !important; box-shadow: none !important;
    transition: background-color .15s;
}
#top2 .mobsearch .search .search-button:hover,
.bigsearch .search .search-button:hover { background: #1a6fd6 !important; }
#top2 .mobsearch .search .search-button i,
.bigsearch .search .search-button i { font-size: 19px; color: #fff; }
.bigsearch .search .search-button { min-width: 64px; }

@media (max-width: 767px) {
    /* полоса-тень под шапкой → тонкая линия */
    #top2 { box-shadow: none !important; border-bottom: 1px solid #eef0f4; }
    #top2 .mobsearch { padding: 6px 0 4px !important; }
}

/* AKB 2026-11-15: панель «Купить» (создаёт akb_mobile.js) и анимации */
.akb-buybar { display: none; }
@media (max-width: 767px) {
    .akb-buybar {
        display: flex; position: fixed; left: 8px; right: 8px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 999;
        align-items: center; gap: 12px; padding: 10px 10px 10px 16px; background: #fff; border-radius: 16px;
        box-shadow: 0 8px 28px rgba(20, 43, 69, .18); transform: translateY(140%); opacity: 0; pointer-events: none;
        transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
    }
    .akb-buybar.is-visible { transform: none; opacity: 1; pointer-events: auto; }
    .akb-buybar__price { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
    .akb-buybar__main { font-size: 20px; font-weight: 700; color: #ef3124; white-space: nowrap; }
    .akb-buybar__sub { font-size: 11.5px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .akb-buybar__sub:empty { display: none; }
    .akb-buybar__btn {
        flex: 0 0 auto; height: 46px; padding: 0 26px; border: 0; border-radius: 12px; background: #2787f5; color: #fff;
        font-size: 16px; font-weight: 600;
    }
    body.akb-buybar-on .b24-widget-button-wrapper { bottom: 158px !important; transition: bottom .28s; }
}
@keyframes akb-press { 0% { transform: scale(1); } 40% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes akb-bump { 0% { transform: scale(1); } 30% { transform: scale(1.3) translateY(-3px); } 60% { transform: scale(.92); } 100% { transform: scale(1); } }
.akb-press { animation: akb-press .28s ease; }
.akb-bump { animation: akb-bump .55s cubic-bezier(.3, 1.4, .5, 1); }
@media (prefers-reduced-motion: reduce) { .akb-press, .akb-bump { animation: none; } .akb-buybar { transition: none; } }

/* AKB 2026-11-15: всплывашка «Товар в корзине» (akb_mobile.js) */
.akb-toast { display: none; }
@media (max-width: 767px) {
    .akb-toast {
        display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 1001;
        align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 14px; background: #142b45; color: #fff;
        font-size: 15px; box-shadow: 0 10px 30px rgba(20, 43, 69, .3);
        transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease;
    }
    body.akb-buybar-on .akb-toast { bottom: calc(158px + env(safe-area-inset-bottom, 0px)); }
    .akb-toast.is-visible { transform: none; opacity: 1; pointer-events: auto; }
    .akb-toast__ok { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #1f9d55; font-size: 14px; font-weight: 700; }
    .akb-toast__text { flex: 1; }
    .akb-toast__go { padding: 8px 14px; border-radius: 10px; background: #2787f5; color: #fff !important; font-weight: 600; text-decoration: none !important; }
}

/* AKB 2026-11-16: кнопка после добавления в корзину */
#button-cart.akb-in-cart, .akb-buybar__btn.akb-in-cart { background: #1f9d55 !important; border-color: #1f9d55 !important; color: #fff !important; }

/* Envybox (кнопка звонка, подключается через GTM): была 120px и закрывала товар/кнопки — меньше и в угол */
a.callbackkiller.cbk-phone { top: auto !important; right: auto !important; left: 8px !important; bottom: 8px !important; transform: scale(.55) !important; transform-origin: left bottom !important; }
@media (max-width: 767px) {
    a.callbackkiller.cbk-phone { left: 6px !important; bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; transform: scale(.47) !important; }
    body.akb-buybar-on a.callbackkiller.cbk-phone { bottom: calc(154px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* reCAPTCHA на входе/регистрации — по центру, без float */
#content [data-akb-auth] #recaptcha1, #content .akb-auth #recaptcha1, #content .akb-auth div[id^="recaptcha"] {
    float: none !important; display: flex; justify-content: center; max-width: 100%; margin: 0 0 16px;
}

/* AKB 2026-11-16: фильтр OCFilter на телефоне — шторка снизу (поведение — akb_mobile.js) */
.akb-filter-btn, .akb-ocf-backdrop { display: none; }
@media (max-width: 767px) {
    .akb-filter-btn {
        display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin: 0 0 12px;
        border: 1.5px solid #2787f5; border-radius: 12px; background: #fff; color: #2787f5; font-size: 16px; font-weight: 600;
    }
    .akb-filter-btn:active { background: #eef5ff; }
    .akb-filter-btn__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #2787f5; color: #fff; font-size: 13px; line-height: 22px; }

    .ocf-offcanvas.ocfilter-mobile {
        left: 0 !important; right: 0; width: 100% !important; top: auto !important; bottom: 0; height: 86vh !important; height: 86dvh !important;
        border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(20, 43, 69, .22); z-index: 1100;
        transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); visibility: hidden;
    }
    .ocf-offcanvas.ocfilter-mobile.active { transform: none; visibility: visible; }
    .ocf-offcanvas.ocfilter-mobile .ocfilter-mobile-handle { display: none !important; }
    .ocf-offcanvas.ocfilter-mobile .ocf-offcanvas-body { padding-bottom: 96px; overscroll-behavior: contain; border-radius: 20px 20px 0 0; }
    .ocf-offcanvas.ocfilter-mobile .panel { border: 0; box-shadow: none; margin: 0; }
    .ocf-offcanvas.ocfilter-mobile .panel-heading {
        position: sticky; top: 0; z-index: 3; padding: 22px 56px 14px 18px; background: #fff; border-bottom: 1px solid #eef0f4;
        font-size: 19px; font-weight: 700; color: #142b45;
    }
    .ocf-offcanvas.ocfilter-mobile .panel-heading::before {
        content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #d5dae1;
    }
    .akb-ocf-close {
        position: absolute; top: 12px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f2f4f7;
        color: #142b45; font-size: 26px; line-height: 40px;
    }
    .ocf-offcanvas.ocfilter-mobile .ocfilter-option { padding: 0 18px; border-left: 0; border-right: 0; border-color: #eef0f4; }
    .ocf-offcanvas.ocfilter-mobile .ocf-option-name {
        position: relative; display: flex; align-items: center; gap: 8px; padding: 16px 28px 16px 0; margin: 0;
        font-size: 16px; font-weight: 600; color: #142b45; cursor: pointer;
    }
    .ocf-offcanvas.ocfilter-mobile .ocf-option-name::after {
        content: ''; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
        border-right: 2px solid #8a94a6; border-bottom: 2px solid #8a94a6; transform: rotate(45deg); transition: transform .2s;
    }
    .ocf-offcanvas.ocfilter-mobile .ocfilter-option.akb-collapsed .ocf-option-name::after { transform: rotate(-45deg); }
    .ocf-offcanvas.ocfilter-mobile .ocf-option-name[data-count]::before {
        content: attr(data-count); order: 2; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #2787f5; color: #fff;
        font-size: 12px; line-height: 20px; text-align: center;
    }
    .ocf-offcanvas.ocfilter-mobile .ocfilter-option.akb-collapsed .ocf-option-values,
    .ocf-offcanvas.ocfilter-mobile .ocfilter-option.akb-collapsed .collapse-value,
    .ocf-offcanvas.ocfilter-mobile .ocfilter-option.akb-collapsed .ocf-option-values + * { display: none !important; }
    .ocf-offcanvas.ocfilter-mobile .ocf-option-values { padding-bottom: 14px; }
    .ocf-offcanvas.ocfilter-mobile .ocf-option-values label { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0; font-size: 15px; color: #142b45; }
    .ocf-offcanvas.ocfilter-mobile .ocf-option-values input[type="checkbox"],
    .ocf-offcanvas.ocfilter-mobile .ocf-option-values input[type="radio"] { width: 20px; height: 20px; margin: 0; accent-color: #2787f5; }
    /* «Показать N товаров» — закреплённая кнопка внизу шторки */
    .ocf-offcanvas.ocfilter-mobile .ocfilter-option-popover {
        position: fixed !important; left: 12px !important; right: 12px !important; top: auto !important;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important; max-width: none !important; width: auto !important;
        margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; z-index: 5;
    }
    .ocf-offcanvas.ocfilter-mobile .ocfilter-option-popover .arrow { display: none !important; }
    .ocf-offcanvas.ocfilter-mobile .ocfilter-option-popover .popover-content { padding: 0 !important; }
    .ocf-offcanvas.ocfilter-mobile .ocfilter-option-popover .btn {
        display: block; width: 100%; height: 52px; border: 0; border-radius: 14px; background: #2787f5 !important; color: #fff;
        font-size: 16px; font-weight: 600; box-shadow: 0 8px 24px rgba(39, 135, 245, .35);
    }
    .akb-ocf-backdrop {
        display: block; position: fixed; inset: 0; z-index: 1090; background: rgba(20, 43, 69, .45);
        opacity: 0; pointer-events: none; transition: opacity .25s ease;
    }
    body.akb-ocf-open .akb-ocf-backdrop { opacity: 1; pointer-events: auto; }
}

/* AKB 2026-11-16: карточки статей на главной (#blog_mod) — обложка во всю ширину, заголовок, 3 строки текста, «Читать статью» */
body #blog_mod.inhomeblogmod .owl-item { padding: 4px 0 14px; }
body #blog_mod.inhomeblogmod .product-layout { padding: 0 8px !important; }
body #blog_mod.inhomeblogmod .blog-list {
    height: 100%; margin: 0 !important; padding: 0 !important; overflow: hidden; background: #fff;
    border: 1px solid #e6e9ef !important; border-radius: 16px !important; box-shadow: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}
body #blog_mod.inhomeblogmod .blog-list:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 43, 69, .12) !important; }
body #blog_mod.inhomeblogmod .blog-list .caption.review-caption { height: auto !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; }
body #blog_mod.inhomeblogmod .blog-list .caption .image {
    float: none !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
    aspect-ratio: 16 / 9; overflow: hidden; background: #f2f4f7; border-radius: 0 !important;
}
body #blog_mod.inhomeblogmod .blog-list .caption .image a { display: block; width: 100%; height: 100%; }
body #blog_mod.inhomeblogmod .blog-list .caption .image img {
    float: none !important; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important;
    object-fit: cover; opacity: 1 !important; transition: transform .4s ease !important;
}
body #blog_mod.inhomeblogmod .blog-list:hover .caption .image img { transform: scale(1.04); }
body #blog_mod.inhomeblogmod .blog-list .opisb { padding: 16px 16px 0 !important; margin: 0 !important; }
body #blog_mod.inhomeblogmod .blog-list .opisb h4 {
    height: auto !important; margin: 0 !important; font-size: 17px !important; line-height: 1.3 !important; font-weight: 700 !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body #blog_mod.inhomeblogmod .blog-list .opisb h4 a { color: #142b45 !important; text-decoration: none !important; }
body #blog_mod.inhomeblogmod .blog-list .description {
    padding: 8px 16px 0 !important; margin: 0 !important; font-size: 14px !important; line-height: 1.45 !important; color: #5f6d7e !important;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
body #blog_mod.inhomeblogmod .blog-list .caption.review-caption::after {
    content: 'Читать статью →'; display: block; margin-top: auto; padding: 12px 16px 16px; color: #2787f5; font-size: 14px; font-weight: 600;
}

/* AKB 2026-11-16: «О магазине» — текст из админки обёрнут в <font face=Arial><b>, весь жирный; приводим к обычному тексту сайта */
.aboutstore2 font, .aboutstore2 b, .aboutstore2 strong { font-family: inherit !important; font-weight: inherit !important; }
.aboutstore2 .rev_slider > div:not(.heading_h) { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: #3b4a5a; }
.aboutstore2 .rev_slider > .heading_h + div { font-size: 16px; font-weight: 600; color: #142b45; }

/* AKB 2026-11-16: меню «Каталог товаров» на компьютере — скругления, тень, подсветка пунктов, плавное появление */
@media (min-width: 992px) {
    @keyframes akbMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
    @keyframes akbSubIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
    #menu2.dblock .podmenu2 { animation: akbMenuIn .18s ease-out; }
    #menu2 .podmenu2 { padding: 8px !important; border: 1px solid #eef0f4; border-radius: 16px !important; box-shadow: 0 20px 50px rgba(20, 43, 69, .18) !important; }
    #menu2 .revlevel_1 > .title > a {
        display: flex !important; align-items: center; margin: 1px 0; padding: 9px 14px !important; border-radius: 10px;
        font-size: 15px !important; color: #142b45 !important; transition: background-color .12s, color .12s;
    }
    #menu2 .revlevel_1 > .title > a:hover, #menu2 .revlevel_1.open > .title > a { background: #eef5ff !important; color: #2787f5 !important; }
    #menu2 .revlevel_1 > .title .arrow-btn { margin-left: auto; color: #a3adbb; }
    #menu2 .revlevel_1.open > .title .arrow-btn { color: #2787f5; }
    #menu2 .child-box { margin-left: 8px; padding: 22px 26px !important; border: 1px solid #eef0f4; border-radius: 16px !important; box-shadow: 0 20px 50px rgba(20, 43, 69, .18) !important; }
    #menu2 .revlevel_1.open .child-box { animation: akbSubIn .16s ease-out; }
    #menu2 .child-box li.glavli { margin-bottom: 18px !important; }
    #menu2 .child-box li.glavli > a { display: block; margin: 0 0 6px !important; padding: 0 !important; }
    #menu2 .child-box li.glavli > a b { font-size: 12px !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase; color: #8a94a6 !important; }
    #menu2 .child-box ul.lastul { margin: 0 !important; padding: 0 !important; }
    #menu2 .child-box ul.lastul li a {
        display: inline-block; margin: 0 0 0 -10px !important; padding: 4px 10px !important; border-radius: 8px;
        font-size: 14.5px !important; color: #142b45 !important; transition: background-color .12s, color .12s;
    }
    #menu2 .child-box ul.lastul li a:hover { background: #eef5ff; color: #2787f5 !important; }
    #menu2 .child-box ul.lastul li a i.fa-minus { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { #menu2 .podmenu2, #menu2 .child-box { animation: none !important; } }

/* AKB 2026-11-16: меню каталога — иконки-плитки у разделов и больше воздуха */
@media (min-width: 992px) {
    #menu2 .podmenu2 { padding: 10px !important; }
    #menu2 .revlevel_1 > .title > a { gap: 12px; padding: 8px 12px !important; margin: 2px 0; font-size: 15.5px !important; font-weight: 500; --akb-ico: none; }
    #menu2 .revlevel_1 > .title > a > i.am_category_icon {
        position: relative; display: inline-block !important; flex: 0 0 36px; width: 36px !important; height: 36px; margin: 0 !important;
        border-radius: 10px; background: #eef5ff; transition: background-color .15s, transform .15s;
    }
    #menu2 .revlevel_1 > .title > a > i.am_category_icon::before {
        content: '' !important; position: absolute; inset: 8px; background: #2787f5; transition: background-color .15s;
        -webkit-mask: var(--akb-ico) no-repeat center / contain; mask: var(--akb-ico) no-repeat center / contain;
    }
    #menu2 .revlevel_1 > .title > a:hover > i.am_category_icon, #menu2 .revlevel_1.open > .title > a > i.am_category_icon { background: #2787f5; transform: scale(1.06); }
    #menu2 .revlevel_1 > .title > a:hover > i.am_category_icon::before, #menu2 .revlevel_1.open > .title > a > i.am_category_icon::before { background: #fff; }
    #menu2 .revlevel_1 > .title > a[href$="akkumulyator-avtomobilnyj/"] { --akb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M6 4v3M16 4v3M5.5 13.5h4M7.5 11.5v4M13.5 13.5h3'/%3E%3C/svg%3E"); }
    #menu2 .revlevel_1 > .title > a[href*="legkovye"] { --akb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17v-4l2-5a2 2 0 0 1 2-1.3h10A2 2 0 0 1 19 8l2 5v4M3 13h18M9 17h6'/%3E%3Ccircle cx='6.5' cy='17' r='2'/%3E%3Ccircle cx='17.5' cy='17' r='2'/%3E%3C/svg%3E"); }
    #menu2 .revlevel_1 > .title > a[href*="gruzovye"] { --akb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5h12v11H2zM14 9h4l4 4v3h-8'/%3E%3Ccircle cx='6.5' cy='17.5' r='2'/%3E%3Ccircle cx='17.5' cy='17.5' r='2'/%3E%3C/svg%3E"); }
    #menu2 .revlevel_1 > .title > a[href*="motocikl"] { --akb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='16.5' r='3.5'/%3E%3Ccircle cx='19' cy='16.5' r='3.5'/%3E%3Cpath d='M5 16.5 9 10h5l5 6.5M13 10l-2-4h3'/%3E%3C/svg%3E"); }
    #menu2 .revlevel_1 > .title > a[href*="lodochnye"] { --akb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 16.5 5 20h14l2.5-3.5zM12 3v11M12 4.5l6 9.5h-6'/%3E%3C/svg%3E"); }
    #menu2 .revlevel_1 > .title > a[href*="tyagovye"] { --akb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18V9h6l3 5v4M3 14h9M16 3v15h5'/%3E%3Ccircle cx='5.5' cy='18.5' r='1.8'/%3E%3Ccircle cx='10.5' cy='18.5' r='1.8'/%3E%3C/svg%3E"); }
    #menu2 .revlevel_1 > .title > a[href*="/ibp/"] { --akb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2.5' width='14' height='19' rx='2.5'/%3E%3Cpath d='M12.5 7l-2.5 4.5h4L11.5 16'/%3E%3C/svg%3E"); }
    #menu2 .revlevel_1 > .title > a[href*="zaryadnye"] { --akb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
    #menu2 .revlevel_1 > .title > a[href*="soputstv"] { --akb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.4 2.4-2.6-.6-.6-2.6z'/%3E%3C/svg%3E"); }
    #menu2 .revlevel_1 > .title > a[href*="shiny"] { --akb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M12 3v5.5M12 15.5V21M3 12h5.5M15.5 12H21'/%3E%3C/svg%3E"); }
    #menu2 .revlevel_1 > .title > a[href="#"] { --akb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M2 12h3M19 12h3M4.9 19.1 7 17M17 7l2.1-2.1'/%3E%3C/svg%3E"); }
    #menu2 .child-box { padding: 28px 34px !important; }
    #menu2 .child-box li.glavli { margin-bottom: 22px !important; }
    #menu2 .child-box li.glavli > a { margin: 0 0 8px !important; }
    #menu2 .child-box ul.lastul li { margin: 1px 0; }
    #menu2 .child-box ul.lastul li a { padding: 5px 10px !important; font-size: 15px !important; }
}

/* AKB 2026-11-16: сплошное мега-меню каталога (ПК). Включается классом #menu2.akb-mega из akb_mobile.js */
@media (min-width: 992px) {
    @keyframes akbMegaFade { from { opacity: 0; } to { opacity: 1; } }
    #menu2.akb-mega .podmenu2 { border-radius: 18px 0 0 18px !important; border-right: 0 !important; box-shadow: 0 24px 60px rgba(20, 43, 69, .18) !important; clip-path: inset(-90px 0 -90px -90px); }
    #menu2.akb-mega .revlevel_1 .childrenList { display: none !important; }
    #menu2.akb-mega .revlevel_1.akb-act .childrenList {
        display: block !important; position: absolute !important; left: var(--akb-rail, 294px) !important; top: 0 !important;
        width: var(--akb-mega-w, 900px) !important; height: var(--akb-mega-h, 640px) !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
        background: #fff !important; border: 1px solid #eef0f4; border-left-color: #f0f2f6; border-radius: 0 18px 18px 0;
        box-shadow: 0 24px 60px rgba(20, 43, 69, .18); clip-path: inset(-90px -90px -90px 0); overflow: hidden; z-index: 3;
    }
    #menu2.akb-mega .childrenList .child-box {
        display: block !important; width: 100% !important; height: 100% !important; max-height: none !important; min-height: 0 !important; overflow-y: auto !important;
        margin: 0 !important; padding: 26px 34px 30px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
        animation: none !important; overscroll-behavior: contain;
    }
    /* шапка раздела */
    #menu2 .akb-mega-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid #eef0f4; }
    #menu2 .akb-mega-head__t { font-size: 22px; line-height: 1.2; font-weight: 700; color: #142b45; }
    #menu2 a.akb-mega-head__all { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 10px 18px; border-radius: 999px; background: #2787f5; color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: background-color .15s, transform .15s; }
    #menu2 a.akb-mega-head__all:hover { background: #1670d8; transform: translateX(2px); }
    /* группы — колонками */
    #menu2.akb-mega ul.cat_dop { display: block !important; columns: 4 200px; column-gap: 40px; width: auto !important; margin: 0 !important; padding: 0 !important; }
    #menu2.akb-mega ul.cat_dop > .column { display: contents !important; }
    #menu2.akb-mega ul.cat_dop li.glavli { display: block; break-inside: avoid; float: none !important; width: auto !important; margin: 0 0 24px !important; padding: 0 !important; }
    #menu2.akb-mega ul.cat_dop li.glavli > a { display: block !important; margin: 0 0 8px !important; padding: 0 10px !important; }
    #menu2.akb-mega ul.cat_dop li.glavli > a > i.am_category_icon { display: none !important; }
    #menu2.akb-mega ul.lastul li { display: block !important; height: auto !important; min-height: 0 !important; line-height: 1.35 !important; margin: 0 !important; padding: 0 !important; }
    #menu2.akb-mega ul.cat_dop { float: none !important; max-width: none !important; }
    #menu2.akb-mega ul.cat_dop li.glavli { height: auto !important; }
    #menu2.akb-mega ul.lastul li a {
        display: block !important; height: auto !important; margin: 0 !important; padding: 6px 10px !important; border-radius: 9px;
        font-size: 15px !important; line-height: 1.35 !important; color: #142b45 !important; text-decoration: none !important;
    }
    #menu2.akb-mega ul.lastul li a:hover { background: #eef5ff; color: #2787f5 !important; }
    /* одиночные подразделы (без вложенных пунктов) — карточками */
    #menu2.akb-mega ul.cat_dop.akb-leafs { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; columns: auto; }
    #menu2.akb-mega ul.cat_dop li.glavli.akb-leaf { margin: 0 0 10px !important; }
    #menu2.akb-mega ul.cat_dop.akb-leafs li.glavli.akb-leaf { margin: 0 !important; }
    #menu2.akb-mega ul.cat_dop.akb-leafs + ul.cat_dop { margin-top: 28px !important; }
    #menu2.akb-mega ul.cat_dop li.glavli.akb-leaf > a {
        display: flex !important; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; margin: 0 !important;
        padding: 12px 16px !important; border: 1px solid #eef0f4; border-radius: 12px; background: #fafbfd;
        font-size: 15px !important; font-weight: 500; line-height: 1.3; color: #142b45 !important; text-decoration: none !important;
        transition: border-color .15s, background-color .15s, color .15s, transform .15s;
    }
    #menu2.akb-mega ul.cat_dop li.glavli.akb-leaf > a b { font: inherit !important; letter-spacing: 0 !important; text-transform: none !important; color: inherit !important; }
    #menu2.akb-mega ul.cat_dop li.glavli.akb-leaf > a::after { content: "→"; color: #a3adbb; transition: color .15s, transform .15s; }
    #menu2.akb-mega ul.cat_dop li.glavli.akb-leaf > a:hover { border-color: #2787f5; background: #eef5ff; color: #2787f5 !important; transform: translateY(-1px); }
    #menu2.akb-mega ul.cat_dop li.glavli.akb-leaf > a:hover::after { color: #2787f5; transform: translateX(3px); }
    /* раздел без подразделов */
    #menu2 .akb-mega-solo { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 8px 0; color: #5d6b80; font-size: 15px; line-height: 1.5; max-width: 520px; }
    /* левая колонка: активный пункт сцеплен с панелью */
    #menu2.akb-mega .revlevel_1.open:not(.akb-act) > .title > a { background: transparent !important; color: #142b45 !important; }
    #menu2.akb-mega .revlevel_1.open:not(.akb-act) > .title > a > i.am_category_icon { background: #eef5ff; transform: none; }
    #menu2.akb-mega .revlevel_1.open:not(.akb-act) > .title > a > i.am_category_icon::before { background: #2787f5; }
    #menu2.akb-mega .revlevel_1.akb-act > .title > a { background: #eef5ff !important; color: #2787f5 !important; }
    #menu2.akb-mega .revlevel_1.akb-act > .title > a > i.am_category_icon { background: #2787f5; transform: scale(1.06); }
    #menu2.akb-mega .revlevel_1.akb-act > .title > a > i.am_category_icon::before { background: #fff; }
    #menu2.akb-mega .revlevel_1.akb-act > .title .arrow-btn { color: #2787f5; transform: translateX(2px); }
    #menu2.akb-mega .revlevel_1 > .title .arrow-btn { transition: transform .15s; }
}
@media (prefers-reduced-motion: reduce) { #menu2.akb-mega .childrenList .child-box { animation: none !important; } }
/* AKB 2026-11-16: без мигания при смене раздела — панель появляется плавно только при открытии меню, дальше содержимое меняется мгновенно */
@media (min-width: 992px) {
    #menu2.akb-mega .revlevel_1 .childrenList { transition: none !important; }
    #menu2.akb-mega.akb-opening .revlevel_1.akb-act .childrenList { animation: akbMegaFade .18s ease-out; }
}

/* Mobile OCFilter: keep custom marks centered in their 20px controls. */
@media (max-width: 767px) {
  .ocf-offcanvas.ocfilter-mobile .ocf-option-values input[type="checkbox"],
  .ocf-offcanvas.ocfilter-mobile .ocf-option-values input[type="radio"] {
    position: relative;
    flex: 0 0 20px;
    box-sizing: border-box;
    padding: 0;
  }
  .ocf-offcanvas.ocfilter-mobile .ocf-option-values input[type="radio"]:checked::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: 0;
    transform: translate(-50%, -50%);
  }
  .ocf-offcanvas.ocfilter-mobile .ocf-option-values input[type="checkbox"]:checked::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 11px;
    box-sizing: border-box;
    margin: -1px 0 0;
    border: solid #333;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .ocf-offcanvas.ocfilter-mobile .ocf-option-values input:focus-visible {
    outline: 2px solid #2787f5;
    outline-offset: 3px;
  }
}
