/* Keep Bitrix actions inside their form without clipping their labels. */
.b24-form .b24-form-btn-block {
    min-width: 0;
    max-width: 100%;
}
.b24-form .b24-form-btn {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Long article words and generous desktop CTA padding must fit a phone. */
@media (max-width: 767px) {
    .elementor-widget-theme-post-content :is(h1, h2, h3, h4, h5, h6) {
        overflow-wrap: anywhere;
        hyphens: auto;
    }
    .elementor-widget-theme-post-content .wp-block-button__link {
        max-width: 100%;
        padding-inline: clamp(12px, 4vw, 24px);
        overflow-wrap: anywhere;
    }
}
