/* Stopka */
.stopka {
    width: 100%;
    background: linear-gradient(90deg, #1a0a0a 0%, #2d0d0d 100%);
    color: #fff;
    text-align: center;
    font-size: 1.13em;
    padding: 38px 0 24px 0;
    margin-top: 64px;
    letter-spacing: 0.3px;
    box-shadow: 0 -2px 24px #1a0a0a55;
    font-family: 'Lato', 'DejaVu Sans', Arial, sans-serif;
}
.stopka a {
    color: #e53935;
    text-decoration: underline;
    font-weight: 600;
    letter-spacing: 0.2px;
}
@media (max-width: 700px) {
    .stopka {
        font-size: 0.98em;
        padding: 22px 0 12px 0;
    }
}
/* Baner na górze */
.baner-top {
    width: 100vw;
    background: #111;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-bottom: 18px;
    box-shadow: 0 2px 16px #1a0a0a22;
    overflow: hidden;
}
.baner-top img {
    width: 100vw;
    height: auto;
    display: block;
    object-fit: cover;
}
body {
    font-family: 'Lato', 'DejaVu Sans', Arial, sans-serif;
    background: linear-gradient(180deg, #000 0%, #000 55%, #7a1f1f 85%, #e53935 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 18px 0 22px 0;
    text-align: center;
    font-size: 1.4em;
    color: #7a1f1f;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px #1a0a0a11;
    min-height: 100vh;
}
.main {
    max-width: 1400px;
    margin: 40px auto;
    background: rgba(255,255,255,0.97);
    border-radius: 18px;
    box-shadow: 0 8px 32px #7a1f1f44;
    padding: 40px 32px 32px 32px;
}
.oferta {
    border: 1.5px solid #e2c9a0;
    border-radius: 12px;
    margin-bottom: 36px;
    padding: 28px 32px 24px 32px;
    box-shadow: 0 2px 12px #e2c9a033;
    background: #fffdfa;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: auto;
    max-width: none;
    transition: all 0.3s ease;
}

.oferta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #e2c9a055;
    border-color: #7a1f1f;
}

.oferta .nazwa {
    font-size: 1.6em;
    font-weight: 800;
    color: #7a1f1f;
    margin-bottom: 16px;
    text-align: left;
    text-shadow: 0 1px 2px rgba(122, 31, 31, 0.1);
    border-bottom: 2px solid #e2c9a0;
    padding-bottom: 8px;
}
.tresc {
    display: flex;
    flex-direction: row;
    gap: 48px;
    align-items: flex-start;
    justify-content: flex-start;
}
.zdjecie {
    width: 420px;
    max-width: 50%;
    min-width: 220px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid #e2c9a0;
    box-shadow: 0 2px 8px #e2c9a044;
    background: #f8f6f2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.oferta:hover .zdjecie {
    transform: scale(1.02);
    box-shadow: 0 4px 16px #e2c9a066;
}
.opis {
    text-align: left;
    flex: 1;
    min-width: 390px;
    font-size: 1.13em;
    color: #3d2c1a;
    line-height: 1.6;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}
.cena {
    margin-top: auto;
    font-size: 1.08em;
    color: #111;
    font-weight: 600;
    letter-spacing: 0.1px;
    display: flex;
    gap: 18px;
    align-items: flex-end;
}

.cena-okno {
    background: #fff7e0;
    border: 2px solid #e2c9a0;
    border-radius: 10px;
    padding: 8px 16px 7px 16px;
    min-width: 110px;
    box-shadow: 0 2px 8px #e2c9a022;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.98em;
}
.cena-okno .netto {
    color: #7a1f1f;
    font-weight: 700;
    font-size: 1.15em;
    margin-bottom: 2px;
}
.cena-okno .brutto {
    color: #7a1f1f;
    font-weight: 700;
    font-size: 1.15em;
    margin-top: 2px;
    opacity: 1;
}
    


/* Responsive design */
@media (max-width: 1200px) {
    .main {
        max-width: 95%;
        padding: 32px 24px;
    }
    .tresc {
        gap: 32px;
    }
    .zdjecie {
        width: 300px;
        min-width: 200px;
    }
}

@media (max-width: 900px) {
    .main { 
        flex-direction: column !important; 
        padding: 24px 16px;
    }
    .toc { 
        position: static; 
        max-width: 100%; 
        margin-bottom: 24px; 
    }
    h2 {
        font-size: 2.2em;
        margin: 40px 0 30px 0;
    }
}

@media (max-width: 768px) {
    .tresc {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .zdjecie {
        width: 100%;
        max-width: 400px;
        min-width: 0;
    }
    .opis {
        min-width: 0;
        text-align: left;
    }
    .oferta .nazwa {
        font-size: 1.4em;
        text-align: center;
    }
    .cena {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Nagłówki kategorii */
h2 {
    font-size: 2.8em;
    font-weight: 900;
    color: #7a1f1f;
    text-align: center;
    margin: 60px 0 40px 0;
    text-shadow: 0 2px 4px rgba(122, 31, 31, 0.2);
    letter-spacing: 1px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #e2c9a0, #7a1f1f);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* --- Podświetlanie aktywnej sekcji TOC --- */
section.kategoria {
    scroll-margin-top: 40px;
}

/* Smooth scroll for anchor links */
html { scroll-behavior: smooth; }

/* Print adjustments: ensure content fits inside page frames */
@media print {
    @page { margin: 12mm; }
    body { background: #fff !important; color: #000 !important; }
    .main { padding: 0 !important; }
    .oferta { box-shadow: none !important; border-width: 1px !important; padding: 3mm !important; margin-bottom: 8mm !important; flex-direction: column !important; overflow: visible !important; }
    .zdjecie { max-width: 100% !important; width: 100% !important; height: auto !important; margin: 0.2em 0 !important; box-shadow: none !important; }
    .tresc { gap: 6mm !important; flex-direction: column !important; }
    .cena { flex-wrap: wrap !important; }
    .cena-okno { min-width: 0 !important; }
    .opis { overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
    h2 { font-size: 1.8em !important; }
    .oferta .nazwa { font-size: 1.2em !important; }
}
