/* Сделать сайт по ширине шапки (у шапки был увеличенный контенйнер -- подгоняем под него) */
.wrap {
    max-width: 1440px !important;
}

/* Убрать тступы вокруг карусели с видео */
.section-video-block {
    max-width: none !important;
}

.slider-wrapper {
    padding: 0 !important;
}

/* Добавляем иконку Play к видосам */
.video-reviews__img {
    position: relative !important;
}

.video-reviews__item:hover .video-reviews__img {
    filter: brightness(1.05) contrast(1.05) !important;
}
.video-reviews__img::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 20%;
    aspect-ratio: 1/1;
    background-color: rgba(38, 38, 39, 0.7);
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjRjVGNkY3IiBkPSJNMTcuNzgxNyAxMi4zODE5TDguNzgxNzYgMTcuODkxQzguNDU0NDkgMTguMTA5MSA4LjE4MTc2IDE3Ljk0NTUgOC4xODE3NiAxNy41NjM3VjYuNDM2NDdDOC4xODE3NiA2LjA1NDY1IDguNDU0NDkgNS44OTEwMiA4Ljc4MTc2IDYuMTA5MkwxNy43ODE3IDExLjYxODNDMTcuODQ5OSAxMS42NTYgMTcuOTA2OCAxMS43MTEzIDE3Ljk0NjQgMTEuNzc4NUMxNy45ODU5IDExLjg0NTYgMTguMDA2OCAxMS45MjIxIDE4LjAwNjggMTIuMDAwMUMxOC4wMDY4IDEyLjA3OCAxNy45ODU5IDEyLjE1NDUgMTcuOTQ2NCAxMi4yMjE3QzE3LjkwNjggMTIuMjg4OCAxNy44NDk5IDEyLjM0NDIgMTcuNzgxNyAxMi4zODE5WiIvPjwvc3ZnPg==);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 50%;
    transition: filter 200ms ease;
}

/* Если в модальном окне есть видео, не ограничиваем его ширину. Это особенно критично на мобилках. */

.fancybox-slide--iframe {
}

@media (max-width: 768px) {
    .fancybox-slide--iframe {
        padding: 8px !important;
    }
}

.fancybox-slide--iframe .fancybox-content {
}

@media (max-width: 1100px) {
    .fancybox-slide--iframe .fancybox-content {
        max-width: none !important;
    }
}

/* Убираем отступ у последнего фильтра, чтобы ниже он не поломал отступы.
   Похоже на то, что у этого
 */

.check-wrap:last-child {
    margin-bottom: 0 !important;
}

/* Добавляем фильтр "Популярные" */

.filter-item__values--popular {
    padding-top: 16px !important;
    margin-left: -16px !important;
    padding-left: 16px !important;
    margin-bottom: 24px !important;
    padding-bottom: 24px !important;
    background-color: #f3f3f3 !important;
    border-radius: 3px !important;
}
.filter-item__sub-heading {
    margin-bottom: 12px !important;
    font-size: 15px !important;
}

.filter-item__values--popular .check-wrap {
    font-weight: 500 !important;
}

@media (max-width: 768px) {
    .filter-item__values--popular {
        margin-left: -8px !important;
        margin-right: -8px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .filter-item__sub-heading {
    }

    .filter-item__values--popular .check-wrap {
    }
}

.main-top {
    height: 483px;
}

/*Стили слайдера*/
.section-video-block {
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 20px;*/
    margin-top: 40px;
}

.slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.my-slider {
    margin: 20px 0;
    overflow: hidden;
    user-select: none;
    /* Предотвращаем выделение текста при перетаскивании */
    -webkit-user-drag: none;
    /* Предотвращаем drag изображений */
    -webkit-tap-highlight-color: transparent;
    /* Убираем подсветку при тапе */
}

/* Убираем flex-стили для контейнера, которые показывали все элементы */
.video-slider__container {
    display: block;
    margin: 0;
}

.video-slider__item {
    box-sizing: border-box;
    -webkit-user-drag: none;
    /* Предотвращаем drag элементов слайдера */
}

.video-reviews__item {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: auto;
    -webkit-user-drag: none;
    /* Предотвращаем drag ссылок */
}

.video-reviews__img {
    display: block;
    position: relative;
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    -webkit-user-drag: none;
    /* Предотвращаем drag изображений */
    pointer-events: none;
    /* Отключаем события мыши для изображений */
}

.video-reviews__time {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-reviews__name {
    min-height: auto;
    height: auto;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    padding: 12px;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

@media (min-width: 768px) {
    .video-reviews__name {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Новое позиционирование стрелок по центру */
.slider-nav {
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

@media (min-width: 1024px) and (max-width: 1365px) {
    .slider-nav {
        top: 35%;
    }
}

.slider-nav button {
    pointer-events: all;
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 18px;
    padding: 0;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    -webkit-user-drag: none;
    /* Предотвращаем drag кнопок */
}

#prev-button {
    left: 10px;
}

#next-button {
    right: 10px;
}

.slider-nav button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.slider-dots {
    display: none !important;
}

/* Скрытие краев соседних слайдов на мобильных */
@media (max-width: 767px) {
    .slider-wrapper {
        padding: 0 15px;
    }

    .my-slider {
        overflow: hidden;
    }

    .slider-nav button {
        width: 35px;
        height: 35px;
    }

    #prev-button {
        left: 5px;
    }

    #next-button {
        right: 5px;
    }

    .video-reviews__img {
        height: 150px;
    }
}

/* Корректировка позиционирования для планшетов */
@media (min-width: 768px) and (max-width: 1365px) {
    .slider-wrapper {
        padding: 0 30px;
    }

    #prev-button {
        left: 15px;
    }

    #next-button {
        right: 15px;
    }
}

/* Важные стили для правильного отображения слайдера */
.tns-slider {
    display: flex !important;
    transition: transform 0.5s ease;
}

.tns-item {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .tns-item {
        width: 50%;
    }
}

@media (min-width: 1366px) {
    .tns-item {
        width: 33.3333%;
    }
}

/*Вид каталога*/
.page .catalog.list {
    & .product {
        display: flex;
        padding: 20px 16px 15px;
        justify-content: space-between;
    }
    & .product-logo {
        position: unset;
    }
    & .product-img img {
        max-width: 250px;
        /* width: 100%; */
    }
    & .product-image {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 15% !important;
        grid-area: image !important;
        & .product-logo {
            margin-top: 12px;
            text-align: center;
        }
    }
    & .price {
        max-width: 100%;
    }
    & .product-info {
        width: 55%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        grid-area: info;
    }
    & .info-body {
        padding: 10px 18px;
    }
    & .product-img {
        position: relative;
        top: 0;
    }
    & .product-prices {
        position: unset;
        text-align: center;
    }
    & .product-buy-block {
        display: flex;
        flex-direction: column;
        width: 20%;
        grid-area: btns;
        padding-top: 24px;
    }
    & .delivery-info {
        font-size: 12px;
        margin-top: 6px;
    }
    & .product-buy {
        position: unset;
        width: 100%;
        margin-top: 6px;
    }
    & .product-btns {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        margin-top: 10px;
        align-items: center;
    }
    & .product-like {
        position: unset;
    }
    & .add-to-compare {
        position: unset;
        margin-right: 4px;
        height: 28px;
        width: 28px;
    }
    & .info-footer {
        display: flex;
        margin-bottom: 16px;
        justify-content: space-around;
    }
    & .product-link {
        color: #727272;
        font-weight: 400;
        text-decoration: underline 1px;
        text-transform: uppercase;
        font-size: 13px;
    }
    & .delivery-info {
        display: block;
    }
    & .mobile-status {
        display: none;
    }
    & .desktop-status {
        display: block;
    }
}
.catalog {
    & .delivery-info {
        display: none;
    }
    & .info-footer {
        display: none;
    }
}
.block.popular-goods {
    & .delivery-info-mobile {
        display: none;
    }
    & .delivery-info {
        display: none;
    }
    & .info-footer {
        display: none;
    }
}
@media (max-width: 768px) {
    .page .catalog.list {
        & .product {
            display: grid;
            grid-template:
                "info info"
                "image btns" / 30% 70%;
            padding: 20px 4px 15px;
        }
        & .product-like {
            width: 28px;
            height: 28px;
        }
        & .add-to-compare svg {
            width: 28px;
            height: 28px;
        }
        & .delivery-info {
            display: none;
        }
        & .info-body {
            padding: 0;
            font-size: 16px;
        }
        & .product-logo {
            margin-top: 20px;
        }
        & .mobile-status {
            display: block;
        }
        & .desktop-status {
            display: none;
        }
        & .product-name {
            font-weight: 500;
        }
        & .info-footer {
            display: none;
        }
        & .product-image {
            width: 100% !important;
            justify-content: space-between;
            & .product-logo {
                margin-left: 25px;
            }
        }
        & .product-info {
            width: 100%;
        }
        & .product-buy-block {
            width: 100%;
            display: grid;
            grid-template:
                "delivery-info delivery-info"
                "price price"
                "product-btns buy-button";
        }
        & .product-buy {
            max-width: 120px;
        }
        & .product-img img {
            width: auto;
        }
        & form {
            display: grid;
            grid-area: buy-button;
            justify-items: end;
        }
        & .product-prices {
            grid-area: price;
            text-align: right;
            margin-top: 12px;
        }
        & .price {
            font-size: 24px;
        }
        & noindex {
            grid-area: product-btns;
        }
        & .product-btns {
            margin-right: 12px;
        }
        & .delivery-info {
            display: block;
            font-size: 14px;
            grid-area: delivery-info;
            padding-left: 55px;
        }
    }
    .catalog {
        & .delivery-info {
            display: none;
        }
        & .info-footer {
            display: none;
        }
        & .delivery-info-mobile {
            display: none;
        }
    }
}
/*Детальная страница товара*/
.detail-left {
    width: 81%;
}
.detail-right {
    width: 19%;
}
.detail-right,
.detail-left {
    margin-bottom: 5px;
}
.detail-body {
    display: flex;
}
.detail-brand img {
    margin-bottom: 5px;
    padding: 0;
    padding-top: 5px;
}
.detail-art {
    margin-bottom: 0px;
    font-weight: 500;
    color: #404040;
    line-height: 20px;
    font-size: 17px;
}
.detail-art .creditarticle {
    text-decoration: underline gray;
}
.detail-btns {
    margin-bottom: 5px;
}
.detail-images {
    height: 490px;
}
.detail-img {
    display: flex;
    height: 100%;
}
.detail .price {
    font-size: 36px;
    max-width: 100%;
}
.btns-buy {
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #e8e9ec;
}
.social-question {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 5px;
    align-items: center;
}
.question-text {
    font-weight: 500;
    margin-left: 16px;
}
.social-block {
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e9ec;
}
.detail-footer {
    display: flex;
    margin-bottom: 24px;
    align-items: center;
}
.detail-footer .separator {
    height: 76px;
    border: 1px solid #f2f1f1;
}
.footer-name {
    width: 19%;
    font-size: 24px;
    font-weight: 500;
    padding: 10px 16px;
    text-align: center;
    margin-right: 20px;
    color: #646464;
}
.footer-text {
    width: 47%;
    padding: 10px 16px;
    line-height: normal;
    color: #646464;
    margin: 0 20px;
}
.credit-btns {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 25%;
    margin: 0 30px;
}
.credit-btn {
    padding: 2px 0;
    border: 1px solid #ffba08;
    width: 100%;
    font-weight: 400;
    line-height: normal;
    text-align: center;
    margin-bottom: 10px;
}
.add-text {
    font-weight: 500;
    font-size: 16px;
    margin-left: 4px;
}
.footer-connect {
    width: 25%;
    text-align: center;
    align-content: center;
    color: #898c95;
}
.footer-connect .phone {
    display: flex;
    justify-content: center;
    filter: opacity(0.5);
    transition: 0.3s linear;
}
.footer-connect .phone:hover {
    filter: opacity(1);
}
.mobile-better {
    display: none;
}
.detail-right .mobile-title {
    display: none;
}
.separator {
    border: 1px solid #646464;
    width: 1px;
    border-top: none;
    border-bottom: none;
}
.creditcalc__rate {
    background: #ffba08;
    font-weight: 400;
    border-radius: 8px;
    padding: 0 4px;
}
.add-text-credit {
    font-weight: 600;
}
.add-text-leasing {
    font-weight: 400;
}
.detail-credit,
.detail-quest,
.detail-fav,
.detail-pdf {
    margin-bottom: 5px;
}
.detail .detail-status {
    font-size: 16px;
    margin-top: 5px;
    margin-bottom: 5px;
}
.detail-right .detail-properties {
    display: flex;
    flex-direction: column;
}
.detail-properties .detail-brand {
    margin: auto;
}
.detail-left {
    display: flex;
    flex-direction: column;
}
.detail {
    margin-top: 22px;
}
.detail-right .detail-guarantee {
    margin-top: 5px;
    font-size: 16px;
}
@media (max-width: 1024px) {
    .detail-right {
        width: 30%;
    }
}
@media (max-width: 768px) {
    .detail {
        margin-top: 0px;
    }
    .detail-properties .detail-brand {
        margin: 0;
    }
    .detail-left {
        flex-direction: column-reverse;
    }
    .detail-right .mobile-title {
        display: block;
        font-weight: normal;
        font-size: 20px;
        line-height: 24px;
        margin: 0 0px 8px 0;
        color: #262626;
    }
    .detail h1 {
        width: 100%;
    }
    .detail-body {
        flex-direction: column;
    }
    .detail-right {
        width: 100%;
    }
    .detail-left {
        width: 100%;
    }
    .detail-images {
        height: unset;
    }
    .social-question {
        justify-content: center;
    }
    .question-text {
        font-size: 16px;
    }
    .detail-footer {
        display: none;
    }
    .btns-buy {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .btns-buy form {
        width: auto;
    }
    .detail-btns .detail-count {
        display: none;
    }
    .detail-buy {
        width: 100%;
    }
    .detail .one-click__button {
        align-content: center;
        height: calc(100% - 5px);
    }
    .mobile-better {
        display: flex;
        flex-direction: column;
        margin-top: 16px;
        border-bottom: 1px solid #e8e9ec;
    }
    .better-name {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 12px;
        font-size: 20px;
        color: #808080;
        font-weight: 500;
    }
    .better-name svg {
        filter: opacity(0.5);
    }
    .better-name svg {
        margin-left: 12px;
    }
    .credit-btns {
        width: 100%;
        display: flex;
        flex-direction: row;
        margin-bottom: 16px;
        justify-content: space-evenly;
        margin-left: 0px;
        margin-right: 0px;
    }
    .credit-btn {
        border: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-bottom: 0;
        padding: 5px 0;
    }
    .credit-btn svg {
        margin-right: 10px;
        filter: opacity(0.5);
    }
    .mobile-connect {
        display: flex;
        flex-direction: row;
        color: #898c95;
        justify-content: center;
    }
    .mobile-connect p {
        font-size: 16px;
    }
    .mobile-connect .phone {
        display: flex;
        justify-content: center;
        filter: opacity(0.5);
        transition: 0.3s linear;
    }
    .detail-properties {
        width: 100%;
        flex-direction: row;
    }
}
.firstpay {
    margin-top: 5px;
    font-size: 16px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .detail-descr .tab .video-reviews__item__detail {
        width: 100%;
        margin: 0 0 24px;
    }
    .video-reviews__item__detail {
        display: block;
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        height: auto;
        -webkit-user-drag: none;
    }
}

.ui-menu-item-wrapper.ui-menu-wrapper-articul {
    padding: 0 10px !important;
    margin-top: -10px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #767f8c;
    font-weight: 600;
}

.ui-state-active.ui-menu-item-wrapper.ui-menu-wrapper-articul {
    margin-top: -10px;
    margin-bottom: 5px;
}

.ui-autocomplete .ui-menu-item-wrapper.ui-menu-wrapper-articul {
    font-weight: 600;
}