        /* ═══════════════════════════════════════
           PAGE HEADER
        ═══════════════════════════════════════ */
        .page-header { position: relative; background: linear-gradient(160deg, #0a2e1a 0%, #125030 28%, #1e7a46 52%, #3a9c64 78%, #7dc8a0 100%); background-size: 200% 200%; animation: hero-gradient 14s ease-in-out infinite; padding: 160px 24px 60px; text-align: center; }
        .page-header h1 { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: white; position: relative; z-index: 1; }
        .page-header p { font-family: var(--font-body); color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-top: 12px; position: relative; z-index: 1; }
        .page-header .header-glow { position: absolute; top: -60px; right: -40px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(251,191,36,0.10) 0%, transparent 70%); border-radius: 50%; animation: sun-breathe 12s ease-in-out infinite; pointer-events: none; }

        /* ═══════════════════════════════════════
           LAYOUT
        ═══════════════════════════════════════ */
        .regulamin-layout { display: flex; max-width: 1200px; margin: 0 auto; padding: 48px 24px 80px; gap: 40px; align-items: flex-start; }
        .regulamin-content { flex: 1; min-width: 0; max-width: 820px; }

        .toc-inline { display: none; }

        .toc-sidebar { position: sticky; top: 100px; width: 260px; flex-shrink: 0; max-height: calc(100vh - 120px); overflow-y: auto; background: var(--green-50); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 20px 20px; }
        .toc-sidebar::-webkit-scrollbar { width: 4px; }
        .toc-sidebar::-webkit-scrollbar-thumb { background: var(--green-200); border-radius: 4px; }

        .toc-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
        .toc-title svg { width: 18px; height: 18px; stroke: var(--forest-mid); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
        .toc-list { list-style: none; counter-reset: toc-counter; padding: 0; margin: 0; }
        .toc-list li { counter-increment: toc-counter; margin-bottom: 2px; }
        .toc-list li a { color: var(--text-mid); text-decoration: none; font-size: 0.82rem; line-height: 1.5; display: flex; align-items: baseline; gap: 6px; padding: 4px 8px; border-radius: 6px; transition: background 0.15s, color 0.15s; }
        .toc-list li a::before { content: "§" counter(toc-counter); font-family: var(--font-display); font-weight: 600; color: var(--forest-mid); min-width: 26px; font-size: 0.78rem; }
        .toc-list li a:hover { background: rgba(22,101,58,0.06); color: var(--forest-dark); }
        .toc-list li a.active { background: rgba(22,101,58,0.10); color: var(--forest-dark); font-weight: 600; }

        .toc-inline .toc-title { font-size: 1.1rem; margin-bottom: 16px; }
        .toc-inline .toc-list li a { font-size: 0.92rem; padding: 5px 10px; }
        .toc-inline .toc-list li a::before { font-size: 0.85rem; min-width: 30px; }

        /* ═══════════════════════════════════════
           CONTENT
        ═══════════════════════════════════════ */
        .reg-section { margin-bottom: 48px; scroll-margin-top: 100px; overflow-wrap: break-word; word-break: break-word; }
        .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0 24px; }
        .reg-section h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--forest-dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--green-100); display: flex; align-items: center; gap: 12px; }
        .reg-section h2 .section-marker { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: linear-gradient(135deg, var(--forest-mid), var(--forest-light)); border-radius: 12px; font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: white; flex-shrink: 0; box-shadow: 0 2px 8px rgba(22,101,58,0.20); }
        .reg-section h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--forest-mid); margin: 28px 0 14px; }
        .reg-section p, .reg-section > ol > li { font-size: 0.95rem; line-height: 1.75; color: var(--text-dark); margin-bottom: 10px; }
        .reg-section ol { list-style: none; counter-reset: reg-item; padding-left: 0; }
        .reg-section > ol > li { counter-increment: reg-item; padding-left: 36px; position: relative; }
        .reg-section > ol > li::before { content: counter(reg-item) "."; position: absolute; left: 0; font-family: var(--font-display); font-weight: 700; color: var(--forest-mid); font-size: 0.9rem; }

        .reg-section ol ol { counter-reset: reg-sub; margin-top: 6px; margin-bottom: 8px; padding-left: 8px; }
        .reg-section ol ol > li { counter-increment: reg-sub; padding-left: 28px; position: relative; font-size: 0.92rem; margin-bottom: 4px; }
        .reg-section ol ol > li::before { content: counter(reg-sub) ")"; position: absolute; left: 0; font-family: var(--font-display); font-weight: 600; color: var(--sage-mid); font-size: 0.85rem; }

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

        .reg-info-block { background: var(--green-50); border-left: 3px solid var(--forest-mid); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 16px 0; font-size: 0.92rem; color: var(--text-mid); line-height: 1.65; }

        /* Tables */
        .reg-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.9rem; }
        .reg-table th { background: var(--green-50); font-family: var(--font-display); font-weight: 700; color: var(--forest-dark); text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--green-200); }
        .reg-table td { padding: 10px 16px; border-bottom: 1px solid var(--green-100); color: var(--text-dark); line-height: 1.6; vertical-align: top; }
        .reg-table tr:last-child td { border-bottom: none; }
        .reg-table tr:hover td { background: rgba(22,101,58,0.02); }

        /* Bullet list for contact section */
        .reg-section ul { list-style: none; padding-left: 0; margin: 12px 0; }
        .reg-section ul li { padding-left: 20px; position: relative; font-size: 0.95rem; line-height: 1.75; margin-bottom: 6px; }
        .reg-section ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; background: var(--forest-mid); border-radius: 50%; }

        /* Legal links */
        .legal-links { display: flex; gap: 24px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--green-100); flex-wrap: wrap; }
        .legal-links a { display: flex; align-items: center; gap: 8px; color: var(--forest-mid); text-decoration: none; font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; padding: 10px 20px; border: 1px solid var(--border-medium); border-radius: 100px; transition: all 0.2s; }
        .legal-links a:hover { background: var(--green-50); border-color: var(--forest-mid); color: var(--forest-dark); }
        .legal-links a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

        /* Back to top */
        .back-to-top { position: fixed; bottom: 32px; right: 32px; z-index: 100; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--forest-mid); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(20px); transition: opacity 0.3s, transform 0.3s, background 0.2s; pointer-events: none; }
        .back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
        .back-to-top:hover { background: var(--forest-dark); transform: translateY(-2px); }
        .back-to-top svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

        /* Footer */

        /* Responsive */
        @media (max-width: 1100px) {
            .toc-sidebar { display: none; }
            .toc-inline { display: block; background: var(--green-50); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 24px 28px; margin-bottom: 40px; }
            .regulamin-layout { max-width: 820px; }
        }
        @media (max-width: 900px) {
            .page-header { padding: 140px 24px 50px; }
            .page-header h1 { font-size: 2rem; }
        }
        @media (max-width: 640px) {
            footer { flex-direction: column; gap: 12px; text-align: center; padding: 28px 24px; }
        }
        @media (max-width: 600px) {
            .page-header { padding: 120px 20px 40px; }
            .page-header h1 { font-size: 1.65rem; }
            .toc-inline { padding: 20px 20px; }
            .regulamin-layout { padding: 32px 16px 60px; }
            .reg-section h2 { font-size: 1.15rem; }
            .reg-section h2 .section-marker { width: 38px; height: 38px; font-size: 0.9rem; }
            .legal-links { flex-direction: column; gap: 12px; }
            .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
            .reg-table { font-size: 0.82rem; }
            .reg-table th, .reg-table td { padding: 8px 10px; }
        }
