.previous {
    rotate: 180deg;
}

.nav-slider__card:first-of-type {
    margin-left: 5px;
}

.nav-slider__card {
    box-shadow: 0 0 10px 0 #0000001a;
}

.blog-item__desc {
    text-decoration: underline;
}

.header-nav__icon path {
    fill: white;
}

.header-nav__link.selected {
    color: white;
}

.home .cards-section__card-title {
    text-align: center;
}

.header-search input {
    box-shadow: 0 0 10px 0 #0000001a;
    border-radius: 6px;
    background: white;
}

.catalog-slider__slide {
    box-shadow: 0 0 10px 0 #0000001a;
}

.catalog-slider {
    padding-block: 5px;
    box-sizing: content-box;
}

.bread-crumbs {
    margin-bottom: 30px;
}

.bread-crumbs .separator {
    display: inline;
    margin-right: 10px;
}

.bx-filter-container-modef {
    display: none !important;
}

.btn:disabled {
    cursor: default;
    opacity: 0.4;
    filter: grayscale(1);
}

.catalog-body__filter .filter-form__checkbox input {
    min-width: 24px;
}

.fancybox__content {
    padding: 0;
}

.fancybox__iframe {
    max-width: 768px;
}

/* Стили только для аккордионов фильтров */
.bx-filter .bx-accordion-item {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0; /* Убрано лишнее пространство, черточка теперь только между аккордионами */
}

.bx-filter .bx-accordion-item:last-child {
    border-bottom: none; /* Убираем черточку после последнего аккордиона */
}

.bx-filter .bx-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    background-color: #f8f8f8;
    font-weight: 600;
    color: #333;
    transition: background-color 0.3s ease;
}

.bx-filter .bx-accordion-header:hover {
    background-color: #f0f0f0;
}

.bx-filter .bx-accordion-header .filter-form__title {
    margin: 0;
}

.bx-filter .accordion-arrow {
    display: flex;
    align-items: center;
    width: 12px;
    height: 7px;
}

.bx-filter .accordion-arrow svg {
    transition: transform 0.3s ease;
    transform: rotate(180deg); /* Стрелка вверх по умолчанию (свернуто) */
    fill: #0054FF;
}

.bx-filter .bx-accordion-content {
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-top: none;
    display: none; /* Все аккордионы свернуты по умолчанию */
}

.bx-filter .bx-active .bx-accordion-content {
    display: block;
}

.bx-filter .bx-active .accordion-arrow svg {
    transform: rotate(0deg); /* Стрелка вниз при развернутом состоянии */
}

.footer-bottom__external-logo svg {
    max-width:250px;
}

/* ===============================
   Табы
   =============================== */
.hot-deals-tabs-wrapper {
    border-bottom: 1px solid #dee2e6;
    margin-top: 24px;
    margin-bottom: 32px;
}
.hot-deals-tabs {
    display: flex;
    align-items: center;
    gap: 12px 24px;
    padding-bottom: 12px;
    user-select: none;
}
.hot-deals-tabs__item {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease-in-out;
    white-space: nowrap;
    color: #6c757d;
    padding: 12px 4px;
}
.hot-deals-tabs__item:hover { color: #212529; }
.hot-deals-tabs__item.active { color: #212529; }

/* Чип "Показать все" */
.hot-deals-tabs__item[data-section-id="all"] {
    padding: 10px 24px;
    border-radius: 8px;
    color: #0d6efd;
    border-color: #0d6efd;
    background-color: #ffffff;
}
.hot-deals-tabs__item[data-section-id="all"].active {
    background-color: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

/* ===============================
   Внешний слайдер горячих предложений
   =============================== */
.js-hot-deals-slider {
    overflow: hidden;
    touch-action: pan-y;
    contain: layout style paint; /* убирает дергания */
}
.js-hot-deals-slider .swiper-wrapper {
    will-change: transform;
}
.js-hot-deals-slider .swiper-wrapper > .swiper-slide {
    box-sizing: border-box;
}

/* Скрываем ТОЛЬКО верхние слайды внешнего слайдера */
.js-hot-deals-slider .swiper-wrapper > .swiper-slide[data-section-id].hot-deals-slide--hidden {
    display: none !important;
}

/* ВАЖНО: не трогаем внутренние слайды карточек, чтобы фото не «резались» */
.similar-products .js-card-slider .card-image {
    height: auto !important;
    /* снимаем любые принудительные соотношения сторон */
    aspect-ratio: auto !important;
}
.similar-products .js-card-slider .card-image img,
.similar-products .js-card-slider .card-img,
.similar-products .js-card-slider .pict {
    display: block;
    width: 100% !important;
    height: auto !important;   /* вместо 100% */
    object-fit: unset !important; /* не навязываем cover; пусть работает тема */
}

/* ===============================
   Мобильные правки
   =============================== */
@media (max-width: 767px) {
    .title-container__link.link_after { display: none; }

    .hot-deals-tabs-wrapper { border-bottom: none; }
    .hot-deals-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
        margin-bottom: -1px;
        scrollbar-width: none;
    }
    .hot-deals-tabs::-webkit-scrollbar { display: none; }

    /* Одна карточка на экран — без «края» следующей */
    .js-hot-deals-slider .swiper-wrapper > .swiper-slide.main-catalog__slide {
        width: 100%;
    }
}

/* Доступность */
.hot-deals-tabs__item:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Мягкая анимация */
@media (prefers-reduced-motion: no-preference) {
    .js-hot-deals-slider .swiper-wrapper > .swiper-slide {
        transition: opacity .15s ease, transform .15s ease;
    }
}


.about-company__banner-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-company__banner-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.about-company__banner-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}
.about-company__banner-video-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 20px solid #ffffff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}