.testimonials {
    position: relative;
    padding: 40px 28px 90px 28px;
}

.testimonials__inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.testimonials__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 23px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials__title {
    font-size: 32px;
    line-height: 103%;
    text-transform: uppercase;
    max-width: 500px;
    font-weight: 400;
}

.testimonials__subtitle {
    font-size: 12px;
    line-height: 100%;
    max-width: 215px;
    text-align: center;
}

.testimonials__slider {
    position: relative;
    overflow: hidden;
}

.testimonials__track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials__card {
    flex: 0 0 100%;
    max-width: 100%;
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.testimonials__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 30px;
}

.testimonials__arrow {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials__arrow img {
    width: 32px;
    height: auto;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.testimonials__arrow--next img {
    transform: scaleX(-1);
}

.testimonials__arrow:hover img {
    transform: scale(1.1);
    opacity: 0.7;
}

.testimonials__arrow--next:hover img {
    transform: scaleX(-1) scale(1.1);
}

.testimonials__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.testimonials__arrow:disabled:hover img {
    transform: scale(1);
    opacity: 1;
}

.testimonials__arrow--next:disabled:hover img {
    transform: scaleX(-1);
}

.testimonials__pagination {
    display: flex;
    gap: 6px;
    align-items: center;
}

.testimonials__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f4ede657;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials__dot.is-active {
    background: var(--color-vanilla-white);
    width: 10px;
    border-radius: 100px;
}

.testimonials__dot:hover {
    background: rgba(26, 26, 26, 0.4);
}

.testimonials__background {
    position: absolute;
    width: 100%;
    height: 467px;
    bottom: -110px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonials__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .testimonials {
        padding: 120px 0;
    }

    .testimonials__inner {
        gap: 64px;
    }

    .testimonials__title {
        font-size: 40px;
    }

    .testimonials__track {
        gap: 32px;
    }

    .testimonials__card {
        flex: 0 0 calc(33.333% - 22px);
        max-width: calc(33.333% - 22px);
    }

    .testimonials__arrow img {
        width: 37px;
    }
}

@media (min-width: 1024px) {
    .testimonials__controls {
        gap: 48px;
        margin-top: 56px;
    }

    .testimonials__background {
        display: none;
    }

    .testimonials__dot {
        background: #e6ddd4;
    }

    .testimonials__dot.is-active {
        background: #c6bdb4;
    }
}
