.ibg-home-reviews {
    box-sizing: border-box;
    width: 100%;
    padding: 28px 0 32px;
    overflow: hidden;
    background: #fff;
}

.ibg-home-reviews__inner {
    width: min(1150px, calc(100% - 48px));
    min-height: 0;
    margin: 0 auto;
}

.ibg-home-reviews__title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.el-footer .ibg-newsletter {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    width: min(1100px, calc(100% - 48px)) !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 20px 0 !important;
    gap: 32px !important;
}

.el-footer .ibg-newsletter__copy {
    max-width: 640px;
}

.el-footer .ibg-newsletter__copy h2 {
    font-size: clamp(24px, 2.5vw, 34px) !important;
    line-height: 1.12 !important;
}

.ibg-newsletter-open {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid #f0c76d;
    border-radius: 999px;
    background: #f0c76d;
    color: #062b52;
    font: 650 14px/1.2 Onest, Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.el-footer .ibg-newsletter__native[hidden],
.ibg-newsletter-modal[hidden] {
    display: none !important;
}

.ibg-newsletter-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 21, 39, 0.72);
}

.el-footer .ibg-newsletter__native.ibg-newsletter-modal-form:not([hidden]) {
    box-sizing: border-box;
    position: fixed !important;
    z-index: 100001;
    top: 50%;
    left: 50%;
    display: block !important;
    width: min(520px, calc(100% - 40px)) !important;
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 18px;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.ibg-newsletter-modal__close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #062b52;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ibg-newsletter-modal-form iframe {
    display: block !important;
    width: 100% !important;
    max-width: 440px !important;
    height: 720px !important;
    margin: 0 auto !important;
}

body.ibg-newsletter-modal-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .ibg-home-reviews {
        padding: 20px 0 24px;
    }

    .ibg-home-reviews__inner {
        width: calc(100% - 32px);
        min-height: 0;
    }

    .el-footer .ibg-newsletter {
        grid-template-columns: 1fr !important;
        width: calc(100% - 32px) !important;
        gap: 18px !important;
    }

    .ibg-newsletter-open {
        justify-self: start;
    }
}

@media (max-width: 430px) {
    .ibg-newsletter-modal {
        padding: 8px;
    }

    .el-footer .ibg-newsletter__native.ibg-newsletter-modal-form:not([hidden]) {
        width: calc(100% - 16px) !important;
        max-height: calc(100vh - 16px);
        padding: 8px;
    }

    .ibg-newsletter-modal-form iframe {
        height: 700px !important;
    }
}

/* Content-driven vertical rhythm for the ACF-rendered homepage only. */
body.ibg-el-page main[data-ibg-home-source="acf"] :where(.el-card-section, .el-feature) {
    min-height: 0 !important;
    padding-block: 32px !important;
}

body.ibg-el-page main[data-ibg-home-source="acf"] .el-hero {
    height: auto !important;
    min-height: 620px !important;
}

body.ibg-el-page main[data-ibg-home-source="acf"] .el-card-section {
    gap: 24px !important;
}

body.ibg-el-page main[data-ibg-home-source="acf"] .el-feature {
    height: auto !important;
    min-height: 0 !important;
    gap: 32px !important;
}

body.ibg-el-page main[data-ibg-home-source="acf"] .el-feature-media {
    height: auto !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

body.ibg-el-page main[data-ibg-home-source="acf"] :where(.el-trust, .el-cta-section) {
    height: auto !important;
    min-height: 0 !important;
    padding-block: 24px !important;
}

body.ibg-el-page main[data-ibg-home-source="acf"] .el-promo-cta {
    height: auto !important;
    min-height: 0 !important;
    padding: 28px 40px !important;
}

@media (max-width: 767px) {
    body.ibg-el-page main[data-ibg-home-source="acf"] :where(.el-card-section, .el-feature) {
        padding-block: 24px !important;
    }

    body.ibg-el-page main[data-ibg-home-source="acf"] .el-hero {
        min-height: 0 !important;
    }

    body.ibg-el-page main[data-ibg-home-source="acf"] :where(.el-card-section, .el-feature) {
        gap: 20px !important;
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    body.ibg-el-page main[data-ibg-home-source="acf"] .el-feature-media,
    body.ibg-el-page main[data-ibg-home-source="acf"] .el-feature-content {
        width: 100% !important;
        max-width: 420px !important;
    }

    body.ibg-el-page main[data-ibg-home-source="acf"] :where(.el-trust, .el-cta-section) {
        padding-block: 24px !important;
    }

    body.ibg-el-page main[data-ibg-home-source="acf"] .el-promo-cta {
        gap: 24px !important;
        padding: 24px !important;
    }
}

/* The editorial serif has no Cyrillic subset; keep Russian typography coherent. */
html[lang^="ru"] body.ibg-el-page :where(main, .el-header, .el-footer),
html[lang^="ru"] body.ibg-el-page :where(main, .el-header, .el-footer) :where(p, li, a, button, input, select, textarea, label) {
    font-family: "IBG Manrope", Manrope, Arial, sans-serif !important;
}

html[lang^="ru"] body.ibg-el-page main :where(h1, h2, h3, h4, h5, h6) {
    font-family: "IBG Manrope", Manrope, Arial, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
}

/* Balanced typography for the separately rendered editable homepage. */
body.ibg-el-page main[data-ibg-home-source="acf"] h1 {
    font-size: clamp(40px, 4.4vw, 60px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.035em !important;
}

body.ibg-el-page main[data-ibg-home-source="acf"] h2 {
    font-size: clamp(29px, 2.8vw, 38px) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.025em !important;
}

body.ibg-el-page main[data-ibg-home-source="acf"] h3 {
    font-size: clamp(23px, 2vw, 27px) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.015em !important;
}

body.ibg-el-page main[data-ibg-home-source="acf"] .el-card-main > p {
    font-size: 16px !important;
    line-height: 1.58 !important;
}

/* Compact homepage cards: equal per row, sized by content rather than a fixed box. */
body.ibg-el-page main[data-ibg-home-source="acf"] :where(.el-card, article.el-card) {
    height: 100% !important;
    min-height: 0 !important;
    align-self: stretch !important;
    padding: 0 !important;
}

body.ibg-el-page main[data-ibg-home-source="acf"] .el-card-section :where(.el-card-grid, .el-grid) {
    align-items: stretch !important;
}

body.ibg-el-page main[data-ibg-home-source="acf"] .el-card-content {
    min-height: 0 !important;
    padding: 20px 24px !important;
}

body.ibg-el-page main[data-ibg-home-source="acf"] .el-card-main {
    min-height: 0 !important;
    height: auto !important;
}

body.ibg-el-page main[data-ibg-home-source="acf"] .el-card-main > :where(h2, h3) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.ibg-el-page main[data-ibg-home-source="acf"] .el-card-main > p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.ibg-el-page main[data-ibg-home-source="acf"] .el-card-content > a:last-child {
    margin-top: 20px !important;
}

.ibg-collection-cta {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 32px;
}

.ibg-collection-cta__link {
    display: inline-flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px !important;
    border: 1px solid #062b52 !important;
    border-radius: 999px !important;
    background: #062b52 !important;
    color: #fff !important;
    font: 650 15px/1.2 Onest, Arial, sans-serif !important;
    text-decoration: none !important;
}

.ibg-collection-cta__link:hover {
    background: #0b416f !important;
}

/* IBG global ultra-compact footer v3.
 * The newsletter opens the existing Sender form in a modal; its form wrapper
 * never reserves space in the footer itself. */
.el-footer,
body.ibg-p3a-global-shell.ibg-el-internal .el-footer {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(250px, 0.6fr) minmax(0, 2.4fr) !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    gap: clamp(18px, 2vw, 30px) !important;
    padding: 14px max(20px, calc((100vw - 1220px) / 2)) !important;
}

.el-footer > .ibg-newsletter {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.el-footer .ibg-newsletter__copy {
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
}

.el-footer .ibg-newsletter__copy .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.el-footer .ibg-newsletter__eyebrow {
    margin: 0 0 3px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
}

.el-footer .ibg-newsletter__copy > p {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.el-footer .ibg-newsletter__native:not(.ibg-newsletter-modal-form) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.el-footer .ibg-newsletter-open {
    min-height: 40px !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
}

.el-footer > .el-footer-utility {
    display: grid !important;
    grid-template-columns: auto auto minmax(0, auto) auto !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    gap: clamp(8px, 1vw, 16px) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.el-footer .el-footer-legal {
    display: contents !important;
}

.el-footer .el-footer-legal > p {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
}

.el-footer .el-footer-legal > nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.el-footer .el-footer-legal a {
    min-height: 36px !important;
    padding: 0 5px !important;
    font-size: 12px !important;
}

.el-footer .el-footer-social {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.el-footer .el-footer-social > strong {
    margin-right: 2px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
}

.el-footer .el-footer-social a {
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.el-footer .el-footer-social img {
    width: 20px !important;
    height: 20px !important;
}

@media (max-width: 1279px) {
    .el-footer,
    body.ibg-p3a-global-shell.ibg-el-internal .el-footer {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 12px clamp(20px, 3vw, 36px) !important;
    }
}

@media (max-width: 1000px) {
    .el-footer > .el-footer-utility {
        grid-template-columns: auto minmax(140px, 1fr) auto !important;
        row-gap: 6px !important;
    }

    .el-footer .el-footer-social {
        grid-column: 1 / -1 !important;
        justify-content: flex-start !important;
    }
}

@media (max-width: 700px) {
    .el-footer,
    body.ibg-p3a-global-shell.ibg-el-internal .el-footer {
        gap: 8px !important;
        padding: 12px 20px !important;
    }

    .el-footer > .ibg-newsletter {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px !important;
    }

    .el-footer .ibg-newsletter-open,
    .el-footer .el-footer-legal a,
    .el-footer .el-footer-social a {
        min-height: 44px !important;
    }

    .el-footer .el-footer-social a {
        width: 44px !important;
        height: 44px !important;
    }

    .el-footer > .el-footer-utility {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 4px 8px !important;
    }

    .el-footer .el-footer-legal > p {
        grid-column: 1 !important;
        white-space: normal !important;
    }

    .el-footer .el-footer-legal > nav:first-of-type {
        grid-column: 2 !important;
    }

    .el-footer .el-footer-legal > nav:last-of-type,
    .el-footer .el-footer-social {
        grid-column: 1 / -1 !important;
    }

    .el-footer .el-footer-legal > nav {
        flex-wrap: wrap !important;
    }

    .el-footer .el-footer-social {
        position: relative !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }

    .el-footer .el-footer-social > strong {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip-path: inset(50%) !important;
    }
}

@media (max-width: 380px) {
    .el-footer > .ibg-newsletter {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }

    .el-footer .ibg-newsletter-open {
        justify-self: start !important;
    }
}

@media (max-width: 350px) {
    .el-footer,
    body.ibg-p3a-global-shell.ibg-el-internal .el-footer {
        padding-inline: 16px !important;
    }

    .el-footer > .el-footer-utility {
        grid-template-columns: 1fr !important;
    }

    .el-footer .el-footer-legal > p,
    .el-footer .el-footer-legal > nav:first-of-type,
    .el-footer .el-footer-legal > nav:last-of-type,
    .el-footer .el-footer-social {
        grid-column: 1 !important;
    }
}
