/* CYFROWA PORADNIA - ARTICLES.CSS */
/* Style specyficzne dla artykułów medycznych */

/* === ZMIENNE GLOBALNE === */
:root {
    color-scheme: light dark;
    --primary: #00b4a6; 
    --primary-dark: #009688; 
    --primary-light: #4dd0e1; 
    --accent: #26c6da; 
    --secondary: #0077be;
    --gradient-primary: linear-gradient(135deg, #00b4a6 0%, #26c6da 50%, #0077be 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fdff 100%);
    --bg-main: #fafcff; 
    --bg-card: #ffffff; 
    --bg-input: #f1f8ff; 
    --bg-header: rgba(255, 255, 255, 0.85);
    --text-primary: #1a365d; 
    --text-secondary: #4a5568; 
    --text-muted: #718096;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); 
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-focus: 0 0 0 3px rgba(0, 180, 166, 0.3);
    --success: #10b981; 
    --warning: #f59e0b; 
    --danger: #ef4444;
    --border-color: rgba(0, 180, 166, 0.2);
    --radius: 12px; 
    --radius-lg: 16px; 
    --radius-full: 9999px; 
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
    --bg-main: #0a0e1a; 
    --bg-card: #1a2332; 
    --bg-input: #233044; 
    --bg-header: rgba(26, 35, 50, 0.85);
    --text-primary: #f7fafc; 
    --text-secondary: #cbd5e0; 
    --text-muted: #a0aec0;
    --border-color: rgba(0, 180, 166, 0.3); 
    --shadow-focus: 0 0 0 3px rgba(0, 180, 166, 0.4);
    --gradient-card: linear-gradient(145deg, #1a2332 0%, #1e293b 100%);
}

/* === PODSTAWY === */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
    text-rendering: optimizeLegibility;
}

body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    color: var(--text-secondary); 
    background-color: var(--bg-main); 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { 
    color: var(--text-primary); 
    font-family: 'Poppins', sans-serif; 
    font-weight: 700; 
    line-height: 1.2; 
    margin: 0;
}

/* === ACCESSIBILITY === */
.sr-only { 
    position: absolute; 
    width: 1px; 
    height: 1px; 
    padding: 0; 
    margin: -1px; 
    overflow: hidden; 
    clip: rect(0, 0, 0, 0); 
    white-space: nowrap; 
    border: 0; 
}

.antialiased { 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
}

/* === TŁO DEKORACYJNE === */
.bg-decoration { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    pointer-events: none; 
    background-image: radial-gradient(circle at 10% 10%, hsl(175 80% 90% / 0.5), transparent 30%), 
                      radial-gradient(circle at 90% 80%, hsl(190 80% 90% / 0.5), transparent 30%); 
}

.dark .bg-decoration { 
    background-image: radial-gradient(circle at 10% 10%, hsl(175 100% 15% / 0.5), transparent 30%), 
                      radial-gradient(circle at 90% 80%, hsl(190 100% 15% / 0.5), transparent 30%); 
}

/* === NAGŁÓWEK === */
.header { 
    position: sticky; 
    top: 0; 
    width: 100%; 
    z-index: 50; 
    background-color: var(--bg-header); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 
    border-bottom: 1px solid var(--border-color); 
    transition: var(--transition); 
}

.header.scrolled { 
    box-shadow: var(--shadow-md); 
    background-color: var(--bg-card); 
}

.nav-container { 
    max-width: 1280px; 
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0.75rem 1.5rem; 
    height: 4rem; 
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    font-size: 1.25rem; 
    font-weight: 800; 
    color: var(--text-primary); 
    text-decoration: none; 
}

.logo-icon { 
    width: 48px; 
    height: 48px; 
    border-radius: var(--radius); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    animation: medical-heartbeat 2s ease-in-out infinite;
    background: none;
}

@keyframes medical-heartbeat {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 180, 166, 0.4));
    }
    15% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(0, 180, 166, 0.6));
    }
    30% { 
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 180, 166, 0.4));
    }
    45% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(0, 180, 166, 0.6));
    }
    60% { 
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 180, 166, 0.4));
    }
}

.nav-menu { 
    display: none; 
    gap: 1.5rem; 
}

.nav-link { 
    color: var(--text-secondary); 
    text-decoration: none; 
    font-weight: 500; 
    transition: var(--transition); 
    position: relative; 
    padding: 0.25rem 0; 
}

.nav-link:hover { 
    color: var(--primary); 
}

.nav-link::after { 
    content: ''; 
    position: absolute; 
    bottom: -2px; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: var(--primary); 
    transition: width 0.3s ease; 
}

.nav-link:hover::after { 
    width: 100%; 
}

.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
}

/* === PRZEŁĄCZNIK MOTYWU === */
.theme-switch-wrapper { 
    display: flex; 
    align-items: center; 
}

.theme-switch { 
    display: inline-block; 
    height: 24px; 
    position: relative; 
    width: 44px; 
}

.theme-switch input { 
    display: none; 
}

.slider { 
    background-color: #ccc; 
    bottom: 0; 
    cursor: pointer; 
    left: 0; 
    position: absolute; 
    right: 0; 
    top: 0; 
    transition: .4s; 
    border-radius: 24px; 
}

.slider:before { 
    background-color: #fff; 
    bottom: 4px; 
    content: ""; 
    height: 16px; 
    left: 4px; 
    position: absolute; 
    transition: .4s; 
    width: 16px; 
    border-radius: 50%; 
}

input:checked + .slider { 
    background-color: var(--primary); 
}

input:checked + .slider:before { 
    transform: translateX(20px); 
}

/* === MENU MOBILNE === */
.mobile-menu-btn { 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--text-primary); 
    padding: 0.5rem; 
}

.mobile-menu { 
    display: none; 
    flex-direction: column; 
    padding: 1rem; 
    border-top: 1px solid var(--border-color); 
    background-color: var(--bg-card); 
}

.mobile-menu.active { 
    display: flex; 
}

.mobile-menu .nav-link { 
    padding: 0.75rem; 
    width: 100%; 
    text-align: center; 
}

/* === BREADCRUMBS === */
.breadcrumbs {
    max-width: 1024px;
    margin: 0 auto 2rem auto;
    padding: 0 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    margin: 0 0.5rem;
}

/* === SPIS TREŚCI - KOMPAKTOWY === */
.toc-compact {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.25rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.toc-compact-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.toc-icon {
    font-size: 1rem;
}

.toc-compact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.toc-compact-list a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.toc-compact-list a:hover {
    color: var(--primary-dark);
    background: rgba(0, 180, 166, 0.1);
    border-bottom-color: var(--primary);
    transform: translateY(-1px);
}

/* === SEKCJE I KONTENERY === */
.info-section { 
    padding: 4rem 1.5rem; 
}

.info-container { 
    max-width: 1024px; 
    margin: 0 auto; 
    text-align: left; 
}

/* === ANIMACJE SCROLL === */
.animate-on-scroll { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
}

.animate-on-scroll.is-visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* === STYLE ARTYKUŁÓW === */
.article-page .hero-title { 
    font-size: clamp(2.2rem, 5vw, 3.2rem); 
    font-weight: 800; 
    margin-bottom: 1rem; 
    text-align: center; 
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.1;
}

.article-page .hero-title strong { 
    background: var(--gradient-primary); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
    color: var(--primary); /* fallback for unsupported browsers */
}

.article-page .article-meta { 
    text-align: center; 
    color: var(--text-muted); 
    margin-bottom: 3rem; 
    font-size: 0.95rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-page .article-main-image { 
    width: 100%; 
    max-width: 800px; 
    height: auto; 
    display: block; 
    margin: 0 auto 3rem auto; 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-lg); 
}

.article-page .article-intro { 
    font-size: 1.2rem; 
    color: var(--text-primary); 
    max-width: 800px; 
    margin: 0 auto 3rem auto; 
    line-height: 1.7; 
    font-weight: 500;
    padding: 1.5rem;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.article-page h2 { 
    font-size: 1.8rem; 
    margin-top: 3.5rem; 
    margin-bottom: 1.5rem; 
    padding-bottom: 0.75rem; 
    border-bottom: 2px solid var(--border-color); 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    scroll-margin-top: 100px; /* Offset for sticky header */
}

.article-page h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
}

.article-page h3 { 
    font-size: 1.5rem; 
    margin-top: 2.5rem; 
    margin-bottom: 1rem; 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--primary-dark);
    scroll-margin-top: 100px;
}

.article-page h4 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-primary);
}

.article-page p, 
.article-page ul, 
.article-page ol { 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
    margin-bottom: 1.25rem; 
    line-height: 1.7;
}

.article-page ul, 
.article-page ol { 
    padding-left: 1.5rem; 
}

.article-page ul { 
    list-style-type: disc; 
}

.article-page ul li { 
    margin-bottom: 0.75rem; 
    position: relative;
}

.article-page ul li::marker {
    color: var(--primary);
}

.article-page ol li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.article-page ol li::marker {
    color: var(--primary);
    font-weight: 600;
}

.article-page strong { 
    color: var(--text-primary); 
    font-weight: 600; 
}

.article-page em {
    font-style: italic;
    color: var(--text-primary);
}

.article-page a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.article-page a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

/* === KOMPONENTY SPECJALNE === */
.article-disclaimer { 
    margin: 3rem auto; 
    padding: 1.5rem; 
    background-color: var(--bg-input); 
    border-left: 4px solid var(--primary); 
    font-style: italic; 
    color: var(--text-secondary); 
    max-width: 800px;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow);
}

.article-disclaimer strong {
    color: var(--text-primary);
}

.sources-list { 
    list-style-type: decimal; 
    padding-left: 1.5rem; 
    margin: 2rem auto; 
    color: var(--text-secondary); 
    max-width: 800px;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.sources-list li { 
    margin-bottom: 0.75rem; 
    line-height: 1.6;
}

.sources-list em {
    color: var(--primary-dark);
    font-weight: 500;
}

.medical-review {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #f0f7f7;
    border-left: 5px solid #00b4a6;
    border-radius: 0 8px 8px 0;
    text-align: left;
}

.dark .medical-review {
    background-color: rgba(240, 247, 247, 0.1);
    border-left-color: var(--primary);
}

.medical-review p { 
    margin: 0; 
    line-height: 1.6;
}

/* === CTA BOX === */
.cta-box {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--gradient-card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-box h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    margin-top: 0;
}

.cta-box p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    max-width: none;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
    border-bottom: none;
}

/* === UNIWERSALNE STYLE FAQ DLA WSZYSTKICH FORMATÓW === */

/* FAQ jako details/summary (główny format) */
.faq-section {
    max-width: 800px;
    margin: 3rem auto;
}

.faq-section details {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.faq-section details:last-of-type {
    margin-bottom: 0;
}

.faq-section summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    background: var(--bg-input);
    transition: var(--transition);
}

.faq-section summary:hover {
    background: rgba(0, 180, 166, 0.05);
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-section details[open] summary::after {
    transform: rotate(45deg);
}

.faq-section details p {
    padding: 1.25rem;
    margin: 0;
    border-top: 1px solid var(--border-color);
    line-height: 1.6;
}

/* FAQ jako zwykłe details bez klasy .faq-section */
.article-page details {
    max-width: 800px;
    margin: 1rem auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.article-page details:last-of-type {
    margin-bottom: 2rem;
}

.article-page details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    background: var(--bg-input);
    transition: var(--transition);
}

.article-page details summary:hover {
    background: rgba(0, 180, 166, 0.05);
}

.article-page details summary::-webkit-details-marker {
    display: none;
}

.article-page details summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.article-page details[open] summary::after {
    transform: rotate(45deg);
}

.article-page details p {
    padding: 1.25rem;
    margin: 0;
    border-top: 1px solid var(--border-color);
    line-height: 1.6;
}

/* FAQ jako stary format z .faq-container */
.faq-container {
    max-width: 800px;
    margin: 3rem auto;
}

.faq-container h3 {
    margin: 2rem auto 0.5rem auto;
    padding: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius) var(--radius) 0 0;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    max-width: 800px;
}

.faq-container h3:hover {
    background: rgba(0, 180, 166, 0.05);
}

.faq-container h3::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.2s;
}

.faq-container p {
    margin: 0 auto 1rem auto;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-sm);
    line-height: 1.6;
    max-width: 800px;
}

/* FAQ jako lista z ID #faq */
#faq {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#faq details {
    max-width: 800px;
    margin: 1rem auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

#faq details:last-of-type {
    margin-bottom: 2rem;
}

#faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    background: var(--bg-input);
    transition: var(--transition);
}

#faq summary:hover {
    background: rgba(0, 180, 166, 0.05);
}

#faq summary::-webkit-details-marker {
    display: none;
}

#faq summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}

#faq details[open] summary::after {
    transform: rotate(45deg);
}

#faq details p {
    padding: 1.25rem;
    margin: 0;
    border-top: 1px solid var(--border-color);
    line-height: 1.6;
}

/* === STOPKA === */
.footer { 
    background-color: var(--text-primary); 
    color: var(--bg-main); 
    padding: 3rem 1.5rem; 
    text-align: center; 
    margin-top: 4rem; 
}

.footer-container { 
    max-width: 1280px; 
    margin: 0 auto; 
}

.footer-logo { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.75rem; 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: var(--bg-main); 
    margin-bottom: 1.5rem; 
}

.footer-links { 
    display: flex; 
    justify-content: center; 
    gap: 1.5rem; 
    margin-bottom: 1.5rem; 
    flex-wrap: wrap;
}

.footer-links a { 
    color: #cfe7ff; 
    text-decoration: none; 
    font-weight: 500; 
    transition: var(--transition); 
}

.footer-links a:hover { 
    color: white; 
}

.footer-copy { 
    color: var(--text-muted); 
    font-size: 0.875rem; 
}

/* === POPRAWIONE I UJEDNOLICONE STYLE DLA KAFELKÓW W BAZIE WIEDZY === */
.article-card .article-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.dark .article-card .article-category {
    background-color: #233044;
    color: var(--primary-light);
}

.article-card .article-read-more {
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    display: inline-block;
}

.article-card .article-read-more:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* === STYLE DLA TABELI PORÓWNAWCZEJ === */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table thead th {
    background-color: var(--bg-input);
    color: var(--text-primary);
    font-weight: 600;
}

.dark .comparison-table thead th {
    background-color: #233044;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: var(--bg-input);
}

.dark .comparison-table tbody tr:nth-child(even) {
    background-color: rgba(35, 48, 68, 0.5);
}

/* === STYLE DLA SEKCJI "POWIĄZANE ARTYKUŁY" === */
.internal-links {
    margin: 3rem auto;
    padding: 1.5rem;
    background: var(--bg-input);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    max-width: 800px;
}

.internal-links strong {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.internal-links ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.internal-links li {
    margin-bottom: 0.5rem;
}

/* === POPRAWKI SZEROKOŚCI DLA ELEMENTÓW === */
.comparison-table-wrapper {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
}

/* === WSPÓLNY SYSTEM PRZYCISKÓW === */
.btn {
    --btn-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    border: 0;
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border-bottom: none !important;
}

.btn-xl {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    width: 100%;
}

.btn-primary,
.article-page a.btn-primary {
    background: var(--gradient-primary);
    color: #fff !important;
}

.btn-primary:hover:not(:disabled),
.btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus), var(--shadow-lg);
}

.btn svg {
    flex: 0 0 auto;
    width: 20px; 
    height: 20px;
    stroke: currentColor;
}

/* === RESPONSIVE DESIGN === */
@media (min-width: 768px) { 
    .nav-menu { 
        display: flex; 
    } 
    .mobile-menu-btn { 
        display: none; 
    }
    
    .article-page .article-intro {
        padding: 2rem;
    }
    
    .breadcrumbs {
        padding: 0;
    }
}

@media (max-width: 767px) {
    .info-section {
        padding: 2rem 1rem;
    }
    
    .article-page .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .article-page h2 {
        font-size: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .article-page h3 {
        font-size: 1.3rem;
        margin-top: 2rem;
    }
    
    .article-page .article-intro {
        font-size: 1.1rem;
        padding: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .cta-box {
        margin: 2rem auto;
        padding: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .toc-compact {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .toc-compact-list {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .toc-compact-list a {
        display: block;
        padding: 0.5rem;
        text-align: center;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        background: rgba(0, 180, 166, 0.05);
    }
    
    /* Responsive dla FAQ */
    .faq-section,
    .article-page details,
    .faq-container,
    #faq details {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .faq-section summary,
    .article-page details summary,
    .faq-container h3,
    #faq summary {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-section details p,
    .article-page details p,
    .faq-container p,
    #faq details p {
        padding: 1rem;
    }
}

/* === OPTYMALIZACJA WYDAJNOŚCI === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
    
    .logo-icon {
        animation: none;
    }
}

/* ==========================================================================
   Article Components - Step-by-Step Box
   ========================================================================== */

.step-by-step {
    max-width: 800px;                  /* <<< KLUCZOWA ZMIANA */
    margin: 32px auto;                 /* <<< KLUCZOWA ZMIANA (centrowanie) */
    background-color: var(--bg-card);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.step-by-step strong {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 12px;
}

.step-by-step p {
    margin-top: 0;
    margin-bottom: 15px;
}

.step-by-step ol {
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.7;
}

.step-by-step ol li {
    margin-bottom: 8px;
}

/* === POPRAWIONE STYLE DLA TABELI === */

.table-responsive {
    max-width: 800px;
    margin: 2rem auto; /* Ustawia marginesy góra/dół i automatycznie centruje */
    overflow-x: auto; /* Umożliwia przewijanie poziome na małych ekranach */
    -webkit-overflow-scrolling: touch; /* Płynne przewijanie na iOS */
}

.table-responsive table {
    width: 100%; /* Tabela zajmuje 100% szerokości swojego kontenera */
    border-collapse: collapse; /* Łączy ramki komórek */
    font-size: 0.95rem;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden; /* Ukrywa wystające elementy, np. rogi */
    border: 1px solid var(--border-color);
}

.table-responsive th,
.table-responsive td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table-responsive thead th {
    background-color: var(--bg-input);
    color: var(--text-primary);
    font-weight: 600;
}

.dark .table-responsive thead th {
    background-color: #233044;
}

.table-responsive tbody tr:last-child td {
    border-bottom: none;
}

.table-responsive tbody tr:nth-child(even) {
    background-color: var(--bg-input);
}

.dark .table-responsive tbody tr:nth-child(even) {
    background-color: rgba(35, 48, 68, 0.5);
}