/*ХЕДЕР*/

.bj-header {
   /* box-shadow: 0 8px 40px 0 #00000033;*/
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    color: #E2DDD7; /* тёмная тема: светлый текст на фото */
    transition: color 0.3s ease;
}
div#svgCheckbox {
    position: sticky;
}
.bj-header--is-active {
    background-color: #20000A;
}

.bj-header.is-light {
    color: #E0DCD5; /* светлая тема: тёмный текст при открытом мега-меню */
}

.bj-header__inner {
    display: flex;
    align-items: flex-start;
    padding: 0 58px 3px;
    max-width: 1920px;
    margin: 0 auto;
    justify-content: space-between;
    position: relative;
}

.bj-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: #E2DDD7;
    cursor: pointer;
    flex-shrink: 0;
}
.bj-header__burger span {
    display: block;
    height: 2px;
    width: 22px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.bj-mobile-burger,
.bj-mobile-burger-overlay {
    display: none;
}

.bj-header__logo {
    flex-shrink: 0;
    display: block;
    height: auto;
    color: currentColor;
    text-decoration: none;
    line-height: 0;
    padding-top: 26px;
    transition: 0.3s ease;
}

.bj-header__logo:hover {
    opacity: .7;
}

.bj-header__logo svg {
    width: 100%;
    height: 100%;
}
.logo-size-main {
    width: 129px;
}
.logo-size-other {
    width: 89px;
}

.bj-header__nav {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: ease-in-out 0.5s;
    line-height: 21.28px;


    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translate(-50%, -50%);
}
@media (max-width: 1919px) {
    padding-left: 0;
    justify-content: center;
}

.bj-header__nav-item {
    font-family: 'Montserrat', sans-serif;
    color: #E2DDD7;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
    transition: opacity 0.2s;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    display: inline-block;
}

.bj-header__nav a:hover,
.bj-header__nav-item:hover,
.bj-header__nav-item--catalog.is-active {
    color: inherit;
    text-decoration: none;
}
.c-page .checkbox-wrapper svg {
    top: 17px;
}
.bj-header__nav-item--catalog.is-active::before {
    content: '';
    position: absolute;
    top: 53px;
    left: 50%; /* Центрируем */
    width: 100%; /* Ширина равна ширине текста (родителя) */
    height: 6px;
    background: #E2DDD6;
    border-top: 1px solid #c0bbb4;
    border-bottom: 1px solid #c0bbb4;
    clip-path: polygon(0% 0%, 100% 0%, 95% 100%, 5% 100%);
    transform: translateX(-50%) rotate(180deg);
}

.bj-header__nav--active::after {
    content: '';
    position: absolute;
    top: 59px;
    bottom: 0;
    left: -38%;
    width: 138%;
    height: 1px;
    background: rgba(230, 224, 215, 0.3);
    transition: all 0.3s ease;
}

.bj-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 40px;
    line-height: 21.28px;
    letter-spacing: -0.16px;
}

.bj-header__action {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 1px;
    color: currentColor;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    letter-spacing: 0;
    
    font-weight: 500;
    font-size: 16px;
    line-height: 21.28px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.bj-header__action:hover {
    opacity: 0.7;
    color: #E2DDD7;
    text-decoration: none;
}

.bj-header__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-right: 2px;
}

.header__nav-main {
    bottom: unset;
    top: 50%;
}
.header__nav-other {
    bottom: 7px;
}

/* -----------------------------------------------------------------------
   МЕГА-МЕНЮ
   Figma node 1:133
   Фон: #E0DCD5, высота: 716px, текст: #20000A
   ----------------------------------------------------------------------- */

.bj-megamenu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 199;
    background-color: #20000A;
    color: #E0DCD5;
    min-height: 716px;
    overflow: hidden;

    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
}

.bj-megamenu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.bj-megamenu__grid {
    display: flex;
    align-items: flex-start;
    max-width: 1920px;
    margin: 0 auto;
    padding: 128px 58px 0;
    height: 100%;
}

@media (max-width: 1400px) {
    .bj-megamenu__grid {
        gap: 10px;
    }
}

.bj-megamenu__col--main {
    flex-shrink: 0;
}

.bj-megamenu__col--sub {
    flex-shrink: 0;
    max-width: 284px;
    margin-left: 20px;
    width: 100%;
}

.bj-megamenu__catitem {
    max-width: 100%;
}

.bj-megamenu__col--collections {
    flex-shrink: 0;
}

.bj-megamenu__col--series {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    align-items: flex-end;
    height: 100%;
}

.bj-megamenu__series-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-weight: 300;
    font-size: 16px;
    line-height: 120%;
    flex-grow: 1;
    gap: 15px;
}

.bj-megamenu__series-card {
    display: flex;
    flex-direction: column;
    width: 438px;
    text-decoration: none;
    color: inherit;
}

.bj-megamenu__series-card img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.bj-megamenu__series-card:nth-child(odd) img {
    min-height: 300px;
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.bj-megamenu__series-card:nth-child(even) img {
    aspect-ratio: 283 / 271;
    width: 100%;
}

/* Доп. стили для текста */
.bj-megamenu__series-card-name {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bj-megamenu__series-card-price {
    text-align: right;
    white-space: nowrap;
}

.bj-megamenu__col-heading {
    font-size: 20px;
    color: #E0DCD5;
    font-weight: 400;
    margin: 0 0 20px;
    line-height: 120%;
    letter-spacing: 0;
    vertical-align: middle;
}

.bj-megamenu__catlist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bj-megamenu__catlink {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 20px;
    color: #E0DCD5;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 400;
    position: relative;
    line-height: 120%;
    letter-spacing: 0;
    vertical-align: middle;
    white-space: nowrap;
    gap: 50px;
}
.bj-megamenu__col.bj-megamenu__col--series--inner {
    width: 435px;
    height: 100%;
}
.bj-megamenu__catlink:hover { opacity: 0.6; }

.bj-megamenu__catitem.is-active .bj-megamenu__catlink span {
    position: relative;
    display: inline-block;
}

.bj-megamenu__catitem.is-active .bj-megamenu__catlink span::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
}

.bj-megamenu__arrow {
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
    color: #E0DCD5;
}

.bj-megamenu__catitem.is-active .bj-megamenu__arrow { opacity: 1; }

/* ---- Список подкатегорий / коллекций: Montserrat 400 16px, gap:16px ---- */

.bj-megamenu__sublist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.bj-megamenu__sublist a {
    display: block;
    color: #E0DCD5;
    text-decoration: none;
    transition: opacity 0.2s;
    font-weight: 300;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0;
}

.bj-megamenu__sublist a:hover { opacity: 0.6; }


/* ---- Горизонтальный разделитель: y:634, x:58, w:1044 ---- */

.bj-megamenu__divider {
    position: absolute;
    top: 634px;
    left: 58px;
    width: 1044px;
    height: 1px;
    background-color: #ECE8E5;
}

/* ---- Нижний ряд тегов: y:654, x:68 ---- */

.bj-megamenu__bottom {
    position: absolute;
    top: 654px;
    left: 68px;
}

.bj-megamenu__tags {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.bj-megamenu__tags a {
    font-size: 20px;
    color: #E0DCD5;
    text-decoration: none;
    transition: opacity 0.2s;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0;
}

.bj-megamenu__tags a:hover { opacity: 0.6; }




/* ПОИСКОВЫЙ ОВЕРЛЕЙ*/
.bj-search-overlay {
    position: absolute;
    inset: 0;
    z-index: 300;
    background-color: #20000A;
    color: #E2DDD7;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    top: 71px;
    padding-top: 0;
    height: calc(100vh - 20%);
}

body.dark-theme .bj-search-overlay {
    background-color: #20000A;
    color: #E2DDD7;
}

.bj-search-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.bj-search-overlay__inner {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 73px 58px 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Строка поиска */
.bj-search-overlay__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 892px;
    margin: 0 auto;
    border: 1px solid #E2DDD7;
    border-radius: 14px;
    padding: 13px 16px;
    background: transparent;
    box-sizing: border-box;
}

body.dark-theme .bj-search-overlay__bar {
    border-color: rgba(226, 221, 215, 0.3);
}

.bj-search-overlay__icon {
    flex-shrink: 0;
    color: #E2DDD7;
    height: 31px;
    width: 31px;
}

body.dark-theme .bj-search-overlay__icon {
    color: #E2DDD7;
}

.bj-search-overlay__input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #E2DDD7;
    line-height: 1.5;
}

.bj-search-overlay__input::placeholder {
    color: #E2DDD7;
    opacity: 0.7;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bj-search-overlay__input:focus {
    border-color: #E2DDD7;
    outline: none;
}

.bj-search-overlay__input:focus::placeholder {
    opacity: 0;
    color: transparent;
}

/* Если нужно плавное появление при потере фокуса */
.bj-search-overlay__input:not(:focus)::placeholder {
    opacity: 0.7;
    color: #E2DDD7;
    transition: opacity 0.3s ease 0.1s;
}

body.dark-theme .bj-search-overlay__input::placeholder {
    color: rgba(226, 221, 215, 0.4);
}

.bj-search-overlay__close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E2DDD7;
    opacity: 0.5;
    transition: opacity 0.2s;
}

body.dark-theme .bj-search-overlay__close {
    color: #E2DDD7;
}

.bj-search-overlay__close:hover {
    opacity: 1;
}

/* Категории */
.bj-search-overlay__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 37px;
}

.bj-search-overlay__cat {
    font-weight: 400;
    color: #E2DDD7;
    text-decoration: none;
    padding: 6px 0;
    transition: opacity 0.2s;
    white-space: nowrap;
    line-height: 21.28px;
    letter-spacing: -0.16px;
    vertical-align: middle;
    font-size: 20px;
}

body.dark-theme .bj-search-overlay__cat {
    color: #E2DDD7;
}

.bj-search-overlay__cat:hover {
    opacity: 0.6;
    text-decoration: none;
    color: inherit;
}

/* Разделитель */
.bj-search-overlay__divider {
    width: 100%;
    height: 1px;
    background-color: #D6D1CA66;
    margin-top: 32px;
}

body.dark-theme .bj-search-overlay__divider {
    background-color: rgba(226, 221, 215, 0.15);
}

/* Карточки товаров */
.bj-search-overlay__products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(284px, 1fr));
    gap: 20px 22px;
    margin-top: 40px;
    padding-bottom: 20px;
}

.bj-search-overlay__product {
    display: flex;
    align-items: flex-start;
    gap: 21px;
    text-decoration: none;
    color: #20000A;
    transition: opacity 0.2s;
}

body.dark-theme .bj-search-overlay__product {
    color: #E2DDD7;
}

.bj-search-overlay__product:hover {
    opacity: 0.7;
    text-decoration: none;
    color: inherit;
}

.bj-search-overlay__product-img {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    object-fit: fill;
    display: block;
    background: linear-gradient(180deg, #808080 0%, #D6D1CA 100%);
    border-radius: 8px;
}

.bj-search-overlay__product-img-placeholder {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(180deg, #808080 0%, #D6D1CA 100%);
    display: block;
    border-radius: 8px;
}

.bj-search-overlay__product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
    padding-top: 3px;
}

.bj-search-overlay__product-name {
    color: #E2DDD7;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 300;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0;
    vertical-align: middle;
}

.bj-search-overlay__product-price {
    color: #E2DDD7;
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
}

/* Футер */
.bj-search-overlay__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #E2DDD7;
}

body.dark-theme .bj-search-overlay__footer {
    color: #E2DDD7;
}

.bj-search-overlay__all {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.bj-search-overlay__all:hover {
    opacity: 0.6;
    text-decoration: none;
    color: inherit;
}

.bj-search-overlay__footer svg {
    color: #E2DDD7;
}
.js-search-all {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1300px) {
    .bj-search-overlay__inner {
        padding: 60px 28px 48px;
    }
}
input.bj-search-overlay__input.js-search-input::placeholder{
    color: rgba(230, 224, 215, 0.3);
;
}
@media (max-width: 768px) {
    .bj-search-overlay__inner {
        padding: 92px 10px 40px;
        height: unset;
    }
    .bj-search-overlay__bar {
        max-width: 100%;
        gap: 8px;
    }
    .bj-search-overlay__products {
        gap: 23px;
        margin-top: 32px;
    }
}

/*  ОВЕРЛЕЙ */

.bj-overlay {
    position: fixed;
    inset: 0;
    z-index: 198;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(12.5px)
}

.bj-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

/*  ВЫПАДАЮЩАЯ ПАНЕЛЬ КОРЗИНЫ*/

.bj-basket-overlay {
    position: fixed;
    inset: 0;
    z-index: 197;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3.5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.bj-basket-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

.bj-basket-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(970px, 100vw);
    max-width: 100%;
    z-index: 198;
    background-color: #d6d1ca;
    box-shadow: -12px 0 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bj-basket-dropdown.is-open {
    transform: translateX(0);
}

.bj-basket-dropdown__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
}

.bj-basket-dropdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding-bottom: 20px;
}

.bj-basket-dropdown__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.064;
    letter-spacing: -0.16px;
    color: #20000A;
    margin: 0;
}

.bj-basket-dropdown__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #20000A;
    transition: opacity 0.2s;
}

.bj-basket-dropdown__close:hover {
    opacity: 0.7;
}

.bj-basket-dropdown__content {
    flex: 1;
    overflow-y: auto;
    color: #20000A;
}

/* Стилизация Bitrix корзины внутри панели (при необходимости) */
.bj-basket-dropdown__content a,
.bj-basket-dropdown__content button {
    font-family: 'Montserrat', sans-serif;
}

/*GLASS*/
.bj-header.glass-effect {
    background-blend-mode: screen;
    background: #20000A;
    background: #20000AB2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
   /* border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body.dark-theme .bj-header.glass-effect {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bj-header:not(.glass-effect) {
    background: transparent;
    color: #E2DDD7;
}

.bj-header__burger svg * {
    stroke: #F9F8F3;
}

@media (max-width: 1645px) {
    .bj-header__nav {
        left: 45%;
    }
}
@media (max-width: 1470px) {
    .bj-header__nav {
        left: 35%;
    }
}
@media (max-width: 1300px) {
    .bj-header__inner {
        min-height: 88px;
        align-items: center;
        padding: 0 28px;
    }
    .bj-header__logo {

    }
    .bj-header__nav {
        gap: 15px;
        position: unset;
        bottom: unset;
        left: unset;
        transform: unset;
    }
    .bj-header__actions {
         padding-top: 0;
    }
}

@media (max-width: 1300px) {
    .bj-header__nav--active::after {
        top: 86px;
    }
}
@media (max-width: 1200px) {
    .bj-header__logo {
        width: 95px;
        padding-top: 10px;
    }
}
@media (max-width: 1135px) {
    .bj-header__logo {
        width: 65px;

    }
    .bj-header__nav-item,.bj-header__action {
        font-size: 14px;
    }
    div.bx-basket-block {
        font-size: 14px;
    }
}
@media (max-width: 1024px) {
    .bj-header__action-text {
        display: none;
    }

    .bj-header__actions {
        height: 100%;
        align-items: stretch;
        padding-top: 0;
        gap: 0;
    }

    .bj-header__action {
        height: 100%;
        min-width: 44px;
        justify-content: center;
        padding: 0 5px;
        box-sizing: border-box;
    }

    /* Контейнер для самой иконки */
    .bj-header__action-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bj-header__action-icon svg {
        width: 100%;
        height: 100%;
    }
}
@media (max-width: 768px) {
    .bj-hero__category-bar {
        display: none;
    }
    .bj-header:not(.glass-effect) {

        background: #20000AB2;
        backdrop-filter: blur(10px);
    }
    .bj-header__action-icon.bj-header__action-icon--favorite {
        width: 26px;
        height: 26px;
    }
   div.block--hidden,
   div .block--hidden{
        display: none;
    }

    .bj-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
        z-index: 301;
    }

    .bj-header__nav {
        display: none;
    }

    .checkbox-wrapper {
        order: -1;
        width: 56px;
        height: 88px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin: 0;
        flex-shrink: 0;
    }

    .checkbox-wrapper svg {
        position: unset;
        width: 56px;
        height: 40px;
    }

    .bj-header__logo {
        position: absolute;
        left: 50%;
        transform: translateX(calc(-50% - 56px));
        margin: 0;
        padding: 0;
        z-index: 1;
        height: 100%;
    }

    .bj-header__actions {
        display: flex;
        justify-content: flex-end;
        padding: 0;
        margin: 0 0 0 auto;
        flex-shrink: 0;

    }
    .bj-header__logo {
        width: 110px;
    }
    .bj-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0;
        margin: 0;
        min-height: 88px;
        position: relative;
    }
    .bj-header__logo {
             left: 56%;
         }
    .bj-header {
        align-items: inherit;
    }
    .bj-header__actions {
        margin-top: 30px;
    }
    .bj-header__action {
        min-width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bj-header__action-text {
        display: none;
    }

    .bj-header__action-icon {
        width: 35px;
        height: 35px;
    }

    .bj-search-overlay {
        top: 0;
    }
    .bj-search-overlay__cats {
        gap: 7px 17px;
        justify-content: flex-start;
        margin-top: 17px;
    }
    .bj-search-overlay__divider {
        display: none;
    }
    .bj-search-overlay__product-img-placeholder {
        width: 87px;
        height: 87px;
    }
    .bj-search-overlay__product {
        gap: 8px;
    }
    .bj-search-overlay__product-info {
        gap: 12px;
        padding-top: 0;
    }
    .bj-search-overlay__product-name {
        line-height: 100%;
    }
    .bj-search-overlay__product-price {
        line-height: 100%;
    }
    .bj-search-overlay__product-img {
        width: 80px;
        height: 80px;
    }

    .bj-header__burger {
        display: flex;
        order: -2;
        align-self: center;
        margin-right: 8px;
    }

    .bj-header__burger.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .bj-header__burger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .bj-header__burger.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .bj-mobile-burger-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 297;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
    }

    .bj-mobile-burger-overlay.is-visible {
        opacity: 1;
        pointer-events: all;
    }

    .bj-mobile-burger {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(360px, 88vw);
        z-index: 1000;
        background: #20000A;
        color: #E2DDD7;
        transform: translateX(-100%);
        transition: transform .3s ease;
        padding: 20px 16px;
        overflow: hidden;
    }

    .bj-mobile-burger.is-open {
        transform: translateX(0);
    }

    .bj-mobile-burger__head {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin-bottom: 24px;
    }

    .bj-mobile-burger__close {
        width: 36px;
        height: 36px;
        border: none;
        background: transparent;
        color: #E2DDD7;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .bj-mobile-burger__nav {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding-top: 15px;
    }

    .bj-mobile-burger__divider {
        height: 1px;
        margin: 4px 0 2px;
        border: none;
        background: rgba(226, 221, 215, 0.35);
        flex-shrink: 0;
    }

    .bj-mobile-burger__submenu {
        position: absolute;
        inset: 0;
        z-index: 2;
        background: #20000A;
        padding: 20px 16px;
        transform: translateX(100%);
        transition: transform .3s ease;
        display: flex;
        flex-direction: column;
    }

    .bj-mobile-burger__submenu.is-open {
        transform: translateX(0);
    }

    .bj-mobile-burger__back {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: none;
        background: transparent;
        color: #E2DDD7;
        padding: 0;
        font-size: 16px;
        line-height: 1.3;
        font-family: 'Montserrat', sans-serif;
        cursor: pointer;
        margin-bottom: 20px;
    }

    .bj-mobile-burger__submenu-title {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 18px;
    }

    .bj-mobile-burger__submenu-nav {
        display: flex;
        flex-direction: column;
        gap: 14px;
        overflow-y: auto;
        padding-bottom: 20px;
    }

    .bj-mobile-burger__link {
        color: #E2DDD7;
        text-decoration: none;
        font-size: 18px;
        line-height: 1.3;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .bj-mobile-burger__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        color: inherit;
    }

    .bj-mobile-burger__icon svg {
        width: 100%;
        height: 100%;
    }

    .bj-mobile-burger__icon--fav {
        position: relative;
    }

    .bj-mobile-burger__label {
        flex: 1;
        min-width: 0;
    }

    .bj-mobile-burger__link--btn {
        width: 100%;
        border: none;
        background: transparent;
        text-align: left;
        padding: 0;
        cursor: pointer;
        font-family: 'Montserrat', sans-serif;
        font-size: 18px;
        line-height: 1.3;
        color: #E2DDD7;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
   .bj-mobile-burger__icon path {
        fill: none;
        stroke: currentColor;
        stroke-linecap: square;
    }
}
@media (max-width: 500px) {
    .bj-header__logo {
        left: 62%;
    }
}



/* Стили для слайдера в мега-меню */
.bj-megamenu__series-cards {
    position: relative;
    overflow: hidden;
    height: 440px;
}

.bj-megamenu__series-cards .swiper-wrapper {
    display: flex;
    transition-timing-function: ease;
}

.bj-megamenu__series-cards .swiper-slide {
    height: auto;
    display: flex;
}

.bj-megamenu__series-cards .bj-megamenu__series-card {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}


/* Стили пагинации (dots) */
.bj-megamenu__series-cards .swiper-pagination {
    bottom: 34% !important;
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    width: 100% !important;
}

.bj-megamenu__series-cards .swiper-pagination-bullet {
    height: 6px;
    background: #D9D9D9;
    opacity: .7;
    cursor: pointer;
    transition: .3s ease;
    width: 75px;
    border-radius: 20px;
    margin: 0;
}

.bj-megamenu__series-cards .swiper-pagination-bullet-active {
    opacity: 1;
}

.bj-megamenu__series-cards .swiper-pagination-bullet:hover {
    background: #fff;
}

/* Базовая настройка грида с gap */
.bj-megamenu__grid {
    display: flex;
    align-items: flex-start;
    max-width: 1920px;
    margin: 0 auto;
    padding: 128px 58px 0;
    box-sizing: border-box;
    height: 100%;
    gap: 30px;
}

/* 1400px - начало сжатия */
@media (max-width: 1400px) {
    .bj-megamenu__grid {
        padding: 128px 30px 0;
        gap: 20px;
    }

    .bj-megamenu__col--main {
        flex: 0 0 auto;
        min-width: 200px;
    }

    .bj-megamenu__col--sub {
        max-width: 240px;
        flex: 0 0 auto;
    }

    .bj-megamenu__col--collections {
        flex: 0 0 auto;
        min-width: 180px;
    }

    .bj-megamenu__col--series {
        flex: 1;
        min-width: 300px;
    }

    .bj-megamenu__col.bj-megamenu__col--series--inner {
        width: 100%;
        max-width: 380px;
    }

    .bj-megamenu__catlink {
        gap: 20px;
        font-size: 18px;
        white-space: nowrap;
    }

    .bj-megamenu__sublist a {
        font-size: 14px;
    }

    .bj-megamenu__series-card {
        width: 100%;
        max-width: 380px;
    }
}

/* 1200px - дальнейшее сжатие */
@media (max-width: 1200px) {
    .bj-megamenu__grid {
        gap: 15px;
        padding: 110px 20px 0;
    }

    .bj-megamenu__col--main {
        min-width: 170px;
    }

    .bj-megamenu__col--sub {
        max-width: 200px;
    }

    .bj-megamenu__col--collections {
        min-width: 150px;
    }

    .bj-megamenu__col--series {
        min-width: 280px;
    }

    .bj-megamenu__col.bj-megamenu__col--series--inner {
        max-width: 320px;
    }

    .bj-megamenu__catlink {
        font-size: 16px;
        gap: 12px;
    }

    .bj-megamenu__catlist {
        gap: 12px;
    }

    .bj-megamenu__sublist {
        gap: 12px;
    }

    .bj-megamenu__col-heading {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .bj-megamenu__series-card {
        max-width: 320px;
    }

    .bj-megamenu__series-card-info {
        padding: 6px 10px;
        font-size: 14px;
    }

    .bj-megamenu__divider {
        top: unset;
        bottom: 60px;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: #ECE8E5;
        position: unset;
        margin: 15px 0;
    }

    .bj-megamenu__bottom {
        position: unset;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .bj-megamenu {
        overflow: scroll;
        display: flex;
        flex-direction: column;
        height: calc(100vh - 88px);
        top: 88px;
    }
    .bj-megamenu__grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
        padding: 20px 20px 0;
        width: 100%;
        height: auto;
        min-height: min-content;
    }

    .bj-megamenu__col--main,
    .bj-megamenu__col--sub,
    .bj-megamenu__col--collections {
        grid-row: 1;
    }

    .bj-megamenu__col--main {
        grid-column: 1;
    }

    .bj-megamenu__col--sub {
        grid-column: 2;
    }

    .bj-megamenu__col--collections {
        grid-column: 3;
    }

    .bj-megamenu__col--series {
        grid-column: 1 / -1;
        grid-row: 2;
        align-items: flex-start;
        min-height: 376px;
    }
}