/* ==========================================================================
   Komponenty LepszySen

   Spis treści:
   0. WordPress Default Overrides
   1. Top Bar
   2. Navigation (+ Mode Switcher, Hamburger)
   3. Buttons (shared)
   4. Hero Section
   5. Categories
   6. Latest Posts
   7. Blog Articles
   8. Responsywność
   9. Lightbox Video Popup
   10. Wiedza Page (Artykuły + Najnowsze odcinki)
   11. Single Post (pojedynczy wpis)
   Footer jest na górze pliku (sekcja 0b).
   ========================================================================== */

/* ==========================================================================
   0. WordPress Default Overrides
   ========================================================================== */

/* Zapobiega WP block styles nadpisywaniu layout headera */
.site-header,
.site-header *,
.site-navigation,
.site-navigation * {
    box-sizing: border-box;
}

.site-header .top-bar,
.site-header .site-navigation,
.site-header .top-bar__inner,
.site-header .site-navigation__inner,
.site-header .site-navigation__menu-container {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Reset WP button styles na naszym CTA */
.site-navigation .btn,
.hero .btn {
    background-image: none;
    box-shadow: none;
    text-shadow: none;
}

/* Reset WP overrides na hero */
.hero,
.hero *,
.hero__container,
.hero__content {
    box-sizing: border-box;
}

.hero .hero__container,
.hero .hero__content,
.hero .hero__text,
.hero .hero__image {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ==========================================================================
   0b. Site Main — kontener na treść (poza headerem)
   ========================================================================== */

.site-main {
    max-width: var(--ls-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ls-container-padding);
    padding-right: var(--ls-container-padding);
}

/* ==========================================================================
   FOOTER — Figma 5965-6948
   Lewa: logo + opis + 3 podkreślone linki
   Prawa: 3 kolumny linków (bez nagłówków)
   Dół: copyright + social (YouTube, Facebook, Instagram, X, LinkedIn)
   ========================================================================== */

.site-footer {
    background-color: #032A49;
    color: #D2E5F6;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 80px;
}

.site-footer__inner {
    max-width: var(--ls-container-max);
    margin: 0 auto;
    padding: 50px var(--ls-container-padding);
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* Górna sekcja: brand lewa + nawigacja prawa — Figma gap=32 */
.site-footer__top {
    display: flex;
    gap: 32px;
}

/* Marka — logo + opis + linki — Figma 5965-6948: 670 px / gap=32 vertical;
   zwęża się, a kolumny linków (638 px) zachowują szerokość. */
.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 670px;
}

.site-footer__logo {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-footer__logo:hover {
    opacity: 0.8;
}

.site-footer__logo-img {
    width: 256px;
    height: auto;
    filter: brightness(0) invert(1);
}

.site-footer__description {
    color: #D2E5F6;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

/* Nawigacja — Figma: HORIZONTAL, gap=86 between columns */
.site-footer__nav {
    display: flex;
    gap: 86px;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 0 0 auto;
    margin-left: auto;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Lista menu — Figma: element 41 px (pad 8/12), odstęp 4 px */
.site-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.site-footer__menu .menu-item a {
    display: block;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 25.2px;
    text-align: left;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer__menu .menu-item a:hover {
    opacity: 0.7;
}

/* Dolny pasek — Figma: HORIZONTAL, gap=32 */
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer__copyright {
    color: #D2E5F6;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Ikony social — Figma: gap=16 */
.site-footer__social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D2E5F6;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__social-link:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   1. Top Bar — Figma: 1440×42, #032A49, pad 10px 50px
   ========================================================================== */

.top-bar {
    background-color: var(--ls-bg-topbar);
    color: var(--ls-text-topbar);
    font-size: var(--ls-font-size-sm);
    font-weight: var(--ls-font-weight-medium);
    letter-spacing: 0.32px;
    line-height: 1.4;
    transition: background-color var(--ls-transition);
}

.top-bar__inner {
    max-width: var(--ls-container-max);
    margin: 0 auto;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 42px;
}

.top-bar__group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar__group--phone {
    color: var(--ls-accent);
    text-decoration: none;
    transition: opacity var(--ls-transition);
}

.top-bar__group--phone:hover {
    opacity: 0.8;
}

.top-bar__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--ls-accent);
}

.top-bar__text {
    white-space: nowrap;
}

/* ==========================================================================
   2. Navigation — Figma: 1440×76, #FFF, pad 16px 50px, space-between
   ========================================================================== */

.site-header {
    width: 100%;
}

.site-navigation {
    background-color: var(--ls-bg-nav);
    z-index: 1000;
    position: relative;
    border-bottom: 1px solid var(--ls-border-nav);
    transition: background-color var(--ls-transition), border-color var(--ls-transition);
}

.site-navigation__inner {
    max-width: var(--ls-container-max);
    margin: 0 auto;
    padding: 16px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
}

/* Logo container — Figma: HORIZONTAL, gap 16, HUG */
.site-navigation__logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.site-navigation__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: opacity var(--ls-transition);
}

.site-navigation__logo:hover {
    opacity: 0.85;
}

.site-navigation__logo img {
    height: 48px;
    width: auto;
    transition: filter var(--ls-transition);
}

/* Invert logo in dark mode — dark text → light text */
[data-theme="dark"] .site-navigation__logo img {
    filter: invert(1) brightness(2);
}

/* ==========================================================================
   2b. Mode Switcher — Figma: 120×48, pill, bg #F7FCFF, border #D2E5F6
   ========================================================================== */

.mode-switcher {
    position: relative;
    display: flex;
    align-items: center;
    width: 120px;
    height: 48px;
    padding: 4px;
    border-radius: 999px;
    background-color: var(--ls-switcher-bg);
    border: 1px solid var(--ls-switcher-border);
    flex-shrink: 0;
    transition: background-color var(--ls-transition), border-color var(--ls-transition);
}

/* Mobile-only mode-switcher: hidden on desktop */
.mode-switcher--mobile {
    display: none;
}

/* Sliding active indicator — Figma: 56×40, dark bg, absolute */
.mode-switcher__bg {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 56px;
    height: 40px;
    border-radius: 999px;
    background-color: var(--ls-switcher-active-bg);
    transition: transform var(--ls-transition), background-color var(--ls-transition);
    z-index: 1;
}

/* When second button is active, slide right */
.mode-switcher[data-active="online"] .mode-switcher__bg {
    transform: translateX(56px);
}

.mode-switcher__btn {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 40px;
    border-radius: 999px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--ls-switcher-text);
    transition: color var(--ls-transition);
}

.mode-switcher__btn--active {
    color: var(--ls-switcher-active-text);
}

.mode-switcher__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Labels hidden visually (Figma: visible=false), kept for screen readers */
.mode-switcher__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Hamburger */
.site-navigation__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    gap: 5px;
    cursor: pointer;
    z-index: 1010;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--ls-text-nav-item);
    border-radius: 2px;
    transition: transform var(--ls-transition), opacity var(--ls-transition), background-color var(--ls-transition);
}

.site-navigation__hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-navigation__hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.site-navigation__hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Icons Container — Figma: 628×48, flex, gap 24, align right/center */
.site-navigation__menu-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

/* Navigation Container — Figma: 400×41, flex, gap 16 */
.site-navigation__menu {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Navigation Item — Figma: pad 8/12, DM Sans 18px/500, #111 */
.site-navigation__menu .menu-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: var(--ls-font-size-base);
    font-weight: var(--ls-font-weight-medium);
    color: var(--ls-text-nav-item);
    text-decoration: none;
    border-radius: 0;
    transition: color var(--ls-transition);
    white-space: nowrap;
    line-height: 1.4;
}

.site-navigation__menu .menu-item a:hover,
.site-navigation__menu .menu-item.current-menu-item a {
    color: var(--ls-text-nav-item-hover);
}

/* ==========================================================================
   3. Buttons — Figma: 204×48, pad 12/24, r:99999, gap 8
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--ls-font-family);
    font-size: var(--ls-font-size-base);
    font-weight: var(--ls-font-weight-medium);
    text-decoration: none;
    border-radius: var(--ls-radius-pill);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--ls-transition), box-shadow var(--ls-transition);
    line-height: 1.4;
    height: 48px;
}

.btn__text {
    line-height: 1.4;
}

.btn__icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    transition: transform var(--ls-transition);
}

.btn:hover .btn__icon {
    transform: translateX(3px);
}

/* Primary: Figma #032A49 (light) / #C2E1FF (dark) */
.btn--primary {
    background-color: var(--ls-cta-bg);
    color: var(--ls-cta-text);
    transition: background-color var(--ls-transition), color var(--ls-transition), box-shadow var(--ls-transition);
}

.btn--primary:hover {
    background-color: #04375e;
    box-shadow: 0 4px 16px rgba(3, 42, 73, 0.25);
}

/* Dark: tło przycisku jest jasne (#C2E1FF) z ciemnym tekstem — hover musi
   zostać jasny, inaczej tekst znika (uwaga z Figmy, 5886-4905). */
[data-theme="dark"] .btn--primary:hover {
    background-color: #A9D3FA;
    color: #051929;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Secondary: light #D2E5F6/tekst #032A49 · dark (Figma 5886-4905) #205580/tekst #F7FCFF */
.btn--secondary {
    background-color: var(--ls-cta-secondary-bg);
    color: var(--ls-cta-secondary-text);
    transition: background-color var(--ls-transition), color var(--ls-transition), box-shadow var(--ls-transition);
}

.btn--secondary:hover {
    background-color: #c0d8ec;
    box-shadow: 0 4px 16px rgba(210, 229, 246, 0.5);
}

[data-theme="dark"] .btn--secondary:hover {
    background-color: #2A6696;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Large button (hero) */
.btn--lg {
    padding: 14px 28px;
}

/* ==========================================================================
   4. Hero Section — Figma: 1440×632 outer, 1408×600 inner card
   Gradient: #F7FCFF → #D2E5F6 (top → bottom-left)
   Inner: pad 50/96 (Figma 5886-4068), gap 48, r:16
   ========================================================================== */

.hero {
    padding: 16px 0 0 0;
    overflow: hidden;
    isolation: isolate;
    contain: layout style paint;
}

.hero__container {
    position: relative;
    max-width: none;
    margin: 0;
    padding: 50px 96px;
    border-radius: 16px;
    /* Figma 5886-4068: #F7FCFF → #D2E5F6, od prawego górnego do lewego dolnego rogu */
    background: linear-gradient(245deg, var(--ls-hero-gradient-start) 0%, var(--ls-hero-gradient-end) 100%);
    overflow: hidden;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Figma: 1px stroke */
    border: 1px solid var(--ls-hero-border);
    transition: background var(--ls-transition), border-color var(--ls-transition);
    will-change: transform;
}

/* Dekoracyjne tło — niebieski gradient kołowy */
/* Figma: 760×760, absolutne, przesunięte w prawo */
.hero__bg-circle {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%) translateZ(0);
    width: 760px;
    height: 760px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(210, 229, 246, 0.6) 0%,
        rgba(247, 252, 255, 0.3) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

/* Dark (Figma 5886-4910/4912/4913): ciemny okrąg #123756 z rdzeniem #011D33
   i rozmyte elipsy #173851 / #032A49 — bez jasnej plamy za zdjęciem. */
[data-theme="dark"] .hero__bg-circle {
    background: radial-gradient(
        circle,
        rgba(1, 29, 51, 0.9) 0%,
        rgba(18, 55, 86, 0.75) 50%,
        transparent 70%
    );
}

[data-theme="dark"] .hero__blob--left {
    background: #173851;
}

[data-theme="dark"] .hero__blob--right {
    background: #032A49;
}

/* Dekoracyjna fala SVG */
/* FALA — real Figma wave as a CSS background. Light = blue contours,
   dark = light contours (both with baked 0.3 opacity). Desktop placement;
   mobile overrides position/size below. */
.hero__bg-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background-repeat: no-repeat;
    background-image: url('../images/hero-wave-light.svg');
    background-position: 0% 57%;
    background-size: 107% auto;
}

[data-theme="dark"] .hero__bg-wave {
    background-image: url('../images/hero-wave-dark.svg');
}

/* Dekoracyjne rozmyte elipsy — Figma: białe, 50% opacity, blur 80px */
.hero__blob {
    position: absolute;
    border-radius: 50%;
    background: var(--ls-hero-blob-color);
    filter: blur(80px);
    pointer-events: none;
    z-index: 3;
    will-change: filter;
    transform: translateZ(0);
}

/* Duża elipsa — Figma: offset(-307, -369), ~1177×1154 */
.hero__blob--left {
    width: 1177px;
    height: 1154px;
    top: -62%;
    left: -22%;
}

/* Mniejsza elipsa — Figma: offset(870, 202), ~862×864 */
.hero__blob--right {
    width: 862px;
    height: 864px;
    top: 34%;
    right: -10%;
}

/* Treść hero — Figma: HORIZONTAL, gap 48, aligned center */
.hero__content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    gap: 48px;
    height: 100%;
}

/* Tekst — Figma: 464×349, VERTICAL */
.hero__text {
    max-width: 464px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Heading — Figma: DM Sans 42px/w500, line-height 50.4px, letter-spacing -0.21 */
.hero__heading {
    font-family: var(--ls-font-family);
    font-size: 42px;
    font-weight: 500;
    line-height: 50.4px;
    letter-spacing: -0.21px;
    color: var(--ls-text-heading);
    margin: 0 0 16px 0;
}

/* Figma 5886-4076: ozdobne jest tylko „przyczynę." — Gambetta Medium Italic */
.hero__heading em {
    font-family: 'Gambetta', var(--ls-font-family);
    font-style: italic;
    font-weight: 500;
}

/* Subheading — Figma 5886-4077: DM Sans 16/500, lh 22.4, ls 0.32, #000 60% (dark #D2E5F6), 460 px */
.hero__subheading {
    font-family: var(--ls-font-family);
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    line-height: 22.4px;
    letter-spacing: 0;
    margin: 0 0 32px 0;
    max-width: 470px;
}

[data-theme="dark"] .hero__subheading {
    color: #D2E5F6;
}

/* Przyciski hero — Figma: 48 px, pad 12/24, tekst 16/500 */
.hero .hero__buttons .btn {
    padding: 12px 24px;
    font-size: 16px;
    letter-spacing: 0.32px;
}

/* Buttons — Figma: HORIZONTAL, gap 16, row */
.hero__buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

/* Zdjęcie osoby — Figma: ABSOLUTE, 529×789, starts from top, overflows bottom (clipped) */
.hero__image {
    position: absolute;
    right: 14.1%;
    top: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: flex-start;
}

.hero__person {
    width: 529px;
    height: auto;
    object-fit: contain;
    object-position: top;
}

/* Mobile-bottom wrapper — on desktop it's just a pass-through for absolute image */
.hero__mobile-bottom {
    display: contents; /* no layout impact on desktop */
}

/* Stats — Figma desktop: horizontal row, width 464, justify-between, below buttons.
   (Mobile re-lays these into the bottom band; ≤992 tablet hides them.) */
.hero__stats {
    display: flex;
    flex-direction: row;
    width: 464px;
    justify-content: space-between;
    /* Lift above decorative wave (z2) + blob (z3); bez tego biały blob
       (rgba(255,255,255,.5) blur) rozmywał tekst statystyk do szarości. */
    position: relative;
    z-index: 10;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Figma: value DM Sans 20/500; label Gambetta italic 16. Colors adapt to theme. */
.hero__stat-value {
    font-family: var(--ls-font-family);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 0.1px;
    color: var(--ls-hero-stat);
}

.hero__stat-label {
    font-family: 'Gambetta', var(--ls-font-family);
    font-size: 16px;
    font-weight: 500;
    font-style: italic;
    line-height: 22.4px;
    letter-spacing: 0.32px;
    color: var(--ls-hero-stat);
}

/* Zespół — Figma 5886-4067: Sara, Dominik (na wierzchu) i Agata w karcie
   1408×600. Grupa = widoczny kadr 656×542: od lewej krawędzi Sary do prawej
   krawędzi Agaty (67 px od prawej krawędzi karty), od czubka głowy Dominika
   (58 px od góry) do dolnej krawędzi karty. Zakotwiczona u dołu, więc przy
   węższej karcie postaci maleją, ale zawsze sięgają krawędzi. Pozycje w %
   grupy; --trio-h = wysokość grupy w px projektu. */
.hero__image--trio {
    --trio-h: 542;
    right: 4.7%;
    top: auto;
    bottom: 0;
    display: block;
    width: 46.7%;
    aspect-ratio: 656 / var(--trio-h);
    pointer-events: none;
}

.hero__image--trio .hero__person {
    position: absolute;
    top: 0;
    height: auto;
    max-width: none;
    max-height: none;
}

.hero__image--trio .hero__person--sara {
    left: 0;
    top: calc(5300% / var(--trio-h));
    width: 46.6%;
    z-index: 2;
}

.hero__image--trio .hero__person--dominik {
    left: 24.2%;
    width: 51.1%;
    z-index: 3;
}

.hero__image--trio .hero__person--agata {
    left: 58.4%;
    top: calc(2850% / var(--trio-h));
    width: 41.6%;
    z-index: 1;
}

/* Podpis zespołu — Figma 6023-16494 (tag): 40 px od prawej i 32 px od dołu
   karty, pad 4/8, obrys #E6E6E6, DM Sans 14/500 #032A49 (dark: biały na granacie). */
.hero__team-tag {
    position: absolute;
    right: 39px;
    bottom: 31px;
    z-index: 15;
    margin: 0;
    padding: 3px 7px;
    border: 1px solid #E6E6E6;
    border-radius: var(--ls-radius-pill);
    background: #FFFFFF;
    font-family: var(--ls-font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 19.6px;
    color: var(--ls-hero-badge-name);
    white-space: nowrap;
    transition: background var(--ls-transition), border-color var(--ls-transition), color var(--ls-transition);
}

[data-theme="dark"] .hero__team-tag {
    border-color: #5B7084;
    background: #032A49;
}

/* Desktop (>992px): center the heading-group + stats as one left column with
   gap 48 (Figma). Without this the full-height text block leaves no room for
   the stats row that now sits below the buttons. */
@media (min-width: 993px) {
    .hero__container {
        gap: 48px;
    }

    .hero__content {
        height: auto;
    }

    .hero__text {
        height: auto;
    }

    /* Figma 5886-4079: kolumny dopasowane do treści, rozłożone justify-between
       w wierszu 464 px; podpisy w jednej linii. */
    .hero__stat-label {
        white-space: nowrap;
    }
}

/* ==========================================================================
   5. Categories — Figma: 1440×262, pad 50, gap 48
   Tile: 124×162, VERTICAL, gap 16, center/center
   Circle: 124×124, bg #FFF, r:50%, icon 64×64
   Label: DM Sans 16px/w500, ls 0.32, lh 22.4, #032A49
   ========================================================================== */

.categories__container {
    max-width: none;
    margin: 0;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 48px;
    flex-wrap: wrap;
}

.categories__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.categories__icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background-color: var(--ls-cat-circle-bg);
    border: 1px solid var(--ls-cat-circle-border);
    flex-shrink: 0;
    transition: background-color var(--ls-transition), border-color var(--ls-transition);
}

.categories__icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition: filter var(--ls-transition);
}

[data-theme="dark"] .categories__icon {
    filter: invert(0.85) sepia(0.15) hue-rotate(175deg) brightness(1.3) saturate(0.5);
}

/* Falka logo (logo-small.svg) przy nagłówkach sekcji — ciemny #051929 →
   biały w trybie ciemnym (Figma 5436-6826: vector #ffffff). */
/* Dark: jasne koło (#C2E1FF) z ciemną falką przy podpisie wyróżnionego filmu (Figma 5886-4992) */
[data-theme="dark"] .latest-posts__featured-logo-wave {
    filter: brightness(0);
}

[data-theme="dark"] .latest-posts__title-icon,
[data-theme="dark"] .blog-articles__title-icon,
[data-theme="dark"] .wiedza-videos__title-icon {
    filter: brightness(0) invert(1);
}

.categories__label {
    font-family: var(--ls-font-family);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.32px;
    line-height: 22.4px;
    color: var(--ls-cat-label);
    text-align: center;
    white-space: nowrap;
}

/* ==========================================================================
   6. Latest Posts — Figma: 1440×638, pad 50, gap 48, HORIZONTAL
   Sidebar: 482px, VERTICAL, gap 32
   Featured: 810px, VERTICAL, gap 24
   ========================================================================== */

.latest-posts {
    background-color: var(--ls-bg-surface);
    transition: background-color var(--ls-transition);
}

.latest-posts__container {
    max-width: none;
    margin: 0;
    padding: 50px 0;
    display: flex;
    gap: 48px;
    align-items: stretch;
}

/* --- Lewa kolumna: sidebar --- */
.latest-posts__sidebar {
    width: 482px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Nagłówek */
.latest-posts__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.latest-posts__title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Figma 5886-4104: DM Sans 28/500, ls -0.14, lh 39.2, #051929 */
.latest-posts__title {
    font-family: var(--ls-font-family);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.14px;
    line-height: 39.2px;
    color: var(--ls-text-heading);
    margin: 0;
}

.latest-posts__title-icon {
    width: 44px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

/* --- Lista małych artykułów --- */
.latest-posts__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

/* Mały artykuł — Figma: HORIZONTAL, gap 16, border-bottom #e6e6e6 */
.latest-posts__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ls-card-border);
    transition: opacity var(--ls-transition);
}

.latest-posts__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.latest-posts__item:hover {
    opacity: 0.8;
}

/* Miniaturka — Figma: 168×94, pad 4, r:8, border #e6e6e6 */
.latest-posts__item-image {
    position: relative;
    width: 168px;
    height: 94px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ls-card-border);
}

.latest-posts__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ikona play na miniaturze — Figma: koło 36, czarne 30%, ikona 20 */
.latest-posts__item-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.latest-posts__item-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8edf2 0%, #d2e5f6 100%);
}

/* Badge czasu — Figma 5886-4114: prawy dolny róg, pad 4/8, r:6, czarne 30%, tekst biały 16/500 */
.latest-posts__time-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: var(--ls-font-family);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.32px;
    line-height: 22.4px;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Tekst artykułu — Figma: VERTICAL, gap 8 */
.latest-posts__item-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* Tytuł — Figma: DM Sans 18/500, ls 0.09, lh 25.2, #051929 */
.latest-posts__item-title {
    font-family: var(--ls-font-family);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.09px;
    line-height: 25.2px;
    color: var(--ls-card-title);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta: kategoria + data — Figma: 14/500, ls 0.07, lh 19.6, #666 */
.latest-posts__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ls-font-family);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.07px;
    line-height: 19.6px;
    color: var(--ls-text-muted);
}

.latest-posts__meta-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: currentColor;
}

/* Link "Zobacz wszystkie" — Figma: 18/500, underline, gap 8 */
.latest-posts__all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ls-text-heading);
    transition: opacity var(--ls-transition);
}

.latest-posts__all-link:hover {
    opacity: 0.7;
}

.latest-posts__all-text {
    font-family: var(--ls-font-family);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.09px;
    line-height: 25.2px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.latest-posts__all-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* --- Prawa kolumna: wyróżniony artykuł --- */
/* Figma: 810px, VERTICAL, gap 24 */
.latest-posts__featured {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: opacity var(--ls-transition);
    /* Button reset */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.latest-posts__featured:hover {
    opacity: 0.9;
}

/* Duże zdjęcie — Figma: fill width, 450px h, pad 10, r:16, border #e6e6e6 */
.latest-posts__featured-image {
    position: relative;
    width: 100%;
    aspect-ratio: 810 / 450;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--ls-card-border);
}

.latest-posts__featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-posts__featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8edf2 0%, #d2e5f6 100%);
}

.latest-posts__time-badge--featured {
    bottom: 10px;
    right: 10px;
    left: auto;
}

/* Badge play na dużym filmiku — Figma 5518-5573: 64×64 circle, play icon */
.latest-posts__cat-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    transition: transform var(--ls-transition), opacity var(--ls-transition);
    opacity: 0.9;
}

.latest-posts__cat-play-badge svg {
    display: block;
}

.latest-posts__featured:hover .latest-posts__cat-play-badge {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

/* Tekst wyróżnionego — Figma: HORIZONTAL, gap 16, play icon + CTA text */
.latest-posts__featured-text {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Ikona logo w kółku — Figma 5436-4504: 40×40, #032A49, biała fala */
.latest-posts__featured-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background-color: var(--ls-cta-bg);
    transition: background-color var(--ls-transition);
}

.latest-posts__featured-logo-wave {
    filter: brightness(0) invert(1);
}

/* CTA tekst — Figma: DM Sans 24/500, ls -0.12, lh 36, #051929 */
.latest-posts__featured-cta {
    font-family: var(--ls-font-family);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.12px;
    line-height: 36px;
    color: var(--ls-text-heading);
}

/* ==========================================================================
   7. Blog Articles — Figma: 1440×779, VERTICAL, pad 50, gap 32
   Row: HORIZONTAL, gap 48, 3 columns × 414.7px
   Card featured: thumbnail 278px h, pad 16, r:8 | text gap 8
   Card compact: text-only, border-bottom #e6e6e6
   ========================================================================== */

.blog-articles {
    background-color: var(--ls-bg-surface);
    transition: background-color var(--ls-transition);
}

.blog-articles__container {
    max-width: none;
    margin: 0;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Nagłówek — Figma: spaced apart, row */
.blog-articles__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-articles__title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Figma: DM Sans 28/500, #051929 */
.blog-articles__title {
    font-family: var(--ls-font-family);
    font-size: 28px;
    font-weight: 500;
    color: var(--ls-text-heading);
    margin: 0;
}

.blog-articles__title-icon {
    width: 44px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Link "Zobacz wszystkie" — Figma: 18/500, underline, gap 8 */
.blog-articles__all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ls-text-heading);
    transition: opacity var(--ls-transition);
    flex-shrink: 0;
}

.blog-articles__all-link:hover {
    opacity: 0.7;
}

.blog-articles__all-text {
    font-family: var(--ls-font-family);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.09px;
    line-height: 25.2px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-articles__all-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Siatka 3 kolumny — Figma: HORIZONTAL, gap 48 */
.blog-articles__row {
    display: flex;
    gap: 48px;
}

/* Kolumna — Figma: VERTICAL, gap 16 */
.blog-articles__column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Karta artykułu (wspólne) --- */
.blog-articles__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    transition: opacity var(--ls-transition);
}

.blog-articles__card:hover {
    opacity: 0.8;
}

/* Karta featured — z miniaturką */
.blog-articles__card--featured {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ls-card-border);
}

/* Karta compact — bez miniaturki */
.blog-articles__card--compact {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ls-card-border);
}

.blog-articles__card--compact:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Miniaturka — Figma: fill × 278px, pad 16, r:8 */
.blog-articles__thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 414.7 / 278;
    border-radius: 8px;
    overflow: hidden;
}

.blog-articles__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-articles__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8edf2 0%, #d2e5f6 100%);
}

/* Badge kategorii — Figma: 42×42, circle, white bg, border #e6e6e6 */
.blog-articles__cat-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--ls-card-bg);
    border: 1px solid var(--ls-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ls-primary);
}

.blog-articles__cat-badge svg {
    width: 20px;
    height: 20px;
}

/* Tekst — Figma: VERTICAL, gap 8 */
.blog-articles__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Meta — Figma: 14/500, ls 0.07, lh 19.6, #666 */
.blog-articles__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ls-font-family);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.07px;
    line-height: 19.6px;
    color: var(--ls-text-muted);
}

.blog-articles__meta-dot {
    font-size: 8px;
    line-height: 1;
}

/* Tytuł — Figma: DM Sans 18/500, ls 0.09, lh 25.2, #111 */
.blog-articles__card-title {
    font-family: var(--ls-font-family);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.09px;
    line-height: 25.2px;
    color: var(--ls-card-title);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dark mode — article badges + thumbnails (Figma 5436-6831) */
[data-theme="dark"] .blog-articles__cat-badge {
    color: #ffffff;
}
[data-theme="dark"] .blog-articles__thumbnail {
    border-color: #0d2942;
}

/* ==========================================================================
   7b. Banner CTA — Figma 5287-1482
   Card: 1340×342, bg #000 + IMAGE (FILL), r:16, pad 64/80
   Content centered vertically & horizontally
   ========================================================================== */

#banner-cta {
    padding: 0 !important;
    margin: 32px 0 !important;
}

#banner-cta .banner-cta__card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 342px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#banner-cta .banner-cta__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    border-radius: 16px;
}

#banner-cta .banner-cta__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

#banner-cta .banner-cta__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 64px 80px;
    width: 100%;
    max-width: none !important;
    box-sizing: border-box;
}

#banner-cta .banner-cta__heading {
    font-family: var(--ls-font-family);
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.18px;
    color: #fff;
    margin: 0;
    text-align: center;
    max-width: 437px;
}

#banner-cta .banner-cta__heading em {
    font-family: 'Gambetta', var(--ls-font-family);
    font-size: 40px;
    font-weight: 500;
    font-style: italic;
    letter-spacing: -0.2px;
    line-height: 1;
}

#banner-cta .banner-cta__paragraph {
    font-family: var(--ls-font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.08px;
    color: #fff;
    margin: 0;
    opacity: 0.9;
    max-width: 404px;
    text-align: center;
}

#banner-cta .banner-cta__button {
    align-self: center;
}

/* ==========================================================================
   8. Responsywność
   ========================================================================== */

/* Tablet */
@media (max-width: 1200px) {
    .top-bar__inner {
        padding: 10px 32px;
    }

    .site-navigation__inner {
        padding: 16px 32px;
    }

    /* Ciaśniejsze menu, żeby do 1101px zmieściło się obok logo bez wchodzenia w padding */
    .site-navigation__menu-container {
        gap: 16px;
    }

    .site-navigation__menu {
        gap: 8px;
    }

    .site-navigation__menu .menu-item a {
        padding: 8px 10px;
    }

    .site-main {
        padding-left: 32px;
        padding-right: 32px;
    }

    .site-footer {
        padding-left: 32px;
        padding-right: 32px;
    }

    .site-footer__brand {
        flex: 0 0 auto;
        width: 51%;
    }

    /* Kolumny linków stopki: mniejszy odstęp i zawijanie zamiast wystawania poza ekran */
    .site-footer__nav {
        flex: 1 1 0;
        min-width: 0;
        flex-wrap: wrap;
        align-content: flex-start;
        gap: 24px 48px;
    }

    .hero__container {
        padding: 40px 60px;
    }

    .hero__image {
        right: 5%;
    }

    .hero__person {
        width: 400px;
    }

    .hero__image--trio {
        right: 2%;
        width: 46%;
    }

    .latest-posts__sidebar {
        width: 380px;
    }

    .blog-articles__row {
        gap: 32px;
    }

    #banner-cta .banner-cta__content {
        padding: 48px 60px;
    }
}

/* Nawigacja: hamburger poniżej 1100px — logo + przełącznik + menu + CTA nie mieszczą się w jednym rzędzie.
   Przełącznik motywu zostaje w pasku; na mobile (≤768) przenosi się do rozwijanego menu. */
@media (max-width: 1100px) {
    .site-navigation__inner {
        position: relative;
    }

    .site-navigation__hamburger {
        display: flex;
    }

    .site-navigation__menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--ls-bg-nav);
        flex-direction: column;
        padding: 24px 32px;
        gap: 16px;
        box-shadow: 0 8px 32px rgba(3, 42, 73, 0.1);
        border-top: 1px solid rgba(3, 42, 73, 0.06);
        z-index: 1000;
    }

    .site-navigation__menu-container.is-open {
        display: flex;
    }

    .site-navigation__menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    /* Left-align menu items (Figma) */
    .site-navigation__menu .menu-item a {
        padding: 16px 0;
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        font-size: 20px;
        font-weight: 500;
    }

    .site-navigation__cta {
        margin-top: 8px;
    }
}

/* Tablet mały */
@media (max-width: 992px) {
    .hero__container {
        height: auto;
        min-height: 500px;
        padding: 40px 40px 0;
    }

    .hero__content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .hero__text {
        max-width: 100%;
    }

    .hero__subheading {
        max-width: 100%;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__image {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        justify-content: center;
        height: auto;
    }

    .hero__person {
        width: 350px;
        height: auto;
        max-height: 400px;
    }

    .hero__bg-circle {
        right: 50%;
        transform: translate(50%, -50%);
    }

    .hero__blob {
        display: none;
    }

    .hero__image--trio {
        bottom: auto;
        align-self: center;
        width: min(540px, 100%);
        margin-top: 24px;
    }

    .hero__team-tag {
        right: 24px;
        bottom: 24px;
    }

    .hero__stats {
        display: none;
    }

    .categories__container {
        gap: 24px;
    }

    .categories__icon-circle {
        width: 100px;
        height: 100px;
    }

    .categories__icon {
        width: 50px;
        height: 50px;
    }

    .categories__label {
        font-size: 14px;
        white-space: normal;
    }

    .latest-posts__container {
        flex-direction: column;
    }

    .latest-posts__sidebar {
        width: 100%;
    }

    .latest-posts__featured {
        order: -1;
    }

    .blog-articles__row {
        gap: 24px;
    }

    .blog-articles__column:nth-child(3) {
        display: none;
    }

    .blog-articles__title {
        font-size: 24px;
    }

    #banner-cta .banner-cta__content {
        padding: 40px;
    }

    #banner-cta .banner-cta__heading {
        font-size: 28px;
    }

    #banner-cta .banner-cta__heading em {
        font-size: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Top bar: horizontal scroll, no wrapping */
    .top-bar__inner {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding: 8px 16px;
        gap: 10px;
    }

    .top-bar__inner::-webkit-scrollbar {
        display: none;
    }

    .top-bar__text {
        white-space: nowrap;
        font-size: 14px;
    }

    .site-navigation__inner {
        padding: 12px 16px;
        min-height: 64px;
    }

    /* Hide desktop mode-switcher in navbar (will show inside mobile menu) */
    .site-navigation__logo-container .mode-switcher {
        display: none;
    }

    /* Hamburger + rozwijane menu: patrz @media (max-width: 1100px) */
    .site-navigation__menu-container {
        padding: 24px;
    }

    /* Mode-switcher inside mobile menu */
    .site-navigation__menu-container .mode-switcher--mobile {
        display: flex;
        align-self: flex-start;
        margin-bottom: 8px;
    }

    .site-navigation__cta {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Hero — Figma mobile 385×719, gradient linear bg */
    .hero {
        padding: 0;
    }

    .hero__container {
        height: auto;
        min-height: auto;
        padding: 64px 24px 0;
        overflow: hidden;
    }

    .hero__content {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 24px;
    }

    .hero__text {
        max-width: 100%;
        height: auto;
    }

    /* Figma: DM Sans 28px/500, lh=39.2, ls=-0.14, override Gambetta italic */
    .hero__heading {
        font-size: 28px;
        line-height: 39.2px;
        letter-spacing: -0.14px;
        margin-bottom: 16px;
    }

    /* Figma: DM Sans 16px/500, lh=22.4, ls=0.32, fill=#000@0.6 */
    .hero__subheading {
        font-size: 16px;
        line-height: 22.4px;
        letter-spacing: 0.32px;
        max-width: 100%;
        margin-bottom: 24px;
        color: rgba(0, 0, 0, 0.6);
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero__buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 18px;
    }

    .hero__bg-circle {
        width: 500px;
        height: 500px;
        top: -60px;
        right: -150px;
        left: auto;
        transform: none;
    }

    /* FALA: mobile placement — bleeds through the lower band behind stats/person.
       Image (light/dark) comes from the base rule; here we just reposition. */
    .hero__bg-wave {
        background-position: 40% 120%;
        background-size: 200% auto;
    }

    .hero__blob {
        display: none;
    }

    /* ─── Mobile bottom: Figma free-position layout ─── */
    /* Frame [337×347] — no auto-layout, children absolutely positioned */
    .hero__mobile-bottom {
        display: block;
        position: relative;
        margin-top: 16px;
        height: 350px;
        /* No overflow clip here: the person bleeds past this box's right edge
           (which is inset by the container's 24px padding) and is clipped at
           the actual card edge by .hero__container's overflow:hidden instead. */
    }

    /* Stats [119×180] at (0, 37) — left column */
    .hero__stats {
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: absolute;
        left: 0;
        top: 37px;
        z-index: 12;
        width: 45%;
    }

    .hero__stat {
        gap: 0;
    }

    /* Person: glued to the card's right edge (Figma 5484:10136). The PNG has
       wide transparent margins (~20% L/R), so the image bleeds well past the
       right edge — the body's right side is clipped flush by the card, with no
       gap. Anchored from the top so the head sits near this section's top and
       the legs are cropped at the bottom. */
    .hero__image {
        position: absolute;
        right: -35vw;
        top: -40px;
        left: auto;
        bottom: auto;
        width: clamp(320px, 92vw, 420px);
        height: auto;
        z-index: 10;
        pointer-events: none;
        display: block;
    }

    .hero__person {
        display: block;
        width: 100%;
        height: auto;
        max-width: none;
    }

    /* Zespół (≤768): statystyki w rzędzie, pod nimi trzy postaci na całą
       szerokość karty (do 480 px), przycięte jej dolną krawędzią; podpis
       zespołu w prawym dolnym rogu karty (static = pozycjonowany względem karty). */
    .hero__mobile-bottom:has(.hero__image--trio) {
        position: static;
        display: flex;
        flex-direction: column;
        height: auto;
        margin-top: 24px;
    }

    .hero__mobile-bottom:has(.hero__image--trio) .hero__stats {
        position: static;
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .hero__mobile-bottom:has(.hero__image--trio) .hero__stat-label {
        font-size: 14px;
        line-height: 19.6px;
    }

    .hero__mobile-bottom:has(.hero__image--trio) .hero__stat-value {
        white-space: nowrap;
    }

    .hero__image--trio {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        align-self: center;
        width: min(100% + 48px, 480px);
        margin-top: 24px;
    }

    .hero__team-tag {
        right: 16px;
        bottom: 16px;
    }

    /* ─── Dark mode — Figma: night mobile (5484:10136) ─── */
    /* Subheading → błękit/50 (stats & wave already adapt via var/base image). */
    [data-theme="dark"] .hero__subheading {
        color: #d2e5f6;
    }

    /* Glow: light halo → subtle blue (#123756) matching the Figma blob. */
    [data-theme="dark"] .hero__bg-circle {
        background: radial-gradient(
            circle,
            rgba(18, 55, 86, 0.55) 0%,
            rgba(18, 55, 86, 0.22) 50%,
            transparent 70%
        );
    }

    /* Categories — horizontal scroll on mobile */
    .categories {
        overflow: hidden;
    }

    .categories__container {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 32px 16px;
        margin: 0 -16px;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .categories__container::-webkit-scrollbar {
        display: none;
    }

    .categories__tile {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-width: 90px;
    }

    .categories__icon-circle {
        width: 72px;
        height: 72px;
    }

    .categories__icon {
        width: 36px;
        height: 36px;
    }

    .categories__label {
        font-size: 12px;
        line-height: 1.3;
        white-space: nowrap;
    }

    .site-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Footer */
    .site-footer {
        margin-top: 40px;
    }

    .site-footer__inner {
        padding: 40px 24px;
        gap: 40px;
    }

    .site-footer__top {
        flex-direction: column;
        gap: 40px;
    }

    .site-footer__brand {
        width: 100%;
        max-width: none;
        gap: 24px;
    }

    .site-footer__description {
        font-size: 16px;
    }

    /* Navigation: 2-column grid (Figma) */
    .site-footer__nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        margin-left: 0;
    }

    .site-footer__col {
        display: contents;
    }

    .site-footer__menu {
        display: contents;
    }

    .site-footer__menu .menu-item {
        padding: 14px 0;
    }

    .site-footer__menu .menu-item a {
        padding: 0;
        font-size: 16px;
    }

    /* Bottom: social centered, copyright centered */
    .site-footer__bottom {
        flex-direction: column-reverse;
        gap: 24px;
        text-align: center;
        align-items: center;
    }

    .site-footer__social {
        gap: 24px;
    }

    .site-footer__social-link svg {
        width: 24px;
        height: 24px;
    }

    .site-footer__copyright {
        font-size: 14px;
    }

    .hero__container {
        padding: 32px 24px 0;
        height: auto;
        min-height: auto;
    }

    .hero__heading {
        font-size: 24px;
        line-height: 34px;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    /* Latest posts */
    .latest-posts__container {
        padding: 32px 0;
        gap: 24px;
    }

    .latest-posts__sidebar {
        gap: 24px;
    }

    .latest-posts__item-image {
        width: 120px;
        height: 68px;
    }

    .latest-posts__time-badge {
        font-size: 12px;
        padding: 2px 6px;
    }

    .latest-posts__item-title {
        font-size: 16px;
        line-height: 22px;
    }

    .latest-posts__featured-cta {
        font-size: 20px;
        line-height: 28px;
    }

    .latest-posts__title {
        font-size: 20px;
        line-height: 28px;
    }

    /* Blog articles */
    .blog-articles__container {
        padding: 32px 0;
        gap: 24px;
    }

    .blog-articles__row {
        flex-direction: column;
        gap: 24px;
    }

    .blog-articles__column:nth-child(3) {
        display: flex;
    }

    .blog-articles__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .blog-articles__title {
        font-size: 22px;
    }

    .blog-articles__card-title {
        font-size: 16px;
        line-height: 22px;
    }

    /* Banner CTA */
    #banner-cta .banner-cta__card {
        min-height: 280px;
    }

    #banner-cta .banner-cta__content {
        padding: 32px 24px;
        max-width: 100%;
    }

    #banner-cta .banner-cta__heading {
        font-size: 24px;
    }

    #banner-cta .banner-cta__heading em {
        font-size: 26px;
    }

    #banner-cta .banner-cta__paragraph {
        font-size: 14px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .site-navigation__logo img {
        height: 36px;
    }

    .latest-posts__item-image {
        width: 100px;
        height: 56px;
    }
}

/* ==========================================================================
   LIGHTBOX VIDEO POPUP
   ========================================================================== */

.ls-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: auto !important;
}

.ls-lightbox--active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.ls-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ls-lightbox__content {
    position: relative;
    width: 90vw;
    max-width: 960px;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ls-lightbox--active .ls-lightbox__content {
    transform: scale(1);
}

.ls-lightbox__close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.ls-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.ls-lightbox__player {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.ls-lightbox__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .ls-lightbox__content {
        width: 95vw;
    }

    .ls-lightbox__close {
        top: -44px;
        right: 4px;
        width: 36px;
        height: 36px;
    }

    .ls-lightbox__player {
        border-radius: 12px;
    }
}

/* ==========================================================================
   10. Wiedza Page — Figma 5516-3843
   10a. Wiedza Articles  — 5518-4794: pad 50, gap 32; row 3×3 kompaktowe karty
   10b. Najnowsze odcinki — 5518-4613: pad 50, gap 24; siatka 4 kart wideo
   ========================================================================== */

/* ─── 10a. Wiedza Articles ───────────────────────────────────────────────── */
.wiedza-articles {
    background-color: var(--ls-bg-surface);
    transition: background-color var(--ls-transition);
}

.wiedza-articles__container {
    max-width: none;
    margin: 0;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Nagłówek strony — Figma: gap 16, VERTICAL */
.wiedza-articles__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Tytuł „Wiedza" — Figma: DM Sans 42/500, lh 50.4, ls -0.21, #051929 */
.wiedza-articles__title {
    font-family: var(--ls-font-family);
    font-size: 42px;
    font-weight: 500;
    line-height: 50.4px;
    letter-spacing: -0.21px;
    color: var(--ls-text-heading);
    margin: 0;
}

/* Podtytuł — Figma: DM Sans 18/500, lh 25.2, rgba(0,0,0,.6) */
.wiedza-articles__subtitle {
    font-family: var(--ls-font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 25.2px;
    color: var(--ls-text-muted);
    margin: 0;
    max-width: 480px;
}

/* Wiersz 3 kolumn — Figma: HORIZONTAL, gap 48 */
.wiedza-articles__row {
    display: flex;
    gap: 48px;
}

/* Kolumna — 3 karty pionowo, gap 16 */
.wiedza-articles__column {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Kompaktowa karta — Figma: HORIZONTAL, gap 16 */
.wiedza-articles__card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: opacity var(--ls-transition);
}

.wiedza-articles__card:hover {
    opacity: 0.8;
}

/* Miniaturka — Figma: 168×94, r:8 */
.wiedza-articles__thumb {
    position: relative;
    width: 168px;
    height: 94px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ls-card-border);
    background: linear-gradient(135deg, #e8edf2 0%, #d2e5f6 100%);
}

.wiedza-articles__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wiedza-articles__thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

/* Tekst — Figma: VERTICAL, gap 8 */
.wiedza-articles__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* Tytuł karty — Figma: DM Sans 18/500, lh 25.2, #051929 (max 3 linie) */
.wiedza-articles__card-title {
    font-family: var(--ls-font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 25.2px;
    color: var(--ls-text-heading);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta: kategoria • data — Figma: DM Sans 14/500, lh 19.6, #666 (jedna linia) */
.wiedza-articles__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: nowrap;
    font-family: var(--ls-font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 19.6px;
    color: #666;
}

/* Kategoria — przycina się z trzykropkiem, gdy brakuje miejsca */
.wiedza-articles__meta-cat {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Data — zawsze w całości, nie kurczy się */
.wiedza-articles__meta-date {
    flex-shrink: 0;
    white-space: nowrap;
}

.wiedza-articles__meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* Przycisk „Zobacz wszystkie" — Figma: tekst + strzałka, bez tła */
.wiedza-articles__cta {
    display: flex;
}

.wiedza-articles__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ls-font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 25.2px;
    color: var(--ls-text-heading);
    text-decoration: none;
    transition: opacity var(--ls-transition);
}

.wiedza-articles__cta-btn:hover {
    opacity: 0.7;
}

.wiedza-articles__cta-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ─── 10b. Najnowsze odcinki ─────────────────────────────────────────────── */
.wiedza-videos {
    background-color: var(--ls-bg-surface);
    transition: background-color var(--ls-transition);
}

.wiedza-videos__container {
    max-width: none;
    margin: 0;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Nagłówek — Figma: DM Sans 28/500, #051929 + ikona logo */
.wiedza-videos__header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wiedza-videos__title {
    font-family: var(--ls-font-family);
    font-size: 28px;
    font-weight: 500;
    color: var(--ls-text-heading);
    margin: 0;
}

.wiedza-videos__title-icon {
    width: 44px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Siatka — Figma: GRID, 4 kolumny, gap 24 */
.wiedza-videos__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Karta wideo — reset <button> + VERTICAL gap 16 */
.wiedza-videos__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: inherit;
    width: 100%;
}

/* Miniaturka 16:9 — Figma: r:8 */
.wiedza-videos__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 317 / 177;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ls-card-border);
    background: linear-gradient(135deg, #e8edf2 0%, #d2e5f6 100%);
}

.wiedza-videos__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ls-transition);
}

.wiedza-videos__card:hover .wiedza-videos__thumb-img {
    transform: scale(1.04);
}

/* Przycisk play — Figma: 36×36 koło, bg rgba(0,0,0,.3), play 20×20 */
.wiedza-videos__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ls-transition);
}

.wiedza-videos__card:hover .wiedza-videos__play {
    background: rgba(0, 0, 0, 0.5);
}

/* Badge czasu — Figma: prawy dół, 4px inset, r:6, pad 4/8, biały 16/500 */
.wiedza-videos__time {
    position: absolute;
    right: 4px;
    bottom: 4px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-family: var(--ls-font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Tekst — Figma: VERTICAL, gap 8 */
.wiedza-videos__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Tytuł — Figma: DM Sans 18/500, lh 25.2, #051929 (max 2 linie) */
.wiedza-videos__card-title {
    font-family: var(--ls-font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 25.2px;
    color: var(--ls-text-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta — Figma: DM Sans 14/500, lh 19.6, #666 (jedna linia) */
.wiedza-videos__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: nowrap;
    font-family: var(--ls-font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 19.6px;
    color: #666;
}

/* Kategoria — przycina się z trzykropkiem, gdy brakuje miejsca */
.wiedza-videos__meta-cat {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Data — zawsze w całości, nie kurczy się */
.wiedza-videos__meta-date {
    flex-shrink: 0;
    white-space: nowrap;
}

.wiedza-videos__meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* ─── 10. Responsywność ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    /* 3 kolumny × miniatura 168px zostawiają <130px na tekst — data wystawała poza kartę i ekran */
    .wiedza-articles__row {
        flex-wrap: wrap;
        gap: 32px 48px;
    }
    .wiedza-articles__column {
        flex: 1 1 45%;
    }
    .wiedza-videos__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .wiedza-videos__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wiedza-articles__title {
        font-size: 32px;
        line-height: 1.2;
    }
}

@media (max-width: 640px) {
    .wiedza-articles__row {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    .wiedza-articles__column {
        flex: 1 1 100%;
    }
    .wiedza-videos__grid {
        grid-template-columns: 1fr;
    }
    .wiedza-articles__title {
        font-size: 28px;
    }
}

/* ─── 10. Dark mode ──────────────────────────────────────────────────────── */
[data-theme="dark"] .wiedza-articles__subtitle {
    color: #d2e5f6;
}
[data-theme="dark"] .wiedza-articles__meta,
[data-theme="dark"] .wiedza-videos__meta {
    color: #999;
}

/* ==========================================================================
   11. Single Post — pojedynczy wpis bloga
   Czytelna kolumna 800px, typografia prose + powiązane artykuły.
   ========================================================================== */

.single-entry {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 0 8px;
}

/* ─── Nagłówek wpisu ─────────────────────────────────────────────────────── */
.single-entry__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 36px;
}

/* Kategoria — pill w stylu drugorzędnego przycisku */
.single-entry__category {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: var(--ls-radius-pill);
    background: var(--ls-cta-secondary-bg);
    color: var(--ls-cta-secondary-text);
    font-family: var(--ls-font-family);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.28px;
    text-decoration: none;
    transition: opacity var(--ls-transition);
}
.single-entry__category:hover {
    opacity: 0.85;
}

/* Tytuł — DM Sans 42/500 (jak hero/Wiedza) */
.single-entry__title {
    font-family: var(--ls-font-family);
    font-size: 42px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.21px;
    color: var(--ls-text-heading);
    margin: 0;
}
.single-entry__title em {
    font-family: 'Gambetta', var(--ls-font-family);
    font-style: italic;
}

/* Meta — data • czas czytania */
.single-entry__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--ls-font-family);
    font-size: 15px;
    font-weight: 500;
    color: var(--ls-text-muted);
}
.single-entry__meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* ─── Obraz wyróżniający ─────────────────────────────────────────────────── */
.single-entry__featured {
    margin: 0 0 44px;
    border-radius: var(--ls-radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, #e8edf2 0%, #d2e5f6 100%);
}
.single-entry__featured-img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

/* ─── Treść (prose) ──────────────────────────────────────────────────────── */
.single-entry__content {
    font-family: var(--ls-font-family);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ls-text-body);
}
.single-entry__content > *:first-child {
    margin-top: 0;
}
.single-entry__content p,
.single-entry__content ul,
.single-entry__content ol,
.single-entry__content figure,
.single-entry__content blockquote,
.single-entry__content pre,
.single-entry__content table {
    margin: 0 0 1.4em;
}

/* Nagłówki śródtytułowe */
.single-entry__content h2 {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--ls-text-heading);
    margin: 1.9em 0 0.6em;
}
.single-entry__content h3 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ls-text-heading);
    margin: 1.6em 0 0.5em;
}
.single-entry__content h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ls-text-heading);
    margin: 1.5em 0 0.5em;
}

.single-entry__content strong { font-weight: 700; color: var(--ls-text-heading); }
.single-entry__content em { font-style: italic; }

/* Linki */
.single-entry__content a {
    color: var(--ls-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity var(--ls-transition);
}
.single-entry__content a:hover { opacity: 0.7; }

/* Listy */
.single-entry__content ul,
.single-entry__content ol {
    padding-left: 1.5em;
}
.single-entry__content ul { list-style: disc; }
.single-entry__content ol { list-style: decimal; }
.single-entry__content li {
    margin-bottom: 0.5em;
}
.single-entry__content li::marker {
    color: var(--ls-primary);
}

/* Cytat — Gambetta italic, lewa krawędź akcentująca */
.single-entry__content blockquote {
    border-left: 4px solid var(--ls-secondary);
    padding: 6px 0 6px 24px;
    margin-left: 0;
    font-family: 'Gambetta', var(--ls-font-family);
    font-style: italic;
    font-size: 22px;
    line-height: 1.5;
    color: var(--ls-text-heading);
}
.single-entry__content blockquote p:last-child { margin-bottom: 0; }

/* Obrazy / figury */
.single-entry__content img {
    height: auto;
    border-radius: 12px;
}
.single-entry__content figure img { width: 100%; }
.single-entry__content figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--ls-text-muted);
    text-align: center;
}

/* Kod */
.single-entry__content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--ls-accent);
    border: 1px solid var(--ls-card-border);
    border-radius: 6px;
    padding: 2px 6px;
}
.single-entry__content pre {
    background: var(--ls-accent);
    border: 1px solid var(--ls-card-border);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
}
.single-entry__content pre code { background: none; border: none; padding: 0; }

/* Separator + tabela */
.single-entry__content hr {
    border: none;
    border-top: 1px solid var(--ls-card-border);
    margin: 2em 0;
}
.single-entry__content table {
    width: 100%;
    border-collapse: collapse;
}
.single-entry__content th,
.single-entry__content td {
    border: 1px solid var(--ls-card-border);
    padding: 10px 14px;
    text-align: left;
}

/* Wyrównania Gutenberga */
.single-entry__content .aligncenter { margin-left: auto; margin-right: auto; }
.single-entry__content .alignleft  { float: left;  margin: 0 1.4em 1.2em 0; }
.single-entry__content .alignright { float: right; margin: 0 0 1.2em 1.4em; }
@media (min-width: 1100px) {
    .single-entry__content .alignwide {
        margin-left: -100px;
        margin-right: -100px;
        max-width: calc(100% + 200px);
    }
}

/* ─── Stopka wpisu ───────────────────────────────────────────────────────── */
.single-entry__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--ls-card-border);
}
.single-entry__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.single-entry__tag {
    font-family: var(--ls-font-family);
    font-size: 14px;
    font-weight: 500;
    color: var(--ls-text-muted);
    text-decoration: none;
    transition: color var(--ls-transition);
}
.single-entry__tag:hover { color: var(--ls-primary); }

.single-entry__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ls-font-family);
    font-size: 16px;
    font-weight: 500;
    color: var(--ls-text-heading);
    text-decoration: none;
    transition: opacity var(--ls-transition);
}
.single-entry__back:hover { opacity: 0.7; }
.single-entry__back svg { flex-shrink: 0; }

.single-entry__pagination {
    display: flex;
    gap: 8px;
    margin-top: 1.5em;
    font-weight: 500;
}

/* ─── Powiązane artykuły ─────────────────────────────────────────────────── */
.single-entry__related {
    padding: 56px 0 16px;
}
.single-entry__related-title {
    font-family: var(--ls-font-family);
    font-size: 28px;
    font-weight: 500;
    color: var(--ls-text-heading);
    margin: 0 0 28px;
}
.single-entry__related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 48px;
}
.single-entry__related-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: opacity var(--ls-transition);
}
.single-entry__related-card:hover { opacity: 0.8; }
.single-entry__related-thumb {
    position: relative;
    width: 168px;
    height: 94px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ls-card-border);
    background: linear-gradient(135deg, #e8edf2 0%, #d2e5f6 100%);
}
.single-entry__related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.single-entry__related-thumb-ph { display: block; width: 100%; height: 100%; }
.single-entry__related-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.single-entry__related-card-title {
    font-family: var(--ls-font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 25.2px;
    color: var(--ls-text-heading);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.single-entry__related-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: nowrap;
    font-family: var(--ls-font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 19.6px;
    color: #666;
}
.single-entry__related-cat {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.single-entry__related-date { flex-shrink: 0; white-space: nowrap; }
.single-entry__related-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* ─── Responsywność ──────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .single-entry__related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .single-entry { padding-top: 36px; }
    .single-entry__title { font-size: 32px; }
    .single-entry__content { font-size: 17px; }
    .single-entry__content h2 { font-size: 24px; }
    .single-entry__content h3 { font-size: 20px; }
    .single-entry__related-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ─── Dark mode ──────────────────────────────────────────────────────────── */
[data-theme="dark"] .single-entry__content a { color: #c2e1ff; }
[data-theme="dark"] .single-entry__content li::marker { color: #c2e1ff; }
[data-theme="dark"] .single-entry__related-meta { color: #999; }

/* ==========================================================================
   12. Wytyczne SEO (10.2026) — nowe sekcje strony głównej i podstron
   Hero (H2 + trzeci CTA), ikony zaufania, obszary pomocy z nagłówkiem,
   eksperci, treść SEO, wstęp podstron, sekcje treści, linki w stopce.
   ========================================================================== */

:root {
    --ls-trust-accent: #91B4D4;
    --ls-surface-soft: #F7FCFF;
    --ls-surface-border: #D2E5F6;
}

[data-theme="dark"] {
    --ls-trust-accent: #C2E1FF;
    --ls-surface-soft: #0E2A3F;
    --ls-surface-border: #1B3A52;
}

/* ─── Wspólne nagłówki sekcji ─────────────────────────────────────────── */
.ls-section-title {
    font-family: var(--ls-font-family);
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.18px;
    color: var(--ls-text-heading);
    margin: 0;
}

.ls-section-lead {
    font-family: var(--ls-font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ls-text-muted);
    margin: 0;
    max-width: 860px;
}

/* ─── Hero: H2 + trzeci CTA ───────────────────────────────────────────── */
.hero__tagline {
    font-family: 'Gambetta', var(--ls-font-family);
    font-size: 24px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ls-text-heading);
    margin: 0 0 12px 0;
}

/* .hero .hero__text ma max-width: none !important (reset WP), więc H1 trzeba
   zawęzić sam — Figma 5886-4076: 2 linie („…Pomożemy" / „Ci znaleźć przyczynę."),
   odstęp do opisu 16 px. DM Sans z optycznym rozmiarem jest węższy niż w Figmie,
   stąd 540 px zamiast 577 — łamanie wierszy jak w projekcie. */
.hero__heading {
    margin-bottom: 16px;
    max-width: 540px;
}

.hero__tagline {
    max-width: 540px;
}

/* Figma: hero ma 16 px marginesu od krawędzi ekranu (szerzej niż treść strony). */
@media (min-width: 1201px) {
    .hero {
        margin-left: -34px;
        margin-right: -34px;
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .hero {
        margin-left: -16px;
        margin-right: -16px;
    }
}

/* 993–1100: mniejszy zespół przy prawej krawędzi — przy szerszym zasłaniał koniec nagłówka. */
@media (min-width: 993px) and (max-width: 1100px) {
    .hero__image--trio {
        right: 2%;
        width: 40%;
    }
}

.hero__buttons {
    flex-wrap: wrap;
    row-gap: 14px;
}

.hero__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-basis: 100%;
    font-family: var(--ls-font-family);
    font-size: 16px;
    font-weight: 500;
    color: var(--ls-text-heading);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity var(--ls-transition);
}

.hero__link:hover {
    opacity: 0.7;
}

.hero__link svg {
    flex-shrink: 0;
}

/* ─── Ikony zaufania — Figma 5889-16113 (bez ramek) ───────────────────────
   Siatka 4 kolumn (pad 24, odstęp 32), element 268 px wyśrodkowany w kolumnie.
   Ikona: koło 56 px, tło #F7FCFF, obrys #D2E5F6 (dark: #032A49 / ikona #D2E5F6). */
.trust-badges {
    padding: 16px 0 0;
}

.trust-badges__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin: 0 -26px;
    padding: 24px 0;
    list-style: none;
}

.trust-badges__item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 268px;
    justify-self: center;
}

.trust-badges__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #F7FCFF;
    border: 1px solid #D2E5F6;
    color: #032A49;
    transition: background-color var(--ls-transition), border-color var(--ls-transition), color var(--ls-transition);
}

[data-theme="dark"] .trust-badges__icon {
    background: #032A49;
    border-color: #032A49;
    color: #D2E5F6;
}

.trust-badges__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.trust-badges__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 22.4px;
    letter-spacing: 0.32px;
    color: var(--ls-text-heading);
}

.trust-badges__desc {
    font-size: 12px;
    font-weight: 500;
    line-height: 15.6px;
    letter-spacing: 0.24px;
    color: var(--ls-text-muted);
}

[data-theme="dark"] .trust-badges__title {
    color: #FFFFFF;
}

[data-theme="dark"] .trust-badges__desc {
    color: #999999;
}

/* ─── Obszary pomocy (kategorie z nagłówkiem) ─────────────────────────── */
.categories--with-header {
    padding-top: 50px;
}

.categories__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.categories__header .ls-section-lead {
    max-width: 720px;
}

.categories--with-header .categories__container {
    padding-top: 40px;
}

h3.categories__label {
    margin: 0;
    line-height: 22.4px;
}

/* ─── Eksperci ────────────────────────────────────────────────────────── */
.experts {
    padding: 50px 0;
    scroll-margin-top: 24px;
}

.experts__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.experts__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.experts__list--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.experts__card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-margin-top: 24px;
}

.experts__photo {
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: 420px;
    border-radius: var(--ls-radius-md);
    overflow: hidden;
    border: 1px solid var(--ls-hero-border);
    background: linear-gradient(180deg, var(--ls-hero-gradient-start) 0%, var(--ls-hero-gradient-mid) 40%, var(--ls-hero-gradient-end) 100%);
}

.experts__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.experts__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.experts__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: var(--ls-bg-surface);
    border: 1px solid var(--ls-surface-border);
    font-family: 'Gambetta', var(--ls-font-family);
    font-size: 40px;
    font-style: italic;
    font-weight: 500;
    color: var(--ls-primary);
}

[data-theme="dark"] .experts__initials {
    color: #D2E5F6;
}

.experts__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.experts__name {
    font-family: var(--ls-font-family);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ls-text-heading);
    margin: 0;
}

.experts__role {
    font-family: 'Gambetta', var(--ls-font-family);
    font-size: 18px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ls-text-heading);
    margin: 0 0 4px;
}

.experts__bio {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ls-text-muted);
    margin: 0;
}

.experts__ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 8px 0 0;
    font-size: 16px;
    font-weight: 500;
}

.experts__cta {
    color: var(--ls-text-heading);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity var(--ls-transition);
}

.experts__cta:hover {
    opacity: 0.7;
}

.experts__cta--primary {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: var(--ls-radius-pill);
    background: var(--ls-cta-bg);
    color: var(--ls-cta-text);
    text-decoration: none;
}

.experts__cta--primary + .experts__cta-sep {
    display: none;
}

.experts__cta-sep {
    color: var(--ls-text-muted);
}

/* Pełne profile (Partnerzy): zdjęcie z lewej, tekst z prawej */
.experts--rows .experts__list {
    grid-template-columns: 1fr;
    gap: 64px;
}

.experts--rows .experts__card {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.experts--rows .experts__name {
    font-size: 32px;
}

.experts--rows .experts__body {
    gap: 12px;
    padding-top: 8px;
    max-width: 760px;
}

.experts--rows .experts__bio {
    font-size: 18px;
}

/* ─── Eksperci: slider (strona główna) — Figma 5894-16446 / 5952-6649 / 5956-8725 ─
   Karta 780×343: wycięte zdjęcie 278 px przy dolnej krawędzi (bez ramki) na
   rozmytej poświacie, tekst zawsze w tej samej kolumnie (także bez zdjęcia),
   opis max 100 px z wielokropkiem. */
.experts--slider {
    padding: 50px 0;
}

.experts-slider {
    display: flex;
    align-items: flex-start;
    gap: 64px;
}

.experts-slider__intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 1 497px;
    min-width: 0;
}

.experts-slider__title {
    font-family: var(--ls-font-family);
    font-size: 28px;
    font-weight: 500;
    line-height: 39.2px;
    letter-spacing: -0.14px;
    color: var(--ls-text-heading);
    margin: 0;
}

/* Falka za ostatnim słowem nagłówka (także po złamaniu linii) — Figma: odstęp 6 px, wyrównana do góry */
.experts-slider__title-icon {
    display: inline-block;
    width: 44px;
    height: 16px;
    margin-left: 6px;
    vertical-align: top;
}

[data-theme="dark"] .experts-slider__title-icon {
    filter: brightness(0) invert(1);
}

.experts-slider__lead {
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    letter-spacing: 0.32px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

.experts-slider__lead + .experts-slider__lead {
    margin-top: -4px;
}

[data-theme="dark"] .experts-slider__lead {
    color: #999999;
}

.experts-slider__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    flex: 1 1 779px;
    min-width: 0;
}

/* Cień karty na osobnej warstwie — przewijany viewport by go przycinał */
.experts-slider__stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--experts-card-height, 343px);
    border-radius: 16px;
    box-shadow: 0 5.9px 5.3px rgba(150, 150, 150, 0.03), 0 19.9px 17.9px rgba(150, 150, 150, 0.04), 0 89px 80px rgba(150, 150, 150, 0.07);
    pointer-events: none;
}

[data-theme="dark"] .experts-slider__stage::before {
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.12), 0 20px 18px rgba(0, 0, 0, 0.16), 0 60px 60px rgba(0, 0, 0, 0.25);
}

.experts-slider__viewport {
    position: relative;
    display: flex;
    gap: 24px;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 16px;
    outline: none;
}

.experts-slider__viewport::-webkit-scrollbar {
    display: none;
}

.experts-slider__slide {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 32px;
    flex: 0 0 100%;
    min-width: 0;
    min-height: 343px;
    padding: 0 32px 0 16px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 16px;
    border: 1px solid #D2E5F6;
    background: #F7FCFF;
    scroll-snap-align: start;
    transition: background-color var(--ls-transition), border-color var(--ls-transition);
}

[data-theme="dark"] .experts-slider__slide {
    background: #051929;
    border-color: #032A49;
}

.experts-slider__photo {
    position: relative;
    flex: 0 0 278px;
    align-self: flex-end;
    height: 341px;
}

/* Figma „shadow": elipsa 278×435, biała 50% (dark 20%), rozmycie 80 px */
.experts-slider__photo::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    z-index: -1;
    width: 278px;
    height: 435px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    filter: blur(80px);
    pointer-events: none;
}

[data-theme="dark"] .experts-slider__photo::before {
    background: rgba(255, 255, 255, 0.2);
}

/* Bez zdjęcia poświata na ciemnym tle wygląda jak szara plama. */
[data-theme="dark"] .experts-slider__photo--empty::before {
    display: none;
}

/* Figma: postać ~94% szerokości pola, przy dolnej krawędzi (nad głową ~20 px) */
.experts-slider__photo img {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 94%;
    height: auto;
    transform: translateX(-50%);
}

.experts-slider__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 16px 0;
}

.experts-slider__desc {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.experts-slider__heading {
    display: flex;
    flex-direction: column;
}

.experts-slider__name {
    font-family: var(--ls-font-family);
    font-size: 24px;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: -0.12px;
    color: #032A49;
    margin: 0;
}

.experts-slider__role {
    font-family: 'Gambetta', var(--ls-font-family);
    font-size: 18px;
    font-style: italic;
    font-weight: 500;
    line-height: 25.2px;
    letter-spacing: 0.36px;
    color: #032A49;
    margin: 0;
}

[data-theme="dark"] .experts-slider__name,
[data-theme="dark"] .experts-slider__role {
    color: #FFFFFF;
}

/* Dev note: max 100 px opisu, dłuższe teksty ucięte z „…" (5 linii × 19,6 px) */
.experts-slider__bio {
    display: -webkit-box;
    max-width: 420px;
    max-height: 100px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    font-size: 14px;
    font-weight: 500;
    line-height: 19.6px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

[data-theme="dark"] .experts-slider__bio {
    color: #999999;
}

/* Bez skracania (argument clamp => false, Poradnia: opis z wytycznych SEO) */
.experts--full-bio .experts-slider__bio {
    display: block;
    max-height: none;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: none;
}

.experts-slider__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
}

.experts-slider__ctas .btn {
    font-size: 16px;
    letter-spacing: 0.32px;
}

/* Nawigacja: strzałki 48 px + kropki 6 px */
.experts-slider__nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.experts-slider__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #D2E5F6;
    background: #FFFFFF;
    color: #91B4D4;
    cursor: pointer;
    transition: border-color var(--ls-transition), color var(--ls-transition), background-color var(--ls-transition);
}

.experts-slider__arrow:hover {
    border-color: #032A49;
    color: #032A49;
}

[data-theme="dark"] .experts-slider__arrow {
    border-color: #5C7184;
    background: #032A49;
    color: #91B4D4;
}

[data-theme="dark"] .experts-slider__arrow:hover {
    border-color: #C2E1FF;
    color: #FFFFFF;
}

.experts-slider__arrow:focus-visible,
.experts-slider__dot:focus-visible {
    outline: 2px solid #91B4D4;
    outline-offset: 2px;
}

.experts-slider__dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.experts-slider__dot {
    position: relative;
    width: 6px;
    height: 6px;
    padding: 0;
    border-radius: 50%;
    background: #D2E5F6;
    cursor: pointer;
    transition: background-color var(--ls-transition), transform var(--ls-transition);
}

.experts-slider__dot.is-active {
    background: #91B4D4;
}

/* Większy obszar kliknięcia kropki (12×24) — szerzej zachodziłby na sąsiednią
   kropkę (rozstaw 12 px) i klik w kropkę włączał następny slajd. */
.experts-slider__dot::before {
    content: '';
    position: absolute;
    inset: -9px -3px;
}

[data-theme="dark"] .experts-slider__dot {
    background: #5C7184;
}

[data-theme="dark"] .experts-slider__dot.is-active {
    background: #91B4D4;
}

/* ─── Treść SEO (strona główna) — Figma 5889-15617: zwykły tekst ──────── */
.seo-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 50px 0;
}

.seo-content__more {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.seo-content.is-collapsed .seo-content__more {
    display: none;
}

.seo-content__block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.seo-content__title {
    font-family: var(--ls-font-family);
    font-size: 24px;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: -0.12px;
    color: var(--ls-text-heading);
    margin: 0;
}

.seo-content__text {
    max-width: 950px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.08px;
    color: #666666;
    margin: 0;
}

.seo-content__text strong {
    font-weight: 700;
}

[data-theme="dark"] .seo-content__text {
    color: #999999;
}

/* „Czytaj więcej" — styl linków CTA (16/24, podkreślenie) */
.seo-content__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: -8px;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--ls-font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.08px;
    color: var(--ls-text-heading);
    cursor: pointer;
    transition: opacity var(--ls-transition);
}

.seo-content__toggle[hidden] {
    display: none;
}

.seo-content__toggle:hover {
    opacity: 0.7;
}

.seo-content__toggle-text {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.seo-content__toggle svg {
    flex-shrink: 0;
    transition: transform var(--ls-transition);
}

.seo-content__toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* ─── Wstęp podstrony ─────────────────────────────────────────────────── */
.page-intro {
    padding: 16px 0 0;
}

.page-intro__card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 72px 124px;
    border-radius: 16px;
    border: 1px solid var(--ls-hero-border);
    background: linear-gradient(180deg, var(--ls-hero-gradient-start) 0%, var(--ls-hero-gradient-mid) 40%, var(--ls-hero-gradient-end) 100%);
}

.page-intro__card .hero__bg-wave {
    z-index: -1;
}

.page-intro__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
}

.page-intro__title {
    font-family: var(--ls-font-family);
    font-size: 48px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.24px;
    color: var(--ls-text-heading);
    margin: 0;
}

.page-intro__subtitle {
    font-family: 'Gambetta', var(--ls-font-family);
    font-size: 26px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ls-text-heading);
    margin: 0 0 8px;
}

.page-intro__text {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--ls-text-muted);
    margin: 0;
}

.page-intro__text strong {
    color: var(--ls-text-heading);
    font-weight: 600;
}

.page-intro__cta {
    align-self: flex-start;
    margin-top: 8px;
}

/* ─── Sekcje treści (Poradnia) — Figma 5965-11141: pad 50, nagłówek 28/39.2,
   opis 16/22.4 (688 px), 48 px do treści ─────────────────────────────────── */
.content-section {
    padding: 50px 0;
}

.content-section__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 688px;
    margin-bottom: 48px;
}

.content-section__header .ls-section-title {
    font-size: 28px;
    line-height: 39.2px;
    letter-spacing: -0.14px;
}

.content-section__header .ls-section-lead {
    max-width: none;
    font-size: 16px;
    line-height: 22.4px;
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .content-section__header .ls-section-lead {
    color: #999999;
}

/* Przygotowanie do wizyty — nagłówek wyśrodkowany (Figma 5966-12472: opis 590 px;
   tytuł z wytycznych SEO jest dłuższy niż w projekcie, więc szerszy niż opis) */
.content-section--center .content-section__header {
    align-items: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.content-section--center .ls-section-title {
    text-wrap: balance;
}

.content-section--center .ls-section-lead {
    max-width: 590px;
}

/* Karty — Figma „box" 5966-12346: pad 24, r 16, #F7FCFF z poświatą #91B4D4 20 %
   od prawej krawędzi, obrys #D2E5F6, cień jak karta eksperta; 2 kolumny, odstęp 36 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
}

.feature-grid__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border-radius: var(--ls-radius-md);
    border: 1px solid var(--ls-surface-border);
    background: linear-gradient(270deg, rgba(145, 180, 212, 0.2) 0%, rgba(145, 180, 212, 0) 100%), var(--ls-surface-soft);
    box-shadow: 0 5.9px 5.3px rgba(150, 150, 150, 0.03), 0 19.9px 17.9px rgba(150, 150, 150, 0.04), 0 89px 80px rgba(150, 150, 150, 0.07);
}

/* Jak pracujemy z pacjentami: ikona 48 px z lewej, odstęp 24 */
.feature-grid__item--icon {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}

.feature-grid__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    color: var(--ls-trust-accent);
}

.feature-grid__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.feature-grid__title {
    font-family: var(--ls-font-family);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: var(--ls-primary);
    margin: 0;
}

.feature-grid__text {
    font-size: 14px;
    font-weight: 500;
    line-height: 19.6px;
    letter-spacing: 0.07px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

/* Poradnia: z jakim problemem się zgłosić — podpis kursywą (kto pomaga) i lista
   (sekcji nie ma w projekcie — typografia jak w kartach „Jak pracujemy") */
.feature-grid__caption {
    font-family: 'Gambetta', var(--ls-font-family);
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    line-height: 22.4px;
    color: var(--ls-primary);
    margin: 0;
    text-wrap: pretty;
}

.feature-grid__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.feature-grid__list li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 19.6px;
    letter-spacing: 0.07px;
    color: rgba(0, 0, 0, 0.6);
}

/* Kropka na wysokości środka pierwszej linii (19.6 px) */
.feature-grid__list li::before {
    content: '';
    position: absolute;
    top: 6.8px;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ls-trust-accent);
}

[data-theme="dark"] .feature-grid__item {
    background: linear-gradient(270deg, rgba(145, 180, 212, 0.1) 0%, rgba(145, 180, 212, 0) 100%), var(--ls-surface-soft);
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.12), 0 20px 18px rgba(0, 0, 0, 0.16), 0 60px 60px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .feature-grid__title,
[data-theme="dark"] .feature-grid__caption {
    color: var(--ls-text-heading);
}

/* #999 na poświacie przy prawej krawędzi karty schodził poniżej 4.5:1 */
[data-theme="dark"] .feature-grid__text,
[data-theme="dark"] .feature-grid__list li {
    color: #A6A6A6;
}

/* Przygotowanie do wizyty — Figma 5966-12547: 2 karty 438 px, odstęp 24; nagłówek
   karty na #F7FCFF z ikoną 24 px, pod kreską tekst 16/22.4 (400) */
.visit-prep {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 438px));
    justify-content: center;
    gap: 24px;
}

.visit-prep__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--ls-radius-md);
    border: 1px solid var(--ls-surface-border);
    background: var(--ls-bg-surface);
}

.visit-prep__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--ls-surface-border);
    background: var(--ls-surface-soft);
}

.visit-prep__icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: var(--ls-text-heading);
}

.visit-prep__title {
    font-family: var(--ls-font-family);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: var(--ls-text-heading);
    margin: 0;
}

.visit-prep__text {
    margin: 0;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    letter-spacing: 0.32px;
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .visit-prep__text {
    color: #999999;
}

/* Hero Poradni: zastępnik zdjęcia (Figma 5966-12024: 584×350, r 16, obrys #D2E5F6) —
   do podmiany, gdy będzie zdjęcie poradni */
.media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 584px;
    margin: 0;
    aspect-ratio: 584 / 350;
    border-radius: 16px;
    border: 1px solid var(--ls-hero-border);
    background: rgba(255, 255, 255, 0.55);
}

.media-placeholder__logo {
    width: 88px;
    height: auto;
    opacity: 0.35;
}

[data-theme="dark"] .media-placeholder {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .media-placeholder__logo {
    filter: brightness(0) invert(1);
    opacity: 0.25;
}

/* ─── Stopka: linki pod tekstem SEO — Figma 5965-6948: 16/500, odstęp 16 ─ */
.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 0;
}

.site-footer__link {
    color: #D2E5F6;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.08px;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.site-footer__link:hover {
    color: #FFFFFF;
}

.site-footer__description {
    max-width: 461px;
    font-size: 14px;
    line-height: 19.6px;
}

/* ─── Responsywność ───────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    /* Slider ekspertów: tekst nad kartą (obok siebie karta byłaby za wąska) */
    .experts-slider {
        flex-direction: column;
        gap: 32px;
    }

    .experts-slider__intro,
    .experts-slider__stage {
        flex: none;
        width: 100%;
    }

    .experts-slider__intro {
        max-width: 720px;
    }

    .trust-badges__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 32px;
        margin: 0;
    }

    .trust-badges__item {
        max-width: 320px;
    }

    .page-intro__card {
        padding: 56px 64px;
    }
}

@media (max-width: 992px) {
    .hero__heading,
    .hero__tagline {
        max-width: none;
    }


    .hero__link {
        justify-content: center;
    }

    .experts__list,
    .experts__list--count-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .experts--rows .experts__card {
        grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
        gap: 32px;
    }

    .feature-grid {
        gap: 24px;
    }
}

/* Poradnia ≤900: karty w jednej kolumnie, tekst do 600 px (bez wierszy po ~110 znaków) */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-grid__body,
    .feature-grid__caption,
    .feature-grid__list {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .ls-section-title {
        font-size: 26px;
    }

    .ls-section-lead {
        font-size: 16px;
    }

    .hero__tagline {
        font-size: 20px;
    }

    .hero__link {
        justify-content: flex-start;
    }

    .trust-badges__list {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 0 8px;
    }

    .trust-badges__item {
        max-width: none;
        justify-self: stretch;
    }

    .categories--with-header {
        padding-top: 32px;
    }

    .categories__header {
        align-items: flex-start;
        text-align: left;
    }

    .categories--with-header .categories__container {
        padding-top: 24px;
    }

    .experts {
        padding: 32px 0;
    }

    .experts-slider__title {
        font-size: 24px;
        line-height: 1.35;
    }

    .experts-slider__slide {
        flex-direction: column;
        gap: 8px;
        min-height: 0;
        padding: 16px 16px 20px;
    }

    /* Zdjęcie nad tekstem, wyśrodkowane; bez zdjęcia — sam tekst */
    .experts-slider__photo {
        flex: none;
        align-self: center;
        width: 220px;
        height: 268px;
    }

    .experts-slider__photo::before {
        left: -29px;
    }

    .experts-slider__photo--empty {
        display: none;
    }

    .experts-slider__body {
        justify-content: flex-start;
        padding: 0;
    }

    .experts-slider__ctas .btn {
        flex: 1 1 auto;
    }

    .experts-slider__stage {
        align-items: center;
    }

    .experts__header {
        margin-bottom: 24px;
    }

    .experts__list,
    .experts__list--count-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .experts__photo {
        max-height: 360px;
    }

    .experts--rows .experts__list {
        gap: 48px;
    }

    .experts--rows .experts__card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Element siatki z aspect-ratio + max-height liczy szerokość z wysokości —
       wymuś pełną szerokość karty jak w układzie „grid". */
    .experts--rows .experts__photo {
        width: 100%;
    }

    .site-footer__links {
        gap: 12px 20px;
    }

    .experts--rows .experts__name {
        font-size: 26px;
    }

    .experts--rows .experts__bio {
        font-size: 16px;
    }

    .seo-content {
        gap: 24px;
        padding: 32px 0;
    }

    .seo-content__more {
        gap: 24px;
    }

    .seo-content__title {
        font-size: 20px;
        line-height: 1.4;
    }

    .page-intro {
        padding-top: 0;
    }

    .page-intro__card {
        padding: 40px 24px;
    }

    .page-intro__title {
        font-size: 32px;
    }

    .page-intro__subtitle {
        font-size: 20px;
    }

    .page-intro__text {
        font-size: 16px;
    }

    .content-section {
        padding: 32px 0;
    }

    .content-section__header {
        margin-bottom: 24px;
    }

    .content-section__header .ls-section-title {
        font-size: 24px;
        line-height: 1.35;
    }

    .feature-grid {
        gap: 16px;
    }

    .feature-grid__item {
        padding: 20px;
    }

    .feature-grid__item--icon {
        gap: 16px;
    }

    .feature-grid__icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .visit-prep {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .visit-prep__head,
    .visit-prep__text {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .feature-grid__item--icon {
        flex-direction: column;
        gap: 12px;
    }

    .feature-grid__icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }
}

/* ─── Dark mode ───────────────────────────────────────────────────────── */
[data-theme="dark"] .page-intro__text strong {
    color: #FFFFFF;
}

/* ==========================================================================
   13. Widoki z Figmy (23.10.2026) — O nas, zespół (karty + okno „Czytaj
   więcej"), miniatury wideo, strony dokumentów (Dokumentacja medyczna,
   Karta praw pacjenta) i Rzecznik praw pacjenta.
   ========================================================================== */

/* Podpis nad nagłówkiem — Figma: Gambetta 18/500 italic, lh 23.4, ls -0.09 */
.ls-eyebrow {
    font-family: 'Gambetta', var(--ls-font-family);
    font-size: 18px;
    font-style: italic;
    font-weight: 500;
    line-height: 23.4px;
    letter-spacing: -0.09px;
    color: var(--ls-text-heading);
    margin: 0;
}

/* ─── Miniatura wideo — Figma „article image": r 16, obrys #E6E6E6 ───── */
.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #E6E6E6;
    background: #0B1620;
}

.video-card__media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.video-card__play[hidden],
.video-card.is-playing .video-card__play {
    display: none;
}

/* Play — Figma: koło 64 px, czarne 30%, ikona 36 px */
.video-card__play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: #FFFFFF;
    transition: background-color var(--ls-transition), transform var(--ls-transition);
}

.video-card__play:hover .video-card__play-icon {
    background: rgba(0, 0, 0, 0.45);
    transform: scale(1.05);
}

.video-card__play:focus-visible {
    outline: none;
}

.video-card__play:focus-visible .video-card__play-icon {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
}

/* Czas — Figma: prawy dolny róg (10 px), pad 4/8, r 6, czarne 30%, biały 16/500 */
.video-card__time {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    font-family: var(--ls-font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    color: #FFFFFF;
}

[data-theme="dark"] .video-card {
    border-color: #353535;
}

/* ─── O nas: hero — Figma 5987-7315: karta 1408×600 jak hero strony głównej ─ */
.about-hero {
    padding: 16px 0 0;
}

@media (min-width: 1201px) {
    .about-hero {
        margin-left: -34px;
        margin-right: -34px;
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .about-hero {
        margin-left: -16px;
        margin-right: -16px;
    }
}

.about-hero__card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 48px;
    min-height: 600px;
    padding: 50px 96px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 16px;
    border: 1px solid var(--ls-hero-border);
    background: linear-gradient(245deg, var(--ls-hero-gradient-start) 0%, var(--ls-hero-gradient-end) 100%);
    transition: background var(--ls-transition), border-color var(--ls-transition);
}

.about-hero__text,
.about-hero__media {
    position: relative;
    z-index: 10;
    flex: 1 1 584px;
    min-width: 0;
}

.about-hero__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Figma: DM Sans 36/500, lh 43.2, ls -0.18; „bezsenności" i „problemu." — Gambetta italic */
.about-hero__title {
    /* DM Sans renderuje się węższy niż w Figmie — 540 px daje łamanie jak w projekcie (3 linie). */
    max-width: 540px;
    font-family: var(--ls-font-family);
    font-size: 36px;
    font-weight: 500;
    line-height: 43.2px;
    letter-spacing: -0.18px;
    color: var(--ls-text-heading);
    margin: 0;
}

/* Figma: wyróżnienia 40 px przy tytule 36 px (em, żeby na telefonie skalowały się z tytułem) */
.about-hero__title em {
    font-family: 'Gambetta', var(--ls-font-family);
    font-size: 1.11em;
    font-style: italic;
    font-weight: 500;
}

.about-hero__lead {
    max-width: 554px;
    margin: 8px 0 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .about-hero__lead {
    color: #D2E5F6;
}

/* ─── O nas: Nasza misja — Figma 5987-7310: wideo 500×500 + tekst 550, odstęp 104 ─ */
.about-mission {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 104px;
    padding: 50px 0;
}

.about-mission__media {
    flex: 0 1 500px;
    min-width: 0;
}

.about-mission__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 1 550px;
    min-width: 0;
}

.about-mission__title {
    font-family: var(--ls-font-family);
    font-size: 28px;
    font-weight: 500;
    line-height: 39.2px;
    letter-spacing: -0.14px;
    color: var(--ls-text-heading);
    margin: 0;
}

.about-mission__lead {
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

[data-theme="dark"] .about-mission__lead {
    color: #999999;
}

/* ─── Zespół: karty (O nas) — Figma 5987-7310 „Section" / komponent 5987-7708 ─ */
.experts--cards {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 50px 0;
}

.experts-cards__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 814px;
    margin: 0 auto;
    text-align: center;
}

.experts-cards__header .ls-eyebrow {
    margin-bottom: -8px;
}

.experts-cards__title {
    font-family: var(--ls-font-family);
    font-size: 28px;
    font-weight: 500;
    line-height: 39.2px;
    letter-spacing: -0.14px;
    color: var(--ls-text-heading);
    margin: 0;
}

.experts-cards__lead {
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

[data-theme="dark"] .experts-cards__lead {
    color: #999999;
}

.experts-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Rząd kart przewijany w poziomie; przy 5 osobach piąta wychodzi za prawą
   krawędź ekranu (Figma). Dolny margines wewnętrzny — miejsce na cień kart. */
.experts-cards__viewport {
    display: flex;
    gap: 24px;
    margin-right: calc(-1 * var(--ls-container-padding));
    padding: 0 var(--ls-container-padding) 48px 0;
    margin-bottom: -40px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-left: 0;
    scrollbar-width: none;
    outline: none;
}

.experts-cards__viewport::-webkit-scrollbar {
    display: none;
}

.experts-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 317px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #E7EDF2;
    background: #FFFFFF;
    box-shadow: 0 5.9px 5.3px rgba(150, 150, 150, 0.03), 0 19.9px 17.9px rgba(150, 150, 150, 0.04), 0 30px 40px rgba(150, 150, 150, 0.07);
    scroll-snap-align: start;
    scroll-margin-top: 24px;
}

/* Zdjęcie 217×264 na gradiencie, przy dolnej krawędzi pola 315×280 */
.experts-card__photo {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 280px;
    padding-top: 16px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 16px;
    background: linear-gradient(245deg, var(--ls-hero-gradient-start) 0%, var(--ls-hero-gradient-end) 100%);
}

.experts-card__photo::before {
    content: '';
    position: absolute;
    top: -28px;
    left: 8px;
    z-index: -1;
    width: 278px;
    height: 435px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    filter: blur(80px);
    pointer-events: none;
}

[data-theme="dark"] .experts-card__photo::before {
    background: rgba(255, 255, 255, 0.12);
}

.experts-card__photo img {
    display: block;
    width: 217px;
    height: 264px;
    object-fit: cover;
    object-position: center top;
}

.experts-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 auto;
    padding: 16px;
}

.experts-card__desc {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
}

.experts-card__heading {
    display: flex;
    flex-direction: column;
}

.experts-card__name {
    font-family: var(--ls-font-family);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: #032A49;
    margin: 0;
}

.experts-card__role {
    font-family: 'Gambetta', var(--ls-font-family);
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    line-height: 22.4px;
    letter-spacing: 0.32px;
    color: #032A49;
    margin: 0;
}

/* Opis: 3 linie z wielokropkiem; puste pole trzyma wysokość, żeby przyciski
   wszystkich kart były na jednej linii. */
.experts-card__bio {
    display: -webkit-box;
    min-height: 58.8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

.experts-card__ctas {
    display: flex;
    gap: 10px;
    margin: 0;
}

.experts-card__ctas .btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 12px 12px;
    font-size: 16px;
    white-space: nowrap;
}

.experts-cards__nav {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.experts-cards__nav[hidden] {
    display: none;
}

/* Rząd strzałek zastępuje dolny margines sekcji (odstęp do kolejnej sekcji jak w Figmie). */
.experts--cards:has(.experts-cards.is-scrollable) {
    padding-bottom: 0;
}

/* Szerzej niż kontener (>1440): rząd kończy się przy krawędzi kontenera — wygaszony, gdy dalej są karty. */
@media (min-width: 1441px) {
    .experts-cards.is-scrollable:not(.is-at-end) .experts-cards__viewport {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 160px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 160px), transparent);
    }
}

.experts-cards__nav .experts-slider__arrow:disabled {
    opacity: 0.4;
    cursor: default;
    border-color: #D2E5F6;
    color: #91B4D4;
}

[data-theme="dark"] .experts-card {
    border-color: #032A49;
    background: #051929;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.12), 0 20px 18px rgba(0, 0, 0, 0.16);
}

[data-theme="dark"] .experts-card__name,
[data-theme="dark"] .experts-card__role {
    color: #FFFFFF;
}

[data-theme="dark"] .experts-card__bio {
    color: #999999;
}

[data-theme="dark"] .experts-cards__nav .experts-slider__arrow:disabled {
    border-color: #5C7184;
    color: #5C7184;
}

/* ─── Okno „Czytaj więcej" — Figma 5987-9168 (v.1) ───────────────────── */
html:has(.experts-modal[open]) {
    overflow: hidden;
}

.experts-modal {
    width: min(1100px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Figma „overlay": czarne 40% + rozmycie tła 12 px */
.experts-modal::backdrop {
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.experts-modal__close {
    position: fixed;
    top: 8px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #D2E5F6;
    background: #F7FCFF;
    color: #032A49;
    cursor: pointer;
    transition: border-color var(--ls-transition), background-color var(--ls-transition);
}

.experts-modal__close:hover {
    border-color: #032A49;
}

.experts-modal__close:focus-visible {
    outline: 2px solid #91B4D4;
    outline-offset: 2px;
}

.experts-modal__card {
    display: flex;
    min-height: 479px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #D2E5F6;
    background: #FFFFFF;
    box-shadow: 0 5.9px 5.3px rgba(150, 150, 150, 0.03), 0 19.9px 17.9px rgba(150, 150, 150, 0.04), 0 89px 80px rgba(150, 150, 150, 0.07);
}

.experts-modal__card[hidden] {
    display: none;
}

/* Zdjęcie 380×461 na gradiencie, pole 484 px (44%) */
.experts-modal__photo {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex: 0 0 44%;
    padding-top: 16px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 16px;
    background: linear-gradient(245deg, var(--ls-hero-gradient-start) 0%, var(--ls-hero-gradient-end) 100%);
}

.experts-modal__photo::before {
    content: '';
    position: absolute;
    top: 3px;
    left: -18px;
    z-index: -1;
    width: 432px;
    height: 676px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    filter: blur(80px);
    pointer-events: none;
}

.experts-modal__photo img {
    display: block;
    width: 380px;
    max-width: 80%;
    height: auto;
    aspect-ratio: 380 / 461;
    object-fit: cover;
    object-position: center top;
}

.experts-modal__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    flex: 1 1 0;
    min-width: 0;
    padding: 32px;
}

.experts-modal__desc {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.experts-modal__heading {
    display: flex;
    flex-direction: column;
}

.experts-modal__name {
    font-family: var(--ls-font-family);
    font-size: 28px;
    font-weight: 500;
    line-height: 39.2px;
    letter-spacing: -0.14px;
    color: #032A49;
    margin: 0;
}

.experts-modal__role {
    font-family: 'Gambetta', var(--ls-font-family);
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 0.4px;
    color: #032A49;
    margin: 0;
}

.experts-modal__bio {
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

.experts-modal__bio strong,
.experts-modal__bio b {
    font-weight: 700;
}

.experts-modal__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}

.experts-modal__footer .btn {
    font-size: 16px;
}

[data-theme="dark"] .experts-modal__card {
    border-color: #032A49;
    background: #051929;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .experts-modal__photo::before {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .experts-modal__name,
[data-theme="dark"] .experts-modal__role {
    color: #FFFFFF;
}

[data-theme="dark"] .experts-modal__bio {
    color: #999999;
}

[data-theme="dark"] .experts-modal__bio strong,
[data-theme="dark"] .experts-modal__bio b {
    color: #D2E5F6;
}

[data-theme="dark"] .experts-modal__close {
    border-color: #5C7184;
    background: #032A49;
    color: #FFFFFF;
}

/* ─── Dokument ze spisem treści — Figma 5965-6789 / 5965-6832 ────────── */
.document {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 50px 0 0;
}

.document__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Figma: DM Sans 36/500, lh 43.2, ls -0.18 */
.document__title {
    font-family: var(--ls-font-family);
    font-size: 36px;
    font-weight: 500;
    line-height: 43.2px;
    letter-spacing: -0.18px;
    color: var(--ls-text-heading);
    margin: 0;
}

.document__intro p {
    max-width: 950px;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.08px;
    color: var(--ls-text-muted);
}

.document__intro p + p {
    margin-top: 16px;
}

.document__main {
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
    align-items: start;
    gap: 40px;
}

.document__main--no-toc {
    grid-template-columns: minmax(0, 1fr);
}

/* Spis treści — Figma „legend": 288 px, pad 12, obrys #D2E5F6, r 16 */
.document__toc {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #D2E5F6;
    background: #FFFFFF;
}

.document__toc-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.document__toc-link {
    display: block;
    padding: 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0.07px;
    color: #91B4D4;
    text-decoration: none;
    transition: color var(--ls-transition), background-color var(--ls-transition);
}

.document__toc-link:hover {
    color: #032A49;
}

.document__toc-link.is-active {
    font-weight: 500;
    letter-spacing: 0;
    color: #051929;
}

.document__toc-link:focus-visible {
    outline: 2px solid #91B4D4;
    outline-offset: 0;
}

/* Treść — H2 24/500, akapity i listy 16/400 lh 24 #666, max 950 px, odstęp sekcji 36 */
.document__content {
    min-width: 0;
}

.document__content > * {
    max-width: 950px;
    margin-top: 0;
    margin-bottom: 0;
}

.document__content h2 {
    max-width: none;
    margin: 36px 0 16px;
    font-family: var(--ls-font-family);
    font-size: 24px;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: -0.12px;
    color: var(--ls-text-heading);
    scroll-margin-top: 24px;
}

.document__content > h2:first-child {
    margin-top: 0;
}

.document__content p,
.document__content ul:not(.ombudsman__list),
.document__content ol {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.08px;
    color: var(--ls-text-muted);
}

.document__content p + p,
.document__content p + ul,
.document__content p + ol,
.document__content ul + p,
.document__content ol + p {
    margin-top: 16px;
}

.document__content ul:not(.ombudsman__list),
.document__content ol {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 22px;
}

.document__content ul:not(.ombudsman__list) {
    list-style: disc;
}

.document__content li::marker {
    color: var(--ls-text-muted);
}

.document__content a {
    color: var(--ls-text-heading);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.document__content > .ombudsman {
    max-width: 900px;
    margin-top: 24px;
}

[data-theme="dark"] .document__toc {
    border-color: #1B3A52;
    background: transparent;
}

[data-theme="dark"] .document__toc-link:hover,
[data-theme="dark"] .document__toc-link.is-active {
    color: #FFFFFF;
}

/* ─── FAQ: pytania jako rozwijane pola (blok „Szczegóły" = <details>) ─── */
.document__content > .wp-block-details {
    border: 1px solid var(--ls-surface-border);
    border-radius: 16px;
    background: var(--ls-bg-surface);
}

.document__content > .wp-block-details + .wp-block-details {
    margin-top: 12px;
}

.document__content .wp-block-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border-radius: 15px;
    font-family: var(--ls-font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    color: var(--ls-text-heading);
    list-style: none;
    cursor: pointer;
    transition: background-color var(--ls-transition);
}

.document__content .wp-block-details > summary::-webkit-details-marker {
    display: none;
}

/* Strzałka w dół, po rozwinięciu w górę */
.document__content .wp-block-details > summary::after {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin: -4px 4px 0 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--ls-transition), margin var(--ls-transition);
}

.document__content .wp-block-details[open] > summary {
    border-radius: 15px 15px 0 0;
}

.document__content .wp-block-details[open] > summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.document__content .wp-block-details > summary:hover {
    background: var(--ls-surface-soft);
}

.document__content .wp-block-details > summary:focus-visible {
    outline: 2px solid var(--ls-trust-accent);
    outline-offset: -2px;
}

/* Odpowiedź: akapity i listy jak w treści dokumentu, z wcięciem karty */
.document__content .wp-block-details > :not(summary) {
    margin-right: 24px;
    margin-left: 24px;
}

.document__content .wp-block-details > :not(summary):last-child {
    margin-bottom: 20px;
}

/* ─── Rzecznik Praw Pacjenta — Figma 5965-6916: karty 438 px, odstęp 24 ─ */
.ombudsman {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.ombudsman__card {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #D2E5F6;
    background: #FFFFFF;
}

.ombudsman__title {
    margin: 0;
    padding: 12px 24px;
    border-bottom: 1px solid #D2E5F6;
    background: #F7FCFF;
    font-family: var(--ls-font-family);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: var(--ls-text-heading);
}

.ombudsman__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 12px 24px;
    list-style: none;
}

.ombudsman__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    letter-spacing: 0.32px;
    color: var(--ls-text-muted);
}

.ombudsman__icon {
    flex: 0 0 24px;
    color: #051929;
}

.document__content .ombudsman__item a,
.ombudsman__item a {
    color: inherit;
    text-decoration: none;
}

.document__content .ombudsman__item a:hover,
.ombudsman__item a:hover {
    color: var(--ls-text-heading);
    text-decoration: underline;
}

.ombudsman-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    min-height: 520px;
    padding: 50px 0 0;
}

.ombudsman-page__title {
    text-align: center;
}

.ombudsman-page__content {
    width: 100%;
    max-width: 900px;
}

.ombudsman-page .ombudsman {
    width: 100%;
    max-width: 900px;
}

[data-theme="dark"] .ombudsman__card {
    border-color: #1B3A52;
    background: transparent;
}

[data-theme="dark"] .ombudsman__title {
    border-color: #1B3A52;
    background: #0E2A3F;
}

[data-theme="dark"] .ombudsman__icon {
    color: #D2E5F6;
}

/* ─── Responsywność (sekcja 13) ──────────────────────────────────────── */
@media (max-width: 1200px) {
    .about-hero__card {
        padding: 40px 60px;
    }

    /* .site-main ma tu 32 px marginesu (nie 50) — rząd kart nie może wystawać poza ekran. */
    .experts-cards__viewport {
        margin-right: -32px;
        padding-right: 32px;
    }

    .about-mission {
        gap: 56px;
    }
}

@media (max-width: 992px) {
    .about-hero__card {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        min-height: 0;
        padding: 40px;
    }

    .about-hero__text,
    .about-hero__media {
        flex: none;
    }

    .about-mission {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .about-mission__media,
    .about-mission__text {
        flex: none;
    }

    .about-mission__media {
        width: min(500px, 100%);
        align-self: center;
    }

    .document__main {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .document__toc {
        position: static;
        max-height: none;
    }

    .experts-modal__photo {
        flex-basis: 40%;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding-top: 0;
    }

    .about-hero__card {
        padding: 40px 24px 24px;
    }

    .about-hero__title {
        font-size: 28px;
        line-height: 36px;
        letter-spacing: -0.14px;
    }

    .about-mission {
        padding: 32px 0;
    }

    .about-mission__title,
    .experts-cards__title {
        font-size: 24px;
        line-height: 1.35;
    }

    .experts--cards {
        gap: 32px;
        padding: 32px 0;
    }

    .experts-cards__header {
        align-items: flex-start;
        text-align: left;
    }

    .experts-cards__viewport {
        margin-right: -16px;
        padding-right: 16px;
    }

    .experts-card {
        flex-basis: min(300px, 82vw);
    }

    .experts-modal {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 72px);
        margin-top: 56px;
        overflow-y: auto;
        border-radius: 16px;
    }

    .experts-modal__card {
        flex-direction: column;
        min-height: 0;
    }

    .experts-modal__photo {
        flex: none;
        height: 300px;
    }

    .experts-modal__photo img {
        width: auto;
        height: 284px;
        max-width: 100%;
    }

    .experts-modal__body {
        padding: 24px 16px;
    }

    .experts-modal__name {
        font-size: 24px;
        line-height: 1.35;
    }

    .experts-modal__footer .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .experts-modal__nav {
        width: 100%;
        justify-content: space-between;
    }

    .document {
        gap: 32px;
        padding-top: 32px;
    }

    .document__title {
        font-size: 28px;
        line-height: 36px;
        letter-spacing: -0.14px;
    }

    .document__content h2 {
        margin-top: 32px;
        font-size: 20px;
        line-height: 28px;
    }

    .document__content .wp-block-details > summary {
        padding: 14px 16px;
        font-size: 16px;
        line-height: 24px;
    }

    .document__content .wp-block-details > :not(summary) {
        margin-right: 16px;
        margin-left: 16px;
    }

    .document__content .wp-block-details > :not(summary):last-child {
        margin-bottom: 16px;
    }

    .ombudsman {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .ombudsman__title {
        padding: 12px 16px;
        font-size: 18px;
    }

    .ombudsman__list {
        padding: 12px 16px;
    }

    .ombudsman-page {
        gap: 32px;
        min-height: 0;
        padding-top: 40px;
    }
}
