.ehs-reviews-page {
    color: #222324;
}

.ehs-reviews-page h1,
.ehs-reviews-page h2,
.ehs-reviews-page h3 {
    color: #1f355f;
}

.ehs-reviews-page a {
    text-decoration: none;
}

.ehs-reviews-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 0 0 42px;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #eef8ff 100%);
    border: 1px solid rgba(79, 190, 253, 0.24);
    border-radius: 22px;
    box-shadow: 0 24px 50px rgba(31, 53, 95, 0.08);
}

.ehs-reviews-hero h1 {
    margin: 0 0 14px;
}

.ehs-reviews-hero p {
    max-width: 820px;
    color: #585b62;
    font-size: 17px;
    line-height: 1.65;
}

.ehs-reviews-kicker {
    display: inline-flex;
    align-items: center;
    margin: 0 0 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(79, 190, 253, 0.12);
    color: #1f355f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ehs-reviews-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ehs-reviews-hero__stats div {
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(31, 53, 95, 0.08);
    border-radius: 16px;
}

.ehs-reviews-hero__stats strong {
    display: block;
    color: #4fbefd;
    font-size: 34px;
    line-height: 1;
}

.ehs-reviews-hero__stats span {
    display: block;
    margin-top: 8px;
    color: #585b62;
    font-size: 13px;
    line-height: 1.35;
}

.ehs-reviews-block {
    margin: 0 0 48px;
}

.ehs-reviews-block:last-child {
    margin-bottom: 0;
}

.ehs-reviews-section-head {
    margin: 0 0 24px;
}

.ehs-reviews-section-head span {
    display: inline-block;
    margin-bottom: 10px;
    color: #4fbefd;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ehs-reviews-section-head h2 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
}

.ehs-reviews-section-head p {
    max-width: 840px;
    color: #585b62;
    line-height: 1.6;
}

.ehs-featured-reviews,
.ehs-all-reviews-grid {
    display: grid;
    gap: 24px;
}

.ehs-featured-reviews {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ehs-all-reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ehs-review-text,
.ehs-review-pdf {
    overflow: hidden;
    min-height: 100%;
    background: #ffffff;
    border: 1px solid rgba(31, 53, 95, 0.08);
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(31, 53, 95, 0.08);
}

.ehs-review-text {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
}

.ehs-review-text__content {
    position: relative;
    min-width: 0;
}

.ehs-review-text__quote {
    position: absolute;
    top: -18px;
    left: -4px;
    color: rgba(79, 190, 253, 0.16);
    font-size: 82px;
    line-height: 1;
    font-weight: 700;
}

.ehs-review-text h3 {
    position: relative;
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.ehs-review-text__body {
    position: relative;
    line-height: 1.65;
}

.ehs-review-text__body p + p {
    margin-top: 10px;
}

.ehs-review-text__media {
    align-self: end;
}

.ehs-review-text__media a,
.ehs-review-text__no-photo {
    display: inline-flex;
    width: 118px;
    min-height: 154px;
    padding: 7px;
    background: #f5f6fa;
    border-radius: 13px;
    box-shadow: inset 0 0 0 1px rgba(31, 53, 95, 0.08);
}

.ehs-review-text__media img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    object-position: top center;
    background: #ffffff;
    border-radius: 9px;
}

.ehs-review-text__no-photo {
    align-items: center;
    justify-content: center;
    color: #818a9a;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
}

.ehs-review-pdf {
    display: flex;
    flex-direction: column;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ehs-review-pdf:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 52px rgba(31, 53, 95, 0.13);
}

.ehs-review-pdf__preview {
    position: relative;
    display: block;
    padding: 18px 18px 0;
    background: linear-gradient(180deg, #f9fbff 0%, #eef8ff 100%);
}

.ehs-review-pdf__preview:after {
    content: "Смотреть";
    position: absolute;
    right: 28px;
    bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(31, 53, 95, 0.88);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.ehs-review-pdf:hover .ehs-review-pdf__preview:after {
    opacity: 1;
    transform: translateY(0);
}

.ehs-review-pdf__preview img {
    display: block;
    width: 100%;
    height: 275px;
    object-fit: contain;
    object-position: top center;
    background: #ffffff;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 16px 26px rgba(31, 53, 95, 0.14);
}

.ehs-review-pdf--featured .ehs-review-pdf__preview img {
    height: 335px;
}

.ehs-review-pdf__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    background: #ffffff;
    border-radius: 14px;
    color: #4fbefd;
    font-size: 34px;
    font-weight: 800;
}

.ehs-review-pdf__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px;
}

.ehs-review-pdf__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}

.ehs-review-pdf__meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f5f6fa;
    color: #65676b;
    font-size: 12px;
    font-weight: 700;
}

.ehs-review-pdf__meta span:first-child {
    background: rgba(79, 190, 253, 0.13);
    color: #1f355f;
}

.ehs-review-pdf h3 {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.ehs-review-pdf__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.ehs-review-button,
.ehs-review-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: background 180ms ease, color 180ms ease;
}

.ehs-review-button {
    background: #4fbefd;
    color: #ffffff;
}

.ehs-review-button:hover {
    background: #33a7e8;
    color: #ffffff;
}

.ehs-review-link {
    background: #f5f6fa;
    color: #1f355f;
}

.ehs-review-link:hover {
    background: #1f355f;
    color: #ffffff;
}

.ehs-reviews-empty {
    grid-column: 1 / -1;
    padding: 18px;
    background: #ffffff;
    border-radius: 14px;
    color: #585b62;
}

.ehs-review-modal[hidden] {
    display: none !important;
}

.ehs-review-modal {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.ehs-review-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 22, 45, 0.68);
}

.ehs-review-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1040px, 100%);
    height: min(86vh, 900px);
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.ehs-review-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(31, 53, 95, 0.1);
}

.ehs-review-modal__header strong {
    color: #1f355f;
    font-size: 16px;
}

.ehs-review-modal__header div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ehs-review-modal__header a {
    color: #4fbefd;
    font-size: 14px;
    font-weight: 700;
}

.ehs-review-modal__header button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #f5f6fa;
    color: #1f355f;
    font-size: 28px;
    line-height: 1;
}

.ehs-review-modal iframe {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    background: #f5f6fa;
}

body.ehs-review-modal-open {
    overflow: hidden;
}

@media (min-width: 992px) {
    .ehs-reviews-hero {
        grid-template-columns: minmax(0, 1fr) 310px;
        align-items: center;
    }
}

@media (max-width: 1199px) {
    .ehs-featured-reviews,
    .ehs-all-reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ehs-reviews-hero {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .ehs-reviews-hero p {
        font-size: 15px;
    }

    .ehs-reviews-hero__stats,
    .ehs-featured-reviews,
    .ehs-all-reviews-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ehs-reviews-section-head h2 {
        font-size: 22px;
    }

    .ehs-review-pdf__preview img,
    .ehs-review-pdf--featured .ehs-review-pdf__preview img {
        height: 255px;
    }

    .ehs-review-modal {
        padding: 10px;
    }

    .ehs-review-modal__dialog {
        height: 88vh;
        border-radius: 14px;
    }

    .ehs-review-modal__header {
        align-items: flex-start;
        flex-direction: column;
    }
}
