/**
 * Stylowanie podstron (m.in. Oferta poradni)
 * Spójne z homepage: kolory, fonty (Satoshi, Lora), .opakowane, .full, .but.brown
 */

:root {
    --green: #3b402e;
    --brown: #7D7246;
    --brown-dark: #5E5038;
    --bg-light: #F4F3F2;
    --bg-section: #F0EFE4;
    --text-dark: #4A4A49;
    --border-table: #E9E8E7;
}

/* WordPress Twemoji: <img class="emoji"> — musi być inline, inaczej wymusza osobną linię przy display:block / dużych marginach na img */
img.emoji,
img.wp-smiley {
    display: inline;
    height: 1em;
    width: 1em;
    max-width: 1em;
    margin: 0 0.08em;
    vertical-align: -0.12em;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/*
 * Wyższa specyficzność niż typowe `img { display:block }` w motywie / .entry-content,
 * żeby emoji zawsze szły w jednej linii z tekstem (m.in. Regulamin w zakładkach).
 */
.page .site-main .entry-content img.emoji,
.page #main .entry-content img.emoji,
.page main .entry-content img.emoji,
.page article .entry-content img.emoji,
.page .site-main .entry-content img.wp-smiley,
.page #main .entry-content img.wp-smiley,
.page main .entry-content img.wp-smiley,
.page article .entry-content img.wp-smiley,
.cogito-page-tabs .oferta-tab-panel img.emoji,
.cogito-page-tabs .oferta-tab-panel img.wp-smiley {
    display: inline !important;
    height: 1em;
    width: 1em;
    max-width: 1em;
    margin: 0 0.08em !important;
    vertical-align: -0.12em;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Łamanie linii: emotka z poprzednim tekstem, nie „sierota” na początku wiersza */
.regulamin-section .oferta-tab-panel p,
.regulamin-section .oferta-tab-panel li,
.regulamin-section .oferta-tab-panel h2,
.regulamin-section .oferta-tab-panel h3,
.regulamin-section .oferta-tab-panel h4,
.cogito-page-tabs .oferta-tab-panel p,
.cogito-page-tabs .oferta-tab-panel li,
.cogito-page-tabs .oferta-tab-panel h2,
.cogito-page-tabs .oferta-tab-panel h3,
.cogito-page-tabs .oferta-tab-panel h4 {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: manual;
}

@supports (text-wrap: pretty) {
    .regulamin-section .oferta-tab-panel p,
    .regulamin-section .oferta-tab-panel li,
    .cogito-page-tabs .oferta-tab-panel p,
    .cogito-page-tabs .oferta-tab-panel li {
        text-wrap: pretty;
    }
}

/* Małe ikonki z mediów w nagłówkach (bez klasy .emoji) — jedna linia z tytułem */
.cogito-page-tabs .oferta-tab-panel h2 img,
.cogito-page-tabs .oferta-tab-panel h3 img,
.cogito-page-tabs .oferta-tab-panel h4 img,
.regulamin-section .oferta-tab-panel h2 img,
.regulamin-section .oferta-tab-panel h3 img,
.regulamin-section .oferta-tab-panel h4 img {
    display: inline-block !important;
    max-height: 1.2em !important;
    width: auto !important;
    max-width: 1.75em !important;
    height: auto !important;
    margin: 0 0.1em 0 0 !important;
    vertical-align: -0.14em;
    border-radius: 0;
    box-shadow: none;
}

/* Opcjonalnie w edytorze: klasa na obrazku „inline-icon” przy tekście w akapicie */
.page .site-main .entry-content img.inline-icon,
.page #main .entry-content img.inline-icon,
.page main .entry-content img.inline-icon,
.page article .entry-content img.inline-icon,
.cogito-page-tabs .oferta-tab-panel img.inline-icon {
    display: inline !important;
    max-height: 1.25em;
    width: auto;
    max-width: 2em;
    margin: 0 0.1em !important;
    vertical-align: -0.12em;
    border-radius: 0;
}

/*
 * Gutenberg: często `<li><p>Tekst</p><img class="emoji"></li>` — oba dzieci są blokowe,
 * więc ikonka wpada na następną linię. Jeśli `p` jest tuż przed małą ikonką, traktuj `p` jak inline.
 */
.cogito-page-tabs .oferta-tab-panel li:has(> p:first-child + img.emoji) > p:first-child,
.cogito-page-tabs .oferta-tab-panel li:has(> p:first-child + img.wp-smiley) > p:first-child,
.cogito-page-tabs .oferta-tab-panel li:has(> p:first-child + img.inline-icon) > p:first-child,
.regulamin-section .oferta-tab-panel li:has(> p:first-child + img.emoji) > p:first-child,
.regulamin-section .oferta-tab-panel li:has(> p:first-child + img.wp-smiley) > p:first-child,
.regulamin-section .oferta-tab-panel li:has(> p:first-child + img.inline-icon) > p:first-child,
.page .site-main .entry-content li:has(> p:first-child + img.emoji) > p:first-child,
.page #main .entry-content li:has(> p:first-child + img.emoji) > p:first-child,
.page main .entry-content li:has(> p:first-child + img.emoji) > p:first-child,
.page article .entry-content li:has(> p:first-child + img.emoji) > p:first-child,
.page .site-main .entry-content li:has(> p:first-child + img.wp-smiley) > p:first-child,
.page #main .entry-content li:has(> p:first-child + img.wp-smiley) > p:first-child,
.page main .entry-content li:has(> p:first-child + img.wp-smiley) > p:first-child,
.page article .entry-content li:has(> p:first-child + img.wp-smiley) > p:first-child,
.page .site-main .entry-content li:has(> p:first-child + img.inline-icon) > p:first-child,
.page #main .entry-content li:has(> p:first-child + img.inline-icon) > p:first-child,
.page main .entry-content li:has(> p:first-child + img.inline-icon) > p:first-child,
.page article .entry-content li:has(> p:first-child + img.inline-icon) > p:first-child {
    display: inline;
    margin: 0;
    padding: 0;
}

.cogito-page-tabs .oferta-tab-panel li:has(> p:first-child + img.emoji) > img.emoji,
.cogito-page-tabs .oferta-tab-panel li:has(> p:first-child + img.wp-smiley) > img.wp-smiley,
.cogito-page-tabs .oferta-tab-panel li:has(> p:first-child + img.inline-icon) > img.inline-icon,
.regulamin-section .oferta-tab-panel li:has(> p:first-child + img.emoji) > img.emoji,
.regulamin-section .oferta-tab-panel li:has(> p:first-child + img.wp-smiley) > img.wp-smiley,
.regulamin-section .oferta-tab-panel li:has(> p:first-child + img.inline-icon) > img.inline-icon,
.page .site-main .entry-content li:has(> p:first-child + img.emoji) > img.emoji,
.page #main .entry-content li:has(> p:first-child + img.emoji) > img.emoji,
.page main .entry-content li:has(> p:first-child + img.emoji) > img.emoji,
.page article .entry-content li:has(> p:first-child + img.emoji) > img.emoji,
.page .site-main .entry-content li:has(> p:first-child + img.wp-smiley) > img.wp-smiley,
.page #main .entry-content li:has(> p:first-child + img.wp-smiley) > img.wp-smiley,
.page main .entry-content li:has(> p:first-child + img.wp-smiley) > img.wp-smiley,
.page article .entry-content li:has(> p:first-child + img.wp-smiley) > img.wp-smiley,
.page .site-main .entry-content li:has(> p:first-child + img.inline-icon) > img.inline-icon,
.page #main .entry-content li:has(> p:first-child + img.inline-icon) > img.inline-icon,
.page main .entry-content li:has(> p:first-child + img.inline-icon) > img.inline-icon,
.page article .entry-content li:has(> p:first-child + img.inline-icon) > img.inline-icon {
    display: inline !important;
    vertical-align: -0.12em;
}

.cogito-page-tabs .oferta-tab-panel li:has(> p:only-of-type + img.inline-icon) > p:only-of-type,
.regulamin-section .oferta-tab-panel li:has(> p:only-of-type + img.inline-icon) > p:only-of-type {
    display: inline;
    margin: 0;
    padding: 0;
}

/*
 * Gutenberg: `<li><p>Tekst</p><p><img class="emoji"></p></li>` — drugi akapit tylko z emotką;
 * bez tego emotka zostaje w „osobnym” bloku pod tekstem.
 */
.cogito-page-tabs .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(1),
.cogito-page-tabs .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(1),
.cogito-page-tabs .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(1),
.regulamin-section .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(1),
.regulamin-section .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(1),
.regulamin-section .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(1),
.page .site-main .entry-content li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(1),
.page #main .entry-content li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(1),
.page main .entry-content li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(1),
.page article .entry-content li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(1),
.page .site-main .entry-content li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(1),
.page #main .entry-content li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(1),
.page main .entry-content li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(1),
.page article .entry-content li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(1),
.page .site-main .entry-content li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(1),
.page #main .entry-content li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(1),
.page main .entry-content li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(1),
.page article .entry-content li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(1) {
    display: inline;
    margin: 0;
    padding: 0;
}

.cogito-page-tabs .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(2),
.cogito-page-tabs .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(2),
.cogito-page-tabs .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(2),
.regulamin-section .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(2),
.regulamin-section .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(2),
.regulamin-section .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(2),
.page .site-main .entry-content li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(2),
.page #main .entry-content li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(2),
.page main .entry-content li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(2),
.page article .entry-content li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(2),
.page .site-main .entry-content li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(2),
.page #main .entry-content li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(2),
.page main .entry-content li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(2),
.page article .entry-content li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(2),
.page .site-main .entry-content li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(2),
.page #main .entry-content li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(2),
.page main .entry-content li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(2),
.page article .entry-content li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(2) {
    display: inline;
    margin: 0;
    padding: 0;
}

.cogito-page-tabs .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(2) img.emoji,
.cogito-page-tabs .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(2) img.wp-smiley,
.cogito-page-tabs .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(2) img.inline-icon,
.regulamin-section .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(2) img.emoji,
.regulamin-section .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(2) img.wp-smiley,
.regulamin-section .oferta-tab-panel li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(2) img.inline-icon,
.page .site-main .entry-content li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(2) img.emoji,
.page #main .entry-content li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(2) img.emoji,
.page main .entry-content li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(2) img.emoji,
.page article .entry-content li:has(> p:nth-of-type(2):has(> img.emoji:only-of-type)) > p:nth-of-type(2) img.emoji,
.page .site-main .entry-content li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(2) img.wp-smiley,
.page #main .entry-content li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(2) img.wp-smiley,
.page main .entry-content li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(2) img.wp-smiley,
.page article .entry-content li:has(> p:nth-of-type(2):has(> img.wp-smiley:only-of-type)) > p:nth-of-type(2) img.wp-smiley,
.page .site-main .entry-content li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(2) img.inline-icon,
.page #main .entry-content li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(2) img.inline-icon,
.page main .entry-content li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(2) img.inline-icon,
.page article .entry-content li:has(> p:nth-of-type(2):has(> img.inline-icon:only-of-type)) > p:nth-of-type(2) img.inline-icon {
    display: inline !important;
    vertical-align: -0.12em;
}

/* Wyraźny początek listy pod akapitem wstępnym */
.cogito-page-tabs .oferta-tab-panel p:has(+ ul),
.cogito-page-tabs .oferta-tab-panel p:has(+ ol),
.regulamin-section .oferta-tab-panel p:has(+ ul),
.regulamin-section .oferta-tab-panel p:has(+ ol) {
    margin-bottom: 0.35em;
}

.cogito-page-tabs .oferta-tab-panel p + ul,
.cogito-page-tabs .oferta-tab-panel p + ol,
.regulamin-section .oferta-tab-panel p + ul,
.regulamin-section .oferta-tab-panel p + ol {
    margin-top: 0.35em;
}

/* Listy z myślników w regulaminie (jak w edytorze wp-admin) */
.regulamin-section .regulamin-dash-list,
.cogito-page-tabs .regulamin-dash-list {
    list-style: none;
    padding-left: 0;
    margin: 0.5em 0 1em;
}

.regulamin-section .regulamin-dash-list li,
.cogito-page-tabs .regulamin-dash-list li {
    margin: 0 0 0.35em;
    padding-left: 1.15em;
    text-indent: -1.15em;
}

.regulamin-section .regulamin-dash-list li::before,
.cogito-page-tabs .regulamin-dash-list li::before {
    content: "– ";
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

/* Okruszki (breadcrumbs) – dostępność */
.breadcrumbs {
    margin: 0;
    padding: 12px 4% 16px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
.breadcrumbs-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 1.4rem;
    font-family: 'Satoshi', sans-serif;
    color: var(--text-dark);
}
.breadcrumbs-list li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--green);
}
.breadcrumbs-list a {
    color: var(--green);
    text-decoration: none;
}
.breadcrumbs-list a:hover {
    text-decoration: underline;
}
.breadcrumbs-list [aria-current="page"] {
    color: var(--text-dark);
    font-weight: 500;
}

/* ========== Domyślna strona (page.php) – spójna z 404, single, kontakt, homepage ========== */
.page .site-main,
.page #main,
.page main {
    width: 100%;
    box-sizing: border-box;
}

.page .site-main .header,
.page #main .header,
.page main .header,
.page article .header {
    max-width: 1100px;
    width: 100%;
    padding: 0 4%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.page .site-main .entry-content,
.page #main .entry-content,
.page main .entry-content,
.page article .entry-content {
    max-width: 1100px;
    width: 100%;
    padding: 0 4%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Sekcja tytułowa – tło jak hero 404 / single bez zdjęcia */
.page .site-main > article,
.page #main > article,
.page main > article,
.page > article {
    background-color: #EDE8E000;
    padding: 80px 0 60px;
    width: 100%;
    box-sizing: border-box;
}

.page .site-main .header .entry-title,
.page #main .header .entry-title,
.page main .header .entry-title,
.page article .header .entry-title {
    margin: 0 0 0.5em 0;
    color: var(--green);
    font-size: 4rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    line-height: 1.25;
}

.page .site-main .entry-content,
.page #main .entry-content,
.page main .entry-content,
.page article .entry-content {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    font-family: 'Satoshi', sans-serif;
    padding-top: 0;
    padding-bottom: 80px;
    background-color: #fff;
}

.page .site-main .entry-content p,
.page #main .entry-content p,
.page main .entry-content p,
.page article .entry-content p {
    margin: 0 0 1.5em 0;
}

.page .site-main .entry-content h2,
.page #main .entry-content h2,
.page main .entry-content h2,
.page article .entry-content h2 {
    margin: 2em 0 1em 0;
    color: var(--green);
    font-size: 3.2rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    line-height: 1.3;
}

.page .site-main .entry-content h3,
.page #main .entry-content h3,
.page main .entry-content h3,
.page article .entry-content h3 {
    margin: 1.5em 0 0.8em 0;
    color: var(--green);
    font-size: 2.4rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    line-height: 1.3;
}

.page .site-main .entry-content ul,
.page .site-main .entry-content ol,
.page #main .entry-content ul,
.page #main .entry-content ol,
.page main .entry-content ul,
.page main .entry-content ol,
.page article .entry-content ul,
.page article .entry-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.page .site-main .entry-content li,
.page #main .entry-content li,
.page main .entry-content li,
.page article .entry-content li {
    margin-bottom: 0.8em;
}

.page .site-main .entry-content img:not(.emoji):not(.wp-smiley),
.page #main .entry-content img:not(.emoji):not(.wp-smiley),
.page main .entry-content img:not(.emoji):not(.wp-smiley),
.page article .entry-content img:not(.emoji):not(.wp-smiley) {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
    border-radius: 8px;
}

.page .site-main .entry-content a,
.page #main .entry-content a,
.page main .entry-content a,
.page article .entry-content a {
    color: var(--brown);
    text-decoration: underline;
}

.page .site-main .entry-content a:hover,
.page #main .entry-content a:hover,
.page main .entry-content a:hover,
.page article .entry-content a:hover {
    opacity: 0.8;
}

.page .site-main .entry-links,
.page #main .entry-links,
.page main .entry-links,
.page article .entry-links {
    margin-top: 2em;
    font-size: 1.6rem;
    font-family: 'Satoshi', sans-serif;
}

/* Obrazek wyróżniający na górze strony */
.page .site-main .entry-content > .wp-block-image:first-child,
.page .site-main .entry-content > p:first-child img,
.page #main .entry-content > .wp-block-image:first-child,
.page #main .entry-content > p:first-child img,
.page main .entry-content > .wp-block-image:first-child,
.page article .entry-content > .wp-block-image:first-child,
.page article .entry-content > p:first-child img {
    margin-top: 0;
}

@media screen and (max-width: 1024px) {
    .page .site-main .header .entry-title,
    .page #main .header .entry-title,
    .page main .header .entry-title,
    .page article .header .entry-title {
        font-size: 3.2rem;
    }
    .page .site-main .entry-content h2,
    .page #main .entry-content h2,
    .page main .entry-content h2,
    .page article .entry-content h2 {
        font-size: 2.6rem;
    }
    .page .site-main .entry-content h3,
    .page #main .entry-content h3,
    .page main .entry-content h3,
    .page article .entry-content h3 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    .page .site-main > article,
    .page #main > article,
    .page main > article,
    .page > article {
        padding: 56px 0 40px;
    }
    .page .site-main .header .entry-title,
    .page #main .header .entry-title,
    .page main .header .entry-title,
    .page article .header .entry-title {
        font-size: 2.8rem;
    }
    .page .site-main .entry-content,
    .page #main .entry-content,
    .page main .entry-content,
    .page article .entry-content {
        font-size: 1.6rem;
        padding-bottom: 60px;
    }
    .page .site-main .entry-content h2,
    .page #main .entry-content h2,
    .page main .entry-content h2,
    .page article .entry-content h2 {
        font-size: 2.2rem;
    }
    .page .site-main .entry-content h3,
    .page #main .entry-content h3,
    .page main .entry-content h3,
    .page article .entry-content h3 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .page .site-main > article,
    .page #main > article,
    .page main > article,
    .page > article {
        padding: 40px 0 32px;
    }
    .page .site-main .header .entry-title,
    .page #main .header .entry-title,
    .page main .header .entry-title,
    .page article .header .entry-title {
        font-size: 2.4rem;
    }
    .page .site-main .entry-content,
    .page #main .entry-content,
    .page main .entry-content,
    .page article .entry-content {
        font-size: 1.5rem;
        padding-bottom: 48px;
    }
}

/* ========== Sekcje oferty ========== */
.oferta-section-hidden {
    display: none !important;
}

.oferta-section {
    width: 100%;
    box-sizing: border-box;
}

.oferta-inner {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

/* Sekcja 1 – Hero section */
.oferta-hero-section {
    width: 100%;
    height: 50vh;
    background-color: #EDE8E0;
    overflow: hidden;
}

.oferta-hero-section .oferta-hero-inner {
    max-width: none;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.oferta-hero-inner {
    display: flex;
    height: 100%;
    gap: 0;
    padding: 0;
}

.oferta-hero-left {
    flex: 0 0 50%;
    height: 100%;
    min-height: 0;
    background-color: #EDE8E0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.oferta-hero-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border-radius: 0;
    display: block;
}

.oferta-hero-right {
    flex: 0 0 50%;
    background-color: #EDE8E0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0px 4%;
}

.oferta-hero-content {
    max-width: 580px;
    width: 100%;
    padding-right: 4%;
}

.oferta-hero-right h1 {
    margin: 0 0 1.2em 0;
    color: var(--green);
    font-size: 4rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    line-height: 1.25;
}

blockquote.slogan {
    margin: 0 0 2rem 0;
    padding: 0;
    border: none;
}

blockquote.slogan p {
    margin: 0;
    font-size: 2.2rem;
    color: #5a5a5a;
    font-family: 'Lora', serif;
    line-height: 1.3;
    font-weight: 600;
}

.oferta-hero-intro {
    font-size: 1.6rem;
    line-height: 1.4;
}

.info-o-cenach {
    font-size: 1.6rem;
    width: 70%;
    line-height: 1.4;
    text-align: center;
}

/* Przycisk CTA w hero – styl jak w headerze (.appointment-button) */
.oferta-hero-cta {
    display: inline-block;
    margin-top: 24px;
    align-self: flex-start;
}

/* Sekcja – Podejście środowiskowe (karty z numerami) */
.oferta-podejscie-section {
    padding: 56px 0 64px;
    background-color: #fff;
}

.oferta-podejscie-lead {
    margin: 0 0 40px 0;
    max-width: 720px;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-dark);
    font-family: 'Satoshi', sans-serif;
}

.oferta-podejscie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 32px;
}

.oferta-podejscie-card {
    position: relative;
    padding: 24px 24px 24px 56px;
    background-color: var(--bg-section);
    border-radius: 12px;
    border-left: 4px solid var(--green);
    transition: box-shadow 0.2s, border-left-color 0.2s;
}


.oferta-podejscie-num {
    position: absolute;
    left: 20px;
    top: 24px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--green);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Satoshi', sans-serif;
    border-radius: 50%;
    line-height: 1;
}

.oferta-podejscie-title {
    margin: 0 0 10px 0;
    font-size: 1.9rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    color: var(--green);
    line-height: 1.3;
}

.oferta-podejscie-text {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-dark);
    font-family: 'Satoshi', sans-serif;
}

@media screen and (max-width: 768px) {
    .oferta-podejscie-section {
        padding: 40px 0 48px;
    }
    .oferta-podejscie-lead {
        font-size: 1.6rem;
        margin-bottom: 28px;
    }
    .oferta-podejscie-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .oferta-podejscie-card {
        padding: 20px 20px 20px 48px;
    }
    .oferta-podejscie-num {
        left: 16px;
        top: 20px;
        width: 24px;
        height: 24px;
        font-size: 1.2rem;
    }
    .oferta-podejscie-title {
        font-size: 1.7rem;
    }
    .oferta-podejscie-text {
        font-size: 1.5rem;
    }
}

/* Sekcja 1 – Intro (stare style - do usunięcia jeśli nieużywane) */
.oferta-intro-section {
    padding: 60px 0 50px;
    background-color: var(--bg-light);
}

.oferta-title {
    margin: 0 0 1.2em 0;
    color: var(--green);
    font-size: 4rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    line-height: 1.25;
}

.oferta-lead {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    font-family: 'Satoshi', sans-serif;
    max-width: 900px;
}

/* Sekcja 2 – Formy wsparcia (kafelki z ikonami) */
.oferta-formy-section {
    padding: 50px 0 60px;
    background-color: #fff;
}

.oferta-formy-intro {
    margin: 0 0 28px 0;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    font-family: 'Satoshi', sans-serif;
}

.oferta-formy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.oferta-formy-kafelek {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 22px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-table);
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}


.oferta-formy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: var(--green);
    flex-shrink: 0;
}

.oferta-formy-icon svg {
    width: 48px;
    height: 48px;
}

.oferta-formy-text {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-dark);
    font-family: 'Satoshi', sans-serif;
}

/* Sekcja Podejście środowiskowe – kafelki z ikonami (jak strona główna) */
.oferta-podejscie-formy.oferta-formy-section {
    padding: 56px 0 64px;
    background-color: #fff;
}

.oferta-podejscie-formy .oferta-formy-grid {
    grid-template-columns: repeat(3, 1fr);
}

.oferta-podejscie-formy .oferta-formy-kafelek {
    height: 100%;
    min-height: 200px;
    box-sizing: border-box;
    background-color: #fff;
}

.oferta-podejscie-formy .oferta-formy-kafelek-title {
    margin: 0 0 4px 0;
    font-size: 1.9rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    color: var(--green);
    line-height: 1.3;
}

.oferta-podejscie-formy .oferta-formy-text {
    font-weight: 400;
    font-size: 1.55rem;
    line-height: 1.5;
}

.oferta-podejscie-cta {
    margin: 32px 0 0 0;
    text-align: center;
}

@media screen and (max-width: 1024px) {
    .oferta-podejscie-formy .oferta-formy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .oferta-podejscie-formy .oferta-formy-grid {
        grid-template-columns: 1fr;
    }
    .oferta-podejscie-formy .oferta-formy-kafelek-title {
        font-size: 1.7rem;
    }
    .oferta-podejscie-formy .oferta-formy-text {
        font-size: 1.5rem;
    }
}

/* Sekcja – Dostępność (nasza misja) */
.oferta-dostepnosc-section {
    padding: 56px 0 64px;
    background-color: #F5F4F1;
}

.oferta-dostepnosc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.oferta-dostepnosc-col-img {
    position: relative;
}

.oferta-dostepnosc-col-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #ededec;
}

@media screen and (max-width: 900px) {
    .oferta-dostepnosc-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.oferta-dostepnosc-title {
    margin-bottom: 16px;
}

.oferta-dostepnosc-lead {
    margin: 0 0 24px 0;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    font-family: 'Satoshi', sans-serif;
}

/* Boksy z ikonami – dostępność */
.oferta-dostepnosc-boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

.oferta-dostepnosc-box {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 22px;
    background-color: #fff;
    border: 1px solid var(--border-table);
    border-radius: 12px;
}

.oferta-dostepnosc-box-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.oferta-dostepnosc-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: var(--green);
    flex-shrink: 0;
}

.oferta-dostepnosc-box-icon svg {
    width: 48px;
    height: 48px;
}

.oferta-dostepnosc-box-title {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    color: var(--green);
    line-height: 1.3;
}

.oferta-dostepnosc-box-text {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    font-family: 'Satoshi', sans-serif;
}

.oferta-dostepnosc-box .oferta-dostepnosc-box-text + .oferta-dostepnosc-box-text {
    margin-top: 4px;
}

@media screen and (max-width: 768px) {
    .oferta-dostepnosc-boxes {
        margin-top: 32px;
        gap: 16px;
    }
    .oferta-dostepnosc-box {
        padding: 20px 18px;
        gap: 16px;
    }
    .oferta-dostepnosc-box-icon {
        width: 48px;
        height: 48px;
    }
    .oferta-dostepnosc-box-icon svg {
        width: 40px;
        height: 40px;
    }
    .oferta-dostepnosc-box-title {
        font-size: 1.7rem;
    }
    .oferta-dostepnosc-box-text {
        font-size: 1.5rem;
    }
}

.oferta-list {
    margin: 0 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 1.6rem;
    font-family: 'Satoshi', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.oferta-list li {
    margin: 0 0 12px 0;
    padding-left: 24px;
    position: relative;
}

.oferta-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.4;
}

/* Strona Zespół – sekcja jakości świadczeń */
.zespol-jakosc-section {
    padding: 56px 0 64px;
    background-color: #fff;
}

.zespol-jakosc-title {
    margin: 0 0 24px 0;
    color: var(--green);
    font-size: 4rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    line-height: 1.25;
}

.zespol-jakosc-content {
    max-width: 100%;
}

.zespol-jakosc-content p {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    font-family: 'Satoshi', sans-serif;
}

@media screen and (max-width: 768px) {
    .zespol-jakosc-title {
        font-size: 2.8rem;
    }
    .zespol-jakosc-content p {
        font-size: 1.6rem;
    }
}

/* Strona Zespół – lista specjalistów */
.zespol-specjalisci-section {
    padding: 0 0 64px 0;
    background-color: #fff;
}

.zespol-specjalisci-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    width: 100%;
}

.zespol-card {
    position: relative;
    background-color: #fff;
    border: 1px solid var(--border-table);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.zespol-card--opens-modal {
    cursor: pointer;
}

.zespol-card--opens-modal:hover {
    border-color: rgba(59, 64, 46, 0.35);
    box-shadow: 0 6px 20px rgba(59, 64, 46, 0.08);
}


.zespol-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--bg-light);
}

.zespol-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zespol-card-body {
    padding: 24px 22px;
}

.zespol-card-name {
    margin: 0 0 8px 0;
    font-size: 1.9rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    color: var(--green);
    line-height: 1.3;
}

.zespol-card-specjalizacja {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-family: 'Satoshi', sans-serif;
}

/* Modal opisu specjalisty (otwierany z kafelka) */
.zespol-modal {
    padding: 0;
    border: none;
    border-radius: 12px;
    max-width: 640px;
    width: calc(100% - 32px);
    max-height: min(85vh, 720px);
    background: #fff;
    color: var(--text-dark);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.zespol-modal::backdrop {
    background: rgba(59, 64, 46, 0.45);
}

.zespol-modal-inner {
    position: relative;
    padding: 28px 28px 24px;
    box-sizing: border-box;
    max-height: min(85vh, 720px);
    overflow-y: auto;
}

.zespol-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border-table);
    border-radius: 8px;
    background: #fff;
    color: var(--green);
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.zespol-modal-close:hover {
    background-color: var(--bg-section);
    border-color: var(--green);
}

.zespol-modal-title {
    margin: 0 48px 16px 0;
    font-size: 2.4rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    color: var(--green);
    line-height: 1.3;
}

.zespol-modal-body {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.55;
    font-family: 'Satoshi', sans-serif;
    color: var(--text-dark);
}

.zespol-modal-body p {
    margin: 0 0 0.75em 0;
}

.zespol-modal-body p:last-child {
    margin-bottom: 0;
}

.zespol-modal-body-empty {
    margin: 0;
    font-style: italic;
    color: #4A4A49;
}

@media screen and (max-width: 768px) {
    .zespol-modal-inner {
        padding: 24px 20px 20px;
    }
    .zespol-modal-title {
        font-size: 2rem;
        margin-right: 44px;
    }
    .zespol-modal-body {
        font-size: 1.5rem;
    }
}

.zespol-cta-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}

@media screen and (max-width: 1024px) {
    .zespol-specjalisci-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .zespol-specjalisci-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .zespol-card-body {
        padding: 20px 18px;
    }
    .zespol-card-name {
        font-size: 1.7rem;
    }
}

/* Sekcja 3 – Szczegółowe usługi (taby: usługi lewo, treść prawo) */
.oferta-uslugi-section {
    padding: 50px 0 60px;
    background-color: #fff;
}

.oferta-h2--top {
    margin-bottom: 40px;
    text-align: center;
}

.oferta-tabs {
    display: flex;
    gap: 40px;
    align-items: stretch;
    margin-top: 24px;
    width: 100%;
}

.oferta-tabs-nav {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 24px;
}

.oferta-tab-btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    text-align: left;
    font-size: 1.5rem;
    font-weight: 500;
    font-family: 'Satoshi', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    border: 1px solid var(--border-table);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.oferta-tab-btn:hover {
    background-color: rgba(240, 239, 228, 0.6);
    border-color: var(--green);
    color: var(--green);
}

.oferta-tab-btn:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.oferta-tab-btn.active {
    background-color: var(--green);
    border-color: var(--green);
    color: #fff;
}

.oferta-tabs-content {
    flex: 1;
    min-width: 0;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-table);
    padding: 32px 36px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.oferta-tab-panel {
    display: none;
}

.oferta-tab-panel.active {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.oferta-tab-panel[hidden] {
    display: none !important;
}

/* Treść z edytora w panelach – bez .entry-content globalne style list nie działały */
.oferta-tabs-content {
    font-size: 1.6rem;
    line-height: 1.5;
    font-family: 'Satoshi', sans-serif;
    color: var(--text-dark);
}

.oferta-tab-panel p,
.oferta-tab-panel li,
.oferta-tab-panel dd,
.oferta-tab-panel dt {
    font-size: 1.6rem;
    line-height: 1.5;
    font-family: 'Satoshi', sans-serif;
    color: var(--text-dark);
}

.oferta-tab-panel p {
    margin: 0 0 0.75em 0;
}

.oferta-tab-panel p:last-child {
    margin-bottom: 0;
}

.oferta-tab-panel ul,
.oferta-tab-panel ol {
    margin: 0 0 1em 0;
    padding-left: 1.5em;
    list-style-position: outside;
}

.oferta-tab-panel ul {
    list-style: disc;
}

.oferta-tab-panel ol {
    list-style: decimal;
}

.oferta-tab-panel li {
    margin: 0 0 0.35em 0;
}

.oferta-tab-panel ul ul {
    list-style: circle;
    margin-top: 0.35em;
}

.oferta-tab-panel li::marker {
    color: var(--green);
}

/* Strony Regulamin / Prawa pacjenta – zakładki na górze (nie po boku) */
.cogito-page-tabs.oferta-tabs {
    flex-direction: column;
    gap: 24px;
}

.cogito-page-tabs .oferta-tabs-nav {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    position: static;
}

.cogito-page-tabs .oferta-tab-btn {
    width: auto;
    min-width: 140px;
    text-align: center;
}

.cogito-page-tabs .oferta-tab-panel .entry-content {
    flex: 1;
    max-width: 100%;
}

.oferta-usluga-title {
    margin: 0 0 16px 0;
    color: var(--green);
    font-size: 2.4rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    line-height: 1.3;
}

.oferta-usluga-wprowadzenie,
.oferta-usluga-opis,
.oferta-usluga-zakres {
    margin: 0 0 12px 0;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    font-family: 'Satoshi', sans-serif;
}

.oferta-usluga-pomocne {
    margin: 20px 0 12px 0;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--green);
    font-family: 'Satoshi', sans-serif;
}

.oferta-uslugi-section .oferta-list {
    margin-bottom: 20px;
}

.oferta-uslugi-section .oferta-list:last-child {
    margin-bottom: 0;
}

/* Sekcja 4 – Cennik i grafik */
.oferta-cennik-grafik-section {
    padding: 50px 0 70px;
    background-color: var(--bg-light);
}

.oferta-h2 {
    margin: 0 0 28px 0;
    color: var(--green);
    font-size: 3.2rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    line-height: 1.3;
}

.oferta-h2--grafik {
    margin-top: 50px;
}

.oferta-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
}

.oferta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.6rem;
    font-family: 'Satoshi', sans-serif;
}

.oferta-table th,
.oferta-table td {
    border: 1px solid var(--border-table);
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
}

.oferta-table th {
    background-color: var(--bg-section);
    color: var(--green);
    font-weight: 600;
}

.oferta-table td {
    color: var(--text-dark);
    line-height: 1.4;
}

.oferta-table tbody tr:nth-child(even) {
    background-color: rgba(240, 239, 228, 0.4);
}

.oferta-table tbody tr:hover {
    background-color: rgba(240, 239, 228, 0.7);
}

.oferta-table--grafik {
    font-size: 1.5rem;
}

.oferta-table--grafik th,
.oferta-table--grafik td {
    padding: 12px 14px;
}

.oferta-table--grafik td {
    white-space: normal;
}

/* Responsywność */
@media screen and (max-width: 1024px) {
    .oferta-title {
        font-size: 3.2rem;
    }
    .oferta-h2 {
        font-size: 2.6rem;
    }
    .oferta-usluga-title {
        font-size: 2.2rem;
    }
    .oferta-table {
        font-size: 1.5rem;
    }
    .oferta-table--grafik {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 768px) {
    .oferta-hero-section {
        flex-direction: column;
    }
    
    .oferta-hero-left,
    .oferta-hero-right {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .oferta-hero-right h1 {
        font-size: 2.8rem;
    }
    
    .oferta-hero-intro {
        font-size: 1.6rem;
    }
    
    .oferta-intro-section {
        padding: 40px 0 36px;
    }
    .oferta-title {
        font-size: 2.8rem;
    }
    .oferta-lead {
        font-size: 1.6rem;
    }
    .oferta-formy-section,
    .oferta-uslugi-section,
    .oferta-cennik-grafik-section {
        padding: 36px 0 48px;
    }
    .oferta-formy-intro {
        font-size: 1.6rem;
    }
    .oferta-formy-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .oferta-formy-kafelek {
        padding: 20px 18px;
        gap: 14px;
    }
    .oferta-formy-text {
        font-size: 1.5rem;
    }
    .oferta-h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    .oferta-h2--top {
        margin-bottom: 28px;
    }
    .oferta-h2--grafik {
        margin-top: 40px;
    }
    .oferta-tabs {
        flex-direction: column;
        gap: 24px;
    }
    .oferta-tabs-nav {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .oferta-tab-btn {
        width: 100%;
        padding: 12px 14px;
        font-size: 1.4rem;
    }
    .oferta-tabs-content {
        padding: 24px 20px;
        min-height: 200px;
        margin-top: 0;
    }
    .oferta-usluga-title {
        font-size: 2rem;
    }
    .oferta-list {
        font-size: 1.5rem;
    }
    .oferta-usluga-wprowadzenie,
    .oferta-usluga-opis,
    .oferta-usluga-zakres,
    .oferta-usluga-pomocne {
        font-size: 1.5rem;
    }
    .oferta-table th,
    .oferta-table td {
        padding: 10px 12px;
        font-size: 1.4rem;
    }
    .oferta-table--grafik th,
    .oferta-table--grafik td {
        padding: 10px 12px;
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    .oferta-tabs-nav {
        flex-direction: column;
    }
    .oferta-tab-btn {
        width: 100%;
    }
    .oferta-table--grafik {
        min-width: 520px;
    }
    .oferta-table-wrap--scroll {
        margin-left: -4%;
        margin-right: -4%;
        padding-left: 4%;
        padding-right: 4%;
    }
    .oferta-list li {
        padding-left: 20px;
    }


    .oferta-hero-inner {
        min-height: 100%;
        flex-direction: column;
    }
    .oferta-hero-content {
        padding: 3rem 0px;
    }

}

/* ========== Strona blogowa (Aktualności) ========== */

/* Sekcja 1 – Hero section */
.blog-hero-section {
    width: 100%;
    background-color: #EDE8E0;
    box-sizing: border-box;
}

.blog-hero-section .blog-hero-inner {
    max-width: none;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.blog-hero-inner {
    display: flex;
    min-height: 45vh;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
}

.blog-hero-left {
    flex: 0 0 50%;
    background-color: #EDE8E0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    position: relative;
    padding: 0;
    box-sizing: border-box;
}

.blog-hero-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border-radius: 0;
    display: block;
}

.blog-hero-right {
    flex: 0 0 50%;
    background-color: #EDE8E0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0px 4%;
    box-sizing: border-box;
}

.blog-hero-content {
    max-width: 580px;
    width: 100%;
    padding-right: 4%;
    box-sizing: border-box;
}

.blog-hero-right h1 {
    margin: 0 0 1.2em 0;
    color: var(--green);
    font-size: 4rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    line-height: 1.25;
}

.blog-hero-right p {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    font-family: 'Satoshi', sans-serif;
    max-width: 900px;
}

.blog-hero-scroll-arrow {
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-top: 24px;
    align-self: flex-start;
    cursor: pointer;
    border-radius: 50%;
    box-sizing: border-box;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.blog-hero-scroll-arrow:hover {
    opacity: 0.8;
    transform: translateY(4px);
}

.blog-hero-scroll-arrow .arrow-icon {
    width: 100%;
    height: 100%;
    display: block;
}

/* Sekcja 2 – Kategorie jako taby + kafelki z wpisami */
.blog-posts-section {
    padding: 50px 0 60px;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.blog-posts-inner {
    max-width: 1100px;
    width: 100%;
    padding: 0px 4%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.blog-categories-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-table);
    align-items: center;
}

.blog-category-tab {
    padding: 14px 18px;
    font-size: 1.5rem;
    font-weight: 500;
    font-family: 'Satoshi', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    border: 1px solid var(--border-table);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    box-sizing: border-box;
}

.blog-category-tab:hover {
    background-color: rgba(240, 239, 228, 0.6);
    border-color: var(--green);
    color: var(--green);
}

.blog-category-tab.active {
    background-color: var(--green);
    border-color: var(--green);
    color: #fff;
    font-weight: 600;
}

.blog-category-tab:focus {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px; /* Taki sam gap jak na stronie głównej */
    width: 100%;
    box-sizing: border-box;
    align-items: stretch; /* Wszystkie kafelki mają jednakową wysokość */
}

.blog-post-card {
    display: block;
    flex: none; /* Nadpisuje flex z homepage.css dla grid layout */
    width: 100%;
    box-sizing: border-box;
}

/* Kafelki blogowe używają tych samych stylów co kafelki na stronie głównej */
/* Dodatkowe style tylko dla layoutu grid */
.blog-post-card .news-card {
    height: 100%;
    align-self: stretch;
}

/* Upewnij się, że szare tło wypełnia całą wysokość kafelka */
.blog-post-card .news-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.blog-post-card .news-card-image {
    flex-shrink: 0;
}

.blog-post-card .news-card-content {
    flex: 1 1 auto;
    flex-grow: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #4F4F4F;
    width: 100%;
}

/* Upewnij się, że kafelek ma białe tło tylko tam, gdzie nie ma szarego */
.blog-post-card .news-card {
    background-color: #FFFFFF;
}

/* CAŁKOWICIE WYŁĄCZONE efekty hover dla strony blogowej - nadpisują style z homepage.css */
.blog-post-card .news-card,
.blog-post-card .news-card:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transition: none !important;
}

.blog-post-card .news-card:hover::before {
    display: none !important;
}

/* Kafelki blogowe dziedziczą wszystkie style z homepage.css */
/* Wyłączamy tylko hover, reszta jest taka sama jak na stronie głównej */

/* Ukryj treść wpisu w kafelkach blogowych całkowicie */
.blog-post-card .news-card-excerpt {
    display: none;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    font-family: 'Satoshi', sans-serif;
    background-color: var(--bg-light);
    border: 1px solid var(--border-table);
    border-radius: 12px;
}

/* Responsywność dla strony blogowej */
@media screen and (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px; /* Taki sam gap jak na stronie głównej w responsive */
    }
    
    .blog-hero-right h1 {
        font-size: 3.2rem;
    }
    
    .blog-hero-right p {
        font-size: 1.6rem;
    }
    
    .blog-categories-tabs {
        gap: 8px;
    }
    
    .blog-category-tab {
        padding: 12px 16px;
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 768px) {
    .blog-hero-section {
        flex-direction: column;
    }
    
    .blog-hero-left,
    .blog-hero-right {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .blog-hero-right {
        padding: 40px 4%;
    }
    
    .blog-hero-right h1 {
        font-size: 2.8rem;
        margin-bottom: 1em;
    }
    
    .blog-hero-right p {
        font-size: 1.6rem;
    }
    
    .blog-posts-section {
        padding: 40px 0 48px;
    }
    
    .blog-posts-inner {
        padding: 0px 4%;
    }
    
    .blog-categories-tabs {
        gap: 8px;
        margin-bottom: 32px;
        padding-bottom: 20px;
        flex-wrap: wrap;
    }
    
    .blog-category-tab {
        padding: 12px 16px;
        font-size: 1.4rem;
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 30px; /* Taki sam gap jak na stronie głównej w responsive */
    }
    
    .no-posts {
        padding: 40px 20px;
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 480px) {
    .blog-categories-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .blog-category-tab {
        width: 100%;
        text-align: center;
        padding: 12px 18px;
    }
    
    .blog-hero-right h1 {
        font-size: 2.4rem;
    }
    
    .blog-hero-right p {
        font-size: 1.5rem;
    }
    
    .blog-posts-section {
        padding: 36px 0 40px;
    }
    
    .blog-posts-grid {
        gap: 30px; /* Taki sam gap jak na stronie głównej w responsive */
    }
}

@media (max-width: 500px) {
    .blog-hero-inner {
        display: flex;
        gap: 0;
        padding: 0;
        box-sizing: border-box;
        flex-direction: column;
    }
}

/* Dodatkowe style dla lepszej spójności z resztą strony */
.blog-posts-section .blog-posts-inner {
    position: relative;
}

/* Animacja dla pojawiających się wpisów */
.blog-post-card {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lepsze style dla pustego stanu */
.no-posts {
    background-color: var(--bg-section);
    border: 1px solid var(--border-table);
    border-radius: 12px;
    padding: 60px 20px;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
    font-family: 'Satoshi', sans-serif;
    text-align: center;
}

/* ========== Strona błędu 404 ========== */
.error-404-section {
    width: 100%;
    min-height: 50vh;
    padding: 80px 0 100px;
    background-color: #EDE8E0;
    box-sizing: border-box;
}

.error-404-inner {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.error-404-header {
    margin-bottom: 24px;
}

.error-404-code {
    margin: 0 0 8px 0;
    font-size: 6rem;
    font-weight: 700;
    font-family: 'Lora', serif;
    color: var(--green);
    line-height: 1;
    letter-spacing: -0.02em;
}

.error-404-title {
    margin: 0;
    font-size: 3.2rem;
    font-weight: 600;
    font-family: 'Lora', serif;
    color: var(--green);
    line-height: 1.25;
}

.error-404-content {
    margin: 0;
}

.error-404-lead {
    margin: 0 0 28px 0;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-dark);
    font-family: 'Satoshi', sans-serif;
}

.error-404-cta-wrap {
    margin: 0;
}

.error-404-cta-wrap .but {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

@media screen and (max-width: 768px) {
    .error-404-section {
        padding: 56px 0 72px;
    }
    .error-404-code {
        font-size: 4.4rem;
    }
    .error-404-title {
        font-size: 2.4rem;
    }
    .error-404-lead {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }
}
