
/* =========================
   ОБЩАЯ СЕТКА ОТЗЫВОВ
========================= */

.rs-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 25px;
}

/* =========================
   КАРТОЧКА ОТЗЫВА
========================= */

.rs-item {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: 0.25s ease;
    position: relative;
}

.rs-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.rs-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111;
}

/* =========================
   ЗВЁЗДЫ (ОТЗЫВЫ)
========================= */

.rs-item .stars {
    color: #f5b301;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* =========================
   ТЕКСТ ОТЗЫВА
========================= */

.rs-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* =========================
   ГАЛЕРЕЯ ФОТО
========================= */

.rs-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.rs-gallery img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.rs-gallery img:hover {
    transform: scale(1.08);
}

/* =========================
   ВИДЕО
========================= */

.rs-item video {
    width: 100%;
    margin-top: 12px;
    border-radius: 12px;
}

/* =========================
   ФОРМА (MODERN UI)
========================= */

.rs-form-wrap {
    max-width: 540px;
    margin: 50px auto;
    padding: 32px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-radius: 22px;
    border: 1px solid #eee;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    position: relative;
}

/* цветная верхняя линия */
.rs-form-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, #7c3aed, #06b6d4, #22c55e);
    border-radius: 22px 22px 0 0;
}

/* заголовок */
.rs-form-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #111;
}

/* labels */
.rs-form-wrap label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    display: block;
    margin-top: 14px;
}

/* inputs */
.rs-form-wrap input,
.rs-form-wrap textarea,
.rs-form-wrap select {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    margin-bottom: 14px;
    border-radius: 14px;
    border: 1px solid #e6e6e6;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: 0.25s ease;
}

/* focus эффект */
.rs-form-wrap input:focus,
.rs-form-wrap textarea:focus,
.rs-form-wrap select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
}

/* textarea */
.rs-form-wrap textarea {
    min-height: 140px;
    resize: vertical;
}

/* file input */
.rs-form-wrap input[type="file"] {
    background: #fafafa;
    padding: 12px;
    border-radius: 12px;
}

/* кнопка */
.rs-form-wrap button {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    box-shadow: 0 12px 30px rgba(124,58,237,0.25);
    transition: 0.25s ease;
}

.rs-form-wrap button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(124,58,237,0.35);
}

/* success сообщение */
.rs-success {
    background: #ecfdf5;
    color: #065f46;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #a7f3d0;
    font-size: 14px;
}

/* =========================
   ЗВЁЗДЫ В ФОРМЕ (ВАЖНО)
========================= */

.rs-stars {
    display: flex;
    gap: 6px;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
    margin: 10px 0 16px;
}

.rs-stars span {
    color: #ddd;
    transition: 0.2s ease;
}

.rs-stars span.active {
    color: #f5b301;
    transform: scale(1.15);
    text-shadow: 0 4px 12px rgba(245,179,1,0.35);
}

.rs-stars span:hover {
    transform: scale(1.2);
}

/* =========================
   МОБИЛЬНАЯ АДАПТАЦИЯ
========================= */

@media (max-width: 600px) {

    .rs-form-wrap {
        margin: 25px 15px;
        padding: 20px;
    }

    .rs-reviews {
        grid-template-columns: 1fr;
    }

    .rs-gallery img {
        width: 70px;
        height: 70px;
    }
}

/* =========================
   LIGHTBOX
========================= */

.rs-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.rs-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    animation: zoomIn 0.2s ease forwards;
}

@keyframes zoomIn {
    to {
        transform: scale(1);
    }
}

.rs-lightbox.active {
    display: flex;
}

/* кнопка закрытия */
.rs-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}