.carousel-tabs {
    display: flex;
    justify-content: center;
    padding: 20px 0 20px 0;
    background: #F5F1EB;
}

.tab-button {
    font-weight: 300;
    color: rgb(85, 85, 85);
    background: transparent;
    border: none;
    margin: 0 10px;
    font-size: 18px;
    cursor: pointer;
    padding: 10px 20px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.tab-button.active {
    border-color: rgb(85, 85, 85);
}

.carousel-wrapper {
    position: relative;
    overflow: visible;
    padding: 10px 10px 10px 10px;
    /* Было 20px со всех сторон */
}

.carousel {
    display: flex;
    gap: 20px;
    /* было 20px */
    scroll-behavior: smooth;
    justify-content: center;
    padding: 0 10px 0 10px;
    overflow: hidden;
    position: relative;
    padding: 0 10px;
}

/*.carousel-card {
    min-width: 220px;
    max-width: 250px;
    background: #e8ded0b8;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    font-weight: 300;
    color: rgb(85, 85, 85);
} */
.carousel-card {
    flex: 0 0 100%;
    max-width: 100%;
    background: #e8ded0b8;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    font-weight: 300;
    color: rgb(85, 85, 85);
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.carousel-card h3 {
    margin: 6px 0;
}

.carousel-card p {
    margin: 6px 0;
}

/* 💻 ДЛЯ ДЕСКТОПА */
@media (min-width: 768px) {
    .carousel-card {
        flex: 0 0 240px;
        max-width: 240px;
    }
}



.carousel-card img {
    display: block;
    margin: 0 auto;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

.btn-to-watch:hover {
    background-color: transparent;
    border: 1px solid rgb(85, 85, 85);
    color: rgb(85, 85, 85);
}

@media (max-width: 768px) {
    .watch-button {
        background-color: #333 !important;
        color: #fff !important;
        border-radius: 4px !important;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 400 !important;
    }
}

@media (max-width: 767px) {
    .watch-button {
        padding: 8px 4px;
        font-size: 14px;
    }
}


.carousel-slide-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition:
        transform var(--animation-speed, 500ms) cubic-bezier(0.25, 1, 0.5, 1),
        opacity var(--animation-speed, 500ms) ease-in-out;
}

.carousel-slide-exit {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide-exit-active {
    opacity: 0;
    transform: translateX(-50px);
    transition: all var(--animation-speed, 500ms) cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-inner {
    display: flex;
    transition: transform var(--animation-speed, 500ms) cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    gap: 20px;
}

@media (min-width: 768px) {
    .carousel-wrapper {
        background: none;
        max-width: calc((253px + 19px) * 4 - 20px);
        /* 4 карточки по 240px + 3 gap по 20px */
        margin: 0 auto;
    }

    .carousel {
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    .carousel-arrow {
        font-size: 0;
        /* скрываем текст */
        width: 30px;
        height: 50px;
        border: 1px solid #333;
        background: transparent;
        border-radius: 3px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        padding: 0;
    }

    .carousel-arrow svg path {
        stroke: #333;
        transition: stroke 0.3s ease;
    }

    .carousel-arrow:hover {
        background-color: #333;
    }

    .carousel-arrow:hover svg path {
        stroke: #fff;
    }

    #prev {
        left: -30px;
    }

    #next {
        right: -30px;
    }
}

@media (max-width: 767px) {
    .carousel-arrow {
        font-size: 0;
        width: 35px;
        height: 60px;
        border: 1px solid #333;
        background: transparent;
        border-radius: 6px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        position: absolute;
        top: 40%;
        transform: translate(0%, -50%);
        ;
    }

    .carousel-arrow svg path {
        stroke: #333;
        transition: stroke 0.3s ease;
    }

    .carousel-arrow:hover {
        background-color: transparent;
    }

    .carousel-arrow:hover svg path {
        stroke: #333;
    }

    #prev {
        left: 20px;
    }

    #next {
        right: 20px;
    }

    .carousel-card {
        font-size: 20px;
    }

    .carousel-card p {
        font-size: 22px;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .carousel-card {
        flex: 0 0 180px;
        max-width: 180px;
    }

    .carousel-wrapper {
        max-width: calc((191px + 19px) * 4 - 17px);
        /* 4 карточки с gap */
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .btn-to-watch {
        padding: 8px 39px;
        font-size: 8px;
    }

    .carousel-card {
        font-size: 13px;
    }

    .carousel-card p {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .carousel {
        padding: 0;
        /* убираем padding */
        gap: 0;
        /* убираем gap */
        justify-content: flex-start;
    }

    .carousel-card {
        flex: 0 0 100vw;
        max-width: 100vw;
    }
}