/* ======================================================
   SLIDER
====================================================== */

.reviews-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.reviews-slider-viewport {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
}

.reviews-slider {
    display: flex;
    gap: 16px; /* ВАЖНО: вместо margin у карточек */
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* 1 отзыв (мобилка) */
.review-slide {
    flex: 0 0 100%;
    padding: 26px;
    text-align: center;
    background: #f9fafb;
    border-radius: 18px;
    box-sizing: border-box;
}

/* ПК: 2 отзыва */
@media (min-width: 900px) {
    .review-slide {
        flex: 0 0 calc(50% - 8px);
    }
}

/* ======================================================
   REVIEW CARD
====================================================== */

.review-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.review-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.review-rating {
    color: #f5b301;
    margin: 6px 0;
}

.review-text {
    line-height: 1.6;
    color: #374151;
}

/* ======================================================
   NAVIGATION BUTTONS
====================================================== */

.reviews-prev,
.reviews-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #1f2937;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    transition: all .2s ease;

    flex-shrink: 0; /* ВАЖНО */
}

.reviews-prev:hover,
.reviews-next:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(37,99,235,.35);
}

.reviews-prev:active,
.reviews-next:active {
    transform: scale(.95);
}

/* Мобилки */
@media (max-width: 600px) {
    .reviews-prev,
    .reviews-next {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}

/* ======================================================
   CTA BUTTON
====================================================== */

.open-review-modal {
    display: block;
    margin: 20px auto 0;
    padding: 14px 34px;

    border-radius: 999px;
    border: none;

    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;
    cursor: pointer;

    box-shadow: 0 10px 30px rgba(37,99,235,.35);
    transition: all .25s ease;
}

.open-review-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(37,99,235,.45);
}

.open-review-modal:active {
    transform: scale(.97);
}

/* ======================================================
   MODAL (HARD PROTECTED)
====================================================== */

.review-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,.55);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .25s ease;
}

.review-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.review-modal__content {
    background: #fff;
    max-width: 420px;
    width: 100%;
    padding: 22px;
    border-radius: 18px;
    position: relative;
}

.review-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* ======================================================
   FORM
====================================================== */

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.review-form textarea {
    min-height: 90px;
    resize: vertical;
}

.review-form button {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* ======================================================
   STARS
====================================================== */

.stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 28px;
    margin-bottom: 12px;
}

.stars span {
    color: #d1d5db;
    cursor: pointer;
    transition: color .2s ease;
}

.stars span.active {
    color: #f5b301;
}
