/* =========================================
   PLIK NAPRAWCZY DO MOBILE (Google Friendly)
   Wersja: 1.1 - Fix Text Shift
   ========================================= */

@media (max-width: 991.98px) {
    
    /* 1. BEZPIECZEŃSTWO UKŁADU */
    html, body {
        width: 100% !important;
        min-width: 320px !important;
        overflow-x: hidden !important; /* Blokuje przewijanie na boki */
        position: relative !important;
    }

    /* 2. UKRYCIE PRELOADERA I ANIMACJI */
    .preloader, .page-loader, #page-loader, .cssload-container {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        z-index: -9999 !important;
    }
    
    .wow {
        visibility: visible !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important; 
    }

    /* 3. SKALOWANIE OBRAZÓW */
    img, video, iframe, svg, canvas, .img-responsive {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* 4. TEKSTY - BEZ PRZESTAWIANIA (Zachowuje oryginalne wyrównanie) */
    
    /* Zabezpieczenie przed długimi słowami, które rozpychają ekran */
    * {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Nagłówki - tylko zmniejszamy, nie zmieniamy wyrównania */
    .text-extra-large {
        font-size: 36px !important;
        line-height: 1.2 !important;
    }

    h1, .heading-1 { font-size: 30px !important; line-height: 1.3 !important; }
    h2, .heading-2 { font-size: 24px !important; line-height: 1.35 !important; }
    h3, .heading-3 { font-size: 20px !important; line-height: 1.4 !important; }
    h4, h5, h6     { font-size: 18px !important; line-height: 1.4 !important; }
    
    /* Paragrafy - czytelna wielkość, bez wymuszania 'text-align: left' */
    p, .text-width-medium, .text-width-large, li {
        font-size: 16px !important;
        line-height: 1.6 !important;
        width: auto !important;
        max-width: 100% !important;
        /* Usunięto 'text-align: left' aby nie psuć wyśrodkowania */
    }

    /* 5. KONTENERY */
    .container, .container-fluid, .shell {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    section, .section, footer, header {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
        overflow: hidden !important;
    }

    /* 6. PRZYCISKI */
    .btn, .button {
        display: inline-block !important;
        padding: 15px 25px !important;
        height: auto !important;
        font-size: 15px !important;
        white-space: normal !important;
        max-width: 100% !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }

    /* 7. ELEMENTY UKRYTE */
    .thumbnail-small-hover-image, 
    .decoration-element,
    .rd-navbar-fixed-element-2 {
        display: none !important;
    }

    /* 8. HEADER LOGO */
    .rd-navbar-brand {
        max-width: 85% !important;
        display: block !important;
    }
    .rd-navbar-brand img {
        max-height: 50px !important;
        width: auto !important;
    }
}