    :root {
        --primary-white: #ffffff;
        --primary-bg: #fcfcfc;
        --primary-10: #f1f0f9;
        --primary-20: #dedbf1;
        --primary-50: #665da2;
        --primary-80: #262341;
        --accent-highlight: #ec4352;
        --text-main: #222;
        --text-light: #555;
        --radius-sm: 8px;
        --radius-md: 16px;
        --radius-lg: 24px;
        --container-width: 1500px; /* SZEROKO */
    }

    /* RESET & GLOBAL */
    *, *::before, *::after { box-sizing: border-box; }
    body {
        font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
        color: var(--text-main);
        background-color: var(--primary-white);
        margin: 0; padding: 0;
        font-size: 17px;
        line-height: 1.6;
    }
    img { max-width: 100%; height: auto; display: block; }
    a { color: inherit; text-decoration: none; transition: 0.2s ease; }
    h1, h2, h3, h4 { margin: 0 0 1rem; color: var(--primary-80); font-weight: 800; line-height: 1.25; }
    h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.02em; margin-bottom: 24px; }
    h2 { font-size: 28px; margin-bottom: 20px; }
    p { margin-bottom: 1.5rem; color: var(--text-light); font-weight: 300; }
    strong { font-weight: 600; color: var(--primary-80); }

    /* LAYOUT & CONTAINER - JEDEN WSPÓLNY KONTENER */
    .container {
        width: 100%;
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 0 30px;
    }

    /* HEADER & NAV (INLINE) */
    .site-header { padding: 20px 0; border-bottom: 1px solid #f0f0f0; margin-bottom: 40px; }
    .nav-flex { display: flex; justify-content: space-between; align-items: center; }
    .logo { font-size: 24px; font-weight: 800; color: var(--primary-80); }
    .nav-menu { display: flex; gap: 30px; font-weight: 500; font-size: 15px; }

    /* HERO SECTION - SPLIT 50/50 */
    .hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
        margin-bottom: 70px;
    }
    
    .breadcrumbs {
        font-size: 13px; color: var(--text-light); text-transform: uppercase;
        letter-spacing: 0.5px; opacity: 0.7; margin-bottom: 20px;
    }
    
    /* SUMMARY HIGHLIGHT */
    .hero-summary-box {
        border-left: 5px solid var(--primary-50);
        padding: 24px 30px;
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        margin: 30px 0;
        font-size: 18px;
        line-height: 1.7;
        color: var(--primary-80);
        position: relative;
    }
    .hero-summary-box strong { color: var(--primary-50); }

    .hero-image-container {
        position: relative;
        height: 100%;
        min-height: 450px;
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: 0 20px 50px -10px rgba(0,0,0,0.12);
    }
    .hero-image {
        width: 100%; height: 100%; object-fit: cover;
        transition: transform 0.5s ease;
    }
    .hero-image-container:hover .hero-image { transform: scale(1.03); }
    
    .hero-category-badge {
        position: absolute; top: 25px; left: 25px;
        background: rgba(255,255,255,0.9);
        padding: 8px 16px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 14px;
        color: var(--primary-80);
        backdrop-filter: blur(5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    /* STATS BAR - 4 COLUMNS */
    .stats-bar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 80px;
    }
    .stat-box {
        background: #fff; border: 1px solid #e5e5e5;
        border-radius: var(--radius-md); padding: 24px;
        text-align: center; transition: 0.2s;
    }
    .stat-box:hover { border-color: var(--primary-30); transform: translateY(-3px); }
    .stat-box.highlight { background: var(--primary-50); border-color: var(--primary-50); color: #fff; }
    .stat-box.highlight .stat-label { color: rgba(255,255,255,0.8); }
    .stat-box.highlight .stat-val { color: #fff; }
    
    .stat-label { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 8px; }
    .stat-val { font-size: 26px; font-weight: 800; color: var(--primary-80); }

    /* CONTENT LAYOUT - HYBRID (2/3 LEFT + 1/3 RIGHT) */
    .content-wrapper {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 60px;
        margin-bottom: 100px;
    }
    
    /* Left Column */
    .main-content { font-size: 18px; }
    .main-content p { line-height: 1.8; margin-bottom: 24px; color: #444; }

    /* Right Column (Sticky Steps) */
    .sidebar-steps {
        position: sticky; top: 40px;
        background: var(--primary-10);
        padding: 30px;
        border-radius: var(--radius-md);
        height: fit-content;
    }
    .step-item { position: relative; padding-left: 30px; padding-bottom: 30px; border-left: 2px solid var(--primary-30); }
    .step-item:last-child { border-left: 2px solid transparent; padding-bottom: 0; }
    .step-dot {
        position: absolute; left: -11px; top: 0;
        width: 20px; height: 20px;
        background: var(--primary-50);
        border: 4px solid #fff; border-radius: 50%;
    }
    .step-title { font-size: 18px; font-weight: 700; margin-bottom: 5px; color: var(--primary-80); }
    .step-desc { font-size: 14px; margin: 0; line-height: 1.5; }

    /* FULL WIDTH SECTIONS WITHIN CONTAINER */
    .section-full { margin-bottom: 100px; }
    .section-head { text-align: center; margin-bottom: 50px; font-size: 32px; }

    /* CITY PRICES - BAR CHART STYLE (THE "GOOD" ONE) */
    .prices-list {
        display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px;
    }
    .price-bar-item {
        display: flex; align-items: center; justify-content: space-between;
        background: #fff; border: 1px solid #f0f0f0;
        padding: 12px 20px; border-radius: 12px;
    }
    .price-bar-city { width: 30%; font-weight: 600; font-size: 15px; }
    .price-bar-track {
        flex: 1; height: 8px; background: var(--primary-10);
        border-radius: 4px; margin: 0 20px; position: relative; overflow: hidden;
    }
    .price-bar-fill { height: 100%; background: var(--primary-50); border-radius: 4px; }
    .price-bar-val { width: 20%; text-align: right; font-weight: 700; color: var(--primary-80); font-size: 15px; }

    /* OFERTEO BANNER */
    .oferteo-box {
        background: linear-gradient(135deg, #fff 0%, var(--primary-10) 100%);
        border: 1px solid var(--primary-20);
        border-radius: var(--radius-md);
        padding: 50px; text-align: center;
        margin-bottom: 80px;
    }
/* --- SYSTEM BUTTONÓW --- */

/* 1. BAZA + CZERWONY (Domyślny, np. "Znajdź firmę") */
.btn-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 28px;
    border-radius: 50px; /* Nowoczesna "pastylka" */
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    
    /* Styl domyślny: Accent Red */
    background: var(--accent-highlight); 
    color: #fff;
    box-shadow: 0 4px 15px rgba(236, 67, 82, 0.25);
}
.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 67, 82, 0.35);
}

/* 2. FIOLETOWY (Primary-50) */
.btn-action.btn-purple {
    background: var(--primary-50);
    box-shadow: 0 4px 15px rgba(102, 93, 162, 0.25);
}
.btn-action.btn-purple:hover {
    background: var(--primary-80); /* Ciemniejszy fiolet po najechaniu */
}

/* 3. SZARY (Delikatny) */
.btn-action.btn-gray {
    background: var(--primary-10);
    color: var(--primary-80);
    box-shadow: none;
}
.btn-action.btn-gray:hover {
    background: var(--primary-20);
    color: var(--primary-50);
}

    /* RELATED SERVICES (CARDS) */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    .srv-card {
        background: #fff; border: 1px solid #eee; border-radius: var(--radius-md);
        overflow: hidden; transition: 0.2s; display: flex; flex-direction: column;
    }
    .srv-card:hover { border-color: var(--primary-40); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
    .srv-body { padding: 25px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
    .srv-price { font-size: 13px; text-transform: uppercase; color: var(--primary-50); font-weight: 700; margin-bottom: 8px; }
    .srv-title { font-size: 18px; margin: 0; font-weight: 700; }
    .srv-footer { background: var(--primary-bg); padding: 12px 25px; text-align: right; font-size: 13px; color: var(--text-light); }

    /* GUIDES (ARTICLES) */
    .guides-grid {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px;
    }
    .guide-card { display: block; }
    .guide-img { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/10; margin-bottom: 15px; }
    .guide-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
    .guide-card:hover .guide-img img { transform: scale(1.05); }
    .guide-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }

    /* FAQ */
    .faq-item { border-bottom: 1px solid #eee; }
    .faq-btn {
        width: 100%; text-align: left; padding: 25px 0; background: none; border: none;
        font-size: 18px; font-weight: 700; color: var(--primary-80); cursor: pointer;
        display: flex; justify-content: space-between;
    }
    .faq-content { display: none; padding-bottom: 25px; color: var(--text-light); }
    .faq-item.active .faq-content { display: block; }
    .faq-icon { transition: 0.3s; }
    .faq-item.active .faq-icon { transform: rotate(45deg); }

    /* VOTING */
    .voting-flex { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 5px; }
    .vote-icon { width: 30px; height: 30px; cursor: pointer; opacity: 0.6; transition: 0.2s; }
    .vote-icon:hover { opacity: 1; transform: scale(1.1); }
    .vote-score { font-size: 20px; font-weight: 800; min-width: 40px; }
    .pos { color: #27ae60; } .neg { color: #e74c3c; }

    /* FOOTER */
    .site-footer { border-top: 1px solid #eee; padding: 60px 0; margin-top: 100px; color: var(--text-light); font-size: 15px; }
    .footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }

    @media (max-width: 1024px) {
        .hero-grid { grid-template-columns: 1fr; gap: 40px; }
        .hero-image-container { order: -1; min-height: 300px; }
        .stats-bar { grid-template-columns: 1fr 1fr; }
        .content-wrapper { grid-template-columns: 1fr; }
        .sidebar-steps { position: static; }
        .prices-list, .services-grid, .guides-grid, .footer-grid { grid-template-columns: 1fr; }
    }


/* =========================================
   NEW STYLES FOR PRZEWODNIK.PHP (2026)
   ========================================= */

/* EDITORIAL HEADER */
.guide-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.guide-meta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 20px;
    flex-wrap: wrap;
}

.guide-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid #eee;
    font-weight: 500;
}

/* WIDE HERO IMAGE */
.guide-hero-wide {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 80px;
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
}

.guide-hero-wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    display: flex;
    align-items: flex-end;
    padding: 40px;
    color: #fff;
}

/* CONTENT TYPOGRAPHY override for reading */
.article-body {
    font-size: 19px;
    line-height: 1.85;
    color: #2c2c2c;
}
.article-body h2 { margin-top: 2rem; }
.article-body ul, .article-body ol { margin-bottom: 2rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.8rem; }

/* SIDEBAR WIDGETS */
.sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.checklist-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.checklist-ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--primary-80);
}
.checklist-ul li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 0;
    color: var(--primary-white);
    background: #27ae60;
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}

/* PRICE LIST (MODERN TABLE LOOK) */
.price-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.sort-pills {
    display: flex;
    gap: 10px;
    background: var(--primary-10);
    padding: 5px;
    border-radius: 50px;
}

.sort-btn {
    border: none;
    background: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-80);
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-btn.active {
    background: var(--primary-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    color: var(--primary-50);
}

.sort-btn svg { width: 12px; height: 12px; opacity: 0.5; }
.sort-btn.active svg { opacity: 1; }

.prices-modern-list {
    display: grid;
    gap: 12px;
}

.price-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 12px 30px;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.price-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: var(--primary-20);
    z-index: 2;
}

.price-row__name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-80);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-row__val {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-50);
    background: var(--primary-10);
    padding: 6px 16px;
    border-radius: 8px;
}

.badge-top {
    font-size: 10px;
    text-transform: uppercase;
    background: #ec4352;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* COMPARISON WIDGET */
.compare-widget-box {
    background: linear-gradient(135deg, var(--primary-10) 0%, #fff 100%);
    border: 1px solid var(--primary-20);
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
}

.compare-inputs-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    max-width: 800px;
    margin: 30px auto;
}

.vs-badge {
    font-weight: 800;
    color: var(--primary-20);
    font-size: 24px;
}

.custom-select-wrapper { position: relative; }
.custom-select-input {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #fff;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-80);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: 0.2s;
}
.custom-select-input:focus { outline: none; border-color: var(--primary-50); }

.dropdown-options {
    position: absolute;
    top: 110%; left: 0; width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    text-align: left;
    border: 1px solid #f0f0f0;
}

.dropdown-options li {
    padding: 12px 20px;
    cursor: pointer;
    transition: 0.1s;
    font-size: 15px;
}
.dropdown-options li:hover { background: var(--primary-10); }

/* RELATED MOSAIC REFRESH */
.mosaic-3-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 20px;
}
.tile-main { grid-row: 1 / -1; } /* Left big tile */
.tile-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
}
.tile-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.tile-item:hover img { transform: scale(1.05); }
.tile-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}
.tile-overlay h3 { color: #fff; margin: 0; font-size: 32px; }

@media (max-width: 900px) {
    .compare-inputs-grid { grid-template-columns: 1fr; }
    .vs-badge { display: none; }
    .mosaic-3-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
}

/* =========================================
   CATEGORY PAGE STYLES (PRZEWODNIKI.PHP)
   ========================================= */

/* 1. HERO HUB */
.cat-hero-section {
    padding: 60px 0 80px 0;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, #fcfcfc 0%, #fff 100%);
    position: relative;
    border-bottom: 1px solid var(--primary-10);
    margin-bottom: 40px;
}
.cat-hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 100%;
    background: radial-gradient(ellipse at top, rgba(102, 93, 162, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.cat-hero-content {
    position: relative; z-index: 1;
    max-width: 800px; margin: 0 auto;
}
.cat-hero-badges {
    display: flex; justify-content: center; gap: 10px; margin-bottom: 24px;
}
.badge-pill {
    background: var(--primary-10); color: var(--primary-50);
    padding: 6px 14px; border-radius: 30px; font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-pill-outline {
    border: 1px solid var(--primary-20); color: var(--text-light);
    padding: 6px 14px; border-radius: 30px; font-size: 13px; font-weight: 600;
}
.cat-hero-desc {
    font-size: 20px; line-height: 1.6; color: var(--text-light); max-width: 600px; margin: 0 auto;
}

/* 2. BENTO GRID (POPULAR) - FULL IMAGE STYLE */
.section-head-left {
    margin-bottom: 40px;
    text-align: left;
}
.section-head-left h2 { font-size: 28px; margin-bottom: 10px; }
.section-head-left p { color: var(--text-light); margin: 0; font-size: 16px; }

.bento-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    height: 450px;
    margin-bottom: 80px;
}

.bento-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    display: block;
    background: #000; /* Fallback */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(38, 35, 65, 0.15);
}

.bento-item:hover .bento-bg-img {
    transform: scale(1.05);
}

.bento-bg-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    z-index: 0;
    opacity: 0.9;
}

/* Gradient Overlay - Darken bottom for text readability */
.bento-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.bento-tag {
    color: #fff;
    background: var(--primary-50);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
    align-self: flex-start;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.bento-item h3 {
    font-size: 28px;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    /* Usuwamy gradientowy tekst ze starej wersji, teraz jest biały na ciemnym tle */
    background: none;
    -webkit-text-fill-color: initial; 
}

/* Side Column Styles */
.bento-side-col {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

.bento-side-col .bento-item h3 {
    font-size: 20px; /* Mniejszy font dla bocznych kafelków */
}

.bento-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    margin-top: 5px;
}

@media (max-width: 992px) {
    .bento-grid { grid-template-columns: 1fr; height: auto; }
    .bento-side-col { height: 500px; margin-top: 0; }
    .bento-item.bento-main { height: 300px; }
}

/* 3. SPLIT LAYOUT + STICKY NAV */
.split-layout-sticky {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 100px;
}
.sticky-nav-col {
    position: sticky;
    top: 30px;
    background: var(--primary-white);
    /* border-right: 1px solid var(--primary-10); */
}
.nav-heading {
    font-size: 13px; text-transform: uppercase; color: var(--text-light); letter-spacing: 1px; margin-bottom: 20px;
    padding-left: 10px;
}
.dynamic-nav-pills {
    display: flex; flex-direction: column; gap: 4px;
}
.nav-pill-btn {
    appearance: none; border: none; background: transparent;
    text-align: left;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px; font-weight: 500; color: var(--text-main);
    transition: all 0.2s;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-pill-btn:hover {
    background: var(--primary-10); color: var(--primary-80);
}
.nav-pill-btn.active {
    background: var(--primary-50); color: #fff; box-shadow: 0 4px 12px rgba(102, 93, 162, 0.3);
}
.count-badge {
    font-size: 12px; background: rgba(0,0,0,0.05); padding: 2px 8px; border-radius: 20px;
    transition: background 0.2s;
}
.nav-pill-btn.active .count-badge {
    background: rgba(255,255,255,0.2); color: #fff;
}

.fade-in-wrapper {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .bento-grid { grid-template-columns: 1fr; height: auto; }
    .bento-side-col { display: none; /* Ukrywamy mniejsze na mobile lub zmieniamy layout */ }
    /* Opcjonalnie na mobile wyświetlamy side jako grid pod spodem */
    .bento-side-col { display: grid; margin-top: 20px; }
    .bento-img-wrap { height: 200px; }
    
    .split-layout-sticky { grid-template-columns: 1fr; gap: 30px; }
    .sticky-nav-col { position: static; border: none; margin-bottom: 30px; }
    
    /* Horizontal Scroll Menu for Mobile */
    .dynamic-nav-pills {
        flex-direction: row; overflow-x: auto; padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .nav-pill-btn { white-space: nowrap; border: 1px solid var(--primary-10); }
    .nav-pill-btn.active { border-color: var(--primary-50); }
}

/* =========================================
   CATEGORY HUB GRID (PRZEWODNIKI_KAT.PHP)
   ========================================= */

.hub-grid {
    display: grid;
    /* 4 kolumny na dużych ekranach dla efektu "ściany" */
    grid-template-columns: repeat(4, 1fr); 
    grid-auto-rows: 280px; /* Stała wysokość bazowa wiersza */
    gap: 24px;
}

/* Modyfikatory rozmiaru kafelków w Hubie */
.hub-span-2-col {
    grid-column: span 2;
}

.hub-span-2-row {
    grid-row: span 2;
}

/* Responsywność Huba */
@media (max-width: 1200px) {
    .hub-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 kolumny na laptopach */
    }
}

@media (max-width: 900px) {
    .hub-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na tabletach */
        grid-auto-rows: 220px;
    }
    /* Na tabletach resetujemy skomplikowane spany, żeby nie robiły dziur */
    .hub-span-2-row { grid-row: span 1; }
    /* Szerokie kafle (span-2-col) mogą zostać, wyglądają dobrze na 2 kolumnach */
}

@media (max-width: 600px) {
    .hub-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .bento-item {
        height: 200px; /* Stała wysokość na mobilu */
    }
    .hub-span-2-row, .hub-span-2-col {
        height: 200px; 
    }
    /* Wyjątek: Główny kafel Budowy lekko wyższy */
    .hub-span-2-row.hub-span-2-col {
        height: 280px;
    }
}


/* =========================================
   ARTICLE PAGE (PORADNIK.PHP 2026)
   ========================================= */

/* --- READING PROGRESS --- */
.reading-progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 4px;
    z-index: 9999; pointer-events: none;
}
.reading-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--primary-50), var(--accent-highlight));
    transition: width 0.1s ease;
}

/* --- ARTICLE HEADER --- */
.article-header {
    text-align: center;
    max-width: 900px;
    margin: 40px auto 50px auto;
}

.breadcrumbs-center {
    display: flex; justify-content: center; gap: 8px;
    font-size: 13px; text-transform: uppercase; color: var(--text-light);
    margin-bottom: 25px; letter-spacing: 0.5px;
}
.breadcrumbs-center a:hover { color: var(--primary-50); text-decoration: underline; }

.article-title {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.article-meta-row {
    display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap;
}

.meta-pill {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #eee;
    padding: 6px 16px; border-radius: 50px;
    font-size: 14px; font-weight: 500; color: var(--text-light);
}
.meta-pill.pill-accent {
    border-color: var(--primary-20);
    color: var(--primary-50);
    background: var(--primary-10);
    transition: 0.2s;
}
.meta-pill.pill-accent:hover { background: var(--primary-20); transform: translateY(-2px); }

/* --- HERO IMAGE --- */
.article-hero-wide {
    width: 100%; height: auto; aspect-ratio: 21/9;
    min-height: 300px; max-height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0 0 60px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.article-hero-wide img { width: 100%; height: 100%; object-fit: cover; }

/* --- GRID LAYOUT --- */
.article-grid {
    display: grid;
    grid-template-columns: 1fr 340px; /* Treść + Sidebar */
    gap: 60px;
    margin-bottom: 100px;
}

.article-content {
    min-width: 0; /* Zapobiega rozjeżdżaniu na flex/grid */
}

/* --- TYPOGRAPHY (ARTICLE BODY) --- */
.article-body {
    font-size: 19px;
    line-height: 1.8;
    color: #2c2c2c;
    font-family: 'Plus Jakarta Sans', sans-serif; /* Upewnienie */
}

.article-body p { margin-bottom: 1.5em; color: #333; font-weight: 400; }
/* Pierwszy paragraf jako Lead */
.article-body > p:first-of-type {
    font-size: 22px; line-height: 1.6; color: var(--primary-80); font-weight: 500;
}

.article-body h2 {
    font-size: 30px; margin: 50px 0 25px 0;
    padding-bottom: 15px; border-bottom: 2px solid var(--primary-10);
    position: relative;
}
.article-body h2::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background: var(--primary-50);
}

.article-body h3 { font-size: 24px; margin: 40px 0 20px 0; }
.article-body ul, .article-body ol { margin-bottom: 30px; padding-left: 20px; }
.article-body li { margin-bottom: 10px; padding-left: 10px; }
.article-body blockquote {
    border-left: 4px solid var(--primary-50);
    background: var(--primary-10);
    margin: 30px 0; padding: 25px;
    font-style: italic; font-size: 20px; color: var(--primary-80);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --- IN-ARTICLE SERVICES (WIDGET W TREŚCI) --- */
.in-article-services {
    background: #fff; border: 1px solid #f0f0f0;
    border-radius: var(--radius-md);
    padding: 30px; margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.in-article-header { margin-top: 0 !important; font-size: 20px !important; border: none !important; }
.in-article-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px;
}
.mini-service-card {
    display: block; padding: 15px;
    background: var(--primary-bg); border-radius: 10px;
    border: 1px solid transparent; transition: 0.2s;
}
.mini-service-card:hover { border-color: var(--primary-20); background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.mini-service-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; margin-bottom: 5px; color: var(--primary-80); }
.mini-service-price { font-size: 14px; color: var(--primary-50); font-weight: 700; }
.mini-service-price small { color: var(--text-light); font-weight: 400; }

/* --- SIDEBAR --- */
.article-sidebar {
    position: relative;
}
.sticky-sidebar-inner {
    position: sticky; top: 100px; /* Sticky effect */
    display: flex; flex-direction: column; gap: 30px;
}

/* WIDGET: TOC (Spis treści) */
.toc-widget {
    background: var(--primary-bg);
    padding: 25px; border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-20);
}
.toc-widget h4 { font-size: 16px; text-transform: uppercase; margin-bottom: 15px; color: var(--text-light); letter-spacing: 1px; }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-item a {
    display: block; padding: 8px 0; font-size: 15px; color: var(--primary-80);
    border-bottom: 1px solid #eee; transition: 0.2s;
}
.toc-item a:hover { color: var(--primary-50); padding-left: 5px; }
.toc-item-sub a {
    padding-left: 15px; font-size: 14px; color: var(--text-light);
}

/* WIDGET: CALCULATOR */
.widget-calc {
    background: linear-gradient(145deg, #fff 0%, var(--primary-10) 100%);
    border: 1px solid #eee; border-radius: var(--radius-md);
    overflow: hidden; text-align: center;
}
.widget-calc-img { height: 120px; overflow: hidden; }
.widget-calc-img img { width: 100%; height: 100%; object-fit: cover; }
.widget-calc-content { padding: 20px; }
.widget-calc-content h5 { margin-bottom: 5px; font-size: 18px; }
.widget-calc-content p { font-size: 13px; margin-bottom: 15px; line-height: 1.4; }

/* WIDGET: SHARE */
.share-label { display: block; font-size: 14px; margin-bottom: 10px; color: var(--text-light); text-align: center; }

/* --- READ NEXT SECTION --- */
.read-next-section { margin-top: 60px; padding-top: 60px; border-top: 1px solid #f0f0f0; }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .article-grid { grid-template-columns: 1fr; }
    .article-sidebar { order: 2; }
    .sticky-sidebar-inner { position: static; }
    .article-hero-wide { aspect-ratio: 16/9; }
    
    /* Na mobile TOC przenosimy nad treść wizualnie, jeśli chcemy, 
       ale w kodzie jest w sidebarze. Dla prostoty zostawiamy na dole 
       lub można dodać skrypt przenoszący. */
}

@media (max-width: 768px) {
    .article-title { font-size: 32px; }
    .article-body { font-size: 17px; }
    .mini-service-card { display: flex; justify-content: space-between; align-items: center; }
    .mini-service-head { margin: 0; }
    .mini-service-arrow { display: none; }
}