/*
 * ====================================================================
 * page.css
 * ====================================================================
 *
 * Страница отзывов: бренд #EB4036 поверх LPC, без ломки сетки демо.
 * Макет колонок / типографика — из lpc-base + lpc-block (как на oml.ru/reviews).
 */

html.mw-reviews {
    --primary-color-base: #EB4036;
    --primary-color-l-5: #d6362c;
    --primary-color-d-5: #c42e25;
    --primary-color-a-01: rgba(235, 64, 54, 0.1);
    --primary-color-a-02: rgba(235, 64, 54, 0.2);
    --primary-color-a-03: rgba(235, 64, 54, 0.3);
}

html.mw-reviews,
html.mw-reviews body {
    overflow-x: hidden;
}

/* Крошки — акцент бренда вместо оранжевого демо */
html.mw-reviews .mosaic-crumbs--u-il34i0uoy {
    max-width: 100%;
    overflow-wrap: anywhere;
}

html.mw-reviews .mosaic-crumbs__item_link--u-ik176n4nq {
    color: #EB4036;
    opacity: 1;
}

html.mw-reviews .mosaic-crumbs__item_link--u-ik176n4nq:hover {
    color: #EB4036;
}

html.mw-reviews .mosaic-crumbs__last--u-id4cppw9k {
    color: #131a1e;
    opacity: 1;
}

html.mw-reviews .page-title--u-id4ryxzo8 {
    color: #131a1e;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* —— Сетка карточек —— */
html.mw-reviews .mw-reviews-page {
    width: 100%;
    max-width: 100%;
    margin-top: 28px;
}

html.mw-reviews .mw-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

html.mw-reviews .mw-review-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 24px 22px 20px;
    border: 1px solid rgba(19, 26, 30, 0.1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(19, 26, 30, 0.04);
    box-sizing: border-box;
}

html.mw-reviews .mw-review-card__text {
    flex: 1 1 auto;
    margin: 0 0 20px;
    color: #131a1e;
    font-family: Rubik, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

html.mw-reviews .mw-review-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(19, 26, 30, 0.08);
}

html.mw-reviews .mw-review-card__photo {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f2f4;
}

html.mw-reviews .mw-review-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html.mw-reviews .mw-review-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

html.mw-reviews .mw-review-card__name {
    color: #131a1e;
    font-family: Unbounded, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

html.mw-reviews .mw-review-card__role {
    color: rgba(19, 26, 30, 0.55);
    font-family: Rubik, sans-serif;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

html.mw-reviews .mw-reviews-empty {
    margin: 0;
    padding: 32px 20px;
    text-align: center;
    color: rgba(19, 26, 30, 0.55);
    font-family: Rubik, sans-serif;
    font-size: 16px;
    border: 1px solid rgba(19, 26, 30, 0.1);
    border-radius: 16px;
    background: #fff;
}

/* —— Пагинация —— */
html.mw-reviews .mw-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 32px auto 0;
    text-align: center;
}

html.mw-reviews .mw-pager__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(19, 26, 30, 0.14);
    background: #fff;
    color: #131a1e;
    text-decoration: none;
    font-family: Rubik, sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
}

html.mw-reviews .mw-pager__btn:hover {
    border-color: #EB4036;
    color: #EB4036;
}

html.mw-reviews .mw-pager__btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

html.mw-reviews .mw-pager__info {
    font-family: Rubik, sans-serif;
    font-size: 14px;
    color: rgba(19, 26, 30, 0.55);
}

/* —— CTA —— */
html.mw-reviews .mw-reviews-cta {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 28px;
}

html.mw-reviews .mw-reviews-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: 999px;
    background: #EB4036;
    color: #fff !important;
    text-decoration: none;
    font-family: Rubik, sans-serif;
    font-size: 16px;
    font-weight: 500;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

html.mw-reviews .mw-reviews-cta__btn:hover {
    background: #d6362c;
    color: #fff !important;
}

/* —— Модалка отзыва (как попап заявки) —— */
html.mw-reviews .mw-review-popup {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 11;
    width: 100%;
}

html.mw-reviews .mw-review-popup.is-opened {
    z-index: 40;
}

html.mw-reviews .mw-review-popup__bg {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
    background-color: rgba(19, 26, 30, 0.75);
    opacity: 0;
    transition: opacity 0.35s ease;
    box-sizing: border-box;
}

html.mw-reviews .mw-review-popup.is-opened .mw-review-popup__bg {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto;
}

html.mw-reviews .mw-review-popup__data {
    position: relative;
    width: 420px;
    max-width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
}

html.mw-reviews .mw-review-popup__panel {
    width: 100%;
    padding: 20px 22px 22px;
    border-radius: 18px;
    border: 1px solid rgba(19, 26, 30, 0.12);
    background: #f0f0f2;
    box-sizing: border-box;
    overflow: visible;
}

html.mw-reviews .mw-review-popup__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

html.mw-reviews .mw-review-popup__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    color: #131a1e;
    font-family: Unbounded, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

html.mw-reviews .mw-review-popup__subtitle {
    margin: 0 0 14px;
    color: rgba(19, 26, 30, 0.55);
    font-family: Rubik, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

html.mw-reviews .mw-review-popup__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

html.mw-reviews .mw-review-popup__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    width: 100%;
}

html.mw-reviews .mw-review-popup__label {
    color: #131a1e;
    font-family: Rubik, sans-serif;
    font-size: 12px;
    font-weight: 600;
}

html.mw-reviews .mw-review-popup__label em {
    color: #EB4036;
    font-style: normal;
}

html.mw-reviews .mw-review-popup__field input,
html.mw-reviews .mw-review-popup__field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #131a1e;
    font-family: Rubik, sans-serif;
    font-size: 15px;
    line-height: 1.35;
    box-shadow: 0 0 0 1px rgba(19, 26, 30, 0.12);
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

html.mw-reviews .mw-review-popup__field textarea {
    min-height: 72px;
    max-height: 96px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 16px;
    resize: none;
}

html.mw-reviews .mw-review-popup__field input::placeholder,
html.mw-reviews .mw-review-popup__field textarea::placeholder {
    color: rgba(19, 26, 30, 0.45);
}

html.mw-reviews .mw-review-popup__field input:focus,
html.mw-reviews .mw-review-popup__field textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px #EB4036;
}

html.mw-reviews .mw-review-popup__hint {
    align-self: flex-end;
    color: rgba(19, 26, 30, 0.4);
    font-family: Rubik, sans-serif;
    font-size: 11px;
}

html.mw-reviews .mw-review-popup__file {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

html.mw-reviews .mw-review-popup__file input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

html.mw-reviews .mw-review-popup__file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: 100%;
    padding: 8px 18px;
    border-radius: 999px;
    background: #fff;
    color: #131a1e;
    font-family: Rubik, sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 0 0 1px rgba(19, 26, 30, 0.14);
    box-sizing: border-box;
    pointer-events: none;
}

html.mw-reviews .mw-review-popup__file:hover .mw-review-popup__file-btn,
html.mw-reviews .mw-review-popup__file:focus-within .mw-review-popup__file-btn {
    color: #EB4036;
    box-shadow: 0 0 0 1px #EB4036;
}

html.mw-reviews .mw-review-popup__file-name {
    color: rgba(19, 26, 30, 0.5);
    font-family: Rubik, sans-serif;
    font-size: 12px;
    overflow-wrap: anywhere;
}

html.mw-reviews .mw-review-popup__checks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

html.mw-reviews .mw-review-popup__check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(19, 26, 30, 0.62);
    font-family: Rubik, sans-serif;
    font-size: 12px;
    line-height: 1.35;
    cursor: pointer;
}

html.mw-reviews .mw-review-popup__check input {
    appearance: none;
    -webkit-appearance: none;
    margin-top: 1px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 1px solid rgba(19, 26, 30, 0.28);
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
}

html.mw-reviews .mw-review-popup__check input:checked {
    background: #EB4036 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M3 8.5 6.5 12 13 4'/%3E%3C/svg%3E") center / 10px no-repeat;
    border-color: #EB4036;
}

html.mw-reviews .mw-review-popup__check a {
    color: #EB4036;
    text-decoration: underline;
    text-underline-offset: 2px;
}

html.mw-reviews .mw-review-popup__msg {
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    font-family: Rubik, sans-serif;
    font-size: 13px;
    line-height: 1.35;
}

html.mw-reviews .mw-review-popup__msg.is-ok {
    background: #e8f6ec;
    color: #1b5e20;
}

html.mw-reviews .mw-review-popup__msg.is-err {
    background: #fdeceb;
    color: #8f1818;
}

html.mw-reviews .mw-review-popup__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: #EB4036;
    background-image: linear-gradient(to right bottom, #EB4036 0%, rgba(235, 64, 54, 0) 100%);
    color: #fff;
    font-family: Unbounded, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

html.mw-reviews .mw-review-popup__submit:hover {
    background-color: #d6362c;
    transform: scale(0.98);
}

html.mw-reviews .mw-review-popup__submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

html.mw-reviews .mw-review-popup__close {
    position: static;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #EB4036 !important;
    background-image: linear-gradient(to right bottom, #EB4036 0%, rgba(235, 64, 54, 0) 100%) !important;
    color: #fff;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

html.mw-reviews .mw-review-popup__close:hover {
    background-color: #d6362c !important;
    transform: scale(0.95);
}

html.mw-reviews .mw-review-popup__close span {
    display: block;
    margin-top: -2px;
}

@media (prefers-reduced-motion: reduce) {
    html.mw-reviews .mw-review-popup.is-opened .mw-review-popup__data {
        animation: none;
    }
}

html.mw-reviews .mosaic-popup__close--u-izbayip7a,
html.mw-reviews .side-panel__button-close--u-iki0lgea4,
html.mw-reviews .side-panel__button-open--u-izkrt33zv {
    background-color: #EB4036 !important;
    background-image: none !important;
}

html.mw-reviews .div--u-i7w4ftx7p,
html.mw-reviews .mosaic-form--u-if8bri88i .div--u-i7w4ftx7p,
html.mw-reviews .div--u-ifqtfrgl2 {
    background-color: #EB4036 !important;
    background-image: none !important;
}

html.mw-reviews .div--u-ijdnwz0fa,
html.mw-reviews .div--u-i9r512qsz {
    background-color: #d6362c !important;
}

html.mw-reviews .mosaic-form__text:focus,
html.mw-reviews .mosaic-form__text.is-focus {
    box-shadow: 0 0 0 1px #EB4036 !important;
}

html.mw-reviews .mosaic-form__checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid rgba(19, 26, 30, 0.28);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

html.mw-reviews .mosaic-form__checkbox:checked {
    background: #EB4036 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M3 8.5 6.5 12 13 4'/%3E%3C/svg%3E") center / 12px no-repeat;
    border-color: #EB4036;
}

html.mw-reviews .mosaic-form__checkbox-icon {
    display: none !important;
}

html.mw-reviews .mosaic-form__label {
    gap: 8px;
    cursor: pointer;
}

/* ----- Планшет ----- */
@media (max-width: 991px) {
    html.mw-reviews .mw-reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    html.mw-reviews .mw-review-card {
        padding: 20px 18px 18px;
    }

    html.mw-reviews .container--u-itjr1b602 {
        padding-right: 84px;
        box-sizing: border-box;
    }

    html.mw-reviews .text--u-i0g55i0is,
    html.mw-reviews .text--u-inzu3srvv {
        overflow-wrap: anywhere;
    }

    html.mw-reviews .side-panel__button-open--u-izkrt33zv {
        margin-right: 16px;
        margin-top: 12px;
    }
}

/* ----- Телефон ----- */
@media (max-width: 767px) {
    html.mw-reviews .mw-reviews-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    html.mw-reviews .mw-reviews-page {
        margin-top: 20px;
    }

    html.mw-reviews .mw-review-card__text {
        font-size: 14px;
    }

    html.mw-reviews .mw-pager {
        margin-top: 24px;
        gap: 10px;
    }

    html.mw-reviews .mw-pager__btn {
        flex: 1 1 auto;
        max-width: 140px;
    }

    html.mw-reviews .mw-reviews-cta {
        margin-bottom: 20px;
    }

    html.mw-reviews .mw-reviews-cta__btn {
        width: 100%;
    }

    html.mw-reviews .mw-review-popup__bg {
        padding: 12px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    html.mw-reviews .mw-review-popup__data {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        max-height: none;
    }

    html.mw-reviews .mw-review-popup.is-opened .mw-review-popup__data {
        animation: none;
    }

    html.mw-reviews .mw-review-popup__panel {
        width: 100%;
        max-height: none;
        overflow: visible;
        padding: 16px 16px 18px;
        border-radius: 16px;
        border: 1px solid rgba(19, 26, 30, 0.12);
    }

    html.mw-reviews .mw-review-popup__panel::before {
        display: none;
    }

    html.mw-reviews .mw-review-popup__title {
        font-size: 18px;
        padding-right: 0;
    }

    html.mw-reviews .mw-review-popup__subtitle {
        margin-bottom: 12px;
        font-size: 12px;
    }

    html.mw-reviews .mw-review-popup__form {
        gap: 8px;
    }

    html.mw-reviews .mw-review-popup__field input,
    html.mw-reviews .mw-review-popup__field textarea {
        min-height: 42px;
        padding: 9px 16px;
        font-size: 16px;
    }

    html.mw-reviews .mw-review-popup__field textarea {
        min-height: 64px;
        max-height: 80px;
    }

    html.mw-reviews .mw-review-popup__file-btn {
        min-height: 38px;
        font-size: 13px;
    }

    html.mw-reviews .mw-review-popup__checks {
        gap: 4px;
    }

    html.mw-reviews .mw-review-popup__check {
        font-size: 11px;
    }

    html.mw-reviews .mw-review-popup__submit {
        min-height: 44px;
        font-size: 14px;
        padding: 10px 16px;
    }

    html.mw-reviews .mw-review-popup__close {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 24px;
    }

    html.mw-reviews .section--u-i9kxa43wu {
        padding-left: 5%;
        padding-right: 5%;
    }

    html.mw-reviews .container--u-i8cpiytvm {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    html.mw-reviews .container--u-itjr1b602 {
        padding-right: 72px;
        align-items: flex-start;
    }

    html.mw-reviews .div--u-i70mq0jc1 {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    html.mw-reviews .div--u-icigca7fh,
    html.mw-reviews .div--u-ibu9xmvqh {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
    }

    html.mw-reviews .mosaic-popup--u-i2sta0m98,
    html.mw-reviews .mosaic-popup__inner-bg--u-i9xqong4o {
        padding: 12px;
        box-sizing: border-box;
    }

    html.mw-reviews .mosaic-popup__inner-data--u-io251uzcb {
        width: 100% !important;
        max-width: 100%;
        margin: 0;
    }

    html.mw-reviews .mosaic-form--u-if8bri88i {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100%;
        padding: 48px 20px 28px !important;
        box-sizing: border-box;
    }

    html.mw-reviews .mosaic-form--u-if8bri88i .mosaic-form__form--u-iyl5jy4o9,
    html.mw-reviews .mosaic-form--u-if8bri88i .mosaic-form__field,
    html.mw-reviews .mosaic-form--u-if8bri88i .div--u-iy4vnuijz,
    html.mw-reviews .div--u-i7w4ftx7p {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    html.mw-reviews .div--u-ifqtfrgl2 {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        padding: 16px 24px;
    }

    html.mw-reviews .div--u-its5uq5pe {
        width: 100%;
        align-items: stretch;
    }

    html.mw-reviews .link-universal--u-i51aoq5lk {
        width: 100%;
    }
}

@media (max-width: 479px) {
    html.mw-reviews .mw-review-popup__panel {
        padding: 14px 14px 16px;
    }

    html.mw-reviews .mw-review-popup__title {
        font-size: 17px;
    }

    html.mw-reviews .container--u-itjr1b602 {
        padding-right: 64px;
        padding-top: 12px;
        padding-bottom: 16px;
    }

    html.mw-reviews .link-universal--u-imjlv0j7v {
        font-size: 16px;
        line-height: 22px;
    }

    html.mw-reviews .text--u-i0g55i0is {
        font-size: 13px;
        line-height: 20px;
    }

    html.mw-reviews .side-panel__button-open--u-izkrt33zv {
        width: 48px;
        min-height: 48px;
        margin-right: 12px;
        margin-top: 10px;
    }

    html.mw-reviews .mosaic-form--u-if8bri88i {
        padding: 44px 16px 24px !important;
    }

    html.mw-reviews .mosaic-popup__close--u-izbayip7a {
        min-width: 44px;
        min-height: 44px;
        top: 8px;
        right: 8px;
    }
}
