/* ==================== FONTS (self-hosted) ==================== */
/* latin-ext — covers Polish diacritics (ł, ś, ę, ą, ń, ó, ź, ż, ć) */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin — base Latin characters */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary: #3b6cb5;
    --primary-dark: #2c5aa0;
    --primary-light: #5a8fd4;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Wylacz standardowe ligatury (fi, fl, ff) — niecharakterystyczne dla polskiej typografii */
    font-variant-ligatures: no-common-ligatures;
    font-feature-settings: "liga" 0, "clig" 0;
    text-rendering: optimizeLegibility;
}

/* ==================== HEADER (page-header) ==================== */
header.page-header {
    background: white;
    border-bottom: 1px solid var(--border);
}

header.page-header .inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.25rem 2.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.logo span {
    color: var(--accent);
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumb .sep {
    margin: 0 0.5rem;
    color: #cbd5e1;
}

h1.page-title {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page-subtitle {
    color: var(--text-medium);
    font-size: 1.1rem;
    max-width: 640px;
    line-height: 1.6;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.25rem 5rem;
}

/* ==================== SECTION CARDS ==================== */
.section {
    background: white;
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 8px 25px -15px rgba(15,23,42,0.1);
    border: 1px solid transparent;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.3;
}

.section-title .icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

/* Nagłówki wewnątrz sekcji */
.section h2 {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 1.75rem 0 0.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

.section p,
.section > ul,
.section > ol {
    color: var(--text-medium);
    line-height: 1.7;
}

.section p {
    margin-bottom: 0.75rem;
}

.section ul,
.section ol {
    margin: 0.5rem 0 1rem 1.5rem;
}

.section ul li,
.section ol li {
    margin-bottom: 0.35rem;
}

.section strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* ==================== STEPS ==================== */
.step {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(59, 108, 181, 0.3);
}

.step-content {
    margin-left: 2.75rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.step-content p {
    margin-bottom: 0.5rem;
}

.step-content p:last-child {
    margin-bottom: 0;
}

.step-content ul {
    margin: 0.5rem 0 0 1.25rem;
}

/* ==================== CALLOUTS ==================== */
.tip,
.warning,
.success {
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 10px;
    border-left: 4px solid;
}

.tip-title,
.warning-title,
.success-title {
    font-weight: 700;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.tip {
    background: #fffbeb;
    border-left-color: var(--warning);
}

.tip-title {
    color: #92400e;
}

.tip p {
    color: #78350f;
}

.warning {
    background: #fef2f2;
    border-left-color: var(--danger);
}

.warning-title {
    color: #991b1b;
}

.warning p {
    color: #7f1d1d;
}

.success {
    background: #ecfdf5;
    border-left-color: var(--success);
}

.success-title {
    color: #065f46;
}

.success p {
    color: #064e3b;
}

/* ==================== FEATURE CARDS ==================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: 0 4px 20px -10px rgba(59, 108, 181, 0.3);
}

.feature-card .icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== MODULE GRID (linki na dole) ==================== */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.module-card {
    display: block;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.module-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08), 0 15px 40px -15px rgba(15,23,42,0.2);
}

.module-card .module-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.module-card h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.module-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== TOC (spis treści) ==================== */
.toc {
    background: white;
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.toc h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.05rem;
}

.toc ul {
    list-style: none;
}

.toc li {
    padding: 0.4rem 0;
}

.toc a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.toc a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.footer {
    text-align: center;
    padding: 2rem 1.25rem 3rem;
    color: var(--text-light);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    background: white;
    margin-top: 3rem;
}

.footer strong {
    color: var(--text-dark);
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer p:last-child {
    margin-bottom: 0;
}

/* ==================== STICKY BACK BUTTON ==================== */
.back-to-instrukcja {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(59, 108, 181, 0.35);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-to-instrukcja:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 108, 181, 0.5);
}

.back-to-instrukcja .back-arrow {
    font-size: 1.15rem;
    font-weight: 700;
    transition: transform 0.2s;
}

.back-to-instrukcja:hover .back-arrow {
    transform: translateX(-3px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    body {
        line-height: 1.65;
    }

    header.page-header .inner {
        padding: 1.5rem 1rem 2rem;
    }

    .logo {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    h1.page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 1.25rem 1rem 5rem;
    }

    .section {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .section h2 {
        font-size: 1rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-content {
        margin-left: 0;
        margin-top: 0.75rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .feature-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .toc {
        padding: 1.25rem;
    }

    .back-to-instrukcja {
        bottom: 1rem;
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
        max-width: calc(100% - 2rem);
    }
}
</content>
</invoke>