/* Only mobile: match the five headers to the cards on /metodiky/. */
/* 544px is Elementor's configured mobile breakpoint on this website. */
@media screen and (max-width: 544px) {
    .metodika-kat,
    .heading-100 {
        container-type: inline-size;
        --he-method-title-size: clamp(30px, 10.2564vw, 40px);
        --he-method-fit-size: 15cqw;
        --he-method-title-spacing: -0.065em;
        --he-method-description-gap: 95px;
    }

    .metodika-kat {
        height: auto !important;
        justify-content: flex-start !important;
        gap: 0 !important;
    }

    .metodika-kat > .elementor-widget-heading {
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }

    .metodika-kat > .elementor-widget-heading:first-child .elementor-heading-title,
    .metodika-kat .metodika_title .elementor-heading-title,
    .metodika-kat .metodika_title .elementor-heading-title a,
    .heading-100 .v_konce_kyrsa_row_1 {
        font-family: "Inter", sans-serif !important;
        font-size: min(var(--he-method-title-size), var(--he-method-fit-size)) !important;
        font-weight: 600 !important;
        font-style: italic !important;
        line-height: 1 !important;
        letter-spacing: var(--he-method-title-spacing) !important;
    }

    .metodika-kat > .elementor-widget-heading:last-child {
        margin-top: var(--he-method-description-gap) !important;
    }

    .metodika-kat > .elementor-widget-heading:last-child .elementor-heading-title,
    body.page-id-2001 .metodes-section .block_metodiky > .elementor-widget-heading:not(.connect1) .elementor-heading-title {
        font-style: italic !important;
    }

    .heading-100 .v_konce_kyrsa_row_1 {
        margin-bottom: var(--he-method-description-gap) !important;
    }
}
