main :is(h1, h2, h3, h4) {
    text-wrap: balance;
}
main :is(p, li, label, legend) {
    text-wrap: pretty;
}

@media (max-width: 1024px) {
    main :is(.elementor-element-81534f6, .elementor-element-d222399,
        .elementor-element-cb56442, .elementor-element-1abf91f,
        .elementor-element-7d42455, .elementor-element-0fd3911,
        .elementor-element-0bae2ec) h2 {
        font-size: clamp(22px, 3.25vw, 34px) !important;
        line-height: 1.2 !important;
    }
    main .elementor-element-12d814b h3 {
        font-size: 21px !important;
        line-height: 1.25 !important;
    }
    main .elementor .elementor-widget-heading:is(.elementor-element-b8cf944, .elementor-element-1b7ea55,
        .elementor-element-13a4bd4, .elementor-element-cda789e,
        .elementor-element-f7b84da, .elementor-element-07ef9b0,
        .elementor-element-c8b8a7f, .elementor-element-54cd45d,
        .elementor-element-cc56841, .elementor-element-6686ba3) h2.elementor-heading-title {
        font-size: clamp(18px, 2.7vw, 26px) !important;
        line-height: 1.25 !important;
    }
}

main :is(.elementor-element-a87d5ef, .elementor-element-66d1e88) h2 {
    font-size: clamp(24px, 3.25vw, 46px) !important;
    line-height: 1.2 !important;
}

@media (max-width: 450px) {
    main :is(.elementor-3670 .elementor-element-6a345eb,
        .elementor-element-a796dc5, .elementor-element-30c2b42) h1,
    main .cdb-brief-hero__title {
        font-size: clamp(23px, 6.5vw, 29px) !important;
        line-height: 1.24 !important;
    }
    html[lang^="pl"] main .elementor-element-6a345eb h1 {
        font-size: clamp(18px, 5.6vw, 39px) !important;
    }
}

@media (max-width: 340px) {
    html[lang^="pl"] main .elementor .elementor-element-1b7ea55 h2.elementor-heading-title {
        font-size: 16px !important;
    }
    html[lang^="pl"] main .elementor .elementor-element-2d459ab h2.elementor-heading-title {
        font-size: 18px !important;
    }
}
