/* Отзывы и вопросы авторам */

.rev-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
    font-size: var(--fs-small);
}

.rev-write { font-size: var(--fs-small); }

.rev-stars {
    position: relative;
    display: inline-block;
    color: rgba(0, 0, 0, 0.15);
    font-size: 26px;
    letter-spacing: 2px;
    line-height: 1;
    vertical-align: -3px;
}

.rev-stars span {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f0b400;
}

.rev-stars--small { font-size: 18px; }

.rev { max-width: 900px; }

.rev__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin-bottom: 10px;
    font-size: 15px;
}

.rev__author { font-family: var(--font-display); font-size: var(--fs-body); font-weight: 700; text-transform: lowercase; }
.rev__text { font-size: var(--fs-small); line-height: 1.5; }
.rev__text p + p { margin-top: 0.6em; }

.rev-qa {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 2px dashed rgba(0, 0, 0, 0.2);
}

.rev-qa__item { margin-bottom: 12px; font-size: 16px; }
.rev-qa__q span, .rev-qa__a span { font-weight: 500; color: rgba(0, 0, 0, 0.55); }
.rev-qa__a { margin-top: 4px; padding-left: 14px; border-left: 4px solid var(--green); }

.rev-ask { margin-top: 14px; font-size: 16px; }
.rev-ask summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rev-ask form { margin-top: 12px; }

.rev-ask__text,
.rev-textarea {
    height: auto;
    padding: 14px 20px;
    border-radius: 24px;
    resize: vertical;
    font-size: 16px;
}

.rev-ask__note { margin: 8px 0 10px; font-size: 14px; }

/* поле-ловушка для ботов: людям не видно */
.rev-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.rev-status {
    max-width: 900px;
    margin-bottom: 20px;
    padding: 0.7em 1.2em;
    border: 3px solid var(--black);
    border-radius: 28px;
    font-size: var(--fs-small);
}

.rev-status--published { background: #cfe8cc; }
.rev-status--pending   { background: rgba(239, 208, 68, 0.45); }
.rev-status--rejected  { background: #f8d3d0; }

.rev-form { max-width: 900px; }
.rev-form__actions, .rev-inbox__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.rev-form__actions .pill, .rev-inbox__actions .pill { font-size: var(--fs-small); }

.rev-inbox { max-width: 900px; border-color: var(--green); }
.rev-inbox__item { margin-top: 18px; }
.rev-inbox__item .rev-ask__text { margin-top: 8px; }

/* звёзды-выбор оценки: справа налево, чтобы подсветка шла «до выбранной» */
.rev-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 14px;
    border: 0;
}

.rev-rating legend { width: 100%; }
.rev-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rev-rating label { font-size: 36px; line-height: 1; color: rgba(0, 0, 0, 0.18); cursor: pointer; transition: transform 0.1s; }
.rev-rating label:hover,
.rev-rating label:hover ~ label,
.rev-rating input:checked ~ label { color: #f0b400; }
.rev-rating input:focus-visible + label { outline: 3px solid var(--blue); border-radius: 6px; }

.rev-answered { max-width: 900px; margin-top: 28px; }

.nav-badge {
    display: inline-block;
    min-width: 1.4em;
    margin-left: 3px;
    padding: 0 0.35em;
    border-radius: 1em;
    background: var(--red);
    color: #fff;
    font-size: 0.6em;
    text-align: center;
    vertical-align: super;
}
