.yandex-shop-reviews {
    --ysr-ink: #07162f;
    --ysr-muted: #667085;
    --ysr-line: #dfe8f5;
    --ysr-soft: #f6f9ff;
    --ysr-blue: #0b63ff;
    --ysr-orange: #ff5a1f;
    width: min(100%, 1180px);
    margin: clamp(22px, 3vw, 38px) auto;
    padding: clamp(18px, 2.2vw, 28px);
    border: 1px solid rgba(11, 99, 255, .12);
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgba(11, 99, 255, .08), transparent 36%) 0 0 / 100% 1px no-repeat,
        #fff;
    color: var(--ysr-ink);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .055);
}

.yandex-shop-reviews *,
.yandex-shop-reviews *::before,
.yandex-shop-reviews *::after {
    box-sizing: border-box;
}

.ysr-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.ysr-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 7px;
    padding: 5px 9px;
    border: 1px solid rgba(11, 99, 255, .12);
    border-radius: 999px;
    background: #f4f8ff;
    color: var(--ysr-blue);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.ysr-head h2 {
    max-width: 680px;
    margin: 0;
    color: var(--ysr-ink);
    font-size: clamp(22px, 2.1vw, 34px);
    font-weight: 780;
    line-height: 1.1;
    letter-spacing: 0;
}

.ysr-head p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--ysr-muted);
    font-size: 14px;
    line-height: 1.45;
}

.ysr-head-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(11, 99, 255, .12);
    border-radius: 999px;
    background: #fff;
    color: var(--ysr-blue);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.ysr-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}

.ysr-summary {
    display: grid;
    grid-template-columns: 170px 160px minmax(210px, .9fr) minmax(330px, 1.2fr);
    gap: 12px;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--ysr-line);
    border-radius: 20px;
    background: var(--ysr-soft);
}

.ysr-score strong {
    display: block;
    color: var(--ysr-ink);
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 720;
    line-height: .95;
}

.ysr-score > span {
    display: block;
    margin-top: 6px;
    color: var(--ysr-muted);
    font-size: 13px;
    line-height: 1.35;
}

.ysr-score em {
    display: block;
    margin-top: 3px;
    color: #475467;
    font-size: 13px;
    font-style: normal;
}

.ysr-stars {
    display: inline-flex;
    gap: 2px;
    color: #d9dee8;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
}

.ysr-stars .is-filled {
    color: var(--ysr-orange);
}

.ysr-score .ysr-stars {
    margin-top: 8px;
    font-size: 19px;
}

.ysr-topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.ysr-topics h3 {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--ysr-ink);
    font-size: 15px;
    font-weight: 780;
    line-height: 1.2;
}

.ysr-topic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    padding: 7px 8px;
    border: 1px solid rgba(223, 232, 245, .82);
    border-radius: 12px;
    background: #fff;
}

.ysr-topic strong {
    display: block;
    color: var(--ysr-ink);
    font-size: 12px;
    font-weight: 720;
    line-height: 1.2;
}

.ysr-topic span {
    display: block;
    margin-top: 2px;
    color: #7b8494;
    font-size: 11px;
    line-height: 1.2;
}

.ysr-topic em,
.ysr-topic small {
    font-style: normal;
    font-size: 12px;
    font-weight: 780;
    line-height: 1;
}

.ysr-topic em {
    color: #18a957;
}

.ysr-topic small {
    display: none;
    color: #8a94a6;
}

.ysr-award {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 90, 31, .18);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 90, 31, .08), rgba(255, 255, 255, .9));
}

.ysr-award__mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--ysr-orange);
    color: #fff;
    font-size: 0;
}

.ysr-award__mark::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #fff;
}

.ysr-award strong {
    display: block;
    color: var(--ysr-ink);
    font-size: 14px;
    font-weight: 780;
    line-height: 1.2;
}

.ysr-award p {
    margin: 3px 0 8px;
    color: #667085;
    font-size: 12px;
    line-height: 1.3;
}

.ysr-award iframe {
    display: block;
    max-width: 150px;
    border: 0;
    border-radius: 8px;
}

.ysr-badge {
    display: inline-flex;
    width: fit-content;
    min-height: 50px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    align-self: start;
}

.ysr-badge iframe {
    display: block;
    border: 0;
}

.ysr-reviews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ysr-review {
    min-height: 132px;
    padding: 14px 16px;
    border: 1px solid #edf1f7;
    border-radius: 18px;
    background: #f7f8fa;
}

.ysr-review header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 10px;
}

.ysr-review strong {
    display: block;
    color: var(--ysr-ink);
    font-size: 14px;
    font-weight: 760;
    line-height: 1.25;
}

.ysr-review header span:not(.ysr-stars) {
    display: block;
    margin-top: 2px;
    color: #667085;
    font-size: 12px;
    line-height: 1.25;
}

.ysr-review p {
    margin: 0;
    color: #1d2939;
    font-size: 14px;
    line-height: 1.45;
}

.ysr-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #edf1f7;
}

.ysr-footer p {
    margin: 0;
    color: #667085;
    font-size: 12.5px;
    line-height: 1.35;
}

.ysr-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    border-radius: 12px;
    background: var(--ysr-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 760;
    line-height: 1;
    text-decoration: none;
}

.ysr-cta:hover {
    background: #0052df;
    color: #fff;
}

@media (max-width: 980px) {
    .yandex-shop-reviews {
        border-radius: 20px;
    }

    .ysr-layout {
        grid-template-columns: 1fr;
    }

    .ysr-summary {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
        align-items: start;
    }

    .ysr-topics {
        grid-column: 1 / -1;
    }

    .ysr-reviews {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .yandex-shop-reviews {
        width: min(calc(100% - 14px), 560px);
        margin: 18px auto;
        padding: 14px 10px;
        border-radius: 18px;
    }

    .ysr-head {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }

    .ysr-kicker {
        margin-bottom: 6px;
        font-size: 11px;
    }

    .ysr-head h2 {
        font-size: 21px;
    }

    .ysr-head p {
        font-size: 12.5px;
    }

    .ysr-head-link {
        width: fit-content;
        min-height: 32px;
        font-size: 12px;
    }

    .ysr-summary {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        padding: 12px;
        border-radius: 16px;
    }

    .ysr-score strong {
        font-size: 38px;
    }

    .ysr-award {
        grid-column: 1 / -1;
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 8px;
        min-height: 0;
        padding: 9px 10px;
    }

    .ysr-award__mark {
        width: 24px;
        height: 24px;
    }

    .ysr-award strong {
        font-size: 13px;
    }

    .ysr-award p {
        margin: 2px 0 0;
        font-size: 11.5px;
    }

    .ysr-award iframe {
        display: none;
    }

    .ysr-topics {
        display: none;
    }

    .ysr-badge {
        justify-self: end;
    }

    .ysr-reviews {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ysr-review:nth-child(n+3) {
        display: none;
    }

    .ysr-review {
        min-height: 0;
        padding: 12px;
        border-radius: 14px;
    }

    .ysr-review p {
        font-size: 13px;
        line-height: 1.4;
    }

    .ysr-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 12px;
        padding-top: 12px;
    }

    .ysr-cta {
        width: 100%;
        min-height: 42px;
    }
}
