/* Codex hotfix 2026-07-15: prevent page-level horizontal scroll regressions. */
html,
body.ew-page {
    max-width: 100%;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    html,
    body.ew-page {
        overflow-x: hidden;
    }
}

@media (min-width: 961px) {
    .ew-reviews {
        overflow: hidden;
    }

    .ew-review-viewport {
        max-width: 100%;
        overflow: hidden;
    }

    .ew-faq {
        height: auto;
        min-height: 641px;
        padding-bottom: 64px;
        overflow: visible;
    }

    .ew-accordion,
    .ew-accordion details,
    .ew-accordion details[open] {
        overflow: visible;
    }
}

@media (min-width: 961px) and (max-width: 1439px) {
    .ew-footer {
        height: auto;
        min-height: 0;
    }

    .ew-footer__top {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, .78fr) minmax(0, .78fr) minmax(0, .82fr);
        gap: clamp(28px, 3vw, 40px);
    }

    .ew-footer__top > * {
        min-width: 0;
    }

    .ew-footer__contacts a,
    .ew-footer__contacts .ew-button {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
        white-space: normal;
    }
}

/* Codex hotfix 2026-07-15: restore Yandex/Google review cards for map links. */
.ew-review-ratings {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.ew-review-ratings > a {
    display: flex;
    min-width: 179px;
    min-height: 88px;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid #d2cbc8;
    border-radius: 8px;
    color: inherit;
    background: rgba(255, 255, 255, .46);
    text-decoration: none;
}

.ew-review-ratings > a:focus-visible {
    outline: 2px solid #f5650b;
    outline-offset: 3px;
}

.ew-review-ratings > a > b {
    flex: 0 0 auto;
    font-family: Arial, sans-serif;
    font-size: 64px;
    line-height: 1;
}

.ew-review-ratings > a > span {
    display: block;
    min-width: 0;
}

.ew-review-ratings > a strong {
    display: block;
    font-size: 20px;
    line-height: 1.2;
}

.ew-review-ratings > a small {
    display: block;
    margin-top: 4px;
    color: var(--ew-muted);
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 620px) {
    .ew-review-ratings {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .ew-review-ratings > a {
        min-width: 0;
        min-height: 78px;
        gap: 10px;
        padding: 12px;
    }

    .ew-review-ratings > a > b {
        font-size: 52px;
    }

    .ew-review-ratings > a strong {
        font-size: 17px;
    }

    .ew-review-ratings > a small {
        font-size: 12px;
    }
}

/* Codex mobile hero title fit 20260716 */
@media (max-width: 620px) {
  .ew-hero h1 {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
  }
}
