body{
    padding: 2rem;
}

  .article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    overflow-x: hidden;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3.125rem;
    margin-top: 2.5rem;
    max-width: 100%;
    overflow-x: hidden;
}

.main-content {
    background: white;
    border-radius: 0.9375rem;
    padding: 2.5rem;
    box-shadow: 0 0.5rem 1.875rem rgba(0,0,0,0.08);
    border: 1px solid rgba(41, 128, 185, 0.1);
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8fafc;
    padding: 0.9375rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 1rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #1565c0;
}

.breadcrumb-separator {
    color: #7f8c8d;
}

.breadcrumb-current {
    color: #1a252f;
    font-weight: 500;
}

/* Article header */
.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.875rem;
    border-bottom: 2px solid #e2e8f0;
}

.article-title {
    font-size: 2rem;
    color: #1a252f;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    word-wrap: break-word;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5625rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

        .question-box {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-left: 5px solid #007bff;
            padding: 1.5rem;
            margin-bottom: 2rem;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        }
        
        .question-box h2 {
            color: #007bff;
            margin-bottom: 1rem;
            font-size: 1.3rem;
        }
        
        .question-text {
            font-style: italic;
            color: #555;
            background: white;
            padding: 1rem;
            border-radius: 8px;
            border: 1px solid #dee2e6;
        }
        
        .answer-section {
            margin-top: 2rem;
        }

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7f8c8d;
    font-size: 1rem;
}

.meta-item svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
}

.article-tags {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}


.toc {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid #2980b9;
    padding: 1.5625rem;
    margin: 1.875rem 0;
    border-radius: 0.625rem;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0,0,0,0.08);
    overflow-x: hidden;
}

.toc h3 {
    color: #2980b9;
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin: 0.15rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.toc li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0.2rem; 
    color: #2980b9;
    font-weight: bold;
}

.toc a {
    color: #1a252f;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.3s;
    display: block;
    padding: 0.5rem 0;
    word-wrap: break-word;
}

.toc a:hover {
    color: #2980b9;
}

/* Article content styles */
.article-content h2, h2 {
    color: #1a252f;
    font-size: 2rem;
    margin: 2.8125rem 0 1.5625rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #2980b9;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
}

.article-content h3, h3 {
    color: #1a252f;
    font-size: 1.6rem;
    margin: 2.1875rem 0 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
}

.article-content h4 , h4{
    color: #1a252f;
    font-size: 1.3rem;
    margin: 1.75rem 0 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
}

.article-content p , p{
    margin-bottom: 1.375rem;
    line-height: 1.7;
    font-size: 1.0rem;
    text-align: justify;
    color: #2c3e50;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content ul,
.article-content ol , ul , ol{
    margin: 1.5625rem 0 1.5625rem 2.1875rem;
    line-height: 1.7;
}

.article-content li , li{
    margin-bottom: 0.75rem;
    color: #2c3e50;
    font-size: 1.0rem;
    line-height: 1.7;
    word-wrap: break-word;
}

/* Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-left: 5px solid #28a745;
    border-radius: 0.625rem;
    padding: 1.5625rem;
    margin: 1.5625rem 0;
    position: relative;
    overflow-x: hidden;
    word-wrap: break-word;
}

.highlight-box h4 {
    color: #155724;
    margin-bottom: 0.9375rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    line-height: 1.3;
}

.highlight-box h4::before {
    content: "✓";
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 1.5625rem;
    height: 1.5625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.highlight-box p {
    font-size: 0.925rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.highlight-box ul {
    margin-left: 1.5625rem;
}

.highlight-box li {
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 0.625rem;
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 5px solid #ffc107;
    border-radius: 0.625rem;
    padding: 1.5625rem;
    margin: 1.5625rem 0;
    overflow-x: hidden;
    word-wrap: break-word;
}

.warning-box h4 {
    color: #856404;
    margin-bottom: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.warning-box h4::before {
    content: "⚠";
    font-size: 1.3rem;
}

.warning-box p {
    font-size: 0.925rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.warning-box ul {
    margin-left: 1.5625rem;
}

.warning-box li {
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 0.625rem;
}

/* Tables */
.costs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5625rem 0;
    background: white;
    border-radius: 0.625rem;
    overflow: hidden;
    box-shadow: 0 0.1875rem 0.625rem rgba(0,0,0,0.05);
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.costs-table thead,
.costs-table tbody,
.costs-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.costs-table th,
.costs-table td {
    padding: 0.9375rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    min-width: 9.375rem;
    font-size: .925rem;
    white-space: normal;
    word-wrap: break-word;
}

.costs-table th {
    background: #2980b9;
    color: white;
    font-weight: 600;
}

.costs-table tr:hover {
    background: #f8f9fa;
}

/* Comparison grids */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 1.5625rem;
    margin: 1.5625rem 0;
    overflow-x: hidden;
}

.comparison-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 1.5625rem;
    box-shadow: 0 0.1875rem 0.625rem rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

.comparison-item:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.5rem 1.5625rem rgba(41, 128, 185, 0.1);
}

.comparison-item h4 {
    color: #1a252f;
    margin-bottom: 0.9375rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.comparison-item p {
    font-size: 0.925rem;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Steps */
.steps-container {
    margin: 1.875rem 0;
}

.step-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 1.5625rem;
    margin: 1.25rem 0;
    position: relative;
    padding-left: 5rem;
    box-shadow: 0 0.1875rem 0.625rem rgba(0,0,0,0.05);
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

.step-number {
    position: absolute;
    left: 1.5625rem;
    top: 1.5625rem;
    background: #2980b9;
    color: white;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.0rem;
}

.step-item strong {
    font-size: 0.925rem;
    display: block;
    margin-bottom: 0.625rem;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Social sharing */
.sharing-section {
    background: #f8fafc;
    border-radius: 0.625rem;
    padding: 1.5625rem;
    margin: 2.5rem 0;
    text-align: center;
    overflow-x: hidden;
}

.sharing-title {
    color: #1a252f;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.sharing-buttons {
    display: flex;
    justify-content: center;
    gap: 0.9375rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.875rem 1.375rem;
    border-radius: 1.5625rem;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.3125rem 0.9375rem rgba(0,0,0,0.2);
}

/* Author info */
.author-info-box {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 0.9375rem;
    padding: 1.875rem;
    margin: 2.5rem 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    overflow-x: hidden;
}

.author-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2980b9, #1565c0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.author-details h4 {
    color: #1a252f;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.author-details p {
    color: #7f8c8d;
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 1.0625rem;
    word-wrap: break-word;
}

/* Related articles */
.related-articles {
    background: #f8fafc;
    border-radius: 0.9375rem;
    padding: 1.875rem;
    margin: 2.5rem 0;
    overflow-x: hidden;
}

.related-title {
    color: #1a252f;
    font-size: 1.6rem;
    margin-bottom: 1.5625rem;
    font-weight: 600;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 1.25rem;
}

.related-item {
    background: white;
    border-radius: 0.625rem;
    padding: 1.25rem;
    box-shadow: 0 0.1875rem 0.625rem rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

.related-item:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.5rem 1.5625rem rgba(41, 128, 185, 0.1);
}

.related-item h5 {
    color: #1a252f;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.related-item p {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.5;
    word-wrap: break-word;
}

/* RESPONSYWNOŚĆ - TABLET */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.875rem;
    }
}

/* RESPONSYWNOŚĆ - MOBILE */
@media (max-width: 768px) {
    /* Podstawowe kontenery */
    .article-container {
        padding: 0 0.625rem;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .main-content {
        padding: 1.5625rem 0.9375rem;
        margin: 0;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
    }

    /* Tytuły */
    .article-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.25rem;
        word-wrap: break-word;
    }

    .article-content h2 , h2{
        font-size: 1.8rem;
        line-height: 1.3;
        margin: 2.1875rem 0 1.25rem;
        word-wrap: break-word;
    }

    .article-content h3 , h3{
        font-size: 1.5rem;
        line-height: 1.3;
        margin: 1.875rem 0 0.9375rem;
        word-wrap: break-word;
    }

    .article-content h4, h4 {
        font-size: 1.3rem;
        line-height: 1.3;
        margin: 1.5625rem 0 0.75rem;
        word-wrap: break-word;
    }

    /* Tekst */
    .article-content p , p{
        font-size: 1.1875rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .article-content li , li{
        font-size: 1.1875rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
    }

    /* Meta informacje */
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .meta-item {
        font-size: 1rem;
    }

    /* Breadcrumbs */
    .breadcrumb-list {
        font-size: 1rem;
        flex-wrap: wrap;
        gap: 0.3125rem;
    }

    /* Boxy informacyjne */
    .highlight-box,
    .warning-box {
        padding: 1.5625rem 1.25rem;
        margin: 1.5625rem 0;
        border-radius: 0.625rem;
        overflow-x: hidden;
        word-wrap: break-word;
    }

    .highlight-box h4,
    .warning-box h4 {
        font-size: 1.3rem;
        margin-bottom: 0.9375rem;
        line-height: 1.3;
    }

    .highlight-box p,
    .warning-box p {
        font-size: 1.125rem;
        line-height: 1.6;
        word-wrap: break-word;
    }

    .highlight-box ul,
    .warning-box ul {
        margin-left: 1.5625rem;
    }

    .highlight-box li,
    .warning-box li {
        font-size: 1.125rem;
        line-height: 1.6;
        margin-bottom: 0.625rem;
    }

    /* TOC - Spis treści */
    .toc {
        padding: 1.5625rem 1.25rem;
        margin: 1.5625rem 0;
        border-radius: 0.625rem;
        overflow-x: hidden;
    }

    .toc h3 {
        font-size: 1.4rem;
        margin-bottom: 1.125rem;
    }

    .toc a {
        font-size: 1.0625rem;
        line-height: 1.5;
        display: block;
        padding: 0.625rem 0;
        word-wrap: break-word;
    }

    /* Porównania */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        overflow-x: hidden;
    }

    .comparison-item {
        padding: 1.25rem 1.125rem;
        text-align: left;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
    }

    .comparison-item h4 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        text-align: center;
        line-height: 1.3;
    }

    .comparison-item p {
        font-size: 1.0625rem;
        line-height: 1.6;
        word-wrap: break-word;
    }

    /* Kroki */
    .step-item {
        padding: 1.25rem 0.9375rem;
        padding-top: 5rem;
        margin: 1.25rem 0;
        border-radius: 0.625rem;
        position: relative;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
    }

    .step-number {
        top: 1.25rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.1rem;
    }

    .step-item strong {
        font-size: 1.125rem;
        display: block;
        margin-bottom: 0.625rem;
        line-height: 1.4;
        word-wrap: break-word;
    }

    /* Tabele na mobile */
    .costs-table {
        font-size: 0.9375rem;
        margin: 1.5625rem 0;
        border-radius: 0.5rem;
    }

    .costs-table th,
    .costs-table td {
        padding: 0.75rem 0.625rem;
        min-width: 8.75rem;
        font-size: 0.9375rem;
    }

    .costs-table th {
        font-weight: 600;
    }

    /* Author box */
    .author-info-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5625rem 1.25rem;
        border-radius: 0.75rem;
        overflow-x: hidden;
    }

    .author-avatar {
        width: 4.375rem;
        height: 4.375rem;
        font-size: 1.8rem;
    }

    .author-details h4 {
        font-size: 1.3rem;
        margin-bottom: 0.625rem;
    }

    .author-details p {
        font-size: 1.0625rem;
        line-height: 1.6;
        word-wrap: break-word;
    }

    /* Sharing section */
    .sharing-section {
        padding: 1.5625rem 1.25rem;
        margin: 2.1875rem 0;
        border-radius: 0.625rem;
        overflow-x: hidden;
    }

    .sharing-title {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }

    .sharing-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .share-btn {
        width: 90%;
        max-width: 17.5rem;
        justify-content: center;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-radius: 0.5rem;
        white-space: nowrap;
    }

    /* Related articles */
    .related-articles {
        padding: 1.5625rem 1.25rem;
        margin: 2.1875rem 0;
        border-radius: 0.75rem;
        overflow-x: hidden;
    }

    .related-title {
        font-size: 1.4rem;
        margin-bottom: 1.5625rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.125rem;
    }

    .related-item {
        padding: 1.25rem 1.125rem;
        border-radius: 0.625rem;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
    }

    .related-item h5 {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 0.625rem;
        word-wrap: break-word;
    }

    .related-item p {
        font-size: 1rem;
        line-height: 1.5;
        word-wrap: break-word;
    }
}

/* BARDZO MAŁE EKRANY - 480px i mniej */
@media (max-width: 480px) {
    .article-container {
        padding: 0 0.5rem;
    }

    .main-content {
        padding: 1.25rem 0.75rem;
    }

    .article-title {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .article-content h2 {
        font-size: 1.6rem;
    }

    .article-content h3 {
        font-size: 1.4rem;
    }

    .article-content p {
        font-size: 1.125rem;
    }

    .breadcrumb-list {
        font-size: 0.9375rem;
    }

    .costs-table {
        font-size: 0.875rem;
    }

    .costs-table th,
    .costs-table td {
        padding: 0.625rem 0.5rem;
        min-width: 7.5rem;
        font-size: 0.875rem;
    }

    .step-item {
        padding: 0.9375rem 0.75rem;
        padding-top: 4.375rem;
    }

    .step-number {
        width: 2.1875rem;
        height: 2.1875rem;
        font-size: 1rem;
        top: 0.9375rem;
    }

    .share-btn {
        width: 95%;
        padding: 0.875rem 1.125rem;
        font-size: 0.9375rem;
    }

    .highlight-box,
    .warning-box {
        padding: 1.25rem 0.9375rem;
    }

    .toc {
        padding: 1.25rem 0.9375rem;
    }
}

/* Print styles */
@media print {
    .sharing-section, .breadcrumbs {
        display: none;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .main-content {
        box-shadow: none;
        border: none;
    }

    .article-content p,
    .article-content li {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .article-content h2 {
        font-size: 1.125rem;
    }

    .article-content h3 {
        font-size: 1rem;
    }

    .article-content h4 {
        font-size: 0.875rem;
    }
}