.main-home-reviews,
.main-home-reviews * {
    box-sizing: border-box;
}

.main-home-reviews {
    min-height: 717px;
    padding: 83px 20px 29px;
    overflow: hidden;
    background: linear-gradient(351deg, #fff 14%, #f8e8e5 71%);
    color: #000;
}

.main-home-reviews__container {
    width: min(100%, 1520px);
    margin: 0 auto;
}

.main-home-reviews__title {
    max-width: 1250px;
    margin: 0;
    color: #282828;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 64px;
    font-weight: 600;
    line-height: .95;
}

.main-home-reviews__subtitle {
    margin: 21px 0 0;
    color: #888;
    font-family: Manrope, "Open Sans", Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.main-home-reviews__viewport {
    margin-top: 66px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.main-home-reviews__viewport::-webkit-scrollbar {
    display: none;
}

.main-home-reviews__list {
    display: grid;
    width: max-content;
    grid-template-columns: repeat(4, 341px);
    gap: 30px;
}

.main-home-reviews__card {
    display: flex;
    min-height: 438px;
    padding: 20px 25px 30px;
    border: 2px solid #e8e4e0;
    border-radius: 20px;
    background: #fdfcfb;
    flex-direction: column;
    scroll-snap-align: start;
}

.main-home-reviews__card--blue {
    border-color: #fae2de;
    background: #fdf2f0;
}

.main-home-reviews__card-header {
    display: flex;
    min-height: 50px;
    gap: 15px;
    align-items: flex-start;
}

.main-home-reviews__avatar {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
}

.main-home-reviews__avatar--photo {
    border-radius: 50%;
    object-fit: cover;
}

.main-home-reviews__author {
    display: flex;
    min-width: 0;
    padding-top: 2px;
    gap: 8px;
    flex: 1 1 auto;
    flex-direction: column;
}

.main-home-reviews__name {
    color: #000;
    font-family: Manrope, "Open Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.main-home-reviews__rating {
    display: flex;
    height: 10px;
    gap: 1px;
    align-items: center;
    line-height: 0;
}

.main-home-reviews__rating img {
    width: 54px;
    height: 10px;
}

.main-home-reviews__source {
    display: inline-flex;
    min-height: 34px;
    padding: 8px 10px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #f0ede9;
    color: #888;
    font-family: Manrope, "Open Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.main-home-reviews__body {
    min-height: 250px;
    margin-top: 15px;
    padding-left: 15px;
    border-left: 3px solid #f5c8c1;
}

.main-home-reviews__text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #000;
    font-family: Manrope, "Open Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10;
}

.main-home-reviews__note {
    display: flex;
    margin-top: 30px;
    gap: 9px;
    align-items: center;
    color: #d71f27;
    font-family: Manrope, "Open Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.main-home-reviews__note img {
    width: 9px;
    height: 6px;
}

@media (max-width: 1199px) {
    .main-home-reviews__title {
        font-size: 52px;
    }
}

@media (max-width: 767px) {
    .main-home-reviews {
        min-height: 0;
        padding: 45px 15px 45px;
        background: linear-gradient(180deg, #f8e8e5 0, #fff 695px) no-repeat #fff;
        background-size: 100% 695px;
    }

    .main-home-reviews__container {
        width: 100%;
        max-width: 330px;
    }

    .main-home-reviews__title {
        width: 236px;
        max-width: 100%;
        color: #000;
        font-size: 28px;
        line-height: 1.2;
    }

    .main-home-reviews__subtitle {
        width: 302px;
        max-width: 100%;
        margin: 20px 0 0;
        font-size: 16px;
        line-height: 1.2;
    }

    .main-home-reviews__viewport {
        margin-top: 60px;
        padding: 0;
        overflow: visible;
        scroll-snap-type: none;
    }

    .main-home-reviews__list {
        display: flex;
        width: 100%;
        gap: 20px;
        flex-direction: column;
    }

    .main-home-reviews__card {
        width: 100%;
        min-height: 0;
        padding: 20px 25px;
        scroll-snap-align: none;
    }

    .main-home-reviews__card-header {
        width: 100%;
        align-items: flex-start;
    }

    .main-home-reviews__author {
        padding-top: 0;
        gap: 15px;
    }

    .main-home-reviews__source {
        min-height: 0;
        margin-left: auto;
        padding: 10px;
        flex: 0 0 auto;
        font-size: 14px;
    }

    .main-home-reviews__body {
        min-height: 0;
        margin-top: 15px;
        padding-left: 15px;
    }

    .main-home-reviews__text {
        display: block;
        overflow: visible;
        font-size: 14px;
        line-height: 1.5;
        -webkit-line-clamp: initial;
    }

    .main-home-reviews__note {
        margin-top: 30px;
        font-size: 14px;
    }
}
