*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--sbb-color-text);
    background: var(--sbb-color-background);
    font-family: var(--sbb-font-family);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--sbb-color-primary);
}

.sbb-container {
    width: min(calc(100% - 40px), var(--sbb-container));
    margin-inline: auto;
}

.sbb-container--wide {
    width: min(calc(100% - 40px), var(--sbb-container-wide));
    margin-inline: auto;
}

@media (max-width: 767px) {
    .sbb-container,
    .sbb-container--wide {
        width: min(calc(100% - 32px), var(--sbb-container));
    }
}

/* v1.4.14 — spójne tytuły standardowych stron */
body.page:not(.elementor-page) .site-main > .page-header,
body.page:not(.elementor-page) .site-main > .entry-header {
    box-sizing: border-box;
    width: min(calc(100% - 40px), var(--sbb-container));
    margin-inline: auto;
}

body.page:not(.elementor-page) .site-main > .page-header .entry-title,
body.page:not(.elementor-page) .site-main > .entry-header .entry-title {
    font-size: clamp(34px, 3.2vw, 46px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

@media (max-width: 767px) {
    body.page:not(.elementor-page) .site-main > .page-header,
    body.page:not(.elementor-page) .site-main > .entry-header {
        width: min(calc(100% - 32px), var(--sbb-container));
    }

    body.page:not(.elementor-page) .site-main > .page-header .entry-title,
    body.page:not(.elementor-page) .site-main > .entry-header .entry-title {
        font-size: 34px;
    }
}

/* v1.4.16 — globalny, spójny nagłówek standardowych stron */
body.page:not(.elementor-page) main.site-main > .page-header,
body.page:not(.elementor-page) main.site-main > .entry-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 0 12px !important;
}

body.page:not(.elementor-page) main.site-main > .page-header .entry-title,
body.page:not(.elementor-page) main.site-main > .entry-header .entry-title,
body.page:not(.elementor-page) main.site-main > .entry-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(30px, 2.45vw, 38px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    text-align: left !important;
}

@media (max-width: 767px) {
    body.page:not(.elementor-page) main.site-main > .page-header,
    body.page:not(.elementor-page) main.site-main > .entry-header {
        padding: 22px 0 10px !important;
    }

    body.page:not(.elementor-page) main.site-main > .page-header .entry-title,
    body.page:not(.elementor-page) main.site-main > .entry-header .entry-title,
    body.page:not(.elementor-page) main.site-main > .entry-title {
        font-size: 30px !important;
    }
}
