/* Отзывы с Яндекс.Карт (шаблон reviews_yandex) */

.rev-yandex {
    margin-top: 4px;
}

/* ——— строка рейтинга ——— */
.rev-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -6px 0 26px;
    font-size: 15px;
    color: #666;
    flex-wrap: wrap;
}
.rev-rating .rev-score {
    font-size: 17px;
    font-weight: bold;
    color: #1a1a1a;
}
.rev-rating .rev-count {
    color: #8a8a8a;
    font-size: 15px;
}
.rev-stars {
    position: relative;
    display: inline-flex;
    line-height: 0;
}
.rev-stars-base,
.rev-stars-fill {
    display: flex;
    gap: 2px;
}
.rev-stars svg {
    width: 16px;
    height: 16px;
    fill: #dcdcdc;
    display: block;
    flex: 0 0 auto;
}
.rev-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
}
.rev-stars-fill svg {
    fill: #fa8dd1;
}

/* ——— карточка ——— */
.rev-yandex .rev-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.rev-yandex .rev-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.rev-yandex .rev-avatar {
    background: #fdeef7;
    border-color: #f7d8eb;
    color: #f26cbf;
    font-weight: bold;
    font-size: 19px;
    text-transform: uppercase;
}
.rev-yandex .rev-sep {
    color: #c4c4c4;
    margin: 0 5px;
}
.rev-yandex .rev-date {
    white-space: nowrap;
}

/* текст: 5 строк на десктопе, лишнее обрезается */
.rev-yandex .rev-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 7em; /* 5 строк при line-height 1.4 — карточки одной высоты */
}

/* подвал карточки */
.rev-yandex .rev-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}
.rev-yandex .rev-foot--solo {
    justify-content: flex-end;
}
.rev-yandex .rev-src {
    font-size: 13px;
    color: #9a9a9a;
    text-decoration: none;
    white-space: nowrap;
}
.rev-yandex .rev-src:hover {
    color: #fa8dd1;
    text-decoration: none;
}

@media (max-width: 900px) {
    .rev-yandex .rev-text {
        -webkit-line-clamp: 6;
        min-height: 8.4em;
    }
}

@media (max-width: 640px) {
    .rev-rating {
        gap: 8px;
        margin-bottom: 20px;
    }
    .rev-yandex .rev-foot {
        flex-direction: column;
        align-items: stretch;
    }
    .rev-yandex .rev-foot--solo {
        align-items: flex-start;
    }
    .rev-yandex .rev-more {
        text-align: center;
    }
    .rev-yandex .rev-src {
        white-space: normal;
    }
}
