/* =====================================================
   DIGITAL PRO — PRINT.CSS
   Wydruk A4 z zachowaniem pełnej kolorystyki
   ===================================================== */

@page{
    size:A4 portrait;
    margin:12mm;
}

@media print{
    html,
    body{
        width:210mm;
        min-height:297mm;
        margin:0 !important;
        padding:0 !important;
        background:#fff !important;
        color:#0b1738 !important;
        -webkit-print-color-adjust:exact !important;
        print-color-adjust:exact !important;
        color-adjust:exact !important;
    }

    *,
    *::before,
    *::after{
        box-sizing:border-box;
        -webkit-print-color-adjust:exact !important;
        print-color-adjust:exact !important;
        color-adjust:exact !important;
        animation:none !important;
        transition:none !important;
    }

    body{
        font-size:10.5pt;
        line-height:1.45;
        overflow:visible !important;
    }

    .container{
        width:100% !important;
        max-width:none !important;
        margin-left:auto !important;
        margin-right:auto !important;
        padding-left:0 !important;
        padding-right:0 !important;
    }

    /* Elementy niepotrzebne na wydruku */
    .skip-link,
    .menu-toggle,
    .header-tools,
    .wcag-backdrop,
    .wcag-panel,
    .share-box,
    .hero-full-slider__arrow,
    .hero-full-slider__controls{
        display:none !important;
    }

    /* Nagłówek */
    .site-header{
        position:static !important;
        inset:auto !important;
        width:100% !important;
        margin:0 0 8mm !important;
        padding:0 0 5mm !important;
        border-bottom:1px solid #dfe7f2 !important;
        background:#fff !important;
        box-shadow:none !important;
    }

    .header-inner{
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        min-height:auto !important;
    }

    .main-nav{
        display:none !important;
    }

    .brand{
        color:#0b1738 !important;
        text-decoration:none !important;
    }

    .brand-mark{
        background:#1765d8 !important;
        color:#fff !important;
    }

    /* Hero — pierwszy slajd jako okładka */
    .hero-full-slider{
        min-height:auto !important;
        height:auto !important;
        margin:0 0 9mm !important;
        overflow:hidden !important;
        border-radius:6mm !important;
        background:#0b1738 !important;
        break-inside:avoid;
        page-break-inside:avoid;
    }

    .hero-full-slider__track{
        display:block !important;
        transform:none !important;
        height:auto !important;
    }

    .hero-full-slide{
        display:none !important;
        position:relative !important;
        min-height:112mm !important;
        height:112mm !important;
        opacity:1 !important;
        visibility:visible !important;
        transform:none !important;
    }

    .hero-full-slide.is-active,
    .hero-full-slide:first-child{
        display:block !important;
    }

    .hero-full-slide img{
        position:absolute !important;
        inset:0 !important;
        width:100% !important;
        height:100% !important;
        object-fit:cover !important;
        opacity:1 !important;
    }

    .hero-full-slide__shade{
        position:absolute !important;
        inset:0 !important;
        display:block !important;
        background:linear-gradient(90deg,rgba(6,18,43,.92),rgba(6,18,43,.55)) !important;
    }

    .hero-full-slide__content{
        position:relative !important;
        z-index:2 !important;
        display:flex !important;
        min-height:112mm !important;
        flex-direction:column !important;
        justify-content:center !important;
        padding:16mm 14mm !important;
        color:#fff !important;
    }

    .hero-full-slide__content h1,
    .hero-full-slide__content h2,
    .hero-full-slide__content p,
    .hero-full-slide__content li{
        color:#fff !important;
    }

    .hero-full-slide__content h1,
    .hero-full-slide__content h2{
        max-width:145mm !important;
        margin:0 0 5mm !important;
        font-size:27pt !important;
        line-height:1.08 !important;
    }

    .hero-full-slide__content > p{
        max-width:135mm !important;
        font-size:11pt !important;
    }

    .hero-full-slide__actions{
        display:none !important;
    }

    .hero-full-slide__points{
        display:flex !important;
        flex-wrap:wrap !important;
        gap:3mm 6mm !important;
        margin-top:6mm !important;
    }

    /* Sekcje i kafelki */
    section{
        overflow:visible !important;
    }

    .section,
    .trusted,
    .stats,
    .portfolio,
    .cta{
        margin-top:0 !important;
        margin-bottom:8mm !important;
        padding-top:6mm !important;
        padding-bottom:6mm !important;
    }

    h1,h2,h3,p,li,a,strong,small,span{
        orphans:3;
        widows:3;
    }

    h1,h2,h3{
        break-after:avoid;
        page-break-after:avoid;
    }

    article,
    .service-card,
    .project-card,
    .why-card,
    .news-card,
    .stats article,
    .trusted a{
        break-inside:avoid;
        page-break-inside:avoid;
    }

    .trusted-grid,
    .service-grid,
    .portfolio-grid,
    .why-cards,
    .news-grid,
    .stats,
    .footer-grid{
        gap:5mm !important;
    }

    .trusted-grid{
        grid-template-columns:repeat(4,1fr) !important;
    }

    .offer-layout{
        display:block !important;
    }

    .offer-intro{
        margin-bottom:7mm !important;
    }

    .service-grid{
        grid-template-columns:repeat(2,1fr) !important;
    }

    .portfolio-grid{
        grid-template-columns:repeat(2,1fr) !important;
    }

    .why-grid{
        display:block !important;
    }

    .why-cards{
        grid-template-columns:repeat(2,1fr) !important;
        margin-top:6mm !important;
    }

    .news-grid{
        grid-template-columns:repeat(2,1fr) !important;
    }

    .news-card:last-child{
        grid-column:1 / -1 !important;
        width:50% !important;
    }

    .stats{
        display:grid !important;
        grid-template-columns:repeat(4,1fr) !important;
    }

    .service-card,
    .project-card,
    .why-card,
    .news-card,
    .stats article,
    .trusted a{
        border:1px solid #dfe7f2 !important;
        background:#fff !important;
        box-shadow:none !important;
    }

    .project-visual,
    .news-card__image,
    .service-card__icon,
    .why-card span{
        -webkit-print-color-adjust:exact !important;
        print-color-adjust:exact !important;
    }

    /* CTA */
    .cta{
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        padding:10mm !important;
        border-radius:5mm !important;
        background:linear-gradient(135deg,#0b1738,#1765d8) !important;
        color:#fff !important;
        break-inside:avoid;
        page-break-inside:avoid;
    }

    .cta h2,
    .cta p{
        color:#fff !important;
    }

    .cta .btn{
        display:none !important;
    }

    /* Stopka */
    .site-footer{
        margin-top:10mm !important;
        padding:10mm 0 0 !important;
        border-top:1px solid #dfe7f2 !important;
        background:#0b1738 !important;
        color:#fff !important;
        break-before:auto;
    }

    .site-footer,
    .site-footer *{
        color:#fff !important;
    }

    .footer-grid{
        grid-template-columns:1.4fr 1fr 1fr 1fr !important;
    }

    .footer-bottom{
        margin-top:6mm !important;
        padding-top:4mm !important;
        border-top:1px solid rgba(255,255,255,.25) !important;
    }

    /* Linki bez dopisywania adresów */
    a[href]::after{
        content:"" !important;
    }

    /* Kontrola łamania stron */
    .offer-preview,
    .portfolio,
    .news-section{
        break-before:auto;
        page-break-before:auto;
    }
}