/* Mobile adjustments for header */
@media (max-width: 768px) {
    /* Główny flex w header: pozwól na wrap */
    header.wp-block-template-part > .wp-block-group,
    .wp-site-blocks > header .wp-block-group:first-child {
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
    }

    /* Prawa strona (blog + socials + button) — pełna szerokość na drugim rzędzie */
    .wp-site-blocks > header > .wp-block-group > .wp-block-group:last-child {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: nowrap !important;
    }

    /* Button "Umów konsultację" — krótszy padding, nie łam, mniejszy font */
    .wp-site-blocks > header .wp-block-button__link {
        white-space: nowrap !important;
        padding: 0.45rem 1rem !important;
        font-size: 0.85rem !important;
    }

    /* Social icons — zachowaj horizontal flex */
    .wp-site-blocks > header .wp-block-social-links {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.3rem !important;
    }

    .wp-site-blocks > header .wp-block-social-links .wp-block-social-link {
        display: inline-flex !important;
    }
}

@media (max-width: 480px) {
    /* Mniejsze site-title na małych ekranach */
    .wp-site-blocks > header .wp-block-site-title a {
        font-size: 1rem !important;
    }

    /* Mniejszy tagline */
    .wp-site-blocks > header .wp-block-site-tagline {
        font-size: 0.62rem !important;
    }

    /* Jeszcze mniejszy button */
    .wp-site-blocks > header .wp-block-button__link {
        font-size: 0.78rem !important;
        padding: 0.4rem 0.85rem !important;
    }

    /* Ukryj link "Blog" na bardzo małych — odzyskaj miejsce */
    .wp-site-blocks > header > .wp-block-group > .wp-block-group:last-child > .wp-block-paragraph {
        display: none;
    }
}

/* Hero — wymuszenie top alignment kolumn (gwarancja niezależnie od markupu) */
.wp-site-blocks > main > .entry-content > .wp-block-group:first-child .wp-block-columns {
    align-items: flex-start !important;
}

