.reviews {
    --reviews-accent: #5f9944;
    box-sizing: border-box;
    padding: 24px 20px 72px;
    background: #fff
}

.reviews * {
    box-sizing: border-box
}
.main-title-reviews {
    text-align: center;
    margin: 0 0 40px;
}
.main-title-reviews span {
    color: #a80000;
}
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 88px;
    align-items: start
}

.reviews__item {
    min-width: 0
}

.reviews__item[hidden] {
    display: none
}

.reviews__actions {
    text-align: center;
    margin-top: 40px
}

.reviews__show-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 50px;
    padding: 12px 24px;
    border: 1px solid var(--reviews-accent);
    border-radius: 8px;
    background: var(--reviews-accent);
    color: #fff;
    font-size: 18px;
    cursor: pointer
}

.reviews__show-all:hover {
    background: var(--reviews-accent);
    filter: brightness(.9)
}

.reviews__show-all:focus-visible {
    outline: 3px solid var(--reviews-accent);
    outline-offset: 4px
}

.reviews__show-all[hidden] {
    display: none
}

.reviews__remaining {
    font-size: 13px;
    opacity: .8
}

.reviews__status {
    margin: 12px 0 0;
    color: #73786d;
    font-size: 14px
}

.review-card__screenshot {
    display: block;
    width: 100%;
    height: auto
}

.review-card__gallery {
    margin-top: 12px
}

.review-card__project {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: var(--reviews-accent);
    font-size: 18px;
    text-decoration: none
}

.review-card__project:hover {
    text-decoration: underline
}

.review-card__accessible {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0
}

.house-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #f3f4f0;
    touch-action: pan-y
}

.house-gallery__viewport {
    aspect-ratio: 1.35
}

.house-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0
}

.house-gallery__image[hidden] {
    display: none
}

.house-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: white;
    color: #222;
    font: 30px/32px;
    cursor: pointer;
    box-shadow: 0 1px 6px #0001
}

.house-gallery__arrow_prev {
    left: 10px
}

.house-gallery__arrow_next {
    right: 10px
}

.house-gallery__dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    padding: 0 4px;
    border-radius: 20px;
    background: #0003
}

.house-gallery__dot {
    position: relative;
    width: 24px;
    height: 24px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0
}

.house-gallery__dot:before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: #ffffff70
}

.house-gallery__dot[aria-pressed=true]:before {
    background: #fff
}

.house-gallery:focus-visible,
.house-gallery__arrow:focus-visible,
.house-gallery__dot:focus-visible,
.review-card__project:focus-visible {
    outline: 3px solid var(--reviews-accent);
    outline-offset: 3px
}

@media(max-width:640px) {
    .reviews {
        padding: 16px 16px 40px
    }

    .reviews__grid {
        grid-template-columns: 1fr;
        row-gap: 44px
    }

    .house-gallery__arrow {
        width: 44px;
        height: 44px
    }

    .house-gallery__dot {
        width: 30px;
        height: 30px
    }

    .house-gallery__dot:before {
        inset: 12px
    }
}

.review-card__preview {
    display: block;
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    padding: 0;
    margin: 0;
    border: 0;
    background: #fff;
    cursor: pointer;
    text-align: left
}

.review-card__preview:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none
}

.review-card__preview .review-card__screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto
}

.review-card__read {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 44px;
    padding: 0 8px;
    font-size: 18px;
    font-weight: 500;
    border: 0;
    border-bottom: 1px solid #e8ebe4;
    background: #fff;
    color: var(--reviews-accent);
    cursor: pointer;
    text-align: left
}

.review-card__read:hover {
    background: #f6f8f3
}

.review-card__preview:focus-visible,
.review-card__read:focus-visible,
.review-dialog__close:focus-visible {
    outline: 3px solid var(--reviews-accent);
    outline-offset: 2px
}

.review-dialog {
    box-sizing: border-box;
    width: min(680px, calc(100% - 32px));
    max-height: 85dvh;
    padding: 24px 32px 32px;
    border: 0;
    border-radius: 16px;
    color: #202020;
    box-shadow: 0 20px 80px #0003
}

.review-dialog:not([open]) {
    display: none
}

.review-dialog::backdrop {
    background: #19201899
}

.review-dialog__controls {
    display: flex;
    justify-content: flex-end;
    position: sticky;
    top: 0
}

.review-dialog__close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #eef1ea;
    font-size: 28px;
    cursor: pointer
}

.review-dialog__title {
    font-size: 24px;
    margin: 0 0 8px
}

.review-dialog__date {
    color: #777;
    font-size: 14px;
    margin: 0 0 24px
}

.review-dialog__text {
    line-height: 1.65;
    margin: 0
}

@media(max-width:640px) {
    .review-card__preview {
        height: 150px
    }

    .reviews .container {
    padding-left: 0;
    padding-right: 0;
}

    .review-dialog {
        padding: 16px 20px 24px
    }
}