/*
 * Pigeon Studio - szablon wpisu blogowego: hero z featured image, sidebar ze spisem treści
 * i CTA, boxy z ofertą, pasek czytania i dolne CTA na mobile.
 * Wszystkie nowe klasy mają prefiks pb-. Fonty i typografia treści zostają z motywu.
 */

.pb-post {
    --pb-post-color: #CBE068;
    --pb-ink: #000;
    --pb-ground: #F2F2F2;
    --pb-panel: #E4E4E4;
    --pb-line: #CFCFCF;
    --pb-muted: #4A4A4A;
    --pb-accent: #8B4DFF;
    --pb-accent-hover: #7436F0;
    --pb-accent-text: #5B21D6;
    --pb-container: 1052px;
    --pb-gutter: clamp(20px, 3vw, 40px);
}

/* Wysokość przyklejonego headera; ustawiana przez pigeon-blog.js, 0 gdy header nie jest fixed/sticky. */
/* --pb-header-visible: ile headera widać w tej chwili (gdy menu chowa się przy przewijaniu, spada do 0). */
:root { --pb-header-offset: 0px; --pb-header-visible: 0px; }

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

.pb-eyebrow {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease;
}
.pb-btn--accent,
.pb-btn--accent:visited { background: var(--pb-accent); color: #fff; }
.pb-btn--accent:hover { background: var(--pb-accent-hover); color: #fff; }
.pb-btn--black,
.pb-btn--black:visited { background: #000; color: #fff; }
.pb-btn--black:hover { background: #2A2A2A; color: #fff; }
.pb-post :focus-visible,
.pb-readbar :focus-visible,
.pb-cta-bar :focus-visible { outline: 2px solid var(--pb-accent); outline-offset: 3px; }

/* ------------------------------------------------------------------ Hero */

.pb-hero.blogExtend__wrapper {
    padding: calc(var(--pb-header-offset) + 40px) var(--pb-gutter) 64px;
    min-height: 0;
    height: auto;
    text-align: left;
}
.pb-hero__inner {
    max-width: var(--pb-container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.pb-back.blogExtend__back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
    min-height: 44px;
    margin: 0;
    color: #000;
    text-decoration: none;
    position: static;
}
.pb-back:hover { text-decoration: underline; }

.pb-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
}
.pb-hero__grid--noimage { grid-template-columns: minmax(0, 760px); }

.pb-hero__text.blogExtend__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin: 0;
    padding: 0;
    width: auto;
    max-width: none;
    text-align: left;
}
.pb-hero__text > div { margin: 0; padding: 0; width: auto; text-align: left; }
.pb-hero__text h1 { margin: 0; text-align: left; }
.pb-hero__text h2,
.pb-hero__text p { margin: 0; text-align: left; }
.pb-hero__text .blogSocials { justify-content: flex-start; margin: 0; }

/* Motyw skaluje tytuł i kategorię z szerokością okna (był projektowany pod wyśrodkowane hero
 * na całą szerokość). W nowym hero tekst ma tylko połowę kontenera o stałej szerokości,
 * więc rozmiary są ograniczone, żeby tytuł miał najwyżej 3 linie. */
.pb-post .pb-hero__text .blogExtend__title h1 {
    margin: 0;
    font-size: clamp(30px, 1.6vw + 12px, 44px);
    line-height: 1.12;
    letter-spacing: -0.01em;
}
.pb-post .pb-hero__text .blogExtend__category h2 {
    margin: 0;
    font-size: clamp(17px, 0.5vw + 12px, 21px);
    line-height: 1.3;
}
.pb-post .pb-hero__text.blogExtend__info { gap: 18px; }
.pb-post .pb-hero__text .blogExtend__autor,
.pb-post .pb-hero__text .blogExtend__time { margin: 0; padding: 0; }
.pb-post .pb-hero__text .blogExtend__autor p,
.pb-post .pb-hero__text .blogExtend__time p { margin: 0; padding: 0; line-height: 1.6; }
.pb-post .pb-hero__text .blogExtend__time { margin-top: -12px; }

.pb-hero__image img {
    --s: clamp(8px, 1.1vw, 16px);
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: 50% 50%;
    box-shadow: var(--s) var(--s) 0 #000;
    animation: pb-hero-shadow .7s cubic-bezier(.2, .7, .2, 1) .2s both;
}
@keyframes pb-hero-shadow {
    from { box-shadow: 0 0 0 #000; transform: translate(calc(var(--s) * .5), calc(var(--s) * .5)); }
    to   { box-shadow: var(--s) var(--s) 0 #000; transform: none; }
}

/* ---------------------------------------------------------------- Layout */

.pb-layout.blogExtend__content {
    max-width: calc(var(--pb-container) + 2 * var(--pb-gutter));
    width: 100%;
    margin: 0 auto;
    padding: 72px var(--pb-gutter) 96px;
    display: grid;
    grid-template-columns: 280px minmax(0, 700px);
    justify-content: space-between;
    align-items: start;
    column-gap: 72px;
}
.pb-sidebar { align-self: stretch; grid-column: 1; grid-row: 1; }
.pb-sidebar__inner {
    position: sticky;
    top: calc(var(--pb-header-visible) + 32px);
    transition: top .2s ease;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.pb-main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    max-width: 700px;
}
.pb-article.blogContent {
    min-width: 0;
    max-width: 700px;
    width: auto;
    margin: 0;
    padding: 0;
}
.pb-article h2[id] { scroll-margin-top: calc(var(--pb-header-offset) + 24px); }

/* Stare style .blogContent zwężały tekst (max-width i marginesy po bokach), bo dawniej kolumna
 * była za szeroka. W nowym układzie szerokość ogranicza już .pb-article (700px), więc je zerujemy.
 * Marginesy pionowe zostają z motywu. */
.pb-post .pb-article.blogContent > p,
.pb-post .pb-article.blogContent > h2,
.pb-post .pb-article.blogContent > h3,
.pb-post .pb-article.blogContent > h4,
.pb-post .pb-article.blogContent > ul,
.pb-post .pb-article.blogContent > ol,
.pb-post .pb-article.blogContent > blockquote {
    max-width: none;
    width: auto;
    margin-left: 0;
    margin-right: 0;
    padding-right: 0;
}
.pb-post .pb-article.blogContent > p,
.pb-post .pb-article.blogContent > h2,
.pb-post .pb-article.blogContent > h3,
.pb-post .pb-article.blogContent > h4 { padding-left: 0; }
.pb-post .pb-article.blogContent > ul,
.pb-post .pb-article.blogContent > ol { padding-left: 22px; }

/* Na wypadek gdyby stara reguła łapała też akapity wewnątrz boxów i karty kontaktu. */
.pb-post .pb-offer p,
.pb-post .pb-contact p {
    max-width: none;
    width: auto;
    margin: 0;
    padding: 0;
}
.pb-article img,
.pb-article iframe { max-width: 100%; }

/* Typografia treści: lżejsza i węższa niż domyślna z motywu. Font zostaje z motywu.
 * Selektory "> p" itd. działają tylko na treść wpisu, nie na boxy z ofertą. */
.pb-post .pb-article.blogContent > p,
.pb-post .pb-article.blogContent > ul li,
.pb-post .pb-article.blogContent > ol li {
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
}
.pb-post .pb-article.blogContent > p { margin-top: 0; margin-bottom: 18px; }
.pb-post .pb-article.blogContent > ul,
.pb-post .pb-article.blogContent > ol { margin-top: 0; margin-bottom: 20px; }
.pb-post .pb-article.blogContent > ul li,
.pb-post .pb-article.blogContent > ol li {
    max-width: none;
    width: auto;
    margin: 0 0 10px;
    padding-left: 0;
    padding-right: 0;
}
.pb-post .pb-article.blogContent strong,
.pb-post .pb-article.blogContent b { font-weight: 600; }
.pb-post .pb-article.blogContent > h2 {
    margin-top: 52px;
    margin-bottom: 16px;
    font-size: clamp(24px, 0.8vw + 16px, 28px);
    line-height: 1.22;
    font-weight: 500;
}
.pb-post .pb-article.blogContent > h3 {
    margin-top: 32px;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500;
}
.pb-post .pb-article.blogContent > h4 {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
}
.pb-post .pb-article.blogContent > *:first-child { margin-top: 0; }
.pb-post .pb-article.blogContent iframe { display: block; margin: 8px auto 24px; }

/* Obrazki w treści starszych wpisów. Stare style zwężały i odsuwały bloki z obrazkami
 * (szerokości, marginesy), bo kolumna była szeroka. Tu blok z obrazkami zajmuje całą kolumnę. */
.pb-post .pb-article.blogContent > div:has(img),
.pb-post .pb-article.blogContent > figure {
    max-width: none;
    width: auto;
    margin: 32px 0;
    padding-left: 0;
    padding-right: 0;
}
.pb-post .pb-article.blogContent > figure img,
.pb-post .pb-article.blogContent > div:has(img) img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Galeria: blok z obrazkami, który ma co najmniej dwa elementy obok siebie (np. obrazek + podpis
 * w osobnych kontenerach) i nie ma bezpośrednio w sobie tekstu (akapitów, nagłówków, list).
 * Układa elementy w równe kolumny na całą szerokość. */
.pb-post .pb-article.blogContent > div:has(> :nth-child(2)):has(img):not(:has(> p, > h2, > h3, > h4, > ul, > ol, > blockquote, > table)) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    align-items: start;
}
.pb-post .pb-article.blogContent > div:has(> :nth-child(2)):has(img):not(:has(> p, > h2, > h3, > h4, > ul, > ol, > blockquote, > table)) > * {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0;
    float: none;
    display: block;
}
.pb-post .pb-article.blogContent > div:has(> :nth-child(2)):has(img):not(:has(> p, > h2, > h3, > h4, > ul, > ol, > blockquote, > table)) img {
    width: 100%;
}

/* Obrazki z edytora blokowego (figure.wp-block-image). Stary CSS motywu daje im
 * margin-left/right: 15% (styl w treści strony) i margin-top: 60px/120px !important
 * (main.min.css), co w nowej kolumnie zmniejsza je i odsuwa. */
.pb-post .pb-article.blogContent .wp-block-image,
.pb-post .pb-article.blogContent figure {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.pb-post .pb-article.blogContent > .wp-block-image,
.pb-post .pb-article.blogContent > figure {
    margin-top: 32px !important;
    margin-bottom: 32px;
}
.pb-post .pb-article.blogContent .wp-block-column > .wp-block-image,
.pb-post .pb-article.blogContent .wp-block-column > figure {
    margin-top: 0 !important;
    margin-bottom: 0;
}
.pb-post .pb-article.blogContent .wp-block-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Kolumny z edytora blokowego (np. dwa obrazki obok siebie). */
.pb-post .pb-article.blogContent > .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    align-items: start;
    max-width: none;
    width: auto;
    margin: 32px 0;
    padding: 0;
}
.pb-post .pb-article.blogContent > .wp-block-columns > .wp-block-column {
    width: auto !important;
    max-width: none;
    flex-basis: auto !important;
    margin: 0 !important;
    padding: 0;
}

/* Podpisy pod obrazkami: mniejsze i lżejsze niż tekst artykułu. */
.pb-post .pb-article.blogContent > div:has(img) p,
.pb-post .pb-article.blogContent > div:has(img) figcaption,
.pb-post .pb-article.blogContent > figure figcaption {
    max-width: none;
    margin: 10px 0 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
    color: var(--pb-muted);
}

/* Tabele w treści */
.pb-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 8px 0 24px;
    max-width: 100%;
}
.pb-table-wrap table { min-width: 640px; width: 100%; margin: 0; table-layout: auto; }
.pb-post .pb-table-wrap th,
.pb-post .pb-table-wrap td {
    width: auto !important;
    vertical-align: top !important;
    text-align: left;
    padding: 12px 12px;
    font-size: 13px;
    line-height: 1.45;
}
.pb-post .pb-table-wrap th:first-child,
.pb-post .pb-table-wrap td:first-child { white-space: normal !important; min-width: 120px; }
.pb-post .pb-table-wrap th:last-child,
.pb-post .pb-table-wrap td:last-child { min-width: 220px; }

/* ------------------------------------------------------------- Spis treści */

.pb-toc { display: flex; flex-direction: column; gap: 16px; }
.pb-progress { position: relative; height: 2px; background: #D4D4D4; overflow: hidden; }
.pb-progress__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: #000; }
.pb-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--pb-line); }
.pb-toc li { margin: 0; padding: 0; }
.pb-toc li::before { display: none; }
.pb-toc a {
    display: block;
    margin-left: -1px;
    padding: 7px 0 7px 16px;
    border-left: 2px solid transparent;
    color: var(--pb-muted);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}
.pb-toc a:hover { color: #000; text-decoration: underline; }
.pb-toc a.is-active { border-left-color: #000; color: #000; font-weight: 600; }

/* ------------------------------------------------------- CTA kontaktowe */

.pb-contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 24px;
    background: var(--pb-panel);
}
.pb-contact p { margin: 0; }
.pb-person { display: flex; align-items: center; gap: 12px; }
.pb-person b { display: block; font-size: 14px; }
.pb-person small { display: block; margin-top: 2px; font-size: 13px; color: var(--pb-muted); }
.pb-person__photo,
.pb-person__initials {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
}
.pb-person__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pb-post-color);
    font-size: 15px;
    font-weight: 600;
}
.pb-contact__title { font-size: 22px; line-height: 1.25; font-weight: 500; }
.pb-contact__text { font-size: 14px; line-height: 1.55; color: #333; }
.pb-contact .pb-btn { width: 100%; }
.pb-contact__mail { font-size: 13px; line-height: 1.5; color: var(--pb-muted); }
.pb-contact__mail a { color: var(--pb-accent-text); }
.pb-contact__proof { padding-top: 14px; border-top: 1px solid var(--pb-line); font-size: 13px; color: var(--pb-muted); }
.pb-contact__proof a,
.pb-contact__proof a:visited {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--pb-line);
    text-underline-offset: 3px;
}
.pb-contact__proof a:hover { color: #000; text-decoration-color: currentColor; }
.pb-contact--generic .pb-contact__proof a:hover { color: #fff; }
.pb-contact--generic { background: #000; color: #fff; }
.pb-contact--generic .pb-contact__text,
.pb-contact--generic .pb-contact__mail,
.pb-contact--generic .pb-contact__proof { color: #E4E4E4; }
.pb-contact--generic .pb-contact__mail a { color: #fff; }
.pb-contact--generic .pb-contact__proof { border-top-color: #333; }

/* ----------------------------------------------------- Boxy z ofertą */

.pb-offer { display: grid; gap: 28px; margin: 44px 0 12px; padding: 32px; }
.pb-offer p { margin: 0; }
.pb-offer__body { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pb-offer__title { font-size: 26px; line-height: 1.2; font-weight: 500; }
.pb-offer__text { font-size: 15px; line-height: 1.55; }

/* Mocniejsze selektory, bo motyw nadaje własne rozmiary wszystkim akapitom w .blogContent. */
.pb-post .pb-offer .pb-eyebrow { font-size: 11px; line-height: 1.4; }
.pb-post .pb-offer .pb-offer__title { font-size: 24px; line-height: 1.22; font-weight: 500; }
.pb-post .pb-offer .pb-offer__text { font-size: 15px; line-height: 1.55; font-weight: 400; }
.pb-post .pb-offer--b .pb-offer__title { font-size: 22px; }

.pb-offer--a {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    background: var(--pb-post-color);
    color: #000;
}

.pb-offer--b {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: start;
    padding: 36px 32px;
    background: #000;
    color: #fff;
}
.pb-offer--b.pb-offer--nostat { grid-template-columns: minmax(0, 1fr); }
.pb-offer--b .pb-eyebrow { color: #CFCFCF; }
.pb-offer--b .pb-offer__title { font-size: 24px; line-height: 1.25; color: #fff; }
.pb-offer--b .pb-offer__text { color: #E4E4E4; }
.pb-offer__stat { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.pb-offer__stat strong { font-size: 52px; line-height: 1; font-weight: 500; color: var(--pb-post-color); }
.pb-offer__stat span { font-size: 13px; line-height: 1.4; color: #CFCFCF; }
.pb-offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 6px; }
.pb-offer__link,
.pb-offer__link:visited { color: #fff; font-size: 14px; text-decoration: underline; }
.pb-offer__link:hover { color: var(--pb-post-color); }

/* ------------------------------------------------------------- Autor */

.pb-author {
    margin-top: 56px;
    padding: 28px 32px;
    background: var(--pb-panel);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pb-post .pb-author p { margin: 0; padding: 0; max-width: none; }
.pb-author__head { display: flex; align-items: center; gap: 14px; }
.pb-author__head .pb-person__photo,
.pb-author__head .pb-person__initials { width: 56px; height: 56px; }
.pb-post .pb-author .pb-author__name { font-size: 20px; line-height: 1.25; font-weight: 500; }
.pb-post .pb-author .pb-author__job { margin-top: 2px; font-size: 14px; color: var(--pb-muted); }
.pb-post .pb-author__desc p { font-size: 15px; line-height: 1.6; }
.pb-post .pb-author__desc p + p { margin-top: 10px; }
.pb-author__link,
.pb-author__link:visited { align-self: flex-start; color: var(--pb-accent-text); font-size: 14px; }

/* Udostępnij / Subscribe pod artykułem */
.pb-share-end {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
    font-size: 16px;
    line-height: 1.4;
}
.pb-share-end__row { display: flex; align-items: center; gap: 4px; }
.pb-share-end__row span { margin-right: 8px; }
.pb-share-end__row a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Ikony z plików motywu użyte jako maska, więc kolor ustawia CSS (fiolet jak w starym bloku),
 * niezależnie od koloru w samych plikach SVG. */
.pb-share-icon {
    display: block;
    width: 20px;
    height: 18px;
    background-color: var(--pb-accent);
    -webkit-mask: var(--pb-icon) center / contain no-repeat;
    mask: var(--pb-icon) center / contain no-repeat;
    transition: background-color .15s ease;
}
.pb-share-end__row a:hover .pb-share-icon { background-color: #000; }
.pb-share-end__subscribe a,
.pb-share-end__subscribe a:visited { color: var(--pb-accent-text); }

/* -------------------------------------------- Elementy tylko na mobile */

.pb-toc-mobile,
.pb-readbar,
.pb-cta-bar { display: none; }
.pb-toc-mobile [hidden],
.pb-readbar [hidden] { display: none !important; }

.pb-toc-mobile__btn,
.pb-readbar__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: none;
    border: 0;
    padding: 0;
    color: #000;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.pb-toc-mobile__btn { min-height: 60px; border-bottom: 1px solid var(--pb-line); }
.pb-toc-mobile__btn small { display: block; margin-top: 3px; font-size: 14px; color: var(--pb-muted); }
.pb-toc-mobile__btn svg,
.pb-readbar__btn svg { flex: none; transition: transform .2s; }
.pb-post [aria-expanded="true"] svg,
.pb-readbar [aria-expanded="true"] svg { transform: rotate(180deg); }

.pb-toc-mobile__list,
.pb-readbar__list { list-style: none; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--pb-line); }
.pb-toc-mobile__list li::before,
.pb-readbar__list li::before { display: none; }
.pb-toc-mobile__list a,
.pb-readbar__list a { display: block; padding: 11px 0; color: #000; font-size: 15px; text-decoration: none; }
.pb-toc-mobile__list a.is-active,
.pb-readbar__list a.is-active { font-weight: 600; }

@media (max-width: 1100px) {
    .pb-layout.blogExtend__content {
        grid-template-columns: minmax(0, 700px);
        justify-content: center;
        padding-top: 0;
    }
    .pb-sidebar { display: none; }
    .pb-toc-mobile { display: block; grid-column: 1; grid-row: 1; margin-bottom: 28px; }
    .pb-main { grid-column: 1; grid-row: 2; }
    .pb-layout:not(:has(.pb-toc-mobile)) { padding-top: 40px; }

    .pb-readbar {
        display: block;
        position: fixed;
        top: var(--pb-header-visible);
        left: 0;
        right: 0;
        z-index: 40;
        background: var(--pb-ground, #F2F2F2);
        border-bottom: 1px solid #CFCFCF;
        transform: translateY(-110%);
        visibility: hidden;
        transition: transform .2s ease, visibility .2s;
    }
    .pb-readbar.is-visible { transform: none; visibility: visible; }
    .pb-readbar .pb-progress { height: 3px; }
    .pb-readbar__btn { min-height: 52px; padding: 0 20px; }
    .pb-readbar__btn > span { min-width: 0; }
    .pb-readbar__btn small { display: block; color: #4A4A4A; font-size: 10px; }
    .pb-readbar__btn b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
    .pb-readbar__list { max-height: 60vh; overflow: auto; padding: 4px 20px 12px; }

    .pb-cta-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)) 20px;
        background: #000;
        color: #fff;
        transform: translate3d(0, 110%, 0);
        visibility: hidden;
        transition: transform .25s ease, visibility .25s;
        /* Własna warstwa kompozycji: mniej drgań, gdy przeglądarka animuje swoje paski. */
        will-change: transform;
        backface-visibility: hidden;
    }
    .pb-cta-bar.is-visible { transform: translate3d(0, 0, 0); visibility: visible; }
    .pb-cta-bar span { font-size: 14px; line-height: 1.3; }
    .pb-cta-bar .pb-btn {
        flex: none;
        min-height: 44px;
        padding: 0 18px;
        font-size: 11px;
        background: #8B4DFF;
        color: #fff;
    }
}

@media (max-width: 900px) {
    .pb-hero.blogExtend__wrapper { padding: calc(var(--pb-header-offset) + 16px) 20px 28px; }
    .pb-hero__inner { gap: 12px; }
    .pb-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .pb-hero__text.blogExtend__info { gap: 14px; }
    .pb-hero__text .blogSocials { display: none; }
    .pb-layout.blogExtend__content { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 600px) {
    .pb-offer { gap: 16px; padding: 24px 20px; }
    .pb-offer--a { grid-template-columns: minmax(0, 1fr); }
    .pb-offer--a .pb-btn { width: 100%; }
    .pb-offer__title { font-size: 22px; }
    .pb-offer--b { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; }
    .pb-offer__stat strong { font-size: 44px; }
    .pb-author { padding: 24px 20px; }
    .pb-share-end { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .pb-hero__image img { animation: none; }
    .pb-readbar,
    .pb-cta-bar,
    .pb-btn,
    .pb-post svg { transition: none; }
}
