/* =============================================================================
   Profe Studio — Widok pojedynczego artykułu / aktualności
   Custom CSS dla szablonu Helix Ultimate (shaper_helixultimate)
   -----------------------------------------------------------------------------
   Ścieżka docelowa:
   templates/shaper_helixultimate/css/custom.css

   Helix Ultimate automatycznie ładuje plik o nazwie dokładnie "custom.css"
   jako ostatni w kolejności CSS — dlatego reguły poniżej nadpisują domyślne
   style Helix.

   Uwagi:
   - Zmienne CSS (prefiks --ps-) są zakresowane pod sekcjami artykułu, żeby
     nie kolidować z zmiennymi Helix/Bootstrap 5.
   - Helix Ultimate używa Bootstrap 5 — klasy .container i .btn mogą istnieć
     globalnie. Używamy własnych klas (.container Helix zostaje, my renderujemy
     w nim nasze sekcje) i naszych .btn, .btn--primary, .btn--secondary
     z zachowaniem większej specyficzności.
   - Wymagany font: Montserrat. Jeśli Helix Typography ma inny font jako body,
     ustaw: Template Options → Typography → Body → Font Family: Montserrat
     LUB zostaw tutaj jawne font-family, które nadpisze globalne.
   ============================================================================= */


/* ============================================================
   1. ZMIENNE CSS (zakres: widok artykułu)
   ------------------------------------------------------------
   Zmienne są w :root dla łatwego debugowania,
   ale wszystkie selektory niżej są wyspecyfikowane, żeby nie
   rozlewać stylu na inne widoki Helix.
   ============================================================ */
:root {
    --ps-bg: #ffffff;
    --ps-bg-soft: #f8f9fd;
    --ps-bg-tint: #fff9ef;
    --ps-text: #182033;
    --ps-text-soft: #5f687c;
    --ps-line: rgba(24, 32, 51, 0.08);
    --ps-line-strong: rgba(24, 32, 51, 0.14);
    --ps-navy: #1a2a6c;
    --ps-navy-soft: #e9efff;
    --ps-gold: #f2b63d;
    --ps-gold-soft: #fff3d8;
    --ps-shadow-sm: 0 10px 28px rgba(16, 24, 40, 0.06);
    --ps-shadow-md: 0 22px 50px rgba(16, 24, 40, 0.10);
    --ps-radius-sm: 14px;
    --ps-radius-md: 22px;
    --ps-radius-lg: 30px;
    --ps-max: 1240px;
    --ps-content: 760px;

    /* Aliasy dla kompatybilności wstecznej (używane w dalszych regułach) */
    --bg: var(--ps-bg);
    --bg-soft: var(--ps-bg-soft);
    --bg-tint: var(--ps-bg-tint);
    --text: var(--ps-text);
    --text-soft: var(--ps-text-soft);
    --line: var(--ps-line);
    --line-strong: var(--ps-line-strong);
    --navy: var(--ps-navy);
    --navy-soft: var(--ps-navy-soft);
    --gold: var(--ps-gold);
    --gold-soft: var(--ps-gold-soft);
    --shadow-sm: var(--ps-shadow-sm);
    --shadow-md: var(--ps-shadow-md);
    --radius-sm: var(--ps-radius-sm);
    --radius-md: var(--ps-radius-md);
    --radius-lg: var(--ps-radius-lg);
    --max: var(--ps-max);
    --content: var(--ps-content);
}


/* ============================================================
   2. KONTENER
   ============================================================ */
.article-hero *,
.section *,
.related * {
    box-sizing: border-box;
}

.article-hero .container,
.section .container,
.related .container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}


/* ============================================================
   3. SEKCJA HERO
   ============================================================ */
.article-hero {
    padding: 54px 0 26px;
    background:
        radial-gradient(circle at 0% 0%, rgba(26, 42, 108, 0.10) 0%, rgba(26, 42, 108, 0) 42%),
        radial-gradient(circle at 100% 0%, rgba(242, 182, 61, 0.14) 0%, rgba(242, 182, 61, 0) 34%),
        linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
    color: var(--text);
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    line-height: 1.7;
}


/* ============================================================
   4. BREADCRUMBS (kontener; moduł mod_breadcrumbs)
   ============================================================ */
.article-hero .mod-breadcrumbs,
.article-hero .breadcrumb,
.article-hero ol.breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    background: transparent;
}

.article-hero .breadcrumb li,
.article-hero ol.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-hero .breadcrumb li + li::before,
.article-hero ol.breadcrumb li + li::before {
    content: "•";
    color: var(--text-soft);
    opacity: 0.7;
}

.article-hero .breadcrumb a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-hero .breadcrumb a:hover {
    color: var(--navy);
}


/* ============================================================
   5. UKŁAD 2-KOLUMNOWY (hero i treść)
   ============================================================ */
.article-wrap,
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
}

.article-main,
.article-content {
    min-width: 0;
}


/* ============================================================
   6. NAGŁÓWEK ARTYKUŁU (eyebrow, H1, lead, meta, cover)
   ============================================================ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(26, 42, 108, 0.08);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
}

.article-main h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--text);
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 800;
}

.article-lead {
    margin: 0;
    max-width: var(--content);
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-soft);
    font-family: Montserrat, Arial, Helvetica, sans-serif;
}

.article-lead p {
    margin: 0 0 12px;
}

.article-lead p:last-child {
    margin-bottom: 0;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
}

.meta-pill time {
    color: inherit;
}


/* ============================================================
   7. COVER (zdjęcie główne artykułu)
   ============================================================ */
.cover {
    position: relative;
    margin: 28px 0 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(26, 42, 108, 0.08);
    box-shadow: var(--shadow-md);
    aspect-ratio: 16 / 8.2;
    background:
        linear-gradient(135deg, rgba(26, 42, 108, 0.12) 0%, rgba(53, 87, 214, 0.08) 46%, rgba(242, 182, 61, 0.16) 100%),
        linear-gradient(180deg, #eef3ff 0%, #fff9ef 100%);
}

.cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.cover::before,
.cover::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.9;
    z-index: 0;
}

.cover::before {
    width: 280px;
    height: 280px;
    right: -40px;
    top: -54px;
    background: rgba(26, 42, 108, 0.18);
}

.cover::after {
    width: 180px;
    height: 180px;
    left: 34px;
    bottom: -24px;
    background: rgba(242, 182, 61, 0.22);
}

.cover__badge {
    position: absolute;
    left: 28px;
    top: 28px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.44);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.cover__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 14px 20px;
    background: linear-gradient(180deg, rgba(24, 32, 51, 0) 0%, rgba(24, 32, 51, 0.55) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}


/* ============================================================
   8. SEKCJA TREŚCI
   ============================================================ */
.section {
    padding: 34px 0;
    color: var(--text);
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    line-height: 1.7;
}


/* ============================================================
   9. TYPOGRAFIA TREŚCI ARTYKUŁU
   ============================================================ */
.article-body {
    max-width: var(--content);
}

.article-body h2 {
    margin: 38px 0 14px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: var(--text);
    font-weight: 800;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    margin: 28px 0 12px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    font-weight: 800;
}

.article-body h4 {
    margin: 24px 0 10px;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text);
    font-weight: 700;
}

.article-body p,
.article-body li {
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.9;
}

.article-body p {
    margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 18px 0;
    padding-left: 22px;
}

.article-body ul li,
.article-body ol li {
    margin-bottom: 6px;
}

.article-body a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.article-body a:hover {
    color: #3557d6;
}

.article-body strong,
.article-body b {
    color: var(--text);
    font-weight: 700;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px 0;
    border-radius: var(--radius-md);
}

.article-body blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--navy);
    background: var(--navy-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--navy);
    font-style: italic;
    font-size: 18px;
    line-height: 1.7;
}

.article-body blockquote p {
    margin: 0;
    color: inherit;
}

.article-body hr {
    margin: 36px 0;
    border: none;
    border-top: 1px solid var(--line);
}


/* ============================================================
   10. KARTY W TREŚCI (callout, note)
   ============================================================ */
.callout,
.sidebar-card,
.share-card,
.next-step,
.related-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.callout {
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, #fffdf7 0%, #fff8ea 100%);
    border-color: rgba(242, 182, 61, 0.22);
}

.callout__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(242, 182, 61, 0.14);
    color: #8c6114;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.callout h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
    color: var(--text);
    font-weight: 800;
}

.callout p {
    margin: 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.8;
}

.article-note {
    margin: 30px 0;
    padding: 20px 22px;
    border-left: 4px solid var(--navy);
    background: var(--navy-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--navy);
    font-weight: 600;
}

.article-note p {
    margin: 0;
    color: inherit;
}


/* ============================================================
   11. SIDEBAR (sticky)
   ============================================================ */
.sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
    align-self: start;
}

.sidebar-card,
.share-card,
.next-step {
    padding: 22px;
}

.sidebar-card h3,
.share-card h3,
.next-step h3,
.related-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    font-weight: 800;
}

.sidebar-card p,
.share-card p,
.next-step p,
.related-card p,
.sidebar-card__body,
.sidebar-card__body p {
    margin: 0 0 8px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.75;
}

.sidebar-card__body p:last-child,
.sidebar-card p:last-child,
.share-card p:last-child,
.next-step p:last-child,
.related-card p:last-child {
    margin-bottom: 0;
}

.sidebar-card a,
.share-card a,
.next-step a,
.related-card a {
    color: var(--navy);
    text-decoration: none;
}

.sidebar-card a:hover,
.share-card a:hover,
.next-step a:hover {
    text-decoration: underline;
}


/* ============================================================
   12. PRZYCISKI
   ============================================================ */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 800;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn--primary {
    background: var(--gold);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    transform: translateY(-2px);
    background: #e9ac2e;
    color: var(--navy);
    text-decoration: none;
}

.btn--secondary {
    background: #fff;
    color: var(--navy);
    border-color: rgba(26, 42, 108, 0.12);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
    transform: translateY(-2px);
    background: var(--navy-soft);
    color: var(--navy);
    text-decoration: none;
}

.btn:focus-visible {
    outline: 3px solid rgba(26, 42, 108, 0.35);
    outline-offset: 2px;
}


/* ============================================================
   13. SHARE CHIPS (udostępnianie)
   ============================================================ */
.share-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.share-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.share-chip:hover {
    border-color: var(--line-strong);
    color: var(--navy);
    text-decoration: none;
}


/* ============================================================
   14. NEXT STEP (CTA w sidebarze treści)
   ============================================================ */
.next-step {
    background: linear-gradient(135deg, #f8fbff 0%, #fff9ef 100%);
    border-color: rgba(26, 42, 108, 0.10);
}


/* ============================================================
   15. SEKCJA POWIĄZANYCH ARTYKUŁÓW
   ============================================================ */
.related {
    padding: 18px 0 64px;
}

.related-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.related-head h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--text);
    font-weight: 800;
}

.related-head p {
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.75;
    max-width: 720px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.related-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.related-thumb {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e9efff 0%, #fff7e5 100%);
    position: relative;
    overflow: hidden;
}

.related-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.related-thumb::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -24px;
    top: -24px;
    border-radius: 999px;
    background: rgba(26, 42, 108, 0.14);
    filter: blur(8px);
    z-index: 0;
}

.related-card__body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.related-card__body h3 {
    margin: 0;
}

.related-card__body p {
    flex: 1;
}

.related-meta {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}


/* ============================================================
   16. RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 1080px) {
    .article-wrap,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 920px) {
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .article-hero .container,
    .section .container,
    .related .container {
        width: min(var(--max), calc(100% - 24px));
    }

    .article-hero {
        padding: 40px 0 18px;
    }

    .article-main h1 {
        font-size: 38px;
    }

    .article-lead {
        font-size: 17px;
    }

    .cover,
    .related-thumb {
        aspect-ratio: 16 / 11;
    }

    .callout,
    .sidebar-card,
    .share-card,
    .next-step,
    .related-card__body {
        padding: 18px;
    }

    .btn-row .btn,
    .share-list .share-chip {
        width: 100%;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-meta-row {
        gap: 8px;
    }
}


/* ============================================================
   17. PRINT — wersja do druku (opcjonalnie, warto mieć)
   ============================================================ */
@media print {
    .article-hero {
        background: none;
        padding: 0 0 20px;
    }

    .sidebar,
    .related,
    .cover::before,
    .cover::after,
    .btn-row,
    .share-list {
        display: none !important;
    }

    .article-wrap,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .article-body {
        max-width: none;
    }

    .cover {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}


/* ============================================================
   18. NADPISANIA SPECYFICZNE DLA HELIX ULTIMATE / BOOTSTRAP 5
   ------------------------------------------------------------
   Bootstrap 5 (używany przez Helix) ma własne klasy .container,
   .btn, .btn-primary itd. Poniższe reguły zapewniają, że nasze
   komponenty działają poprawnie niezależnie od stylów Helix.
   ============================================================ */

/* Kontener — w naszych sekcjach nadpisuje .container Bootstrap */
.article-hero > .container,
.section > .container,
.related > .container {
    width: min(1240px, calc(100% - 40px));
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

/* Reset Bootstrap .btn-* żeby nie kolidowały z naszymi btn--primary/secondary */
.article-hero .btn,
.section .btn,
.related .btn {
    --bs-btn-padding-y: unset;
    --bs-btn-padding-x: unset;
    --bs-btn-font-family: unset;
    --bs-btn-font-size: 14px;
    --bs-btn-font-weight: 800;
    --bs-btn-line-height: 1;
    --bs-btn-color: unset;
    --bs-btn-bg: unset;
    --bs-btn-border-width: 1px;
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: 999px;
    --bs-btn-hover-border-color: transparent;
}

/* Reset ewentualnych Helix .sp-module styles, gdyby moduły były wrappowane */
.article-hero .sp-module,
.section .sp-module,
.related .sp-module {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.article-hero .sp-module .sp-module-title,
.section .sp-module .sp-module-title,
.related .sp-module .sp-module-title {
    display: none;
}

/* Helix — breadcrumbs — reset ewentualnych stylów natywnych */
.article-hero ol.breadcrumb,
.article-hero ul.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0 0 18px;
}

/* Obrazy wewnątrz article-body — Helix może mieć max-width dla .article-details img */
.article-body img {
    max-width: 100%;
    height: auto;
}

/* Naprawa potencjalnego konfliktu .article-body z natywnym Helix */
.section .article-body > * {
    box-sizing: border-box;
}

/* Fix: Helix może dodawać .sp-article-container lub .article-details wrapper.
   Upewniamy się, że nasze style działają w obu przypadkach */
.sp-article-container .article-hero,
.article-details .article-hero {
    padding: 54px 0 26px;
}

/* Fix: jeśli Helix ma własny preloader / nakładkę na cover */
.cover img {
    z-index: 1;
    position: absolute !important;
}
/* ============================================================
   19. ROZCIĄGNIĘCIE SEKCJI NA PEŁNĄ SZEROKOŚĆ
   ------------------------------------------------------------
   Helix Ultimate wrappuje komponent w .container z max-width.
   Poniższe reguły wyprowadzają tło sekcji poza ten kontener,
   zachowując jednocześnie ograniczoną szerokość treści wewnątrz.
   ============================================================ */

/* Zapobiega poziomemu scrollowi spowodowanemu przez 100vw */
body {
    overflow-x: hidden;
}

/* Sekcje rozciągają się na pełną szerokość viewport */
.article-hero,
.section,
.related {
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

/* Wewnętrzne .container zachowują oryginalną szerokość treści */
.article-hero > .container,
.section > .container,
.related > .container {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

/* Mobile — mniejsze marginesy wewnętrzne */
@media (max-width: 640px) {
    .article-hero > .container,
    .section > .container,
    .related > .container {
        padding-left: 0;
        padding-right: 0;
    }
}
/* ============================================================
   20. FIX STICKY SIDEBAR — Helix Ultimate
   ------------------------------------------------------------
   Helix wrappuje obszar komponentu w wiele kontenerów,
   z których niektóre mają overflow inny niż visible, co blokuje
   działanie position: sticky na elementach wewnątrz.
   ============================================================ */

#sp-main-body,
.sp-main-body,
.body-wrapper,
#sp-component,
.sp-column,
#sp-content,
.sp-content {
    overflow: visible !important;
}

/* Upewniamy się, że rodzice sticky mają wystarczającą wysokość,
   żeby sticky miało gdzie "się trzymać" */
.content-grid,
.article-wrap {
    align-items: start;
}

/* Zabezpieczenie samego sticky sidebara */
.sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
}

/* W razie gdyby sticky nadal nie działało — backup z position: -webkit-sticky dla Safari */
@supports (position: -webkit-sticky) or (position: sticky) {
    .sidebar {
        position: -webkit-sticky;
        position: sticky;
    }
}