/* Main-page rendering optimizations. Existing layout stays in style.css. */
@media screen and (max-width: 599px) {
    /* Reserve space for offscreen sections until their content is laid out. */
    .p7-main-page > .suitable_section { --section-block-size: 802px; }
    .p7-main-page > .management_section { --section-block-size: clamp(901px, calc(1490px - 114vw), 1084px); }
    .p7-main-page > .features_section { --section-block-size: 2142px; }
    /* Includes the responsive phone frame (759 × 1543, up to 366px wide). */
    .p7-main-page > .demo_section { --section-block-size: min(857px, calc(64px + 203.3vw)); }
    .p7-main-page > .tariffs_section { --section-block-size: clamp(1523px, calc(2690px - 260vw), 1784px); }
    .p7-main-page > .partners_section { --section-block-size: 209px; }
    .p7-main-page > .active_catalogs_section { --section-block-size: 432px; }
    .p7-main-page > .try_free_section { --section-block-size: 824px; }
    .p7-main-page > .faq_section { --section-block-size: 872px; }

    .p7-main-page > section:not(.hero_section) {
        content-visibility: auto;
        contain-intrinsic-block-size: auto var(--section-block-size, 0px);
    }
}
