.container {
    margin: 0 auto;
    padding: 0;
}
.section-1-grejac {
    position: relative;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;    
    box-sizing: border-box;    
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.section-1-subtitle {
    color: #00D4E9;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
}
.section-1-title {
    color: #fff; 
    font-size: 50px;
    font-weight: 700;
    line-height: 1.05;
}
.title-1-mobile {
    display: block;
}
.title-1-desktop {
    display: none;
}
.section-1-overlay {
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);    
    padding:40px 30px 45px 30px;
    background-color: rgba(0, 0, 0, 0.2);
    -webkit-transform: translate3d(0,0,0); /* Za širu kompatibilnost */
    transform: translate3d(0,0,0);
    will-change: transform;
}
.section-2-grejac {
    position: sticky;
    top: 0px;
    background-image: url('/assets/img/klima3/spoljna-jedinica-grejac-mob.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 110svh;
    z-index: 2;
    isolation: isolate; /* KLJUČNO: Kreira novi stacking context */
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    will-change: transform, scroll-position;
}
.section-3-grejac {
    position: relative;
    top: -200px;   
    padding:20px;
    z-index: 3;  
}
.section-4-grejac {
    position: relative;
    /* top:60px; */
    background-color: #fff;
    min-height: 80svh;
    padding:20px;
    text-align: center;
    display: flex; 
    flex-direction: column;
    justify-content: center;
    z-index: 4;
}
.section-4-right-content {
    margin-top: 2svh;
}
.section-5-grejac {
    background-image: url('/assets/img/klima3/klima-trava-sneg-mob.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    background-color: #fff;
    min-height: 100svh;
    padding-top:60px;
    padding-left: 24px;
    padding-right: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 53svh;
    z-index: 5;
}
.a-desktop {
    display: none;
}
.a1-mobile {
    display: inline-block;
}
.holder-text-grejac {
    position: relative;   
    padding: 40px 30px;
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    border-radius: 33px;
    margin-bottom:25%;
    background-color: rgba(0, 0, 0, 0.15);
}
.holder-text-grejac {
    margin-bottom:40%;
}
.holder-text-grejac2 {
    margin-bottom:20%;
}
.info-box img {
    max-width: 90px;
}
.infobox-subtitle-grejac {
    color:#fff;    
    line-height: 1.05;
    margin-top:20px;
    margin-bottom: 12px;
}
.infobox-title {
    color: #fff;
    font-weight: 300;   
}
.section-5-content-grejac {
    position: relative;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 33px;    
    padding: 30px 24px 20px 24px;    
}
.section-5-img {    
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.section-5-img img {
    max-width: 67px;
    height: auto;    
}
.section-5-subtitle {
    color:#fff;    
    line-height: 1.05;
}
.section-5-title {
    color:#fff;
}
.crni-naslov {
    line-height: 1.05;
    margin-bottom:18px;
}
.section-4-right-text {
    text-align: center;
}
.section-4-right-text p {
    padding-bottom: 5svh;   
}
.section-6-grejac {
    text-align: center;
    position: relative;
    min-height: 10svh;
    background-color: #fff;
    padding: 50px 30px 20px 30px;
    /* top: 1px; */
    z-index: 6;
}
.section-6-title {    
    line-height: 1.05;
}
.title-6-mobile {
    display: block;
}
.title-6-desktop {
    display: none;
}
.see-all-products {   
    z-index: 7;
}

/* === GENERALNI MODERN CSS FIX ZA SVE PREGLEDAČE === */

/* Pseudo-element pozadina za sve moderne pregledače - bolje performanse od background-attachment: fixed */
.section-1-grejac {
    background-attachment: scroll !important; /* Ukloni fixed za sve pregledače */
    background-image: none !important; /* Ukloni originalnu sliku */
    position: relative; /* Bitno za z-index i kontekst pseudo-elementa */
    overflow: hidden; /* Sprečava curenje sadržaja */   
}

/* Kreiramo fiksirani pseudo-element koji će služiti kao pozadina */
.section-1-grejac::before {
    content: "";
    position: fixed; /* KLJUČNO: Pozadina je fiksirana u viewportu */
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    background-image: url('/assets/img/klima3/inverter-klime-grejac-pingvini-mob.jpg'); /* Mobilna slika */
    background-size: cover;
    background-repeat: no-repeat;
    /* background-position: left top; */
    z-index: -1;
    -webkit-transform: translateZ(0);/* Hardverska akceleracija za glatkoću */
    transform: translateZ(0);
    will-change: transform;
}

/* Safari/iOS specifični fix - samo za dodatne optimizacije */
@supports (-webkit-touch-callout: none) {
    /* Popravak za sticky elemente: forsira hardversku akceleraciju za glatko skrolovanje/animacije */
    .section-2-grejac{
        position: -webkit-sticky; /* Starija Safari sintaksa */
        -webkit-transform: translate3d(0, 0, 0); /* Forsiranje hardverske akceleracije */
        transform: translate3d(0, 0, 0);
        will-change: transform, scroll-position; /* Savet pregledaču za optimizaciju */
    }

    /* Fix za backdrop-filter na Safariju/iOS-u */
    /* .section-1-overlay {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        will-change: transform;
    } */
    
    .holder-text-grejac,
    .section-5-content-grejac {
        -webkit-backdrop-filter: blur(13px);
        backdrop-filter: blur(13px);
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        will-change: transform;
    }
}

/* iPhone specific fixes - iOS Safari only (detekcija dodirnog ekrana) */
@supports (-webkit-touch-callout: none) and (pointer: coarse) {
    /* Poboljšanje skrolovanja unutar elemenata za touch uređaje */
    /* Omogućava native, inercijako skrolovanje kao na iOS aplikacijama */
    body, html {
        -webkit-overflow-scrolling: touch;
    }

    /* Fix za stabilnu visinu na iOS-u - koristi lvh umesto svh */
    .section-1-grejac {       
       min-height: 100lvh !important; /* Large viewport height - ignorise UI promene */
        height: 100lvh !important;        
    }
}
@media (max-width: 320px) {
    .section-5-grejac {
        padding-bottom: 60svh;
        padding-left: 15px;
        padding-right: 15px;
    }
}
@media (min-width: 390px) {
    .section-5-grejac {
        padding-bottom: 43svh;
    }
    .section-4-right-content {
        margin-top: 4svh;
    }
    .section-4-right-text p {    
        padding-left:10px;
        padding-right:10px;
    }
}
@media (min-width: 412px) {
    .section-5-grejac {
        padding-bottom: 45svh;
    }
    .section-4-right-content {
        margin-top: 0svh;
    }
    .section-4-right-text p {
        padding-bottom: 0svh;
    }
}
@media (min-width: 768px) {
    .section-1-grejac {        
        justify-content: center;    
    }
    .section-1-overlay {
        position: fixed;
        border-radius: 32px;
        left:20px;
        padding: 60px 56px 60px 56px;        
    }
    .section-1-grejac::before {
        background-image: url('/assets/img/klima3/inverter-klime-grejac-pingvini.webp');
        background-position-x: 63%;
    }
    
    .section-2-grejac {
        min-height: 100svh;
        background-image: url('/assets/img/klima3/spoljna-jedinica-grejac.webp');
        background-position-x: 63%; 
    }
    .section-5-grejac {        
        background-image: url('/assets/img/klima3/klima-trava-sneg.webp');
        background-position-x: 17%;
    }   
    .title-1-mobile {
        display: none;
    }
    .title-1-desktop {
        display: block;
    }
    .section-1-subtitle {
        font-size: 24px;
        line-height: 1.2;       
    }
    .section-1-title {
        font-size: 50px;
        line-height: 1.1;
    }
    .info-box {
        border-left: 3px solid rgba(0, 212, 233, 1);
        padding-left: 30px;
    }
    .infobox-subtitle-grejac {        
        line-height: 1.05;
    }
    .section-5-subtitle {
        line-height: 1.05;
    }
    .holder-text-grejac {
        max-width: 70%;
        padding: 50px 50px;
    }
     .holder-text-grejac2 {
        margin-bottom: 5%;
    }
    .section-4-right-content img {
        max-width: 80%;
        height: auto;        
    }
    .section-4-right-text {
        display: flex;        
        flex-direction: column;
        align-items: center;        
    }
    .section-4-right-text p {        
        width: 60%;
        padding-bottom: 3svh;
    }
    .a-desktop {
        display: inline-block;
        max-width: 50%;
    }
    .a1-mobile {
        display: none;
    }  

    .crni-naslov {
        margin-bottom: 16px;
    }
    .section-5-content-grejac {
        max-width: 70%;
        padding: 55px 50px;        
    }
    .section-5-grejac {
        align-items: flex-start;
        padding-bottom: 27svh;
    }
    .section-6-grejac {
        padding: 60px 30px 20px 30px;
    }
    .title-6-mobile {
        display: none;
    }
    .title-6-desktop {
        display: block;
    }
    .section-6-title {
        line-height: 51px;
    }
    @supports (-webkit-touch-callout: none) {
        /* Samo iOS-specifične stvari koje se tiču prikaza slika na >= 768px */
        .section-1-grejac::before {
            background-image: url('/assets/img/klima3/inverter-klime-grejac-pingvini.webp');
            background-position-x: 63%;
        }         
    }    
}
@media (min-width: 1024px) {      
    .section-1-overlay {
        left:20px;
        padding: 65px 56px 65px 56px;
    }
    .section-1-title {        
        font-size: 64px;        
        line-height: 1.05;
    }
    .section-1-subtitle {
        font-size: 29px;
        line-height: 1.1;
        margin-bottom: 20px;
    }
    .infobox-subtitle-grejac {
        font-size: 58px;
        line-height: 1.05;
    }
    .section-4-grejac {
        min-height: 100svh;
        align-items: center;
    }    
    .section-5-grejac {       
        background-position-x: 20%;
        padding-bottom:30vh;        
    }
    .section-4-right-text p {
        padding-bottom: 5svh;    
    }
    .holder-text-grejac {
        max-width: 60%;
        padding: 60px 50px;
    }
    .holder-text-grejac {
        margin-bottom: 30%;
    }
    .holder-text-grejac2 {
        margin-bottom: 0%;
    }
    .section-5-content-grejac {
        max-width: 50%;
    }
    .section-5-img img {
        max-width: 97px;
    }   
    .section-5-subtitle {
        font-size: 58px;
        line-height: 1.1;
    }
    .section-5-content-grejac {
        max-width: 63%;
        padding: 60px 50px;
    }
    .section-6-title {
        font-size: 58px;
        line-height: 1.05;
    }       
}
@media (min-width: 1024px) and (max-height: 768px) {
     .section-1-grejac::before {
        background-position-x: 0%;
        top: 0px;
    }
    .section-2-grejac {
        background-position-x: 0%;        
    }    
    .holder-text-grejac {
        max-width: 55%;
    }
    .section-4-grejac {
        flex-direction: row-reverse;
        padding: 0 50px;
    }    
    .section-4-right-text p {        
        width: 100%;
    }
    .section-4-right-text {
        text-align: left;
        align-items: flex-start;
    }
    .section-4-right-content img {
        max-width: 100%;
    }
    .section-5-content-grejac {
        max-width: 45%;
        padding: 45px 35px;
    }
    .section-5-grejac {
        flex-direction: row;
        background-position-x: 50%;
        padding-bottom: 10vh;
    }
    @supports (-webkit-touch-callout: none) {
        /* Samo iOS-specifične stvari koje se tiču prikaza slika na >= 1024px */
         .section-1-grejac::before {
            background-position-x: 0%;
            top: 0px;
        }
    }    
}
@media (min-width: 1024px) and (max-height: 600px) {
    .section-1-overlay {
        left: 20px;
        padding: 50px 56px 50px 56px;
    }
}
@media (min-width: 1200px) {
    .section-1-grejac {
        height: 100svh;
        min-height: 100svh;
    }
    .section-1-grejac::before {
        background-position-x: center;
    }
    .section-2-grejac {
        /* position: sticky; */
        top: 0px;
    }
    .section-1-overlay {
        left: 9%;       
    }
    .holder-text-grejac {       
        padding: 60px 40px;
        left:3%;
    }    
    .section-4-grejac {
        flex-direction: row-reverse;
        padding: 0 12%;
        min-height: 90svh;
    }
    .section-4-right-text {
        text-align: left;
        align-items: flex-start;
    }
    .crni-naslov {
        font-size: 58px;
        line-height: 1.05;
    }
    .section-4-right-text p {
        width: 100%;
    }
    .section-5-grejac {
        min-height: 100svh;
        flex-direction: row;
    }
    .section-5-content-grejac {
        flex-direction: row;
        right:5%;
        max-width: 40%;        
    }
    .section-5-grejac {        
        padding-bottom: 0svh;
        align-items: center;
        background-position-x: center;
    }
    .holder-text-grejac {
        max-width: 45%;
        margin-bottom: 15%;
    }
    .section-4-right-content img {
        position: relative;
        left: 10%;
        max-width: 500px;
    }
    @supports (-webkit-touch-callout: none) {
        /* Samo iOS-specifične stvari koje se tiču prikaza slika na >= 1024px */
        .section-1-grejac::before {
            background-position-x: center;
        }
        
    }
}


@media (min-width: 1280px) and (max-height: 960px) {
    .section-4-right-text p {
        width: 100%;
    }
    .section-5-grejac {
        flex-direction: row;
        padding-bottom: 0svh;
        align-items: center;
        background-position-x: center;
    }    
    .section-5-content-grejac {        
        max-height: 80vh;
    }  
}
@media (min-width: 1300px) {    
    .section-6-grejac {
        padding: 100px 30px 10px 30px;
    }
    .section-4-right-text p {    
        padding-left:0px;
    }
    .section-4-grejac {
        min-height: 90svh;
    }
    .holder-text-grejac2 {
        margin-bottom: 0%;
    }
    .section-5-content-grejac {        
        max-width: 36%;
        right: 8%;
    } 
    .section-4-right-content img {
        max-width: 600px;
    }    
}
@media (min-width: 1400px) { 
    .section-5-img {
        margin-bottom: 16px;
    }
    .holder-text-grejac {
        max-width: 42%;
    }    
    .section-4-grejac {
        padding: 0 12%;
    }
}
@media (min-width: 1500px) { 
    .holder-text-grejac {
        left: 7%;
        max-width: 40%;
        padding: 60px 50px;        
    }
    .section-4-grejac {
        min-height: 90svh;        
    }    
    .section-5-content-grejac {
        max-width: 35%;
        right: 10%;
        padding: 50px 35px;
    }
}
@media (min-width: 1600px) {
        .section-5-content-grejac {
        max-width: 33%;
        right: 12%;
        padding: 60px 35px;
    }    
    .section-4-right-content img {
        max-width: 700px;
    }
}

@media (min-width: 1920px) {
    .section-1-overlay {
        left: 14%;
        padding: 70px 55px 70px 55px;
    }
    .section-1-title {
        font-size: 72px;
    }
    .infobox-subtitle-grejac {
        font-size: 72px;
    }
    .holder-text-grejac {
        left: 13%;
        max-width: 35%;
    }
    .section-3-grejac {    
        top: -70px;
    }    
     .crni-naslov {
        font-size: 72px;
        margin-bottom: 24px;
     }
    .section-4-right-content img {
        max-width: 760px;
    }
    .section-4-grejac {
        /* gap:20px; */
    }
    .section-4-right-content img {
        position: relative;
        left: 10%;
    }
    .section-5-content-grejac {
        max-width: 32%;
        right: 14%;
        padding: 76px 35px;
    }
    .infobox-subtitle-grejac {
        margin-bottom: 20px;
    }
    .info-box img {
        max-width: 100px;
    }
    .holder-text-grejac {        
        margin-bottom: 18%;
    }
    .holder-text-grejac2 {
        margin-bottom: 3%;
    }    
    .section-5-subtitle {
        font-size: 72px;
    }
    .section-5-img img {
        max-width: 100%;
    }
    .section-4-grejac {        
        padding: 0 15%;
    }
    .section-6-grejac {
        padding-top: 110px;
    }
    .section-6-title {
        font-size: 72px;
        line-height: 1.05;
    }
}
@media (min-width: 2048px) {
    .section-1-overlay {
        left: 16%;
    }
    .holder-text-grejac {
        left: 15%;
        max-width: 31%;        
    }
    .section-4-grejac {
        padding: 0 16%;
    }
    .section-5-content-grejac {
        max-width: 30%;
        right: 16%;
    }
}
@media (min-width: 2560px) {
    .section-1-overlay {
        left: 22%;
        padding: 80px 65px 80px 65px;
    }
    .holder-text-grejac {
        left: 22%;
        max-width: 26%;
        padding: 60px 60px;
    }    
    .section-3-grejac {
        top: -25px;
    }
    .holder-text-grejac2 {
        margin-bottom: 8%;
    }   
    .section-4-grejac {
        justify-content: center;
    }
    .section-4-grejac {
        padding: 0 23%;
    }
    .section-4-right-content {
        max-width: 1320px;
    }
    .section-4-right-content img {
        max-width: 910px;
    }
    .ection-4-right-text {
         max-width: 800px
    }
    .section-5-grejac {        
        padding-bottom: 0vh;
    }
    .section-5-content-grejac {
        max-width: 25%;
        right: 22%;
        padding: 90px 55px;
    }
    .section-5-subtitle {
       margin-bottom:16px;
    }
    
}


