/* Стили карточек (из примера) */
.testimonial-card {
    max-width: 360px;
    width: 100%;
    background: #ffffff;
    border-radius: 32px;
    padding: 32px 28px 36px 28px;
    box-shadow: 0 30px 45px -20px rgba(106, 27, 154, 0.25),
                0 15px 25px -8px rgba(236, 64, 122, 0.15);
    position: relative;
    transition: transform 0.35s cubic-bezier(0.15, 0.75, 0.45, 1),
                box-shadow 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    overflow: hidden;
    margin: 0 auto;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(244, 114, 182, 0.04) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.testimonial-card::after {
    content: "“";
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 9rem;
    line-height: 1;
    font-family: 'Georgia', serif;
    color: rgba(236, 72, 153, 0.08);
    z-index: 0;
    font-weight: 700;
    transform: rotate(5deg);
}

.gradient-dot {
    position: absolute;
    bottom: -25px;
    left: -25px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.15), rgba(244, 114, 182, 0.1) 70%, transparent);
    border-radius: 50%;
    z-index: 0;
}

.client-name {
    position: relative;
    z-index: 3;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #6D28D9;
    margin-bottom: 16px;
    display: inline-block;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(95deg, #6D28D9, #EC4899);
    border-image-slice: 1;
    padding-bottom: 8px;
    line-height: 1.2;
}

.client-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70%;
    height: 4px;
    background: linear-gradient(90deg, #EC4899, #a855f7);
    border-radius: 4px;
    opacity: 0.7;
}

.testimonial-text {
    position: relative;
    z-index: 3;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2c2c2c;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    padding: 8px 0 0 0;
    border-radius: 20px;
    quotes: "“" "”";
    font-style: normal;
}

.testimonial-text::before {
    content: "“";
    font-size: 2.5rem;
    line-height: 1;
    color: rgba(236, 72, 153, 0.4);
    font-family: serif;
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 55px -18px rgba(123, 31, 162, 0.35),
                0 20px 30px -10px rgba(219, 39, 119, 0.25);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Стили для слайдера */
.rp-slider-container {
    position: relative;
    width: 100%;
    padding: 20px 0; /* вертикальные отступы для стрелок, горизонтальные убраны – они теперь в .swiper */
    box-sizing: border-box;
}

.swiper {
    width: 100%;
    overflow: hidden;
    padding: 1px 20px 45px 20px; /* верхний 1px, боковые 15px, нижний 20px – для теней */
    box-sizing: border-box;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* выравнивание по верхнему краю */
    height: auto;
}

/* Стрелки */
.rp-swiper-button-prev,
.rp-swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #6D28D9;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    user-select: none;
}

.rp-swiper-button-prev:hover,
.rp-swiper-button-next:hover {
    background: #6D28D9;
    color: white;
}

.rp-swiper-button-prev {
    left: 0; /* стрелка по левому краю контейнера */
}

.rp-swiper-button-next {
    right: 0; /* стрелка по правому краю контейнера */
}

/* Кнопка для пользователя */
.rp-user-action {
    text-align: center;
    margin: 10px 0;
}

.rp-add-review,
.rp-edit-review {
    background: linear-gradient(145deg, #6D28D9, #EC4899);
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 12px 30px;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 10px 20px -8px rgba(109, 40, 217, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255,255,255,0.3);
}

.rp-add-review:hover,
.rp-edit-review:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px rgba(236, 72, 153, 0.5);
}

/* Модальное окно */
.rp-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.rp-modal.active {
    display: flex !important; /* принудительно переопределяем возможный конфликт */
}

.rp-modal-content {
    background: white;
    border-radius: 32px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 40px 60px rgba(106,27,154,0.3);
}

.rp-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.rp-modal-close:hover {
    color: #333;
}

.rp-modal-title {
    color: #6D28D9;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

#rp-review-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #f0e8ff;
    border-radius: 20px;
    font-size: 1rem;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 20px;
}

#rp-review-form textarea:focus {
    outline: none;
    border-color: #6D28D9;
}

.rp-submit {
    background: linear-gradient(145deg, #6D28D9, #EC4899);
    border: none;
    color: white;
    padding: 12px 30px;
    font-size: 1.2rem;
    border-radius: 60px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    width: fit-content;
}

/* Адаптивность для Swiper */
@media (max-width: 768px) {
    .swiper-slide {
        width: 50%; /* 2 слайда на мобильных */
    }
}

@media (min-width: 769px) {
    .swiper-slide {
        width: 33.333%; /* 3 слайда на ПК */
    }
}

/* Прозрачный фон за карточками (явно задаём, если нужно) */
.rp-slider-container,
.swiper {
    background: transparent;
}