/* ===========================================
   XENIUS PARTS - responsive.css
=========================================== */

/* ===========================
   ≤ 1440px
=========================== */
@media (max-width:1440px){
    .heroCopy h1,
.heroCopy h2{
        font-size:38px;
    }
    .railNext{
        right:-14px;
    }
}

/* ===========================
   LAPTOP  ≤ 1280px
=========================== */
@media (max-width:1280px){
    .container{
        padding:0 22px;
    }
    .logo img{
        width:196px;
    }
    .hero .container{
        grid-template-columns:270px 1fr;
    }
    .heroCopy h1,
.heroCopy h2{
        font-size:33px;
    }
    .heroSlide,
    .heroSlider{
        min-height:360px;
    }
    .heroSlide{
        padding-left:44px;
    }
    .railTrack{
        grid-template-columns:repeat(4,1fr);
    }
    .railTrack .card:nth-child(n+5){
        display:none;
    }
    .tileGrid{
        grid-template-columns:repeat(4,1fr);
    }
    .footerGrid{
        grid-template-columns:1.4fr 1fr 1fr 1.2fr;
        gap:32px;
    }
    .footerCol:nth-child(4){
        display:none;
    }
}

/* ===========================
   TABLET  ≤ 1024px
=========================== */
@media (max-width:1024px){
    .headerMain .container{
        flex-wrap:wrap;
        height:auto;
        padding-top:14px;
        padding-bottom:14px;
        gap:14px;
    }
    .logo{
        order:1;
    }
    .headerActions{
        order:2;
        margin-left:auto;
    }
    .catsBtn{
        order:3;
    }
    form.search{
        order:4;
        flex:1 0 100%;
    }
    .actionText.onlyWide{
        display:none;
    }
    .usp .container{
        gap:26px;
        overflow-x:auto;
        white-space:nowrap;
    }
    .uspPhone{
        display:none;
    }

    .hero .container{
        grid-template-columns:1fr;
    }
    .sideCats{
        display:none;
    }
    .sideCats.isOpen{
        display:block;
    }
    .heroSlide{
        flex-direction:column;
        justify-content:flex-start;
        text-align:center;
        height:auto;
        padding:34px 30px 0;
        gap:0;
    }
    .heroCopy{
        width:100%;
        padding:0 0 6px;
    }
    .heroPhoto{
        position:static;
        width:100%;
        max-width:560px;
        margin:6px auto 0;
        height:auto;
    }
    .heroPhoto::after{
        display:none;
    }
    .heroPhoto img{
        height:auto;
        object-fit:contain;
    }
    .heroSlider,
    .heroSlide{
        min-height:auto;
    }
    .heroUsp{
        position:static;
        display:grid;
        grid-template-columns:repeat(4,1fr);
        padding:6px 24px 0;
        margin-top:-6px;
    }
    .heroUspItem{
        border-left:none;
        min-width:0;
        padding:0 6px;
    }
    .heroDots{
        position:static;
        display:flex;
        justify-content:center;
        padding:18px 0;
    }

    .railTrack{
        grid-template-columns:repeat(3,1fr);
    }
    .railTrack .card:nth-child(n+4){
        display:none;
    }
    .tileGrid{
        grid-template-columns:repeat(4,1fr);
    }
    .stripInner{
        grid-template-columns:repeat(2,1fr);
        gap:26px 20px;
        padding:28px 30px;
    }
    .newsInner{
        grid-template-columns:1fr;
        gap:22px;
    }
    .trust{
        border-left:none;
        border-top:1px solid var(--line);
        padding-left:0;
        padding-top:18px;
    }
    .footerGrid{
        grid-template-columns:1fr 1fr;
        gap:34px;
        padding:44px 0 36px;
    }
    .footerBottom{
        flex-direction:column;
        text-align:center;
    }
}

/* ===========================
   TELEFON  ≤ 768px
=========================== */
@media (max-width:768px){
    .container{
        padding:0 16px;
    }
    .logo img{
        width:172px;
    }
    .action{
        padding:8px;
    }
    .actionText{
        display:none;
    }
    .cart .actionText{
        display:flex;
    }
    form.search input{
        padding:0 14px;
    }
    form.search > button{
        padding:0 20px;
        font-size:13px;
    }
    .catsBtn{
        flex:1;
        justify-content:center;
    }

    .heroCopy h1,
.heroCopy h2{
        font-size:26px;
    }
    .heroCopy p{
        font-size:14.5px;
        margin-bottom:22px;
    }
    .btnOrange{
        display:block;
        padding:15px 20px;
    }
    .heroSlide{
        padding:26px 18px 0;
    }
    .heroUsp{
        grid-template-columns:repeat(2,1fr);
        gap:20px 0;
        padding:10px 12px 0;
    }
    .heroUspItem i{
        margin-bottom:9px;
        font-size:20px;
    }

    .secHead h2{
        font-size:19px;
    }
    .railTrack{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }
    .railTrack .card:nth-child(n+3){
        display:none;
    }
    .railNext{
        display:none;
    }
    .card{
        padding:12px;
    }
    .cardImg,
    .cardBuy .cardImg{
        height:96px;
    }
    .tileGrid{
        grid-template-columns:repeat(3,1fr);
        gap:12px;
    }
    .tile{
        font-size:12.5px;
    }
    .tile img{
        width:34px;
        height:34px;
    }
    .stripInner{
        grid-template-columns:1fr;
        gap:20px;
        padding:24px;
    }
    .newsInner{
        padding:22px 18px;
    }
    .newsLeft{
        gap:14px;
    }
    .newsLeft h2{
        font-size:17px;
    }
    .newsRow{
        flex-direction:column;
        gap:10px;
    }
    .newsRow input{
        border-right:1px solid var(--line);
        border-radius:5px;
    }
    .newsRow button{
        height:46px;
        border-radius:5px;
    }
    .footerGrid{
        grid-template-columns:1fr;
        gap:30px;
    }
    .footerCol:nth-child(4){
        display:block;
    }
    .payments{
        justify-content:center;
    }
    .toTop{
        right:14px;
        bottom:14px;
    }
    .whatsappFloat{
        left:14px;
        bottom:14px;
        padding:13px;
        border-radius:50%;
    }
    .whatsappFloat span{
        display:none;
    }
}

/* ===========================
   ≤ 480px
=========================== */
@media (max-width:480px){
    .heroCopy h1,
.heroCopy h2{
        font-size:23px;
    }
    .tileGrid{
        grid-template-columns:repeat(2,1fr);
    }
    .payments img{
        height:28px;
    }
}

/* ===========================================
   Slajd główny (warstwy) - szerokości
   ===========================================
   Osobne reguły, bo ten slajd ma zdjęcie w tle, a nie obok tekstu jak
   pozostałe. Im węższy ekran, tym mocniejsza maska - napisy leżą wtedy
   na środku zdjęcia, a nie na przyciemnionym lewym marginesie.
   =========================================== */
@media (max-width:1280px){
    .heroSlide--warstwy{
        min-height:360px;
    }
    .hero__tresc{
        padding-left:44px;
        max-width:68%;
    }
    .hero__tresc h1{
        font-size:36px;
    }
}

@media (max-width:1024px){
    .heroSlide--warstwy{
        min-height:330px;
        padding-bottom:104px;
    }
    .hero__tresc{
        max-width:78%;
        padding-left:34px;
    }
    .hero__tresc h1{
        font-size:31px;
    }
}

@media (max-width:768px){
    .heroSlide--warstwy{
        min-height:300px;
        padding:0 0 96px;
    }
    .hero__foto{
        /* Na wąskim ekranie środek kadru mówi więcej niż prawa krawędź. */
        background-position:center center;
    }
    .hero__maska{
        background:
            linear-gradient(0deg,
                rgba(0,0,0,.9) 0%,
                rgba(0,0,0,0) 40%),
            linear-gradient(90deg,
                rgba(0,0,0,.95) 0%,
                rgba(0,0,0,.82) 55%,
                rgba(0,0,0,.62) 100%);
    }
    .hero__tresc{
        max-width:100%;
        padding-left:22px;
        padding-right:22px;
    }
    .hero__tresc h1{
        font-size:27px;
        /* Krótkie linie nagłówka nie mogą się łamać w przypadkowych miejscach. */
        text-wrap:balance;
    }
    .hero__tresc p{
        font-size:14.5px;
        margin-bottom:22px;
    }
}

@media (max-width:480px){
    .heroSlide--warstwy{
        min-height:280px;
        padding-bottom:88px;
    }
    .hero__tresc h1{
        font-size:23px;
    }
    .hero__akcje{
        flex-direction:column;
        align-items:stretch;
    }
    .hero__akcje .btnOrange,
    .hero__akcje .btnObrys{
        display:block;
        text-align:center;
        padding:14px 18px;
    }
}
