section.reviews {
    display: flex;
    justify-content: center;
    background-color: #0e0e0e;
    color: white;
    width: 100%;
    min-height: auto;
    padding: 50px 0;
}

section.reviews .section-content {
    display: flex;
    align-items: flex-start;
    max-width: 1500px;
    margin: 0 auto;
    text-align: left;
    width: 100%;
}

section.reviews h2 {
    width: 250px;
    color: white;
    font-size: 60px;
    font-weight: 400;
    line-height: 60px;
    margin: 0;
    text-align: left;
}

section.reviews .carousel-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
}

section.reviews .review-carousel {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding-left: 100px;
}

section.reviews .carousel-cell {
    display: flex;
    gap: 20px;
    width: 1100px;
    margin-right: 20px;
}

section.reviews .review-small,
section.reviews .review-big {
    background-color: #232323;
    background-image: url("../photo/fox.svg");
    background-repeat: no-repeat;
    border-radius: 26px;
    height: 500px;
    padding: 60px;
    position: relative;
}

section.reviews .review-small {
    background-position: 93% 10%;
    background-size: 12% auto;
    width: 550px;
}

section.reviews .review-big {
    background-position: 97% 10%;
    background-size: 6.5% auto;
    width: 1100px;
}

section.reviews .review-small .vk,
section.reviews .review-big .vk {
    position: absolute;
    display: flex;
    align-items: center;
    bottom: 30px;
    gap: 10px;
    text-align: right;
    font-size: 18px;
    line-height: 25px;
    color: #aaaaaa;
    text-decoration: none;
}

section.reviews .review-small .vk {
    left: 390px;
}

section.reviews .review-big .vk {
    left: 950px;
}

section.reviews .vk img {
    width: 40px;
    height: 40px;
}

section.reviews .flickity-prev-next-button {
    display: none;
}


section.reviews .custom-prev {
    left: 20px;
}

section.reviews .custom-next {
    right: -80px;
}

section.reviews .custom-prev img,
section.reviews .custom-next img {
    width: 25px;
    height: auto;
    transition: transform 0.3s ease;
}

section.reviews .custom-prev:hover img,
section.reviews .custom-next:hover img {
    transform: scale(1.2);
}

section.reviews .name {
    font-size: 24px;
    margin-bottom: 20px;
}

section.reviews .adding{
    font-size: 22px;
    margin-bottom: 20px;
    color: grey;
}

section.reviews .title {
    display: flex;
}

section.reviews .text {
    font-size: 18px;
    line-height: 25px;
    color: #aaaaaa;
    max-width: 95%;
    height: 320px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

@media (max-width: 768px) {
    section.reviews {
        padding: 40px 0;
    }

    section.reviews .section-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 15px;
    }

    section.reviews h2 {
        width: auto;
        margin-bottom: 30px;
        font-size: 36px;
        line-height: 1.2;
        text-align: center;
    }

    section.reviews .carousel-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    section.reviews .review-carousel {
        padding-left: 0;
        max-width: 100%;
    }

    section.reviews .carousel-cell {
        flex-direction: column;
        width: 100%;
        margin-right: 0;
        gap: 15px;
    }

    section.reviews .review-small,
    section.reviews .review-big {
        width: 100%;
        height: auto;
        min-height: 300px;
        padding: 30px 20px;
        background-image: none;
    }

    section.reviews .review-small .vk,
    section.reviews .review-big .vk {
        left: auto;
        right: 20px;
        bottom: 20px;
        text-align: right;
        font-size: 16px;
    }

    section.reviews .vk img {
        width: 32px;
        height: 32px;
    }

    section.reviews .custom-prev,
    section.reviews .custom-next {
        top: 50%;
        transform: translateY(-50%);
        padding: 5px;
    }

    section.reviews .custom-prev {
        left: 5px;
    }

    section.reviews .custom-next {
        right: 5px;
    }

    section.reviews .custom-prev img,
    section.reviews .custom-next img {
        width: 32px;
    }

    section.reviews .text {
        max-height: 220px;
        font-size: 16px;
        line-height: 1.4;
    }

    section.reviews .name {
        font-size: 20px;
        margin-bottom: 15px;
    }

    section.reviews .review-big .text{
        max-height: 500px;
        height: 100%;
    }
    
}