.reviews-wrapper {
    width: 100%;
    padding: 64px 20px 72px;
    background: #f5f2ec;
    color: #202020;
}

.reviews-wrapper__inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.reviews-wrapper h2 {
    margin: 0 0 32px;
    color: #202020;
    font-size: 36px;
    text-align: center;
}

.review-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

.review-summary__score {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.review-summary__stars,
.review-card__stars {
    color: #d89b20;
    font-size: 23px;
    letter-spacing: 2px;
}

.review-summary__count {
    color: #666;
}

.review-empty {
    padding: 22px;
    border: 1px dashed #b7afa2;
    border-radius: 10px;
    color: #625b52;
    text-align: center;
}

.review-list {
    display: grid;
    gap: 16px;
    margin: 25px 0 35px;
}

.review-card {
    padding: 22px 24px;
    border: 1px solid #ded9d0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .06);
}

.review-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.review-card__meta {
    color: #686868;
    font-size: 14px;
    text-align: right;
}

.review-card h3 {
    margin: 15px 0 7px;
    font-size: 20px;
}

.review-card p {
    margin: 0;
    color: #333;
    font-size: 16px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.reviews-wrapper .review-form {
    box-sizing: border-box;
    width: 100%;
    max-width: 720px;
    margin: 38px auto 0;
    padding: 36px 40px 32px;
    border: 1px solid #ddd5c8;
    border-radius: 14px;
    background: #fff;
    color: #202020;
    box-shadow: 0 8px 28px rgba(38, 34, 28, .09);
}

.reviews-wrapper .review-form h3 {
    margin: 0 0 7px;
    font-size: 25px;
}

.review-form__intro {
    margin: 0 0 25px;
    color: #6a6258;
    font-size: 15px;
}

.review-form__field {
    margin-top: 20px;
}

.reviews-wrapper .review-form label,
.review-form__label {
    display: block;
    margin: 0 0 8px;
    color: #29251f;
    font-weight: 700;
}

.review-form__optional {
    color: #746d63;
    font-size: 13px;
    font-weight: 400;
}

.reviews-wrapper .review-form input[type="text"],
.reviews-wrapper .review-form textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #b8b0a5;
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: #171717;
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.reviews-wrapper .review-form input[type="text"]:focus,
.reviews-wrapper .review-form textarea:focus {
    border-color: #a87316;
    box-shadow: 0 0 0 3px rgba(216, 155, 32, .18);
}

.reviews-wrapper .review-form textarea {
    min-height: 145px;
    line-height: 1.5;
    resize: vertical;
}

.review-form__help {
    display: block;
    margin-top: 6px;
    color: #746d63;
    font-size: 13px;
}

.review-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.review-rating input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.reviews-wrapper .review-rating label {
    position: relative;
    margin: 0;
    padding: 2px;
    color: #c7c0b5;
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}

.review-rating__number {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.reviews-wrapper .review-rating label:hover,
.reviews-wrapper .review-rating label:hover ~ label,
.review-rating input:checked ~ label {
    color: #e1a126;
}

.reviews-wrapper .review-rating label:hover {
    transform: translateY(-2px);
}

.review-rating input:focus + label {
    border-radius: 3px;
    outline: 2px solid #9f6e15;
    outline-offset: 2px;
}

.reviews-wrapper .review-form__submit {
    min-width: 165px;
    margin: 24px 0 0;
    padding: 13px 24px;
    border: 0;
    border-radius: 7px;
    background: #d9a137;
    color: #17130c;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(75, 52, 10, .18);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.reviews-wrapper .review-form__submit:hover {
    background: #e7ad41;
    box-shadow: 0 4px 9px rgba(75, 52, 10, .24);
    transform: translateY(-1px);
}

.reviews-wrapper .review-form__submit:focus {
    outline: 2px solid #8a5e0e;
    outline-offset: 3px;
}

.reviews-wrapper .review-form__submit:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

.review-form__status {
    min-height: 22px;
    margin: 14px 0 0;
    color: #27703b;
    font-weight: 600;
}

.review-form__status--error {
    color: #a82b27;
}

.review-login {
    margin: 30px auto 0;
    text-align: center;
}

.review-login a {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 6px;
    background: #252525;
    color: #fff;
    font-weight: 700;
}

@media screen and (max-width: 600px) {
    .reviews-wrapper {
        padding: 42px 14px 50px;
    }

    .reviews-wrapper h2 {
        font-size: 31px;
    }

    .review-summary,
    .review-card__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .review-card__meta {
        text-align: left;
    }

    .reviews-wrapper .review-form {
        padding: 27px 20px 24px;
    }

    .reviews-wrapper .review-form__submit {
        width: 100%;
    }
}
