.home-reviews {
    padding: 80px 0 90px;
    overflow: hidden;
}

.home-reviews .title_section {
    color: #F0AA00;
}

.home-reviews .title_section svg path {
    fill: #F0AA00;
}

.home-reviews__head {
    align-items: flex-start;
    margin-bottom: 42px;
}

.home-reviews__summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-height: 54px;
    white-space: nowrap;
}

.home-reviews__rating {
    color: #1B1819;
    font-family: "Geologica", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.home-reviews__stars,
.home-review-card__stars {
    display: inline-flex;
    align-items: center;
    color: #F0AA00;
    letter-spacing: 2px;
    line-height: 1;
}

.home-reviews__stars {
    font-size: 22px;
}

.home-reviews__all {
    color: #182A63;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.home-reviews__all:hover {
    color: #7800F5;
}

.home-reviews__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.home-review-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 350px;
    padding: 22px;
    border: 1px solid #E8E8E8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20, 33, 61, .10);
}

.home-review-card__author {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.home-review-card__avatar {
    display: flex;
    grid-row: 1 / 3;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: #7800F5;
    font-size: 13px;
    font-weight: 700;
}

.home-review-card:nth-child(4n + 1) .home-review-card__avatar {
    background: #89C92F;
}

.home-review-card:nth-child(4n + 2) .home-review-card__avatar {
    background: #7800F5;
}

.home-review-card:nth-child(4n + 3) .home-review-card__avatar {
    background: #00D2DC;
}

.home-review-card:nth-child(4n + 4) .home-review-card__avatar {
    background: #FF236C;
}

.home-review-card__name {
    overflow: hidden;
    color: #1B1819;
    font-family: "Geologica", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-review-card__date {
    color: #9A9A9A;
    font-size: 13px;
    line-height: 1.35;
}

.home-review-card__stars {
    margin-bottom: 18px;
    font-size: 19px;
}

.home-review-card__text {
    display: -webkit-box;
    overflow: hidden;
    min-height: 144px;
    margin: 0 0 20px;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

.home-review-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #EEEEEE;
}

.home-review-card__source {
    color: #777;
    font-size: 13px;
    white-space: nowrap;
}

.home-review-card__source::first-letter {
    color: #F44336;
    font-weight: 700;
}

.home-review-card__link {
    color: #7800F5;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-review-card__link:hover {
    color: #5F00C4;
}

@media (max-width: 1024px) {
    .home-reviews {
        padding: 65px 0 75px;
    }

    .home-reviews__head {
        margin-bottom: 34px;
    }

    .home-reviews__list {
        grid-template-columns: none;
        grid-auto-columns: calc((100% - 24px) / 2);
        grid-auto-flow: column;
        gap: 24px;
        overflow-x: auto;
        padding: 2px 2px 18px;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .home-review-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 760px) {
    .home-reviews {
        padding: 50px 0 55px;
    }

    .home-reviews__head {
        display: block;
        margin-bottom: 25px;
    }

    .home-reviews__summary {
        justify-content: flex-start;
        gap: 10px;
        min-height: 0;
        margin-top: 18px;
    }

    .home-reviews__rating {
        font-size: 25px;
    }

    .home-reviews__stars {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .home-reviews__all {
        margin-left: auto;
        font-size: 13px;
    }

    .home-reviews__list {
        grid-auto-columns: 100%;
        gap: 16px;
        padding-right: 0;
        padding-left: 0;
        scrollbar-width: none;
    }

    .home-reviews__list::-webkit-scrollbar {
        display: none;
    }

    .home-review-card {
        min-height: 330px;
        padding: 20px;
    }

    .home-review-card__text {
        min-height: 134px;
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 390px) {
    .home-reviews__summary {
        flex-wrap: wrap;
    }

    .home-reviews__all {
        flex-basis: 100%;
        margin-left: 0;
    }
}

