/* Portfolio, reviews, FAQ, process and desktop layout for the new rozrobka blocks. */

.pl-rs-reviews__title {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: none;
}

.pl-rs-reviews__title img {
    width: 34px;
    height: 34px;
}

.pl-rs-reviews__rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 20px 0 0;
    padding: 16px;
    border-radius: 12px;
    background: var(--pl-rs-card);
}

.pl-rs-reviews__score {
    color: var(--pl-rs-f60);
    font-size: 24px;
    font-weight: 500;
}

.pl-rs-reviews__meta {
    color: var(--pl-rs-caption);
    font-size: 16px;
}

.pl-rs-reviews__track {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.pl-rs-review {
    flex: 0 0 86%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 16px;
    border-radius: 12px;
    background: var(--pl-rs-card-2);
}

.pl-rs-review__head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pl-rs-review__name {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
}

.pl-rs-review__g {
    width: 16px;
    height: 16px;
    margin-left: auto;
}

.pl-rs-review p {
    margin: 0;
    color: var(--pl-rs-caption);
    font-size: 16px;
    line-height: 1.45;
}

.pl-rs-body .pl-ads-faq .pl-ads-wrap {
    width: min(790px, calc(100% - 32px));
}

.pl-rs-body .pl-ads-faq__item {
    border: 0;
    border-radius: 12px;
    background: var(--pl-rs-card, #101010);
    padding: 16px 20px;
}

.pl-rs-body .pl-ads-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    color: var(--pl-rs-text);
    font-size: 16px;
    font-weight: 500;
    list-style: none;
}

.pl-rs-body .pl-ads-faq__q::-webkit-details-marker {
    display: none;
}

.pl-rs-body .pl-ads-faq__q::after {
    content: "";
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background: url("../../img/rozrobka-figma/rs-chevron.svg") center / 8px 16px no-repeat;
    transform: rotate(-90deg);
}

.pl-rs-body .pl-ads-faq__item[open] > .pl-ads-faq__q {
    color: var(--pl-rs-f60);
}

.pl-rs-body .pl-ads-faq__item[open] > .pl-ads-faq__q::after {
    transform: rotate(90deg);
}

.pl-rs-body .pl-ads-faq__a {
    color: var(--pl-rs-caption);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
}

.pl-rs-process {
    overflow: clip;
    max-width: 100%;
}

.pl-rs .pl-rs-process .hf-process {
    height: auto;
    margin-top: 0;
    padding: 48px 0 16px;
}

.pl-rs .pl-rs-process .hf-process__bg {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    transform: none;
}

.pl-rs-video__dialog {
    width: fit-content;
    max-width: calc(100vw - 48px);
    height: fit-content;
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.pl-rs-video__dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.pl-rs-video__sheet {
    position: relative;
}

.pl-rs-video__slot iframe {
    display: block;
    width: auto;
    height: min(520px, calc(100dvh - 160px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    min-height: 240px;
    aspect-ratio: 9 / 16;
    max-width: calc(100vw - 48px);
    border: 0;
    border-radius: 12px;
    background: var(--pl-rs-video-bg, #171717);
}

.pl-rs-video__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: #f5f5f5;
    color: #000;
    font-size: 16px;
    cursor: pointer;
}

#rs-compare,
#process,
#rs-reviews {
    scroll-margin-top: calc(var(--pl-header-offset, 80px) + 16px + env(safe-area-inset-top, 0px));
}

@media (max-width: 767px) {
    .pl-rs-blocks__cta {
        width: 100%;
    }

    .pl-rs .pl-rs-process .hf-process {
        margin-top: 0;
        padding-top: 48px;
    }

    .pl-rs .pl-rs-process .hf-step__list li {
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .pl-rs-blocks {
        padding-top: 72px;
    }

    .pl-rs-blocks__h2 {
        font-size: 50px;
    }

    .pl-rs-blocks__head {
        gap: 30px;
        margin-bottom: 50px;
    }

    .pl-rs-compare {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px;
    }

    .pl-rs-card {
        padding: 20px;
    }

    .pl-rs-card__title {
        font-size: 22px;
        font-weight: 500;
    }

    .pl-rs-card--design { grid-column: 1; grid-row: 1; }
    .pl-rs-card--pay { grid-column: 1; grid-row: 2; }
    .pl-rs-card--own { grid-column: 1; grid-row: 3; }
    .pl-rs-card--support { grid-column: 1; grid-row: 4; }
    .pl-rs-card--speed { grid-column: 2; grid-row: 1; }
    .pl-rs-card--admin { grid-column: 2; grid-row: 2 / span 3; }

    .pl-rs-card__admin {
        flex-direction: row-reverse;
        align-items: flex-start;
    }

    .pl-rs-card--admin .pl-rs-video {
        width: 320px;
        max-width: 320px;
        flex: 0 0 320px;
    }

    .pl-rs-work__top {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 320px;
        align-items: start;
        gap: 20px;
        margin-top: 48px;
    }

    .pl-rs-work__top > .pl-rs-video {
        width: 100%;
        max-width: 320px;
    }

    .pl-rs-work__cases {
        display: contents;
    }

    .pl-rs-work__tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
        margin-top: 28px;
    }

    .pl-rs-tile {
        font-size: 18px;
    }

    .pl-rs-reviews__title {
        gap: 20px;
    }

    .pl-rs-reviews__title img {
        width: 50px;
        height: 50px;
    }

    .pl-rs-reviews__rating {
        margin-top: 48px;
        padding: 20px;
    }

    .pl-rs-reviews__track {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
        margin-top: 20px;
        overflow: visible;
    }

    .pl-rs-review {
        flex: none;
        padding: 20px;
    }

    .pl-rs .pl-rs-process .hf-process {
        padding-top: 72px;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .pl-rs-work__top {
        grid-template-columns: 1fr;
    }

    .pl-rs-work__cases {
        display: grid;
        gap: 20px;
    }

    .pl-rs-work .pl-rs-video {
        margin-inline: auto;
    }
}
