/* ===== Блок отзывов товара ===== */
.dru-reviews {
    padding: 60px 0 80px;
}

.dru-reviews__title,
.dru-review-form__title {
    margin: 0 0 30px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 36px;
    line-height: 46.8px;
    color: #f4f6ef;
}

/* Слайдер отзывов */
.dru-reviews__outer {
    position: relative;
    overflow: visible;
}
.dru-reviews__slider {
    overflow: hidden;
    padding: 0 10px;
}
.dru-review {
    width: 450px;
    background: #090909;
    border-radius: 20px;
    padding: 20px 25px;
    box-sizing: border-box;
    height: 166px;
    display: flex;
    flex-direction: column;
}
.dru-review__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.dru-review__name {
    font-family: var(--font);
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #ffffff;
}
.dru-review__rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #ffffff;
}
.dru-review__text {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 18px;
    color: #ffffff;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

/* Стрелки — такие же как в популярных товарах */
.dru-reviews__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}
.dru-reviews__arrow img {
    width: 91px;
    height: 91px;
    pointer-events: none;
}
.dru-reviews__arrow--prev { left: -91px; }
.dru-reviews__arrow--next { right: -91px; }

@media (max-width: 1240px) {
    .dru-reviews__arrow--prev { left: -20px; }
    .dru-reviews__arrow--next { right: -20px; }
}
@media (max-width: 768px) {
    .dru-reviews__arrow { display: none; }
}

/* Форма отзыва */
.dru-review-form-wrap {
    margin-top: 60px;
}

.dru-review-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 1409px;
}

.dru-review-form__rating {
    display: flex;
    align-items: center;
    gap: 20px;
}
.dru-review-form__label {
    font-family: var(--font);
    font-size: 15px;
    line-height: 18px;
    color: #ffffff;
}
.dru-review-form__stars {
    display: flex;
    gap: 7px;
}
.dru-review-form__stars input[type="radio"] {
    display: none;
}
.dru-review-form__stars label {
    cursor: pointer;
    display: flex;
    align-items: center;
}
.dru-review-form__stars .dru-star-filled { display: none; }
.dru-review-form__stars .dru-star-empty { display: block; }
.dru-review-form__stars label.is-active .dru-star-filled { display: block; }
.dru-review-form__stars label.is-active .dru-star-empty { display: none; }

.dru-review-form__row {
    display: flex;
    gap: 10px;
}
.dru-review-form input[type="text"],
.dru-review-form input[type="tel"],
.dru-review-form textarea {
    flex: 1;
    height: 56px;
    background: #090909;
    border: 1px solid #373737;
    border-radius: 14px;
    padding: 0 20px;
    font-family: var(--font);
    font-size: 15px;
    line-height: 18px;
    color: #ffffff;
    outline: none;
    transition: border-color .15s;
}
.dru-review-form input[type="text"]:focus,
.dru-review-form input[type="tel"]:focus,
.dru-review-form textarea:focus {
    border-color: #6bb022;
}
.dru-review-form textarea {
    height: 76px;
    padding: 16px 20px;
    resize: none;
}

.dru-review-form__bottom {
    display: flex;
    align-items: center;
    gap: 20px;
}
.dru-review-form__btn {
    flex: none;
    height: 56px;
    padding: 0 24px;
    background: #6bb022;
    border: none;
    border-radius: 15px;
    color: #090909;
    font-family: var(--font);
    font-size: 15px;
    line-height: 19.5px;
    cursor: pointer;
    transition: opacity .15s;
}
.dru-review-form__btn:hover { opacity: .88; }

.dru-review-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    max-width: 315px;
}
.dru-review-form__consent input[type="checkbox"] {
    display: none;
}
.dru-review-form__check {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 4.5px;
    border: 1.5px solid #6bb022;
    margin-top: 2px;
    position: relative;
    transition: background .15s;
}
.dru-review-form__check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #090909;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity .15s;
}
.dru-review-form__consent input[type="checkbox"]:checked + .dru-review-form__check {
    background: #6bb022;
}
.dru-review-form__consent input[type="checkbox"]:checked + .dru-review-form__check::after {
    opacity: 1;
}
.dru-review-form__consent span:last-child {
    font-family: var(--font);
    font-size: 12px;
    line-height: 14.4px;
    color: #8b8b8b;
}

@media (max-width: 900px) {
    .dru-review { width: 100%; }
    .dru-review-form__row { flex-direction: column; }
    .dru-review-form__bottom { flex-direction: column; align-items: flex-start; }
}
